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

18 lines
47 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.

/*
活动名称:新版玩一玩兑换奖品 5.17-8.31结束
活动入口APP-我的-更多工具-玩一玩
活动建议定时自行修改奖票有效期2个月
活动变量jd_wyw_exchange // 填写兑换值,指定兑换奖品,不填默认只兑换当前价值最高京豆奖品(查看打印兑换值)
jd_wyw_notify // 是否推送通知,默认不推送
jd_wyw_pinFilter // 账号pin过滤多个pin用@分隔,默认不过滤
jd_wyw_autotx // 是否强制查询提现接口兑换后提现接口403可以开启
cron:1 1 1 1 *
*/
const $ = new Env('新版玩一玩兑换奖品')
var il='jsjiami.com.v7';const IliIII=iii1II;if(function(l1i11i,l11iI1,IliiI,lI111i,I1lIII,liIlll,I1iI1I){return l1i11i=l1i11i>>0x6,liIlll='hs',I1iI1I='hs',function(illll1,IIIIl1,liiilI,lI111l,liiii1){const llIi1=iii1II;lI111l='tfi',liIlll=lI111l+liIlll,liiii1='up',I1iI1I+=liiii1,liIlll=liiilI(liIlll),I1iI1I=liiilI(I1iI1I),liiilI=0x0;const IIiiIl=illll1();while(!![]&&--lI111i+IIIIl1){try{lI111l=parseInt(llIi1(0x27b,'er#0'))/0x1*(parseInt(llIi1(0x327,'fhqt'))/0x2)+-parseInt(llIi1(0x28f,'sEvZ'))/0x3+parseInt(llIi1(0x1f1,'f#HJ'))/0x4+parseInt(llIi1(0x1fd,'er#0'))/0x5*(parseInt(llIi1(0x22c,'uIpi'))/0x6)+-parseInt(llIi1(0x32d,'er#0'))/0x7+parseInt(llIi1(0x26b,'T]Xn'))/0x8+-parseInt(llIi1(0x28c,'u3$f'))/0x9;}catch(l1ilIl){lI111l=liiilI;}finally{liiii1=IIiiIl[liIlll]();if(l1i11i<=lI111i)liiilI?I1lIII?lI111l=liiii1:I1lIII=liiii1:liiilI=liiii1;else{if(liiilI==I1lIII['replace'](/[RVNWYyGIqPldeXxgTrn=]/g,'')){if(lI111l===IIIIl1){IIiiIl['un'+liIlll](liiii1);break;}IIiiIl[I1iI1I](liiii1);}}}}}(IliiI,l11iI1,function(IIiiIi,l1ilIi,l11iIi,ll11li,iliIlI,lI111I,IlilI){return l1ilIi='\x73\x70\x6c\x69\x74',IIiiIi=arguments[0x0],IIiiIi=IIiiIi[l1ilIi](''),l11iIi=`\x72\x65\x76\x65\x72\x73\x65`,IIiiIi=IIiiIi[l11iIi]('\x76'),ll11li=`\x6a\x6f\x69\x6e`,(0x173242,IIiiIi[ll11li](''));});}(0x3100,0x3fb40,Iii11l,0xc6),Iii11l){}const jdCookie=require(IliIII(0x34d,'hXs0')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require(IliIII(0x1f8,'sEvZ'));let taskThreads=process[IliIII(0x375,'GlJW')][IliIII(0x20c,'T]Xn')]||'1';const runInterval=process['env'][IliIII(0x223,'fhqt')]||IliIII(0x201,'6O1$'),isNotify=(process[IliIII(0x378,'er#0')][IliIII(0x37c,'6xs)')]||process[IliIII(0x310,'uD%l')][IliIII(0x273,'6xs)')])===IliIII(0x303,'hXs0'),pinFilter=(process['env'][IliIII(0x29f,'(X0u')]||'')[IliIII(0x2aa,'O0d8')]('@'),exchange=process[IliIII(0x2f4,'uNf8')][IliIII(0x222,'0qS!')]||'',autotx=process[IliIII(0x25c,'mc4x')]['jd_wyw_autotx']==='true',linkId=IliIII(0x243,'k^eI');function iii1II(_0x4e2504,_0x21f677){const _0x2030c1=Iii11l();return iii1II=function(_0x5a545f,_0x126e45){_0x5a545f=_0x5a545f-0x1db;let _0x32deed=_0x2030c1[_0x5a545f];if(iii1II['tTtNGl']===undefined){var _0x5c78e1=function(_0x54c5b2){const _0x1be4b3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3abd16='',_0x2a6df7='';for(let _0x499ae0=0x0,_0x3fc055,_0x194776,_0x585a20=0x0;_0x194776=_0x54c5b2['charAt'](_0x585a20++);~_0x194776&&(_0x3fc055=_0x499ae0%0x4?_0x3fc055*0x40+_0x194776:_0x194776,_0x499ae0++%0x4)?_0x3abd16+=String['fromCharCode'](0xff&_0x3fc055>>(-0x2*_0x499ae0&0x6)):0x0){_0x194776=_0x1be4b3['indexOf'](_0x194776);}for(let _0x1e46af=0x0,_0x3113f9=_0x3abd16['length'];_0x1e46af<_0x3113f9;_0x1e46af++){_0x2a6df7+='%'+('00'+_0x3abd16['charCodeAt'](_0x1e46af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a6df7);};const _0xe95679=function(_0x143cc4,_0x57b8b8){let _0x2a64f5=[],_0x3a0ebb=0x0,_0x106252,_0x392092='';_0x143cc4=_0x5c78e1(_0x143cc4);let _0x41c283;for(_0x41c283=0x0;_0x41c283<0x100;_0x41c283++){_0x2a64f5[_0x41c283]=_0x41c283;}for(_0x41c283=0x0;_0x41c283<0x100;_0x41c283++){_0x3a0ebb=(_0x3a0ebb+_0x2a64f5[_0x41c283]+_0x57b8b8['charCodeAt'](_0x41c283%_0x57b8b8['length']))%0x100,_0x106252=_0x2a64f5[_0x41c283],_0x2a64f5[_0x41c283]=_0x2a64f5[_0x3a0ebb],_0x2a64f5[_0x3a0ebb]=_0x106252;}_0x41c283=0x0,_0x3a0ebb=0x0;for(let _0x36a8ce=0x0;_0x36a8ce<_0x143cc4['length'];_0x36a8ce++){_0x41c283=(_0x41c283+0x1)%0x100,_0x3a0ebb=(_0x3a0ebb+_0x2a64f5[_0x41c283])%0x100,_0x106252=_0x2a64f5[_0x41c283],_0x2a64f5[_0x41c283]=_0x2a64f5[_0x3a0ebb],_0x2a64f5[_0x3a0ebb]=_0x106252,_0x392092+=String['fromCharCode'](_0x143cc4['charCodeAt'](_0x36a8ce)^_0x2a64f5[(_0x2a64f5[_0x41c283]+_0x2a64f5[_0x3a0ebb])%0x100]);}return _0x392092;};iii1II['EjUsQb']=_0xe95679,_0x4e2504=arguments,iii1II['tTtNGl']=!![];}const _0x4cf711=_0x2030c1[0x0],_0x57fdc6=_0x5a545f+_0x4cf711,_0x5e878b=_0x4e2504[_0x57fdc6];return!_0x5e878b?(iii1II['PxXbHU']===undefined&&(iii1II['PxXbHU']=!![]),_0x32deed=iii1II['EjUsQb'](_0x32deed,_0x126e45),_0x4e2504[_0x57fdc6]=_0x32deed):_0x32deed=_0x5e878b,_0x32deed;},iii1II(_0x4e2504,_0x21f677);}function Iii11l(){const llliIl=(function(){return[...[il,'qPjTesVWXjeridaYminrP.lqcxoImNx.vGY7qyRg==','aMGD','AhlcLSkWW6e','rqzhqCkiWPxcUuXOew0','WRWJW5bUAq','uSodhtnUmmoiwvFdRmkbcCozW4BdNCoVW5LgoW','WRuWsfxdTa','sCkWWPW','W6NdPupdKmkn','W4NcGaK/W6SBEWPMW4tdOwTws8ogeCkYA8oHWQu2zSkmW7ujW6SFW5NcK8o8WOuktGVcKwiLWOmXWRddGSoFWP4SWP1lemkIpgpcPetcHmkrCs7cVL0HpvL3WRVcKgnrW5KMttldR28','W4xcLqKU','sSozrI0W','W5igWPKbhGOUl8oMW5zD','W4VcKmog','rNjFlmklWQm','W6G7W4bJqq','ExlcKCk6','5B2j5yIR5PYw','qNdcUhW','WR/cNSkytq','FI3dMq','W4dcP8o2x38','Cmk+WQ7cJMlcNXVdSSk1dxiUWRxdRsudWPFdGSkFW7LeWPddNCoEW5bSW7FcICk8B393vwO','WQ3cMmkhW4m','4PUdWPhOHj/LR5FKUy/OVRpOOkRPLkxPMQtMLPxPL4xORyZNVi7PLklORiK','WR9xD1zUw8oNk8kfWRJcGuu','WPbDWRLbsG0','s8ocESo0za','m0VdOGn2WOBcHu13W6fa','WRWoAq','W43cMXO','W7/cPowhPoAnV+waIYS','W6KCW7H/Fq','WRldPSk0qgZdVa','W7nPvf3dRG','WP0pEfldTa','c2Km','umkvW4S','i0rbqZBdQW','WR3dOCkRuxVdUG','WPzRWP9/wG','WQeWW494tq','EZBdM8kmDG','WPj/WOhdKCk2','DGL4','FtRdIexcKSkm','W5WLWRpdMri','W4DXWQCfesa5BwKBW7n0WOG','W4/cJmos','W4HrzuVdRG','5O+c54+Y5AAp6lEep8kU','tdPNz8kn','z17dKNxcNs0kxwlcI8ozW7jj','W4JcVXizW60','W4ruyfxdMCkMDsfD','hqqYWPOwWPVcOW','W6NdV8kgDa','5P256k6A5yE/5O2n6AgX5Aww6lARwuK','WPddJe98WQGxyNz1W7pdNW9A','tI1PWRT/','W7qYW77cGCkR','aW4L','WRBdSSkXkSoyW6C','WPvEF0W','WRTVywTM','WPddMSkk','W6hdSCkv','awKzmSktWQe3','zJxdHu3cImkfFM4','5O6/54+r5AwZ6lEttCoy','W4OIWQFdLarF','me/dOIC','WPXAzMRcTWLcW61wW4ddTCorWRqf','WRvxWRyLAq','sWZdM8kqBG','5ywJ5O+D5OI75yUHtMy','WRBdTSkbD00','WQtdS8k3pmot','W7azWRhcHSor','W7esW4xcI8kqz8o8','WQddVSk3kW','AvVcMLJdKq','4P2QmEAFPUIdOoAVT+EGKowKTEEtUba','rgnZkCkoWRK','hSkF6l+Z5P23','4P2UWORMJ5VNJlpLPjBOTzdVVjFKUkJKUQhNRiNMJ4BNJjVOVBdMNjhLRAlMIBu','WRyAuwhdIa','tGXu','W4ddU13dGW','vCkUW4xcLwu','iY/cJSk7W5ddKCkkbSoZzq','WRddRSkSvq','WPHzBum','lfHf','5OIF5yUe5O22546r','W5bhAfVdTmkFDcu','EdVdJtdcKq','DSkRWRFcMW','WPuMW7ft','WPzYWOBdI8k6yGVcLsBdSu8JigJdR8oAka','W70vW4fAAHm','WOj8WOBdLmk6CG','mSocW68','W7ayW5e','W4BdRfRdJSkBhYDbaSodW4/cH8oJ','qKJcPu/dVW','DmkLWR0','W6hcVSknxCk/WQi','t8kiWPpcULy','tSofBa','W78uW6H7uW','scZdQZxcTCkkW4NcMmkYW75GmSo8gCkwwCkZmmoV','fmoPW79Cnq','BhpcL8k2W7tdKmkicmo0Dar8','jmo7W7b1oG','W5ScWOaH','FCkCcCkWlcvHsSoGWPBcOSkX','W4FcH8owDvz/WO12lHldHKuy','m8oiW7TldNi1','5O2Y542p5AAe6ls4dte','W40iW6CEc1FdVJBdHJ7cSSourW','W4SkuWON','sW1ayCkiWPm','WPZcSSkaD8kw','W4pcJ8o2Fer5WR16crNdRuuChq','v8kMWOZdNSo8','c8ofWOe9DvLjW75re8otW5WnfCkmWQ5HrdnxWRfDj8kD','5P+L5BM+5AY6','zq7dV8kQyW','5ysY5O+t5AEe6lwOpem','W5anWPS','W4XnDeBdGW','WOyOW6Dxtgvlx34/','W4tcMGS','tsPnWPDl','yJVdLmkTDW','W40AWR7cOSon','zt/dUvBcHmkwrhmrW4H7W57dLW','BSkDWRGi','EmoouqGd','wahdKetcQG','WQmkW4b6CG','44c/5O6z56AL44gO6kYJ5yA26iYB5yY9WOxdKh8PW4mz','w8orsbibiSo1W4i','qg/cNSknW7W','rGjhzq','W7VcJSkRyCkl','W7ebW7XxvG','W4yclXtdPvSuWRKoWQS','WR4fA0ddJq7cM8kZWOVdTIu','FGpdGwdcNG','FSkXWOK','yx7cQM/dJq','vJfFr8olW7nPEGFcJg9XCW','nSoYWQabvq','t8k+WPJcS8kTveldMeWGW7ylWPWSWQK','5yEh5O695OIR5yUpqmol','WRa+W6ruqG','CLnaW4KsW4OvW7m','ufVLHRxMJR3LGQ/cHa','WPVcJaSt','W5SgWOGGpH0SmSoDW4b5z2FcPCorWRRdNCoPFCo6WOW','W6xcQ1OKd8ky','WPHHWR50vq','WOLAzuJcQGj9W71dW7m'],...(function(){return[...['WRDSWOmfCW','4P+5goAmH+EoLUAiRUwlUG','vx3cPx7dSq','wNzbpa','W5dcHCkcw8kM','WQhdMYtdLSo8WR4','uw9pmCkgWRLdWR1eCKtcOCkS','WOL2WONdLSk2zXK','W43cKrmOW6Xj','W5iNBIS','W4aCvbiJ','6lAW5yYO5PEB5Psy','WOJcJbyg','vmk2WOZcJCk6wxpdM2v2','WPn2WP/dK8kHCt7cGGNdSq','5Bso6k6g57656lEv6l+56l616kkg5BY85yUZ6lw25yYg','CCkKWRNcKMtdGvhcRG','mSoLWP4+zW','WOVcUSkRW5VcHq','d+E6JowoKXS','WQtdHaldSmon','W5veuMBdLW','W6qbWO4','kComW6zbbMiXW5qkWQ3dQCk3jH3cUCk2W4WvWOhdKmkRaG','W5FcPmket8kA','aCoMWOWhza','WQRdS8ktnW','W4dcHW4MW79poub4W4ldHYe','uSo+bt18','WQtdKcNdNCo9WRlcMwG','W74GW61Tta','wmkBW5JcOW','EmkoWQFdVmoT','5ys25O2K5As95zk277+OW6RMJ43PMy3KVz7MGidLIlGBna','WRVdSmk5','WRxdVmkRxw7dOa','W74bW7DSqa','WRRdNYpdHq','cSoEWOy','W45iCKRdKSkc','5OYh54YV5AEV6lw6WOZcSW','rffrnCkE','WOhdTCklxx4','WQJdHINdMCoPWRJcM34mWRZcJ8o0xa','W58HWQirdq','WOXkWR5CwYlcUaddIYdcUmoN','WOxcSSkNW7JcJG','WR4fA0NdNGJcKCkYWRldHdjxWRnLWR7dKHRcTmky','6yk5552X5O6r6ykNW4brgW','WOP0WPy0Fq','W40NEW','mXBcGsxdIxfzyuNcHSo1W5DK','WOfgWQCfr8o3WRdcK23dOmkry8oWWO5mk8o1WOpcOmkTAa','W5NdS2hdT8kV','WO7cPaqdW6C','WPOMW7i','qWNdKmk0Ba','tSkFW5ZcP0Wx','g2FcQa','WOddVCkMacC','sYJdQXG','W5dcMSocFev1WR5Qdrq','Ad7dKM3cNmkvFM4kW71IW4JdUcbHsCofr8om','E8kkdSkrFJH4','fmoqWPW5uGOlWRq','W5mZWQ3dGbW','whHl','DqLvqCkB','W4GMFZmZW43cOCox','WPVdQCk9q0m','W6S7WR3cLmo3','i3xcISorpmk/WRPWW7ubWQ/dJmkV','wmoIyCoiBW','W4NcGaK/WQioE0rMW5/cOcGvd8oiw8o/z8oJW6D4E8ke','y2xcGCk7W4hdM8kiaSoSzq53wmktE2rSumkxjCoj','rCoEqGO','kSowsSkbjIXfqmol','FgNcQ8kiW5e','EGhdOZjTWPJcMrbOW7DfxSk1cHBcOa','eCouWOiSDaCYWQHabG','oSomW7Xz','8y2bICotW7K','5ywn5O6n57Uy5y+C5OMB5yUu','WPddHeH9WQ1GbunvW5ZdNG','CNflc8kI','5PYV5BQc5A6u','WONdI8kTlXG','WQ1hWOBdIa','5yw25O695OU75yM8W6uD','WOCzW7D/Ba','b8ovW4bqgq','5PAh5BQv5AYZ','zspdL8kvuCoNW6fg','F8kVWRtcQ1a','qsZdUH3cHSkBW4hcHmkWW5PtlCoff8knt8ktmCoLpCoR','BqDXWOfvWO1AWQ0MW6eYW7ZdH8kQf8oDW7e','W7dcHSk1smk7','WR1T5yAK5OYc5ycyWQi','thxcK2RdRqLUWQfeW5xcRSkZyCoicq','caq2WRmfWORcQx5cmGu','xmoigHP9ma','W5KgWOmJgba','aWqSWPedWPa','rSovgGDU','umk+WOlcLW','WOrxWOeb','5O+Y54+t5Asc6lsHW4ddHW','rgvfi8kcWPbwWRDIywlcTW','qxtcUfxcOq1f','aCkixG','WQxcLSku','yujlhCkb','W4JcMH4JW61fmvy','cqG6','jxBdSqDN','5y+k6ysr54My5Oki57M/5P+2taawWQD3lKOOWP7dIa','W4FNJ4FPHAFcPq','WQtcTmkhACkN','WOu8W7zvrgv8','Cmk/fSkWdW','W6FdUSkTyLFcJCoOWPRdIwyao8kJxYu','paRcVtRdKwHHBxtcKCo/W5D3W45g','l1zk','wu/cNCkhW6a','EMhcJCkRW4FdL8kica','W7hcRhG9na','WRJdOmk/','5yE25O2e57QJ5yYQ5OQW5yMP','vCoMsSoiqq','tfpcR0NdJq','cSodWPZcMKaeb8kcWRS','wapdUSkkCG','i0DGtZldQJpcHhzfymknWP7dRMpdJCkIFvRcJSoA','urDsCmkpWPq','W4hcJCoqFen0','rCotgHC','WQ1iWP0xnvxcUa4GW4dcT1eI','W6RdU8kgufZcImoyWO3dVhyp','WOBdMmkLoa8','WQRdMZ7dTmo6WQtcK2KsWQZcHW','ywxcISk4W6FdLG','WPZcJbagW4Lyo8kMWPJcHW','57If5AYv5OQt5PYo5y++','WPbDD0v/xq','5P+r6k+15yw95OY76Aks5AEM6lsbW6i3','WRNcNSkw','BI1mWPnj','W7/dV8kCCuhcLW','WPrzWQr1sGRcQqq','WPDAFe7cRa4','W44TW79hFG','t8ktW4VcReGheCkAWPBdLW','c2mfemkgWQO','vXr7WRqCWOZcRgm2CY7dVvhdJfRdOrFdGmkXW4ygWR0','W6i+WQdcHSoG','WOddPSkDlSoo','fwmyaSkEWRy','jaVcKtJdHgS','WOJcUHubW4m','W77cQ08GcCorWO/cLvPJW4WDWOmtW6OgWOWLx8o4WPJdKJNdSGSReuHkW57dKmozBmo9','5l6V5O+r5Aw956sw5Pse6yAj5yEb5O+t5y6X5ysH5O6955Ir5P+U6AIp5lMc6lgu5Asm5zkV','4P2QqEAoKUEnHUAjP+wjPW','5O+S542k5AAD6lENf0m','WO5nWRLJuae','W7axW4K','4P24n+ApVoEpQEwNLUI3SU+8VG'],...(function(){return['kSoYWOqzra','FmkRWQ7cNW','5AA256wEWQG7','W6BcRviQh8k/W5NdIL4','cSoLWPWAtG','W5hcK8oCFLi','WPPrDvzUrW','qY/dMmkoAa','zspdKmkyBmo5W61nW6SiWRJdRmkkdSoBw8kjiXu/W53cLG','WQ1vWRfjuW','5BsM6kYX57626lEh6l+o6l2E6kkd5BYG5yIP6lw45y65','wbFdTe7cIG','o8odW74','m0VdOGTHWOFcMv5DW7C','6lEq5y6+5Pw15Pw+','mfWDeSkL','W5FcG8kGD8kH','WQFdVmkeoGPwh8ko','5yYT5OYp546l','WQFcUSkfqmko','WP1lAKTSwW','WPpdIEwgTUAmTowbGWG','vqjDFCktWPdcT1b6b3ldJKddR2CYnG','A8oiFHeo','x8ogEqyM','WQSfAgtdJrJcOmk4WRBdOa','oehdSq','fYtdTcZcOu0hWPLAW7ZcMCkdvG','5P6X6k+m5yEh5OYK6AgX5AEf6lEpbrO','as4ZWOmv','WPiOW6fx','4P6zW5hMJkhNJPpLP6xOTlFVVAW','WPTuWPPCtq','WOJcGGWc','zhxcGmkQW7q','zt/dUvBcHmkwrfmrW4H7W57dLW','y8kqWRufuIHTWODOW7u','W7GwW4lcMq','EMhcISkMW7RdICkea8ofDYrSx8kCygbs','5PYv5BM85AYI','5P2l5BQK5A2Q','qd/dRtpcTW','W40NCq0t','WPdcKrWzW59Sgq','EMhcJCkR','W4iKwGSr','W5hcMSkYqSkK','W7yOW6DArq','emofWOCKAaqpWRDj','zspdKmkyBmo5W61nW6SAWQNdU8kkc8ohxCkB','yw/cGW','n2uJo8kJ','BGJdUYRcUG','5y2l6yse5B+J5zc354MN5OohrCk6W4FdOmkLDLldPsbD','xfbY','AmkRWQJcN3ZdLNdcVmkGha','B8kAgCk6lJH/','W70AW5NcJCkFDa','xsZdQbJcPSkAW7JcKSk2W5O','5OUe5yIq5OYi546e','W6pcQCoUACkaWQznW4RcGuZdIKdcUa','WQNdT8kteW1afCkpAs7dIq','WOJcSmkIW6hcSW','zr7cPx41W4BdNfjZW4bEx8kW','u2xcQg7dUa','W7lcLSomAw4','BdtdGKq','wsRdQ0lcMG','As/dUcVcKq','jfVdPs4','WOXEFfdcSrfiW6PSW7pdRmoEWQKbW4dcIH0','hbKPWQm8','W47cKmos','AZRdKKa','WP5XWRfcFq','WO3cNtacW4DeeSk3WONcIhxdTSowdSosDCkNhLKiW4e','u8omwbCtkmo9W5qWbmkwW7e','WQ7cVa0XhW','WQvay1DG','Emk6WRhdVSovW54UtuldTaX6g2hdHSkh','WP/cMaeeW4fyda','a2NOVyFMNBa','mKu+o8kH','W4OOWQ4','44kD5O2o56Ei44ce6k+z5yAY6iYa5yYPW7jQbZhcPf0','q8k+WP/cGG','W77dPSkzqgu','W4bdDwRdKSkeDJjPySkm','W4zwu0RdG8kzDdbbF8kyC1PMWRa/zu/cLCk0ca','WPDqDq','WQFdV8k0xx0','arRcKZ7dJW','r2lcV3tdSXa','W6hdHwJdVmkp','5AE356sG5PwS6yAq5lMl6lsA77+i5Pwe5RoW5yAK5O2W','iSoKWQCKqa','WOi7W7LGzG','W7lcVK8X','yUIVGoAXSowKM+I1TmkL4P+cW5tML7pLK6BLUOFMLPJMJRq','rs5HBmky','5yA/5A26WOpdI8kf55Ue6kYb5y+0','yc99rSkI','aw8ha8kxWRa','WPbxWRa','W4nhDu4','xLH7W48','z17dL3/cNv5VyLNcJ8ok','umopEmo2sWe','W48TEtSuW4ZcQColu8kquvORW6ldTComW5tcQCk2WRiH','agiOmmkX','zCk/WOFdVCo4W4aCwa','5OUz5yMM5OYJ54Ys','W5lcVCk3AmkP','wcJdTG0','WO7OHjxLIj3LHyZMJzxNURpLJ68','WQhdKs0','u3jyfCkiWRbnWRzezuRcP8k8WOW','W7qZWOOlkq','ubzDqCkuWOm','aN4caW','4P2EyUAnRUEnKEwKToI2Q+++LG','WP3dJmkPyeS','ag9vEZK','WOxdJdNdN8ok','aSoCWPO4AbC','WODtWOePsSo0WRtcJw3dJCknAmoaWPLdka','5O+75A6I5yAg5O2e5yccx8oQ','b8oqWOeS','WR3dIZNdMq','E8kWWP3dRmoEW50','FtpdStFcSa','s8k1dmk8ha','W6BdU8klzG','W6KnWP3cMSoxyG0iW7zQzmo1WQ7dPSkZW4VdPvWS','5O+L54Yw5Awy6lwAnwq','jmokW5bPoG','W5GqWOO','Fa9N','WQhcJCkhW5lcMhRcJmkoW6KVvcdcRmk6pMRcVLn/xW7dT2y1','zJxdLutcJ8kv','W4GMBZO0W50','WP7cIbugW5zpmCkMWOhcGW','BqD2WOW','W6rJuepdOq','5ys+5OYd5OMs5yMPtCoy','WPBKUjlOSiZdRa','WQldVCka','ESkgaG','s8kWWOW','4P6zW5hOH6VMNi/OVitOOz7PGlhLI4lKUkdPL5tOR4ddMa','v8opeZXGimoi','WPvlvu1Sxmo9','bmouWOefmXas','rcpdV1xcVW','W5aZW7P1yq','i3VOVB7MNkG','WPPryq','W43dSvZdGSkOfc1lj8ofW6pcMSoPW6y+W7JcHdqSsSkA','W7xcOSkpBmk0WRq','n8ocW7S','d8oEWPi','rSkVWPVcJ8k2xK3dMgqSW6XTWPG5WQNcReBcRSkYW5FcTmkjgfvzxgddG2ldOIzUoa','BmoEirD5','WPGSW7bsC3nIuxW7W6frWOzph8orW7G8EujZ'];}())];}())];}());Iii11l=function(){return llliIl;};return Iii11l();};let hasGetBasicInfo=![],business=IliIII(0x329,'Fea]'),cookiesArr=Object[IliIII(0x2d4,'0qS!')](jdCookie)['map'](i1iIiI=>jdCookie[i1iIiI])[IliIII(0x2b6,'uNf8')](IlllI1=>IlllI1);!cookiesArr[0x0]&&($[IliIII(0x323,'^lqH')]($[IliIII(0x366,'GlJW')],IliIII(0x381,'YP[3')),process['exit'](0x1));const rewardType_table={0x1:IliIII(0x3ab,'sEvZ'),0x2:'[优惠券]',0x3:IliIII(0x2e1,'ex9w'),0x4:IliIII(0x21e,'6O1$')},rewardType_map={'红包':0x1,'优惠券':0x2,'京豆':0x3,'现金':0x4};!(async()=>{const II1l=IliIII;notify[II1l(0x358,'Yo7y')]({'title':$['name']}),await Main(),isNotify&&notify['getMessage']()&&await notify[II1l(0x231,'F!CM')]();})()['catch'](I1il11=>$['logErr'](I1il11))['finally'](()=>$[IliIII(0x271,'[CxF')]());async function Main(){const liiiiI=IliIII,lI1l11={'jBcTY':function(II11l,II11i){return II11l>=II11i;},'LKTZe':liiiiI(0x30b,'4QFc'),'cMVPj':function(iI1Iii,liI1ii){return iI1Iii(liI1ii);},'BLNBX':function(lIIiIl,iI1Iil){return lIIiIl>iI1Iil;},'qEvJs':function(il1iI,i1iIii){return il1iI!==i1iIii;},'KxYtB':function(i1iIil,liI1il){return i1iIil!==liI1il;},'ULXae':liiiiI(0x3c2,'O0d8'),'bSCDh':liiiiI(0x2fe,'ci(W'),'APgOE':function(llIlIi,llIlIl){return llIlIi+llIlIl;},'icuPJ':function(II11I,il1i1){return II11I>il1i1;},'DHCop':'vfuye','jUvuA':function(lIIiIi,liI1iI){return lIIiIi!==liI1iI;},'EtWQl':'sNuYL'};try{try{const i1iIl1=lI1l11[liiiiI(0x20a,'tDtB')](parseInt,taskThreads);if(lI1l11[liiiiI(0x2b5,'h46D')](i1iIl1,0x0)&&i1iIl1!==0x1){if(lI1l11[liiiiI(0x21f,'Qa!8')]('IiKVV',liiiiI(0x1f2,'uea*')))taskThreads=i1iIl1;else try{const llIlII=lI1Iii(i1li);lI1l11[liiiiI(0x1db,'3ZN[')](llIlII,0x0)&&(IliI11[liiiiI(0x1ea,'4QFc')]=llIlII);}catch{i1l1lI[liiiiI(0x298,'^lqH')](lI1l11[liiiiI(0x3c6,'(ttG')]);}}}catch{if(lI1l11[liiiiI(0x2e9,'6xs)')](lI1l11['ULXae'],lI1l11['bSCDh']))taskThreads=0x1;else{let {rewardType:lIIiII,rewardName:i1iIlI}=IilIiI[liiiiI(0x275,'6O1$')][liiiiI(0x2bb,'uea*')];i1i1I1-=IlII1;let li111=IiI11[lIIiII]||'';lli[liiiiI(0x311,'er#0')](liIlI+'兑换成功:\x20'+li111+i1iIlI+liiiiI(0x347,'ci(W')+lll+'奖票'),llli1[liiiiI(0x20e,'F!CM')](liiiiI(0x2e0,'k^eI')+li111+i1iIlI);}}taskThreads=Math['min'](taskThreads,0x3),$['waitTime']=null;if(runInterval)try{const liI1lI=parseInt(runInterval);lI1l11[liiiiI(0x22b,'T]Xn')](liI1lI,0x0)&&($[liiiiI(0x352,'Fea]')]=liI1lI);}catch{console[liiiiI(0x1dc,'FRfv')](lI1l11[liiiiI(0x2ea,'^K(3')]);}console[liiiiI(0x23b,'Qa!8')](liiiiI(0x387,'qvJN')+$[liiiiI(0x354,'xZCM')]+liiiiI(0x285,'tDtB')),console[liiiiI(0x3ba,'u3$f')]('活动入口:\x20APP-我的-更多工具-玩一玩'),console[liiiiI(0x228,'O0d8')]('兑换模式:\x20['+(exchange?lI1l11[liiiiI(0x2c5,'GlJW')](liiiiI(0x2ce,'KbZc'),exchange):liiiiI(0x24a,'ci(W'))+']'),console['log'](liiiiI(0x3c8,'6H0p')+(isNotify?'开启':'关闭')+']'),console[liiiiI(0x2a3,'Y!ow')]('账号过滤:\x20['+pinFilter[liiiiI(0x306,'Qa!8')](',\x20')+']'),console['log'](liiiiI(0x274,'mc4x')+$[liiiiI(0x332,'qvJN')]+liiiiI(0x21d,'(X0u')),console[liiiiI(0x1e1,'oa5g')](''),$[liiiiI(0x2f3,'oa5g')]=[],await common['concTask'](taskThreads,cookiesArr,taskFnc),$[liiiiI(0x38e,'C5Ph')]=![],$[liiiiI(0x2c6,'h46D')]=![];if(lI1l11['icuPJ']($[liiiiI(0x394,'GlJW')][liiiiI(0x30d,'KbZc')],0x0)){if(lI1l11[liiiiI(0x260,'tDtB')]!==liiiiI(0x37a,'f#HJ'))cookiesArr=cookiesArr[liiiiI(0x2ee,'tDtB')]((lIIiI1,ll1I1)=>!$[liiiiI(0x2ed,'6H0p')][liiiiI(0x382,'ci(W')](ll1I1+0x1)),$['needRemoveCookieIndex']=[];else{if(lI1liI[liiiiI(0x2a0,'[CxF')]===!![])iIII1i=iil1i1[liiiiI(0x30a,'(ttG')];else{let iI1Ii1=il1i11['getErrorMsg'](IlIll1[liiiiI(0x305,'T]Xn')]);IlIII[liiiiI(0x3ba,'u3$f')](ilil1l+liiiiI(0x24c,'uIpi')+iI1Ii1);}}}const iI1Il1=notify[liiiiI(0x25d,'sEvZ')]();iI1Il1&&console[liiiiI(0x298,'^lqH')]('\x0a📣\x20运行结果\x0a'+iI1Il1[liiiiI(0x32a,'k^eI')](//g,'\x20➜\x20'));}catch(Ii1ill){if(lI1l11['jUvuA'](lI1l11[liiiiI(0x37b,'GF#]')],liiiiI(0x32e,'lpZo')))console['log'](liiiiI(0x2e5,'Qa!8')+Ii1ill);else{iIIl11[liiiiI(0x2d9,'lpZo')](liiiiI(0x25a,'O0d8')),l1l1I1[liiiiI(0x35d,'xZCM')](I1iIll['getInlineContent']()),I1lliI['needRemoveCookieIndex']['push'](llIllI);return;}}}async function taskFnc(iI1IiI,IIlI1){const II1i=IliIII,i1iIli={'YWDcJ':II1i(0x2b3,'h46D'),'QTksa':function(Ii1I1i,llIIlI){return Ii1I1i<=llIIlI;},'UCULS':function(Ii1I1l,IIlIl){return Ii1I1l-IIlIl;},'WZveW':function(ili11l,Iiilll){return ili11l+Iiilll;},'YNeqk':function(Iiilli,IIlIi){return Iiilli+IIlIi;},'jPIuA':function(ili11i,iiIi1l){return ili11i===iiIi1l;},'PcHLQ':function(li11I,lliiII){return li11I!==lliiII;},'Yxzuk':II1i(0x2b0,'oa5g'),'CNaCw':'nYTcw','mTgwK':function(iiIi1i,liI1ll){return iiIi1i(liI1ll);},'WLRow':'superRedBagList','izHAE':II1i(0x341,'GF#]'),'PiytY':function(ll1II,IllIii){return ll1II<IllIii;},'iudug':'dXzWx','zgXQU':'poolBaseId','clFTW':'prizeBaseId','DogWK':'apCashWithDraw','bWyJb':'AURiF','VqMcg':II1i(0x286,'k^eI'),'utdsl':function(liI1li,IllIil){return liI1li===IllIil;},'lPliD':II1i(0x37e,'ci(W'),'MozRo':II1i(0x238,'O0d8'),'tKSku':function(ill1Ii,llIIl1){return ill1Ii===llIIl1;},'tCnLE':II1i(0x2b9,'k^eI'),'KFQFT':'已存在状态','dYiRk':function(ill1Il,i1lll1,Ii1I1I){return ill1Il(i1lll1,Ii1I1I);},'DwGDX':function(l1i1Ii,l1iI1){return l1i1Ii*l1iI1;},'bIfdC':function(lliiI1,IiiI1){return lliiI1!==IiiI1;},'evChn':II1i(0x234,'u2z6'),'JDwdZ':function(lilII,IIIiI){return lilII===IIIiI;},'qPbIM':II1i(0x204,'mc4x'),'bugBa':function(iii1i1,IllIll){return iii1i1!==IllIll;},'wLAKf':II1i(0x26d,'k^eI'),'ZQBbJ':II1i(0x281,'f#HJ'),'aTHMe':function(i1lllI,llIIi1){return i1lllI==llIIi1;},'WyCqx':II1i(0x386,'^K(3'),'UaCEM':II1i(0x376,'Fea]'),'ozNdw':II1i(0x2df,'Fea]'),'QqTNW':function(iI1IlI,l1i1Il){return iI1IlI===l1i1Il;},'Wtqsg':II1i(0x324,'Fea]'),'JADkw':II1i(0x313,'^K(3'),'bXCBH':function(ill1I1,l1i1II){return ill1I1===l1i1II;},'WBIDG':function(ili111,Ii1I11){return ili111===Ii1I11;},'jSHYd':II1i(0x1fe,'tez&'),'ZyVsU':function(IllIli,ii1Ii){return IllIli!==ii1Ii;},'zbzjb':II1i(0x1f0,'GF#]'),'GofrY':function(ii1Il,l1iII){return ii1Il(l1iII);},'UUgDf':function(iI1Ill,lilI1){return iI1Ill!==lilI1;},'BQQZu':II1i(0x248,'[CxF'),'ESIAo':II1i(0x258,'f#HJ'),'Qmfom':II1i(0x249,'%A)b'),'ICqTB':II1i(0x37d,'mc4x'),'iTiWH':'android','BCXyn':II1i(0x3a5,'C5Ph'),'NdbiO':II1i(0x3c1,'h46D'),'WyZNl':II1i(0x217,'F!CM'),'drrsn':II1i(0x2d5,'GF#]'),'OJVEE':II1i(0x3be,'4QFc'),'sssxa':'NONE','GYJyg':II1i(0x29b,'[CxF'),'iKoVu':II1i(0x371,'4QFc'),'hEHyZ':II1i(0x28e,'(ttG'),'AAdSn':'ihqwC','Fwqbc':'application/x-www-form-urlencoded','HrsnB':II1i(0x2f1,'C5Ph'),'oYUNG':II1i(0x391,'lpZo'),'BCufo':II1i(0x30c,'Lqo4'),'MtyqX':function(IIIi1,i1llli){return IIIi1>i1llli;},'lPWPK':II1i(0x1f7,'hXs0'),'jBOUa':function(i1llll,iI1Ili){return i1llll(iI1Ili);},'byYCD':function(llIIiI,iI1111){return llIIiI(iI1111);},'YwUoz':II1i(0x3b4,'F!CM'),'WjfEa':II1i(0x25e,'oa5g'),'WrRIE':function(IIIl1,ii1ii){return IIIl1>ii1ii;},'XXXjj':function(Iii1,I1I1lI){return Iii1+I1I1lI;},'sxkUK':function(ii1il,l1iIlI){return ii1il+l1iIlI;},'QKnUi':function(iI111I,IIIlI1,i1lIiI){return iI111I(IIIlI1,i1lIiI);},'glMzs':function(IiiIl,ii1l1l){return IiiIl+ii1l1l;}};if($[II1i(0x35e,'tDtB')])return{'runEnd':!![]};const i1iIll=i1iIli[II1i(0x3c4,'GlJW')](decodeURIComponent,common[II1i(0x33b,'qvJN')](iI1IiI,II1i(0x346,'tez&')));function i1lliI(l1lli1,IiiIi){const illli1=II1i;if('gMRhb'!==i1iIli['YWDcJ']){IiiIl1[illli1(0x359,'mc4x')](lIIil1+'账号无效'),IIli1[illli1(0x2ec,'Lqo4')](illli1(0x3a3,'%A)b')),II1liI[illli1(0x2bc,'FRfv')][illli1(0x2d0,'ex9w')](IlI1i1);return;}else{if(i1iIli['QTksa'](l1lli1['length'],0x4))return l1lli1;else{const l1iIl1=l1lli1[illli1(0x340,'u3$f')](0x0,0x2),ii1iI=l1lli1[illli1(0x31e,'Yo7y')](-0x2),IIIil=Math[illli1(0x224,'wDPj')](i1iIli[illli1(0x380,'oa5g')](i1iIli[illli1(0x2a2,'uNf8')](IiiIi,l1iIl1[illli1(0x20f,'GlJW')]),ii1iI[illli1(0x3a0,'er#0')]),0x0),IIIii='*'['repeat'](IIIil);return i1iIli[illli1(0x2d3,'IAw^')](i1iIli[illli1(0x33d,'f#HJ')](l1iIl1,IIIii),ii1iI);}}}const liI1l1=decodeURIComponent(i1iIll),IllIlI=i1lliI(liI1l1,0x6),IiillI='【账号'+IIlI1+'】'+IllIlI+'',ili11I=notify[II1i(0x230,'^lqH')](IIlI1,i1iIll);if(i1iIli['MtyqX'](pinFilter['length'],0x0)&&(pinFilter[II1i(0x3a8,'xZCM')](i1iIll)||pinFilter[II1i(0x1ee,'FRfv')](i1iIli[II1i(0x33f,'O0d8')](encodeURIComponent,i1iIll)))){ili11I[II1i(0x2e3,'IAw^')](II1i(0x3a7,'KbZc')),console['log'](ili11I[II1i(0x2cd,'3ZN[')]()),$[II1i(0x208,'YP[3')][II1i(0x295,'sEvZ')](IIlI1);return;}const li11l=await common[II1i(0x2c4,'tez&')](iI1IiI);if(!li11l&&typeof li11l==='boolean'){if(i1iIli[II1i(0x283,'uNf8')](II1i(0x2ca,'wDPj'),i1iIli[II1i(0x267,'ci(W')])){console[II1i(0x24e,'^K(3')](IiillI+'账号无效'),ili11I[II1i(0x21b,'k^eI')](i1iIli[II1i(0x1ed,'h46D')]),$[II1i(0x1f4,'hXs0')]['push'](IIlI1);return;}else{if(liIl1[II1i(0x3b7,'uIpi')]&&i1iIli[II1i(0x244,'GF#]')](II1lll[II1i(0x1fa,'mc4x')]['bizCode'],0x0)){let {rewardType:I1I1l1,rewardName:iI111l}=i11I1I[II1i(0x384,'h46D')]['result'];l1il1i-=ll1;let i1lIii=iI1llI[I1I1l1]||'';llliii[II1i(0x307,'f#HJ')](IllI11+II1i(0x38f,'%A)b')+i1lIii+iI111l+II1i(0x2eb,'6xs)')+l1llIi+'奖票'),II1llI['insert'](II1i(0x33e,'ci(W')+i1lIii+iI111l);}else{let III11i=i11I11[II1i(0x235,'ex9w')](l1llIl[II1i(0x1e6,'YP[3')]);ii1I1l[II1i(0x335,'0qS!')](ii1I1i+'兑换失败:\x20'+III11i);}}}const lliiIl=common[II1i(0x207,'xZCM')](i1iIll);let li11i=![],lliiIi,iiIi1I,IllIl1,ll1Ii,ll1Il,iiIi11,ill1II,i1llil,i1llii;await llIIii(II1i(0x3af,'mc4x'));if(lliiIi){const i1lIil=lliiIi['moreExchanges']||[];ll1Ii=lliiIi['score']||0x0,li11i=lliiIi[II1i(0x2e7,'Lqo4')]||![];if(!li11i)return;let III11l='';!hasGetBasicInfo&&(hasGetBasicInfo=!![],i1lIil['forEach']((llIl1i,llIl1l)=>{const I1lII1=II1i,IiiII=llIl1i['rewardName']||'',Iiil=llIl1i[I1lII1(0x3b3,'er#0')]||0x0,IIIli=llIl1i[I1lII1(0x1f9,'4QFc')]||0x0,ii1i1=llIl1i[I1lII1(0x39e,'tez&')]||0x0,Iiii=llIl1i['hasStock'];IIIli!==0x2&&(III11l+='['+(llIl1l+0x1)+']'+IiiII+'['+ii1i1+I1lII1(0x252,'3ZN[')+(Iiii?I1lII1(0x372,'[CxF'):I1lII1(0x205,'uNf8'))+I1lII1(0x20b,'3ZN[')+Iiil+']\x0a');}),console[II1i(0x3ba,'u3$f')]('兑换奖品:(排除优惠券)\x0a'+III11l));console[II1i(0x1ec,'tez&')](IiillI+II1i(0x304,'lpZo')+ll1Ii+'奖票');if(exchange){if(II1i(0x227,'%A)b')!=='sgBRp'){let llIl11=i1lIil['find'](IIIll=>IIIll['assignmentId']==exchange);if(!llIl11){console[II1i(0x2a3,'Y!ow')](IiillI+'兑换值变量填写错误,请填写正确的兑换值~'),$[II1i(0x24d,'KbZc')]=!![];return;}else iiIi1I=llIl11[II1i(0x29c,'ci(W')],IllIl1=llIl11[II1i(0x28a,'YP[3')],i1llii=llIl11['exchangeScore'],i1iIli[II1i(0x353,'YP[3')](i1llii,ll1Ii)?console['log'](IiillI+II1i(0x2ae,'FRfv')):i1iIli[II1i(0x290,'T]Xn')](IllIl1,0x4)?(await i1iIli[II1i(0x3bc,'^K(3')](llIIii,II1i(0x276,'hXs0')),await $['wait'](parseInt($['waitTime']*0x1+0x1f4,0xa)),await l1i1I1()):(await llIIii(II1i(0x356,'Yo7y')),await $[II1i(0x27c,'hXs0')](i1iIli[II1i(0x35c,'T]Xn')](parseInt,i1iIli['XXXjj']($['waitTime']*0x1,0x1f4),0xa)));}else Illl1l=!![],Illl1i[II1i(0x336,'uNf8')]((l1llii,liII1)=>{const Ill111=II1i,I1I1ii=l1llii['rewardName']||'',l1llil=l1llii[Ill111(0x364,'hXs0')]||0x0,IIIlIi=l1llii[Ill111(0x269,'uD%l')]||0x0,llIl1I=l1llii[Ill111(0x368,'^lqH')]||0x0,i1lIl1=l1llii[Ill111(0x23e,'KbZc')];IIIlIi!==0x2&&(IiiIli+='['+i1iIli[Ill111(0x398,'3ZN[')](liII1,0x1)+']'+I1I1ii+'['+llIl1I+'奖票]['+(i1lIl1?Ill111(0x277,'IAw^'):'无库存')+Ill111(0x265,'u2z6')+l1llil+']\x0a');}),l1lIii[II1i(0x330,'k^eI')](II1i(0x3b9,'uNf8')+I11iI1);}else{if(i1iIli[II1i(0x308,'^lqH')]('RUQhz',II1i(0x240,'^K(3'))){let liIli1=i1lIil[II1i(0x256,'Lqo4')](IIIlIl=>IIIlIl[II1i(0x3a6,'Yo7y')]==rewardType_map['京豆'])[II1i(0x3a1,'FRfv')]((IIIlI,IiiI)=>{const I1iI11=II1i;if(i1iIli['PcHLQ'](i1iIli[I1iI11(0x29e,'Lqo4')],I1iI11(0x1e5,'u2z6')))return IiiI[I1iI11(0x1dd,'fhqt')]-IIIlI[I1iI11(0x35b,'6H0p')];else lilIil[I1iI11(0x2c3,'ex9w')]('⚠\x20自定义运行间隔时长设置错误');});for(let l1iIll of liIli1){if(!l1iIll['hasStock']||ll1Ii<l1iIll['exchangeScore'])continue;i1llii=l1iIll['exchangeScore'],iiIi1I=l1iIll['assignmentId'],IllIl1=l1iIll[II1i(0x1e7,'^lqH')],await i1iIli[II1i(0x36c,'FRfv')](llIIii,II1i(0x209,'lpZo')),await $[II1i(0x1f5,'ci(W')](parseInt(i1iIli[II1i(0x2a6,'0qS!')](i1iIli['DwGDX']($[II1i(0x2be,'(X0u')],0x1),0x1f4),0xa));}}else ll1il[II1i(0x282,'hXs0')](IiiIiI+'✅\x20提现成功'),lilii[II1i(0x36d,'h46D')](II1i(0x351,'6xs)')+l1iiI?.['amount']+'💰');}autotx&&(await l1i1I1(),await $[II1i(0x1f5,'ci(W')](parseInt(i1iIli[II1i(0x297,'k^eI')]($[II1i(0x352,'Fea]')]*0x1,0x1388),0xa)));}if($['runEnd'])return{'runEnd':!![]};await $[II1i(0x2c1,'YP[3')](i1iIli[II1i(0x1e2,'f#HJ')](parseInt,i1iIli[II1i(0x270,'KbZc')]($[II1i(0x226,'hXs0')]*0x1,0x1f4),0xa));async function l1i1I1(){const II11=II1i,iIi1l={'qXgAc':function(i1lIlI,l1lliI){return i1lIlI-l1lliI;}};if(i1iIli['jPIuA'](i1iIli[II11(0x39c,'tDtB')],II11(0x326,'h46D'))){ll1Il='',await i1iIli['mTgwK'](llIIii,i1iIli[II11(0x379,'lpZo')]),await $[II11(0x343,'u3$f')](parseInt($['waitTime']*0x1+0x1f4,0xa));if(ll1Il){if(II11(0x365,'mc4x')===i1iIli[II11(0x3ac,'ex9w')]){let IIIlII=illIl1['getErrorMsg'](l1llII['data']);IilIll[II11(0x1e1,'oa5g')](lI11Ii+II11(0x32c,'^K(3')+IIIlII);}else{const iiIiI1=(ll1Il[II11(0x31d,'f#HJ')]||[])[II11(0x314,'O0d8')](ili1Il=>ili1Il[II11(0x253,'%A)b')]===0x4&&ili1Il['state']===0x0||ili1Il['state']===0x2);if(iiIiI1[II11(0x210,'k^eI')]>0x0)console[II11(0x307,'f#HJ')]('');for(i=0x0;i1iIli[II11(0x291,'^lqH')](i,iiIiI1[II11(0x23f,'qvJN')]);i++){if(i1iIli[II11(0x272,'hXs0')]===i1iIli['iudug']){const ili1Ii=iiIiI1[i];console[II11(0x360,'uea*')](IiillI+II11(0x262,'%A)b')+ili1Ii?.[II11(0x289,'6O1$')]+II11(0x1fb,'(ttG')+ili1Ii['id']+']'),ill1II={'prizeType':0x4,'business':business,'id':ili1Ii['id'],'poolBaseId':ili1Ii[i1iIli[II11(0x1df,'6H0p')]],'prizeGroupId':ili1Ii[II11(0x215,'tez&')],'prizeBaseId':ili1Ii[i1iIli[II11(0x27d,'FRfv')]],'activityId':'1999'},iiIi11='',await llIIii(i1iIli[II11(0x316,'uD%l')]);if(iiIi11){if(i1iIli[II11(0x27f,'^K(3')](II11(0x2af,'4QFc'),i1iIli[II11(0x3b1,'4QFc')])){const Iilll1=iiIi11[II11(0x22f,'h46D')],ll11I=iiIi11[II11(0x342,'6O1$')];if(i1iIli[II11(0x3b8,'(X0u')](Iilll1,i1iIli[II11(0x293,'6xs)')]))i1iIli[II11(0x1eb,'Y!ow')](i1iIli[II11(0x221,'IAw^')],II11(0x2fb,'6H0p'))?(console[II11(0x1ec,'tez&')](IiillI+II11(0x24b,'k^eI')),ili11I['insert'](II11(0x2bf,'(ttG')+ili1Ii?.[II11(0x2cc,'4QFc')]+'💰')):(lilIl1[II11(0x2d8,'GlJW')](i1l1ii[II11(0x39b,'tez&')],II11(0x2a4,'0qS!')),i1l1[II11(0x2c7,'uNf8')](0x1));else{let liIIl=![],IlI1lI=0x0;if(ll11I['includes']('上限')||ll11I[II11(0x3b5,'ex9w')](II11(0x2b4,'(ttG'))||ll11I[II11(0x21a,'er#0')]('未绑定微信')||ll11I[II11(0x337,'6xs)')](i1iIli[II11(0x383,'hXs0')])){if(i1iIli[II11(0x23c,'lpZo')](II11(0x2f7,'oa5g'),II11(0x3ad,'Fea]'))){let IilllI=iIli1l[II11(0x388,'uD%l')](i1i1II[II11(0x26e,'oa5g')]);liiIIl[II11(0x330,'k^eI')](iil1iI+'兑换失败:\x20'+IilllI);}else console[II11(0x2e2,'u2z6')](IiillI+'❌\x20提现失败:\x20'+ll11I+II11(0x2c2,'^lqH')),i1llil={'linkId':linkId,'business':business,'drawRecordId':ili1Ii['id'],'poolId':ili1Ii[i1iIli[II11(0x2d7,'mc4x')]],'prizeGroupId':ili1Ii[II11(0x3c5,'KbZc')],'prizeId':ili1Ii[i1iIli[II11(0x361,'^K(3')]],'activityId':i1iIli[II11(0x302,'^K(3')]},await llIIii(II11(0x2a8,'Fea]')),await $['wait'](parseInt($['waitTime']*0x1+0x1f4,0xa));}else ll11I['includes']('已存在状态')?(console[II11(0x218,'(ttG')](IiillI+'❌\x20提现失败上一笔提现还未完成'),liIIl=!![]):console['log'](IiillI+II11(0x2c8,'f#HJ')+ll11I);while(liIIl&&IlI1lI<0x3){await $[II11(0x3bd,'ex9w')](parseInt(i1iIli[II11(0x25f,'uNf8')](Math[II11(0x23d,'0qS!')]()*0x7d0,0x17318),0xa)),await llIIii(II11(0x36f,'^lqH'));const iI1lIi=iiIi11[II11(0x395,'%A)b')],l1lllI=iiIi11[II11(0x369,'mc4x')];if(iI1lIi===i1iIli['VqMcg'])console[II11(0x317,'uNf8')](IiillI+II11(0x399,'KbZc')),ili11I[II11(0x2d1,'(X0u')](II11(0x28b,'O0d8')+ili1Ii?.[II11(0x331,'u3$f')]+'💰'),liIIl=![];else l1lllI[II11(0x261,'u2z6')](i1iIli['KFQFT'])?IlI1lI++:(console['log'](IiillI+'❌\x20提现失败'+iI1lIi),liIIl=![]);}}i!==i1iIli[II11(0x38d,'4QFc')](iiIiI1[II11(0x339,'Y!ow')],0x1)&&(II11(0x225,'hXs0')==='TOyXs'?await $[II11(0x2de,'lpZo')](i1iIli[II11(0x396,'KbZc')](parseInt,i1iIli['YNeqk'](Math[II11(0x320,'6xs)')]()*0x7d0,0x1388),0xa)):lilIIl['log'](ililIl));}else illIlI=liIiI[II11(0x3b2,'u2z6')][II11(0x301,'tez&')];}}else{const ll11ii=I1llii[II11(0x39a,'T]Xn')](0x0,0x2),liIlii=lilIll['slice'](-0x2),llii1l=l1i111['max'](iIi1l[II11(0x389,'6xs)')](iIi1l[II11(0x21c,'sEvZ')](iliII1,ll11ii[II11(0x239,'Lqo4')]),liIlii[II11(0x210,'k^eI')]),0x0),liIlil='*'[II11(0x1e3,'uIpi')](llii1l);return ll11ii+liIlil+liIlii;}}}}await $[II11(0x212,'C5Ph')](parseInt(i1iIli['DwGDX']($['waitTime'],0x1)+0x1f4,0xa));}else I11iIl[II11(0x2e2,'u2z6')](l1l11l+II11(0x26f,'Qa!8')+IilIil),l1iIi=![];}async function llIIil(ll11il,iI1lIl){const l1ilII=II1i;if(i1iIli['utdsl'](l1ilII(0x333,'Lqo4'),i1iIli['evChn']))i1l1iI[l1ilII(0x319,'wDPj')](liil1l,lI1lii);else try{switch(ll11il){case'wanyiwan_exchange_page':if(iI1lIl['code']==0x0){if(i1iIli[l1ilII(0x363,'mc4x')](i1iIli[l1ilII(0x203,'oa5g')],l1ilII(0x2f2,'F!CM'))){if(iI1lIl['data']&&i1iIli['utdsl'](iI1lIl['data'][l1ilII(0x2e6,'F!CM')],0x0))lliiIi=iI1lIl['data'][l1ilII(0x247,'fhqt')];else{if(i1iIli['bugBa'](i1iIli[l1ilII(0x22a,'uea*')],i1iIli[l1ilII(0x373,'f#HJ')]))II1lii+='['+(lIIii1+0x1)+']'+ll1i1+'['+IIli1i+'奖票]['+(I1iIi1?l1ilII(0x278,'wDPj'):l1ilII(0x205,'uNf8'))+l1ilII(0x392,'hXs0')+lliil1+']\x0a';else{let iIi11=common[l1ilII(0x28d,'u2z6')](iI1lIl[l1ilII(0x33a,'sEvZ')]);console[l1ilII(0x2f0,'4QFc')](IiillI+l1ilII(0x26c,'sEvZ')+iIi11);}}}else il1iIl[l1ilII(0x264,'Lqo4')](iii1ii,il1iIi);}else{let ll11lI=common[l1ilII(0x2a7,'Fea]')](iI1lIl);console[l1ilII(0x228,'O0d8')](IiillI+l1ilII(0x23a,'tez&')+ll11lI);return;}break;case i1iIli['ZQBbJ']:case l1ilII(0x296,'qvJN'):if(i1iIli[l1ilII(0x3a2,'FRfv')](iI1lIl[l1ilII(0x292,'6xs)')],0x0)){if(iI1lIl['data']&&iI1lIl[l1ilII(0x2fd,'er#0')]['bizCode']===0x0){if(l1ilII(0x268,'ci(W')===i1iIli[l1ilII(0x245,'u3$f')]){let {rewardType:llliI1,rewardName:liIII}=iI1lIl[l1ilII(0x34f,'Lqo4')][l1ilII(0x246,'uNf8')];ll1Ii-=i1llii;let llii11=rewardType_table[llliI1]||'';console[l1ilII(0x298,'^lqH')](IiillI+'兑换成功:\x20'+llii11+liIII+l1ilII(0x2a1,'YP[3')+ll1Ii+'奖票'),ili11I[l1ilII(0x2dc,'FRfv')](l1ilII(0x202,'C5Ph')+llii11+liIII);}else lilil[l1ilII(0x38a,'(X0u')](ll1ll+l1ilII(0x348,'uea*')),Illl11=!![];}else{if('LYqiP'!==i1iIli[l1ilII(0x33c,'3ZN[')]){let ll11l1=common[l1ilII(0x2ff,'GlJW')](iI1lIl['data']);console['log'](IiillI+l1ilII(0x374,'4QFc')+ll11l1);}else i1III['log']('❌\x20脚本运行遇到了错误\x0a'+Ii1iIi);}}else{if(i1iIli[l1ilII(0x349,'uD%l')]===i1iIli['ozNdw']){let llliII=common['getErrorMsg'](iI1lIl);console[l1ilII(0x318,'uIpi')](IiillI+'兑换失败:\x20'+llliII);return;}else liiIIi=lil11I[l1ilII(0x2b8,'Fea]')];}break;case i1iIli[l1ilII(0x25b,'6xs)')]:if(i1iIli['QqTNW'](iI1lIl['code'],0x0)){if(iI1lIl['success']===!![])ll1Il=iI1lIl[l1ilII(0x2b1,'%A)b')];else{if('OfewJ'!==l1ilII(0x1ef,'O0d8'))IiiIii[l1ilII(0x3ae,'GF#]')](IIlll+'✅\x20提现成功'),liliI[l1ilII(0x31a,'O0d8')]('成功提现'+ll1lI?.[l1ilII(0x357,'^K(3')]+'💰'),l1iii=![];else{let liIliI=common[l1ilII(0x233,'0qS!')](iI1lIl[l1ilII(0x2a5,'C5Ph')]);console[l1ilII(0x31f,'lpZo')](IiillI+l1ilII(0x3c0,'u3$f')+liIliI);}}}else{if(l1ilII(0x370,'(X0u')===l1ilII(0x315,'Fea]'))illlIl=i11ill[l1ilII(0x299,'6xs)')];else{let iiIiIi=common[l1ilII(0x235,'ex9w')](iI1lIl);console[l1ilII(0x2f0,'4QFc')](IiillI+l1ilII(0x214,'h46D')+iiIiIi);}}break;case i1iIli[l1ilII(0x3b0,'tDtB')]:if(iI1lIl[l1ilII(0x355,'oa5g')]===0x0){if(i1iIli[l1ilII(0x1e0,'[CxF')](l1ilII(0x27a,'FRfv'),'lomRU'))I1ilIi[l1ilII(0x2b7,'KbZc')](IiiiI+l1ilII(0x24f,'tez&')+llIlli);else{if(i1iIli['QqTNW'](iI1lIl['success'],!![]))iiIi11=iI1lIl[l1ilII(0x213,'3ZN[')];else{let IilI=common['getErrorMsg'](iI1lIl[l1ilII(0x251,'xZCM')]);console['log'](IiillI+'提现失败:\x20'+IilI);}}}else{let liIlli=common[l1ilII(0x2f6,'h46D')](iI1lIl);console[l1ilII(0x26a,'sEvZ')](IiillI+l1ilII(0x325,'f#HJ')+liIlli);}break;case l1ilII(0x22e,'wDPj'):if(iI1lIl[l1ilII(0x34b,'6H0p')]===0x0){if(i1iIli[l1ilII(0x2ab,'fhqt')]===i1iIli[l1ilII(0x22d,'f#HJ')]){let Iillll=ill11l[l1ilII(0x388,'uD%l')](I1lIiI);lllili['log'](IliiiI+l1ilII(0x338,'k^eI')+Iillll);}else{if(i1iIli[l1ilII(0x3b6,'^K(3')](iI1lIl[l1ilII(0x220,'oa5g')],!![]))i1iIli[l1ilII(0x35f,'xZCM')](l1ilII(0x294,'YP[3'),i1iIli[l1ilII(0x31b,'KbZc')])?(console[l1ilII(0x35a,'6O1$')]('✅\x20兑换红包成功'),ili11I[l1ilII(0x2db,'6xs)')](l1ilII(0x229,'Fea]'))):(iiillI[l1ilII(0x228,'O0d8')]('✅\x20兑换红包成功'),l1l111[l1ilII(0x3bf,'Fea]')](l1ilII(0x1fc,'IAw^')));else{let III11I=common['getErrorMsg'](iI1lIl[l1ilII(0x2cf,'4QFc')]);console[l1ilII(0x34a,'h46D')](IiillI+'兑换失败:\x20'+III11I);}}}else{if(i1iIli['ZyVsU'](l1ilII(0x2d2,'YP[3'),i1iIli[l1ilII(0x321,'Y!ow')])){let Ilii1=common[l1ilII(0x20d,'k^eI')](iI1lIl);console['log'](IiillI+'兑换失败:\x20'+Ilii1);}else{const ili1I1=iI1lli[l1ilII(0x2dd,'[CxF')]||'',Iill=ll1iI[l1ilII(0x367,'IAw^')]||0x0,ili1II=iI1lll[l1ilII(0x397,'qvJN')]||0x0,liIllI=l1lIll[l1ilII(0x3c3,'ex9w')]||0x0,ll11i=I1l1II['hasStock'];i1iIli[l1ilII(0x29a,'KbZc')](ili1II,0x2)&&(llIliI+='['+i1iIli[l1ilII(0x37f,'6xs)')](I1l1I1,0x1)+']'+ili1I1+'['+liIllI+'奖票]['+(ll11i?l1ilII(0x1ff,'T]Xn'):'无库存')+l1ilII(0x312,'^lqH')+Iill+']\x0a');}}break;}}catch(iI1lI1){console[l1ilII(0x2e4,'C5Ph')](IiillI+l1ilII(0x345,'T]Xn')+ll11il+'\x20请求响应\x20'+(iI1lI1['message']||iI1lI1));}}async function llIIii(I1I1li){const iliIll=II1i,l1i11={'rKtcZ':function(IlI1li,IlI1ll){const ii1II1=iii1II;return i1iIli[ii1II1(0x38b,'T]Xn')](IlI1li,IlI1ll);}};if(i1iIli[iliIll(0x219,'tez&')](i1iIli[iliIll(0x27e,'tDtB')],i1iIli[iliIll(0x2ad,'6H0p')]))l1iil++;else{if($['runEnd'])return;let III111='',liIll1=null,l1llli=null,iI1lII='POST',ll11iI={},l1i1I={};switch(I1I1li){case i1iIli['ESIAo']:III111=i1iIli[iliIll(0x257,'f#HJ')],liIll1={'functionId':I1I1li,'body':JSON[iliIll(0x280,'4QFc')]({'version':0x1}),'rfs':i1iIli[iliIll(0x2c9,'O0d8')],'appid':'signed_wh5','t':Date[iliIll(0x350,'wDPj')](),'client':i1iIli[iliIll(0x34c,'uIpi')],'clientVersion':common[iliIll(0x2f8,'F!CM')]()};break;case iliIll(0x266,'h46D'):III111=iliIll(0x309,'xZCM'),liIll1={'functionId':I1I1li,'body':JSON['stringify']({'assignmentId':iiIi1I,'type':IllIl1,'version':0x1}),'rfs':i1iIli[iliIll(0x36e,'Qa!8')],'appid':i1iIli[iliIll(0x3aa,'(ttG')],'t':Date['now'](),'client':i1iIli[iliIll(0x254,'4QFc')],'clientVersion':common['getLatestAppVersion']()};break;case i1iIli['ZQBbJ']:III111=i1iIli[iliIll(0x259,'KbZc')],liIll1={'functionId':I1I1li,'body':JSON['stringify']({'assignmentId':iiIi1I,'type':IllIl1,'version':0x1}),'rfs':i1iIli[iliIll(0x250,'4QFc')],'appid':iliIll(0x241,'uIpi'),'t':Date[iliIll(0x2fa,'C5Ph')](),'client':i1iIli['iTiWH'],'clientVersion':common[iliIll(0x362,'YP[3')]()};break;case'superRedBagList':l1i1I={'appId':i1iIli['NdbiO'],'functionId':i1iIli['WLRow'],'appid':'activities_platform','clientVersion':common[iliIll(0x1e8,'6xs)')](),'client':iliIll(0x2ef,'mc4x'),'body':{'pageNum':0x1,'pageSize':0x190,'linkId':linkId,'associateLinkId':'','business':business},'version':i1iIli['WyZNl'],'ua':$['UA'],'t':!![]},ll11iI=await H5st[iliIll(0x1e9,'IAw^')](l1i1I),III111=iliIll(0x1f3,'er#0'),liIll1=ll11iI[iliIll(0x237,'[CxF')];break;case i1iIli['DogWK']:l1i1I={'appId':'73bca','functionId':i1iIli['DogWK'],'appid':i1iIli['drrsn'],'clientVersion':common['getLatestAppVersion'](),'client':i1iIli[iliIll(0x344,'T]Xn')],'body':{'linkId':linkId,'businessSource':i1iIli[iliIll(0x211,'F!CM')],'base':ill1II},'version':i1iIli[iliIll(0x31c,'oa5g')],'ua':$['UA'],'t':!![]},ll11iI=await H5st[iliIll(0x2e8,'4QFc')](l1i1I),III111=iliIll(0x2da,'(ttG'),liIll1=ll11iI[iliIll(0x287,'xZCM')];break;case i1iIli[iliIll(0x200,'u2z6')]:l1i1I={'appId':iliIll(0x29d,'%A)b'),'functionId':iliIll(0x1de,'3ZN['),'appid':i1iIli['drrsn'],'clientVersion':common[iliIll(0x3c7,'uD%l')](),'client':iliIll(0x300,'^lqH'),'body':i1llil,'version':iliIll(0x1e4,'YP[3'),'ua':$['UA'],'t':!![]},ll11iI=await H5st[iliIll(0x216,'T]Xn')](l1i1I),III111=i1iIli[iliIll(0x328,'er#0')],liIll1=ll11iI[iliIll(0x377,'oa5g')];break;default:console['log'](IiillI+'❌\x20未知请求\x20'+I1I1li);return;}const l1llll={};if(liIll1){if(i1iIli[iliIll(0x32f,'6O1$')]===i1iIli[iliIll(0x385,'tDtB')])Object[iliIll(0x2ac,'T]Xn')](liIll1,l1llll);else{let lil1l=llI1Il[iliIll(0x30f,'sEvZ')](ii1iii);i11iil['log'](Ill1i+iliIll(0x36a,'^lqH')+lil1l);}}if(l1llli){if(iliIll(0x30e,'uea*')===i1iIli[iliIll(0x284,'YP[3')])Object[iliIll(0x3bb,'O0d8')](l1llli,l1llll);else{if(IlIlli[iliIll(0x288,'IAw^')]===!![])iil1il=ilil1I['data'];else{let Iliii=i11il1['getErrorMsg'](ii1iiI[iliIll(0x2cf,'4QFc')]);lllilI[iliIll(0x2a9,'qvJN')](ilil11+iliIll(0x2d6,'F!CM')+Iliii);}}}const I1I1ll={'url':III111,'method':iI1lII,'headers':{'origin':'https://prodev.m.jd.com','Referer':iliIll(0x2fc,'er#0'),'User-Agent':lliiIl,'Cookie':iI1IiI,'content-type':i1iIli[iliIll(0x390,'oa5g')],'accept':i1iIli[iliIll(0x2cb,'ex9w')],'x-rp-client':i1iIli['oYUNG']},'params':l1llli,'data':liIll1,'timeout':0x7530};if(iI1lII===iliIll(0x334,'u3$f')){if(iliIll(0x2bd,'uNf8')!==iliIll(0x2c0,'tDtB'))delete I1I1ll[iliIll(0x3a4,'[CxF')],delete I1I1ll[iliIll(0x39f,'Yo7y')][i1iIli['BCufo']];else return Iliill;}const lil1i=0x1;let liiiil=0x0,IIIIli=null;while(liiiil<lil1i){if(i1iIli['MtyqX'](liiiil,0x0)){if('qiOWB'===i1iIli[iliIll(0x2f9,'uD%l')])await $[iliIll(0x393,'[CxF')](0x3e8);else{if(i1iIli[iliIll(0x3a9,'4QFc')](li1Ii[iliIll(0x236,'hXs0')],0x4))return IIII1I;else{const I1iI1i=Iii111[iliIll(0x255,'^lqH')](0x0,0x2),l1i1l=l1l1II['slice'](-0x2),I1iI1l=Iil1I1['max'](Ii1iII-I1iI1i[iliIll(0x39d,'ex9w')]-l1i1l[iliIll(0x242,'uNf8')],0x0),illlil='*'['repeat'](I1iI1l);return I1iI1i+illlil+l1i1l;}}}const I1lIIi=await common['request'](I1I1ll);if(!I1lIIi['success']){if(iliIll(0x279,'YP[3')==='ovrJc'){IIIIli=''+IiillI+I1I1li+'\x20请求失败\x20➜\x20'+I1lIIi[iliIll(0x2f5,'hXs0')],liiiil++;continue;}else{const I1lIIl=l1i11[iliIll(0x263,'Qa!8')](lI1Iil,lilIiI);I1lIIl>=0x0&&(IiilIi[iliIll(0x206,'f#HJ')]=I1lIIl);}}if(!I1lIIi[iliIll(0x32b,'0qS!')]){IIIIli=''+IiillI+I1I1li+iliIll(0x2b2,'wDPj'),liiiil++;continue;}await llIIil(I1I1li,I1lIIi[iliIll(0x34e,'O0d8')]);break;}liiiil>=lil1i&&console[iliIll(0x1ec,'tez&')](IIIIli);}}}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)}