forked from gaoyucindy/KR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjd_wxtoken_m.js
8 lines (7 loc) · 24.6 KB
/
jd_wxtoken_m.js
1
2
3
4
5
6
7
8
/*
快速获取token
38 11 11 11 * jd_wxtoken.js
*/
const $ = new Env('快速缓存token');
var version_='jsjiami.com.v7';function _0x6c4b(){const _0x56f437=(function(){return[...[version_,'bUCjsTbjigVeaFhPmTDdiKtG.GMckWkomL.Rhvq7==','vWpdM8kBWQiBqSk6','WQeAWPtcOgG','g8oBWPW2W40','WPi3hHSCiw/cMSomW7/cIG','W7FdKCky','tq3dPCkk','WQZdSmkEBhy','rCojW58','FCk8DmopW64','CSk/W7RcUSoGWQupW7NcNLVcTG','vXVdUmoUue9fbmoHmNddLIVcHq','W7SovY0M','hsu0W4hcSq','W60Gg8khwK7dVCoGyHa4W5W','W7lcTN5NlYm','WRDVumk6W5q','aKJdPmkpW4C','n0NcICkAjKmDWPewyca','AsJdL8kRWPuWECkA','tWpdRW','AeKMWPDd','q8kjWRNdV1u','lN7dU8ktW4C','WRjkx8ozpG','WQJdK8odfuO','s1xdSW','W79bWRRdMW','5Pwj5O6l5lMo55gTsmkhWO0iC8kgnI7cLw56pCoyfCooW4SZCG','CSkErCoy','BvKb','yHddLCoEAGaWWOOmEqRcIG','44oi5O+c56ws44gr6k+g5ysf6i+A5y+T5lIz5lQm6lAs5y2k5lI6CXGunmk8v0NNMRJMJl3KVONNL63cGSkRW60UW4zm55UO5lQi5lII566a5yM16i+l5y29','jSoIWQ8DW44','od9ewd1ZWQy','W4TYv05v','W6LTseLfdLdcISoM','WQiNWP7cOL8','tCk8WQjxrG','xSoQW7hcKeS','yCk1o8kjW6pdGsyUWPSHBCo8W58','zmoTW7Pyxa','i0FcJSkD','WRhdRSo4b2X0BmoV','xcH5E8kA','WOBdRSoeghD4smom','DSo/W6VcGhOwWOz8','W4xdL8k2','W7brWQ0','uHnxgSoj','lmoHsSksEa','6k+y5yMg6zQg5Owq5zYyW53dG8oVWR7cOEI9IEweRoAHMUs9TEAwJUweSEwSNr/LUQFORlJPGi3OVjFOH5xMNiNLJ7dOJlNLJ49VWQZcHLSlWQ4','WOPIjfXYmgJdMvLguSoZ','WRvIz8k5W4C','FsDMhSoJ','f2ldG8kYW7pMN7BML77MNzTABowMH+wjNoMrUU+8JUwTSoAvLUAnIEMFL+AvRa','m0pcK8knm0uj'],...(function(){return[...['q8k7WONdJLq','z10fWRzeoHC','WPSXfbjopwxcSCoHW6q','A8kPWRnGuq','ESokBc1+W77dGCoY','W5GZWP3cRCkK','WRdcSmkVDrpdO8kp','tKNdMLJcR8kL','qmooW4XBzMFdIrCjbtRdQHbVmWXkjSoCE8oZW7FcM8kcvSoYWPfxWQKLfM/cRCkWq8kpvtFcGcrBWPJcPq','c3NdNmkNW67dHCkzAWqMW7KGW5qVWOpdKZBdUtWcWPqLWPTjW57cL8oEx8oFW4FcTG','f8olBmkyymk7gCknW53cImoov8kskW','tvJcOchdRa','cSoJaW','gLBcHCk7kG','tHZdOmoUx0u','WPZdOmo6cq','hmojiSkHW7i','ESkuu8oaW6VdMG','WPZdQmo0b0TWs8oo','A0Pb','WQJcKfKiWO1FW5ddI8o2WPdcMIW+','W6yiWOJcU8k+','WP8Xew5ulNlcTSot','WPldSeW','b8o5WPddH8kk','WRhdRSo4b2X0BmoVfW','W6z3WP7dMmk7','nu8rECkuW5NcRa','WQ0hW71JEcqMWOKGWPjdWRK','44cA5OYU56EV44c06k+a5yst6i2R5y6L5lIu5lU86lwN5y2E5lMAn8k2WQemrSouW6NNMiNMJAVKVRxNL5VcNmoGdCoyWRlcU+EBQos6KEs5SUESJowkQEIoU+wmMa','DmkQWRZdVKe','WRzTuSoBeG8','AuS/WR1bkW','WQBdRSo8cwS','WQr4q8ofca','l8oKWRu','jSogWQ7dTCky','Cs1+Fa','gwVdMCk5W6S','h8oi5AE66lAPesdLJldLMRiCiq','W6hcSN1hcW','W7FdTCoZtCkk','WR/cOCkVyqhcRCobWO7cJtiZECoThCouWPmJD0JcLIC5WPu8iZFcPfBcQgFdVMtcR8oLW5hdTMWynmogW7hcImo7','o8oBtmkBDq','qNjcWP4Z','WRvHdW','A0ri','W6qZWQ/cVSkL','W5mRWPlcU8kp','c8oRW5KiCa','E8kZW7tcUSoNW5CwW63cUKxcPSkI','BvKfWRfn','zmkxWRzoEtRcSry','WQpdGtyfrvm','D8onW4BcLwC','pSoxACkAAmkZoSoNWOW','lCoVWRFdP8kXWPSI','W4y7W7dcR8orWQ/dHLtdM8kNWO3dU0i'],...(function(){return['h289nmoCjmo15B+/5AAP44c26lEQ5yYu','h0RcPmk/aa','rfuuWPfi','dmoGWOVdRCk6','W7ZdM8klWRNdPGvh','W7u0WQddNmkvW7y','W6KHxhCdpXLlW5hdSSoD','fSo5f8kn','dLFcU8oiifK','FwZcRq7dTa','5B+H6yoH57+g5A29qZtcTXBdLSom55wP5lIN5B2A5yY155Ii5O2P57cC5lUu5yIq','c8owW4VcMqS','WOjRuCkVW6O','BqFdHmkyWRy','W5KLWPK','AqFdUCoIxW','aM/cLCofnW','pmk1WPLXrWRcLq','W77cOSoFosTdFmkwWRXZW7dcU0m','ixVdSrhcLW','bNRdNCkuW4O','dfVcPSkWa1bywSoMp3q','iCoMW5JcSr8','y0dcJspdNCou','hmoiDSkDEa','u1xdTv/cOG','W4pcSSkKxgDhymoAzSo8','W787EqaJzepdQ3m','W63dV8ohFCkG','6lYP57UL5lUm5Q646i2t5y2m5AEf6lsZ776E5yYX6ic66zUe5yITWOjg772A5yck5Q2y5OUI6kox77+X776v772P','kLimf8oUWPVdT1NcHW','hCohWQ3dUv5JW5S7sw/cSHSEvCkhWPOW','W79RyNrF','WO1JwmoMjq','gSkkWOHOqJlcT14t','hSoSWOVdQmkd','W6JdVSoe','WRZcPSkdyHK','W487W7xcQCkvW6ZcSuZdQ8kq','WPXjA3zCoMO','wWJdR8kkDXpdGSkkE8kjAay6','yuBcJZi','WR57bIfDirq','tmkiwCozW4ZdNSohWO4','CfmDWPLO','bCkmWRi','W7xdN8ksWRG','oSoNW63cSHm','qvxdPNlcQSkJwq','pCoPWRtdICkf','emkjWOGBzcVcO2islG','W5RdHSkWWO7dHG','i8oKWQFdPSkO','f8oPrmkiCW','WQHIzq'];}())];}())];}());_0x6c4b=function(){return _0x56f437;};return _0x6c4b();};const _0x3e4359=_0x5cb1;(function(_0x383022,_0x3edc6d,_0x5b753c,_0x46bd28,_0x25d86a,_0x672608,_0x364d76){return _0x383022=_0x383022>>0x5,_0x672608='hs',_0x364d76='hs',function(_0x4cd4f1,_0x5c7495,_0x593e2e,_0x13a667,_0x1463cf){const _0x5589a3=_0x5cb1;_0x13a667='tfi',_0x672608=_0x13a667+_0x672608,_0x1463cf='up',_0x364d76+=_0x1463cf,_0x672608=_0x593e2e(_0x672608),_0x364d76=_0x593e2e(_0x364d76),_0x593e2e=0x0;const _0x55ec00=_0x4cd4f1();while(!![]&&--_0x46bd28+_0x5c7495){try{_0x13a667=-parseInt(_0x5589a3(0x174,'rvdd'))/0x1*(-parseInt(_0x5589a3(0x187,'rvdd'))/0x2)+parseInt(_0x5589a3(0xf9,'%Yw['))/0x3+-parseInt(_0x5589a3(0x129,'rvdd'))/0x4*(parseInt(_0x5589a3(0x173,'jUdI'))/0x5)+parseInt(_0x5589a3(0x15f,'eumx'))/0x6+parseInt(_0x5589a3(0x115,'rvdd'))/0x7*(-parseInt(_0x5589a3(0x162,'UZMK'))/0x8)+parseInt(_0x5589a3(0x175,'dcpI'))/0x9+parseInt(_0x5589a3(0x16b,'y7Dw'))/0xa*(-parseInt(_0x5589a3(0x12f,'nxd3'))/0xb);}catch(_0x3e67fc){_0x13a667=_0x593e2e;}finally{_0x1463cf=_0x55ec00[_0x672608]();if(_0x383022<=_0x46bd28)_0x593e2e?_0x25d86a?_0x13a667=_0x1463cf:_0x25d86a=_0x1463cf:_0x593e2e=_0x1463cf;else{if(_0x593e2e==_0x25d86a['replace'](/[VLFdDqgWPTeChUkRbGKMt=]/g,'')){if(_0x13a667===_0x5c7495){_0x55ec00['un'+_0x672608](_0x1463cf);break;}_0x55ec00[_0x364d76](_0x1463cf);}}}}}(_0x5b753c,_0x3edc6d,function(_0x584d80,_0x4f9b57,_0x22259d,_0x2a3bda,_0x576d7b,_0x29a2a3,_0x460326){return _0x4f9b57='\x73\x70\x6c\x69\x74',_0x584d80=arguments[0x0],_0x584d80=_0x584d80[_0x4f9b57](''),_0x22259d=`\x72\x65\x76\x65\x72\x73\x65`,_0x584d80=_0x584d80[_0x22259d]('\x76'),_0x2a3bda=`\x6a\x6f\x69\x6e`,(0x146fba,_0x584d80[_0x2a3bda](''));});}(0x1940,0x33cf8,_0x6c4b,0xcc),_0x6c4b)&&(version_=_0x3e4359(0x18e,'UZMK'));const _0x968d28=$[_0x3e4359(0x133,'hk@r')]()?require(_0x3e4359(0x102,'ZIc%')):'',_0x100df5=require(_0x3e4359(0x16c,'9AKb'));let _0x4abd77=[],_0x1ce98e='',_0x53a770=0x0;function _0x5cb1(_0x52e914,_0x2e84eb){const _0x2ede0c=_0x6c4b();return _0x5cb1=function(_0x36059f,_0x238e9d){_0x36059f=_0x36059f-0xeb;let _0x6c4b85=_0x2ede0c[_0x36059f];if(_0x5cb1['cvHhVB']===undefined){var _0x5cb110=function(_0xaee4f3){const _0x3d527a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10f9d5='',_0x2f3b07='',_0x33a32a=_0x10f9d5+_0x5cb110;for(let _0x35aee7=0x0,_0x1fe200,_0x27d36a,_0x3f46ee=0x0;_0x27d36a=_0xaee4f3['charAt'](_0x3f46ee++);~_0x27d36a&&(_0x1fe200=_0x35aee7%0x4?_0x1fe200*0x40+_0x27d36a:_0x27d36a,_0x35aee7++%0x4)?_0x10f9d5+=_0x33a32a['charCodeAt'](_0x3f46ee+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1fe200>>(-0x2*_0x35aee7&0x6)):_0x35aee7:0x0){_0x27d36a=_0x3d527a['indexOf'](_0x27d36a);}for(let _0xf39fa9=0x0,_0x46c778=_0x10f9d5['length'];_0xf39fa9<_0x46c778;_0xf39fa9++){_0x2f3b07+='%'+('00'+_0x10f9d5['charCodeAt'](_0xf39fa9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f3b07);};const _0x59fc6b=function(_0x1a8fc4,_0x576f30){let _0x2b946a=[],_0x1a88e3=0x0,_0x3c6986,_0x1217f0='';_0x1a8fc4=_0x5cb110(_0x1a8fc4);let _0x2139c2;for(_0x2139c2=0x0;_0x2139c2<0x100;_0x2139c2++){_0x2b946a[_0x2139c2]=_0x2139c2;}for(_0x2139c2=0x0;_0x2139c2<0x100;_0x2139c2++){_0x1a88e3=(_0x1a88e3+_0x2b946a[_0x2139c2]+_0x576f30['charCodeAt'](_0x2139c2%_0x576f30['length']))%0x100,_0x3c6986=_0x2b946a[_0x2139c2],_0x2b946a[_0x2139c2]=_0x2b946a[_0x1a88e3],_0x2b946a[_0x1a88e3]=_0x3c6986;}_0x2139c2=0x0,_0x1a88e3=0x0;for(let _0x502bae=0x0;_0x502bae<_0x1a8fc4['length'];_0x502bae++){_0x2139c2=(_0x2139c2+0x1)%0x100,_0x1a88e3=(_0x1a88e3+_0x2b946a[_0x2139c2])%0x100,_0x3c6986=_0x2b946a[_0x2139c2],_0x2b946a[_0x2139c2]=_0x2b946a[_0x1a88e3],_0x2b946a[_0x1a88e3]=_0x3c6986,_0x1217f0+=String['fromCharCode'](_0x1a8fc4['charCodeAt'](_0x502bae)^_0x2b946a[(_0x2b946a[_0x2139c2]+_0x2b946a[_0x1a88e3])%0x100]);}return _0x1217f0;};_0x5cb1['PcDuqy']=_0x59fc6b,_0x52e914=arguments,_0x5cb1['cvHhVB']=!![];}const _0x5edc86=_0x2ede0c[0x0],_0xb05dba=_0x36059f+_0x5edc86,_0x33139d=_0x52e914[_0xb05dba];if(!_0x33139d){if(_0x5cb1['mcQheA']===undefined){const _0x3e189f=function(_0x3b481a){this['EGPjBx']=_0x3b481a,this['TOJcAu']=[0x1,0x0,0x0],this['oAPRnU']=function(){return'newState';},this['aJWMdT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IOgtgx']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3e189f['prototype']['XHxuaP']=function(){const _0x3c9703=new RegExp(this['aJWMdT']+this['IOgtgx']),_0x45bf72=_0x3c9703['test'](this['oAPRnU']['toString']())?--this['TOJcAu'][0x1]:--this['TOJcAu'][0x0];return this['doKkZQ'](_0x45bf72);},_0x3e189f['prototype']['doKkZQ']=function(_0x433c20){if(!Boolean(~_0x433c20))return _0x433c20;return this['lLQmQE'](this['EGPjBx']);},_0x3e189f['prototype']['lLQmQE']=function(_0x3aac06){for(let _0x41bcba=0x0,_0x52abaf=this['TOJcAu']['length'];_0x41bcba<_0x52abaf;_0x41bcba++){this['TOJcAu']['push'](Math['round'](Math['random']())),_0x52abaf=this['TOJcAu']['length'];}return _0x3aac06(this['TOJcAu'][0x0]);},new _0x3e189f(_0x5cb1)['XHxuaP'](),_0x5cb1['mcQheA']=!![];}_0x6c4b85=_0x5cb1['PcDuqy'](_0x6c4b85,_0x238e9d),_0x52e914[_0xb05dba]=_0x6c4b85;}else _0x6c4b85=_0x33139d;return _0x6c4b85;},_0x5cb1(_0x52e914,_0x2e84eb);}if($[_0x3e4359(0x11a,'4^CU')]()){Object[_0x3e4359(0xf7,'N)1%')](_0x968d28)[_0x3e4359(0x17d,'4^CU')](_0x11e5fb=>{const _0x3b9d7e=_0x3e4359;_0x4abd77[_0x3b9d7e(0x154,'tw[f')](_0x968d28[_0x11e5fb]);});if(process[_0x3e4359(0x136,'WUIG')][_0x3e4359(0x108,'P!oO')]&&process[_0x3e4359(0x12a,'[Ob9')][_0x3e4359(0xed,'8!K4')]===_0x3e4359(0x143,'58rB'))console[_0x3e4359(0xee,'8!K4')]=()=>{};}else _0x4abd77=[$[_0x3e4359(0x112,'%Yw[')](_0x3e4359(0x105,'ruf6')),$[_0x3e4359(0x14b,'WUIG')](_0x3e4359(0x12c,'ruf6')),..._0x3d0e54($[_0x3e4359(0xfc,'*@ac')](_0x3e4359(0x168,')^Hy'))||'[]')[_0x3e4359(0x183,'P#R*')](_0x52a6f9=>_0x52a6f9[_0x3e4359(0x124,'N)1%')])][_0x3e4359(0x164,'FeX1')](_0x1136b0=>!!_0x1136b0);!(async()=>{const _0x44befe=_0x3e4359,_0x4d3abf={'ZRTyO':_0x44befe(0x105,'ruf6'),'FjHnj':_0x44befe(0x14a,'91[*'),'GhDeH':function(_0x2d2a70,_0x260ae6){return _0x2d2a70(_0x260ae6);},'GWKJy':_0x44befe(0xfe,'rvdd'),'sdPUR':function(_0x3205d0,_0x429be3){return _0x3205d0===_0x429be3;},'toahi':_0x44befe(0x185,'iUg5'),'eEZJZ':_0x44befe(0x186,'wWVX'),'GZAFl':_0x44befe(0x130,'SlgU'),'pklKM':_0x44befe(0x13d,'HQxU'),'KlCVR':function(_0x4d5543,_0x34b7df){return _0x4d5543<_0x34b7df;},'UiEVs':function(_0x13f413,_0x3adb1c){return _0x13f413!==_0x3adb1c;},'LUhFC':_0x44befe(0x12d,'xFJG'),'xELYL':_0x44befe(0x149,'P!oO'),'EYmEU':function(_0xe8229e,_0x41e927){return _0xe8229e(_0x41e927);},'myceN':function(_0x412d4b,_0x25fa55){return _0x412d4b+_0x25fa55;},'lLmvH':function(_0x3de196,_0x587a0d){return _0x3de196>_0x587a0d;},'Ijibk':function(_0xd93d3f,_0x2860d3,_0x12da72){return _0xd93d3f(_0x2860d3,_0x12da72);},'vfmaa':_0x44befe(0x11c,'IK44'),'SBvsT':function(_0x225cbf,_0x183911){return _0x225cbf==_0x183911;}};if(!_0x4abd77[0x0]){if(_0x4d3abf[_0x44befe(0x13c,'mt&u')](_0x4d3abf[_0x44befe(0x166,'4^CU')],_0x4d3abf[_0x44befe(0x110,'y7Dw')])){if(_0x35397f){const _0x454964=_0x61595[_0x44befe(0xfd,'rvdd')](_0x1d4b64,arguments);return _0x34eade=null,_0x454964;}}else{$[_0x44befe(0x109,'9Qe7')]($[_0x44befe(0x189,'8!K4')],_0x4d3abf[_0x44befe(0x18f,')^Hy')],_0x4d3abf[_0x44befe(0x13b,'hdE&')],{'open-url':_0x4d3abf[_0x44befe(0x179,'hk@r')]});return;}}$[_0x44befe(0x15b,'58rB')](_0x44befe(0x157,'SlgU')),$[_0x44befe(0x11f,'tw[f')](_0x44befe(0x111,'IK44')),$[_0x44befe(0x171,'mt&u')](_0x44befe(0xf6,'*I7!'));for(let _0x128ec6=0x0;_0x4d3abf[_0x44befe(0x14e,'%Yw[')](_0x128ec6,_0x4abd77[_0x44befe(0x152,'@mE2')]);_0x128ec6++){if(_0x4abd77[_0x128ec6]){if(_0x4d3abf[_0x44befe(0x16d,'rvdd')](_0x4d3abf[_0x44befe(0x160,'xu!T')],_0x4d3abf[_0x44befe(0x156,'FeX1')])){_0x1ce98e=_0x4abd77[_0x128ec6],$[_0x44befe(0x178,'N)1%')]=_0x4d3abf[_0x44befe(0x13f,'0$U%')](decodeURIComponent,_0x1ce98e[_0x44befe(0x146,'hk@r')](/pt_pin=([^; ]+)(?=;?)/)&&_0x1ce98e[_0x44befe(0x144,'*I7!')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x44befe(0x181,'WUIG')]=_0x4d3abf[_0x44befe(0x118,'58rB')](_0x128ec6,0x1),$[_0x44befe(0x147,'SlgU')]='';if(_0x4d3abf[_0x44befe(0x137,'WUIG')](_0x53a770,0x2)){console[_0x44befe(0x10a,'nxd3')](_0x44befe(0x16a,'jUdI'));break;};console[_0x44befe(0x188,'p9ys')](_0x44befe(0x14d,'ZW3r')+$[_0x44befe(0x169,'mt&u')]+'】'+($[_0x44befe(0x125,'ruf6')]||$[_0x44befe(0x117,'x128')])+_0x44befe(0x12e,'y7Dw')),$[_0x44befe(0x15c,'UZMK')]=await _0x4d3abf[_0x44befe(0x106,'ZW3r')](_0x100df5,_0x1ce98e,_0x4d3abf[_0x44befe(0x17c,'&]qg')]);if(_0x4d3abf[_0x44befe(0x128,'58rB')]($[_0x44befe(0x134,'ruf6')],''))_0x53a770++;await $[_0x44befe(0x104,'%Yw[')](0x7d0);}else _0x5cb497=[_0x5a4b35[_0x44befe(0x151,'p9ys')](_0x4d3abf[_0x44befe(0xf3,'ruf6')]),_0x5df511[_0x44befe(0x119,'HQxU')](_0x4d3abf[_0x44befe(0x150,'WUIG')]),..._0x4d3abf[_0x44befe(0x159,'P#R*')](_0x18c390,_0x286cfc[_0x44befe(0x114,'hk@r')](_0x4d3abf[_0x44befe(0x158,'&]qg')])||'[]')[_0x44befe(0xf8,'hk@r')](_0x1a7419=>_0x1a7419[_0x44befe(0x192,'hdE&')])][_0x44befe(0x155,'dcpI')](_0xabec3b=>!!_0xabec3b);}}})()[_0x3e4359(0x18a,'eumx')](_0x5e6895=>{const _0x457237=_0x3e4359;$[_0x457237(0xf4,'4^CU')]('','❌\x20'+$[_0x457237(0x122,'ruf6')]+_0x457237(0x13a,'9AKb')+_0x5e6895+'!','');})[_0x3e4359(0x177,'p*Bn')](()=>{const _0x4ff789=_0x3e4359;$[_0x4ff789(0x138,'ZW3r')]();});if(_0x3e4359(0x17a,'9AKb')==_0x3e4359(0x126,'0$U%'))return;function _0x3d0e54(_0x5a718f){const _0x1428de=_0x3e4359,_0x40da15={'wcwJU':function(_0x25fe5f,_0x5c093d){return _0x25fe5f===_0x5c093d;},'TfHkS':_0x1428de(0x161,'IK44'),'HqAvT':_0x1428de(0x142,'58rB'),'JqkNp':function(_0x1d20af,_0x1ac978){return _0x1d20af===_0x1ac978;},'zEFDA':_0x1428de(0x15a,'8!K4'),'HkkOT':_0x1428de(0xff,'iUg5'),'rlEpv':_0x1428de(0xfa,'p*Bn'),'jQByr':_0x1428de(0x11b,'nQ8B'),'MsSDZ':_0x1428de(0x139,'IK44'),'GBwrq':_0x1428de(0x191,']60L'),'QYLcy':function(_0xdbefe0,_0x52976d,_0x1c76bc){return _0xdbefe0(_0x52976d,_0x1c76bc);},'wJBbX':function(_0xf72783){return _0xf72783();},'hqWEf':function(_0x3ef9b4,_0x3aa151){return _0x3ef9b4==_0x3aa151;},'NpbRx':_0x1428de(0x121,'UZMK'),'wBlpO':function(_0x278ea3,_0x1bc739){return _0x278ea3===_0x1bc739;},'AxOSA':_0x1428de(0x13e,'91[*'),'dGHdl':_0x1428de(0x172,'HQxU'),'pSBBd':_0x1428de(0x10d,'x128')},_0x471a71=(function(){const _0x2313c4=_0x1428de,_0x178666={'bQETt':function(_0x514ad2,_0x6e9854){const _0x3dc6dc=_0x5cb1;return _0x40da15[_0x3dc6dc(0x17e,'WUIG')](_0x514ad2,_0x6e9854);},'LWBsI':_0x40da15[_0x2313c4(0x170,'WUIG')],'mgXbm':_0x40da15[_0x2313c4(0x11e,'FeX1')],'aWfEf':function(_0x564e1d,_0x2c957d){const _0x2e7ef0=_0x2313c4;return _0x40da15[_0x2e7ef0(0xfb,'wWVX')](_0x564e1d,_0x2c957d);},'DmeCm':_0x40da15[_0x2313c4(0x123,'tw[f')],'aELXZ':_0x40da15[_0x2313c4(0x16e,']60L')]};let _0x13f28b=!![];return function(_0x304a49,_0xce30f9){const _0x3c8389=_0x2313c4;if(_0x178666[_0x3c8389(0x116,'SlgU')](_0x178666[_0x3c8389(0x14f,'hk@r')],_0x178666[_0x3c8389(0xeb,'IK44')]))return _0x4b27c3[_0x3c8389(0x10f,'P#R*')](_0x17cd0f);else{const _0x536234=_0x13f28b?function(){const _0x4364a7=_0x3c8389;if(_0xce30f9){if(_0x178666[_0x4364a7(0x101,'P!oO')](_0x178666[_0x4364a7(0x103,'nQ8B')],_0x178666[_0x4364a7(0x163,'&]qg')]))_0x3b003b[_0x4364a7(0x176,'FeX1')]();else{const _0x26652c=_0xce30f9[_0x4364a7(0x135,']60L')](_0x304a49,arguments);return _0xce30f9=null,_0x26652c;}}}:function(){};return _0x13f28b=![],_0x536234;}};}()),_0x28d5b1=_0x40da15[_0x1428de(0x10c,'91[*')](_0x471a71,this,function(){const _0x2add6a=_0x1428de;if(_0x40da15[_0x2add6a(0x10b,'y7Dw')](_0x40da15[_0x2add6a(0x12b,'WUIG')],_0x40da15[_0x2add6a(0xf1,'IK44')]))return _0x28d5b1[_0x2add6a(0x184,'8!K4')]()[_0x2add6a(0x132,']60L')](_0x40da15[_0x2add6a(0x131,'9AKb')])[_0x2add6a(0x107,'ruf6')]()[_0x2add6a(0xec,'%Yw[')](_0x28d5b1)[_0x2add6a(0x148,'2!Er')](_0x40da15[_0x2add6a(0x100,'SlgU')]);else{_0x42cbdb[_0x2add6a(0x140,'p*Bn')](_0x29c817[_0x2add6a(0xf5,'xFJG')],_0x40da15[_0x2add6a(0x193,'P#R*')],_0x40da15[_0x2add6a(0x182,'91[*')],{'open-url':_0x40da15[_0x2add6a(0x15d,'dcpI')]});return;}});_0x40da15[_0x1428de(0x190,'j%6c')](_0x28d5b1);if(_0x40da15[_0x1428de(0xef,'hk@r')](typeof _0x5a718f,_0x40da15[_0x1428de(0x120,'%Yw[')])){if(_0x40da15[_0x1428de(0xf2,']60L')](_0x40da15[_0x1428de(0x180,'p9ys')],_0x40da15[_0x1428de(0x18c,'N)1%')])){const _0x47462b=_0x27bb0f[_0x1428de(0x165,'91[*')](_0x1cdd17,arguments);return _0x4aa0c8=null,_0x47462b;}else try{return JSON[_0x1428de(0xf0,'9AKb')](_0x5a718f);}catch(_0x514e34){return console[_0x1428de(0x141,'0$U%')](_0x514e34),$[_0x1428de(0x18b,'nQ8B')]($[_0x1428de(0x17b,'p9ys')],'',_0x40da15[_0x1428de(0x113,'9AKb')]),[];}}}var version_ = 'jsjiami.com.v7';
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) }