forked from shufflewzc/faker3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjd_dpqd_main.js
21 lines (15 loc) · 36.9 KB
/
jd_dpqd_main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
活动名称:批量店铺签到(活动查询)
活动链接:https://h5.m.jd.com/babelDiy/Zeus/2PAAf74aG3D61qvfKUM5dxUssJQ9/index.html?token=<token>
环境变量:jd_dpqd_tokens // 活动令牌,多个用英文逗号分割
查询活动信息主脚本,IP限制严重建议使用代理,请勿频繁运行
自动去重并过滤无效活动,默认过滤垃圾奖品活动
运行后会在本地目录生成缓存文件以用于签到脚本使用
7 7 7 7 *
*/
const $ = new Env('批量店铺签到(活动查询)')
const common = require('./function/jdCommon')
const { H5st, jsTk } = require('./function/jdCrypto')
var iil='jsjiami.com.v7';function I11ilIl1(_0x4bc60b,_0x1dff1f){const _0x1c002a=lIi1Ilil();return I11ilIl1=function(_0x5a7375,_0x32d0dc){_0x5a7375=_0x5a7375-0x8f;let _0x4cc6c8=_0x1c002a[_0x5a7375];if(I11ilIl1['JCUDWy']===undefined){var _0x5b6aef=function(_0x4ddc11){const _0x473fc7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x170542='',_0x367422='';for(let _0x28310d=0x0,_0x132d1f,_0x498c3a,_0x4911f4=0x0;_0x498c3a=_0x4ddc11['charAt'](_0x4911f4++);~_0x498c3a&&(_0x132d1f=_0x28310d%0x4?_0x132d1f*0x40+_0x498c3a:_0x498c3a,_0x28310d++%0x4)?_0x170542+=String['fromCharCode'](0xff&_0x132d1f>>(-0x2*_0x28310d&0x6)):0x0){_0x498c3a=_0x473fc7['indexOf'](_0x498c3a);}for(let _0x5b2d81=0x0,_0x2ae634=_0x170542['length'];_0x5b2d81<_0x2ae634;_0x5b2d81++){_0x367422+='%'+('00'+_0x170542['charCodeAt'](_0x5b2d81)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x367422);};const _0x5b55e7=function(_0x3ee9a9,_0x350b1e){let _0x5139a2=[],_0x4e926c=0x0,_0x18d5c5,_0x339663='';_0x3ee9a9=_0x5b6aef(_0x3ee9a9);let _0x3f9484;for(_0x3f9484=0x0;_0x3f9484<0x100;_0x3f9484++){_0x5139a2[_0x3f9484]=_0x3f9484;}for(_0x3f9484=0x0;_0x3f9484<0x100;_0x3f9484++){_0x4e926c=(_0x4e926c+_0x5139a2[_0x3f9484]+_0x350b1e['charCodeAt'](_0x3f9484%_0x350b1e['length']))%0x100,_0x18d5c5=_0x5139a2[_0x3f9484],_0x5139a2[_0x3f9484]=_0x5139a2[_0x4e926c],_0x5139a2[_0x4e926c]=_0x18d5c5;}_0x3f9484=0x0,_0x4e926c=0x0;for(let _0x63b78=0x0;_0x63b78<_0x3ee9a9['length'];_0x63b78++){_0x3f9484=(_0x3f9484+0x1)%0x100,_0x4e926c=(_0x4e926c+_0x5139a2[_0x3f9484])%0x100,_0x18d5c5=_0x5139a2[_0x3f9484],_0x5139a2[_0x3f9484]=_0x5139a2[_0x4e926c],_0x5139a2[_0x4e926c]=_0x18d5c5,_0x339663+=String['fromCharCode'](_0x3ee9a9['charCodeAt'](_0x63b78)^_0x5139a2[(_0x5139a2[_0x3f9484]+_0x5139a2[_0x4e926c])%0x100]);}return _0x339663;};I11ilIl1['LRrmUu']=_0x5b55e7,_0x4bc60b=arguments,I11ilIl1['JCUDWy']=!![];}const _0x3b720a=_0x1c002a[0x0],_0x2771cc=_0x5a7375+_0x3b720a,_0x46cea3=_0x4bc60b[_0x2771cc];return!_0x46cea3?(I11ilIl1['sTVHtw']===undefined&&(I11ilIl1['sTVHtw']=!![]),_0x4cc6c8=I11ilIl1['LRrmUu'](_0x4cc6c8,_0x32d0dc),_0x4bc60b[_0x2771cc]=_0x4cc6c8):_0x4cc6c8=_0x46cea3,_0x4cc6c8;},I11ilIl1(_0x4bc60b,_0x1dff1f);}const iI1lli1i=I11ilIl1;(function(Iill111,IilII11i,IlIIilil,I1lI1III,IiilI1Ii,IlIiIllI,iIil1ii){return Iill111=Iill111>>0x5,IlIiIllI='hs',iIil1ii='hs',function(iliiIiIi,iIIIiII,lll111I1,il1Il1I1,II1lli1I){const Il1ilIii=I11ilIl1;il1Il1I1='tfi',IlIiIllI=il1Il1I1+IlIiIllI,II1lli1I='up',iIil1ii+=II1lli1I,IlIiIllI=lll111I1(IlIiIllI),iIil1ii=lll111I1(iIil1ii),lll111I1=0x0;const Illili1i=iliiIiIi();while(!![]&&--I1lI1III+iIIIiII){try{il1Il1I1=parseInt(Il1ilIii(0xd8,'Z0xh'))/0x1+parseInt(Il1ilIii(0xea,'!5It'))/0x2+parseInt(Il1ilIii(0x1f0,'2ohR'))/0x3+-parseInt(Il1ilIii(0x106,'T]WQ'))/0x4+parseInt(Il1ilIii(0xfe,'9ZZT'))/0x5*(-parseInt(Il1ilIii(0x20d,'EoR('))/0x6)+parseInt(Il1ilIii(0x92,')3d0'))/0x7+parseInt(Il1ilIii(0x14e,'9ZZT'))/0x8*(-parseInt(Il1ilIii(0x10a,'5KrK'))/0x9);}catch(Il11ill1){il1Il1I1=lll111I1;}finally{II1lli1I=Illili1i[IlIiIllI]();if(Iill111<=I1lI1III)lll111I1?IiilI1Ii?il1Il1I1=II1lli1I:IiilI1Ii=II1lli1I:lll111I1=II1lli1I;else{if(lll111I1==IiilI1Ii['replace'](/[bgNtGXVwJIyuYlKBnpdeUWfL=]/g,'')){if(il1Il1I1===iIIIiII){Illili1i['un'+IlIiIllI](II1lli1I);break;}Illili1i[iIil1ii](II1lli1I);}}}}}(IlIIilil,IilII11i,function(iili1lI1,I111Ii1I,lIIl1l1i,l1llI1Il,i1II1i1l,iIi1lI1i,lli11iII){return I111Ii1I='\x73\x70\x6c\x69\x74',iili1lI1=arguments[0x0],iili1lI1=iili1lI1[I111Ii1I](''),lIIl1l1i=`\x72\x65\x76\x65\x72\x73\x65`,iili1lI1=iili1lI1[lIIl1l1i]('\x76'),l1llI1Il=`\x6a\x6f\x69\x6e`,(0x15fb39,iili1lI1[l1llI1Il](''));});}(0x1960,0x35747,lIi1Ilil,0xcd),lIi1Ilil)&&(iil=0x7aa);let tokensList=(process[iI1lli1i(0x166,'l9Q9')][iI1lli1i(0xed,'^Obz')]||'')[iI1lli1i(0x1da,'9ZZT')](',')||[];function lIi1Ilil(){const iililI1I=(function(){return[...[iil,'gjJKstWjiBgaLmYeiGV.yWdcoNlmwI.pbfvu7XnU==','WO3cTmk5DSoeB8o3sY1mWPJdOq7cUmoVWPWbW5rHFW','WORcK8o5iuu','m8ogWRRcVtq','WOFcQmk4','WOZdHbxcRCoMsG0','qNFcRYZdSCkMzK4oW4VcRW','W5HzWOBdH3pdHYi','W4HJW5SVWQq','tSo5WP55wG','hmoKWQ7cOHS','mSoLaG','WOZcOSkRWRNdGSkygmoQWPJcMCkRrSk3xYK','WO/cT8o9','w13dR0eXuCodW75yW6ZcI3m','v8o7WO3dIaBcRW','WPpcPCkJySosj8kraa','vow5SoIVI+EMI+MzLoEAGoA3NowiJo+9Sa','hmozWPW','5ysb57I65y6K','4P2ZaEAES+ECUoIULoAWRmkK','WQZcUq8QvW','bH5guCkjp8oBma','dSkRiSkD','W48mWPVcKmkfda','WQVNUAxMNkxMLOZPLylVVBG','wupdGwhcNW','W4ZcVmoQjMHIFSolW7JcG3q+WO59mSoDiG','WPZcJmkAzCko','WPJcLCk8F8o7','W4aIrSkFDq','WOFdScxcR8oO','dCosWOyQ','Cmk6W5bynN8A','WRlcVSkQWPVdSG','W51OW5NcLHG','mCo3ACkYBa','WOVcMva','WOmRW4rUrLGRjhPgW4a','W5XqWOJdG3W','WQdcJSo+','eCoEW5ZcHq','W5PsWOBdThNdLJG5r3FcRSosWORcHxC','WOxdHry','W5jmWO0','WPhcHKO','WR/cGSoRkxHK','bSoMncrE','WQy8W7L0EW','4PY2W7NOJ6dLJk7MT6pLIylKV6NMGyZLPj3OTBu','WOZdPCkTW5juEmo7e8oN','j8kEW492wW','vSkmW5raaa','WOxcNCklWQ7dHG','b8ojW7pdJsq','EZ7dHLvx','WQvDWRJcSmk2','5BUN6zgm56su5yUr','W48LW4NdUColWO4','W43dMr0','W6ZNVyNLRypLHylLH7xLR6FMR7q','WR9vwtzJamkPW68/','WRHesZa','WRBcPCkkx8o6','W5fyWPu','omogaXja','fSoDWRmlWQK','W787fdJdLCoAWQJdSI0lpG','W4qeW5pdHSoQicJcRc9Lm38','W4xLV4dLPiBVViRMM63NG6ZLHzxMNihLKAihWRW','WPZcLCktDmkOga','W4eJfSk3eq','W49VWRKDW5C','ASonWOD7sSo+dmoED2aPffG','rmkfW4VdP0L/W5xcG8k4WRDfya','8yAjQ8oT5P+J6k2v5RwU5yMW5l6f5OcQ5Awi6lAtWQZINRZdSG','W5pdSKu9W48','g8kJW5G','aG7cSHv0dW','WPDoDfNcKa','WPBcOmoWmga','WPpcRCoPpW','W5ixW5FcH8kFdvS','5BUv6zgI5zkS56wx772MWQK','WQ7cJSoxWOJdMSoFWRDFW6S3W6hdG8orENJdOspcUmkqgq','8l2AMCkT','jaVdLeVdRCouExi5W4VdJSkf','b8oiW4JcPLy','W4WkWPpcNSkv','Amk7W75ji30keSoxWOG1jCkKlG','WQHrFWbH','EIpdJxPIW6FdJW','WOaLW5LZxW','WOONW4L4yW','f8ooW4hcIwz9wmov','WPDmELFcKq','WRj2ugG','qmoMWO4FjSknW5/cMSk+WRBcL8kS','h8ozAmk3Dtj0z29Cgb7cTuv7','WQdcHCoxWQZdI8oOWRThW7yMW6RdLComDhG','jmkcW6FcKSo+','W49bW5rHW4ddJmk+W6CtEmkqmINcKHpcHSoPWQlcLa','WQ/cHSoMWPxdOG','WOrbr0/cRq','WQBcUCoBh1O','WOzfC8ks','b8k9WORdPq/cRvJdVq','WQBcNqeF','WQ/dSH7cM8ol','W79tWOpdVgm','DstdH352','rxZcKdpcMG','WPxcTCk+BG','5yU85B205lQS','dH8gimorp8oCjWOefa','4PQke+ITMUwfGowTSEs6Tow/JUIMIoEyVEEpPUwHQEwpO+MfTEwqUEwgNoI/S+IIIEIhN+ACSU+/Ha','rCo8WOZdIa/cPL/dGCob','4P+5cEAFK+IdN+AVREEIJUwNGoEsIr4','W4pdKSoiFCk5lLFcHu8','W7TjW7DTWOVcLvObWObYphK','W5PKWRyDW50','WP7cMCowWO7dUW','WOXIWPhdL8orWQ5bWQnr','ACopWOC','WPmPFSkAW6aBDteq','j8kLeCkBWPa','WOpcS8kRWOJdKSowxSkZWPNdMmo8ySo3uYjdW6VdV8ovW4ldRmoXcZFdMmoQo8o5vG9pvCokW4/dRSohhupcOHhdLCoQW7hcPCoEEhqebG1dbwjFW6pcMMODW5jdwCouW40rW401uHHAgY0lW44','WRzyWQ3cQCk/','vCo7WRtdHG8','WPC7W5nEs0qO','W7nxW6GIWORdKLqKW41L','WR/cHXK+','WQtNJQFLOydLJRpPHB7VV6y'],...(function(){return[...['WOXlCa','WQfurSkzWPi','WOuTW4ruwf4Ve1jp','kSoLdHvE','W5hdRSkRzJ4fwmoIW7NcI2m8','C1JdKCk8aa','W6jsW5erWQq','5l+R5OoK5yUy','wSosWO9wvW','bSooW5VcRgb7EmohW6uZEqOvW4tdHq','W4ZdLWi2W5muuZy','W50unSk4dgW','WOi8W59qA1KVghjoW5y','WR92wrX7','yCkWW49zoMiBkmoZWPu3oSkVd3BdV8k1vgtdQtK','W5PTWRSFWP7cJmkNWR3cQKO','rLZdIG','jCo9W5xdPH/dVLKFW65eWODhW4NdOaC','sCoVWQCqWOb5nW','W5LwWOBdLa','WPpdVSkR','W7jBW4JcJr4','WPRdO8k+W61tsW','aGtcUW','WOSZDCkxW7uDrde','WQXGswm','WO3cJSodoMa','WPPvWOZcVCk+BItcRG','W5n2W581WQ8','5RAl5yIv5BEd57QQ5P+9nq','WRiLW6vSAW','WPBcImoPjKu','W7TtWOhdR3e','W4vCWOPk','WPTtWOu','gCoFAmkFyc9PAe9m','5Rwl5yIE5Bo95z+/wa','W6rOWQ12W70','bmoLW53cMwG','CEISK+AWSUwqT+w5NxO','WRvyqt06gCknWQ8+EmktWRNdUtpcGCo0','tSo3yW','dmotD8ktEhS','A8kXW4jbjMGlpG','tY7dJf5x','bW3cIqfs','cCoOW4FcHuq','ymoeWPaPW5C','WPVcSSoXne0','calcSazLfq','8jUkLSoh','5Rwd5yIu5BEU5lM4nG','i8o7W5xdJGRdO0qqW45u','bmk+W4/cKfpdUwtdOCosW43cHCk7','aSodWPFcSGS','W5q+W5pdMCoxWOTuWO9wW7VcUmk/dwRcUmkFW5hcRL9g','hSk4i8kz','nCkGW75guW','cq7cQdnJe8oLW6vcW5dcPNWVW7vM','fSoAWPtcUaO','W5fiWObr','WR7cLmoBWOddJa','lSo/fHG','WPvMWQBcGCk3','cGtcNIfm','WOhcLCoeWOVdMq','wmoVWR08W5b4cKa','nmkwaSk3WRO9','W5vdWOBdHwNcMh5Gt3pcVSk1WONdJxiObSoOjmoRe2OzW60','WOaVW4Lo','W7H1W7OhWQe','WPJcS8kTWPhdJ8klgmo6WOG','W7TAW6OQWPddKKqCW6D1','WQJcNrq4rmkYWOi','W49RWRCcW4FcLCk/WQxcIKa','5Rwv5yUd5BsU57QH5P2FBq','W6tdSG0sW7e','W79xW6G','A0RcJslcJa','W5bBWOTnW7W','umo4WOzzzW','kmobWRtcGqK','WOxcPdqDvW','g8k/W5m','FfJcLaVcVCkfuW','WORcTSoUmN5CACoqW4ZcHx8JW5rYm8oTp8k+yxtdJu7dSqaDWQBcVcbdk8o0xf4TB8oZq00AW7i','W7WMW5tdHmoS','WRdcQCkQtCoq','pmkxfW','x8oyWQVdGIm','Dmk6W49jnN4Nkq','WQDWWRBcHmku','j8kDW7TvuG','WOe/B8kAW7mFscSkBhvmlGJcHa','WQVcHConWORdNmo0','yCk0W4DIeG','W5OupCkVvwuJh8kRW4e','W7xcImkOl8kB','e8oDWP3cMdK','wSkul8kYW7RcGmoslcJcO8o9oSkDmCos','W4jNWQq','DJNdT3rLW67dMa','W4nPWRm','CCk3W45Dhw0dka','W7xdHa8PW7K','WQxcSsSBBG','wCoRWROS','W5qdkSksc2m','WQxcJqy','W6zKW5tcGqi','CcxdHa','W4pdV3WrW5i','eSopsmkzFsnZ','W4WkWPpcNSkvm0fSBq','WPatDCk8W7y','WQZcLSk0CCo8','zLZcJGW','WOqCW48wWRJdL8oXW4zsACkBmIW','e8ozWP/cSG','iCkra8ks','W5CkWQlcSSkr','WPzwWQNcQCkq','W4lOR5pMSyxLKl7LUyRdTa','WRRcKHmmAW','W4edmCkLhvy6gSk4W6HMWQtdVq','w1NdPLlcMG','WOBcTSoS','W6LBWRhdMfi','WQtcHmo4jg1IWOK','W4TcW4ZcHIi','W4pdLKq3W4nsea','u0tdT8k6fWy','W5tdNeGk','W79RW5CSWPe'],...(function(){return['W4BdKW47W5uwxYXqumkCbHDZW4y','W6v7WPpdT34','mCkKW41aFa','W54+pSkCia','W5e/W4a','W6OUWONcVSkh','bWxcQHnSdSoOW5jiW5a','wSoNWPK','aCkzW5RcV8ok','W7ldIeSRW4a','WOZdPCk+W4Los8o7gmo7','W4pdQLaHW44','5B2c5Awt5Pwx6zwt772M','W6zDW7O','W4/dMH4jW7u','xmksl8kAW6/cNCopiXlcO8oLb8kgja','ySoYWRa2W5e','uCkEpa','WP3dHGtcJ8oJ','WRhcMCk6Da','W5iilmkocG','BY/dLW','WR7cQmkuWQRdSa','WR03W4vEFq','wCkql8ks','W7XDW6BcIqa','W7KrWORcLSkQ','5lQA5lMz54M95Qgf5B6T6zsM6k6A','W4JdMaWBW5OluHTAua','WRlcGqeusYiutq','nSkhW73cOmoK','gSk/W5G','fmotEW','n8oNW7NcR04','hSk+W4lcUCoaDcjUW6uf','WOZcVmoCbKi','WO/dPmk/W4G','WOGHW5C','lCo+barfDW','WPLRWONcQa','WQBcLSkGBmkeWQ/cRCoZD1rbW63dN2NcGa/dVq','77265BsI5y2U5A6G','5P6x55+s5AAK5zg077Ys','W4PMWORdHgW','wHddLe9A','rePFCmokpmohaZG4oW','WOBcUSopWOpdGq','WQboxW','WOlcG8kNAmonW6hcVCk7rufqW7W','c8ocWPSMWQ58WPW9','uCo1WPDgDq','gCoMndDC','WQxcJCkWBW','w0ddOmkU','hEE4OUACHo+/V+s6KUAVLEAvKUEdO+ACPowtSmo6Eq','DmorWPHUq8oraCoZCuC','aSoWWOJcKbe','fSk/lCkEWOe','W5CJW4JdKSovW5ShW4S1','rCo4WPldIbu','WPxcHCkkv8kUhKJcQ3hcR8orgmovh8kB','FvlcGa','W6FNUlpMN7ZVV6hKUQpMRR3MLlVNGOJMN7RLKBxdRCkw','WO5bACkuWQRcVa','WQ1ssY1WoG','wK/dVCkjcGpdOq','W4C+pmkQkq','bmkGW5JcSCoy','WQ3cISkZESoX','g8oDAmkvFG','4P+TWPBOHAdMNzBOVABOOk7PGBhLIARKUR/PLl3ORiPf','WQjaWO3cK8kF','q8koW4RdOeL2W4tcP8kQWRz4Cq','v8oYWPRdTIS','e8kXW43cQW','5Q265PEm566h5yIs','tSkjW4DSW7OGW6u','qSoHWPpdHa','WP7cJ8kzu8k/ga','WQ3cGSoTkx55WO5CjCos','WRFcHXa','tmkplmogj3DLw0jqfqu','W75yW6CW','eCovWO/cVG4NW5NcSmk1WQS','W7LvWRtdV1q','WRBLUOlORztNPj/PMPtNM7VMTjpLIRFVVim','W6GizmkD','WQPuWRhcISkL','hGRcRHnTfmoiW7jFW4u','dmokW5FcOwz5DmoD','4P+IkoAFQEIcLUAVKUEIKUwNJ+EtMSoJ','WPj3WPpcR8kauq','BSk6W5DipW','WQnCA8kcWPW','xKvrECksn8oqgq','qEITNoAZREwNNoI0PI/INO3cKq','WPiZDSk+','W7qcy8kxwCoMjSof','W5ZdMf8EW5zx','WQfQtLJcOG','WQlcKSorWQddM8o7','u2VdRmkjfq','W6hORjVMSOVLPk3OTO3cR+kDLCk25PEX5zo15BQ05PEP5O+u','CCoAWObOw8oq','WPRcSGuwyW','WOvlWOtcS8k2','hmotWPxcSaWM','BSkRW5H0cW','kSoLmazQ','CSkQW5jf','W5bSkSoOWQLtvW43w0HU','fmouWQmJWQDNWRe','tfhdTCk0fW','WPBcGCkkDW','E8kPnmkrW50','WPJcHcu8rq','dCoeW4G','W5Svb8k7chuRkCkTW5zMWRNdVCkaW4a6Ba','5REq5yMV5BsT5lM2WOe','W75NWRVdU0m','q0tcNtFcRa','WQdcHmo3j3X4','W6XCW7aNWOpdIxKb','W6X/WRXZW6S','aCk1W5RcVmojBW9l','4P2DhEEVIW','W5TfWP1rW40','5yA8W5tLJQ0','gSocWOedWQH6WRWVWQjLW64vyCoDza','h8k/W6vSWOm9DM14WRbwW4vw','g8k1W4XFFSosW4W','4P+9uEIfGUAFS+I+QoIHIoMaIowjHUs5M+MwVEIVOmoD'];}())];}())];}());lIi1Ilil=function(){return iililI1I;};return lIi1Ilil();};const printEnvValue=process[iI1lli1i(0x197,'#5cT')][iI1lli1i(0x214,'^J@5')]===iI1lli1i(0xab,'F@xW');let TokensMap=new Map();const CacheFile=__dirname+iI1lli1i(0xaf,'#5cT');!(async()=>{const IlliI1ll=iI1lli1i,I1iii1Ii={'EQRjX':function(liI1IIi1){return liI1IIi1();}};await I1iii1Ii[IlliI1ll(0xca,'qTlz')](Main);})()[iI1lli1i(0x1e4,'2ohR')](illIIi=>$[iI1lli1i(0x1ed,'5KrK')](illIIi))[iI1lli1i(0xef,'fe(G')](()=>$[iI1lli1i(0x117,'cjTw')]());async function Main(){const Ilil11iI=iI1lli1i,iiliiI1={'lfzfY':Ilil11iI(0x107,'GI3W'),'vIngf':Ilil11iI(0x118,'t0)V'),'CpAjL':function(IlI1IllI,iiIl1ll1){return IlI1IllI>iiIl1ll1;},'xkORB':function(II1iill1,Ii1l1IiI){return II1iill1<=Ii1l1IiI;},'TtVBs':Ilil11iI(0x105,'!t0z'),'RyzOp':function(iil1l,iii1Iiil,ii1I1Iil,l1IliIIi){return iil1l(iii1Iiil,ii1I1Iil,l1IliIIi);},'IOAvI':Ilil11iI(0x112,'C7Yb'),'QNpZD':Ilil11iI(0x9a,'!5It'),'pRNhi':Ilil11iI(0x1eb,'g#]9'),'LJyIZ':function(llli1Iii,I1iiI1I){return llli1Iii+I1iiI1I;},'sYYlJ':function(iI1I1II,l1Illi11){return iI1I1II===l1Illi11;},'agzvf':function(iiII1I1,llIIiIII){return iiII1I1!==llIIiIII;},'FXobD':Ilil11iI(0x216,'Fj)9'),'ckfOA':function(i1iiIl1i,i11I1){return i1iiIl1i<i11I1;},'QATTs':function(I1IlI1i,iillIi1l){return I1IlI1i===iillIi1l;},'toUvZ':Ilil11iI(0xd3,'QpvK'),'ziEap':Ilil11iI(0x204,')iVX'),'ytxmd':function(i111liII,iI1IiII1){return i111liII(iI1IiII1);},'YVEQe':Ilil11iI(0x17c,'f)]7'),'YyucS':function(ii1I111i,Illlliil){return ii1I111i===Illlliil;},'QMDyM':function(l1IIi1iI,Ill1iII1){return l1IIi1iI!==Ill1iII1;},'nZTVg':Ilil11iI(0xf1,'!t0z'),'qjKZq':Ilil11iI(0xc5,'F@xW'),'azdWJ':Ilil11iI(0x141,'!cAU'),'tluvl':Ilil11iI(0x16a,'Rs[V'),'FZwTT':function(lllI1111,l111iI){return lllI1111===l111iI;},'VLVBM':Ilil11iI(0xc3,'kLN('),'ifUsR':Ilil11iI(0x15f,'l9Q9'),'csJgn':Ilil11iI(0x120,'jokS'),'hfExJ':function(l1i1111,IIi1IIII){return l1i1111/IIi1IIII;},'Gtrlc':Ilil11iI(0x1c8,'PzL9'),'GmaYx':Ilil11iI(0x136,'YBp%'),'ltyYX':function(iillI,lIIl1i1l){return iillI-lIIl1i1l;},'AvsxI':function(I11iiii1,III1iI1l){return I11iiii1>III1iI1l;},'hChhG':Ilil11iI(0xa5,'kLN('),'AZlni':function(IIlIl11I,liiII1ii){return IIlIl11I!==liiII1ii;},'sBMhp':Ilil11iI(0x1d7,'Rs[V'),'bZDpl':Ilil11iI(0x145,'fe(G'),'EDwhG':function(i1iIiIil,i1liIi1){return i1iIiIil(i1liIi1);},'EaAHV':Ilil11iI(0xd0,'EoR('),'BdqIy':Ilil11iI(0xcb,'fe(G'),'dpGDv':Ilil11iI(0xc4,'!t0z')};try{if(iiliiI1[Ilil11iI(0x152,'PzL9')](tokensList[Ilil11iI(0x177,'K9jo')],0x0))tokensList=[...new Set(tokensList[Ilil11iI(0x14a,'*qNe')](i111I11=>i111I11!==''))];if(iiliiI1[Ilil11iI(0x11f,'l9Q9')](tokensList[Ilil11iI(0x206,'W]kE')],0x0)){console[Ilil11iI(0x213,'tPaz')](iiliiI1[Ilil11iI(0x1e3,'QpvK')]);return;}const lIii1i1=[];console[Ilil11iI(0x16c,'wgLQ')](''),$['UA']=common[Ilil11iI(0x202,'F9F*')](iiliiI1[Ilil11iI(0x174,'jokS')]),{jsToken:$[Ilil11iI(0x17e,'fe(G')]}=await iiliiI1[Ilil11iI(0x217,'!5It')](jsTk,$['UA'],iiliiI1[Ilil11iI(0x135,'l9Q9')],{'bizId':iiliiI1[Ilil11iI(0xc7,'PzL9')],'v':iiliiI1[Ilil11iI(0xdb,'^J@5')],'qs':Ilil11iI(0x143,'2ohR')+tokensList[0x0]});for(let [i1IIlIiI,l1lllli]of tokensList[Ilil11iI(0x9b,'Fj)9')]()){let ilil11Il=!![];const li11lilI=iiliiI1[Ilil11iI(0x1d1,'W]kE')](i1IIlIiI,0x1);l1lllli[Ilil11iI(0x144,'^Obz')](':')&&iiliiI1[Ilil11iI(0x182,'xL]m')](l1lllli[Ilil11iI(0x20f,')iVX')](':')[Ilil11iI(0x209,'Rs[V')],0x3)&&(l1lllli=l1lllli[Ilil11iI(0x1e2,'wgLQ')](':')[0x0]);if(iiliiI1[Ilil11iI(0xdc,'t0)V')](l1lllli[Ilil11iI(0x124,'^J@5')],0x20)||!/^[A-Z0-9]*$/[Ilil11iI(0xd2,'!cAU')](l1lllli)){if(iiliiI1[Ilil11iI(0xbb,'Fj)9')](iiliiI1[Ilil11iI(0x211,'f)]7')],iiliiI1[Ilil11iI(0x100,'SSZS')]))IliIii11[Ilil11iI(0x1be,'PzL9')]('❓'+lllIilIi+'\x20'+I11IiI[Ilil11iI(0x108,'9ZZT')](IIili111)),ii1ii1ll[Ilil11iI(0x1d6,'W]kE')]=!![];else{console[Ilil11iI(0x130,'*qNe')](Ilil11iI(0x21c,'!5It')+li11lilI+Ilil11iI(0x1ba,'YBp%'));continue;}}$[Ilil11iI(0x11c,'kLN(')]=l1lllli,TokensMap[Ilil11iI(0x1b4,'fe(G')](l1lllli,{'index':null,'venderId':'','shopName':'','activityId':'','startTime':'','endTime':'','isValid':!![],'rules':[],'minLevel':null,'maxLevel':null});let I111i1Il=0x0;$[Ilil11iI(0x91,'g#]9')]='',$[Ilil11iI(0x1c1,'wgLQ')]=![];const lIillilI=0xa;while(!$[Ilil11iI(0x19f,'ER$v')]&&iiliiI1[Ilil11iI(0x178,'^Obz')](I111i1Il,lIillilI)&&!$[Ilil11iI(0x1a5,'*qNe')]){iiliiI1[Ilil11iI(0xe3,'F9F*')](iiliiI1[Ilil11iI(0x20b,'kLN(')],iiliiI1[Ilil11iI(0x12e,'XDgv')])?lllI1IIl[Ilil11iI(0x1dc,'!5It')](llIlli11):($[Ilil11iI(0x17c,'f)]7')]='',await iiliiI1[Ilil11iI(0x156,'K9jo')](sendRequest,iiliiI1[Ilil11iI(0x21a,'5FMx')]),await $[Ilil11iI(0x18d,'!5It')](0x3e8),I111i1Il++,iiliiI1[Ilil11iI(0x10d,'K9jo')](I111i1Il,lIillilI)&&(iiliiI1[Ilil11iI(0x175,'PzL9')](iiliiI1[Ilil11iI(0xc9,'C7Yb')],iiliiI1[Ilil11iI(0xb3,'SSZS')])?ilIii11i[Ilil11iI(0x1c4,'!t0z')](I1I1iI1l):(console[Ilil11iI(0xcf,'ER$v')]($[Ilil11iI(0x203,'K9jo')]||iiliiI1[Ilil11iI(0x196,'GI3W')]),$[Ilil11iI(0x184,'^J@5')]='')));}if(!$[Ilil11iI(0x1db,'5KrK')])continue;const iI1i1ii=$[Ilil11iI(0xbe,'Fj)9')][Ilil11iI(0x21b,'wgLQ')],iIIlIli=$[Ilil11iI(0x12a,'qTlz')]['id'],IIilIiiI=$[Ilil11iI(0xf6,'2ohR')][Ilil11iI(0x1ae,'f)]7')],lii11Iii=$[Ilil11iI(0x153,'*qNe')][Ilil11iI(0x127,'^Obz')]||[],I1IliiIi=$[Ilil11iI(0xf7,'K9jo')][Ilil11iI(0x195,'^J@5')]||[],Ill1ii11=$[Ilil11iI(0x122,'tPaz')][Ilil11iI(0xc6,'(6G5')],IIii1I1i=$[Ilil11iI(0x176,'EoR(')][Ilil11iI(0x99,'SSZS')],iII1Ili=$[Ilil11iI(0x1ec,'9ZZT')](iiliiI1[Ilil11iI(0x1e8,'9ZZT')],Ill1ii11),llllI111=$[Ilil11iI(0x1ff,'EoR(')](iiliiI1[Ilil11iI(0x194,'cjTw')],IIii1I1i);let IIIil=![];const iIiiIiI1=[],IIii1li=[...I1IliiIi,...lii11Iii];for(const iiIili1 of IIii1li){if(iiliiI1[Ilil11iI(0x1b6,'!t0z')](iiliiI1[Ilil11iI(0x1b1,'SSZS')],iiliiI1[Ilil11iI(0x10c,'t0)V')])){const IiiliI11=iiIili1[Ilil11iI(0x1fb,'^Obz')],IlillII=iiIili1[Ilil11iI(0x18a,'IGrr')]||[],I1iiilIi=[];for(const lliIil1I of IlillII){if(iiliiI1[Ilil11iI(0x1cb,'fe(G')](iiliiI1[Ilil11iI(0x1c0,'tPaz')],iiliiI1[Ilil11iI(0x146,'*qNe')]))Iii1Iil1=ii1lIiIi[Ilil11iI(0xae,'GI3W')](':')[0x0];else{let iIIlIi='';const IIiIliI=lliIil1I[Ilil11iI(0x1bc,'xL]m')],I1lll1I1=lliIil1I[Ilil11iI(0xf4,'F9F*')],lliI11Ii=lliIil1I[Ilil11iI(0xda,'5KrK')],lII1i1I1=lliIil1I[Ilil11iI(0xac,'IGrr')],III1l1l=iiliiI1[Ilil11iI(0xb1,'QpvK')](lII1i1I1,0x5);switch(I1lll1I1){case 0x1:iIIlIi=iiliiI1[Ilil11iI(0x114,'9ZZT')];break;case 0x4:iIIlIi=IIiIliI+'京豆';break;case 0x6:iIIlIi=IIiIliI+Ilil11iI(0xcd,'Rs[V');break;case 0x9:iIIlIi=''+lliIil1I?.[Ilil11iI(0x150,'2a*(')][0x0]?.[Ilil11iI(0x19b,'YBp%')];break;case 0xa:iIIlIi=IIiIliI+Ilil11iI(0x90,'(6G5');break;case 0xe:iIIlIi=iiliiI1[Ilil11iI(0xfa,'K9jo')](IIiIliI,0x64)+Ilil11iI(0xa7,'qTlz');break;default:iIIlIi=Ilil11iI(0x1c9,'Fj)9')+I1lll1I1+')';}if(![0x1,0x6][Ilil11iI(0x1fd,'T]WQ')](I1lll1I1)&&!III1l1l)IIIil=!![];I1iiilIi[Ilil11iI(0x20c,'^Obz')](iIIlIi+'(共'+lliI11Ii+'份'+(III1l1l?iiliiI1[Ilil11iI(0x1a1,'PzL9')]:'')+')');}}iIiiIiI1[Ilil11iI(0x1b2,'QpvK')]({'days':IiiliI11,'prize':I1iiilIi,'havePrize':IIIil});}else{Il1ii1I1[Ilil11iI(0xa1,'#5cT')](iiliiI1[Ilil11iI(0x1d8,'F@xW')]);return;}}const ll1lIlll=await common[Ilil11iI(0xba,'!t0z')]({'venderId':iI1i1ii});console[Ilil11iI(0x1be,'PzL9')]('【'+l1lllli+'】\x0a'+(ll1lIlll&&Ilil11iI(0xe7,'qTlz')+ll1lIlll+'\x0a')+Ilil11iI(0x1ab,'qTlz')+iII1Ili+Ilil11iI(0xad,'ER$v')+llllI111);iiliiI1[Ilil11iI(0x97,'Rs[V')](iIiiIiI1[Ilil11iI(0x218,'mrqD')],0x0)&&console[Ilil11iI(0x1bf,'2ohR')](iIiiIiI1[Ilil11iI(0x17f,'t0)V')](Iiilll11=>(Iiilll11[Ilil11iI(0x1f1,'l9Q9')]===0x0?Ilil11iI(0x1ea,'5FMx'):'连续'+(Iiilll11[Ilil11iI(0x19d,'YBp%')]<0xa?'\x20':'')+Iiilll11[Ilil11iI(0x155,'5FMx')]+'天')+':'+Iiilll11[Ilil11iI(0xec,'IGrr')][Ilil11iI(0x1c6,'jokS')](','))[Ilil11iI(0x1c6,'jokS')]('\x0a'));console[Ilil11iI(0x13b,'Z0xh')]('');const iIiiii11=Date[Ilil11iI(0x1ac,'XDgv')]();Ill1ii11&&iiliiI1[Ilil11iI(0x17b,'Rs[V')](iIiiii11,Ill1ii11)&&(console[Ilil11iI(0x17d,'t0)V')](Ilil11iI(0x13d,'Rs[V')+iII1Ili+Ilil11iI(0xd9,'*kQX')),lIii1i1[Ilil11iI(0xe5,'#5cT')](l1lllli),ilil11Il=![]);if(IIii1I1i&&iiliiI1[Ilil11iI(0x19a,'XDgv')](iIiiii11,IIii1I1i))console[Ilil11iI(0xa6,'Rs[V')](Ilil11iI(0x215,'C7Yb')+llllI111+Ilil11iI(0x1dd,'K9jo')),lIii1i1[Ilil11iI(0xbd,'tPaz')](l1lllli),ilil11Il=![];else iiliiI1[Ilil11iI(0xb6,'C7Yb')](IIilIiiI,0x3)&&(console[Ilil11iI(0xbf,'SSZS')](iiliiI1[Ilil11iI(0x121,'W]kE')]),lIii1i1[Ilil11iI(0x190,'J@xl')](l1lllli),ilil11Il=![]);!IIIil&&(lIii1i1[Ilil11iI(0xff,'xL]m')](l1lllli),ilil11Il=![]);const ii1ll1il=TokensMap[Ilil11iI(0xc0,'5FMx')](l1lllli);ii1ll1il[Ilil11iI(0x102,'fe(G')]=li11lilI,ii1ll1il[Ilil11iI(0x15b,')3d0')]=iI1i1ii,ii1ll1il[Ilil11iI(0x180,'^Obz')]=ll1lIlll,ii1ll1il[Ilil11iI(0x1f2,'Rs[V')]=iIIlIli,ii1ll1il[Ilil11iI(0xd1,'!cAU')]=Ill1ii11,ii1ll1il[Ilil11iI(0x1e0,')iVX')]=IIii1I1i,ii1ll1il[Ilil11iI(0x20e,'g#]9')]=ilil11Il,ii1ll1il[Ilil11iI(0x14f,'Rs[V')]=iIiiIiI1,iiliiI1[Ilil11iI(0x11a,'j)uw')](iIiiIiI1[Ilil11iI(0x1de,'j)uw')],0x0)&&(ii1ll1il[Ilil11iI(0x134,'Z0xh')]=iIiiIiI1[0x0][Ilil11iI(0x1d3,'QpvK')],ii1ll1il[Ilil11iI(0x1f8,'tPaz')]=iIiiIiI1[iiliiI1[Ilil11iI(0x20a,'^Obz')](iIiiIiI1[Ilil11iI(0x201,'YBp%')],0x1)][Ilil11iI(0x15e,'!t0z')]),TokensMap[Ilil11iI(0x185,'xL]m')](l1lllli,ii1ll1il);}if(iiliiI1[Ilil11iI(0x16f,'2a*(')](lIii1i1[Ilil11iI(0xe2,'*qNe')],0x0)){console[Ilil11iI(0x1dc,'!5It')](iiliiI1[Ilil11iI(0x147,'tPaz')]);for(const li1liI1I of lIii1i1){if(iiliiI1[Ilil11iI(0x1cd,'K9jo')](iiliiI1[Ilil11iI(0x188,'YBp%')],iiliiI1[Ilil11iI(0x158,'Z0xh')]))console[Ilil11iI(0x16c,'wgLQ')](li1liI1I);else{lIllI1ii[Ilil11iI(0xbc,'mrqD')](iiliiI1[Ilil11iI(0x1a7,'wgLQ')]);let IiIIIil=[];for(const [l1II1il,IliiiIi]of il1Iilli){IliiiIi[Ilil11iI(0x14d,'qTlz')]&&IliiiIi[Ilil11iI(0x200,'[Ao(')]&&IiIIIil[Ilil11iI(0xb4,'g#]9')](l1II1il+':'+IliiiIi[Ilil11iI(0x13c,'2ohR')]+':'+IliiiIi[Ilil11iI(0xa4,'*kQX')]);}iIilllll[Ilil11iI(0x1dc,'!5It')](IiIIIil[Ilil11iI(0x132,'F9F*')](','));}}}const IliiilII=Object[Ilil11iI(0x125,'!t0z')](TokensMap),IlI11li=iiliiI1[Ilil11iI(0x165,'ER$v')](require,'fs');IlI11li[Ilil11iI(0xdd,'W]kE')](CacheFile,JSON[Ilil11iI(0x1a9,'(6G5')](IliiilII)),console[Ilil11iI(0xbc,'mrqD')](iiliiI1[Ilil11iI(0xfc,'#5cT')]);if(printEnvValue){if(iiliiI1[Ilil11iI(0x13e,'5FMx')](iiliiI1[Ilil11iI(0x101,'Fj)9')],iiliiI1[Ilil11iI(0xee,'!cAU')]))l11liIiI[Ilil11iI(0x1b0,'f)]7')](Ilil11iI(0x109,'5FMx')+illi1111+Ilil11iI(0x140,'J@xl')+(iiIil1Il[Ilil11iI(0x93,'PzL9')]||lI1ll111));else{console[Ilil11iI(0x1a3,'2a*(')](iiliiI1[Ilil11iI(0x18b,'EoR(')]);let iilIIl1l=[];for(const [ll1iiIiI,I11li1]of TokensMap){I11li1[Ilil11iI(0x11b,'!t0z')]&&I11li1[Ilil11iI(0x173,'^Obz')]&&iilIIl1l[Ilil11iI(0x157,'kLN(')](ll1iiIiI+':'+I11li1[Ilil11iI(0x163,'t0)V')]+':'+I11li1[Ilil11iI(0x1d0,'g#]9')]);}console[Ilil11iI(0xbf,'SSZS')](iilIIl1l[Ilil11iI(0x1f5,'[Ao(')](','));}}}catch(IIIl1lIl){console[Ilil11iI(0xbf,'SSZS')](Ilil11iI(0x1e5,'ER$v')+IIIl1lIl);}}async function handleResponse(li1illl,Illli11i){const l1I11iII=iI1lli1i,i1IiI1I={'AxlqB':function(liIIli1I,Ii1Il1li){return liIIli1I-Ii1Il1li;},'doBSL':l1I11iII(0x1f4,'IGrr'),'sWaXl':function(lillII1l,i1l1lll){return lillII1l===i1l1lll;},'BNgBN':l1I11iII(0xb8,'2ohR'),'QDmUx':l1I11iII(0x169,'W]kE'),'iKcvI':l1I11iII(0x153,'*qNe'),'YPQLB':function(l1ililII,llIl1lll){return l1ililII===llIl1lll;},'cOtDm':function(ll11i1ll,l111lIiI){return ll11i1ll!==l111lIiI;},'SLFjs':l1I11iII(0x9e,'Rs[V'),'Lxcnd':l1I11iII(0xcc,'jokS'),'TSumS':function(liIl1iI1,I1l1liIi){return liIl1iI1===I1l1liIi;},'uxjgl':l1I11iII(0x1bd,'wgLQ'),'zwjZP':l1I11iII(0x212,'xL]m')};try{if(i1IiI1I[l1I11iII(0x126,'!cAU')](i1IiI1I[l1I11iII(0xfb,'F9F*')],i1IiI1I[l1I11iII(0x1e6,'jokS')]))ilii1iI1[l1I11iII(0x131,'EoR(')]=I11iil1[0x0][l1I11iII(0x1e9,'wgLQ')],llIIl1Ii[l1I11iII(0x123,'ER$v')]=iII111iI[i1IiI1I[l1I11iII(0x1fc,'j)uw')](iIiii1[l1I11iII(0x19c,')iVX')],0x1)][l1I11iII(0x1d4,')iVX')];else switch(li1illl){case i1IiI1I[l1I11iII(0x96,'#5cT')]:if(i1IiI1I[l1I11iII(0x1f6,'jokS')](Illli11i[l1I11iII(0x18f,'Rs[V')],0xc8)&&i1IiI1I[l1I11iII(0x1aa,'YBp%')](Illli11i[l1I11iII(0x115,'!t0z')],!![])&&Illli11i[l1I11iII(0x151,'F@xW')]){if(i1IiI1I[l1I11iII(0xe0,'YBp%')](i1IiI1I[l1I11iII(0x16b,'xL]m')],i1IiI1I[l1I11iII(0x1af,')3d0')]))$[l1I11iII(0xa0,'C7Yb')]=Illli11i[l1I11iII(0x1b7,'f)]7')];else{i1i1l1il[l1I11iII(0x12d,'(6G5')](i1IiI1I[l1I11iII(0x159,'*qNe')]);for(const iil1IiI1 of II1i1l1i){Ili1li1i[l1I11iII(0x1ef,'cjTw')](iil1IiI1);}}}else Illli11i[l1I11iII(0xe1,'PzL9')]?i1IiI1I[l1I11iII(0xc8,'^Obz')](i1IiI1I[l1I11iII(0xe4,'#5cT')],i1IiI1I[l1I11iII(0x167,'!5It')])?(IIli11Ii[l1I11iII(0xd4,'Fj)9')](l1I11iII(0x14c,'2ohR')+IiiiI1Ii+l1I11iII(0x1d5,'f)]7')),Il11l1i1[l1I11iII(0x1c3,'(6G5')](IlllI1iI),IIiIii1=![]):(console[l1I11iII(0x129,'GI3W')](l1I11iII(0xdf,'*kQX')+Illli11i[l1I11iII(0x171,'J@xl')]),$[l1I11iII(0x116,'l9Q9')]=!![]):(console[l1I11iII(0x1ce,'!cAU')]('❓'+li1illl+'\x20'+JSON[l1I11iII(0x160,'C7Yb')](Illli11i)),$[l1I11iII(0x1bb,'ER$v')]=!![]);break;}}catch(lili1I11){console[l1I11iII(0x187,'fe(G')](l1I11iII(0x1f9,'t0)V')+li1illl+l1I11iII(0x193,'j)uw')+(lili1I11[l1I11iII(0x16d,'!5It')]||lili1I11));}}async function sendRequest(II1ili1i){const I1l1Il11=iI1lli1i,liIIilII={'nldsC':function(i1l11111,I1iIilIi){return i1l11111!==I1iIilIi;},'FdsZk':I1l1Il11(0x164,'*qNe'),'nVYml':I1l1Il11(0x10f,')3d0'),'QCZZr':I1l1Il11(0x153,'*qNe'),'DbFJN':I1l1Il11(0x17a,'QpvK'),'BuzRb':I1l1Il11(0x16e,'#5cT'),'LZwaG':I1l1Il11(0xe8,'K9jo'),'AdOXd':function(iilI1lI,liIiliil){return iilI1lI(liIiliil);},'VVsZw':I1l1Il11(0x142,'F@xW'),'fcgKU':I1l1Il11(0x15d,'Fj)9'),'BEKlI':I1l1Il11(0x1d9,'2a*('),'SFpvu':function(IlI11Iil,l1i1IiIl){return IlI11Iil/l1i1IiIl;},'UZTzv':I1l1Il11(0x170,'QpvK'),'krXVa':I1l1Il11(0x103,'!5It'),'eRIow':function(lIl1ll1l,liI1Ill1){return lIl1ll1l===liI1Ill1;},'oOfCX':I1l1Il11(0x15a,'K9jo'),'SRSJR':I1l1Il11(0x148,')3d0'),'fLfbp':I1l1Il11(0xb9,'ER$v'),'VkUQE':I1l1Il11(0x1c7,'QpvK'),'IVywK':I1l1Il11(0xf9,'5FMx'),'xjkcA':I1l1Il11(0x179,'^J@5'),'eNrtk':I1l1Il11(0x128,'t0)V'),'cytQr':I1l1Il11(0x10b,'l9Q9'),'LyHac':I1l1Il11(0x95,'*kQX'),'TruSO':I1l1Il11(0xc2,'mrqD'),'iPUcB':I1l1Il11(0xe6,'IGrr'),'uPsqI':I1l1Il11(0x1cc,'T]WQ'),'XLaBd':I1l1Il11(0x1cf,'QpvK'),'UoKRQ':function(lil1ll1,liIillil){return lil1ll1<liIillil;},'wQxqv':function(IilI1IlI,i1lIlIi1){return IilI1IlI!==i1lIlIi1;},'vOduQ':I1l1Il11(0xd6,'g#]9'),'dkiNq':function(liiIIlii,Ili1I1){return liiIIlii>Ili1I1;},'RZElB':I1l1Il11(0x1b9,'IGrr'),'vAaaY':I1l1Il11(0x1c2,'#5cT'),'GlQGl':function(i1l11l,iIiIl1i1,i11i1I1){return i1l11l(iIiIl1i1,i11i1I1);},'TlCmH':function(iiiI11Ii,iI1ilill){return iiiI11Ii>=iI1ilill;}};if($[I1l1Il11(0xce,'2a*(')])return;let lIiII1il='',ll1Ilil1=null,llll1lil=null,I1IIi1i1=liIIilII[I1l1Il11(0x186,'XDgv')],IlI1i1il={},IiI1i1lI={};switch(II1ili1i){case liIIilII[I1l1Il11(0xf3,'F9F*')]:IiI1i1lI={'appId':liIIilII[I1l1Il11(0x1f3,'Fj)9')],'functionId':liIIilII[I1l1Il11(0x1a8,'YBp%')],'appid':liIIilII[I1l1Il11(0x207,'xL]m')],'body':{'token':$[I1l1Il11(0x1b8,'XDgv')],'venderId':liIIilII[I1l1Il11(0x113,'Z0xh')](parseInt,$[I1l1Il11(0x15b,')3d0')])||''},'version':liIIilII[I1l1Il11(0x1a4,'IGrr')],'ua':$['UA']},IlI1i1il=await H5st[I1l1Il11(0x12b,')3d0')](IiI1i1lI),lIiII1il=liIIilII[I1l1Il11(0xeb,'tPaz')],llll1lil=Object[I1l1Il11(0x1df,'!cAU')]({},IlI1i1il[I1l1Il11(0x1f7,'*qNe')],{'jsonp':liIIilII[I1l1Il11(0xb2,'[Ao(')]});break;default:console[I1l1Il11(0x98,'C7Yb')](I1l1Il11(0xa8,')iVX')+II1ili1i);return;}const lIiIliii={'t':Math[I1l1Il11(0x154,'Rs[V')](liIIilII[I1l1Il11(0x9d,'W]kE')](Date[I1l1Il11(0x119,'j)uw')](),0x3e8))+I1l1Il11(0xc1,'ER$v'),'loginType':'2','x-api-eid-token':$[I1l1Il11(0x189,'2ohR')]};ll1Ilil1&&(liIIilII[I1l1Il11(0x8f,'5FMx')](liIIilII[I1l1Il11(0xb7,'XDgv')],liIIilII[I1l1Il11(0x191,'IGrr')])?Object[I1l1Il11(0x1fa,'jokS')](ll1Ilil1,lIiIliii):I11I1l1I[I1l1Il11(0x9f,'kLN(')](I1l1Il11(0x94,'^J@5')+il1il1ii));llll1lil&&(liIIilII[I1l1Il11(0x192,'jokS')](liIIilII[I1l1Il11(0x1a2,'^J@5')],liIIilII[I1l1Il11(0xf8,'wgLQ')])?iIIilii1[I1l1Il11(0x161,'l9Q9')]&&IIIlI11l[I1l1Il11(0xf2,'tPaz')]&&lIi1II1I[I1l1Il11(0x104,'*kQX')](lIl1ilil+':'+li1liiii[I1l1Il11(0x1ee,'mrqD')]+':'+lIilI1l1[I1l1Il11(0x219,'l9Q9')]):Object[I1l1Il11(0xa3,'9ZZT')](llll1lil,lIiIliii));const l1l1lI1={'url':lIiII1il,'method':I1IIi1i1,'headers':{'Accept':liIIilII[I1l1Il11(0xd5,'kLN(')],'Accept-Encoding':liIIilII[I1l1Il11(0x137,'!t0z')],'Accept-Language':liIIilII[I1l1Il11(0x18c,'*kQX')],'Connection':liIIilII[I1l1Il11(0x149,'#5cT')],'Content-Type':liIIilII[I1l1Il11(0x13f,'tPaz')],'Host':liIIilII[I1l1Il11(0x1b3,'^J@5')],'Referer':liIIilII[I1l1Il11(0x11e,')iVX')],'Sec-Fetch-Dest':liIIilII[I1l1Il11(0x181,'ER$v')],'Sec-Fetch-Mode':liIIilII[I1l1Il11(0x172,'9ZZT')],'Sec-Fetch-Site':liIIilII[I1l1Il11(0x138,'#5cT')],'User-Agent':$['UA']},'params':llll1lil,'data':ll1Ilil1,'timeout':0x7530,'httpsTlsOptions':common[I1l1Il11(0x110,'EoR(')]()};liIIilII[I1l1Il11(0x19e,'l9Q9')](I1IIi1i1,liIIilII[I1l1Il11(0x133,'#5cT')])&&(delete l1l1lI1[I1l1Il11(0x210,'5KrK')],delete l1l1lI1[I1l1Il11(0x199,'mrqD')][liIIilII[I1l1Il11(0x1a0,'Fj)9')]]);const ll1llI1i=0x1;let IiillIii=0x0,illl1ii=null,ilIIi1il=null;while(liIIilII[I1l1Il11(0x1b5,'C7Yb')](IiillIii,ll1llI1i)){if(liIIilII[I1l1Il11(0x1ca,'Fj)9')](liIIilII[I1l1Il11(0x208,'jokS')],liIIilII[I1l1Il11(0x1e1,'^J@5')]))ili1Iiii[I1l1Il11(0x12f,'(6G5')]=ll1iI1l1,liIIilII[I1l1Il11(0x1ad,'ER$v')](ll1iIi11,0x193)&&Ii1l1Il1[I1l1Il11(0xa1,'#5cT')](iI11II11);else{liIIilII[I1l1Il11(0xf0,'!t0z')](IiillIii,0x0)&&await $[I1l1Il11(0x183,')3d0')](0x7d0);const lil1I1il=await common[I1l1Il11(0xb5,'^Obz')](l1l1lI1);if(!lil1I1il[I1l1Il11(0x162,'cjTw')]){if(liIIilII[I1l1Il11(0xb0,'5KrK')](liIIilII[I1l1Il11(0x9c,'l9Q9')],liIIilII[I1l1Il11(0x111,'J@xl')])){ilIIi1il=lil1I1il[I1l1Il11(0x1c5,'kLN(')],illl1ii=I1l1Il11(0x14b,'!5It')+II1ili1i+I1l1Il11(0x1fe,'tPaz')+lil1I1il[I1l1Il11(0x168,'5FMx')],IiillIii++;continue;}else iIlI1iii[I1l1Il11(0x1ce,'!cAU')](liIIilII[I1l1Il11(0x139,'Fj)9')]),il1lIII1[I1l1Il11(0x13a,'5FMx')](IIlIllll),lIi1Iil1=![];}if(!lil1I1il[I1l1Il11(0x12c,'Fj)9')]){illl1ii=I1l1Il11(0xe9,'XDgv')+II1ili1i+I1l1Il11(0x205,'QpvK'),IiillIii++;continue;}await liIIilII[I1l1Il11(0x1d2,'kLN(')](handleResponse,II1ili1i,lil1I1il[I1l1Il11(0xfd,'j)uw')]),ipBlack=![];break;}}liIIilII[I1l1Il11(0x198,'Fj)9')](IiillIii,ll1llI1i)&&($[I1l1Il11(0x15c,'J@xl')]=illl1ii,liIIilII[I1l1Il11(0xa9,'cjTw')](ilIIi1il,0x193)&&console[I1l1Il11(0x1a6,'9ZZT')](illl1ii));}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)}