mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
19 lines
41 KiB
JavaScript
19 lines
41 KiB
JavaScript
/*
|
||
活动名称:幸运大转盘 · 无线营销
|
||
活动链接:https://gzsl-isv.isvjcloud.com/wuxian/user/getLottery/<活动id>
|
||
环境变量:jd_gzsl_getLottery_activityUrl // 活动链接
|
||
|
||
7 7 7 7 * jd_gzsl_getLottery.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 iillllIl=iIIll1Il;(function(I11I1lIi,IlI1IIiI,IlIlil1i,i1Ill1ll,Ii1llIii,I1ll1,l111iiil){return I11I1lIi=I11I1lIi>>0x6,I1ll1='hs',l111iiil='hs',function(ilIlli,IIl11lII,llilii1,iiill1Ii,Il11ilI1){const I1ill1I=iIIll1Il;iiill1Ii='tfi',I1ll1=iiill1Ii+I1ll1,Il11ilI1='up',l111iiil+=Il11ilI1,I1ll1=llilii1(I1ll1),l111iiil=llilii1(l111iiil),llilii1=0x0;const llIiIilI=ilIlli();while(!![]&&--i1Ill1ll+IIl11lII){try{iiill1Ii=-parseInt(I1ill1I(0x242))/0x1+-parseInt(I1ill1I(0x205))/0x2+parseInt(I1ill1I(0x2ae))/0x3+-parseInt(I1ill1I(0x1df))/0x4*(parseInt(I1ill1I(0x1ee))/0x5)+-parseInt(I1ill1I(0x2e4))/0x6*(parseInt(I1ill1I(0x2ba))/0x7)+parseInt(I1ill1I(0x2d2))/0x8+parseInt(I1ill1I(0x1c2))/0x9;}catch(iiIIi1II){iiill1Ii=llilii1;}finally{Il11ilI1=llIiIilI[I1ll1]();if(I11I1lIi<=i1Ill1ll)llilii1?Ii1llIii?iiill1Ii=Il11ilI1:Ii1llIii=Il11ilI1:llilii1=Il11ilI1;else{if(llilii1==Ii1llIii['replace'](/[FtuhePHQWlRqpbyXUrK=]/g,'')){if(iiill1Ii===IIl11lII){llIiIilI['un'+I1ll1](Il11ilI1);break;}llIiIilI[l111iiil](Il11ilI1);}}}}}(IlIlil1i,IlI1IIiI,function(lI11i,Ii1IlI1,i1IIi11l,Iii1lIi1,ilI111il,i111lli,lIIi11i){return Ii1IlI1='\x73\x70\x6c\x69\x74',lI11i=arguments[0x0],lI11i=lI11i[Ii1IlI1](''),i1IIi11l=`\x72\x65\x76\x65\x72\x73\x65`,lI11i=lI11i[i1IIi11l]('\x76'),Iii1lIi1=`\x6a\x6f\x69\x6e`,(0x135e1f,lI11i[Iii1lIi1](''));});}(0x3180,0xd0f88,IiI1i,0xc8),IiI1i)&&(version_=IiI1i);let cookiesArr=[],cookie='',allMessage='',activityUrl=process[iillllIl(0x2a8)][iillllIl(0x23c)]?process[iillllIl(0x2a8)][iillllIl(0x23c)]:'';if($[iillllIl(0x1c8)]()){Object[iillllIl(0x1f3)](jdCookieNode)[iillllIl(0x2b6)](i11lliIl=>{const i1lli1li=iillllIl;cookiesArr[i1lli1li(0x1e4)](jdCookieNode[i11lliIl]);});if(process[iillllIl(0x2a8)][iillllIl(0x1b3)]&&process[iillllIl(0x2a8)][iillllIl(0x1b3)]===iillllIl(0x2b8))console[iillllIl(0x1be)]=()=>{};}else cookiesArr=[$[iillllIl(0x2e0)](iillllIl(0x2b4)),$[iillllIl(0x2e0)](iillllIl(0x265)),...jsonParse($[iillllIl(0x2e0)](iillllIl(0x222))||'[]')[iillllIl(0x2d5)](IlIIiIil=>IlIIiIil[iillllIl(0x2b7)])][iillllIl(0x24b)](lIIlIIIi=>!!lIIlIIIi);if(activityUrl)activityId=getQueryString(''+activityUrl,iillllIl(0x1ca)),$[iillllIl(0x2ab)]=activityUrl[iillllIl(0x1fa)](/https?:\/\/([^/]+)/)[0x1];else{console[iillllIl(0x1be)](iillllIl(0x1cf));return;}let domains=iillllIl(0x29a)+$[iillllIl(0x2ab)];!(async()=>{const l1i1Ill=iillllIl,l11ll1I={'sbwIR':function(I1i1l1Ii,il1i11I1){return I1i1l1Ii+il1i11I1;},'YdNRz':function(Il1ilIiI,illil1ii){return Il1ilIiI+illil1ii;},'wvFGe':l1i1Ill(0x1c7),'VXUoL':l1i1Ill(0x2ce),'hgaRY':function(lili1l1,I1iIl11){return lili1l1!=I1iIl11;},'grPly':function(liiI1IIl,iii1111I){return liiI1IIl(iii1111I);},'ZCibp':l1i1Ill(0x279),'egzLq':l1i1Ill(0x1fb),'RCsBL':function(iIiII1II,IiiIlli1){return iIiII1II+IiiIlli1;},'yuEMQ':l1i1Ill(0x250),'eOEPI':function(lilliiII,lillIlll){return lilliiII<lillIlll;},'JKZFP':function(i1I11IiI,lIl1lli1){return i1I11IiI!==lIl1lli1;},'nYrsp':l1i1Ill(0x298),'nWKlH':function(lI1lIIll,ii11l1I1){return lI1lIIll(ii11l1I1);},'vLZgc':function(l1l1ll11){return l1l1ll11();},'sKxLj':l1i1Ill(0x2b9),'xpZFn':l1i1Ill(0x2ea)};if(!cookiesArr[0x0]){$[l1i1Ill(0x1ea)]($[l1i1Ill(0x1f1)],l11ll1I[l1i1Ill(0x2a5)],l11ll1I[l1i1Ill(0x291)],{'open-url':l11ll1I[l1i1Ill(0x291)]});return;}console[l1i1Ill(0x1be)](l11ll1I[l1i1Ill(0x29c)](l11ll1I[l1i1Ill(0x1d2)],activityUrl));for(let il1Iiii=0x0;l11ll1I[l1i1Ill(0x1f7)](il1Iiii,cookiesArr[l1i1Ill(0x2c3)]);il1Iiii++){if(l11ll1I[l1i1Ill(0x2c5)](l11ll1I[l1i1Ill(0x2ee)],l11ll1I[l1i1Ill(0x2ee)]))return l1ill1l[l1i1Ill(0x2df)](IliIIli);else{if(cookiesArr[il1Iiii]){cookie=cookiesArr[il1Iiii],originCookie=cookiesArr[il1Iiii],$[l1i1Ill(0x26d)]=l11ll1I[l1i1Ill(0x247)](decodeURIComponent,cookie[l1i1Ill(0x1fa)](/pt_pin=([^; ]+)(?=;?)/)&&cookie[l1i1Ill(0x1fa)](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[l1i1Ill(0x1aa)]=l11ll1I[l1i1Ill(0x267)](il1Iiii,0x1),$[l1i1Ill(0x221)]=!![],$[l1i1Ill(0x1f9)]='',message='',console[l1i1Ill(0x1be)](l1i1Ill(0x22e)+$[l1i1Ill(0x1aa)]+'】'+($[l1i1Ill(0x1f9)]||$[l1i1Ill(0x26d)])+l1i1Ill(0x2a1));if(!$[l1i1Ill(0x221)]){$[l1i1Ill(0x1ea)]($[l1i1Ill(0x1f1)],l1i1Ill(0x2c9),l1i1Ill(0x232)+$[l1i1Ill(0x1aa)]+'\x20'+($[l1i1Ill(0x1f9)]||$[l1i1Ill(0x26d)])+l1i1Ill(0x2a9),{'open-url':l11ll1I[l1i1Ill(0x291)]});$[l1i1Ill(0x1c8)]()&&await notify[l1i1Ill(0x20f)]($[l1i1Ill(0x1f1)]+l1i1Ill(0x27f)+$[l1i1Ill(0x26d)],l1i1Ill(0x232)+$[l1i1Ill(0x1aa)]+'\x20'+$[l1i1Ill(0x26d)]+l1i1Ill(0x225));continue;}await l11ll1I[l1i1Ill(0x282)](getUA),await l11ll1I[l1i1Ill(0x282)](run),await $[l1i1Ill(0x283)](0x7d0);if($[l1i1Ill(0x1b4)]||$[l1i1Ill(0x1c0)])break;}}}if(allMessage){if(l11ll1I[l1i1Ill(0x2c5)](l11ll1I[l1i1Ill(0x202)],l11ll1I[l1i1Ill(0x23a)])){if($[l1i1Ill(0x1c8)]())await notify[l1i1Ill(0x20f)](''+$[l1i1Ill(0x1f1)],''+allMessage);$[l1i1Ill(0x1ea)]($[l1i1Ill(0x1f1)],'',allMessage);}else{let l1i1ilii=new Iilll11(l11ll1I[l1i1Ill(0x267)](l11ll1I[l1i1Ill(0x23d)](l11ll1I[l1i1Ill(0x269)],lIiiIiI),l11ll1I[l1i1Ill(0x1ba)])),ii1llIil=ll1Iiiii[l1i1Ill(0x1fa)](l1i1ilii);if(l11ll1I[l1i1Ill(0x214)](ii1llIil,null))return l11ll1I[l1i1Ill(0x1b6)](Ii111l1i,ii1llIil[0x2]);return'';}}})()[iillllIl(0x2e7)](i1I1IIlI=>{const iil111ii=iillllIl;$[iil111ii(0x1be)]('','❌\x20'+$[iil111ii(0x1f1)]+iil111ii(0x28b)+i1I1IIlI+'!','');})[iillllIl(0x21d)](()=>{const IlillIll=iillllIl;$[IlillIll(0x2f8)]();});async function run(){const iiiIi1il=iillllIl,liIiiil={'Swejv':function(l11iiiiI,llilI11i){return l11iiiiI||llilI11i;},'XKxrd':iiiIi1il(0x1e5),'RkFUA':function(IilI11li,lIi1il){return IilI11li<lIi1il;},'AhkeP':function(li1i1il,llii1Ii){return li1i1il*llii1Ii;},'tCadw':iiiIi1il(0x218),'wkIjm':function(il1Ii11l,IlIili11,l1iI1ii1){return il1Ii11l(IlIili11,l1iI1ii1);},'eGnfO':function(lli1iIIl,lIi11lI){return lli1iIIl==lIi11lI;},'VxaWM':iiiIi1il(0x2b2),'wsKAE':function(iIlIll1){return iIlIll1();},'eNAkO':function(lIIiii11,I11iilli){return lIIiii11===I11iilli;},'SxEcV':iiiIi1il(0x213),'SBqLU':iiiIi1il(0x29b),'JmhMP':iiiIi1il(0x2c4),'OpodP':iiiIi1il(0x1b0),'ITKpk':function(I1i11Ii1,iIlIiII,lI111ii1){return I1i11Ii1(iIlIiII,lI111ii1);},'IoyLo':function(l1I1iIIl,ilIii1I){return l1I1iIIl+ilIii1I;},'VElAd':function(lli1II1i,l1iIllIi){return lli1II1i*l1iIllIi;},'explS':iiiIi1il(0x22b),'pxCqF':iiiIi1il(0x21c)};try{$[iiiIi1il(0x208)]='',$[iiiIi1il(0x255)]=![];let ii11IlIl=0x5;$[iiiIi1il(0x208)]=await liIiiil[iiiIi1il(0x256)](getToken,originCookie,domains);if(liIiiil[iiiIi1il(0x28c)]($[iiiIi1il(0x208)],'')){console[iiiIi1il(0x1be)](liIiiil[iiiIi1il(0x1c4)]);return;}await $[iiiIi1il(0x283)](0x12c),await liIiiil[iiiIi1il(0x27e)](getLottery);if($[iiiIi1il(0x1c0)])return;await $[iiiIi1il(0x283)](0x12c);for(m=0x1;ii11IlIl--;m++){if(liIiiil[iiiIi1il(0x261)](liIiiil[iiiIi1il(0x277)],liIiiil[iiiIi1il(0x238)])){ililiIl=liIiiil[iiiIi1il(0x245)](l1ii1IIi,0x20);let iilII1=liIiiil[iiiIi1il(0x246)],llIlIlII=iilII1[iiiIi1il(0x2c3)],i1illII='';for(II1iiliI=0x0;liIiiil[iiiIi1il(0x1e3)](Il1llili,iIllIl1);IliIIlil++)i1illII+=iilII1[iiiIi1il(0x1bf)](i1iliii[iiiIi1il(0x297)](liIiiil[iiiIi1il(0x240)](IliIlil1[iiiIi1il(0x2b3)](),llIlIlII)));return i1illII;}else{if(!$[iiiIi1il(0x255)]){if(liIiiil[iiiIi1il(0x261)](liIiiil[iiiIi1il(0x254)],liIiiil[iiiIi1il(0x1a9)]))I111i11I[iiiIi1il(0x1be)](llil11II);else{await liIiiil[iiiIi1il(0x27e)](draw);$[iiiIi1il(0x2cb)]&&await liIiiil[iiiIi1il(0x27e)](flowShop);if($[iiiIi1il(0x1c0)])return;await $[iiiIi1il(0x283)](liIiiil[iiiIi1il(0x273)](parseInt,liIiiil[iiiIi1il(0x1e9)](liIiiil[iiiIi1il(0x25d)](Math[iiiIi1il(0x2b3)](),0x7d0),0x9c4),0xa));}}}}}catch(lIl11iii){liIiiil[iiiIi1il(0x261)](liIiiil[iiiIi1il(0x29e)],liIiiil[iiiIi1il(0x2f4)])?liIiII[iiiIi1il(0x1be)](liIiiil[iiiIi1il(0x262)]):console[iiiIi1il(0x1be)](lIl11iii);}}function getLottery(){const lI11iliI=iillllIl,IIIil1lI={'IHbis':lI11iliI(0x279),'yoDvV':lI11iliI(0x1fb),'gfjil':function(lIllIiiI,illlIiII,liiIll1l){return lIllIiiI(illlIiII,liiIll1l);},'SgmLL':lI11iliI(0x1ca),'nHIYC':lI11iliI(0x285),'YeTDy':function(iilI1iI1,i1Il1I1l){return iilI1iI1===i1Il1I1l;},'LAHnP':lI11iliI(0x26c),'HNeSr':function(iiilii1I,iiiliIII){return iiilii1I===iiiliIII;},'EuwgW':lI11iliI(0x2db),'rcHjY':function(llIIii1i,IIIlI111){return llIIii1i!==IIIlI111;},'MXrNI':lI11iliI(0x1ae),'mbJpi':lI11iliI(0x2c1),'Qgxha':function(IIill11l,iIlil1I1){return IIill11l==iIlil1I1;},'NNCAB':function(Iii1IIII,i1I1I1ll){return Iii1IIII+i1I1I1ll;},'ZWqtK':lI11iliI(0x1c6),'JETFj':function(iI1l1i1i,IIlllliI){return iI1l1i1i===IIlllliI;},'kQhUE':lI11iliI(0x2dc),'KUpsT':lI11iliI(0x2ed),'SWHXr':lI11iliI(0x218),'tfMoq':function(IIl1Iill,iIlI1iI){return IIl1Iill===iIlI1iI;},'DfKoV':lI11iliI(0x1af),'yZMVB':function(lilI1Ill){return lilI1Ill();},'yIeXz':lI11iliI(0x2f2),'OKFFS':lI11iliI(0x2c6),'idqnH':lI11iliI(0x244),'mXdvd':lI11iliI(0x1cd),'KLduw':lI11iliI(0x28e),'fJQxN':lI11iliI(0x23b),'Zgzgf':lI11iliI(0x29d)};body={'activityId':activityId,'token':$[lI11iliI(0x208)],'source':'01'};let liIi1lll={'url':domains+lI11iliI(0x220)+activityId,'headers':{'Host':$[lI11iliI(0x2ab)],'Connection':IIIil1lI[lI11iliI(0x215)],'Accept':IIIil1lI[lI11iliI(0x1f5)],'User-Agent':UA,'Content-Type':IIIil1lI[lI11iliI(0x230)],'Origin':lI11iliI(0x29a)+$[lI11iliI(0x2ab)],'Referer':activityUrl,'Accept-Encoding':IIIil1lI[lI11iliI(0x241)],'Accept-Language':IIIil1lI[lI11iliI(0x270)],'Cookie':cookie},'body':JSON[lI11iliI(0x272)](body)};return new Promise(ili11Il=>{const ilII1i1i=lI11iliI,iIiIi1l={'SjLpI':IIIil1lI[ilII1i1i(0x2f6)]};if(IIIil1lI[ilII1i1i(0x299)](IIIil1lI[ilII1i1i(0x264)],IIIil1lI[ilII1i1i(0x28f)])){ilI11iIl[ilII1i1i(0x1ea)](iIillli1[ilII1i1i(0x1f1)],IIIil1lI[ilII1i1i(0x24c)],IIIil1lI[ilII1i1i(0x2a3)],{'open-url':IIIil1lI[ilII1i1i(0x2a3)]});return;}else $[ilII1i1i(0x2a0)](liIi1lll,(IlilIiil,II1IIIII,il11Illl)=>{const illiil11=ilII1i1i,lil1I1ll={'sWfHP':function(iiIllIl1,ili1i1lI,i1ii11ii){const IIiil1iI=iIIll1Il;return IIIil1lI[IIiil1iI(0x2af)](iiIllIl1,ili1i1lI,i1ii11ii);},'hLtkO':IIIil1lI[illiil11(0x231)],'HKjgh':IIIil1lI[illiil11(0x1a8)]};if(IIIil1lI[illiil11(0x2f9)](IIIil1lI[illiil11(0x1d1)],IIIil1lI[illiil11(0x1d1)]))try{if(IlilIiil)IIIil1lI[illiil11(0x1a6)](IIIil1lI[illiil11(0x2bf)],IIIil1lI[illiil11(0x2bf)])?$[illiil11(0x1be)](IlilIiil):(iI11ii=lil1I1ll[illiil11(0x2eb)](I1I11Ii1,''+IiiIlil,lil1I1ll[illiil11(0x1c3)]),I1ilIill[illiil11(0x2ab)]=l1lIiIli[illiil11(0x1fa)](/https?:\/\/([^/]+)/)[0x1]);else{if(IIIil1lI[illiil11(0x1e6)](IIIil1lI[illiil11(0x2ec)],IIIil1lI[illiil11(0x1eb)])){if(il11Illl){il11Illl=JSON[illiil11(0x2df)](il11Illl);if(il11Illl&&IIIil1lI[illiil11(0x201)](il11Illl[illiil11(0x2d1)],0x1))IIIil1lI[illiil11(0x201)]($[illiil11(0x1aa)],0x1)&&console[illiil11(0x1be)](IIIil1lI[illiil11(0x2b5)](IIIil1lI[illiil11(0x2b5)](IIIil1lI[illiil11(0x207)],JSON[illiil11(0x2df)](JSON[illiil11(0x272)](il11Illl[illiil11(0x2a7)][illiil11(0x1b2)]))),'\x0a')),$[illiil11(0x2bb)]=JSON[illiil11(0x2df)](JSON[illiil11(0x272)](il11Illl[illiil11(0x2a7)][illiil11(0x2bb)])),$[illiil11(0x1ab)]=JSON[illiil11(0x2df)](JSON[illiil11(0x272)](il11Illl[illiil11(0x2a7)][illiil11(0x1ab)]));else{if(IIIil1lI[illiil11(0x2e3)](IIIil1lI[illiil11(0x2a6)],IIIil1lI[illiil11(0x2a6)])){$[illiil11(0x1be)](il11Illl[illiil11(0x1ea)]),IlilIiil=il11Illl[illiil11(0x1ea)];for(let IIli1Ill of['结束',IIIil1lI[illiil11(0x2f1)]]){if(IlilIiil[illiil11(0x21a)](IIli1Ill)){$[illiil11(0x1c0)]=!![];break;}}}else IIliIIi1[illiil11(0x1be)](lil1I1ll[illiil11(0x1f2)]);}}else $[illiil11(0x1be)](IIIil1lI[illiil11(0x2f6)]);}else lIiI11lI[illiil11(0x1be)](illIl1i1);}}catch(iI1IiIIl){$[illiil11(0x1be)](iI1IiIIl);}finally{IIIil1lI[illiil11(0x299)](IIIil1lI[illiil11(0x23f)],IIIil1lI[illiil11(0x23f)])?IIIil1lI[illiil11(0x25f)](ili11Il):ilIllIii[illiil11(0x1be)](iIiIi1l[illiil11(0x26a)]);}else il11llI1[illiil11(0x1be)](ll1iili1);});});}function flowShop(){const iiIi1Il=iillllIl,ll1iiIl1={'spMRl':function(ilil1lI){return ilil1lI();},'Cqinr':function(IlliIi1l,lll11i11){return IlliIi1l(lll11i11);},'whYEK':function(l11iil1l,I1IilIIi){return l11iil1l===I1IilIIi;},'WFDWn':iiIi1Il(0x2e5),'Sglnp':function(iIl111iI,lIilli1){return iIl111iI!==lIilli1;},'lZKlb':iiIi1Il(0x288),'lXnGd':function(lIllll,IllllI11){return lIllll==IllllI11;},'tgerd':function(iIill1iI,lI1ilI){return iIill1iI!==lI1ilI;},'LlieD':iiIi1Il(0x1d6),'Ozobn':iiIi1Il(0x24a),'YvCuA':iiIi1Il(0x1dd),'mULdm':iiIi1Il(0x1fe),'zzyeC':iiIi1Il(0x218),'AWMXf':iiIi1Il(0x244),'Bnkwv':iiIi1Il(0x1cd),'eSlPD':iiIi1Il(0x28e),'wvYRH':iiIi1Il(0x23b),'KPLwf':iiIi1Il(0x29d)};body={'shopId':$[iiIi1Il(0x1ab)],'venderId':$[iiIi1Il(0x2bb)],'token':$[iiIi1Il(0x208)],'source':'01'};let lIli1III={'url':domains+iiIi1Il(0x1ac)+$[iiIi1Il(0x1ab)]+'/'+$[iiIi1Il(0x2bb)],'headers':{'Host':$[iiIi1Il(0x2ab)],'Connection':ll1iiIl1[iiIi1Il(0x1d5)],'Accept':ll1iiIl1[iiIi1Il(0x29f)],'User-Agent':UA,'Content-Type':ll1iiIl1[iiIi1Il(0x1da)],'Origin':iiIi1Il(0x29a)+$[iiIi1Il(0x2ab)],'Referer':activityUrl,'Accept-Encoding':ll1iiIl1[iiIi1Il(0x275)],'Accept-Language':ll1iiIl1[iiIi1Il(0x1ef)],'Cookie':cookie},'body':JSON[iiIi1Il(0x272)](body)};return new Promise(Illl11il=>{const ili1i1=iiIi1Il,I11lI1iI={'riRRV':function(i11iIi){const i1liii1=iIIll1Il;return ll1iiIl1[i1liii1(0x1bd)](i11iIi);},'vNJpr':function(Ii1ilIl1,iliIiIll){const lIi1IIi=iIIll1Il;return ll1iiIl1[lIi1IIi(0x24f)](Ii1ilIl1,iliIiIll);},'kxDGV':function(iilI1I11,l1li11ii){const i111IIIi=iIIll1Il;return ll1iiIl1[i111IIIi(0x25e)](iilI1I11,l1li11ii);},'DYIVg':ll1iiIl1[ili1i1(0x229)],'dhDuo':function(I1lll1l1,IiIII11l){const l1ll1II=ili1i1;return ll1iiIl1[l1ll1II(0x24e)](I1lll1l1,IiIII11l);},'mvPiZ':ll1iiIl1[ili1i1(0x252)],'eseGT':function(l1liiiI1,I1ilIlIi){const IIiIIIi1=ili1i1;return ll1iiIl1[IIiIIIi1(0x210)](l1liiiI1,I1ilIlIi);},'QGmFu':function(il1iI11i,lIIl1ii){const il1iil1l=ili1i1;return ll1iiIl1[il1iil1l(0x1d7)](il1iI11i,lIIl1ii);},'lZZlV':ll1iiIl1[ili1i1(0x1dc)],'vJkvo':ll1iiIl1[ili1i1(0x20e)],'Wkypm':function(iiiIIl1,iI1l1iI1){const I1iiiIIi=ili1i1;return ll1iiIl1[I1iiiIIi(0x25e)](iiiIIl1,iI1l1iI1);},'OgHNB':ll1iiIl1[ili1i1(0x2ac)],'jNvQW':ll1iiIl1[ili1i1(0x1d4)],'Sdhge':ll1iiIl1[ili1i1(0x1e0)]};$[ili1i1(0x2a0)](lIli1III,(iIi1lIIl,IiIiIi1I,IllIIl)=>{const i1iiiliI=ili1i1,i1i1Il1i={'BkBYS':function(iI1l1li){const l1IIiIi1=iIIll1Il;return I11lI1iI[l1IIiIi1(0x27c)](iI1l1li);},'vjYoT':function(lIil1iil,i1lIl11){const Il1IiIi1=iIIll1Il;return I11lI1iI[Il1IiIi1(0x1c5)](lIil1iil,i1lIl11);}};if(I11lI1iI[i1iiiliI(0x2d3)](I11lI1iI[i1iiiliI(0x2f7)],I11lI1iI[i1iiiliI(0x2f7)]))try{if(I11lI1iI[i1iiiliI(0x1cc)](I11lI1iI[i1iiiliI(0x1e2)],I11lI1iI[i1iiiliI(0x1e2)]))i1i1Il1i[i1iiiliI(0x2e8)](iillIll);else{if(iIi1lIIl)$[i1iiiliI(0x1be)](iIi1lIIl);else{if(IllIIl){IllIIl=JSON[i1iiiliI(0x2df)](IllIIl);if(IllIIl&&I11lI1iI[i1iiiliI(0x1b8)](IllIIl[i1iiiliI(0x2d1)],0x1)){}else I11lI1iI[i1iiiliI(0x217)](I11lI1iI[i1iiiliI(0x233)],I11lI1iI[i1iiiliI(0x204)])?$[i1iiiliI(0x1be)](IllIIl):I1lIl1lI=i1iiiliI(0x290)+i1i1Il1i[i1iiiliI(0x1b9)](IIlI1iIi,0x28)+i1iiiliI(0x249);}else I11lI1iI[i1iiiliI(0x2d9)](I11lI1iI[i1iiiliI(0x226)],I11lI1iI[i1iiiliI(0x216)])?IiIlIli[i1iiiliI(0x1be)](ii111i1l):$[i1iiiliI(0x1be)](I11lI1iI[i1iiiliI(0x271)]);}}}catch(i1IIl1il){$[i1iiiliI(0x1be)](i1IIl1il);}finally{I11lI1iI[i1iiiliI(0x27c)](Illl11il);}else i1Ii1l1i[i1iiiliI(0x1be)](IllI1lIi);});});}function draw(){const i1IiI1ll=iillllIl,IIiillI={'KTUyx':function(l1iliIl1,i1i1II1l){return l1iliIl1==i1i1II1l;},'TBrYV':function(Illiiiil,IIiII1Ii){return Illiiiil+IIiII1Ii;},'PZxrE':i1IiI1ll(0x1c6),'TnvgY':i1IiI1ll(0x2d6),'Gyitk':i1IiI1ll(0x1ad),'rCZNH':function(ilI1111l){return ilI1111l();},'qpBqn':i1IiI1ll(0x2dd),'Dyygn':i1IiI1ll(0x2da),'eCBWa':function(liliilI1,iIlllill){return liliilI1!==iIlllill;},'ImLGu':i1IiI1ll(0x1b7),'XaYYn':i1IiI1ll(0x287),'bFTaK':function(li1iI11I,iIl1llI1){return li1iI11I(iIl1llI1);},'bdDhI':i1IiI1ll(0x285),'fQYHa':i1IiI1ll(0x1de),'EeWPQ':function(I1lIIIii,II111Iil){return I1lIIIii+II111Iil;},'BAcTp':function(illI1Ill,Il1i1ll1){return illI1Ill===Il1i1ll1;},'rnBeA':i1IiI1ll(0x2d7),'zAMfn':function(lllIl1I1,l1I1IilI){return lllIl1I1==l1I1IilI;},'suwnd':function(IlIi11i,iiliIlIi){return IlIi11i===iiliIlIi;},'NpsQc':i1IiI1ll(0x206),'nyslb':i1IiI1ll(0x1e8),'nwazV':i1IiI1ll(0x236),'yhqXu':i1IiI1ll(0x2bd),'zCbBP':i1IiI1ll(0x260),'NjmnY':i1IiI1ll(0x296),'UKkdQ':i1IiI1ll(0x2ed),'hpnsA':i1IiI1ll(0x1a7),'jNosz':i1IiI1ll(0x218),'jeOzF':i1IiI1ll(0x244),'jdiCc':i1IiI1ll(0x20a),'AzAhh':i1IiI1ll(0x28e),'JUEvu':i1IiI1ll(0x23b),'HdDfS':i1IiI1ll(0x29d)};body={'activityId':activityId,'token':$[i1IiI1ll(0x208)],'source':'01'};let l1Il11l1={'url':domains+i1IiI1ll(0x2d8)+activityId,'headers':{'Host':$[i1IiI1ll(0x2ab)],'Connection':IIiillI[i1IiI1ll(0x295)],'Accept':IIiillI[i1IiI1ll(0x2b0)],'User-Agent':UA,'Content-Type':IIiillI[i1IiI1ll(0x2e2)],'Origin':i1IiI1ll(0x29a)+$[i1IiI1ll(0x2ab)],'Referer':activityUrl,'Accept-Encoding':IIiillI[i1IiI1ll(0x243)],'Accept-Language':IIiillI[i1IiI1ll(0x235)],'Cookie':cookie},'body':JSON[i1IiI1ll(0x272)](body)};return new Promise(lli11Iil=>{const i1iII111=i1IiI1ll,iilIII1I={'OUkaM':function(ilIliil,iIIili1l){const i111I1l=iIIll1Il;return IIiillI[i111I1l(0x227)](ilIliil,iIIili1l);},'GhWkv':function(I1l1lI11,il1Iil1i){const I1li1l=iIIll1Il;return IIiillI[I1li1l(0x1bb)](I1l1lI11,il1Iil1i);},'mGnBw':IIiillI[i1iII111(0x1d3)],'EwdBG':IIiillI[i1iII111(0x2de)],'HudZP':IIiillI[i1iII111(0x25c)],'USlqb':function(lIliI1ii){const lll1illl=i1iII111;return IIiillI[lll1illl(0x1ff)](lIliI1ii);},'zNIAX':IIiillI[i1iII111(0x237)],'dUAFZ':function(illl11II,i11IiliI){const ilii1ili=i1iII111;return IIiillI[ilii1ili(0x227)](illl11II,i11IiliI);},'AVoHA':IIiillI[i1iII111(0x284)],'FJFMa':function(IlillIli,il1iI1Il){const iI1IlIIi=i1iII111;return IIiillI[iI1IlIIi(0x200)](IlillIli,il1iI1Il);},'rxGmA':IIiillI[i1iII111(0x28a)],'htqnU':IIiillI[i1iII111(0x2f5)],'tihqX':function(iIli1,I1I11lI){const lillIi=i1iII111;return IIiillI[lillIi(0x228)](iIli1,I1I11lI);},'OIsQv':function(lIil11lI,Il11iIIi){const llIiIll1=i1iII111;return IIiillI[llIiIll1(0x227)](lIil11lI,Il11iIIi);},'rWvGm':function(i1lllII,iii1Iii1){const iiIiliIi=i1iII111;return IIiillI[iiIiliIi(0x227)](i1lllII,iii1Iii1);},'gCvOe':IIiillI[i1iII111(0x26e)],'DmsyW':IIiillI[i1iII111(0x28d)],'UUQcW':function(l1lii1,Ii1l11){const i1IiliII=i1iII111;return IIiillI[i1IiliII(0x2d0)](l1lii1,Ii1l11);},'fcWfm':function(I1lilil,ii11i1ll){const lI1iiili=i1iII111;return IIiillI[lI1iiili(0x227)](I1lilil,ii11i1ll);},'JBCHK':function(IilliilI,ll11lil){const iiIIIliI=i1iII111;return IIiillI[iiIIIliI(0x1db)](IilliilI,ll11lil);},'OCvsd':IIiillI[i1iII111(0x20b)],'xRwfZ':function(i1llI11I,lII11llI){const lIIlliIi=i1iII111;return IIiillI[lIIlliIi(0x2b1)](i1llI11I,lII11llI);},'wPbll':function(i1liili,Iil1lIlI){const Iiiil1il=i1iII111;return IIiillI[Iiiil1il(0x2ef)](i1liili,Iil1lIlI);},'XjVqe':IIiillI[i1iII111(0x2ca)],'RLZQM':IIiillI[i1iII111(0x1f8)],'xfNYy':function(lIIi11Ii,l1lIli1l){const IlliIil=i1iII111;return IIiillI[IlliIil(0x1db)](lIIi11Ii,l1lIli1l);},'iMNPX':IIiillI[i1iII111(0x268)],'cfTzF':IIiillI[i1iII111(0x248)],'EAdsP':IIiillI[i1iII111(0x257)],'xuZry':IIiillI[i1iII111(0x2cc)],'xJRJb':IIiillI[i1iII111(0x2ad)],'iGPrf':function(II1lli1l,lI1l1iIl){const l1iiIlli=i1iII111;return IIiillI[l1iiIlli(0x200)](II1lli1l,lI1l1iIl);},'GaqDF':IIiillI[i1iII111(0x224)],'IqaKU':IIiillI[i1iII111(0x2f3)],'PBJrW':function(llll1lii){const lIlI1ilI=i1iII111;return IIiillI[lIlI1ilI(0x1ff)](llll1lii);}};$[i1iII111(0x2a0)](l1Il11l1,(l1ll1il1,liiiiiII,iIili1lI)=>{const lil111li=i1iII111,I1iiiI11={'izuaI':iilIII1I[lil111li(0x1d0)],'odFpr':function(i1i11I11,iiI1IiI){const i1II111l=lil111li;return iilIII1I[i1II111l(0x27b)](i1i11I11,iiI1IiI);},'pZygz':iilIII1I[lil111li(0x1e1)]};try{if(iilIII1I[lil111li(0x1f6)](iilIII1I[lil111li(0x1d8)],iilIII1I[lil111li(0x2e1)])){if(l1ll1il1)$[lil111li(0x1be)](l1ll1il1);else{if(iilIII1I[lil111li(0x1c1)](safeGet,iIili1lI)){iIili1lI=JSON[lil111li(0x2df)](iIili1lI);if(iIili1lI&&iilIII1I[lil111li(0x263)](iIili1lI[lil111li(0x2d1)],0x1))iilIII1I[lil111li(0x212)](iIili1lI[lil111li(0x26b)],-0x1)?$[lil111li(0x1be)](iilIII1I[lil111li(0x2c0)]):iilIII1I[lil111li(0x1f6)](iilIII1I[lil111li(0x2c8)],iilIII1I[lil111li(0x2c8)])?(IilIII1I[lil111li(0x1be)](I1iiiI11[lil111li(0x239)]),iiii11li[lil111li(0x255)]=!![]):console[lil111li(0x1be)](iilIII1I[lil111li(0x211)](lil111li(0x1ec),iIili1lI[lil111li(0x26b)][lil111li(0x1f1)]));else{if(iIili1lI&&iilIII1I[lil111li(0x212)](iIili1lI[lil111li(0x2d1)],-0xe)||iIili1lI&&iilIII1I[lil111li(0x22d)](iIili1lI[lil111li(0x2d1)],-0x7))iilIII1I[lil111li(0x2e6)](iilIII1I[lil111li(0x209)],iilIII1I[lil111li(0x209)])?($[lil111li(0x1be)](iilIII1I[lil111li(0x1d0)]),$[lil111li(0x255)]=!![]):ll1llIIl[lil111li(0x1be)](I1IlI1il);else{if(iIili1lI&&iilIII1I[lil111li(0x22c)](iIili1lI[lil111li(0x2d1)],-0x3)){if(iilIII1I[lil111li(0x2c2)](iilIII1I[lil111li(0x266)],iilIII1I[lil111li(0x2f0)]))iilIII1I[lil111li(0x2cd)](Il1I11li[lil111li(0x1aa)],0x1)&&lIlii1I1[lil111li(0x1be)](iilIII1I[lil111li(0x2bc)](iilIII1I[lil111li(0x2bc)](iilIII1I[lil111li(0x27a)],il1i1ili[lil111li(0x2df)](iI1lIIll[lil111li(0x272)](I1Iilil[lil111li(0x2a7)][lil111li(0x1b2)]))),'\x0a')),IIlIilI1[lil111li(0x2bb)]=i11IllII[lil111li(0x2df)](IIlIilI[lil111li(0x272)](IlI1li1i[lil111li(0x2a7)][lil111li(0x2bb)])),lIii11Il[lil111li(0x1ab)]=illi1I11[lil111li(0x2df)](lI1iIl1I[lil111li(0x272)](I11IIlI1[lil111li(0x2a7)][lil111li(0x1ab)]));else{$[lil111li(0x1be)](iIili1lI[lil111li(0x1ea)]),l1ll1il1=iIili1lI[lil111li(0x1ea)];for(let IiIIl1il of['关注']){if(l1ll1il1[lil111li(0x21a)](IiIIl1il)){if(iilIII1I[lil111li(0x1d9)](iilIII1I[lil111li(0x21e)],iilIII1I[lil111li(0x2a4)])){if(iilIII1I[lil111li(0x2cd)](typeof l1i1li1i,iilIII1I[lil111li(0x1b1)]))try{return lilI1i1[lil111li(0x2df)](illii1il);}catch(l1lII1ll){return iliiII1i[lil111li(0x1be)](l1lII1ll),iilIii1[lil111li(0x1ea)](li1iIIiI[lil111li(0x1f1)],'',iilIII1I[lil111li(0x27d)]),[];}}else{$[lil111li(0x2cb)]=!![];break;}}}}}else{$[lil111li(0x1be)](iIili1lI[lil111li(0x1ea)]),l1ll1il1=iIili1lI[lil111li(0x1ea)];for(let llI1liI1 of['不足','火爆','上限',iilIII1I[lil111li(0x25a)],'擦肩',iilIII1I[lil111li(0x234)],'达到']){if(l1ll1il1[lil111li(0x21a)](llI1liI1)){$[lil111li(0x255)]=!![];break;}}for(let iilIIlli of['结束',iilIII1I[lil111li(0x223)]]){if(l1ll1il1[lil111li(0x21a)](iilIIlli)){$[lil111li(0x1c0)]=!![];break;}}}}}}else{if(iilIII1I[lil111li(0x2e9)](iilIII1I[lil111li(0x1fc)],iilIII1I[lil111li(0x1fc)])){if(I1iiiI11[lil111li(0x1f4)](typeof lIlli1Il[lil111li(0x2df)](liIiii1i),I1iiiI11[lil111li(0x203)]))return!![];}else $[lil111li(0x1be)](iilIII1I[lil111li(0x1ed)]);}}}else iilIII1I[lil111li(0x1c9)](iIlI1ill);}catch(IIiIll1I){$[lil111li(0x1be)](IIiIll1I);}finally{iilIII1I[lil111li(0x1fd)](lli11Iil);}});});}function iIIll1Il(_0x22af7f,_0x39ba2e){const _0x835518=IiI1i();return iIIll1Il=function(_0x3cdd0b,_0x3233ea){_0x3cdd0b=_0x3cdd0b-0x1a6;let _0x268c9c=_0x835518[_0x3cdd0b];if(iIIll1Il['XIIVFx']===undefined){var _0x61866f=function(_0x1ab3eb){const _0x4ee464='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e2acb='',_0x22ca49='';for(let _0x24cbe2=0x0,_0x1e1d60,_0x461a14,_0x25e46d=0x0;_0x461a14=_0x1ab3eb['charAt'](_0x25e46d++);~_0x461a14&&(_0x1e1d60=_0x24cbe2%0x4?_0x1e1d60*0x40+_0x461a14:_0x461a14,_0x24cbe2++%0x4)?_0x4e2acb+=String['fromCharCode'](0xff&_0x1e1d60>>(-0x2*_0x24cbe2&0x6)):0x0){_0x461a14=_0x4ee464['indexOf'](_0x461a14);}for(let _0x4eb9f3=0x0,_0x28293c=_0x4e2acb['length'];_0x4eb9f3<_0x28293c;_0x4eb9f3++){_0x22ca49+='%'+('00'+_0x4e2acb['charCodeAt'](_0x4eb9f3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22ca49);};iIIll1Il['cQhAop']=_0x61866f,_0x22af7f=arguments,iIIll1Il['XIIVFx']=!![];}const _0x13a8de=_0x835518[0x0],_0x2ef30b=_0x3cdd0b+_0x13a8de,_0x15863f=_0x22af7f[_0x2ef30b];return!_0x15863f?(_0x268c9c=iIIll1Il['cQhAop'](_0x268c9c),_0x22af7f[_0x2ef30b]=_0x268c9c):_0x268c9c=_0x15863f,_0x268c9c;},iIIll1Il(_0x22af7f,_0x39ba2e);}function jsonParse(lill1II){const l1IiI1ii=iillllIl,iliii11i={'QFauk':function(IiliIl1i,III1IIlI){return IiliIl1i==III1IIlI;},'cMFJu':l1IiI1ii(0x2d6),'cukVP':function(iI1lIIi,iil11iil){return iI1lIIi===iil11iil;},'JtJZG':l1IiI1ii(0x23e),'Rakgp':l1IiI1ii(0x25b),'aavsD':function(ilIllI1l,lIllIlil){return ilIllI1l!==lIllIlil;},'WwPPW':l1IiI1ii(0x2cf),'xaKGV':l1IiI1ii(0x1ad)};if(iliii11i[l1IiI1ii(0x21f)](typeof lill1II,iliii11i[l1IiI1ii(0x22a)]))try{if(iliii11i[l1IiI1ii(0x1ce)](iliii11i[l1IiI1ii(0x20d)],iliii11i[l1IiI1ii(0x24d)]))IllIIiI[l1IiI1ii(0x2f8)]();else return JSON[l1IiI1ii(0x2df)](lill1II);}catch(iIIIilI){if(iliii11i[l1IiI1ii(0x1b5)](iliii11i[l1IiI1ii(0x2c7)],iliii11i[l1IiI1ii(0x2c7)]))l11illl[l1IiI1ii(0x1be)](ii1i1iI1);else return console[l1IiI1ii(0x1be)](iIIIilI),$[l1IiI1ii(0x1ea)]($[l1IiI1ii(0x1f1)],'',iliii11i[l1IiI1ii(0x292)]),[];}}function safeGet(lIliIII){const I1Iliil1=iillllIl,I11l1ilI={'kYGOl':function(iIi1Ii1i,llI1lil){return iIi1Ii1i+llI1lil;},'fvQpV':function(IIll1l11,IIi1IlI1){return IIll1l11==IIi1IlI1;},'ZbVxF':I1Iliil1(0x285),'pNRaj':function(IIiliIIi,IiIllIiI){return IIiliIIi(IiIllIiI);},'GHmCC':function(iiIiIlI,I11Iil1i){return iiIiIlI===I11Iil1i;},'lkUot':I1Iliil1(0x22f),'YnHNG':function(I1illi,liIiii1l){return I1illi===liIiii1l;},'qRwxF':I1Iliil1(0x21b),'AFelB':function(I1i1lI1i,IllliiiI){return I1i1lI1i==IllliiiI;},'NQOSM':I1Iliil1(0x2da),'nmCoW':function(i1iIIi1,Ill1I1l){return i1iIIi1===Ill1I1l;},'YUfdB':I1Iliil1(0x1e7)};if(!lIliIII){if(I11l1ilI[I1Iliil1(0x26f)](I11l1ilI[I1Iliil1(0x2be)],I11l1ilI[I1Iliil1(0x2be)]))return console[I1Iliil1(0x1be)](I1Iliil1(0x278)),![];else I11II1iI[I1Iliil1(0x1be)](I11l1ilI[I1Iliil1(0x20c)](I1Iliil1(0x1ec),IIliII1l[I1Iliil1(0x26b)][I1Iliil1(0x1f1)]));}try{if(I11l1ilI[I1Iliil1(0x281)](I11l1ilI[I1Iliil1(0x289)],I11l1ilI[I1Iliil1(0x289)])){if(I11l1ilI[I1Iliil1(0x219)](typeof JSON[I1Iliil1(0x2df)](lIliIII),I11l1ilI[I1Iliil1(0x2d4)]))return!![];}else I11l1ilI[I1Iliil1(0x2a2)](l11liIIi[I1Iliil1(0x26b)],-0x1)?IliIil1[I1Iliil1(0x1be)](I11l1ilI[I1Iliil1(0x253)]):iii11l1l[I1Iliil1(0x1be)](I11l1ilI[I1Iliil1(0x20c)](I1Iliil1(0x1ec),i1iii1ii[I1Iliil1(0x26b)][I1Iliil1(0x1f1)]));}catch(IIilIiIi){return I11l1ilI[I1Iliil1(0x276)](I11l1ilI[I1Iliil1(0x274)],I11l1ilI[I1Iliil1(0x274)])?(console[I1Iliil1(0x1be)](IIilIiIi),![]):I11l1ilI[I1Iliil1(0x1cb)](IIll1Iil,ilililIl[0x2]);}}function getQueryString(ll1llIil,lii1i111){const I1llIIil=iillllIl,i11iiill={'VlVcW':function(lI1I,ill11l1l){return lI1I+ill11l1l;},'oHDrz':I1llIIil(0x1c7),'XndBL':I1llIIil(0x2ce),'pAmmF':function(Iili1Ill,IlI1i1ii){return Iili1Ill!=IlI1i1ii;},'vxifM':function(lI1IiI1i,l11IlIil){return lI1IiI1i(l11IlIil);}};let illli1iI=new RegExp(i11iiill[I1llIIil(0x286)](i11iiill[I1llIIil(0x286)](i11iiill[I1llIIil(0x293)],lii1i111),i11iiill[I1llIIil(0x294)])),l11l1i=ll1llIil[I1llIIil(0x1fa)](illli1iI);if(i11iiill[I1llIIil(0x2aa)](l11l1i,null))return i11iiill[I1llIIil(0x251)](decodeURIComponent,l11l1i[0x2]);return'';}function getUA(){const Ii1l111I=iillllIl,lIlllii={'azJzi':function(lIlillI1,iIill1lI){return lIlillI1(iIill1lI);}};UA=Ii1l111I(0x290)+lIlllii[Ii1l111I(0x1f0)](randomString,0x28)+Ii1l111I(0x249);}function IiI1i(){const i1lllii=(function(){return[...[version_,'WHjFXRsQqjUQQibauympi.PcRKPohXlmr.tver7F==','t0TgrLm','AMrHCha7AvbOB25LoZeWlJiUmJSXnc4ZoW','zwD6the','Egflr1y','B0HeCNO','wg5KqKW','AMvpEKy','5OQ95Aww5PY65lYA','zMXVB3i','z09oAgO','DgznB3e','Ahr0Chm6lY8','DwvvB28','uKnZqKW','EMGTq04SEMG7Ct0WlJKSDgGTq047Ct0WlJGSDgG7Ct0WlJCSDMKTq047Ct0WlJySDMK7Ct0WlJuSzw4Tvvm7Ct0WlJqSzw47Ct0WlJm','zxHWBfm','qM5RD3y','Cg9ZDa','kIOQkIOQcG','zNzrCfy','Ew9eDLy','y2zuEKy','wKnPyNa','A1fOvuu','ywn0AxzPDhK','zw52','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLGPODhrWCZOVl2jLyw4UBs5Qzc5JB20VyMvHBI9ZAwDUsw5KzxGUywn0Aw9U','CefTBuy','zg9TywLU','wxzdDue','vuTRzfe','ndK0mtGXmerdDg1ZqW','z2zQAwW','AMrPq2m','EKfnzM4','6i635y+ww3rVA2vUxEwKSEI0PE+8Gq','CMfUzg9T','q29VA2LLsKq','tK5dqui','zM9YrwfJAa','y29VA2LL','zMfSC2u','weXVD0e','n2rtuLbMqW','y3vZDg9Tzxjjza','r2HxA3y','rvvLzK4','BgTvB3q','rxv3z1C','z0n2t2u','q2HptgO','D1bIBgW','BgvUz3rO','Aw5PAwC','sKTArLa','wu5Vq0W','v3DqufC','rg1ZEvC','44cq5O+q56s644cry29VA2LL5BEY5AsX5Pwi','tNbZuwm','zMXVD1nOB3a','tMPTBLK','t1vRyu0','psHBxIzDkIKOjNWKkq','CKrPs3m','rwvxufe','C3rHDhvZ','otC1mdK0ne1hC2fbqG','A3Her1y','tLfpu00','BwfW','C3rYAw5N','rwTowLa','l3D1EgLHBI91C2vYl2rYyxCV','v2T5Cg0','B2jQzwn0','y2PxswS','z1jRzu0','5lIn5PIV5BQx6zo65lYA5zgy77Ym6yca5yE6FG','vg52z1K','CgfYC2u','z2v0zgf0yq','AhrXBLu','qxPbAgG','sKvurMO','mJqWmdGXnLPnzMPJqG','qKjitvC','sKjdseS','y2f0y2G','qMTcwvm','AuDqCMy','tw1ywe8','C1DMsfa','tvHYtKK','5PYQ5BYa5AEl','BLLYC3a','C3v3BMq','uKXAuu0','s1vWC1q','v0X3Agu','AK5VC3O','ChHdCuy','wgfzww4','u1Diwhi','rfLjvMC','zg9Uzq','wwvurhK','se5Lu3i','rKXKEeS','BKHjwum','t3bVzfa','Aw5KzxG','C2HVCeLK'],...(function(){return[...['l3D1EgLHBI91C2vYl2zSB3DtAg9WlW','6k+35yU/6zQp5Osp5zYOqM94sNpOVPpLHAxMOyBKV67MLlNLHOxLRRKk5BU66k6U6ycA6l+h6isA5PYS5y676i635y+wy29VA2LL','tgzyAK4','zgLcBxO','sgXqBva','rxDKqKC','CNvSzq','sKrFrevcvuC','AgfZrw5K','ywf2C0q','z3jqBhK','DeLOzuO','zxnLr1q','DMPzB1q','vLHvB0W','vejYwvy','D21wC2K','C3bnuMW','Bg9N','y2HHCKf0','ywn0AxzPDhLfBMq','DgLOCvG','mtKZmdC4ohLcyvnnCW','AeX0A08','vNHHv00','DK5kChi','5Rs75yQO6kEe5yIz77YA','kf58wYy/xsK','AxnoB2rL','vvnSCwi','ywn0AxzPDhLjza','Ce5sywO','zgHeDw8','yxbWBgLJyxrPB24VANnVBIWGDgv4Dc9QyxzHC2nYAxb0lcaQlYO7ihe9mc4Wmq','y3vRvLa','6k+35AgR5yAz5Rs75yQO6zo+5O6L','EK5jqvG','tefiBLa','Exvftve','ufP4CKu','Bvvmzg0','qvDnwgy','s1D6vMW','DgDLCMq','CNHhBue','EgzowxK','zvnSueq','qKfJvha','tgXPzuq','Aff4Duy','vNHgq28','ody1mtzctNLOsgW','ENP5zum','qvzVsee','BxzqAvO','uMTgvue','ChvZAa','ywjJzgvMmdeYmZq1nJC4oq','CMniALK','rw9jAvy','v3bqt2u','sw95tg8','BxnN','BwjkCgK','8j+oIsa','sxfHs1u','mJy1y1LYrvLo','s1bmD2y','yxPkEMK','BMfTzq','seTQz2G','A2v5CW','B2rgChi','BvHKDMq','rKPgtwe','zu9fueK','BNLZBgi','BMLJA05HBwu','Bwf0y2G','Ahr0Chm6lY9IzwfUlM0UAMqUy29Tl2jLyw4VC2LNBKLUzgv4lMfJDgLVBG','r2fXrey','uejkCLC','tKPjtKK','CKnAtKG','zuncv2e','uwD4Age','C0T4tgO','CfP5z3O','DKPRDM8','nteXmti2yuXAvNje','vvDZywG','wLDXDeS','Dg9Rzw4','t0n2C2q','yxbWBgLJyxrPB24VANnVBIWGDgv4Dc9WBgfPBIWGkI8Q','CM5czue','A1Lht2W','sNrkwKC','t3PVyM4','C2vUze5VDgLMEq','BfHUr2q','vvvry1C','CLD2r20','svfnuKm','AgDHuLK','AwrXBKG','AK52uvC','uuDTrNu','5lQS5lIC6l+u5zUE5lQg56M65PwW5O2U','quzLBei','Aw5JBhvKzxm','q1LfuKi','zLfczMu','zMLUywXSEq','Au1oufG'],...(function(){return['uuzHDwS','l3D1EgLHBI91C2vYl2DLDeXVDhrLCNKV','AxnmB2DPBG','q29VA2LLC0Pe','EePssMi','AhbUC0e','cUIVT+MhJEAwSoEzU+w9LEIoT+wpLMnVB2TPzq','t2DitKi','s1rvExG','yKzuyuS','v0zev24','y01gsNu','rgDTuM8','Efj3zLO','zMnxzM0','cIOQkIOQkUw8GowNI+oaKos6Ros4NoI0PUwpTW','EgDSDfK','s0XKDxC','u2DTteW','5lQS5lIC6lsM5y+3','BfPABfy','EhvACNK','sgrezLm','BeDgt3a','CxbcCw4','u0jXtfu','AxP1yuK','EhbArM4','z3PPCcWGzgvMBgf0zsWGyNi','AMrFz3PZBf9NzxrmB3r0zxj5x2fJDgL2Axr5vxjS','wwrouNO','r3HvCeG','rgzlB1y','qwHRzva','zKPrEe4','ndiYnJKWvgP0zK5A','sLvfDNu','A2vLCc1HBgL2zq','u3DLANy','weT4CMq','BLDlBeG','EwHXwhu','o00Vns4Wo25LDhDVCMSVD2LMAtTbreLelZTTB2rLBc9PugHVBMuXmIWXo2fKzhjLC3nPzc80mtK5mtC1mtKZo2fWCej1AwXKlZe2nZG2mZTQzfn1ChbVCNreyxjRtw9Kzs8Wo01VEMLSBgeVns4WicHPugHVBMu7ienqvsbPugHVBMuGt1mGmtrFmYbSAwTLie1HyYbpuYbyksbbChbSzvDLyKTPDc82mduUms4XnsaOs0HutuWSigXPA2uGr2vJA28Pie1VyMLSzs8XnuuXndG7C3vWCg9YDePeu0HxsY8XoW','vu10yLq','zMLSDgvY','suHIAxm','uMfRz3a','u2DSBNa','q3fPBNi','5Rs75yQO5ywL5y+J77YA','DNHPzK0','BfPlBgi','wMjwEey','sM1Otva','zxjYCW','D2TjAM0','EKnIqLa','AxLmzw8','zvb5CuC','rufKC1a','swXxzuq','r3LPDgS','vKvSqwq','D2HzruS','EvPnvKi','55sO5A6m5lQg','zu5bA08','DenHzhC','t0LZuxy','EuLLwhO','q29VA2LLsKqY','wgPwCwu','C2j3svi','BNDHELy','D3zgr2u','u2PmCeK','zgf0yq','Beniu2K','vxnLCK5HBwu','yMreAeK','r0HTq0m','wMD6z2y','u2rOz2u','C3rYAw5NAwz5','svrlCgS','wvvMzei','D3zzuKG','BM1dB1C','u3Hfy1y','5lQS5lIC5PYn5yQH5zMO6l+u5zUE5PwW5O2U5lI656M6','44cq5O+q56s644cr6k+35ywi6i635y+w5lQS5lIC6lsM5y+35lIay29VA2LLcUEBToAoPEs9V+EuQe5VyNLeyEEAHos6Ros4NoETVUwiSoIoT+wpLG','BuDUqNC','zfvbrLO','CMLsuLy','shvKwLa','D3nlquu','y29VA2LL5BEY5AsX5Pwiic0G','DvrHtgi','ww5itKC','DKXAz2m','D2fPDa','rhL5z24','8j+sQcdNQBRMSjq','vMXwy1C','sgfZANe','Bxzxwu0','Cvj3Eey','sw1mr3u','lcdLPlhOTkuHiowoN+wBOdOG','zuDUzK8','zLfzsge','yxbWBgLJyxrPB24VANnVBJTJAgfYC2v0pvvurI04'];}())];}())];}());IiI1i=function(){return i1lllii;};return IiI1i();};function randomString(l1liillI){const l1IIIli=iillllIl,I1li1lli={'iyLeo':function(i1ill1lI,liii1II){return i1ill1lI||liii1II;},'wmVsi':l1IIIli(0x1e5),'ePyqG':function(lilIl11I,iIl1Il){return lilIl11I<iIl1Il;},'uTaLb':function(ll11IIiI,lIlIIlii){return ll11IIiI*lIlIIlii;}};l1liillI=I1li1lli[l1IIIli(0x258)](l1liillI,0x20);let IliiiIli=I1li1lli[l1IIIli(0x1bc)],IilI1li=IliiiIli[l1IIIli(0x2c3)],iIilli='';for(i=0x0;I1li1lli[l1IIIli(0x259)](i,l1liillI);i++)iIilli+=IliiiIli[l1IIIli(0x1bf)](Math[l1IIIli(0x297)](I1li1lli[l1IIIli(0x280)](Math[l1IIIli(0x2b3)](),IilI1li)));return iIilli;}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) }
|