-
Notifications
You must be signed in to change notification settings - Fork 487
/
jd_gzsl_shopGiftBag.js
18 lines (13 loc) · 41.5 KB
/
jd_gzsl_shopGiftBag.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
活动名称:店铺礼包 · 无线营销
活动链接:https://gzsl-isv.isvjcloud.com/wuxian/mobileForApp/dist/views/pages/shopGiftBag.html?activityType=<活动类型>&activityId=<活动id>
环境变量:jd_gzsl_shopGiftBag_activityUrl // 活动链接
7 7 7 7 * jd_gzsl_shopGiftBag.js
*/
const $ = new Env('店铺礼包(无线营销)')
const notify = $.isNode() ? require('./sendNotify') : ''
const jdCookieNode = $.isNode() ? require('./jdCookie') : ''
const getToken = require('./function/getToken')
var version_='jsjiami.com.v7';const i1Iill1l=Il1l1iii;function Il1l1iii(_0x3ce3c9,_0x24c032){const _0x4d24b3=iIIIlI1I();return Il1l1iii=function(_0x3a590f,_0x4a50fa){_0x3a590f=_0x3a590f-0x129;let _0x1a9df5=_0x4d24b3[_0x3a590f];if(Il1l1iii['fsaHXN']===undefined){var _0x1c1e82=function(_0x74f4a9){const _0x4d7c54='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x239fc7='',_0x4d7753='';for(let _0x206bea=0x0,_0x15d91a,_0x4b75ac,_0x1371d1=0x0;_0x4b75ac=_0x74f4a9['charAt'](_0x1371d1++);~_0x4b75ac&&(_0x15d91a=_0x206bea%0x4?_0x15d91a*0x40+_0x4b75ac:_0x4b75ac,_0x206bea++%0x4)?_0x239fc7+=String['fromCharCode'](0xff&_0x15d91a>>(-0x2*_0x206bea&0x6)):0x0){_0x4b75ac=_0x4d7c54['indexOf'](_0x4b75ac);}for(let _0x460a5f=0x0,_0x446476=_0x239fc7['length'];_0x460a5f<_0x446476;_0x460a5f++){_0x4d7753+='%'+('00'+_0x239fc7['charCodeAt'](_0x460a5f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4d7753);};Il1l1iii['Resvim']=_0x1c1e82,_0x3ce3c9=arguments,Il1l1iii['fsaHXN']=!![];}const _0x1a7b9a=_0x4d24b3[0x0],_0x359748=_0x3a590f+_0x1a7b9a,_0x2ea70c=_0x3ce3c9[_0x359748];return!_0x2ea70c?(_0x1a9df5=Il1l1iii['Resvim'](_0x1a9df5),_0x3ce3c9[_0x359748]=_0x1a9df5):_0x1a9df5=_0x2ea70c,_0x1a9df5;},Il1l1iii(_0x3ce3c9,_0x24c032);}(function(ll1Ili11,lill1l1I,iiII1Ii1,illIl1iI,IliiI1Il,liIIiI1,iIiIl){return ll1Ili11=ll1Ili11>>0x5,liIIiI1='hs',iIiIl='hs',function(iIi1iIII,liilil1I,iil1l1lI,ilii1III,l1lllI11){const lll1liIi=Il1l1iii;ilii1III='tfi',liIIiI1=ilii1III+liIIiI1,l1lllI11='up',iIiIl+=l1lllI11,liIIiI1=iil1l1lI(liIIiI1),iIiIl=iil1l1lI(iIiIl),iil1l1lI=0x0;const l111liII=iIi1iIII();while(!![]&&--illIl1iI+liilil1I){try{ilii1III=-parseInt(lll1liIi(0x23a))/0x1+parseInt(lll1liIi(0x1b2))/0x2*(parseInt(lll1liIi(0x12d))/0x3)+parseInt(lll1liIi(0x232))/0x4*(-parseInt(lll1liIi(0x22d))/0x5)+parseInt(lll1liIi(0x19f))/0x6+-parseInt(lll1liIi(0x1c8))/0x7+-parseInt(lll1liIi(0x184))/0x8+parseInt(lll1liIi(0x22f))/0x9;}catch(iI1lii1I){ilii1III=iil1l1lI;}finally{l1lllI11=l111liII[liIIiI1]();if(ll1Ili11<=illIl1iI)iil1l1lI?IliiI1Il?ilii1III=l1lllI11:IliiI1Il=l1lllI11:iil1l1lI=l1lllI11;else{if(iil1l1lI==IliiI1Il['replace'](/[kgdenuYWKrTwRNPbpfX=]/g,'')){if(ilii1III===liilil1I){l111liII['un'+liIIiI1](l1lllI11);break;}l111liII[iIiIl](l1lllI11);}}}}}(iiII1Ii1,lill1l1I,function(ll1iI11l,l1l1liII,I11l1ilI,I1l1lilI,I11lI1,Ii1iIli,Iii1l1il){return l1l1liII='\x73\x70\x6c\x69\x74',ll1iI11l=arguments[0x0],ll1iI11l=ll1iI11l[l1l1liII](''),I11l1ilI=`\x72\x65\x76\x65\x72\x73\x65`,ll1iI11l=ll1iI11l[I11l1ilI]('\x76'),I1l1lilI=`\x6a\x6f\x69\x6e`,(0x135e20,ll1iI11l[I1l1lilI](''));});}(0x1820,0xb9570,iIIIlI1I,0xc3),iIIIlI1I)&&(version_=iIIIlI1I);let cookiesArr=[],cookie='',allMessage='',activityUrl=process[i1Iill1l(0x26a)][i1Iill1l(0x1d4)]?process[i1Iill1l(0x26a)][i1Iill1l(0x1d4)]:'';if($[i1Iill1l(0x13f)]()){Object[i1Iill1l(0x15b)](jdCookieNode)[i1Iill1l(0x1d1)](liilillI=>{const l1liIlll=i1Iill1l;cookiesArr[l1liIlll(0x202)](jdCookieNode[liilillI]);});if(process[i1Iill1l(0x26a)][i1Iill1l(0x1b8)]&&process[i1Iill1l(0x26a)][i1Iill1l(0x1b8)]===i1Iill1l(0x16b))console[i1Iill1l(0x1f0)]=()=>{};}else cookiesArr=[$[i1Iill1l(0x229)](i1Iill1l(0x1d2)),$[i1Iill1l(0x229)](i1Iill1l(0x226)),...jsonParse($[i1Iill1l(0x229)](i1Iill1l(0x197))||'[]')[i1Iill1l(0x259)](Il11lIi=>Il11lIi[i1Iill1l(0x12b)])][i1Iill1l(0x179)](Il1lIiI=>!!Il1lIiI);if(activityUrl)activityId=getQueryString(''+activityUrl,i1Iill1l(0x16d)),$[i1Iill1l(0x258)]=activityUrl[i1Iill1l(0x220)](/https?:\/\/([^/]+)/)[0x1],console[i1Iill1l(0x1f0)](i1Iill1l(0x1b0)+activityId+'\x0a'+$[i1Iill1l(0x258)]);else{console[i1Iill1l(0x1f0)](i1Iill1l(0x21d));return;}let domains=i1Iill1l(0x192)+$[i1Iill1l(0x258)];function iIIIlI1I(){const Il1l1ill=(function(){return[...[version_,'WKnjksgwjNuibafmeiT.RcoKPmXYP.pdvre7wdwu==','vwzjC3a','z3f0Bxq','svDIz2S','yxzmwMC','5PYQ5BYa5AEl','BgvUz3rO','tKvYr24','BezeuK0','v2LevKu','zg9TywLU','BwfW','BwzvruK','wK1NBeq','sNnPA3e','zvD5BuK','Dxr2BxG','yxbWBgLJyxrPB24VANnVBJTJAgfYC2v0pvvurI04','tMnbAxC','AgfZrw5K','DMvUzgvYswq','BhbvCvy','svfyrw8','C2vUze5VDgLMEq','EerQBhK','44cq5O+q56s644cr6k+35ywi6i635y+w5lQS5lIC6lsM5y+35lIay29VA2LLcUEBToAoPEs9V+EuQe5VyNLeyEEAHos6Ros4NoETVUwiSoIoT+wpLG','y2jwCfO','yNn2wLO','zw52','tuvtue0','y2HHCKf0','Aw5JBhvKzxm','zxjYCW','y29VA2LL','DezVsLa','mZC0mdq2ouLxDMjIzG','t2z0vNO','l3D1EgLHBI91C2vYl2DLDfnOB3bhAwz0uhjPEMuV','ELjKwge','vwzovg4','yLf4A0K','re1Uwwe','uLHezwW','s0TbzLe','Cg9ZDa','qxj6sMu','BgvvqwO','BwzMu3u','z2v0tw9UDgG','yNLOv0W','yNrMzuG','DgLluM0','tLHxsMO','AxnoB2rL','ufDJzuK','AgHKBLy','Cg9PBNroDw0','nhW1FdH8mNWZFdz8mxWWFdC','ipcFJP/VUi8G56EV5yIg','5lQS5lIC6lsM5y+3','CxvVDge','q0fMv0i','AuzWy2W','EevqB2K','B1fnzMm','z29eqMO','lcdLPlhOTkuHiowoN+wBOdOG','Eenyshy','AxnmB2DPBG','ru56v2u','yKfVwKW','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLMnVB2TPzq','6k+35yU/6zQp5Osp5zYOqM94sNpOVPpLHAxMOyBKV67MLlNLHOxLRRKk5BU66k6U6ycA6l+h6isA5PYS5y676i635y+wy29VA2LL','Dwv1zMW','vxnMChG','De1Zz1a','ANPXD2y','8j+xKE+4JYdKVjJMG6dLIlGG','ywjJzgvMmdeYmZq1nJC4oq','rNjyDNa','Bg9WvLK','A2v5CW','z3PPCcWGzgvMBgf0zsWGyNi','BfnjA1u','tu9oDgy','Dw5PDa','D1DuuNG','CMHyyLG','vKrkzNq','u3LWCgq','veTfrxq','vgXvB3e','seHPyxy','A2zywem','ufnbqK0','r0vhvhe','zgLZy291BNq','zMfSC2u','C1but0W','ywn0AxzPDhLjza','v2zizeC','ChfAtg8','swTSt08','t3LcqKu','EvzLu3G','vKjxreG','C2H5sMy','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLGPODhrWCZOVl2jLyw4UBs5Qzc5JB20VyMvHBI9ZAwDUsw5KzxGUywn0Aw9U'],...(function(){return[...['EMGTq04SEMG7Ct0WlJKSDgGTq047Ct0WlJGSDgG7Ct0WlJCSDMKTq047Ct0WlJySDMK7Ct0WlJuSzw4Tvvm7Ct0WlJqSzw47Ct0WlJm','zNnIAuW','swDZyuC','zMLSDgvY','zMTmsg4','zMLUywXSEq','r25Vr0e','B2LsuNy','AenUALK','z0zbthm','CKnvyuG','EuHXwLy','uuf3DNy','AMrHCha7AvbOB25LoZeWlJiUmJSXnc4ZoW','mte0otmYndHmEfPSuwO','wxjxvMO','wNLwzu8','EfL0s3q','AfPgBe0','ChjPEMvZ','CMfUzg9T','BxnN','sNDNr0q','BgHgEuu','rw5Jz2O','tvvWvvG','C1z4u0y','suH1weq','Ahr0Chm6lY8','Dur6zMy','EfLNCvi','rhDnzgO','sgLyAxC','q29VA2LLC0Pe','BgTwDfq','z2v0rNvSBfLLyxi','txLwD0m','qLviAe8','6i635y+ww3rVA2vUxEwKSEI0PE+8Gq','q2fWwwu','D2fPDa','nZeZmtaWrNbbq0zn','zg9Uzq','s0L1uLi','y0jsAxq','sfvWzhi','B2jQzwn0','rhvvv2O','EvHQEKS','tvzHBMG','tM55shm','DunQAfa','qxfNBvu','D3vuA2m','A2Lqr0S','sMTLz3u','v0r3txi','y3PUz1G','44cqsutJGje6cG','p3D4vg9Rzw49','mMvkC1nMrq','vxfRzhC','rg5Ns3u','uwnjCNi','zLr4sMK','uNvirM8','sKrFrevcvuC','o00Vns4Wo25LDhDVCMSVD2LMAtTbreLelZTTB2rLBc9PugHVBMuXmIWXo2fKzhjLC3nPzc80mtK5mtC1mtKZo2fWCej1AwXKlZe2nZG2mZTQzfn1ChbVCNreyxjRtw9Kzs8Wo01VEMLSBgeVns4WicHPugHVBMu7ienqvsbPugHVBMuGt1mGmtrFmYbSAwTLie1HyYbpuYbyksbbChbSzvDLyKTPDc82mduUms4XnsaOs0HutuWSigXPA2uGr2vJA28Pie1VyMLSzs8XnuuXndG7C3vWCg9YDePeu0HxsY8XoW','B0X0weS','Ee1fque','q3LZB0O','sMP3EwS','zMXVB3i','y2f0y2G','BhzpseC','wKH2rva','tw5tCey','y29VA2LL5BEY5AsX5Pwiic0G','C3rYAw5N','qMnhvNK','B2Pnvg8','Aw5KzxG','nJqXmdq2n0nfzhLbBW','5lQS5lIC6l+u5zUE5lQg56M65PwW5O2U','seXfz2G','wMjZD3C','yxbWBgLJyxrPB24VANnVBIWGDgv4Dc9WBgfPBIWGkI8Q','yu1eA3e','5BEY57Up5ywZ5RoO6l+hFG','Ee5vq3O','D0r4CLi','zM9YrwfJAa','q29VA2LLsKq','kf58wYy/xsK','AMrFz3PZBf9ZAg9Wr2LMDejHz19Hy3rPDML0EvvYBa','qMfmsxa','CwXzsfG','y0LmwKy','z1j6t1u','u0vbyKe','uuLuz3i','whf0s0W','B1vKEvy','DgnjAuK','AvHyDLe','BKHAs08','tvHYC04','mNW0FdH8nxWZFdf8n3WWFdy','Agjyteu'],...(function(){return['rK5dquq','yLftz0O','CgfYC2u','vxnLCK5HBwu','sxDhsMq','CfvcCMG','6Akg5y+w5OIq5yQF77YA','CLPqr2y','Ahr0Chm6lY9IzwfUlM0UAMqUy29Tl2jLyw4VC2LNBKLUzgv4lMfJDgLVBG','tMXivue','wxP6ANK','A3ftA1i','z2v0rgf0zq','Bg9N','Dg9Rzw4','ve5YthC','EujAqxq','ipcFJP/VUi8G56EV5yIgia','zxboEwS','qK1MBgW','whnlEw4','whnyC2e','AMf6y28','55sO5A6m5lQg','44cq5O+q56s644cry29VA2LL5BEY5AsX5Pwi','u0HzthK','rwzAB08','C3rHDhvZ','zw9huhO','DLzkuhy','re1YuuC','ChvZAa','sfLYyLq','q2nktw0','ywn0AxzPDhK','BMLJA05HBwu','kIOQkIOQcG','Bxrjwfq','C3rYAw5NAwz5','wfzUr3O','yxL3tva','CNz4tKW','CgXyCLa','t2fgsu4','wMLetvm','AefmyMu','v2zVAuS','yMvSBK0','C3bSAxq','z2v0twLUDxrLCW','Bw5dyKK','B2nSwLO','z0jJBxq','D0LAs04','z2v0u2vJB25KCW','zgrYrg8','zvPODfe','C0D1BMq','6k+35AgR5yAz5Rs75yQO6zo+5O6L','5OQ95Aww5PY65lYA','z2v0sg91CNm','Bwf0y2G','rwToCfm','BvblCuK','Beneqxu','CwnZELq','EKXpufy','q29VA2LLsKqY','psHBxIzDkIKOjNWKkq','CLzOCxO','z2v0zgf0yq','tM9PDLa','ywn0AxzPDhLfBMq','BMjJtK8','mte2mJq1Dwjpvxb2','5Rs75yQO5ywL5y+J77YA','mZa2mZiXntDnyKLowuK','cIOQkIOQkUw8GowNI+oaKos6Ros4NoI0PUwpTW','y2zTqLu','mtK2CurcuMzz','wLvIv1G','A2vLCc1HBgL2zq','swzQuvG','t3for3a','C3vovwK','vwTdyxO','AxndB250ywn0','nte4ndu2BfD3wwTQ','B2DJDhm','vM5pz1C','sK16ALu','vNvVCKC','Bxb1sLC','EfrJC0G','BMfTzq','tLHUtMi','rw1LwMC','5lQS5lIC5PYn5yQH5zMO6l+u5zUE5PwW5O2U5lI656M6','s2XRBNK','thP5v1q','yuHYq2G','r3bPs04','l3D1EgLHBI91C2vYl2DLDfnOB3bhAwz0qwn0AxzPDhKV','C0Xuq3C','CNritLq','DevyEMS','Aw9kthq','EhD6uxy'];}())];}())];}());iIIIlI1I=function(){return Il1l1ill;};return iIIIlI1I();};!(async()=>{const lIlIl1i1=i1Iill1l,ii1II1I={'GEGTq':function(i1ilI1I,lII1Ill){return i1ilI1I+lII1Ill;},'zLOPV':function(ilII1Ill,I1I11llI){return ilII1Ill+I1I11llI;},'pUBrh':function(IiliIliI,II1I11){return IiliIliI+II1I11;},'NnyHs':lIlIl1i1(0x1e9),'QcIrr':lIlIl1i1(0x267),'yXjzK':lIlIl1i1(0x1eb),'yHqZV':lIlIl1i1(0x22e),'wIZKN':function(iIIiIli,iIIil1ll){return iIIiIli<iIIil1ll;},'lpUqV':function(iIllIi1I,I1lIlIll){return iIllIi1I(I1lIlIll);},'tFoJP':function(Iiiii1Ii){return Iiiii1Ii();},'XqtKL':function(i1l1IIIi){return i1l1IIIi();},'sVxSF':function(i1i1il1,IlIli1iI){return i1i1il1!==IlIli1iI;},'BaLIp':lIlIl1i1(0x228),'DuUWj':lIlIl1i1(0x20f)};if(!cookiesArr[0x0]){$[lIlIl1i1(0x18b)]($[lIlIl1i1(0x241)],ii1II1I[lIlIl1i1(0x1b5)],ii1II1I[lIlIl1i1(0x1a6)],{'open-url':ii1II1I[lIlIl1i1(0x1a6)]});return;}console[lIlIl1i1(0x1f0)](ii1II1I[lIlIl1i1(0x1e8)](ii1II1I[lIlIl1i1(0x181)],activityUrl));for(let iiii1IlI=0x0;ii1II1I[lIlIl1i1(0x218)](iiii1IlI,cookiesArr[lIlIl1i1(0x254)]);iiii1IlI++){if(cookiesArr[iiii1IlI]){cookie=cookiesArr[iiii1IlI],originCookie=cookiesArr[iiii1IlI],$[lIlIl1i1(0x1e6)]=ii1II1I[lIlIl1i1(0x263)](decodeURIComponent,cookie[lIlIl1i1(0x220)](/pt_pin=([^; ]+)(?=;?)/)&&cookie[lIlIl1i1(0x220)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[lIlIl1i1(0x1c7)]=ii1II1I[lIlIl1i1(0x225)](iiii1IlI,0x1),$[lIlIl1i1(0x14e)]=!![],$[lIlIl1i1(0x206)]='',message='',console[lIlIl1i1(0x1f0)](lIlIl1i1(0x230)+$[lIlIl1i1(0x1c7)]+'】'+($[lIlIl1i1(0x206)]||$[lIlIl1i1(0x1e6)])+lIlIl1i1(0x207));if(!$[lIlIl1i1(0x14e)]){$[lIlIl1i1(0x18b)]($[lIlIl1i1(0x241)],lIlIl1i1(0x1fb),lIlIl1i1(0x145)+$[lIlIl1i1(0x1c7)]+'\x20'+($[lIlIl1i1(0x206)]||$[lIlIl1i1(0x1e6)])+lIlIl1i1(0x175),{'open-url':ii1II1I[lIlIl1i1(0x1a6)]});$[lIlIl1i1(0x13f)]()&&await notify[lIlIl1i1(0x265)]($[lIlIl1i1(0x241)]+lIlIl1i1(0x1c3)+$[lIlIl1i1(0x1e6)],lIlIl1i1(0x145)+$[lIlIl1i1(0x1c7)]+'\x20'+$[lIlIl1i1(0x1e6)]+lIlIl1i1(0x151));continue;}await ii1II1I[lIlIl1i1(0x12c)](getUA),await ii1II1I[lIlIl1i1(0x1db)](run),await $[lIlIl1i1(0x19e)](0x7d0);if($[lIlIl1i1(0x261)]||$[lIlIl1i1(0x22b)]){if(ii1II1I[lIlIl1i1(0x190)](ii1II1I[lIlIl1i1(0x1d5)],ii1II1I[lIlIl1i1(0x1a5)]))break;else ii111Ill[lIlIl1i1(0x1f0)](ii1II1I[lIlIl1i1(0x169)](ii1II1I[lIlIl1i1(0x169)](ii1II1I[lIlIl1i1(0x225)](ii1II1I[lIlIl1i1(0x169)](ii1II1I[lIlIl1i1(0x1e8)](ii1II1I[lIlIl1i1(0x1a8)],'满'),iI1iIlII[lIlIl1i1(0x146)]),'减'),l11IIi1l[lIlIl1i1(0x16a)]),lIlIl1i1(0x157)));}}}if(allMessage){if($[lIlIl1i1(0x13f)]())await notify[lIlIl1i1(0x265)](''+$[lIlIl1i1(0x241)],''+allMessage);$[lIlIl1i1(0x18b)]($[lIlIl1i1(0x241)],'',allMessage);}})()[i1Iill1l(0x1bf)](il1llIii=>{const i1I1IllI=i1Iill1l;$[i1I1IllI(0x1f0)]('','❌\x20'+$[i1I1IllI(0x241)]+i1I1IllI(0x14c)+il1llIii+'!','');})[i1Iill1l(0x17b)](()=>{const ll1I1Ili=i1Iill1l;$[ll1I1Ili(0x1a0)]();});async function run(){const Iill1iiI=i1Iill1l,llIIi1I1={'ENzWe':Iill1iiI(0x152),'hbXLE':Iill1iiI(0x1ce),'kfXXC':function(i11lliIi,lil1iI1l,IllliI11){return i11lliIi(lil1iI1l,IllliI11);},'VDJft':function(III11ili,lIiiilil){return III11ili==lIiiilil;},'wDxrR':function(iIlllIil,iIillIl1){return iIlllIil!==iIillIl1;},'belnM':Iill1iiI(0x1ee),'avLZg':Iill1iiI(0x19c),'eoGPz':function(iIlIIII1){return iIlIIII1();},'PSABM':function(lilIli11){return lilIli11();},'tMsgP':function(lllliII,ilIII1ii){return lllliII===ilIII1ii;},'qlYHX':Iill1iiI(0x1a7)};try{$[Iill1iiI(0x1f1)]='',$[Iill1iiI(0x12a)]=![],$[Iill1iiI(0x1f1)]=await llIIi1I1[Iill1iiI(0x167)](getToken,originCookie,domains);if(llIIi1I1[Iill1iiI(0x162)]($[Iill1iiI(0x1f1)],'')){if(llIIi1I1[Iill1iiI(0x1d0)](llIIi1I1[Iill1iiI(0x212)],llIIi1I1[Iill1iiI(0x212)]))try{return I11Ill1[Iill1iiI(0x1e5)](illIIi1);}catch(lIiliI1){return II1i1IiI[Iill1iiI(0x1f0)](lIiliI1),IllIIli1[Iill1iiI(0x18b)](IIiIIi1l[Iill1iiI(0x241)],'',llIIi1I1[Iill1iiI(0x14f)]),[];}else{console[Iill1iiI(0x1f0)](llIIi1I1[Iill1iiI(0x252)]);return;}}await $[Iill1iiI(0x19e)](0x12c),await llIIi1I1[Iill1iiI(0x1ff)](getShopGiftActivity);if($[Iill1iiI(0x22b)])return;await $[Iill1iiI(0x19e)](0x12c),!$[Iill1iiI(0x239)]?(await llIIi1I1[Iill1iiI(0x168)](contact),await $[Iill1iiI(0x19e)](0x12c)):llIIi1I1[Iill1iiI(0x155)](llIIi1I1[Iill1iiI(0x1d6)],llIIi1I1[Iill1iiI(0x1d6)])?$[Iill1iiI(0x1f0)](llIIi1I1[Iill1iiI(0x1e2)]):iiIi1iii[Iill1iiI(0x1f0)](llIIi1I1[Iill1iiI(0x1e2)]);}catch(il1II11i){console[Iill1iiI(0x1f0)](il1II11i);}}function contact(){const lli1Ii11=i1Iill1l,llil1lll={'nHZKO':function(IiIIiii,iIIIlIii){return IiIIiii(iIIIlIii);},'jazco':function(l11IIlii,iII1I11I){return l11IIlii+iII1I11I;},'gqtmt':lli1Ii11(0x1e9),'MXrsN':lli1Ii11(0x143),'iFpcl':function(lII11Iii,liII1l1l){return lII11Iii==liII1l1l;},'HiXiw':function(l1i111ii,lIlilllI){return l1i111ii<lIlilllI;},'goDBj':function(lI1IllIl,I11I1ii1){return lI1IllIl===I11I1ii1;},'IklOO':lli1Ii11(0x235),'leUAj':function(I1i11iIi,Ii1IIII){return I1i11iIi==Ii1IIII;},'ZyVeO':function(iIlI1llI,IiI1IlIi){return iIlI1llI!=IiI1IlIi;},'WiDVE':lli1Ii11(0x166),'yVeSx':function(liilIili,ii1lii){return liilIili+ii1lii;},'lhFyE':function(llIiiill,i1II1II){return llIiiill+i1II1II;},'QITgr':function(l1IilII,iIl1li){return l1IilII!==iIl1li;},'wuTkc':lli1Ii11(0x1bb),'xNUCz':function(lliii1l1,Ili1iili){return lliii1l1+Ili1iili;},'Yzzjy':function(i1Illlii,lllIllI){return i1Illlii+lllIllI;},'uCjhP':lli1Ii11(0x1fa),'aMDkq':lli1Ii11(0x21e),'ArzJe':function(ll11i1Il,li1lIiII){return ll11i1Il!==li1lIiII;},'HUpdr':lli1Ii11(0x1c0),'mnCbI':lli1Ii11(0x243),'CAfWB':lli1Ii11(0x253),'rtHNT':lli1Ii11(0x22c),'PWceI':lli1Ii11(0x1c9),'shyJf':function(iII1l1,i1Il1liI){return iII1l1===i1Il1liI;},'SEAbA':lli1Ii11(0x245),'ioJLt':lli1Ii11(0x153),'xYtKt':function(llIiill1){return llIiill1();},'OqNGp':lli1Ii11(0x234),'JwgGD':lli1Ii11(0x1cc),'DngKu':lli1Ii11(0x25f),'yBZAt':lli1Ii11(0x15c),'Jsikq':lli1Ii11(0x176)};body={'wxToken':$[lli1Ii11(0x1f1)],'token':$[lli1Ii11(0x1f1)],'source':'01','venderId':$[lli1Ii11(0x262)]};let i1ili1i={'url':domains+lli1Ii11(0x12f)+$[lli1Ii11(0x262)]+lli1Ii11(0x1b1)+$[lli1Ii11(0x1f1)],'headers':{'Host':$[lli1Ii11(0x258)],'Connection':llil1lll[lli1Ii11(0x236)],'Accept':llil1lll[lli1Ii11(0x18c)],'User-Agent':UA,'Content-Type':llil1lll[lli1Ii11(0x1b4)],'Origin':lli1Ii11(0x192)+$[lli1Ii11(0x258)],'Referer':activityUrl,'Accept-Encoding':llil1lll[lli1Ii11(0x1f3)],'Accept-Language':llil1lll[lli1Ii11(0x25c)],'Cookie':cookie},'body':JSON[lli1Ii11(0x209)](body)};return new Promise(il1lilII=>{const l1llIii=lli1Ii11,iillill={'bQSgJ':function(Iii1ii,liilI1I){const Il1IIlll=Il1l1iii;return llil1lll[Il1IIlll(0x1df)](Iii1ii,liilI1I);},'cILZF':function(IIIliIli,llii1I11){const I1Ii=Il1l1iii;return llil1lll[I1Ii(0x1f9)](IIIliIli,llii1I11);},'xYgqR':function(i11i11ll,l1ilIII1){const i1IIIilI=Il1l1iii;return llil1lll[i1IIIilI(0x1f9)](i11i11ll,l1ilIII1);},'czngX':llil1lll[l1llIii(0x250)],'MnSpF':llil1lll[l1llIii(0x1e0)],'hCnjY':function(IilI1lIi,liil1il1){const iI11lII=l1llIii;return llil1lll[iI11lII(0x148)](IilI1lIi,liil1il1);},'Encgj':function(Il111lil,IiIili1I){const li1ii1II=l1llIii;return llil1lll[li1ii1II(0x196)](Il111lil,IiIili1I);},'fsbiL':function(iiil1l1i,lI1I1l1i){const IiI1lii=l1llIii;return llil1lll[IiI1lii(0x1f9)](iiil1l1i,lI1I1l1i);},'iXXvQ':function(iil1IIIl,ill1l1ii){const IiiII11l=l1llIii;return llil1lll[IiiII11l(0x1df)](iil1IIIl,ill1l1ii);},'jzqwf':function(i1Ii1III,iliIli1i){const Il11l1ii=l1llIii;return llil1lll[Il11l1ii(0x14b)](i1Ii1III,iliIli1i);},'IgsaG':llil1lll[l1llIii(0x170)],'wWTRx':function(i1i1iIli,ll11i1ll){const Iii1IiiI=l1llIii;return llil1lll[Iii1IiiI(0x138)](i1i1iIli,ll11i1ll);},'mffSu':function(i1lll1iI,liI1lilI){const i1ili11i=l1llIii;return llil1lll[i1ili11i(0x186)](i1lll1iI,liI1lilI);},'Zbsww':function(lIiIIiiI,IliiIli1){const il1ilI1=l1llIii;return llil1lll[il1ilI1(0x14b)](lIiIIiiI,IliiIli1);},'bQxkI':llil1lll[l1llIii(0x257)],'Usfpx':function(IlIl1ll1,lIillI1){const l1IlIIl=l1llIii;return llil1lll[l1IlIIl(0x172)](IlIl1ll1,lIillI1);},'IQXEo':function(lIillli,I1i1Ii1i){const li1IliI=l1llIii;return llil1lll[li1IliI(0x172)](lIillli,I1i1Ii1i);},'epNyk':function(I1lI1iIi,iiI1l1i1){const illI1Iii=l1llIii;return llil1lll[illI1Iii(0x18d)](I1lI1iIi,iiI1l1i1);},'aywMP':function(IiIiIlIi,IiiI1Il1){const IlIlIl1i=l1llIii;return llil1lll[IlIlIl1i(0x18d)](IiIiIlIi,IiiI1Il1);},'mPKqI':function(I1ilili,illII1){const i1llI1Ii=l1llIii;return llil1lll[i1llI1Ii(0x1da)](I1ilili,illII1);},'ddrDo':llil1lll[l1llIii(0x1ab)],'rZPGf':function(IlIlIi1I,I1lIi1li){const lIiIliIl=l1llIii;return llil1lll[lIiIliIl(0x1f9)](IlIlIi1I,I1lIi1li);},'sGund':function(Iliii1II,I11l1Ill){const I1Illl1I=l1llIii;return llil1lll[I1Illl1I(0x172)](Iliii1II,I11l1Ill);},'ZMglD':function(l1IliIil,I11Il1l){const lii11l=l1llIii;return llil1lll[lii11l(0x1cf)](l1IliIil,I11Il1l);},'tiKRm':function(lli1lIi,I1Il1il){const I11iIli=l1llIii;return llil1lll[I11iIli(0x1ed)](lli1lIi,I1Il1il);},'XsKyn':llil1lll[l1llIii(0x1a9)],'byhWL':llil1lll[l1llIii(0x1cd)],'HYrbT':function(lIliI1li,ii1Iiill){const Iliillll=l1llIii;return llil1lll[Iliillll(0x137)](lIliI1li,ii1Iiill);},'rvxNL':llil1lll[l1llIii(0x1a3)],'CcJMm':llil1lll[l1llIii(0x215)],'OftVz':llil1lll[l1llIii(0x147)],'xTcsH':llil1lll[l1llIii(0x24b)],'plXrP':llil1lll[l1llIii(0x140)],'hhdnV':function(Il111I1i,Ili1li1){const IIilIlI1=l1llIii;return llil1lll[IIilIlI1(0x174)](Il111I1i,Ili1li1);},'XVnGz':llil1lll[l1llIii(0x1d9)],'HLEgh':llil1lll[l1llIii(0x24d)],'BcGVy':function(IiilIi1I){const ililI11l=l1llIii;return llil1lll[ililI11l(0x187)](IiilIi1I);}};$[l1llIii(0x136)](i1ili1i,(Ii111iiI,Ii1llIli,IlI1l1i)=>{const iiIi1lI1=l1llIii,Iii11i1={'suNUi':iillill[iiIi1lI1(0x1c2)],'sPTOL':function(l1iiIIi1,iIIIIIlI){const iliii1=iiIi1lI1;return iillill[iliii1(0x194)](l1iiIIi1,iIIIIIlI);},'LzyWT':function(liI1Il1l,l1Iiilil){const i1I11ii1=iiIi1lI1;return iillill[i1I11ii1(0x1d7)](liI1Il1l,l1Iiilil);},'oiRRv':function(lll11Il1,iI1I1I1I){const l1lI1lIi=iiIi1lI1;return iillill[l1lI1lIi(0x17e)](lll11Il1,iI1I1I1I);},'oclZZ':function(iI1111ii,iIIiilll){const lIIiiili=iiIi1lI1;return iillill[lIIiiili(0x194)](iI1111ii,iIIiilll);},'RXDel':function(i1lIlI,l1ll1lIl){const llililli=iiIi1lI1;return iillill[llililli(0x194)](i1lIlI,l1ll1lIl);},'tcIiI':function(IIli11lI,iI1iilil){const ii11lIli=iiIi1lI1;return iillill[ii11lIli(0x194)](IIli11lI,iI1iilil);},'Jjwyk':function(Ii1Il1lI,i1iiiI11){const lIIiI1I1=iiIi1lI1;return iillill[lIIiI1I1(0x18e)](Ii1Il1lI,i1iiiI11);},'TNrLw':function(IiliIill,li1IIlI){const IIiil=iiIi1lI1;return iillill[IIiil(0x1d7)](IiliIill,li1IIlI);},'VBWDH':function(i111ilIi,Ii1l1l1l){const Iilii1ii=iiIi1lI1;return iillill[Iilii1ii(0x177)](i111ilIi,Ii1l1l1l);}};try{if(Ii111iiI)$[iiIi1lI1(0x1f0)](Ii111iiI);else{if(iillill[iiIi1lI1(0x1de)](safeGet,IlI1l1i)){IlI1l1i=JSON[iiIi1lI1(0x1e5)](IlI1l1i);if(IlI1l1i&&iillill[iiIi1lI1(0x17e)](IlI1l1i[iiIi1lI1(0x1fe)],0x1)){$[iiIi1lI1(0x189)]=IlI1l1i[iiIi1lI1(0x205)][iiIi1lI1(0x189)];for(o of $[iiIi1lI1(0x189)]){if(iillill[iiIi1lI1(0x156)](iillill[iiIi1lI1(0x178)],iillill[iiIi1lI1(0x178)])){$[iiIi1lI1(0x146)]=o[iiIi1lI1(0x146)],$[iiIi1lI1(0x16a)]=o[iiIi1lI1(0x16a)],$[iiIi1lI1(0x15f)]=o[iiIi1lI1(0x15f)];if(iillill[iiIi1lI1(0x160)](o[iiIi1lI1(0x146)],null)&&iillill[iiIi1lI1(0x139)](o[iiIi1lI1(0x15f)],0x0)){if(iillill[iiIi1lI1(0x1cb)](iillill[iiIi1lI1(0x132)],iillill[iiIi1lI1(0x132)]))console[iiIi1lI1(0x1f0)](iillill[iiIi1lI1(0x194)](iillill[iiIi1lI1(0x154)](iillill[iiIi1lI1(0x1af)],$[iiIi1lI1(0x15f)]),iiIi1lI1(0x1f4)));else return lII1IIlI[iiIi1lI1(0x1f0)](iiIi1lI1(0x244)),![];}else{if(iillill[iiIi1lI1(0x139)](o[iiIi1lI1(0x146)],null)&&iillill[iiIi1lI1(0x17e)](o[iiIi1lI1(0x15f)],0x0))console[iiIi1lI1(0x1f0)](iillill[iiIi1lI1(0x154)](iillill[iiIi1lI1(0x264)](iillill[iiIi1lI1(0x1f5)](iillill[iiIi1lI1(0x177)](iillill[iiIi1lI1(0x20b)](iillill[iiIi1lI1(0x1af)],'满'),$[iiIi1lI1(0x146)]),'减'),$[iiIi1lI1(0x16a)]),iiIi1lI1(0x157)));else{if(iillill[iiIi1lI1(0x139)](o[iiIi1lI1(0x146)],null)&&iillill[iiIi1lI1(0x139)](o[iiIi1lI1(0x15f)],0x0)){if(iillill[iiIi1lI1(0x222)](iillill[iiIi1lI1(0x21a)],iillill[iiIi1lI1(0x21a)]))return iillill[iiIi1lI1(0x1e4)](II1IIlI1,iIll1111[0x2]);else console[iiIi1lI1(0x1f0)](iillill[iiIi1lI1(0x154)](iillill[iiIi1lI1(0x1ea)](iillill[iiIi1lI1(0x1d7)](iillill[iiIi1lI1(0x177)](iillill[iiIi1lI1(0x21c)](iillill[iiIi1lI1(0x25b)](iillill[iiIi1lI1(0x13d)](iillill[iiIi1lI1(0x1af)],'满'),$[iiIi1lI1(0x146)]),'减'),$[iiIi1lI1(0x16a)]),iiIi1lI1(0x157)),$[iiIi1lI1(0x142)]),iiIi1lI1(0x144)));}else console[iiIi1lI1(0x1f0)]($[iiIi1lI1(0x189)]);}}}else{const i1llIlil=Iii11i1[iiIi1lI1(0x237)][iiIi1lI1(0x213)]('|');let IIIlllii=0x0;while(!![]){switch(i1llIlil[IIIlllii++]){case'0':var I1I1lIii=IIli[iiIi1lI1(0x219)]();continue;case'1':var illI1il1=Iii11i1[iiIi1lI1(0x16c)](IIli[iiIi1lI1(0x214)](),':');continue;case'2':var liIIiIl=Iii11i1[iiIi1lI1(0x246)](IIli[iiIi1lI1(0x1ef)](),'\x20');continue;case'3':Iii11i1[iiIi1lI1(0x17d)](liIIiIl[iiIi1lI1(0x254)],0x2)&&(liIIiIl=Iii11i1[iiIi1lI1(0x216)]('0',liIIiIl));continue;case'4':var IIli=new ilI1111I(ll111ili);continue;case'5':var iIl1i1Il=Iii11i1[iiIi1lI1(0x16c)](IIli[iiIi1lI1(0x199)](),'-');continue;case'6':var lIl1iilI=Iii11i1[iiIi1lI1(0x246)](IIli[iiIi1lI1(0x21f)](),':');continue;case'7':return Iii11i1[iiIi1lI1(0x16c)](Iii11i1[iiIi1lI1(0x246)](Iii11i1[iiIi1lI1(0x16c)](Iii11i1[iiIi1lI1(0x134)](Iii11i1[iiIi1lI1(0x1dd)](iIl1i1Il,ii1i11ll),liIIiIl),lIl1iilI),illI1il1),I1I1lIii);case'8':var ii1i11ll=Iii11i1[iiIi1lI1(0x16c)](Iii11i1[iiIi1lI1(0x1bd)](Iii11i1[iiIi1lI1(0x1f2)](IIli[iiIi1lI1(0x13a)](),0x1),0xa)?Iii11i1[iiIi1lI1(0x173)]('0',Iii11i1[iiIi1lI1(0x134)](IIli[iiIi1lI1(0x13a)](),0x1)):Iii11i1[iiIi1lI1(0x134)](IIli[iiIi1lI1(0x13a)](),0x1),'-');continue;}break;}}}}else{$[iiIi1lI1(0x1f0)](IlI1l1i[iiIi1lI1(0x18b)]),Ii111iiI=IlI1l1i[iiIi1lI1(0x18b)];for(let l1iii1l1 of['不足','火爆','上限',iillill[iiIi1lI1(0x1f7)],'擦肩',iillill[iiIi1lI1(0x13b)]]){if(iillill[iiIi1lI1(0x203)](iillill[iiIi1lI1(0x20c)],iillill[iiIi1lI1(0x204)])){if(Ii111iiI[iiIi1lI1(0x129)](l1iii1l1)){$[iiIi1lI1(0x12a)]=!![];break;}}else I1il1Il1[iiIi1lI1(0x1a0)]();}for(let IiIIIiii of['结束',iillill[iiIi1lI1(0x12e)]]){if(Ii111iiI[iiIi1lI1(0x129)](IiIIIiii)){if(iillill[iiIi1lI1(0x156)](iillill[iiIi1lI1(0x240)],iillill[iiIi1lI1(0x240)])){$[iiIi1lI1(0x22b)]=!![];break;}else Il11l1l1[iiIi1lI1(0x1f0)](iillill[iiIi1lI1(0x1d7)](iillill[iiIi1lI1(0x194)](iillill[iiIi1lI1(0x1af)],I1IIl1ii[iiIi1lI1(0x15f)]),iiIi1lI1(0x1f4)));}}}}else $[iiIi1lI1(0x1f0)](iillill[iiIi1lI1(0x20d)]);}}catch(iI1llliI){iillill[iiIi1lI1(0x141)](iillill[iiIi1lI1(0x20a)],iillill[iiIi1lI1(0x1ca)])?l111Ii1I[iiIi1lI1(0x1f0)](llIIII1l):$[iiIi1lI1(0x1f0)](iI1llliI);}finally{iillill[iiIi1lI1(0x1c5)](il1lilII);}});});}function getShopGiftActivity(){const i1Ii11iI=i1Iill1l,III1lIll={'lCDAu':function(l1iiIIII,IIil11Ii){return l1iiIIII==IIil11Ii;},'MESPM':i1Ii11iI(0x1c4),'lkVtT':i1Ii11iI(0x152),'lSIkU':function(iI1l1I){return iI1l1I();},'lopVY':i1Ii11iI(0x1a4),'SHYLy':i1Ii11iI(0x19c),'gFALs':function(IIliiIil,llIIiIii){return IIliiIil===llIIiIii;},'utvmx':i1Ii11iI(0x149),'BUHhO':function(iilIlil1,ilil1Iil){return iilIlil1===ilil1Iil;},'RuHFo':i1Ii11iI(0x221),'oUdyV':function(ii1i1Il1,lil1Il){return ii1i1Il1(lil1Il);},'YrWVj':i1Ii11iI(0x201),'UfIsp':i1Ii11iI(0x1fa),'QAwvv':i1Ii11iI(0x21e),'UfNTn':i1Ii11iI(0x253),'EfZoO':i1Ii11iI(0x1c9),'oQMfc':function(illiIill,il1iiIiI){return illiIill===il1iiIiI;},'lFDRM':i1Ii11iI(0x22a),'OyBBE':i1Ii11iI(0x23b),'pqZLo':function(IlIIIIii){return IlIIIIii();},'vVJPv':i1Ii11iI(0x234),'cbVpZ':i1Ii11iI(0x1cc),'IHuXD':i1Ii11iI(0x25f),'fkLHn':i1Ii11iI(0x15c),'uDzff':i1Ii11iI(0x176)};body={'venderId':activityId,'token':$[i1Ii11iI(0x1f1)],'source':'01'};let IlilIli={'url':domains+i1Ii11iI(0x249)+activityId,'headers':{'Host':$[i1Ii11iI(0x258)],'Connection':III1lIll[i1Ii11iI(0x200)],'Accept':III1lIll[i1Ii11iI(0x268)],'User-Agent':UA,'Content-Type':III1lIll[i1Ii11iI(0x191)],'Origin':i1Ii11iI(0x192)+$[i1Ii11iI(0x258)],'Referer':activityUrl,'Accept-Encoding':III1lIll[i1Ii11iI(0x17a)],'Accept-Language':III1lIll[i1Ii11iI(0x193)],'Cookie':cookie},'body':JSON[i1Ii11iI(0x209)](body)};return new Promise(IlII111=>{const iiiIlilI=i1Ii11iI,lIl11I1={'aHrCh':function(Ii1ilI1,lIili1II){const I1l1iiI=Il1l1iii;return III1lIll[I1l1iiI(0x223)](Ii1ilI1,lIili1II);},'tEXzk':III1lIll[iiiIlilI(0x26b)],'TlUoq':III1lIll[iiiIlilI(0x198)],'TKEEt':function(lliIIl11){const lIiil1II=iiiIlilI;return III1lIll[lIiil1II(0x15d)](lliIIl11);},'CysoJ':III1lIll[iiiIlilI(0x15a)],'MONtf':III1lIll[iiiIlilI(0x1fc)],'fTxJi':function(IIlIIlll,i1lll1i){const llI1Ili=iiiIlilI;return III1lIll[llI1Ili(0x17f)](IIlIIlll,i1lll1i);},'NcAiw':III1lIll[iiiIlilI(0x25e)],'mtIXT':function(il1lii1I,iiiI1iIi){const illIill=iiiIlilI;return III1lIll[illIill(0x19b)](il1lii1I,iiiI1iIi);},'WfHdG':III1lIll[iiiIlilI(0x1b7)],'ZHvEP':function(i1I1Ii1I,i11iil11){const lIilI1=iiiIlilI;return III1lIll[lIilI1(0x1dc)](i1I1Ii1I,i11iil11);},'ojMTo':III1lIll[iiiIlilI(0x185)],'ZUbWX':III1lIll[iiiIlilI(0x24f)],'zRdXa':III1lIll[iiiIlilI(0x182)],'BMfll':III1lIll[iiiIlilI(0x131)],'gBcmt':III1lIll[iiiIlilI(0x1fd)],'IWbgk':function(iiIIli1i,lilI1Iii){const l1i11Ii1=iiiIlilI;return III1lIll[l1i11Ii1(0x14a)](iiIIli1i,lilI1Iii);},'NXnNb':III1lIll[iiiIlilI(0x256)],'xwzQv':III1lIll[iiiIlilI(0x171)],'UkCaz':function(iiIliii){const liiIil1I=iiiIlilI;return III1lIll[liiIil1I(0x16f)](iiIliii);}};$[iiiIlilI(0x136)](IlilIli,(ilII111,IiII1lIl,li11ii)=>{const l11l11il=iiiIlilI,li11ilIi={'bsvZZ':function(IlilII){const i1IiI11l=Il1l1iii;return lIl11I1[i1IiI11l(0x164)](IlilII);},'NErGn':function(lIIlIli,IIi1llil){const I11Il1i1=Il1l1iii;return lIl11I1[I11Il1i1(0x247)](lIIlIli,IIi1llil);},'NXWJj':lIl11I1[l11l11il(0x1bc)],'WfoiK':lIl11I1[l11l11il(0x15e)]};if(lIl11I1[l11l11il(0x1b6)](lIl11I1[l11l11il(0x260)],lIl11I1[l11l11il(0x260)]))try{if(ilII111)lIl11I1[l11l11il(0x208)](lIl11I1[l11l11il(0x16e)],lIl11I1[l11l11il(0x16e)])?$[l11l11il(0x1f0)](ilII111):li11ilIi[l11l11il(0x269)](ilIi1lll);else{if(lIl11I1[l11l11il(0x1c1)](safeGet,li11ii)){if(lIl11I1[l11l11il(0x208)](lIl11I1[l11l11il(0x1c6)],lIl11I1[l11l11il(0x1c6)])){li11ii=JSON[l11l11il(0x1e5)](li11ii);if(li11ii&&lIl11I1[l11l11il(0x247)](li11ii[l11l11il(0x1fe)],0x1))$[l11l11il(0x262)]=li11ii[l11l11il(0x205)]['id'];else{$[l11l11il(0x1f0)](li11ii[l11l11il(0x18b)]),ilII111=li11ii[l11l11il(0x18b)];for(let Illi111I of['不足','火爆','上限',lIl11I1[l11l11il(0x233)],'擦肩',lIl11I1[l11l11il(0x130)]]){if(ilII111[l11l11il(0x129)](Illi111I)){$[l11l11il(0x12a)]=!![];break;}}for(let I11I1IIl of['结束',lIl11I1[l11l11il(0x1f6)]]){if(ilII111[l11l11il(0x129)](I11I1IIl)){$[l11l11il(0x22b)]=!![];break;}}}}else{if(li11ilIi[l11l11il(0x255)](typeof li11iill[l11l11il(0x1e5)](i1IIIi11),li11ilIi[l11l11il(0x13e)]))return!![];}}else $[l11l11il(0x1f0)](lIl11I1[l11l11il(0x217)]);}}catch(I1llI1iI){if(lIl11I1[l11l11il(0x251)](lIl11I1[l11l11il(0x242)],lIl11I1[l11l11il(0x24e)])){IilIiil1[l11l11il(0x1f0)](li11ilIi[l11l11il(0x211)]);return;}else $[l11l11il(0x1f0)](I1llI1iI);}finally{lIl11I1[l11l11il(0x238)](IlII111);}else{if(lIl11I1[l11l11il(0x247)](typeof IIIiii1,lIl11I1[l11l11il(0x24c)]))try{return iIiiIl1[l11l11il(0x1e5)](lIiiii1l);}catch(lI1iIl1l){return iiilIIl1[l11l11il(0x1f0)](lI1iIl1l),ilIII1iI[l11l11il(0x18b)](iiil11iI[l11l11il(0x241)],'',lIl11I1[l11l11il(0x165)]),[];}}});});}function jsonParse(IlIi11i1){const ll1I1IlI=i1Iill1l,i1lIiiii={'cfmBU':ll1I1IlI(0x1d2),'OaFIN':ll1I1IlI(0x226),'btfeH':function(iilli1ii,iIi1lll1){return iilli1ii(iIi1lll1);},'gRzOU':ll1I1IlI(0x197),'CapYe':function(Iiil11iI,llillIil){return Iiil11iI==llillIil;},'oLtXK':ll1I1IlI(0x1c4),'VnOgW':function(i1liii1I,Ii1lIIiI){return i1liii1I===Ii1lIIiI;},'FNCAD':ll1I1IlI(0x1ac),'bAoZL':ll1I1IlI(0x23f),'eWymI':function(llIIli,IillI1I){return llIIli!==IillI1I;},'JMzjU':ll1I1IlI(0x135),'GpiKN':ll1I1IlI(0x152)};if(i1lIiiii[ll1I1IlI(0x19d)](typeof IlIi11i1,i1lIiiii[ll1I1IlI(0x1ba)]))try{if(i1lIiiii[ll1I1IlI(0x23c)](i1lIiiii[ll1I1IlI(0x1e3)],i1lIiiii[ll1I1IlI(0x150)]))i1il1Ii1=[lllII1il[ll1I1IlI(0x229)](i1lIiiii[ll1I1IlI(0x231)]),l11Iiil[ll1I1IlI(0x229)](i1lIiiii[ll1I1IlI(0x20e)]),...i1lIiiii[ll1I1IlI(0x13c)](IiiIIli1,ill1IIi[ll1I1IlI(0x229)](i1lIiiii[ll1I1IlI(0x1d8)])||'[]')[ll1I1IlI(0x259)](i1iiliIl=>i1iiliIl[ll1I1IlI(0x12b)])][ll1I1IlI(0x179)](i1lli1Il=>!!i1lli1Il);else return JSON[ll1I1IlI(0x1e5)](IlIi11i1);}catch(lIiI1III){return i1lIiiii[ll1I1IlI(0x25d)](i1lIiiii[ll1I1IlI(0x23d)],i1lIiiii[ll1I1IlI(0x23d)])?ili1il1l[ll1I1IlI(0x1e5)](iIiii1il):(console[ll1I1IlI(0x1f0)](lIiI1III),$[ll1I1IlI(0x18b)]($[ll1I1IlI(0x241)],'',i1lIiiii[ll1I1IlI(0x248)]),[]);}}function safeGet(iIliIl1l){const l1I1llI1=i1Iill1l,lli1III={'hALbe':function(liIl1lII,Iil1I11I){return liIl1lII==Iil1I11I;},'VuorG':l1I1llI1(0x1a4),'MUpUX':function(lIi1lIil,IIIIiii){return lIi1lIil!==IIIIiii;},'NlHUA':l1I1llI1(0x19a)};if(!iIliIl1l)return console[l1I1llI1(0x1f0)](l1I1llI1(0x244)),![];try{if(lli1III[l1I1llI1(0x210)](typeof JSON[l1I1llI1(0x1e5)](iIliIl1l),lli1III[l1I1llI1(0x23e)]))return!![];}catch(ll1l1111){return lli1III[l1I1llI1(0x18f)](lli1III[l1I1llI1(0x1ec)],lli1III[l1I1llI1(0x1ec)])?!![]:(console[l1I1llI1(0x1f0)](ll1l1111),![]);}}function getQueryString(lI1iili,lII1ill){const i1I1IIi=i1Iill1l,IlIiliiI={'sLTCw':function(l1IiI1I,llI1I1I1){return l1IiI1I+llI1I1I1;},'Uqkdw':i1I1IIi(0x1d3),'XsXsa':i1I1IIi(0x227),'eZhtQ':function(l1IliiII,l1lI1Ili){return l1IliiII!=l1lI1Ili;},'hZFlM':function(ili1ilii,I1I1l111){return ili1ilii(I1I1l111);}};let lIiili=new RegExp(IlIiliiI[i1I1IIi(0x24a)](IlIiliiI[i1I1IIi(0x24a)](IlIiliiI[i1I1IIi(0x1b3)],lII1ill),IlIiliiI[i1I1IIi(0x1f8)])),Il1111I=lI1iili[i1I1IIi(0x220)](lIiili);if(IlIiliiI[i1I1IIi(0x21b)](Il1111I,null))return IlIiliiI[i1I1IIi(0x188)](decodeURIComponent,Il1111I[0x2]);return'';}function timestampToTime(lil1l1ll){const lII11ii1=i1Iill1l,iiIi111={'xDjly':lII11ii1(0x1e1),'mfUEI':function(illli11I,I1l11IiI){return illli11I+I1l11IiI;},'WDwMr':function(l111II1l,il11Il11){return l111II1l==il11Il11;},'IwGJd':function(i11li1l,I11iIll){return i11li1l+I11iIll;},'KIuRR':function(I1lllIi,ll1Ill){return I1lllIi+ll1Ill;},'xCXHv':function(liIl1i,lillIlIl){return liIl1i+lillIlIl;},'FrXvp':function(iii1ll11,IlliliIl){return iii1ll11+IlliliIl;},'rhXbX':function(I1lllIl,IIII1ii1){return I1lllIl<IIII1ii1;},'DMnYa':function(iIIi1111,IIiI11lI){return iIIi1111+IIiI11lI;},'AqgmU':function(IIIili,iliI111i){return IIIili+iliI111i;},'Syppd':function(i1IiiIll,lI1lIiII){return i1IiiIll+lI1lIiII;},'qcszT':function(l11lIill,IIll1iI1){return l11lIill+IIll1iI1;}},l1Ii1l1I=iiIi111[lII11ii1(0x266)][lII11ii1(0x213)]('|');let lIlii1Ii=0x0;while(!![]){switch(l1Ii1l1I[lIlii1Ii++]){case'0':var IllI1lll=l11I1[lII11ii1(0x219)]();continue;case'1':var i1I1i11=iiIi111[lII11ii1(0x25a)](l11I1[lII11ii1(0x21f)](),':');continue;case'2':var l11I1=new Date(lil1l1ll);continue;case'3':iiIi111[lII11ii1(0x1ae)](ili1Il1I[lII11ii1(0x254)],0x2)&&(ili1Il1I=iiIi111[lII11ii1(0x25a)]('0',ili1Il1I));continue;case'4':var i11l1II=iiIi111[lII11ii1(0x1e7)](l11I1[lII11ii1(0x199)](),'-');continue;case'5':var ili1Il1I=iiIi111[lII11ii1(0x25a)](l11I1[lII11ii1(0x1ef)](),'\x20');continue;case'6':return iiIi111[lII11ii1(0x1e7)](iiIi111[lII11ii1(0x1e7)](iiIi111[lII11ii1(0x1e7)](iiIi111[lII11ii1(0x1a1)](iiIi111[lII11ii1(0x1a1)](i11l1II,II1III1l),ili1Il1I),i1I1i11),IIlil1l1),IllI1lll);case'7':var IIlil1l1=iiIi111[lII11ii1(0x14d)](l11I1[lII11ii1(0x214)](),':');continue;case'8':var II1III1l=iiIi111[lII11ii1(0x159)](iiIi111[lII11ii1(0x161)](iiIi111[lII11ii1(0x133)](l11I1[lII11ii1(0x13a)](),0x1),0xa)?iiIi111[lII11ii1(0x1aa)]('0',iiIi111[lII11ii1(0x163)](l11I1[lII11ii1(0x13a)](),0x1)):iiIi111[lII11ii1(0x224)](l11I1[lII11ii1(0x13a)](),0x1),'-');continue;}break;}}function getUA(){const l1l11iiI=i1Iill1l,iI1liiI1={'cBRit':function(liI1Iii1,iilliIi1){return liI1Iii1(iilliIi1);}};UA=l1l11iiI(0x183)+iI1liiI1[l1l11iiI(0x1a2)](randomString,0x28)+l1l11iiI(0x1b9);}function randomString(Iil1lii1){const lilI1Iil=i1Iill1l,lliIliII={'DwMdj':function(iiiiIIII,IIi1Iiii){return iiiiIIII||IIi1Iiii;},'rCUaH':lilI1Iil(0x158),'Jkegu':function(l1lIi1l,IlI1Ii1l){return l1lIi1l<IlI1Ii1l;},'GnoGA':function(il111l,I11i1l1i){return il111l*I11i1l1i;}};Iil1lii1=lliIliII[lilI1Iil(0x195)](Iil1lii1,0x20);let IlilllI=lliIliII[lilI1Iil(0x180)],IlIlI1il=IlilllI[lilI1Iil(0x254)],IilI1il1='';for(i=0x0;lliIliII[lilI1Iil(0x1ad)](i,Iil1lii1);i++)IilI1il1+=IlilllI[lilI1Iil(0x26c)](Math[lilI1Iil(0x1be)](lliIliII[lilI1Iil(0x17c)](Math[lilI1Iil(0x18a)](),IlIlI1il)));return IilI1il1;}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) }