/*
临期京豆续命

定时请自行修改，建议手动运行。
请勿频繁跑动，容易风控。

cron:1 1 1 1 * jd_Advent_exchange.js

*/

const $ = new Env('临期京豆续命')
var iｉl='jsjiami.com.v7';const lllili=iii1II;(function(IlIII,ilil1l,illlIi,I1lIii,IiI1I,illlIl,i11ill){return IlIII=IlIII>>0x8,illlIl='hs',i11ill='hs',function(IIIIIi,IIIIIl,I1lIil,IIIl1i,liiII1){const I1lIiI=iii1II;IIIl1i='tfi',illlIl=IIIl1i+illlIl,liiII1='up',i11ill+=liiII1,illlIl=I1lIil(illlIl),i11ill=I1lIil(i11ill),I1lIil=0x0;const IIIl1l=IIIIIi();while(!![]&&--I1lIii+IIIIIl){try{IIIl1i=-parseInt(I1lIiI(0x1e7,'Sl8Q'))/0x1*(parseInt(I1lIiI(0x293,'LrYf'))/0x2)+parseInt(I1lIiI(0x256,'x5*0'))/0x3+-parseInt(I1lIiI(0x2b1,'P4GH'))/0x4+parseInt(I1lIiI(0x21b,'kukm'))/0x5*(-parseInt(I1lIiI(0x29d,'dPqP'))/0x6)+-parseInt(I1lIiI(0x2aa,'P4GH'))/0x7*(parseInt(I1lIiI(0x2c7,'LrYf'))/0x8)+-parseInt(I1lIiI(0x230,'kRns'))/0x9*(-parseInt(I1lIiI(0x2d9,'QjX$'))/0xa)+parseInt(I1lIiI(0x2c4,'Deqk'))/0xb*(parseInt(I1lIiI(0x1e6,'qdF^'))/0xc);}catch(lllll){IIIl1i=I1lIil;}finally{liiII1=IIIl1l[illlIl]();if(IlIII<=I1lIii)I1lIil?IiI1I?IIIl1i=liiII1:IiI1I=liiII1:I1lIil=liiII1;else{if(I1lIil==IiI1I['replace'](/[ntQYVuygArbDRSdepWFB=]/g,'')){if(IIIl1i===IIIIIl){IIIl1l['un'+illlIl](liiII1);break;}IIIl1l[i11ill](liiII1);}}}}}(illlIi,ilil1l,function(i11ili,iil1l1,lllli,iiili1,ill11i,lllill,ill11l){return iil1l1='\x73\x70\x6c\x69\x74',i11ili=arguments[0x0],i11ili=i11ili[iil1l1](''),lllli='\x72\x65\x76\x65\x72\x73\x65',i11ili=i11ili[lllli]('\x76'),iiili1='\x6a\x6f\x69\x6e',(0x16172e,i11ili[iiili1](''));});}(0xc900,0x48e03,Iii11l,0xcb),Iii11l)&&(iｉl=Iii11l);const jdCookie=require(lllili(0x229,'!hBa')),notify=require('./utils/Rebels_sendJDNotify'),common=require(lllili(0x21a,'^2P5')),isNotify=process['env'][lllili(0x2e4,']#ys')]===lllili(0x274,'nkq]');let cookie='';function Iii11l(){const IlIlll=(function(){return[iｉl,'QjsuynjVDiratemidD.YAcropmW.ygbv7dVFQBSR==','B8oqW4bVWPm','msFdJ1C','W4/cOYRdP3O','WRuWWQtdNW','pCoEWPi','nY7cGmk7','W5eed8o+ovDEW63cTgOohmo/','WRxcMJ7dO8kDW71Uoa','xCo+ymkxfq','WQL0CSkqW7CdE8ou','6BQ06k2G5QYr5Q+W5P675As85yAq5O+D','uM3dOaldRG','BarRzCkEjq7cLCo0p0W','W5VcJmolm8kytG','DfhcMCk4W4/dIW3dOmofiCosW5pdRq','b8ogWPzbW6W','emkRW7XTca','W6RcMKZcGxP4WPCuFMNdUwe','iCo+W6BdU8onW5e','a8kvwG','W7dcGmkxW4D6','EmoXWQ3cNCokW6RcOmkmWQKHpG','5lU46lcC5yAL5O+Z','5lQJ5lMw6loV5Bgw5z6EWRlLP7hLHjJOVAlMNj865y6t5OIh6kck5yw/5O6f','WO3dQq/dPIS','pmkCiLCqzCkc','W6pcK8ohn8o0W6dcUCoZW6b4zKesiW','DSkHWRJcVCkoWPBdK8oKga','WOjDwCk+yXi','EGHPzCkcjWxcLSoS','wSkIWRVcRmoLW5m6xZq1nvO','WQGcD0NcGezcW4v7m8o0qmoXWPpdOmkDW6mTExNcOCkhW510nHFcUZTWWQldTCoHbWHwW47dPKJdRq','W54xW6q4A8oBW5CunCoNWPa','xwVdSIBdRCoGySkcASopWR9ucG','AEweT+ApJq','CmkLWRhcQmkqWOFdM8kxALJdKsXV','aCkHWQ3cOSoAqCkK','W5WDdSo6W4ZdR3m','W5hcLmkwW6FcMa','W48TW5uRua','lW/dGCoPWR/cNvVdPSo2m8oWW5pdRCkQ','WRFdGrO','WRVORj3MSOpLP4lOT41K4P2cW70','s8klW4a','u8kwW4z6A2L5WOe','gCk7W4JdRCoOdmobWORdHw5p','tCkaW7HvFhL5WP3cOmoXWQD6WRHpt8kSbuRcMHLAzSoOgwK','W77cG8kVWQdcGq','b8kQogmL','dXVdLYldJW','WQ7dQSkvW4FcUhRdUeanW5pdSa','Emo7WQ/cM8okW4lcSCko','W63cUSkkW5pcU3tcJCoCWOBcOSkztCoGuq','ymkQW4PCqG','6BMr6k2E5Q2M5Q2X5P625AAF5yAj5O+/','WRhcKtNdTCkBW6HQ','W5CaW7m','W6/cK8kXWPy','WRyqW7a3kCk1W6dcQW','pZlcN8oAWP0','W7xcRSkvW4Dg','bq7cQmkBW7u','5B+O5yII56w75yMxiW','bLyBW4FdVCosz8oc','WOjEWQWKCCo2W4yaea','g8kLWRFcPq','a8o4W63dMSk0','W6VcVmkd','WOPRhSk2WRS','tSkkW5nXF319WP8','W6hcI8ochmod','xXmbW63dUCoyrG','WO4cW60Gh8k3W6xcR8kpW6dcRG','umo1CvaGWPSp','bSoLW60','f8o5CeSiWOCFW6xdMmkEW4ylxCoGrJldM8oY','nhOHbSkLiG','5l+N55Mx56sl5yQY5lU05AsoW53cGSoY77+l5lUG5OMl6kof5ywS5O+Y','h8o/W77dTmkW','W4JcPYBdTgaxWOtcIW','WR/dGrpdKa','FSoOW5C','W5hcHfFcN2bIW7RLVytLP5RJGkpKUklKUlhOT5ZLJz4','W4ZcVSkVdSkw','oCknjvqcomoiDWqHptXKW4yWESohWPP0xtjzW73dNCkCWOtdMX3cOWz6vSkqW7FdTaq+W4Xfg8otW5j4qCoRxCo8jmkwW43dKCkT','6zsX6k2MW4u','mxe7bmk2oghdUq','imkmn0O0','gmoJW6NdU8kWWPao','Fc8xW5/dJW'].concat((function(){return['W4tcVmkkW4dcNh/cMmkFWPBcVSkDsq','cXddVe/cPW','uCoXw2e3','o0TshWddLCktWOfqC10','W79Am8kbdSoPWPfmwq','CCoMW6j1WPpdJa4','bCkQWRRcTmod','8lkPImkm','gmoZW7JdRSk8WOayl3zpl3LjfSokWRRdHa','smkNWRhcVSo2vmkLW7JcN8kQWOFcUSoVW79GW5f6pa','zCojW4vzWRu','pw09dSkJb3pdSG','WONdJSkRW4RcRq','6lsV5y6l5PE75Pwe','W4pcMSkXdmkOAbVcJG','W71we8kfoa','4P+xW4RMN6VOGi7MROVNOkRLP5RNK5S0','W5dcRSkYW6Drt8ofCq16WP3cQ8kJuSkqWPZcQGnbW7urWRtdRCood8ojWR/dSYdcLCokk3qZpdzPW4WZCCkJb8kPvWq8o3Wp','vCocW6q','5l6H5BYA5yQz5RcB5P6m56E45yUQ77Y/6lEf6lY1W7C','tSomW6RcKW','aCoIi8ksjW','WPhdOe3cT0qqyc/dIbpdTmo9lq','DSolACku','WRNdHHFdOW8','W63cPmkyW5BcQxxdOW4XW5hdT33cIaS7W5O4tSoXWRmew8kb','WPVdTXtdOvKEWPNcIa','WOldO1tcOG','pCkwnG','W7e1W4pdN3hdR8oTgG','W53cLCkShq','W7pdICosAuHab8kj','WONcHY/dTmk0W65Imq','D8oZW6znWPpdGGRcG2j+WPJdJLb7W65sWOZdJHpdOCkahmkSzuBdKhpdUmotaInTbG','W47cRtK','zJaWW4hdGW','amkRWRK','W4hcH8koWP7cHq','vSoIB003WPazW4FdMmkeW5a','WQn1ySkq','BSkFWRrxbHnCWRHLdG','W5lcS8kOW7bGemklmcvWWPNdP8k6ta','W7JcKCk1oCkN','WRNdGrldMs8PWR4','bmkWWQRcOCoihmoUWPdcLmk3WOZcQSoTW6DCWPv2lrhdNmoiW5RdNWZcVSkH','mfPbhtZdKCkCWOe','W452c8kLgq','lmkXWRRcN8oZW7JcHSkG','W6Phoq','mGFdHSo6','WQ7dQSkzW4hcQa','nIFdLfdcOq','xCo6WPRcRCkDn8oaWP3dSNHy','W6ZcTSkDW4C','WPpdOLtcRHPvzI/dJXhdPG','d8kvtcKAW5zGtcLXduXFW5y','mZRcI8k8W5VcNCkxnCox','imkpkCoyggVdV8o8hmohbq','vWmbW7JdVmoEtW','qbiQW5VdVmox','WQqXWQtdK8o3CSkovLFcNmo6','WR0ECq','BSo9WQ/cNCowW6JcQ8kpWRe','xbC0W4/dVW','uqSAW57dU8on','BaisobNdPmkyWQfF','fCkQW78','W4BcGtNdNKq','W4/cKmoIiCoN','is3dI1NcOW','lJpdGXldJCkgWRxdGY3dRfy/','WP7dRLdcTXSkk2xdHbBdU8oUk8kgnsSRWO84WO3dLmobtdjt','WRdcMY0','s3tdSIi','W6/cTG3dLhy','iZVcNCoL','DCozyW','lG7dHmofWOu','W5BORA3MSABLKiRLU7Wq','j8kZWRtcVmo6','WQKSWRxdNSoGzCkF','dG/cM8ozWQa','ESoBWQFcG8oD','lhaCfCkJi27dSG','W6a/W5ldMhddRmoQdr3dQxe','vmopex9nWODbiWTGAfS','WQGNWQTZq8oWWPa','8y+lOSo0','emkRW6XTf8ofCqq','W6NdK8ouzufvd8kdWPG','W7dcJ8olcCoz','W7pcJ8kGWPFcJtBcRq'].concat((function(){return['WR0yCmoDvSk8WP1ers0bWPm','gCkWnq5VW59X','imknc1eY','x8oPxSkRmq','gCoIWOXEW6S','W7ZdS8ogW4tcMhBcICoHWQVcVCkidSkZhCkYvCoJW70QmSkuW5tcUhPObmohbJzkfWik','e8kwggeu','W77cQmodiSoD','W7xcG8kIWPJcPIxcS8k4','WQrcCSkYW6a','D8oQWRhcSmoC','WRbbj27cMq','W5tcTCkH','44go5O+J56sy44gN6k6f5yE46i2g5yYYCNjbW4nlvW','WRD7B8kb','W4VcKCkIW7Lk','eCouW4L4CgrAWQi','hmk9W7f8','WQTYBCk+W6G','W5G3s8o5W7JdSa','W4W7W5CcAG','WQiqWQj3rW','i8oDWPLEW7u','W7pcOCkrW5e','WO8mW7i','WRyaWPRdQ8oS','odxcKW','eSocWRXYW6q','W7TifCksiG','5Ood5P685P+VWQ/LP7ZLHABMLP3OV4JMNytKU4pOSiq','uWCbW4JdVq','nCovWOvEW7nDW6X1E8kCWRu','omoiWPrtW6rkW70','WQa6WQHPumoYWPDoWQxcPdu','mJpcMSoWWONcVSk5','W5xcJmoidW','5lYG5B+J5yQt5Rks5P2m56At5yI177+F6lE/6l6SWOW','5lMp6lcL5yEe5OYN','WOyhWRNdSSoF','aIJdGSogWQC','baldUmoCWRW','WObtrmknza','nmkbiu0dz8kfpqKGpG','oHddNrtdIq','osNcKW','cmkGWPZcQCoQ','EmoIW7Te','CwhdMCoHWP8','qGCBW4/dUSou','D37dGuJcJXVdKb8','W7tcMCkCW69K','W4BcM8kI','aGZcSCo7WRm','iCoDWRfgkWG','W63dMrVdPX0/WPm','WQD/CSk2W78ECCorF1OIW53dO8km','nCk4vGKE','ka3dNZhdVW','jCo/WQDDW47dNvNcIZS','nSkSW5TGhq','WRpcGt7dGmkwW65O','faBdNcpdJa','W5a0W4FdG0ZdQmoLdq','W7xdK8ooAv1b','gs3cP3lcR8k3rmkdyCotWOn9','xCoZW6bZWO0','WQ3cNCkNWQhcVZpcNq','WO0NWRDsya','ddhdGHpdHSkC','zwNdH8kGW5hdOSkiWPCSW4XStq','WRmSW4yr','oCkKj8o3kW','W41kfSk6iq','vSoOBuS3','W6JcISozpmoFW6BcUCoPW4XVEaCyA1NcKgFcI8kAlaf2WOS2CmkvW7/cTCkEWPW2jSkY','FSoQWQ/cSSor','dCkQW4T8aSoEFG8','W4tcQXtcIqnKBq/dGa','W6COW4BdIa','adJcH8oiWPi','f8oCWRDqW7q','jmorWQPs','WO5rtSkUDqugW4FcKwiA','cr/cGSkgW4e','W4FcQbpdTvXOzJldRaFdTG','jdFcU8kUW7S','WRVJGAJKU5hKUPxOTOVLJB8','bSodW6VdTSkG','pSknouedCq'];}()));}()));}());Iii11l=function(){return IlIlll;};return Iii11l();};const cookiesArr=Object[lllili(0x236,'nkq]')](jdCookie)['map'](lI11I1=>jdCookie[lI11I1])['filter'](l1il11=>l1il11);!cookiesArr[0x0]&&($[lllili(0x24d,'xNkZ')]($[lllili(0x218,'xNkZ')],lllili(0x26a,')5zc')),process[lllili(0x26e,'G1tl')](0x1));function iii1II(_0x5a202b,_0x35d716){const _0x187a27=Iii11l();return iii1II=function(_0x4e0e2e,_0x496744){_0x4e0e2e=_0x4e0e2e-0x1d6;let _0x8aaaea=_0x187a27[_0x4e0e2e];if(iii1II['mgLvBz']===undefined){var _0x60ca7b=function(_0x42fba7){const _0x593eb7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x12282c='',_0x22f760='';for(let _0x5b0503=0x0,_0xa13a61,_0x47499b,_0x241eae=0x0;_0x47499b=_0x42fba7['charAt'](_0x241eae++);~_0x47499b&&(_0xa13a61=_0x5b0503%0x4?_0xa13a61*0x40+_0x47499b:_0x47499b,_0x5b0503++%0x4)?_0x12282c+=String['fromCharCode'](0xff&_0xa13a61>>(-0x2*_0x5b0503&0x6)):0x0){_0x47499b=_0x593eb7['indexOf'](_0x47499b);}for(let _0x209037=0x0,_0x583400=_0x12282c['length'];_0x209037<_0x583400;_0x209037++){_0x22f760+='%'+('00'+_0x12282c['charCodeAt'](_0x209037)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22f760);};const _0x438854=function(_0x52c9e8,_0x5bd868){let _0x449997=[],_0x351bda=0x0,_0x294bff,_0x40d1bc='';_0x52c9e8=_0x60ca7b(_0x52c9e8);let _0x2b9665;for(_0x2b9665=0x0;_0x2b9665<0x100;_0x2b9665++){_0x449997[_0x2b9665]=_0x2b9665;}for(_0x2b9665=0x0;_0x2b9665<0x100;_0x2b9665++){_0x351bda=(_0x351bda+_0x449997[_0x2b9665]+_0x5bd868['charCodeAt'](_0x2b9665%_0x5bd868['length']))%0x100,_0x294bff=_0x449997[_0x2b9665],_0x449997[_0x2b9665]=_0x449997[_0x351bda],_0x449997[_0x351bda]=_0x294bff;}_0x2b9665=0x0,_0x351bda=0x0;for(let _0x3b7441=0x0;_0x3b7441<_0x52c9e8['length'];_0x3b7441++){_0x2b9665=(_0x2b9665+0x1)%0x100,_0x351bda=(_0x351bda+_0x449997[_0x2b9665])%0x100,_0x294bff=_0x449997[_0x2b9665],_0x449997[_0x2b9665]=_0x449997[_0x351bda],_0x449997[_0x351bda]=_0x294bff,_0x40d1bc+=String['fromCharCode'](_0x52c9e8['charCodeAt'](_0x3b7441)^_0x449997[(_0x449997[_0x2b9665]+_0x449997[_0x351bda])%0x100]);}return _0x40d1bc;};iii1II['JYUVMz']=_0x438854,_0x5a202b=arguments,iii1II['mgLvBz']=!![];}const _0x712283=_0x187a27[0x0],_0x11409e=_0x4e0e2e+_0x712283,_0x4a7ecc=_0x5a202b[_0x11409e];return!_0x4a7ecc?(iii1II['bLGSbA']===undefined&&(iii1II['bLGSbA']=!![]),_0x8aaaea=iii1II['JYUVMz'](_0x8aaaea,_0x496744),_0x5a202b[_0x11409e]=_0x8aaaea):_0x8aaaea=_0x4a7ecc,_0x8aaaea;},iii1II(_0x5a202b,_0x35d716);}!(async()=>{const IliiiI=lllili,IiI1={'oSVzd':function(liI,illIli){return liI(illIli);},'tTujc':IliiiI(0x23c,'qdF^'),'tBAzI':function(l11i1l){return l11i1l();},'LCZxF':function(lIII11,IiilI){return lIII11+IiilI;}};notify[IliiiI(0x2c8,'QjX$')]({'title':$[IliiiI(0x28b,'j!sX')]});for(let ii1I11=0x0;ii1I11<cookiesArr[IliiiI(0x1f3,')HK8')];ii1I11++){$[IliiiI(0x2c6,'G1tl')]=ii1I11+0x1,cookie=cookiesArr[ii1I11],common['setCookie'](cookie),$[IliiiI(0x221,'$l3c')]=IiI1['oSVzd'](decodeURIComponent,common[IliiiI(0x294,'Ka$y')](cookie,IiI1['tTujc'])),$['UA']=common['genUA']($[IliiiI(0x1e1,'SoEV')]),$[IliiiI(0x2db,'8QL9')]=notify[IliiiI(0x270,'dWrY')]($['index'],$[IliiiI(0x29b,'rKJb')]),$['nickName']='',console['log'](IliiiI(0x1f9,'LrYf')+$['index']+'】'+($[IliiiI(0x22e,')5zc')]||$['UserName'])+IliiiI(0x25e,'V]&%')),await IiI1[IliiiI(0x2dd,'Sl8Q')](Main),common['unsetCookie']();if($['runEnd'])break;await $[IliiiI(0x21f,'ZI2x')](0x3e8);}isNotify&&notify['getMessage']()&&(notify[IliiiI(0x2d7,'dPqP')](IiI1[IliiiI(0x28f,'oZOl')](notify['content'],'\x0a')),await notify['push']());})()[lllili(0x27b,'qdF^')](liIi1=>$[lllili(0x2c3,'lC2e')](liIi1))[lllili(0x27f,'zfCH')](()=>$[lllili(0x1f7,'LrYf')]());async function Main(){const Ill11=lllili,lI11II={'lqAdj':function(llIIll,IillIi){return llIIll*IillIi;},'khkKx':function(lii,IllI1i){return lii===IllI1i;},'ZUoHE':Ill11(0x29a,'EAQ7'),'fJjgY':function(i11I1l,lil){return i11I1l(lil);},'RepPh':'jingBeanDetail','pFntY':function(IllI1l,i11I1i){return IllI1l<i11I1i;},'sJSxO':function(IillIl,llliil){return IillIl<=llliil;},'sKdnh':Ill11(0x297,'j!sX'),'Wkcvm':Ill11(0x23e,'Q7gL'),'GNmHZ':'transfer','einSi':function(liIl1,II1lll){return liIl1(II1lll);},'BoIEe':Ill11(0x246,'%6OL'),'GqBgu':Ill11(0x214,'GP#3')},l1llI1=await common['getLoginStatus'](cookie);if(!l1llI1&&lI11II[Ill11(0x24e,'Deqk')](typeof l1llI1,Ill11(0x22c,'LrYf'))){if(lI11II[Ill11(0x1e2,'zfCH')](Ill11(0x216,'tC@o'),lI11II[Ill11(0x252,'zfCH')])){console['log'](Ill11(0x20e,'EBzZ'));return;}else return(lI11II[Ill11(0x240,'qdF^')](0x1+I1iIi1['random'](),0x10000)|0x0)[Ill11(0x254,')HK8')](0x10)['substring'](0x1);}try{$[Ill11(0x1d9,'^2P5')]=0x1d4c,await lI11II[Ill11(0x1fa,'ZI2x')](sendRequest,lI11II[Ill11(0x22b,'ZI2x')]),$[Ill11(0x204,')5zc')]=$[Ill11(0x241,'qdF^')]||0x0,await $[Ill11(0x2bb,'qRyZ')](0x3e8);if($[Ill11(0x27c,'x@06')]){if(lI11II['pFntY']($[Ill11(0x23d,'GP#3')],$[Ill11(0x23a,'KXo7')])){console['log']('您有'+$[Ill11(0x255,'rKJb')]+Ill11(0x2cd,'U*Hw'));if(lI11II[Ill11(0x20b,'j!sX')]($[Ill11(0x227,'V]&%')],0x64)){const ii1I1I=lI11II[Ill11(0x26c,'oZOl')][Ill11(0x273,'x@06')]('|');let IiIl=0x0;while(!![]){switch(ii1I1I[IiIl++]){case'0':await $[Ill11(0x1e8,'dqhf')](0x3e8);continue;case'1':$[Ill11(0x2c2,'EBzZ')]=lI11II[Ill11(0x2c5,'x@06')];continue;case'2':await lI11II['fJjgY'](sendRequest,lI11II[Ill11(0x1dc,']#ys')]);continue;case'3':await $[Ill11(0x232,'Deqk')](0xbb8);continue;case'4':$['type']='1';continue;}break;}}else await $[Ill11(0x2b7,'%6OL')](0xbb8),$[Ill11(0x21c,'P4GH')]='1',await sendRequest(lI11II[Ill11(0x283,'GP#3')]),await $[Ill11(0x215,'zm&Q')](0x3e8);}else console[Ill11(0x275,'SoEV')](Ill11(0x2c0,'dqhf')+$['maxexchange']+'豆子');}else console[Ill11(0x2e1,']#ys')](Ill11(0x27a,'8wqh'));await lI11II[Ill11(0x1d6,'tQNy')](sendRequest,'userAccount'),await $[Ill11(0x26b,'Ka$y')](0xbb8);if($[Ill11(0x259,'G1tl')]){if($[Ill11(0x1fd,')HK8')]<$[Ill11(0x1ef,'SoEV')])console[Ill11(0x269,'oZOl')]('您有'+$[Ill11(0x2bd,'$l3c')]+'个积分,去执行兑换'),$[Ill11(0x1ec,']#ys')]<0x64?console[Ill11(0x290,'ZI2x')](Ill11(0x1f4,'nkq]')):(await $[Ill11(0x24c,'zfCH')](0xbb8),$[Ill11(0x1e0,'tQNy')]='2',$['expirebeans']=$['integral'],await sendRequest(lI11II[Ill11(0x284,'Deqk')]));else{if(lI11II[Ill11(0x26f,'Ka$y')](lI11II[Ill11(0x278,'x@06')],lI11II[Ill11(0x263,'fpX(')]))console[Ill11(0x1df,'Sl8Q')](Ill11(0x1dd,'U*Hw')+$[Ill11(0x2af,'9@[s')]+'豆子');else{let iI1ll1=i1li?.[Ill11(0x29c,'q@&1')]?.[Ill11(0x2d0,'U*Hw')][Ill11(0x1f5,'8wqh')][Ill11(0x2b8,'kukm')](/您有(\d+)个京豆将在7天内过期/);iI1ll1?i1ll[Ill11(0x292,'!hBa')]=iI1ll1[0x1]:i1l1lI['amount']=0x0;}}}else console['log'](lI11II[Ill11(0x2ad,'x@06')]);}catch(IlI1Il){console[Ill11(0x225,'dqhf')](IlI1Il[Ill11(0x257,'yi)e')]);}}async function handleResponse(l1il1l,liIil){const liiIII=lllili,IllI1I={'bhjVE':liiIII(0x201,'nkq]'),'IPkIn':liiIII(0x22a,'oZOl'),'gRzwe':function(liIii,II1ll1){return liIii===II1ll1;},'wTCSs':liiIII(0x25f,'fpX('),'ZmOmm':liiIII(0x235,'#kCO'),'eFSwz':'exGGE','zykoa':liiIII(0x245,'U*Hw'),'yubYo':function(IlI1Ii,i11I1I){return IlI1Ii!==i11I1I;},'qxRmX':liiIII(0x29e,'j!sX'),'IOyij':liiIII(0x2e2,']#ys'),'GCZZn':function(l1il1i,ll1){return l1il1i==ll1;},'VVEjV':liiIII(0x2a4,'KXo7'),'LIbtZ':liiIII(0x1e9,'8wqh'),'ZfIux':liiIII(0x2ac,'zfCH')};try{switch(l1il1l){case IllI1I[liiIII(0x2b0,'qRyZ')]:if(liIil?.[liiIII(0x2b5,'fpX(')]?.[liiIII(0x2de,'Deqk')]){let iI1llI=liIil?.['others']?.['jingBeanExpire']['title'][liiIII(0x233,'^2P5')](/您有(\d+)个京豆将在7天内过期/);iI1llI?IllI1I[liiIII(0x253,'kRns')](liiIII(0x2c1,'dPqP'),IllI1I[liiIII(0x271,'Sl8Q')])?lI1IiI[liiIII(0x213,'zm&Q')]('❓'+i1lI+'\x20'+IlI1l[liiIII(0x2d3,'EBzZ')](lilIil)):$[liiIII(0x2d2,'9@[s')]=iI1llI[0x1]:$[liiIII(0x2a1,'EAQ7')]=0x0;}else console[liiIII(0x249,'$l3c')]('❓'+l1il1l+'\x20'+JSON[liiIII(0x23f,'kRns')](liIil));break;case IllI1I[liiIII(0x226,'tQNy')]:liIil[liiIII(0x228,'Ka$y')]==0x1?IllI1I[liiIII(0x272,'yi)e')](IllI1I['eFSwz'],IllI1I['zykoa'])?I1l1Ii['headers']=I1i11i:($[liiIII(0x20f,'ZI2x')]=liIil?.[liiIII(0x1f0,'V]&%')]?.[liiIII(0x220,'q@&1')]||0x0,console[liiIII(0x243,'G1tl')](liiIII(0x1e5,'Sl8Q')+$[liiIII(0x2bf,'Ka$y')])):IllI1I[liiIII(0x25b,'U*Hw')](IllI1I[liiIII(0x210,'Q7gL')],liiIII(0x288,'EAQ7'))?console[liiIII(0x223,'kukm')]('错误:'+liIil['errorMsg']):(delete I11iI1[liiIII(0x2ab,'rKJb')],delete l1lIil[liiIII(0x27d,'x@06')][IllI1I[liiIII(0x219,'LrYf')]]);break;case IllI1I[liiIII(0x261,'x@06')]:IllI1I[liiIII(0x260,'xNkZ')](liIil[liiIII(0x24a,'dPqP')],0x1)?IllI1I[liiIII(0x291,'zfCH')]!==IllI1I[liiIII(0x224,'qdF^')]?i1l1I[liiIII(0x292,'!hBa')]=0x0:l1il1l==0x1?console['log'](liiIII(0x2cc,'zfCH')+liIil[liiIII(0x1f1,'8wqh')]+',兑换'+$[liiIII(0x287,'fpX(')]+'积分'):(console[liiIII(0x1df,'Sl8Q')]('积分兑换'+liIil[liiIII(0x289,'zfCH')]+',兑换'+$[liiIII(0x237,'P4GH')]+'京豆'),$[liiIII(0x1de,'$l3c')][liiIII(0x231,'Q7gL')](liiIII(0x2b3,'8QL9')+$[liiIII(0x207,'dqhf')]+'】'+($[liiIII(0x265,'tQNy')]||$['UserName'])+'\x0a成功兑换'+$[liiIII(0x2cb,'kRns')]+'京豆！')):console[liiIII(0x277,'zfCH')]('兑换'+liIil[liiIII(0x1da,'kRns')]);break;}}catch(i11I11){IllI1I[liiIII(0x200,'qdF^')]!==IllI1I['ZfIux']?console[liiIII(0x2df,'LrYf')](liiIII(0x211,'tQNy')+l1il1l+liiIII(0x24f,'P4GH')+(i11I11['message']||i11I11)):iIIl1l[liiIII(0x269,'oZOl')](liiIII(0x1fc,'#kCO')+llIli1[liiIII(0x20c,')HK8')]);}}async function sendRequest(ii1I1l){const li1i11=lllili,ii1I1i={'PDtGg':li1i11(0x281,'!hBa'),'VGrSa':li1i11(0x1db,'nkq]'),'bkDEr':'userAccount','tbFNY':li1i11(0x21e,'rKJb'),'gfppq':li1i11(0x20a,'dqhf'),'ewkgx':function(l1lIiI){return l1lIiI();},'DccgO':'api.m.jd.com','dxRaT':'lop-proxy.jd.com','HeoRB':li1i11(0x1f6,'kukm'),'MVZlc':'{\x22appid\x22:158,\x22ticket_type\x22:\x22m\x22}','HZQPX':'XMLHttpRequest','dXtGp':li1i11(0x238,'x5*0'),'JEFhm':li1i11(0x222,'j!sX'),'DQLgs':'application/json,\x20text/plain,\x20*/*','VSiGT':li1i11(0x248,'P4GH'),'mrAtG':li1i11(0x22d,'dqhf'),'jclDd':li1i11(0x217,'P4GH'),'EAATZ':'zh-CN,zh;q=0.9,th-CN;q=0.8,th;q=0.7,vi-CN;q=0.6,vi;q=0.5,en-US;q=0.4,en;q=0.3','ccrFi':function(llliiI,IilIiI){return llliiI===IilIiI;},'BXJMy':li1i11(0x247,'EAQ7'),'hqkLu':li1i11(0x2b4,'8wqh'),'OiChm':function(i1i1I1,IlII1){return i1i1I1<IlII1;},'bGzDg':function(IiI11,lli){return IiI11===lli;},'ddBxQ':function(liIlI,lll,llli1){return liIlI(lll,llli1);},'rmBYN':function(iIli1i,iI1lii){return iIli1i>=iI1lii;}};if($['runEnd']||$[li1i11(0x299,'$l3c')])return;let llI='',llliI={},iI1li1=li1i11(0x2a3,'SoEV');switch(ii1I1l){case ii1I1i[li1i11(0x2ce,'LrYf')]:bodyStr=li1i11(0x262,'nkq]'),sign=await common[li1i11(0x23b,'qdF^')](ii1I1i[li1i11(0x2dc,'nkq]')],JSON[li1i11(0x234,'%6OL')](bodyStr)),llI='https://api.m.jd.com/client.action?functionId=jingBeanDetail',llliI=sign;break;case ii1I1i[li1i11(0x203,'V]&%')]:bodyStr=[{'pin':li1i11(0x1f2,'V]&%')}],llI=li1i11(0x1fb,'fpX('),llliI=JSON[li1i11(0x205,'Q7gL')](bodyStr);break;case ii1I1i['tbFNY']:bodyStr=[{'pin':ii1I1i['gfppq'],'businessNo':ii1I1i['ewkgx'](guid),'type':$[li1i11(0x2b9,'GP#3')],'transferNumber':$[li1i11(0x2d6,'Sl8Q')],'title':'京豆兑换物流积分'}],llI=li1i11(0x212,'oZOl'),llliI=JSON[li1i11(0x25a,'q@&1')](bodyStr);break;default:console[li1i11(0x1ea,'nkq]')]('❌\x20未知请求\x20'+ii1I1l);return;}headers={'User-Agent':$['UA'],'Host':ii1I1i['DccgO'],'Content-Type':li1i11(0x2a7,'U*Hw'),'Cookie':cookie};const lllii1={'url':llI,'method':iI1li1,'headers':{'Host':ii1I1i[li1i11(0x2b2,'qRyZ')],'app-key':ii1I1i[li1i11(0x2a0,'yi)e')],'access':'H5','appparams':ii1I1i[li1i11(0x202,'%6OL')],'x-requested-with':ii1I1i[li1i11(0x2ca,'oZOl')],'lop-dn':ii1I1i[li1i11(0x266,'Ka$y')],'biz-type':li1i11(0x209,'8wqh'),'source-client':'2','sdkversion':li1i11(0x1eb,'dWrY'),'user-agent':$['UA'],'screen':li1i11(0x2d1,'QjX$'),'content-type':ii1I1i[li1i11(0x20d,'^2P5')],'clientinfo':li1i11(0x2d5,'HrSQ'),'accept':ii1I1i['DQLgs'],'jexpress-report-time':new Date()[li1i11(0x206,'j!sX')](),'forcebot':'0','version':li1i11(0x28c,'qRyZ'),'origin':ii1I1i[li1i11(0x1d7,'fpX(')],'referer':ii1I1i['mrAtG'],'accept-encoding':ii1I1i[li1i11(0x267,'kRns')],'accept-language':ii1I1i[li1i11(0x1e4,'qRyZ')],'Cookie':cookie},'data':llliI,'timeout':0x7530};ii1I1i[li1i11(0x286,'9@[s')](iI1li1,li1i11(0x1f8,'zm&Q'))&&(delete lllii1[li1i11(0x280,'lC2e')],delete lllii1[li1i11(0x25c,'tQNy')][ii1I1i[li1i11(0x22f,'Q7gL')]]);ii1I1i[li1i11(0x268,'HrSQ')](ii1I1l,ii1I1i[li1i11(0x2ce,'LrYf')])&&(ii1I1i[li1i11(0x2a8,'kRns')](ii1I1i['hqkLu'],ii1I1i[li1i11(0x1ed,'U*Hw')])?lllii1[li1i11(0x251,'GP#3')]=headers:II11I1[li1i11(0x223,'kukm')](li1i11(0x282,'SoEV')+Iii11I[li1i11(0x2ba,'x@06')]+li1i11(0x2d8,'Deqk')+Iil1II[li1i11(0x27e,'yi)e')]+'积分'));const liIli=0x1;let liIll=0x0,IilIi1=null,iI1liI=![];while(ii1I1i[li1i11(0x298,'G1tl')](liIll,liIli)){if(ii1I1i[li1i11(0x1d8,'EAQ7')](li1i11(0x2b6,'j!sX'),li1i11(0x296,'EAQ7')))i1ii['log'](ii1I1i[li1i11(0x295,'x5*0')]);else{liIll>0x0&&await $['wait'](0x3e8);const l1lIi1=await common['request'](lllii1);if(!l1lIi1[li1i11(0x1ff,'8wqh')]){IilIi1=li1i11(0x208,'lC2e')+ii1I1l+li1i11(0x2e0,'tQNy')+l1lIi1[li1i11(0x2a6,'V]&%')],liIll++;continue;}if(!l1lIi1?.[li1i11(0x2ae,'!hBa')]){IilIi1=li1i11(0x258,'GP#3')+ii1I1l+'\x20请求失败\x20➜\x20无响应数据',liIll++;continue;}ii1I1i[li1i11(0x28a,'dqhf')](handleResponse,ii1I1l,l1lIi1['data']),iI1liI=![];break;}}ii1I1i['rmBYN'](liIll,liIli)&&(console[li1i11(0x21d,'fpX(')](IilIi1),iI1liI&&($[li1i11(0x1ee,'qdF^')]=!![],$[li1i11(0x2cf,'fpX(')]&&$[li1i11(0x2da,'dqhf')][li1i11(0x2c9,'x5*0')](IilIi1)));}function guid(){const iI11I1=lllili,iIli1l={'wfTzB':function(liiIIl,iil1iI){return liiIIl!==iil1iI;},'wINQi':'BugIX','KwjmA':iI11I1(0x264,'U*Hw'),'ETdfJ':function(IlIllI,il1i1I){return IlIllI+il1i1I;},'abPcn':function(lI1li1,iI11II){return lI1li1+iI11II;},'dCgZV':function(iIII1I,ilil1i){return iIII1I+ilil1i;},'MhEwj':function(IlIIi,IiI1l){return IlIIi+IiI1l;},'dbCbR':function(illlII,iIII11){return illlII+iIII11;},'qufnE':function(IiI1i,llll1){return IiI1i+llll1;},'MtSPd':function(lil11l){return lil11l();},'AdWRA':function(i1i1Il){return i1i1Il();},'fDlSm':function(I1lIl1){return I1lIl1();}};function i1i1II(){const il1i1l=iI11I1;if(iIli1l[il1i1l(0x279,'Q7gL')](iIli1l[il1i1l(0x276,'GP#3')],iIli1l[il1i1l(0x250,'dqhf')]))return(iIli1l['ETdfJ'](0x1,Math[il1i1l(0x28d,'qdF^')]())*0x10000|0x0)[il1i1l(0x2a9,'G1tl')](0x10)[il1i1l(0x239,'qRyZ')](0x1);else{IiilI1['log']('账号无效');return;}}return iIli1l['abPcn'](iIli1l[iI11I1(0x2be,'xNkZ')](iIli1l[iI11I1(0x244,'kukm')](iIli1l['MhEwj'](iIli1l['dbCbR'](iIli1l[iI11I1(0x1fe,'fpX(')](iIli1l[iI11I1(0x1e3,'oZOl')](i1i1II),i1i1II()),'-')+iIli1l[iI11I1(0x2a5,'Q7gL')](i1i1II)+'-',iIli1l['fDlSm'](i1i1II))+'-',i1i1II()),'-')+i1i1II()+iIli1l[iI11I1(0x285,'Deqk')](i1i1II),iIli1l[iI11I1(0x24b,'kukm')](i1i1II));}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) }
