/*
#临时小豆

只运行一次即可，多次无效

[task_local]
#临时小豆
1 1 1 1 1 jd_qy.js, tag=临时小豆, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true*/

const $ = new Env("临时小豆");
var version_='jsjiami.com.v7';function iii1II(_0x338840,_0x5a4e51){const _0x40f8e1=Iii11l();return iii1II=function(_0x3c4ebf,_0x1f3712){_0x3c4ebf=_0x3c4ebf-0x149;let _0xba1d8=_0x40f8e1[_0x3c4ebf];if(iii1II['bPzjQR']===undefined){var _0x2b2bf1=function(_0x3c7975){const _0x4cda60='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49de0d='',_0x3d58bd='';for(let _0x4ab86b=0x0,_0x388719,_0x122b7e,_0x5279e4=0x0;_0x122b7e=_0x3c7975['charAt'](_0x5279e4++);~_0x122b7e&&(_0x388719=_0x4ab86b%0x4?_0x388719*0x40+_0x122b7e:_0x122b7e,_0x4ab86b++%0x4)?_0x49de0d+=String['fromCharCode'](0xff&_0x388719>>(-0x2*_0x4ab86b&0x6)):0x0){_0x122b7e=_0x4cda60['indexOf'](_0x122b7e);}for(let _0x3dde32=0x0,_0x49984b=_0x49de0d['length'];_0x3dde32<_0x49984b;_0x3dde32++){_0x3d58bd+='%'+('00'+_0x49de0d['charCodeAt'](_0x3dde32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3d58bd);};const _0x15bfdb=function(_0x28e880,_0x59b16c){let _0x168589=[],_0x12b05d=0x0,_0x44e041,_0x34685a='';_0x28e880=_0x2b2bf1(_0x28e880);let _0xfa3f0a;for(_0xfa3f0a=0x0;_0xfa3f0a<0x100;_0xfa3f0a++){_0x168589[_0xfa3f0a]=_0xfa3f0a;}for(_0xfa3f0a=0x0;_0xfa3f0a<0x100;_0xfa3f0a++){_0x12b05d=(_0x12b05d+_0x168589[_0xfa3f0a]+_0x59b16c['charCodeAt'](_0xfa3f0a%_0x59b16c['length']))%0x100,_0x44e041=_0x168589[_0xfa3f0a],_0x168589[_0xfa3f0a]=_0x168589[_0x12b05d],_0x168589[_0x12b05d]=_0x44e041;}_0xfa3f0a=0x0,_0x12b05d=0x0;for(let _0x5d5459=0x0;_0x5d5459<_0x28e880['length'];_0x5d5459++){_0xfa3f0a=(_0xfa3f0a+0x1)%0x100,_0x12b05d=(_0x12b05d+_0x168589[_0xfa3f0a])%0x100,_0x44e041=_0x168589[_0xfa3f0a],_0x168589[_0xfa3f0a]=_0x168589[_0x12b05d],_0x168589[_0x12b05d]=_0x44e041,_0x34685a+=String['fromCharCode'](_0x28e880['charCodeAt'](_0x5d5459)^_0x168589[(_0x168589[_0xfa3f0a]+_0x168589[_0x12b05d])%0x100]);}return _0x34685a;};iii1II['RpPCWN']=_0x15bfdb,_0x338840=arguments,iii1II['bPzjQR']=!![];}const _0x571404=_0x40f8e1[0x0],_0xf9d6c0=_0x3c4ebf+_0x571404,_0x2581b1=_0x338840[_0xf9d6c0];return!_0x2581b1?(iii1II['SPzJmH']===undefined&&(iii1II['SPzJmH']=!![]),_0xba1d8=iii1II['RpPCWN'](_0xba1d8,_0x1f3712),_0x338840[_0xf9d6c0]=_0xba1d8):_0xba1d8=_0x2581b1,_0xba1d8;},iii1II(_0x338840,_0x5a4e51);}const IllIi1=iii1II;(function(IIliIi,IllIiI,i1il1,I1l111,IIii1l,I1iIII,liiI11){return IIliIi=IIliIi>>0x8,I1iIII='hs',liiI11='hs',function(ililI1,IIii1i,i1ili,Iiill1,I1iII1){const iIIii1=iii1II;Iiill1='tfi',I1iIII=Iiill1+I1iIII,I1iII1='up',liiI11+=I1iII1,I1iIII=i1ili(I1iIII),liiI11=i1ili(liiI11),i1ili=0x0;const lilII1=ililI1();while(!![]&&--I1l111+IIii1i){try{Iiill1=parseInt(iIIii1(0x188,'S^dq'))/0x1+parseInt(iIIii1(0x208,'Ytd^'))/0x2*(parseInt(iIIii1(0x1c3,'B5@z'))/0x3)+parseInt(iIIii1(0x1f9,'H7Sp'))/0x4*(parseInt(iIIii1(0x19f,'tqR@'))/0x5)+parseInt(iIIii1(0x1e7,'0F[*'))/0x6*(parseInt(iIIii1(0x212,'K)L1'))/0x7)+parseInt(iIIii1(0x1be,'pWTL'))/0x8+-parseInt(iIIii1(0x19b,'@nK('))/0x9*(parseInt(iIIii1(0x1ef,'H7Sp'))/0xa)+-parseInt(iIIii1(0x21a,'r3JW'))/0xb;}catch(iill1){Iiill1=i1ili;}finally{I1iII1=lilII1[I1iIII]();if(IIliIi<=I1l111)i1ili?IIii1l?Iiill1=I1iII1:IIii1l=I1iII1:i1ili=I1iII1;else{if(i1ili==IIii1l['replace'](/[AIqkuLxSrlQXGtFWgnEO=]/g,'')){if(Iiill1===IIii1i){lilII1['un'+I1iIII](I1iII1);break;}lilII1[liiI11](I1iII1);}}}}}(i1il1,IllIiI,function(iii1l1,IIliIl,II11ll,liiI1I,ililII,lI1II1,i1ilII){return IIliIl='\x73\x70\x6c\x69\x74',iii1l1=arguments[0x0],iii1l1=iii1l1[IIliIl](''),II11ll='\x72\x65\x76\x65\x72\x73\x65',iii1l1=iii1l1[II11ll]('\x76'),liiI1I='\x6a\x6f\x69\x6e',(0x13b076,iii1l1[liiI1I](''));});}(0xbc00,0x81bdb,Iii11l,0xbe),Iii11l)&&(version_=Iii11l);const illlIi=$[IllIi1(0x1d5,'K)L1')]()?require(IllIi1(0x1dc,'Ma8u')):'',I1lIii=$['isNode']()?require(IllIi1(0x160,'S^dq')):'',IiI1I=require(IllIi1(0x1f4,'0F[*')),illlIl=require(IllIi1(0x1c1,'pWTL')),i11ill=require(IllIi1(0x1c9,'@nK('));let IIIIIi=[],IIIIIl='',I1lIil,IIIl1i,liiII1={};function Iii11l(){const iii1li=(function(){return[version_,'ISjXxsQEjkiIOaGnmQLiL.OcuWom.FAvrx7tlgGq==','omkGqa','WQrXu2Hp','l8kdk8oCwG','wmkyW6VcUmkckLTSWOe','W5VcRGCTWQddUZr4W4NcSsNcGLe','mwu6zSoEWQNdKMFcLqHQWPu6mCk8tSoFW7RdOmkyWQ/cSmopW7TouW','omk6i8oUEG','hmosW5C','BXhdLmoQW7VdLMuDW77cT8kPW4VdOq','w8kbW4q','o3uT','CG/cGSkOWQdcHcmKW5dcU8ocW7BdKCo7B28+W5Gg','bMW8wW','mCkPW5ygrmkEWRLx','WR1cy8k+DahdQhq','WQVdTZhcSmow','W4/cNCk+','lIFdTItcMG','W7ifltpdRq','WRWDW5GepCoevYVcHmoWhmozFg8SAMdcONn2','CsK/ESoMW5COe2qRqSkhxXCOdWiFW7i','WPzozmk/qG','6k+e5yM66zI25OEu5zY5ESkBW78jhEI8S+whO+AGUUs+OoAuQowgGEwUM8om5BQg6k2O6ykM6l+t6iAk5P+55y+X6i6G5y2sW7KipJJcKaW','W4WwaW','WPBcMEwMQ+I2OSoMBUwnREwAG8kera','W43cTCkUmmkF','BmkKghddKq','hmo4W7evWRa','y1BdRxVdLq','WR01wG','aCk/WORcK0a','W5hcSsaNWQRdQG','W7JcRt47WPi','6kYa5yU56zQZ5OE15zYzaCoss8owxUI9SEwhLUAIU+s9Q+AuR+wgIUwTSSoG5BMg6kY16ycM6l6v6iwO5P2a5yYU6i6y5y+mWR4gF8kObHK','pN8XWPHh','WPxdJrpcSCoz','gJTCwtDhjmok','hCk4WPRcRgm','gs/dUwJdSYCqCCklWPjHW5a','W7lcTXC4WPu','r8o8W4mmWPGhyq','WRVdPJm','Bmo6aKLGoa3dSWa','p3iiWQzd','DhpcN3Cv','EtFcOaur','F8kcl2JdVarRkW','W5NdKCo7W7xcHJO','WRRdVSkaWOddTMxdM8k5FqRdVM4z','W5GNWOXwz8oki8ogiCkYq8kHsa','W4Wwa1pcJCka','AqeYW5ZcOa','W4ZcLb4SWPq','Cmo6W506sG','W71XW7Geaa','y8oWW5tcLKG','BIJcMrit','dSozDthcOLfrlLL8rt8','WR/dLsdcUmohzG','vmoGW43cV3bmWPu','WRmsWONcULW','W4NcRaiWWOi','W4a5W5Oqo8kqz8oPn8kriCkEvfldV3lcJCohqvb1','j1SOESoMW6y1W6hdS8opWRpcKCoQr8kYWQOsWOtcLCkFW6jylgrqWPyUamohWQhcVCogn8oTwmk8yIinW4VdICofWQ8','taCmW5VcHa','n3GTFCoJW7lcKc0','n3aJCW','d8oEDZdcO1Gxieb5vJz0','W71Ntq','zcfSW7GyWO9jymo6pJZdKv1S','5OID5Awt5Aw+5QY35lM577++5lMI5Q6A6l246kky5ys75OQ5','WPW6WQFdIWG','kZPmyXq','WRddMv9yB8ov'].concat((function(){return['vCklW5K/W58','xdBdOCksW6y','j3VcJW','5lQF5AsO6k2k5lU3772F5lUR5RYL5zMz6BI6','W7nkW48Hna','xxddReZdTq','WPLRhfdcO8kZWOS2DWG','cNS8Fmo/','qCkeWODjW5PyAcpdHCoXW4dcIq','y8osW6Onsa','aCoTW5m8WOa','WPXnWQHJW63dGa','aLxcKSkfWPK','WPnOsM9D','WOPTh1JcP8k+WQSMyH5chNJcGuvgxmkJWR4','WRDPDmoZWRe','xdZdSSkaW44','WP9YsmkkqNNcKHZdVv3cI8kDWPdcQ3XRW6xcICotW7ytFrmCW7Wq','WO/cGX09WRtdPbS','DWeTW4O','Dq8N','as/cPSk2WPK','keKxFSotxCovqa','uCkvdfldPG','5Q6ZC8oUiEAlRUwNSq','nxqGCCozW7S','WQG3cg3cMav8WRupW7ddHSkYW4bB','wI4TzSoz','W5qymJtdMa','W5uhfIBdNSoLWPJcI8kapG','CmkVog3dSG','aCkucmojqq','W6hcJW0YWP8','WQb1tSoPWOm','jYNcJW3dUW','5OQv5lUh776y','WRVcLs7cOX9uWQ8ArHxdJSkDcvBdHrNdS8oWWRaGcmkIpsHzWRBdVmktWRyxWOioW77dJ8kBuerejw0jWQCN','WRddRcdcG8kDs0K0W4NcGCklWO7dS8kJuSoGW6hcI0ry','WR0iWOO','amopW5KdWOCIEqNdPW','CSoYW4/cUv0','5Rsh5yMf54cR54If','WRHOjgxcUW','gCkTWOpcQvy','kgdcKmkkWRm','WRtcIs3cPaq','yCknW7iAW70','CCkTW7lcQSkE','cZtcTCkvWQ8','WPvwBConWOrg','zCoPW50exmkA','WP85WOJdItW','AtFcOZiL','W5BdLSo9','W4b3W6G/gG','W43dKCo/W6lcQZ3cVGZdIHb1v8or','WOT4W4O','WO3cRWeeWQhdTHG','uCoQW53cOG','WP7dVCk3jhu','WQ5/wa','lITnqG9ppCogvqy1WOzpxCopwZqptW','ualdTmkiW5hcTK5j','dd7cMuuhm8okWOyckG','W4jZWRjFW5hdUa','W5VcQWP1W7y','vgJdQ3/dNdC','W4tcL8kT','W7K+hfhcVG','W4RcOWaSWQhdOG','lw8KD8o0','W4RcS8kHjmk4','W61Juc4','44gF5O+/56wM44cB6k2I5yAu6i6T5yYy5lI95lQ26lE05yYi5lUesCoZWQ8DW4pcK8o655M75O+s5lYX55sPF8kxyWRdQSkN55Mx5lIJ5lMf56+35yIn6i2Z5y6A','WQTMn8k7sSofAW','vYyfWPVcOG'].concat((function(){return['WRGyWPrBECknkq','pSkHuLW','W4TpwbxdQa','fSouW5WnWOCE','yrddPCkB','xSkQfKldHW','g3SNWQzfW5yDFmkoF0/cHcbGdctdIuTLW6GpWRhcRSorFG7cMmoVfCoOW4KgW6pcMHVcKCoZkbvxW5JcMGn1W7BdSGVcHLpdVuddJtOHW4yhEmk7W7dcVab5umk3omkeW5iTWRBdHqm6wSohW5LKWP7cUwT7ksBcJbJcRCkuqrFdUwBdGZdcTXJdRdddN1NcOYtcNSoHxtpdPmkvW7fRW4eNoSkNWOJdQSoJqKyqWR8dWPlcRSkdWRO+W4ldH8oWWOOAx1i2cCo+oSk0CSkTmCkhW4mLjmk4W6ClhSk/sLRcSu8jW67dMa','W4aoW6e','W55ZW7q9pW','WRRcJZ7cTHq','wNpdRq','sMxcH1e3zSkkW4iBpCownSo0iSkSpSo5vmkZWRBcVWFdP24CEcddQXJcUColWOxcRYZdMmkZrNWZW47dNLVcLZuhhSkKWPCdW75bESk/W7hcLmkqAe7dTam1WRFdILGnnvaXW5rPCW','W4aodIxdQq','wCkFmK7dPGy','WRbMu3zo','W4ujW7iIWRddISkLlCkLWRKgWPVdVcZcMSocncVdLJe','ghOnuCoz','jwaVWQzhW50','WPLBb8k3Bq','AaldTG','W4esW7iMWQBcGSoZqCk9WQOhW5BdThe','ibVcIb7dQa','WPfhD8oAWOmuACocWRfLW4ZcHwm5imkEj2pdLtJdSCo4W7FcVYC2W6RcSb1iW6ldJSoWW4tcVSoLW5xcSSoKWQldK0VdS0tdNCodCqOThWdcMSkHDhNcOfJcRL7cTrL6WPJcUHlcRCoSW5ZcLmkgW58','WRu7sxG','WR0AWPNdPaW','WRi1wxW','sZtcUIKg','fYFdIXH2zmopWRqodSoxFa','W47cHI0PWQW','WObKjhVcIa','WRyoWOpdPbbSW7xcLSkCfq','CGu5W5W','ACkEjxhdMWbmcG','5OUY5lIc772g','5lI/5AE06k2d5lUS776s5lMc5RYh5zQx6BM9','WPrrlmk2sa','uCkcW54pW7b6','lSk6rfbfda','W53cHCo1W6dcKa','WPVdIYZcRmkp','W5xcNSkaf8kn','WRdcK8kWWQ3dRwtdMow9O+wLTEobTos6Vos4UEI2JUwmLW','WOFdP0jhvG','hshcSW','tJFcSsm','W5PvW709ia','WQmgWOObgmo0wGpcIa','jSkFWOJcH2T/zq','WQv1s1PFgSkvwmkUig0lW4PvCCoerGPPBa','WOa9sfdcTa','ymkVamoZzJmG','y8o0W4SS','AaekW4NcQq','w8odW53cL1K','ph8rzmoS','iYDE','5OQF5lI877+P56MB5Rgq','z8klW5eAeW','WOnLW5S','WP5hjvxcMW','WPvCza','eIddGrjWACktW5PtDSoyESo6AmkJpa','WP8rWQZdGWK','WRXYimk5','gtRcOmk1WO/dLWmxsSoJWRvDWRutxN/cPmoHWRyOj8k9BJRdLmkfWRXoWPn5vSk3W4mqoLu4WP/dMWHZBmop','W5ZdKmo0W6BcQYlcIW','v8o3W5JcRfjqWPxdQsalW67dSXe','W53dNmo0W5lcTslcOGldJav9vG','W7DXxG','W7ZcRSocW4dcOq','6k675yQ86zMp5Owi5z6kWRSHW79OW6tOV5tLH47MOk3KVzVMLjlLHONLRzHY5BQW6k+R6ycI6lYa6iwN5P6T5y6f6i6U5yYkWPqPpCoDW7/cJq','W7zTxG','jCooW5ulWQWnDqe'];}()));}()));}());Iii11l=function(){return iii1li;};return Iii11l();};if($['isNode']()){Object[IllIi1(0x18c,'hDSw')](I1lIii)['forEach'](lllill=>{IIIIIi['push'](I1lIii[lllill]);});if(process[IllIi1(0x1b6,'Uwt5')][IllIi1(0x216,'LLQs')]&&process[IllIi1(0x159,'0F[*')][IllIi1(0x1c4,'6lo(')]===IllIi1(0x1b7,')iVI'))console[IllIi1(0x198,'&[Ia')]=()=>{};}else IIIIIi=[$[IllIi1(0x1f1,'nNgl')](IllIi1(0x1e4,'H7Sp')),$['getdata']('CookieJD2'),...lllli($['getdata']('CookiesJD')||'[]')[IllIi1(0x1c0,'HsdQ')](ill11l=>ill11l['cookie'])][IllIi1(0x170,'Ytd^')](I1lIiI=>!!I1lIiI);!(async()=>{const lilIII=IllIi1,lllili={'OBeNX':function(IliiiI,Ill11){return IliiiI<Ill11;},'TVgvH':function(liiIII,li1i11){return liiIII+li1i11;},'BHBVx':function(iI11I1,il1i1l){return iI11I1+il1i1l;},'QguIG':lilIII(0x196,'99UK'),'AYQWs':lilIII(0x16d,'@nK('),'TouCe':function(IlIlll,IIIl1I){return IlIlll<IIIl1I;},'SPPSV':function(iil1ii){return iil1ii();},'ctxyc':function(IlIlli,il1i1i,lil111){return IlIlli(il1i1i,lil111);},'bGVAR':function(i11ilI,ii1ii1){return i11ilI+ii1ii1;},'aHXEs':function(llllI,lllil1){return llllI*lllil1;},'Lbalt':function(iil1il,ilil1I){return iil1il>ilil1I;}};if(!IIIIIi[0x0]){$[lilIII(0x180,'N5dN')]($['name'],'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取',lilIII(0x1ad,'&[Ia'),{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});return;}for(let i11il1=0x0;lllili[lilIII(0x154,'VF(o')](i11il1,IIIIIi[lilIII(0x219,'tZ4Z')]);i11il1++){if(IIIIIi[i11il1]){IIIIIl=IIIIIi[i11il1],$[lilIII(0x15f,'N5dN')]=decodeURIComponent(IIIIIl[lilIII(0x185,'VF(o')](/pt_pin=([^; ]+)(?=;?)/)&&IIIIIl['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[lilIII(0x176,'J5Va')]=lllili[lilIII(0x1d2,'Ma8u')](i11il1,0x1),$['canUseCoinAmount']=0x0,console['log'](''),console[lilIII(0x1df,'NB4K')](lllili['BHBVx'](lllili[lilIII(0x21f,'tqR@')](lllili['TVgvH'](lllili[lilIII(0x19e,'XGO@')],$[lilIII(0x16c,'iKgb')]),'】')+($[lilIII(0x1f7,'tZ4Z')]||$[lilIII(0x18d,'H7Sp')]),lllili['AYQWs'])),$['UA']=illlIl[lilIII(0x200,'sVem')]($[lilIII(0x1da,'BhzO')]);for(m=0x0;lllili[lilIII(0x1e3,'X!Pj')](m,0x3);m++){console[lilIII(0x214,'hDSw')]('进行第'+m+lilIII(0x218,'@nK(')),await lllili['SPPSV'](IIIl1l),await $[lilIII(0x169,'r3JW')](lllili[lilIII(0x14d,'gYUP')](parseInt,lllili[lilIII(0x172,'H7Sp')](lllili[lilIII(0x1cb,'6lo(')](Math['random'](),0x5dc),0x5dc),0xa));if(lllili['Lbalt'](m,0xa)){console['log'](lilIII(0x1fc,'ufqb'));break;}}await $['wait'](0x1f4);}}})()['catch'](ii1iiI=>{const Ii1ilI=IllIi1;$[Ii1ilI(0x1a9,'!Gu@')]('','❌\x20'+$['name']+Ii1ilI(0x1ce,'99UK')+ii1iiI+'!','');})[IllIi1(0x1ae,'99UK')](()=>{$['done']();});async function IIIl1l(){const II11i1=IllIi1,lllilI={'cIEDg':function(ilil11,illlI1){return ilil11==illlI1;},'QJEST':II11i1(0x192,'Uwt5'),'uINdJ':II11i1(0x1cc,'nNgl'),'AkCGt':function(IIIl11,I1lIi1){return IIIl11===I1lIi1;},'UgLtA':function(liiIIi,lil11I){return liiIIi+lil11I;},'hklWn':II11i1(0x18e,'WLwn'),'rMpDE':II11i1(0x1a5,'S^dq'),'AwvbL':II11i1(0x1ab,'VF(o'),'nGwAK':II11i1(0x20b,'nqy@'),'VHqmZ':II11i1(0x1bf,'sVem'),'VblVQ':'dcifGEju5TQw38c_Gg8-ug','HRqHm':II11i1(0x1c7,'#DBr'),'DNYBk':II11i1(0x17c,'nqy@')};return new Promise(async Iliii1=>{const iliIii=II11i1,iIiIi={'LBxng':function(lillIl,iIiIl){const iliIil=iii1II;return lllilI[iliIil(0x209,'B5@z')](lillIl,iIiIl);},'PumMY':lllilI[iliIii(0x193,'9gx*')],'Qxutw':lllilI[iliIii(0x1a8,'*&Cl')],'lXHYJ':function(iiilii,li1i1i){return lllilI['AkCGt'](iiilii,li1i1i);},'YMczQ':iliIii(0x1a3,'WLwn'),'GLyve':function(IlIli1,illIiI){return IlIli1!==illIiI;},'DovtQ':'aKgbU','vlYfY':function(lI1lli,Ill1l){const lill1i=iliIii;return lllilI[lill1i(0x1f6,'hDSw')](lI1lli,Ill1l);},'CpLTg':lllilI[iliIii(0x1d8,'HsdQ')],'RLoRJ':function(llI1Il,ii1iii){return llI1Il==ii1iii;},'HgCLs':function(i11iil,Ill1i){return i11iil!==Ill1i;},'mxLQs':iliIii(0x1ea,'K)L1'),'jpfAh':function(ii1iil,lllI1l){return ii1iil+lllI1l;},'ifUij':lllilI['rMpDE'],'KJQdE':'活动火爆','VFhow':function(i11iii,llI1Ii){const il1li=iliIii;return lllilI[il1li(0x17d,'tZ4Z')](i11iii,llI1Ii);},'YntVh':lllilI[iliIii(0x149,'nNgl')]},iil1ll={'functionId':iliIii(0x158,'99UK'),'appid':iliIii(0x1ca,'t9ZY'),'clientVersion':lllilI[iliIii(0x1cf,'YR9U')],'client':lllilI['VHqmZ'],'body':{'linkId':lllilI[iliIii(0x1e2,'S^dq')]}},iiilil=await i11ili(lllilI[iliIii(0x1db,'Rf7m')],iil1ll);let iil1li={'url':iliIii(0x1bb,'tZ4Z')+iiilil,'headers':{'Referer':iliIii(0x183,'!Gu@'),'origin':lllilI['DNYBk'],'User-Agent':$['UA'],'Cookie':lllilI[iliIii(0x1c8,'lqQ8')](IIIIIl,iliIii(0x162,'K)L1'))}};$['get'](iil1li,async(lllI1i,li1i1l,II1i1)=>{const iIIill=iliIii;if(iIiIi[iIIill(0x182,'#DBr')](iIiIi[iIIill(0x220,'K)L1')],iIiIi[iIIill(0x210,'N5dN')]))try{II1i1=JSON[iIIill(0x1e9,'hDSw')](II1i1);if(II1i1){if(II1i1[iIIill(0x199,'X!Pj')]==0x0&&II1i1[iIIill(0x16b,'a@q#')]==!![]){if(iIiIi['GLyve'](iIiIi['DovtQ'],iIiIi[iIIill(0x155,'X!Pj')]))llIllI[iIIill(0x1cd,'ufqb')](I1ilI1[iIIill(0x1ff,'A7ZY')]);else{if(II1i1['data'][iIIill(0x206,'*&Cl')]==0x3)console['log'](iIiIi[iIIill(0x195,'YR9U')](iIiIi[iIIill(0x1ee,'X!Pj')]+II1i1['data']['rewardValue']+'\x20',II1i1[iIIill(0x184,'XGO@')][iIIill(0x227,'Ytd^')]));else{if(iIiIi[iIIill(0x197,'A7ZY')](II1i1[iIIill(0x171,'N5dN')][iIIill(0x21d,'lqQ8')],0x1)){if(iIiIi[iIIill(0x19a,'@nK(')](iIiIi[iIIill(0x217,'H7Sp')],iIiIi[iIIill(0x1bc,'tqR@')])){if(iIiIi[iIIill(0x190,'a@q#')](typeof IlI1il,iIiIi[iIIill(0x1ed,'nNgl')]))try{return llIliI['parse'](I1l1I1);}catch(iil1lI){return ilI1ll[iIIill(0x1bd,'Ytd^')](iil1lI),Iillii[iIIill(0x226,'VF(o')](IlI1iI[iIIill(0x1f8,'tZ4Z')],'',iIiIi[iIIill(0x20d,')iVI')]),[];}}else console[iIIill(0x1d3,'XGO@')](iIiIi['jpfAh'](iIiIi[iIIill(0x205,'Ma8u')](iIIill(0x223,'99aB'),II1i1['data']['limitStr'])+'\x20',II1i1[iIIill(0x1c2,'LLQs')][iIIill(0x1b9,'99aB')]));}else II1i1[iIIill(0x1ac,'a@q#')]['rewardType']==0x0?console['log'](iIiIi[iIIill(0x1e1,'HsdQ')]):console[iIIill(0x1b4,'r3JW')](JSON['stringify'](II1i1));}}}else iIiIi[iIIill(0x21e,'H7Sp')](II1i1[iIIill(0x1a0,'B5@z')],0x7d0)&&iIiIi[iIIill(0x194,'NB4K')](II1i1[iIIill(0x177,'Ma8u')],iIiIi['KJQdE'])?console['log'](iIIill(0x18f,'sVem')):iIiIi[iIIill(0x1a6,'dD4L')](iIIill(0x1d9,'4BhL'),iIiIi['YntVh'])?console[iIIill(0x1c6,'YR9U')](II1i1[iIIill(0x153,'B5@z')]):(iIli1I[iIIill(0x161,'dV!C')](Iiil1,iiilli),l1iIIl=null);}}catch(li1i1I){$['logErr'](li1i1I,li1i1l);}finally{Iliii1();}else ill11I[iIIill(0x15d,')iVI')](Iliiil[iIIill(0x17a,'H7Sp')]);});});}async function lllll(){const iilii=IllIi1,ii1il1={'oCFuS':'0123456789abcdef','FfDBg':function(lI1llI,illIil){return lI1llI<illIil;},'Vftop':function(Ill1I,i11iiI){return Ill1I*i11iiI;},'AHSoB':function(lIli11,lllI1I){return lIli11(lllI1I);},'kjOJY':function(lillI1,IlIlii){return lillI1===IlIlii;},'yqhik':iilii(0x203,'@nK('),'REVNI':iilii(0x1d0,'H7Sp'),'hFdLH':iilii(0x14e,'J5Va'),'qnlxL':'pIgfw','YGphy':iilii(0x168,'YR9U'),'zzaPS':iilii(0x15e,'BhzO'),'zuFal':'10.1.0','lEAlR':'dcifGEju5TQw38c_Gg8-ug','JdfuI':function(i1l1i1,liil11,iiillI){return i1l1i1(liil11,iiillI);},'ScEpc':'c06b7','hvtFi':iilii(0x178,'S^dq'),'NZwYA':function(l1l111,l1iIII){return l1l111+l1iIII;},'yHKiI':iilii(0x1f2,'VF(o')};return new Promise(async llI1I1=>{const Ill11l=iilii,IlIlil={'aAejV':function(lIli1I,II1il){const Ill11i=iii1II;return ii1il1[Ill11i(0x17f,'a@q#')](lIli1I,II1il);},'LAJLl':function(lllI11,I1lIll){const iilil=iii1II;return ii1il1[iilil(0x18a,'*&Cl')](lllI11,I1lIll);},'IAzvI':'SfOTj','QaKBn':function(I1lIli,II1ii){return I1lIli==II1ii;},'xXpeP':ii1il1['yqhik'],'rvlmd':ii1il1[Ill11l(0x157,'@nK(')],'YGxGA':ii1il1[Ill11l(0x1a2,'nNgl')],'TUawN':ii1il1[Ill11l(0x1f3,'K)L1')],'acdCt':function(IIIIII){return IIIIII();}};if(ii1il1[Ill11l(0x222,'#DBr')](ii1il1[Ill11l(0x201,'N5dN')],ii1il1[Ill11l(0x150,'99aB')])){const lillII={'functionId':'wheelsHome','appid':ii1il1[Ill11l(0x151,'&[Ia')],'clientVersion':ii1il1['zuFal'],'client':'ios','body':{'linkId':ii1il1[Ill11l(0x1d1,'Ytd^')]}},ii1ilI=await ii1il1[Ill11l(0x21b,'t9ZY')](i11ili,ii1il1[Ill11l(0x14f,'sVem')],lillII);let lI1ll1={'url':Ill11l(0x211,'6lo(')+ii1ilI,'headers':{'Referer':ii1il1[Ill11l(0x207,'LLQs')],'origin':'https://pro.m.jd.com','User-Agent':$['UA'],'Cookie':ii1il1[Ill11l(0x20f,'!Gu@')](IIIIIl,ii1il1['yHKiI'])}};$[Ill11l(0x1fa,'r3JW')](lI1ll1,async(iIiI1,liil1I,i11ii1)=>{const il1ll=Ill11l;try{i11ii1=JSON['parse'](i11ii1);if(i11ii1){if(i11ii1[il1ll(0x16e,'Uwt5')]==0x0&&i11ii1[il1ll(0x19c,'Rf7m')]==!![])IlIlil['LAJLl'](il1ll(0x14b,'*&Cl'),IlIlil[il1ll(0x20c,'gYUP')])?$[il1ll(0x1af,'nNgl')]=i11ii1['data'][il1ll(0x181,'nqy@')]||0x0:IlIlil['aAejV'](lIII1i,l11i11);else IlIlil['QaKBn'](i11ii1[il1ll(0x186,'XGO@')],0x7d0)&&i11ii1[il1ll(0x174,'nqy@')]==il1ll(0x14a,'H7Sp')?console[il1ll(0x156,'99UK')](IlIlil['xXpeP']):IlIlil[il1ll(0x1fd,'VF(o')]('pYCDt',IlIlil[il1ll(0x17b,')iVI')])?II1liI():console[il1ll(0x202,'gYUP')](i11ii1[il1ll(0x1f0,'4BhL')]);}}catch(iiill1){$[il1ll(0x1e8,'ufqb')](iiill1,liil1I);}finally{if(IlIlil[il1ll(0x175,'@nK(')](IlIlil[il1ll(0x165,'ufqb')],IlIlil[il1ll(0x1d4,'Rf7m')])){if(I11iIi)I1ilII=I11iIl[il1ll(0x1b2,'9gx*')](l1l11l);IilIil['getAuthorCodeListerr']=!![];}else IlIlil['acdCt'](llI1I1);}});}else{llIll1=Illl1l||0x20;let I1lIlI=ii1il1[Ill11l(0x1ec,'@nK(')],ii1ill=I1lIlI[Ill11l(0x152,'!Gu@')],II1iI='';for(let llI1II=0x0;ii1il1['FfDBg'](llI1II,I11iI1);llI1II++)II1iI+=I1lIlI[Ill11l(0x1e5,'99UK')](l1lIil['floor'](ii1il1['Vftop'](IiiIli['random'](),ii1ill)));return II1iI;}});}async function i11ili(lIli1l,lillIi){const i1ilIi=IllIi1,illIi1={'ZYptC':i1ilIi(0x16a,'WLwn'),'pPMhI':i1ilIi(0x224,'J5Va'),'ObLXd':i1ilIi(0x15c,'7tU)'),'YFMCs':i1ilIi(0x14c,'Rf7m'),'gHyBX':i1ilIi(0x20e,'*&Cl'),'axqPg':'4.1'};try{if(illIi1['ObLXd']===illIi1[i1ilIi(0x221,'!Gu@')]){I1iIil['msg'](lI1Iil['name'],illIi1['ZYptC'],i1ilIi(0x1f5,'WLwn'),{'open-url':illIi1[i1ilIi(0x1dd,'Obe5')]});return;}else{let liil1i=new i11ill({'appId':lIli1l,'appid':illIi1['gHyBX'],'clientVersion':lillIi?.[i1ilIi(0x1ba,'K)L1')],'client':lillIi?.[i1ilIi(0x191,'sVem')],'pin':$[i1ilIi(0x1b5,'Ytd^')],'ua':$['UA'],'version':illIi1[i1ilIi(0x204,'@nK(')]});return await liil1i['genAlgo'](),body=await liil1i[i1ilIi(0x1b0,'99UK')](lillIi[i1ilIi(0x18b,'VF(o')],lillIi[i1ilIi(0x15b,'nNgl')]),body;}}catch(lI1lil){}}function iil1l1(i1l1iI){const lill1l=IllIi1,liil1l={'OblMb':function(i1i11I,il1iIl){return i1i11I||il1iIl;},'RHqTG':lill1l(0x1aa,'S^dq'),'gxSVC':function(iii1ii,il1iIi){return iii1ii<il1iIi;},'wfdqn':function(iii1il,II11li){return iii1il*II11li;}};i1l1iI=liil1l[lill1l(0x167,'LLQs')](i1l1iI,0x20);let lI1lii=liil1l['RHqTG'],Iiili1=lI1lii['length'],Iil1l1='';for(let I1l11i=0x0;liil1l['gxSVC'](I1l11i,i1l1iI);I1l11i++)Iil1l1+=lI1lii[lill1l(0x163,'Ma8u')](Math[lill1l(0x187,'X!Pj')](liil1l['wfdqn'](Math[lill1l(0x166,'K)L1')](),Iiili1)));return Iil1l1;}function lllli(iIIiiI){const l1l1i1=IllIi1,liiI1i={'QMaOA':function(ililIi,lilIIl){return ililIi==lilIIl;},'qaJfl':l1l1i1(0x17e,'HsdQ')};if(liiI1i[l1l1i1(0x16f,'r3JW')](typeof iIIiiI,liiI1i[l1l1i1(0x1a1,'hDSw')]))try{return JSON['parse'](iIIiiI);}catch(ililIl){return console[l1l1i1(0x1a4,'BhzO')](ililIl),$[l1l1i1(0x1b1,'r3JW')]($[l1l1i1(0x213,'hDSw')],'',l1l1i1(0x1b3,'#DBr')),[];}}function iiili1(liiI1l){const i1iiI=IllIi1,i1l1II={'GNIDY':function(i1ill){return i1ill();},'uXJYu':i1iiI(0x21c,'lqQ8'),'druHm':function(I1l11l,lilIIi){return I1l11l===lilIIi;},'qPcEb':'EXLGZ','SnblL':function(i1l1Il,llIli){return i1l1Il(llIli);}};return new Promise(i1i11l=>{const i1ilIl=i1iiI,i1i11i={'globE':i1ilIl(0x1d7,'6lo(')},II11l1={'url':liiI1l+'?'+new Date(),'timeout':0x2710,'headers':{'User-Agent':i1ilIl(0x173,'HsdQ')}};$[i1ilIl(0x164,'YR9U')](II11l1,async(Iil1lI,IiiliI,iii1iI)=>{const llI11I=i1ilIl,llIll={'zJdkN':function(il1iII){return i1l1II['GNIDY'](il1iII);}};if(i1l1II['uXJYu']!==i1l1II['uXJYu'])llIll[llI11I(0x1d6,'Obe5')](IIII1I);else try{if(Iil1lI)$[llI11I(0x19d,')iVI')]=![];else{if(iii1iI)iii1iI=JSON[llI11I(0x1eb,'B5@z')](iii1iI);$[llI11I(0x225,'NB4K')]=!![];}}catch(IlllIl){if(i1l1II[llI11I(0x1fe,'BhzO')](i1l1II[llI11I(0x1c5,'4BhL')],i1l1II[llI11I(0x20a,'Ytd^')]))$[llI11I(0x1e8,'ufqb')](IlllIl,IiiliI),iii1iI=null;else try{return IIllI[llI11I(0x215,'&[Ia')](lliilI);}catch(lI1IIi){return IllIIl['log'](lI1IIi),IiiIi1[llI11I(0x1a7,'0F[*')](l1ii1['name'],'',i1i11i[llI11I(0x179,'lqQ8')]),[];}}finally{i1l1II['SnblL'](i1i11l,iii1iI);}});});}function ill11i(I1l11I,Ilil1l){const Il1i11=IllIi1,iIIiii={'wOQIa':function(iilll,il1iI1){return iilll+il1iI1;},'vDCab':function(IlllIi,iIIiil){return IlllIi*iIIiil;},'zADcS':function(i1l1Ii,I1iIIi){return i1l1Ii-I1iIIi;}};return iIIiii['wOQIa'](Math['floor'](iIIiii[Il1i11(0x189,'K)L1')](Math['random'](),iIIiii[Il1i11(0x1b8,'tqR@')](Ilil1l,I1l11I))),I1l11I);}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)}
