faker3/jd_jr_sign.js
2024-06-28 15:38:28 +08:00

14 lines
35 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
京东金融双签
大概率需要开启代理否则黑IP
cron:1 1 1 1 *
*/
const $ = new Env('京东金融双签')
var il='jsjiami.com.v7';const lllli=iii1II;(function(lllil,iI11Il,iIII1i,iil1i1,il1i11,IlIll1,IlIII){return lllil=lllil>>0x1,IlIll1='hs',IlIII='hs',function(ilil1l,illlIi,I1lIii,IiI1I,illlIl){const iil1l1=iii1II;IiI1I='tfi',IlIll1=IiI1I+IlIll1,illlIl='up',IlIII+=illlIl,IlIll1=I1lIii(IlIll1),IlIII=I1lIii(IlIII),I1lIii=0x0;const i11ill=ilil1l();while(!![]&&--iil1i1+illlIi){try{IiI1I=parseInt(iil1l1(0x2f0,')wm['))/0x1*(-parseInt(iil1l1(0x20a,'u3K1'))/0x2)+-parseInt(iil1l1(0x27b,'^X[T'))/0x3*(-parseInt(iil1l1(0x220,'zvAE'))/0x4)+-parseInt(iil1l1(0x1e1,'^b*O'))/0x5+-parseInt(iil1l1(0x2df,'p(O*'))/0x6+-parseInt(iil1l1(0x29e,'FcqE'))/0x7+-parseInt(iil1l1(0x240,'9Sa$'))/0x8+-parseInt(iil1l1(0x225,'yB[O'))/0x9*(-parseInt(iil1l1(0x274,'FcqE'))/0xa);}catch(IIIIIi){IiI1I=I1lIii;}finally{illlIl=i11ill[IlIll1]();if(lllil<=iil1i1)I1lIii?il1i11?IiI1I=illlIl:il1i11=illlIl:I1lIii=illlIl;else{if(I1lIii==il1i11['replace'](/[yTnUkWuhERHGxqNePQVB=]/g,'')){if(IiI1I===illlIi){i11ill['un'+IlIll1](illlIl);break;}i11ill[IlIII](illlIl);}}}}}(iIII1i,iI11Il,function(IIIIIl,I1lIil,IIIl1i,liiII1,IIIl1l,lllll,i11ili){return I1lIil='\x73\x70\x6c\x69\x74',IIIIIl=arguments[0x0],IIIIIl=IIIIIl[I1lIil](''),IIIl1i=`\x72\x65\x76\x65\x72\x73\x65`,IIIIIl=IIIIIl[IIIl1i]('\x76'),liiII1=`\x6a\x6f\x69\x6e`,(0x173f0f,IIIIIl[liiII1](''));});}(0x17a,0x95eaa,Iii11l,0xbf),Iii11l)&&(il=0x1a9f);const jdCookie=require(lllli(0x2f4,'EM2]')),notify=require(lllli(0x1f8,'d^We')),common=require(lllli(0x2fd,'4nfw')),jsdom=require(lllli(0x23c,')wm[')),isNotify=![],ALL_CHAR=lllli(0x1f1,'3jDS'),ALL_DIGIT=lllli(0x1e2,'WL7K'),sdkToken=lllli(0x284,'CJSc')+randomString(0x6f,ALL_DIGIT+ALL_CHAR)['toUpperCase']();function iii1II(_0x30d511,_0x21d376){const _0x770652=Iii11l();return iii1II=function(_0xdb831d,_0x1dd567){_0xdb831d=_0xdb831d-0x1e0;let _0x4650ed=_0x770652[_0xdb831d];if(iii1II['LnTDap']===undefined){var _0x1d1230=function(_0x81fded){const _0x4bb99c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x767b4e='',_0x272da1='';for(let _0xb72255=0x0,_0x29db9b,_0x5c17a2,_0x6a77cd=0x0;_0x5c17a2=_0x81fded['charAt'](_0x6a77cd++);~_0x5c17a2&&(_0x29db9b=_0xb72255%0x4?_0x29db9b*0x40+_0x5c17a2:_0x5c17a2,_0xb72255++%0x4)?_0x767b4e+=String['fromCharCode'](0xff&_0x29db9b>>(-0x2*_0xb72255&0x6)):0x0){_0x5c17a2=_0x4bb99c['indexOf'](_0x5c17a2);}for(let _0x14df87=0x0,_0x6727ca=_0x767b4e['length'];_0x14df87<_0x6727ca;_0x14df87++){_0x272da1+='%'+('00'+_0x767b4e['charCodeAt'](_0x14df87)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x272da1);};const _0x3a5e9d=function(_0x52be07,_0xe239ae){let _0x23b655=[],_0x1bc5ee=0x0,_0x17ca26,_0x1d7285='';_0x52be07=_0x1d1230(_0x52be07);let _0x50b3fa;for(_0x50b3fa=0x0;_0x50b3fa<0x100;_0x50b3fa++){_0x23b655[_0x50b3fa]=_0x50b3fa;}for(_0x50b3fa=0x0;_0x50b3fa<0x100;_0x50b3fa++){_0x1bc5ee=(_0x1bc5ee+_0x23b655[_0x50b3fa]+_0xe239ae['charCodeAt'](_0x50b3fa%_0xe239ae['length']))%0x100,_0x17ca26=_0x23b655[_0x50b3fa],_0x23b655[_0x50b3fa]=_0x23b655[_0x1bc5ee],_0x23b655[_0x1bc5ee]=_0x17ca26;}_0x50b3fa=0x0,_0x1bc5ee=0x0;for(let _0x34e06a=0x0;_0x34e06a<_0x52be07['length'];_0x34e06a++){_0x50b3fa=(_0x50b3fa+0x1)%0x100,_0x1bc5ee=(_0x1bc5ee+_0x23b655[_0x50b3fa])%0x100,_0x17ca26=_0x23b655[_0x50b3fa],_0x23b655[_0x50b3fa]=_0x23b655[_0x1bc5ee],_0x23b655[_0x1bc5ee]=_0x17ca26,_0x1d7285+=String['fromCharCode'](_0x52be07['charCodeAt'](_0x34e06a)^_0x23b655[(_0x23b655[_0x50b3fa]+_0x23b655[_0x1bc5ee])%0x100]);}return _0x1d7285;};iii1II['SLfUDD']=_0x3a5e9d,_0x30d511=arguments,iii1II['LnTDap']=!![];}const _0x2af616=_0x770652[0x0],_0x4be5f4=_0xdb831d+_0x2af616,_0x157525=_0x30d511[_0x4be5f4];return!_0x157525?(iii1II['LYjuuv']===undefined&&(iii1II['LYjuuv']=!![]),_0x4650ed=iii1II['SLfUDD'](_0x4650ed,_0x1dd567),_0x30d511[_0x4be5f4]=_0x4650ed):_0x4650ed=_0x157525,_0x4650ed;},iii1II(_0x30d511,_0x21d376);}let cookie='';const cookiesArr=Object[lllli(0x210,'A5mm')](jdCookie)['map'](l1il11=>jdCookie[l1il11])['filter'](IiI1=>IiI1);!cookiesArr[0x0]&&($['msg']($[lllli(0x218,'hmdX')],lllli(0x1ee,'4nfw')),process['exit'](0x1));!(async()=>{const iiili1=lllli,liI={'QgGwt':'Host','HPlDM':'Origin','vFobN':iiili1(0x212,'#7@a'),'DTfwa':'https://jrces.jd.com/','fHCow':function(illIli,l11i1l){return illIli<l11i1l;},'gaSPf':function(lIII11,IiilI){return lIII11!==IiilI;},'PSmOm':iiili1(0x2dc,'u3K1'),'XiGAB':function(ii1I11,liIi1){return ii1I11(liIi1);},'vjXHl':function(lI11II){return lI11II();}};console[iiili1(0x24c,'!^Ei')](iiili1(0x268,'u3K1')),notify[iiili1(0x285,'DSy%')]({'title':$[iiili1(0x256,'^X[T')]});for(let l1llI1=0x0;liI[iiili1(0x29d,'JT#B')](l1llI1,cookiesArr[iiili1(0x23f,'Y*kO')]);l1llI1++){if(liI[iiili1(0x26a,'YB*]')](liI['PSmOm'],iiili1(0x21c,'5ySS')))II1li1['headers'][liI[iiili1(0x27f,'!^Ei')]]=iiili1(0x27c,'u3K1'),l1lIlI['headers'][liI['HPlDM']]=liI['vFobN'],IiiIl1['headers'][iiili1(0x300,'ReN%')]=liI[iiili1(0x252,'FZsV')];else{$['index']=l1llI1+0x1,cookie=cookiesArr[l1llI1],common[iiili1(0x233,'^X[T')](cookie),$['UserName']=liI['XiGAB'](decodeURIComponent,common[iiili1(0x23b,'Qgod')](cookie,'pt_pin')),$['UA']=common[iiili1(0x22e,'Y*kO')]($[iiili1(0x2b6,'Va(P')]),$['message']=notify[iiili1(0x25a,'ZF7I')]($[iiili1(0x1fe,'$jA$')],$[iiili1(0x2e8,'FZsV')]),$[iiili1(0x22d,'y(nW')]='',console[iiili1(0x211,'ZF7I')](iiili1(0x2fa,'(Jxj')+$[iiili1(0x21a,'DSy%')]+'】'+($[iiili1(0x208,'WL7K')]||$[iiili1(0x290,'#IY)')])+iiili1(0x27a,'tS^T')),await liI['vjXHl'](Main),common[iiili1(0x243,'@MSz')]();if($['runEnd'])break;await $[iiili1(0x223,'1knw')](0x3e8);}}isNotify&&notify['getMessage']()&&('UPsfR'!==iiili1(0x2e6,'XdnP')?(IlI1l['hot']=!![],lilIil['log'](iiili1(0x26c,'EM2]')+i1l11?.[iiili1(0x2c9,'$jA$')]?.[iiili1(0x287,'tS^T')]),i1l1li?.[iiili1(0x29a,'ly%]')]?.[iiili1(0x246,'ZF7I')]['includes'](iiili1(0x20c,'3jDS'))&&(iIIII1[iiili1(0x2ff,'FZsV')]=![])):(notify[iiili1(0x2cb,'FZsV')](iiili1(0x224,'ReN%')),await notify['push']()));})()[lllli(0x2ef,')wm[')](lii=>$['logErr'](lii))[lllli(0x308,'Qgod')](()=>$[lllli(0x23a,')wm[')]());async function Main(){const ill11i=lllli,IllI1i={'qXjeD':function(lil,IllI1l){return lil==IllI1l;},'CkwAG':ill11i(0x245,'[WRy'),'QqHNJ':function(i11I1i){return i11I1i();},'NeoOD':function(IillIl,llliil){return IillIl<llliil;},'oHZWN':function(liIl1,II1lll){return liIl1!==II1lll;},'YMhuQ':'KgpYk','ztUsJ':'必须参数未成功获取,请重新运行','eXtUA':'VocvL','IVzyo':ill11i(0x2c6,'L&EF'),'bVKWQ':function(II1lli,ii1I1I){return II1lli(ii1I1I);},'VrIxV':function(IiIl,IiIi){return IiIl===IiIi;},'EBUfk':ill11i(0x253,'XdnP')},i11I1l=await common['getLoginStatus'](cookie);if(!i11I1l&&typeof i11I1l===ill11i(0x26b,'xmq%')){if(IllI1i['CkwAG']===ill11i(0x272,'YB*]')){console['log'](ill11i(0x259,'EM2]'));return;}else iliII1[ill11i(0x25f,'tS^T')]=!![],II11I1[ill11i(0x28e,'CJSc')](ill11i(0x30c,'^b*O')+Iii11I?.[ill11i(0x2a4,'y(nW')]);}$[ill11i(0x201,'@MSz')]=0x0,await IllI1i['QqHNJ'](jstoken2);!$[ill11i(0x30d,'d^We')]&&(IllI1i['NeoOD']($[ill11i(0x278,'CJSc')],0x3)&&(IllI1i['oHZWN'](ill11i(0x296,'yB[O'),IllI1i[ill11i(0x26d,'3jDS')])?($[ill11i(0x1f6,'d^We')]++,console['log']('必须参数未成功获取,重新获取中'),await $[ill11i(0x295,'tS^T')](0x1388),await jstoken2()):lI1Ili[ill11i(0x286,'[WRy')](ill11i(0x1f3,'ZF7I')+IliilI+ill11i(0x293,'^X[T')+(i1II1['message']||iIIl11))));if(!$[ill11i(0x263,'T6WJ')]){console[ill11i(0x297,'9Sa$')](IllI1i['ztUsJ']);return;}try{if(IllI1i[ill11i(0x24b,')wm[')](ill11i(0x271,'#7@a'),IllI1i['eXtUA'])){$[ill11i(0x267,'8@up')]=![];if(!$['getid'])return;await sendRequest(IllI1i[ill11i(0x2e3,'^b*O')]),!$[ill11i(0x2d3,')wm[')]&&(await $[ill11i(0x1e4,'JT#B')](0x1f4),await IllI1i[ill11i(0x2bd,'DSy%')](sendRequest,ill11i(0x241,'@MSz')),await $[ill11i(0x254,'EM2]')](0x5dc));}else Ii1iI1[ill11i(0x286,'[WRy')]('双签失败,原因:'+lilIli?.[ill11i(0x216,'sU$6')]?.[ill11i(0x2d6,'WL7K')]?.[ill11i(0x2f8,'yB[O')]?.[ill11i(0x2b2,'XdnP')]);}catch(liIil){IllI1i[ill11i(0x301,'d^We')](ill11i(0x22c,'ly%]'),IllI1i[ill11i(0x21f,'7Vs)')])?IllI1i['qXjeD'](Iliiil?.['resultData']?.[ill11i(0x2c7,'8@up')]?.[ill11i(0x2dd,'u3K1')]?.[ill11i(0x310,'d^We')],ill11i(0x2a8,')wm['))?i1IIl[ill11i(0x280,'7Vs)')](ill11i(0x24d,'zvAE')+I1lll1?.[ill11i(0x2f6,'@MSz')]?.['result']?.[ill11i(0x1fd,'$jA$')]?.['businessData']?.[ill11i(0x266,'(Jxj')][0x0][ill11i(0x2b5,'p(O*')]):i1IIi[ill11i(0x22f,'@MSz')]('双签失败,原因:'+IIII1I?.[ill11i(0x261,'DSy%')]?.[ill11i(0x2c1,'Va(P')]?.[ill11i(0x2e0,'GhkM')]?.[ill11i(0x2e4,')wm[')]):console['log'](ill11i(0x21d,'hmdX')+liIil);}}async function handleResponse(liIii,II1ll1){const lllill=lllli,IlI1Ii={'pEKVM':function(i11I1I,l1il1i){return i11I1I==l1il1i;},'ftKcC':lllill(0x2b1,'CJSc'),'RmEgG':lllill(0x239,'A5mm'),'MVHdl':lllill(0x2e1,'#7@a'),'dNKvj':function(ll1,iI1llI){return ll1!==iI1llI;},'IUBKQ':lllill(0x203,'CU7d')};try{switch(liIii){case'jrSign':if(II1ll1?.[lllill(0x2d4,'ZF7I')]&&II1ll1?.[lllill(0x2eb,'#IY)')]===0x0)IlI1Ii['pEKVM'](II1ll1?.[lllill(0x237,'8@up')]?.[lllill(0x1e6,'#7@a')],0x0)?IlI1Ii[lllill(0x24e,'^X[T')]!=='fYCaI'?console['log']('金融签到成功,恭喜获得'+(II1ll1?.[lllill(0x28a,'^b*O')]?.[lllill(0x221,'EM2]')]?.['baseReward']||0x0)+'金贴'):I1iIiI[lllill(0x2d0,'ly%]')]=![]:($['hot']=!![],console[lllill(0x2cf,'XdnP')](lllill(0x264,'u3K1')+II1ll1?.[lllill(0x25b,'Qgod')]?.['resBusiMsg']),II1ll1?.[lllill(0x237,'8@up')]?.[lllill(0x29c,'@MSz')][lllill(0x2cd,'5ySS')](lllill(0x204,'CJSc'))&&($[lllill(0x1ec,'yB[O')]=![]));else IlI1Ii[lllill(0x2a2,'Y*kO')](II1ll1?.[lllill(0x2fe,'p(O*')],0x3)?'FRUqE'!==lllill(0x227,'u3K1')?(IiiIll[lllill(0x226,'^X[T')]=!![],IIlii['message']&&IlI1ii[lllill(0x205,'8@up')]['fix'](lIIiii)):($[lllill(0x276,'p(O*')]=!![],console[lllill(0x262,'CU7d')](lllill(0x29b,'Qgod')+II1ll1?.[lllill(0x28d,'ly%]')])):'GERCl'===IlI1Ii['RmEgG']?II11Ii[lllill(0x20e,'ReN%')](lllill(0x2cc,'zvAE')+II11Il):($['hot']=!![],console['log'](lllill(0x230,'XdnP')+II1ll1?.[lllill(0x1e7,'u3K1')]));break;case'jrSign2':if(II1ll1?.[lllill(0x25b,'Qgod')]&&II1ll1?.['resultCode']===0x0)II1ll1?.[lllill(0x249,'EM2]')]?.[lllill(0x2a1,'FcqE')]?.[lllill(0x2e0,'GhkM')]?.['businessCode']==IlI1Ii[lllill(0x2c0,'JT#B')]?console['log']('双签成功,获得:'+II1ll1?.['resultData']?.[lllill(0x2ae,'y(nW')]?.['businessData']?.[lllill(0x215,'ly%]')]?.[lllill(0x2ed,'xmq%')][0x0][lllill(0x30e,'NG@y')]):console[lllill(0x1fb,'L&EF')](lllill(0x250,'(Jxj')+II1ll1?.[lllill(0x2f7,'FcqE')]?.[lllill(0x2ab,'p(O*')]?.['businessData']?.[lllill(0x222,'p(O*')]);else IlI1Ii['pEKVM'](II1ll1?.[lllill(0x2db,'xmq%')],0x3)?IlI1Ii['dNKvj'](IlI1Ii['IUBKQ'],lllill(0x27d,'DSy%'))?(i1illi[lllill(0x1ed,'4nfw')]=!![],i1illl[lllill(0x20e,'ReN%')]('双签失败,原因:'+I1llil?.[lllill(0x2f2,'!^Ei')])):($[lllill(0x2ce,'F%8P')]=!![],console[lllill(0x2ea,'zvAE')](lllill(0x207,'Qgod')+II1ll1?.[lllill(0x2a9,'CJSc')])):'zjlYs'===lllill(0x302,'EM2]')?($[lllill(0x1ef,'[WRy')]=!![],console[lllill(0x2da,'d^We')](lllill(0x30c,'^b*O')+II1ll1?.[lllill(0x28d,'ly%]')])):(ill111['hot']=!![],Iliil1[lllill(0x26f,'8@up')]('金融签到失败,原因:'+i1III?.['resultMsg']));break;case lllill(0x228,'WL7K'):break;}}catch(l1llIl){console['log'](lllill(0x27e,'EM2]')+liIii+'\x20请求响应\x20'+(l1llIl[lllill(0x23e,'CJSc')]||l1llIl));}}async function sendRequest(ii1I1l){const ill11l=lllli,ii1I1i={'GLBWH':ill11l(0x265,'CJSc'),'IpJIC':ill11l(0x2e5,'yB[O'),'XFztU':'android','IasUe':ill11l(0x2be,'u3K1'),'DHlwg':ill11l(0x21b,'^X[T'),'Vxobr':'jingdou','kgmsa':ill11l(0x2d7,'[WRy'),'OYsLl':'Q92927162830102r5b064X2T9Nj','PfTYu':'application/json','cjiKJ':'application/x-www-form-urlencoded;charset=UTF-8','LoSzD':ill11l(0x2bf,'[WRy'),'nDJqW':ill11l(0x2a3,'[WRy'),'gxSgQ':function(llliiI,IilIiI){return llliiI===IilIiI;},'fsmTT':ill11l(0x2bb,'WL7K'),'DNbdg':ill11l(0x2a7,'sU$6'),'HGacU':function(i1i1I1,IlII1){return i1i1I1<IlII1;},'VWzkk':function(IiI11,lli){return IiI11!==lli;},'NYCDI':ill11l(0x1e0,'4nfw')};if($[ill11l(0x2f9,'ReN%')]||$['outFlag'])return;let llI='',llliI={},iI1li1=ill11l(0x248,'5ySS'),lllii1={};switch(ii1I1l){case ii1I1i[ill11l(0x22a,'yB[O')]:lllii1={'channelSource':ill11l(0x277,'[WRy'),'clientType':ii1I1i[ill11l(0x2b4,'^b*O')],'arrEncrypt':!![],'site':ill11l(0x2bc,'zvAE'),'videoId':ill11l(0x2a0,'yB[O'),'deviceInfo':{},'riskDeviceParam':JSON[ill11l(0x2b8,'8@up')]({'eid':$[ill11l(0x213,'JT#B')][ill11l(0x303,'$jA$')],'fp':$[ill11l(0x305,'4nfw')]['fp'],'sdkToken':$[ill11l(0x2ad,'EM2]')]['sdkToken']||sdkToken,'token':$['getid']['token'],'jstub':$[ill11l(0x23d,'p(O*')][ill11l(0x1e3,'Va(P')]})},nonce=$[ill11l(0x2c2,'FZsV')][ill11l(0x2fb,'3jDS')](),signArr=$[ill11l(0x1e5,'GhkM')][ill11l(0x21e,'d^We')](JSON[ill11l(0x258,')wm[')](lllii1),nonce),bodystr={...lllii1,'adInfo':{},'signData':JSON[ill11l(0x217,'y(nW')](lllii1),'signature':signArr,'nonce':nonce,'channelLv':'shuangqian'},llliI='reqData='+encodeURIComponent(JSON[ill11l(0x1ea,'FZsV')](bodystr)),llI=ill11l(0x2f5,'8@up');break;case ii1I1i[ill11l(0x2b9,'d^We')]:bodystr={'actCode':ii1I1i['DHlwg'],'type':0x3,'frontParam':{'belong':ii1I1i[ill11l(0x202,'FZsV')]},'riskDeviceParam':ill11l(0x2d1,'EM2]')},llliI=ill11l(0x269,'NG@y')+encodeURIComponent(JSON['stringify'](bodystr)),llI=ill11l(0x22b,'3jDS');break;case ill11l(0x289,'d^We'):lllii1={'activityId':ill11l(0x1eb,'ZF7I')},nonce=$[ill11l(0x2c4,'#7@a')][ill11l(0x2ac,'yB[O')](),signArr=$[ill11l(0x219,'^X[T')][ill11l(0x1f7,'hmdX')](JSON['stringify'](lllii1),nonce),bodystr={'signature':'018913cc29a7cbdd3ee65a21fe51b6bd206b58851ca715fb3209f9b1dad1117601','nonce':ii1I1i['kgmsa'],'eid':$['getid'][ill11l(0x282,'Y*kO')],'fp':$[ill11l(0x25e,'8@up')]['fp'],'activityId':ii1I1i['OYsLl']},llliI=ill11l(0x29f,'zvAE')+nonce+ill11l(0x2e2,'9Sa$')+signArr+ill11l(0x309,'#7@a')+$[ill11l(0x275,'FZsV')]['eid']+'&fp='+$[ill11l(0x30d,'d^We')]['fp'],llI=ill11l(0x294,'p(O*');break;default:console[ill11l(0x30b,'^X[T')](ill11l(0x291,'L&EF')+ii1I1l);return;}const liIli={'url':llI,'method':iI1li1,'headers':{'Host':ill11l(0x30a,'y(nW'),'Connection':ill11l(0x2f1,'CU7d'),'Accept':ii1I1i[ill11l(0x1f9,'Va(P')],'User-Agent':ill11l(0x260,'L&EF'),'Content-Type':ii1I1i[ill11l(0x238,'XdnP')],'Origin':ii1I1i['LoSzD'],'X-Requested-With':'com.jd.jrapp','Referer':ill11l(0x1e9,'FcqE'),'Accept-Encoding':ii1I1i[ill11l(0x236,'^X[T')],'Accept-Language':ill11l(0x1fc,'CU7d'),'cookie':cookie},'body':llliI,'timeout':0x7530};iI1li1==='GET'&&(delete liIli[ill11l(0x273,'[WRy')],delete liIli[ill11l(0x20f,'5ySS')]['Content-Type']);ii1I1l==='takePrize'&&(ii1I1i[ill11l(0x1ff,'@MSz')](ii1I1i[ill11l(0x2e7,'EM2]')],'cUyvI')?(I1l1Il['log'](llIll1),Illl1l&&(l1lIil['outFlag']=!![],IiiIli[ill11l(0x251,'Va(P')]&&I1i11i[ill11l(0x279,'sU$6')][ill11l(0x2d5,'Y*kO')](I1i11l))):(liIli[ill11l(0x214,'FcqE')][ill11l(0x281,'d^We')]=ii1I1i[ill11l(0x232,'FcqE')],liIli[ill11l(0x2e9,'^X[T')]['Origin']=ill11l(0x1fa,'CJSc'),liIli[ill11l(0x312,'sU$6')][ill11l(0x2b7,'#IY)')]=ill11l(0x2a5,'yB[O')));const liIll=0x1;let IilIi1=0x0,iI1liI=null,l1lIiI=![];while(ii1I1i[ill11l(0x1e8,'xmq%')](IilIi1,liIll)){if(IilIi1>0x0){if('zajkd'!==ill11l(0x2c5,'8@up')){IIllI=lliilI||0x20;let iIli1i=ii1I1i[ill11l(0x2ee,'A5mm')],iI1lii=iIli1i[ill11l(0x2ba,'^X[T')],IilIii='';for(lili1=0x0;ll1l1<IllIIi;IllIIl++)IilIii+=iIli1i['charAt'](IiiIi1['floor'](l1ii1[ill11l(0x311,'3jDS')]()*iI1lii));return IilIii;}else await $['wait'](0x3e8);}const lll=await common[ill11l(0x25c,'CU7d')](liIli);if(!lll['success']){iI1liI=ill11l(0x24a,'u3K1')+ii1I1l+ill11l(0x2b0,'#IY)')+lll['error'],IilIi1++;continue;}if(!lll?.['data']){iI1liI=ill11l(0x2c3,'T6WJ')+ii1I1l+ill11l(0x28b,'(Jxj'),IilIi1++;continue;}handleResponse(ii1I1l,lll[ill11l(0x20b,'EM2]')]),l1lIiI=![];break;}if(IilIi1>=liIll){if(ii1I1i[ill11l(0x307,')wm[')](ill11l(0x304,'CJSc'),ill11l(0x2d2,'ly%]')))console[ill11l(0x206,'NG@y')](iI1liI),l1lIiI&&(ii1I1i[ill11l(0x2af,'d^We')](ii1I1i[ill11l(0x306,'GhkM')],ill11l(0x299,'9Sa$'))?($[ill11l(0x2aa,'XdnP')]=!![],$[ill11l(0x2a6,'9Sa$')]&&$['message'][ill11l(0x242,'ReN%')](iI1liI)):i1l1I[ill11l(0x20e,'ReN%')](ill11l(0x30f,'#7@a')+(IiilIi?.[ill11l(0x2c9,'$jA$')]?.[ill11l(0x292,'4nfw')]?.['baseReward']||0x0)+'金贴'));else{i1ili1['log'](ill11l(0x2ec,'A5mm'));return;}}}async function jstoken2(){const I1lIiI=lllli,iIli1l={'WFXVj':I1lIiI(0x1f0,'zvAE'),'vjrdb':'https://eco.jr.jd.com/baitiao_lottery/#/?actNo=211213202243400000003999&channel=w01','naalP':I1lIiI(0x200,'@MSz'),'wKgpE':I1lIiI(0x235,'EM2]'),'pTVlK':I1lIiI(0x244,'^X[T')},{JSDOM:i1i1II}=jsdom;let liiIIl=new jsdom[(I1lIiI(0x28f,'$jA$'))]({'userAgent':iIli1l['WFXVj'],'referrer':I1lIiI(0x234,'^X[T')}),iil1iI=new jsdom['VirtualConsole'](),IlIllI={'url':iIli1l[I1lIiI(0x2ca,'7Vs)')],'referrer':iIli1l[I1lIiI(0x1f5,'ZF7I')],'userAgent':iIli1l[I1lIiI(0x209,'A5mm')],'runScripts':iIli1l['pTVlK'],'resources':liiIIl,'includeNodeLocations':!![],'storageQuota':0x989680,'pretendToBeVisual':!![],'virtualConsole':iil1iI};const il1i1I=new i1i1II(I1lIiI(0x2f3,'3jDS'),IlIllI);await $[I1lIiI(0x2d8,'T6WJ')](0x5dc);try{$[I1lIiI(0x2c8,'7Vs)')]=il1i1I[I1lIiI(0x1f4,'5ySS')][I1lIiI(0x2b3,'FZsV')](),il1i1I[I1lIiI(0x28c,'GhkM')][I1lIiI(0x298,'!^Ei')][I1lIiI(0x247,'@MSz')](),$[I1lIiI(0x1f2,'u3K1')]=new il1i1I[(I1lIiI(0x231,'^b*O'))]['AAR2'](),$['cry']=il1i1I[I1lIiI(0x288,'Va(P')][I1lIiI(0x2fc,'9Sa$')];}catch(lI1li1){}}function randomString(iI11II){const lllili=lllli,iIII1I={'WHaCf':'abcdef0123456789','smmYV':function(illlII,iIII11){return illlII<iIII11;},'WdWVp':function(IiI1i,llll1){return IiI1i*llll1;}};iI11II=iI11II||0x20;let ilil1i=iIII1I['WHaCf'],IlIIi=ilil1i[lllili(0x2de,'[WRy')],IiI1l='';for(i=0x0;iIII1I[lllili(0x26e,'YB*]')](i,iI11II);i++)IiI1l+=ilil1i['charAt'](Math[lllili(0x270,'[WRy')](iIII1I[lllili(0x283,'WL7K')](Math[lllili(0x25d,'p(O*')](),IlIIi)));return IiI1l;}function Iii11l(){const IliiiI=(function(){return[...[il,'GyjhysjTiaQmWuinV.GcRoqVmBEP.Hxvye7UNkkk==','W681xmk4ba','lW5dW79t','cJpcNxFdHCowdW','W6tcQYRdVsdcVq','W5JcShO+bCkwW4RcGbWRhmkPDa','BrNcO1JdOSoBiW','W6BdMaC','CGxcG1tdSCo2FM5+WOFcSG','jCkdEc5GD8kzW4iEW4ZdKG','q8kpt8o6WO4','fCkWAJaNWQmRWR/cLmkM','BGxcMuu','WPtdONvv','W5fptmkZWPFcT8kIWOdcP8ke','8j+zVvm','W6OoySkajW','ECkVW5y','5y6256Yh5OUE5yQH772p6iYl5BYT77YM','j8kwxsPg','WRRcGmoXW4ldSSo1W4yiFNmCvKK','5yYM56Yh5AAK6lwv77+q5y2T5zUQ7721','WQpcK8ouWOrgWQyE','W4RdUSo0yCoa','WONcRSkGW6BdTa','W5rlvSkY','WP7dNafvWQ4YvSo6','l8kdEYW','WOXTi8khWQyoWPCVrSk9W5tdQmoR','W7yYsSk+b0FdKX1r','6lAf5y+D5PEF5PAo','bmkNFbmMWRu','WRdcH8oUk8oCWQNdR2ddVmos','W5RcGsPdWOGLBG','oGPzW7jyWP4','W4zLFmoNvG','Fh/dJa','WP4QW7JcO3dcJmoDFutcKmkxqM8uW7zPEmoJsIFcOmkkD8o8WOVcI1OOW4hcR0GSW4tdMvldMmk8WQ/dMSkwWQeSmmk4brG+vCoWeM3dSvnNW6ZdKGvNW5ddO8oaWR/cKCo2W5pcRmk9W73cGL7dJhZcVK8WDmoba8omWRJcIaT4WO/dKLRcJa0QWOqqwmksoSohn8o/W5fIWPZcLCoDACobpCkRlIlcTZj7jvzOofFcK8ozWQlcUmooW7vhW5GDW5BcR8o5lSoMe8orhLnzaa43W4PdW5VcNtJdObJdVSkDWQ/cTxHRgSkBmSoCW4NdRejpvCkgWQmmAComA3lcJdxdKSoYWQhdJLG5WQeoWRarbCovFCo8emkgWOvLW77dS0xdNaJcG8ohWR5QWQBcVSoEmh9GW74yW51tjSoGWOuMWRFdOxqFW4jqCZixBSoelaCExZhdLCkLWQRdL8kZBCoVWQTkW5HOtmonxcNcSmo+wfS0W6FdRsXFwCoxWQJcOJRdUL7dMSo0AxJcRSkAWPZdSmkkW7vFltimn8ktfxldRbBdQSo4hxZdPCoojsWCW7TmiaaKDM7cSdVcVSkrWQhdOCkwlSk5pLhdUCkIWRJcK8kDWODZW7OuWRvOWPddRSkGWPiaW7O0BSo/WPfhCSobWRBdIsddRmkgWPaqW7ZdMSoWuWKbWQWaWOJdRcVcV0ZdN8oCW7ZcU8oqWOhdNthcSwRdUXZcN1xdTqRdIHXzW7lcRmk1WQzADh1hWQupkSoUW43cGva+WPWEWPjOEInMFc7cN8k5xeBdGSoQawVcVL3dJsmdwZxdKhbbamoKWP1cbtJdGrJdSJK1zt3cLv3cN0FcLCoEEZnTW6NcSmktWQpdO8opwLVdOtP9W5hcNSkOWP3cGqZcJ8k+kbD+W6ZcV0nIW7tdQCk8WOVcMvpdHhhdOSoTyCoaW5X0AeZcVCk5WPaUbmomBCkSCZtcOcxdSIRcT8oXfmkqW5e8W4ede1HBeY8CW7/cPCkUWPznWQWLW54JWP/cSLddNd3dP8oXo8osvGddGCoEjSoKW4BcICkTCCoIW7TjpmkYWRFcQrtcGfH7DSo5WQLhW5VcP1vwW6JdJ1jZ','eSkBy2ldJmooywH/WPm','W4tcIZW','xmkUW4LRkq','6yEr6j2B56Yn5yUt5Awi6lAt77225y2Z5zIm776P','bJtcJwddGCoxwSkAWQ9AENz9W7ihW6e','WOSoW7qcWRJcVMmCWO3dMmkD','W4LVFa','6iUL5AEm5Q2s6AcT5O+E5P6C6ygG6lYR77+G6k2e5l+E55EP5BYm5zgD5lMK55kl5zoQ6l+Q6kc+','kftcMCovWQjnlmk4','bSo4F00t','WO/cGJZcOCoIFhy','6ywY6j6N562b5yU25AEk6lEM77+Q5y2+5zIZ77+/','W6vOzSoUta','eSo0quqJ','W41VBW','s8kXECoFWR0','WRKbWRngWP4','d8olDvC0','t8kYCSoj','nSoCAJqCW6GUW7ZcOComkq','W6NdI8oMF8of','iard','z8kpv8oGWP8OWR3cPW','ftpcMNBdNq','W4OLW5RdVCo8W7VcVq','pJRcKSomW6yZWPG','CmoAl3WYpmkpW5GiW67dJCkA','BCkLxCkjc8kyemkiW4ldKmooWQW','omk5FhJdMG','4P+VcUACLEIaU+AUMoEIREwNOUEtP8oZ','rmkNW7ykW5C','WQ7cICk3','DCknjSo7','W63cPYa','W50IDrKX','dtlcIJtcLq','a8krFNhdICoD','qCkYCq','zNxdI8kKWRLQW7T9W4vJ','WRNcN8ojWPniWRy','sCkdpSoQW5qaW4xcMmk1','WPqizSoeW5xcNbVcQCoDW6W','W4RORO7MS5FLPyhOT7NdKUkELK/MLjNLKypLUABML5VMJA4','u8ofWOFdTSknta','pvBcRCkrWP5pWOldV8kE','cZNcIq','W44FdWdcItFcVCocamkRA30rW7i','WOrmomoMW7agfLe','4P6FzEAEQoECR+IVQ+AYOSkC','WQhdMMv2W5nkW5ddOmoYW7ro','yEISLEAXLowsHow6Ksu','ib9dW6zeW4NcTxdcLCkuWRX5W6dcSmozWQtcHJtdL8oyuSogvmkMvmkPW4JcKLJdP8oJkSooWOldH1BdTXi0WOddRgxcNCkdW7r2W5PZcSoSW7i','y3hdKCks','W79tvK/dLq','WOddPIO','vmkbW6np','WQ3dKdXdEa','pvBcRCkrWP5pWOVdRCknWQ4','6yst6j2V56+J5yMU5AAb6lE4776N5y6E5zMO776P','Dq7cG3pdSmogEeXMWOK','W5WrvmoAW6y','nCoEBZ4DWPj1W7FcKmoanHZdMG','fbBcOf0MWOe','WRSMaG3cHcpdHCkexMH8W59Mo8kTWOtcPfC','CCkmkxHaW5m'],...(function(){return[...['W7JcIW/dJbK','sSkNF8oaW6m+W7FdSSoGrG8QCX5vkZO','ySo8hZbZqCk/W5FdNW','W6bJr07dGcVdK8kybcKRWO0MiSo3W5tcSWldG8kCW5G','WOhdRd54v8oaWP0','W4OZWOFdPmoVWRlcSSomWR9pE8oG','WRv2cmkKga','ftpcNxhdImofj8oyW7O','WOxcGCk5W5BdSZjQ','oG5eW6nBWOC','W6z4xv3dLG','W4rps8kVWP8','ySo8hZbZqq','wSkAbSoOW5u','W7hOR4JMSj/LPQxOTPTh4P+Nfa','mdpcIf3dRa','WOJcGCk+W7NdStz+WP8MW6/dSq','W6NdI8oMxmofW5NcVmou','WR4RB8ofW6W','jGPAW7m','WPVcHCocWOvPWQawcW','WOnAo8oXW4Wccq','W5j0ESoNxmoNfsJcRW','DmkdjSoAW6e','lCkhEc5XBq','W78kBYey','md3cKxqrW6pdU2Xi','aSkOw0ddSq','ASkKimkkhSoysa','rCkPySoaWRWKWRZcUmoRtWm8C0bBiZRcOCo8xhiRCmoL','W7Cpx8orW70','WRZcK8ouWOjlWRu','W6/dNmkG','8jgPOmkD','WO45W44','W5THySoLvG','WRK3W5hcO3VcJG','W5nLE8o7xSo0','WQxcG8kKd8o6','W64FdXRcKdhcMSogomkL','WRtcJmkIaSo8','W6/dNSoIC8opW7JcLSoFW6ZdO8kvW4pcRW','4PY2wEIhLoACKUI+K+IJSoMdVEwiJos6NUMwQ+IUQmoa','WQ3dG0vTkNBcHmor','W6ddNmkX','WOBcM8kQ','j1ZcQG','W5GiwCk2W5NdUCoeW4pdV8ohWPy8jL4mWQhcOtiBvKTudhZcUY3cT8oMW4Kzs3a1W4u1WPLhj2j0W5S','hMVcNmkUWRq','W60Pta','fCkWAGC+WQqgWPpcK8kG','W67cPZW','W7GJutOTgq','hCoTiSkeW78TWQhcP8k2g19PjWvmChJcVCkNca','tmkQW5r2','fCkAW5NcO8k4qKCUW7FdPW','uCknmG','WP/cIcdcUmoRAvVdQSkEWRe','umkmhmkSoa','ySkJamkkf8otcCkFWQJdKSovWQa','qCk4EmoxWRT2','FL8dWQqaW4lcRdRcImkSWRLxW7i','rSozWPRdU8kmxLCrW6ddKSksWQ0','W597W4XqWOO','W4RdUIrSwmogWOZcJW8/vW','WQ87B8oiW5y','W6CZs8k+b0xdIqHLW6Hd','W6jLyfFdLh8','WR/cPmk+W7BdJq','W4vzuSksWQ8','W5VdNCo3zmoVW73cUmov','kCkhDY1GD8kf','fHBcQq','WQnAlSoHW5itofSurq','5B+U6AgS5y+Y5PA65P+W5OIM5yMD6i215y6G77YK6k2o6ywP5PEr6l+u6koO','WOZcMJlcV8oJuxhdTSkoWOldSa','BfTYWP3cKG','W6yNtmk0aq','WRrWcmoMm1NdMtD7W48','W4pcGt5gW4a3DSoNW7b7','z8kLW4iiW4/cNSkrW6nc','WObhyCo/zfnyw07cSbbDWRlcIr9iteZcNhaoW73cHSkIW7ahWR/dRdmRWRuaA8o4W5CXDSoai8oJWPjVWR8PeCkyuHK+vwhcHmosrSoLW4zkW5/dGSoOxmonWR8xaabzkK5UW6Xej8kkWOqJW4VcTKlcJs3cLe3dKsRcTCokW7xcVCksW5PpmCodW57cKXhdUXL5nmoGe2q7WPpcKCoLW7WOWQOWW6uABCoSW4uneCkrWQKxWQRdMmkKaulcIa8ZWO3cR2ldVKRdR8oftSkgdMKqsdyoW79QW7zpwCkyWRVcK8koWPOFEWzhqmo7W4/dPCkRW6dcVbzHwSklcSogWOddLmkaWQbwaZddJSktaGFdQSkXC3D1wYSDW4tcKGRdV8kYjSkZWQTUWRaQWRJdNteiWP/dLdlcMCkcWR3dN3/dVJ57wCkkk8ofW67dSexdTKPoWOJdUILbbYFdNshcRmo+bmkUW5ZcQ2FcGYdcKSo2WPRdQ8kUW5pdVuqTxKTHyabnWR/dHKHvWOGFyaOXnmojyv/dSCoWgCkArmkgnCkXCsRcOqiDqSkLtSksWP7dTZyjA1pcOSkcW6eyAh/dPf0YACoYWQPjW4/dOSodvgKJgqtcJmoyWRlcP0hcL8k2wGjPtgpdKeBdRCklWR5bW4NcLqFcRCkIWOddQuddQSo+WO8WW7BdO0fpB8kfWQFcKx/cLXDeW4mZWRnIcw7dOmkquuNcUmkjrCkC','WO0fvCkIWRJcRmkjWORcUSka','W4L0Fmo+qCk6u2hcU8k4vmoicCoSWORcOrRcTJ3dPJlcNCkHWQpcT8kSWO7dGtVdLbGHW6SXWPfhW6xdQXRdUJaQW4vFdgZcPCkaWOqiqK0UWQyf','Dq7cG0tdQCobvwbHWO8','CCkmkxHaW5mdW6xcKCoI','W6PIqfFdNxtcJ8oekJO8WOK','W7ldHbhdJCkLWRq','W6btWR9AW7BdMcdLVA/LPllJGP7KUz7KURFOTkBLJOy','W5jkymo4Ea','WO/dUZr7qSooWPVcLq','W73cKgnaW49vW4RcI8obW6vniSkdk2FdO2JcVCkAW4NdGmovWQC','oG5eW6nBWOFdMtdcM8kd','W6BdGCoM','W5ldLbNdRCk5WRxdKW','A8kqhmo3W5i','W5Lau8kFWOG','W7Ktga','iXZcPxBdPq','WRtdMMjDW4i','ASo1WQRdLSkR','W5mrqSk8aG','WQtcI8oZp8oCWRhdKG','W4KQWP9xWPiUWOzQWPZdUSouWPDSWQmzW7mEW6/dU8kjW5DpaCopW54UpSkPWOndWQSxWOT4W75+W6GPdCkDW6qCW7uk'],...(function(){return['FCoQqI9Tg8kyW4dcLNZcVSog','lCknCq','5yYQ56Yt5AsK6lAu77615y235zQ/77+s','wSkhiCoMW6a','nfdcHCo0','6ys+6j+g566c5yIt5OUR5yUh77+J5OgZ5zw56iYe5BYN','x8kxjSoMW6OxW5/cKCktWOKgyW','W45eymo/CGa','W48LW4JdQSo4W67cQW','WPldPMD8W6G','W5rEiCkhWO/dNgRcPSoAW6jFvY8','WRP3ehX1wcCmW6pcVq','WQtcHCotWOjf','W404FSob','rCoEW5S','WP0UWO9HWO4RWOzDWORdL8ov','CSkZamkwfCocn8kFWOS','WQxcQJlcRSos','A8kDlN1FWP1OWQVcImoMdGRdS8oat8kusxLWfsWGeCo/W6O','W73dMSoGF8opW7VcVmowW7S','nSoSk0TGW6DZW4tdLCo5WPuPWOddQCkRW63dT1r7W6upoZiPW4jgWPe','W6b4rW','WRVdKgi','44od5O2V56sS44cL6k2r5ywX6iYo5y2YW5ddR0aSWOy9','rCkYyG','nXBcTfCVW5ddMXmTWPX3W6PKWOtcNSkCW54RB8kcWPBdJSoxfSk7WOjujCkeC8kCy8ozmSkqmXdcH8ouWOZdUmk5h8kWWRhdLr59A8otW6lcJ8ozWPJdOrC5CSkxoCkdjYbvh8kUWRDKW4jxeCkZeLNdHSkOp8kfW73cIeiu','WOWupmkOkvHKtfBcTrjjWQxcKHTfgvBcGwnsWQZcISkWW6mFWQBcVxb+WQCrBSo/W5OVu8o2eSoyWQuyWOaelSkPAMqzFeVdO8oYF8keW693W7/cUCooD8o2','yCkKqq','4PYRW7xMNlpOGO/MRlhNOR7LPyBNK7tdHW','WRpdHeHLmgu','cCk0Eb4c','t8khiCo9W70','bSkbWQf/','e8onimo7W60EW5/dJCkcWOmay0ZdRKbSWQZcMr8SfmkGDclcO1RcMG','WP7cKmoZWQ5s','dYlcMNtdL8klrCkeW7CBlsy4W6TvWRZcPSohW4DK','WR8QW6u','W5lcJhz1WQn6ymoMWR1VW4D5pCk5W6hdSvPjWRFdK8knW5aRWOxcLCoWESoLvCk+WRhdSCknW5PxWPVdHSoZWOlcNLORW5FcUvTAW6NcPZpcVh/cG2pcGW3dJSkUWQ45W4mId1FcVe8vW5tdKtSyWR7dU8kVW7ldVCoXWOC','W74pdWBcKIdcRCoucmkLFNG','W7uugaRcHa','ybpcO1BdLa','BX/cHehdTSkppI5WWO3cUhqDWPqgtKBcN3zLCmo8','Dq7cHepdVa','W5JdLSo9Dmot','W7dcOZDzWPC','5BAv57Qz6AgO5y+s6l2J','W4XLE8o9u8oNgq','nL7cJW','5yYo566C5AAS6lw777685y2c5zMl77YB','W6qVqsqpdhXE','xfXxWRRcNW','mCoLqmoBk8oGeSkoWRtdLW','W4Dls8kN','5Bwo57UQ6Aki5y2n6l+A','fCkFW5RcQSkWBuWaW7ZdLW','W6ZdNHG','WQZdIeDLoMdcKG','qhjjWRK','c8k6FG','WOC/WOHtWOHIW4aXWO/dGCotW49oWRrbWQ4cWRVcPCos','W508y8oCW7u','A8kmo2LjW5u0','luBcRCknWPXEWRZdV8k9WQ55W7O','W5uLW5RdU8oXW6JcNmojW6vn','y8oThIXXuSkBW4ldGq','g8kjWQT0','imkqja','cCkqDhldMa','b8oulGS3rSofW7jAWPe','WPtdT0LohG','4PY5W4JOH5ZMNl3OVQROOPJPG5VLIOBKURdPLy/ORBHW','tSklmSoH','WOFcPmkfamo1','tehcLf0aW5JdTKG','W5fptmkeWO7cSmkpWQxcSSkrWPi','kH5eW79zWPBdQsZcSSkvWRy','cGLKW4O','WORLJOROJjdPPi7NRRxLI6a','WR4MaG/dKeNcMSoEkW0','lSkxyG9Pzmkr','rSkejSkspa','W74NssOrh3HbWR4','W6D8WRxdVY/dKCkokbddJ8orcq8','W4fNExFdSa','W5rrESoRBLD9vapdV01uWRldJGvyqLZcGx4CWRJcMCoKWQSqWQNcUhL2WRyrn8ozW5S3ymonmSozWPGMWRTIcCombfPYuh7dUmoDwSkSW6zgW5VcGContSoAW6aa','hNxcISknWOe','FSoWdY5rvmkFW4e','W6/cQYRdJXu','AWtcLW','6ys76j25566Z5yQG5AAU6lw277Yb5y2Z5zQl776g','WPeeE8ovW5BcNW','r8kNogLl','mSkhyGPQASkDW54i','kCkwyJL2p8ozWPGiW4pdHmoNpmo4WRRdUI3dP8kzpuX8','W65frCkVWPFcR8khW47dPSolW4n1AJbFW63dTMycbw5rpghcVYhcVCoKW4iluNXFW5CUWPakCZKzW7uwWPpcJWaRW5bbW57dJ8orWPX6aZJdL3/dTmodWQhcSmkTaSkgmSkHWQLXWONcGv/dL1lcUSooyJv1W53cGMddQvZcJSo2hmkwWRfSWPJdQ8o/WOJdI0pdVmoIWQbDbmojWPqCzt0nW4pcPKucbCkvW653jsRcJuNdQKhdMSodWOjmWOnaBSkrEX7dPGuzWPNdNYBdUCouW6dcMmotW6HCWQ3dGJFdP8oXW5aYfSk5W7/dRCkeWParismkW6pdIa9AWP/dGmoNiSoqu8kVwIGIw8o7WRm','l8kMxdHs','W5nLE8o7xSo0oc/cOSkQ','WONcNSkKW5VdLq','AvT8WO/cSG','W6ePvSkY','WQxcH8oPhCoFWRldGgJdRCoLn8oFeSol'];}())];}())];}());Iii11l=function(){return IliiiI;};return Iii11l();};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) }