/* 口令转链接 10 10 10 10 * jd_code2url.js nolan服务接口 */ const $ = new Env('口令转链接'); var _0xodG='jsjiami.com.v7';const _0x195980=_0x2dc4;if(function(_0x3b2e8c,_0x52ae95,_0x9a8f46,_0x40ecd3,_0x1227d6,_0x4ef6f8,_0x5104b5){return _0x3b2e8c=_0x3b2e8c>>0x8,_0x4ef6f8='hs',_0x5104b5='hs',function(_0x25b118,_0x32c34f,_0x49944a,_0x57c355,_0x28b6c8){const _0x5b72f1=_0x2dc4;_0x57c355='tfi',_0x4ef6f8=_0x57c355+_0x4ef6f8,_0x28b6c8='up',_0x5104b5+=_0x28b6c8,_0x4ef6f8=_0x49944a(_0x4ef6f8),_0x5104b5=_0x49944a(_0x5104b5),_0x49944a=0x0;const _0x4cdd66=_0x25b118();while(!![]&&--_0x40ecd3+_0x32c34f){try{_0x57c355=-parseInt(_0x5b72f1(0x19a,'MkgY'))/0x1*(parseInt(_0x5b72f1(0x196,'NrS4'))/0x2)+-parseInt(_0x5b72f1(0x10f,']]0p'))/0x3*(-parseInt(_0x5b72f1(0x185,'[so9'))/0x4)+-parseInt(_0x5b72f1(0x12c,'#B8L'))/0x5*(-parseInt(_0x5b72f1(0x151,'dwpb'))/0x6)+-parseInt(_0x5b72f1(0x138,'f&F7'))/0x7+-parseInt(_0x5b72f1(0x11b,']]0p'))/0x8+-parseInt(_0x5b72f1(0x107,'n5@$'))/0x9*(parseInt(_0x5b72f1(0x114,'n5@$'))/0xa)+-parseInt(_0x5b72f1(0x122,'n5@$'))/0xb*(-parseInt(_0x5b72f1(0x139,'MkgY'))/0xc);}catch(_0x4dd4e7){_0x57c355=_0x49944a;}finally{_0x28b6c8=_0x4cdd66[_0x4ef6f8]();if(_0x3b2e8c<=_0x40ecd3)_0x49944a?_0x1227d6?_0x57c355=_0x28b6c8:_0x1227d6=_0x28b6c8:_0x49944a=_0x28b6c8;else{if(_0x49944a==_0x1227d6['replace'](/[SweVrJXqIkHxlUhMFYP=]/g,'')){if(_0x57c355===_0x32c34f){_0x4cdd66['un'+_0x4ef6f8](_0x28b6c8);break;}_0x4cdd66[_0x5104b5](_0x28b6c8);}}}}}(_0x9a8f46,_0x52ae95,function(_0xbfc270,_0x4495e8,_0x5c5793,_0x2d34c5,_0x4bd3df,_0x3d12b6,_0x270e16){return _0x4495e8='\x73\x70\x6c\x69\x74',_0xbfc270=arguments[0x0],_0xbfc270=_0xbfc270[_0x4495e8](''),_0x5c5793=`\x72\x65\x76\x65\x72\x73\x65`,_0xbfc270=_0xbfc270[_0x5c5793]('\x76'),_0x2d34c5=`\x6a\x6f\x69\x6e`,(0x1509ae,_0xbfc270[_0x2d34c5](''));});}(0xbc00,0xeddbe,_0x3654,0xbe),_0x3654){}const _0x599272=(function(){const _0x14d06d=_0x2dc4,_0xc5af05={'xbmHo':function(_0xc91e28,_0x102e7f){return _0xc91e28===_0x102e7f;},'DrtCz':_0x14d06d(0x13c,'KdMZ'),'DmTaK':_0x14d06d(0x15d,'fDIS'),'haDCX':function(_0x593eb5,_0x36c092){return _0x593eb5!==_0x36c092;},'zGTCk':_0x14d06d(0x111,'ibn0')};let _0x4c7692=!![];return function(_0x3990bc,_0xdacf45){const _0xbbfd22=_0x14d06d;if(_0xc5af05[_0xbbfd22(0x140,'QXQi')](_0xc5af05[_0xbbfd22(0x168,'s@GY')],_0xc5af05[_0xbbfd22(0x16a,'ynPZ')]))_0xe98c01[_0xbbfd22(0x131,'JdS]')]();else{const _0x139038=_0x4c7692?function(){const _0xc07af8=_0xbbfd22;if(_0xc5af05[_0xc07af8(0x149,'n*W(')](_0xc5af05[_0xc07af8(0x108,'*8#$')],_0xc5af05[_0xc07af8(0x164,'AJ3*')]))_0x2d16c3[_0xc07af8(0x186,'QXQi')](_0x487fe9);else{if(_0xdacf45){const _0xc6f61f=_0xdacf45[_0xc07af8(0x155,'7yHZ')](_0x3990bc,arguments);return _0xdacf45=null,_0xc6f61f;}}}:function(){};return _0x4c7692=![],_0x139038;}};}()),_0x24c711=_0x599272(this,function(){const _0x1744f5=_0x2dc4,_0x22cb2a={'ctHJL':_0x1744f5(0x10d,'MJ*e')};return _0x24c711[_0x1744f5(0x173,'r62t')]()[_0x1744f5(0x106,'%zxj')](_0x22cb2a[_0x1744f5(0x181,']]0p')])[_0x1744f5(0x193,'[so9')]()[_0x1744f5(0x14a,'C!d)')](_0x24c711)[_0x1744f5(0x174,'lwXf')](_0x22cb2a[_0x1744f5(0x133,'yRxb')]);});_0x24c711();const _0x3afdf5=require(_0x195980(0x169,'n*W(')),_0x39b281=require(_0x195980(0x14c,'n*W('));function _0x2dc4(_0x83dfff,_0x5a085a){const _0x5aaa98=_0x3654();return _0x2dc4=function(_0x377c69,_0x5ddb9c){_0x377c69=_0x377c69-0x104;let _0x3654b5=_0x5aaa98[_0x377c69];if(_0x2dc4['OZboMb']===undefined){var _0x2dc4e8=function(_0x216e4e){const _0xf11b62='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x523499='',_0x30f223='',_0x2b2031=_0x523499+_0x2dc4e8;for(let _0x7ef282=0x0,_0x7b6c17,_0x3fe41d,_0x1dd706=0x0;_0x3fe41d=_0x216e4e['charAt'](_0x1dd706++);~_0x3fe41d&&(_0x7b6c17=_0x7ef282%0x4?_0x7b6c17*0x40+_0x3fe41d:_0x3fe41d,_0x7ef282++%0x4)?_0x523499+=_0x2b2031['charCodeAt'](_0x1dd706+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x7b6c17>>(-0x2*_0x7ef282&0x6)):_0x7ef282:0x0){_0x3fe41d=_0xf11b62['indexOf'](_0x3fe41d);}for(let _0x4961bc=0x0,_0x320f3d=_0x523499['length'];_0x4961bc<_0x320f3d;_0x4961bc++){_0x30f223+='%'+('00'+_0x523499['charCodeAt'](_0x4961bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30f223);};const _0x3c21f8=function(_0xbd564a,_0x250b49){let _0xd4847a=[],_0x21b3ff=0x0,_0x4789fe,_0x2ff4ce='';_0xbd564a=_0x2dc4e8(_0xbd564a);let _0x1c0419;for(_0x1c0419=0x0;_0x1c0419<0x100;_0x1c0419++){_0xd4847a[_0x1c0419]=_0x1c0419;}for(_0x1c0419=0x0;_0x1c0419<0x100;_0x1c0419++){_0x21b3ff=(_0x21b3ff+_0xd4847a[_0x1c0419]+_0x250b49['charCodeAt'](_0x1c0419%_0x250b49['length']))%0x100,_0x4789fe=_0xd4847a[_0x1c0419],_0xd4847a[_0x1c0419]=_0xd4847a[_0x21b3ff],_0xd4847a[_0x21b3ff]=_0x4789fe;}_0x1c0419=0x0,_0x21b3ff=0x0;for(let _0x5584ba=0x0;_0x5584ba<_0xbd564a['length'];_0x5584ba++){_0x1c0419=(_0x1c0419+0x1)%0x100,_0x21b3ff=(_0x21b3ff+_0xd4847a[_0x1c0419])%0x100,_0x4789fe=_0xd4847a[_0x1c0419],_0xd4847a[_0x1c0419]=_0xd4847a[_0x21b3ff],_0xd4847a[_0x21b3ff]=_0x4789fe,_0x2ff4ce+=String['fromCharCode'](_0xbd564a['charCodeAt'](_0x5584ba)^_0xd4847a[(_0xd4847a[_0x1c0419]+_0xd4847a[_0x21b3ff])%0x100]);}return _0x2ff4ce;};_0x2dc4['kHKpKU']=_0x3c21f8,_0x83dfff=arguments,_0x2dc4['OZboMb']=!![];}const _0x3f0f64=_0x5aaa98[0x0],_0x36c588=_0x377c69+_0x3f0f64,_0x438967=_0x83dfff[_0x36c588];if(!_0x438967){if(_0x2dc4['auhEDc']===undefined){const _0x1fec1a=function(_0x16eb69){this['OvAcRa']=_0x16eb69,this['xgdWdd']=[0x1,0x0,0x0],this['gKRXjs']=function(){return'newState';},this['HZOceb']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['PFpCsx']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1fec1a['prototype']['jAjqwW']=function(){const _0x5350a9=new RegExp(this['HZOceb']+this['PFpCsx']),_0x187041=_0x5350a9['test'](this['gKRXjs']['toString']())?--this['xgdWdd'][0x1]:--this['xgdWdd'][0x0];return this['pZLxaC'](_0x187041);},_0x1fec1a['prototype']['pZLxaC']=function(_0x11e291){if(!Boolean(~_0x11e291))return _0x11e291;return this['BguyGv'](this['OvAcRa']);},_0x1fec1a['prototype']['BguyGv']=function(_0x51651a){for(let _0x441e19=0x0,_0x4542f9=this['xgdWdd']['length'];_0x441e19<_0x4542f9;_0x441e19++){this['xgdWdd']['push'](Math['round'](Math['random']())),_0x4542f9=this['xgdWdd']['length'];}return _0x51651a(this['xgdWdd'][0x0]);},new _0x1fec1a(_0x2dc4)['jAjqwW'](),_0x2dc4['auhEDc']=!![];}_0x3654b5=_0x2dc4['kHKpKU'](_0x3654b5,_0x5ddb9c),_0x83dfff[_0x36c588]=_0x3654b5;}else _0x3654b5=_0x438967;return _0x3654b5;},_0x2dc4(_0x83dfff,_0x5a085a);}let _0x3030fc=process[_0x195980(0x175,'OY02')][_0x195980(0x147,'@Ix[')]||'';!(async()=>{const _0x38487e=_0x195980,_0xfc7c2b={'YBGbC':function(_0x3aa67c,_0x2fb26e){return _0x3aa67c!==_0x2fb26e;},'XASso':_0x38487e(0x18d,'n5@$'),'rdSuI':_0x38487e(0x12a,'3XOR'),'Vaoec':function(_0x11b2bc,_0x5246c5){return _0x11b2bc(_0x5246c5);},'VVwLa':_0x38487e(0x16f,'&G#r')};if(_0x3030fc){if(_0xfc7c2b[_0x38487e(0x15b,'MJ*e')](_0xfc7c2b[_0x38487e(0x152,'n*W(')],_0xfc7c2b[_0x38487e(0x199,'SCUX')])){let _0x49dc38=_0x3030fc[_0x38487e(0x191,'%zxj')](/[¥%#!!&]([a-zA-Z0-9]+)[¥%#!!&]/);_0x49dc38&&await _0xfc7c2b[_0x38487e(0x11d,'[yzP')](_0x26b660,_0x49dc38[0x0]);}else _0x44a6ce[_0x38487e(0x121,'f9yr')](_0x999c0[_0x38487e(0x171,'TV7f')](_0x55c3bd));}else console[_0x38487e(0x144,'n5@$')](_0xfc7c2b[_0x38487e(0x17e,'3XOR')]);})()[_0x195980(0x18f,'OVkE')](_0x209a40=>{const _0x4a3d3a=_0x195980;$[_0x4a3d3a(0x170,'6SgG')]('','❌\x20'+$[_0x4a3d3a(0x183,'SCUX')]+_0x4a3d3a(0x10c,'MkgY')+_0x209a40+'!','');})[_0x195980(0x166,'lAO)')](()=>{const _0x4ddec1=_0x195980;$[_0x4ddec1(0x184,'NrS4')]();});function _0x3654(){const _0x1d34e0=(function(){return[...[_0xodG,'YjqshrjiUqaSmki.JcSxoPmw.rvVX7lewMrHkFIS==','W5GODhVcSq','FSkOFtdcPq','W77dUSozxexcH8oAafvpW4tdQSoEvSo8thJcISoAWRK','W6ddMSkYmNC','qmkobmoKF8klWP3dGcpcMmoaWQVdOmo9WRFdL2ZcPHBcGCk0WO1wtshcK0yLeSoNt8oxfa','WR0mWRxdS8oa','5lQH6Acf77+8','ux/dSqLD','WRVORR7ORPJNVzhPN5ROP4ZOPBxMNzZNMllLJOFKUBdVVQmYWPzTASkn','tdj7','WPBdTJXKWQ0IW4S7WQ0','W7ZcI8kekCksW5e','DeRcMq0yiq7dJq','W6uNvtJdS8kv','iSoxdW','o15HWRFcGG','WO/cTW3dGSkIWOTBWQf3p8kBWQ/dPaJcQ8oUoJ9yiW89WRtcTSkHm37cMcZdU8o3WRRdH8kWm8kObSk7ASoIWOqDqCkMW6HGnMD9faCxaCkVW6fRWQ3dUmkj','W54yALFcTa','bmorj8kcBq','6zoC5O6G77+o','v8kiW7i','W5RcRsPAW7jM','wKJdQaXk','ysSgW7za','WPTJuYTf','WPddSsT/WO0KW484','WOdcQSoRW4Pr','W5pcGmoRj1W','W4LPWPBcGG','dmkXWQun','auFcLs/dVCoPW5y/W5BdQSowWPS','gK/dOCkGFCkW','lCo4ctu','bq/dPN7cPmkSW7ewW6VdL8oNWRibnSoMW5G','E8kfBSo9lCoXWPNcRCkHW7i+WQe','W6hcL8oEpwG','EJz4WPpdQNiMW70HDCodWOrYWOddQY5a','vq1eqte','F23dJaL/','WOrrnW','W65vW6tcNmoC','W5yZW4W','jmoAWRW3cG','E8kco3dcL8o2WP3cKW','rbNdVMlcUCk0W7av','W7bbWRJcPNi','CNpdUInUCG','umoSW71CWQfDW6TPxmk9W7dcGa','W5ahzCogpfVdJCknW65RiG','vWBdGLdcKW'],...(function(){return[...['W5vSWQJcKKm','WRnbWR8DyvpcHG','E8kbB8kvASkUWQhcS8kI','ymkoxri','WRRcOmoswx7cLSoc','oSoEWQKMaCkm','lYJcR1iRBd/cGZmmW44','W6X/W7dcJCk3','W4CYrsFdKW','W5DPWONcLg8','q3xcPguDW7JcQCkaj3SceW7cPtpcSHlcV3hcVJystchdNaxdOmkkD0GwdSke','WQ4n5AEJ6lwcgd7LJyZLMPitva','WPj0WOpdO8kwFeLWemk7shC','FmkjcLdcOq','W5ldQ8kAW5fSWPuqr10','uSkRW7ldG0a','WOa4WP7dNmoX','WOxcOCozeq','rZ5oFs4','ksZcRvzFCXtcTZep','WRRcLSoqrg7cNmonavTpWOZdQW','WOfzrr9E','WQtcVmolru4','oSoBjCkW','gmoiqCo8r8kaWPJdUIC','W5rDWQeTAW','W5RdPSkuWRKTW4PywKTmW4TrWQK','W4f/W4ZcNmkZwCkvW4TYbCkP','W78TW6hcO8oz','W5BcLmkorCk3xSkKWQnUWQW','pCoDeeFcUmk9nJCMWPm','WPXvxCkd','WOVcRb4','lYtcRf8OwdlcOsGRW4q','CSkIW7tdMwu','WP58WR7dTSo5W67dNg9ufa','W4xcQHrxW7y','uSk/W7BdU2m','W5JcKSkAsa','WOldPZPVWQWHW5TV','qs1SEci','EW8sW79L','s2JdU14','W6a2ndX+DSkerM4','iSk2bgBdPG','EXeCWQ1KWQDIW6mVW7JcGW','W7/dS8kfa2xcTSoC','BInRWQVcSq','lSoBomkH','WPyJWPS','WP/cGgRcT8kC','W4hcNCopptO'],...(function(){return['W6PSW7FcQ8o7WQK','lmovWQS','W4PFWOS','DCo0wrVcKCo8l8k5WR4oW6TvW7O','WRaFW6zFav3cPIvWfSkQ','p8oxWO8Aca','AmkatG','W5VcKCkmwCk5','WQZdQeBdISoSiMibW5ydW60wWPG','WPpcL8o8','DJKKW5tdNSk/W44qWO/dL8olW4WF','hKhdGSkMvW','WONcT8otW5f8','W4b6WQa/DW','deJcQ8kgyq','CNpdUG','W5VdRmkvWRqLW4ySE39AW6TN','W5ddU8k0e3S','AuBcM00X','pKpdPmkXyW','WQJcT8osyuq','W5LKyW3dJW91W65YW48v','WR1HDsK','WRpcP8ogwv/cI8kda0K','W6yJua','W5GrrvtcLW','W7Hxg8oToW','CIhdN07cHq','he/dJLyZed4SeCox','WOJcLmoSwKq','WQNcRCkFoIG','ovfCW7a9WQXVW4y6','l35LWOJcLa','W4b2nq','WRRcISosW6jF','W7/cJ8klgmkuW5nAW792W69PWPCewmo1WOddV8oSW7r/W43dKtBcPSkJW4KXomoPAqZcJWBdSLlcS8kuhSoCW7lcKComtGCZWQpdK8oVz1hdSmoTrCkTWPXliq','bHeCW4b5oSk/','iSkPWPSfW4W','W6mEW6ZcR8o+','W77cLMVcRq','W7VcGvZcIgy','WQFcS8kunmknW6ThWPGtWO0yW7bWjmkFW5K','oWaMyIi','WQ5esJX2','W6jwWR94tG','rXWdW4Le','i8o9oG3dIq','WQvsamkEqW','5yI25lUD6ikO77Ym','W61ZWRzktmobAW'];}())];}())];}());_0x3654=function(){return _0x1d34e0;};return _0x3654();};async function _0x26b660(_0x2dc740){const _0x3225d0=_0x195980,_0x32d3c4={'JwPmU':function(_0x1ed340,_0x4ad2e6){return _0x1ed340!==_0x4ad2e6;},'BvGiQ':_0x3225d0(0x18c,'6SgG'),'XYDWq':_0x3225d0(0x16c,'ibn0'),'TNIXb':function(_0x1a7a5c,_0x5454a1){return _0x1a7a5c==_0x5454a1;},'BWrXN':function(_0x56b808,_0x283316){return _0x56b808+_0x283316;},'BcRcj':_0x3225d0(0x16d,'ynPZ'),'oQLhn':_0x3225d0(0x165,'[so9'),'gcRiu':_0x3225d0(0x17a,'@Ix['),'NeqFv':function(_0x4bb59f){return _0x4bb59f();},'YTqbB':function(_0x18813b,_0x2d99be){return _0x18813b===_0x2d99be;},'iXckM':_0x3225d0(0x176,'7yHZ'),'NvquA':function(_0x7bde5,_0x59e903){return _0x7bde5(_0x59e903);},'DTujV':_0x3225d0(0x187,'OY02'),'iaRDk':function(_0x2b872f,_0x45fed4){return _0x2b872f(_0x45fed4);},'VpsJR':_0x3225d0(0x115,'n*W('),'shYHv':_0x3225d0(0x16b,'[o8@'),'HcbTl':_0x3225d0(0x18b,'JI2#'),'IEaIK':_0x3225d0(0x143,'QXQi'),'sdbTD':_0x3225d0(0x10b,'@Ix['),'xpyfh':_0x3225d0(0x158,'lraY')};_0x2dc740=_0x32d3c4[_0x3225d0(0x153,'9xc%')](_0x5a5df5,_0x2dc740);let _0x4e4721={'aliveMin':0x15,'appCode':_0x32d3c4[_0x3225d0(0x17d,'n5@$')],'commandType':0x0,'text':_0x32d3c4[_0x3225d0(0x167,'&G#r')](encodeURIComponent,_0x2dc740)},_0x3c6bee=await _0x3afdf5[_0x3225d0(0x128,'TV7f')](_0x32d3c4[_0x3225d0(0x11a,'MkgY')],_0x4e4721),_0x32e2c6={'url':_0x3225d0(0x177,'f9yr')+_0x3c6bee,'headers':{'Accept':_0x32d3c4[_0x3225d0(0x125,'NRgV')],'Accept-Encoding':_0x32d3c4[_0x3225d0(0x148,'QXQi')],'Accept-Language':_0x32d3c4[_0x3225d0(0x123,'!%ZS')],'Content-Type':_0x32d3c4[_0x3225d0(0x10e,'hzRj')],'User-Agent':_0x32d3c4[_0x3225d0(0x15f,'xXj6')]}};return new Promise(async _0x422cde=>{const _0x339e35=_0x3225d0,_0x5277f2={'vlGNj':function(_0x481cf4,_0x45c381){const _0x2a8900=_0x2dc4;return _0x32d3c4[_0x2a8900(0x15a,'NrS4')](_0x481cf4,_0x45c381);},'OcloA':_0x32d3c4[_0x339e35(0x182,'(Ok6')],'JfRbg':_0x32d3c4[_0x339e35(0x116,'#B8L')],'wDKtY':function(_0x82f7b6,_0x12ba65){const _0x3dae57=_0x339e35;return _0x32d3c4[_0x3dae57(0x14f,'aqA8')](_0x82f7b6,_0x12ba65);},'iLgSn':function(_0x39b4a4,_0x2403c6){const _0x58ba39=_0x339e35;return _0x32d3c4[_0x58ba39(0x142,'MkgY')](_0x39b4a4,_0x2403c6);},'sozHw':_0x32d3c4[_0x339e35(0x17f,'#B8L')],'oulMD':_0x32d3c4[_0x339e35(0x178,'&G#r')],'jipQa':function(_0x551a85,_0x5ee9b3){const _0x2932f9=_0x339e35;return _0x32d3c4[_0x2932f9(0x150,'[so9')](_0x551a85,_0x5ee9b3);},'dDCHT':_0x32d3c4[_0x339e35(0x113,'6SgG')],'WICAx':function(_0x3b9e16){const _0x34019c=_0x339e35;return _0x32d3c4[_0x34019c(0x179,'JdS]')](_0x3b9e16);}};_0x32d3c4[_0x339e35(0x157,']]0p')](_0x32d3c4[_0x339e35(0x14e,'&G#r')],_0x32d3c4[_0x339e35(0x126,'!%ZS')])?$[_0x339e35(0x118,'JdS]')](_0x32e2c6,(_0x1205e2,_0x34ee11,_0x4c8037)=>{const _0x2a59a3=_0x339e35;try{if(_0x5277f2[_0x2a59a3(0x13a,'%zxj')](_0x5277f2[_0x2a59a3(0x16e,'n5@$')],_0x5277f2[_0x2a59a3(0x146,'ynPZ')]))_0x1205e2?$[_0x2a59a3(0x172,'lraY')](_0x1205e2):(_0x4c8037=JSON[_0x2a59a3(0x162,'3XOR')](_0x4c8037),_0x5277f2[_0x2a59a3(0x160,'#B8L')](_0x4c8037[_0x2a59a3(0x120,'n@p%')],0x0)?(console[_0x2a59a3(0x13b,'s@GY')](_0x5277f2[_0x2a59a3(0x110,'!%ZS')](_0x5277f2[_0x2a59a3(0x130,'JI2#')],_0x4c8037[_0x2a59a3(0x15c,'fDIS')][_0x2a59a3(0x117,'n*W(')])),console[_0x2a59a3(0x156,'aqA8')](_0x5277f2[_0x2a59a3(0x161,'lAO)')](_0x5277f2[_0x2a59a3(0x12d,'f&F7')],_0x4c8037[_0x2a59a3(0x14b,'#B8L')][_0x2a59a3(0x180,'TV7f')])),console[_0x2a59a3(0x17b,'!%ZS')](_0x5277f2[_0x2a59a3(0x141,']]0p')](_0x5277f2[_0x2a59a3(0x163,'OY02')],_0x4c8037[_0x2a59a3(0x104,'s@GY')][_0x2a59a3(0x105,'n*W(')]))):console[_0x2a59a3(0x190,'MJ*e')](JSON[_0x2a59a3(0x154,'OkFP')](_0x4c8037)));else{const _0x111b98=_0x1dd706?function(){const _0xca859d=_0x2a59a3;if(_0x21b3ff){const _0x3942ad=_0x5584ba[_0xca859d(0x129,'6SgG')](_0x1fec1a,arguments);return _0x16eb69=null,_0x3942ad;}}:function(){};return _0xd4847a=![],_0x111b98;}}catch(_0xb1443e){$[_0x2a59a3(0x195,'n5@$')](_0xb1443e);}finally{_0x5277f2[_0x2a59a3(0x194,'SCUX')](_0x422cde);}}):_0x430bc2[_0x339e35(0x17c,'NRgV')](_0x1511ba);});}function _0x5a5df5(_0x2dd21b){const _0x57b052=_0x195980,_0x21f847={'gpoFX':_0x57b052(0x188,'[so9'),'QpqmC':_0x57b052(0x15e,'lraY')},_0x18ecab=_0x39b281[_0x57b052(0x137,'lAO)')][_0x57b052(0x12f,'ynPZ')](_0x2dd21b,_0x39b281[_0x57b052(0x136,'%zxj')][_0x57b052(0x12b,'n5@$')][_0x57b052(0x10a,'SCUX')](_0x21f847[_0x57b052(0x198,'[so9')]),{'iv':_0x39b281[_0x57b052(0x18e,'AJ3*')][_0x57b052(0x112,'n*W(')][_0x57b052(0x18a,'(Ok6')](_0x21f847[_0x57b052(0x109,'lwXf')]),'mode':_0x39b281[_0x57b052(0x127,'KdMZ')][_0x57b052(0x13e,'n*W(')],'padding':_0x39b281[_0x57b052(0x14d,'lwXf')][_0x57b052(0x134,'(Ok6')]});return _0x18ecab[_0x57b052(0x11e,'KdMZ')][_0x57b052(0x192,'hzRj')](_0x39b281[_0x57b052(0x132,'ibn0')][_0x57b052(0x135,'*8#$')]);}var version_ = 'jsjiami.com.v7'; // prettier-ignore function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }