/* 活动名称:服饰美妆签到 环境变量:jd_clothing_beauty_interval // 自定义运行间隔时长(整数,单位毫秒),默认1500 jd_clothing_beauty_notify // 是否推送通知(true/false),默认不推送 jd_clothing_beauty_pinFilter // 账号pin过滤,多个用@进行分割 定时随机 */ const $ = new Env('服饰美妆签到') var iil='jsjiami.com.v7';const ill11l=iii1II;(function(il1i11,IlIll1,IlIII,ilil1l,illlIi,I1lIii,IiI1I){return il1i11=il1i11>>0x9,I1lIii='hs',IiI1I='hs',function(illlIl,i11ill,IIIIIi,IIIIIl,I1lIil){const lllill=iii1II;IIIIIl='tfi',I1lIii=IIIIIl+I1lIii,I1lIil='up',IiI1I+=I1lIil,I1lIii=IIIIIi(I1lIii),IiI1I=IIIIIi(IiI1I),IIIIIi=0x0;const IIIl1i=illlIl();while(!![]&&--ilil1l+i11ill){try{IIIIIl=-parseInt(lllill(0x1c8,'%Y8%'))/0x1+-parseInt(lllill(0x1e7,'*(5V'))/0x2*(parseInt(lllill(0x1b8,'KkLV'))/0x3)+-parseInt(lllill(0x18c,'U83g'))/0x4*(-parseInt(lllill(0x23f,'lImw'))/0x5)+parseInt(lllill(0x219,'FTWW'))/0x6*(parseInt(lllill(0x192,'Wbxn'))/0x7)+-parseInt(lllill(0x1c0,'AEa6'))/0x8*(parseInt(lllill(0x246,'#J[m'))/0x9)+parseInt(lllill(0x21d,'aEj('))/0xa*(-parseInt(lllill(0x1af,'h7f1'))/0xb)+parseInt(lllill(0x1e8,'h7f1'))/0xc*(parseInt(lllill(0x200,'aEj('))/0xd);}catch(liiII1){IIIIIl=IIIIIi;}finally{I1lIil=IIIl1i[I1lIii]();if(il1i11<=ilil1l)IIIIIi?illlIi?IIIIIl=I1lIil:illlIi=I1lIil:IIIIIi=I1lIil;else{if(IIIIIi==illlIi['replace'](/[tbKENLGhDHgSRVxyuPUT=]/g,'')){if(IIIIIl===i11ill){IIIl1i['un'+I1lIii](I1lIil);break;}IIIl1i[IiI1I](I1lIil);}}}}}(IlIII,IlIll1,function(IIIl1l,lllll,i11ili,iil1l1,lllli,iiili1,ill11i){return lllll='\x73\x70\x6c\x69\x74',IIIl1l=arguments[0x0],IIIl1l=IIIl1l[lllll](''),i11ili=`\x72\x65\x76\x65\x72\x73\x65`,IIIl1l=IIIl1l[i11ili]('\x76'),iil1l1=`\x6a\x6f\x69\x6e`,(0x1731cd,IIIl1l[iil1l1](''));});}(0x18600,0xe2124,Iii11l,0xc5),Iii11l)&&(iil=`\x6c2`);const jdCookie=require(ill11l(0x1ff,'aGcN')),notify=require(ill11l(0x1c9,'Yejg')),common=require(ill11l(0x1b4,'02pP')),{H5st}=require(ill11l(0x20d,'rQbJ'));let taskThreads=process[ill11l(0x1ec,'q4u2')][ill11l(0x193,'!a%H')]||'1';const runInterval=process['env'][ill11l(0x178,'!a%H')]||'1500',isNotify=(process[ill11l(0x1ec,'q4u2')][ill11l(0x185,'rQbJ')]||process[ill11l(0x1b3,'%Y8%')][ill11l(0x1e5,'M7O7')])==='true',pinFilter=(process[ill11l(0x17e,'s1X]')]['jd_clothing_beauty_pinFilter']||'')[ill11l(0x224,'G1hK')]('@'),maxThreads=0x3;function iii1II(_0x339b75,_0x14b3fb){const _0x2079d8=Iii11l();return iii1II=function(_0x101e4c,_0x33f66c){_0x101e4c=_0x101e4c-0x170;let _0x5bd061=_0x2079d8[_0x101e4c];if(iii1II['ihsDzd']===undefined){var _0x146387=function(_0x39cdde){const _0x33e19b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ec8ca='',_0x8de70a='';for(let _0x1dbdc4=0x0,_0x15ad1d,_0x278adc,_0x92613=0x0;_0x278adc=_0x39cdde['charAt'](_0x92613++);~_0x278adc&&(_0x15ad1d=_0x1dbdc4%0x4?_0x15ad1d*0x40+_0x278adc:_0x278adc,_0x1dbdc4++%0x4)?_0x1ec8ca+=String['fromCharCode'](0xff&_0x15ad1d>>(-0x2*_0x1dbdc4&0x6)):0x0){_0x278adc=_0x33e19b['indexOf'](_0x278adc);}for(let _0x4d5963=0x0,_0x253a7d=_0x1ec8ca['length'];_0x4d5963<_0x253a7d;_0x4d5963++){_0x8de70a+='%'+('00'+_0x1ec8ca['charCodeAt'](_0x4d5963)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8de70a);};const _0x376029=function(_0x4239fc,_0x4e65f9){let _0x4a672e=[],_0x1c6003=0x0,_0x12ba00,_0x93a050='';_0x4239fc=_0x146387(_0x4239fc);let _0x483e50;for(_0x483e50=0x0;_0x483e50<0x100;_0x483e50++){_0x4a672e[_0x483e50]=_0x483e50;}for(_0x483e50=0x0;_0x483e50<0x100;_0x483e50++){_0x1c6003=(_0x1c6003+_0x4a672e[_0x483e50]+_0x4e65f9['charCodeAt'](_0x483e50%_0x4e65f9['length']))%0x100,_0x12ba00=_0x4a672e[_0x483e50],_0x4a672e[_0x483e50]=_0x4a672e[_0x1c6003],_0x4a672e[_0x1c6003]=_0x12ba00;}_0x483e50=0x0,_0x1c6003=0x0;for(let _0x2ec6f1=0x0;_0x2ec6f1<_0x4239fc['length'];_0x2ec6f1++){_0x483e50=(_0x483e50+0x1)%0x100,_0x1c6003=(_0x1c6003+_0x4a672e[_0x483e50])%0x100,_0x12ba00=_0x4a672e[_0x483e50],_0x4a672e[_0x483e50]=_0x4a672e[_0x1c6003],_0x4a672e[_0x1c6003]=_0x12ba00,_0x93a050+=String['fromCharCode'](_0x4239fc['charCodeAt'](_0x2ec6f1)^_0x4a672e[(_0x4a672e[_0x483e50]+_0x4a672e[_0x1c6003])%0x100]);}return _0x93a050;};iii1II['cVwtoQ']=_0x376029,_0x339b75=arguments,iii1II['ihsDzd']=!![];}const _0x2a1a48=_0x2079d8[0x0],_0x4ca16c=_0x101e4c+_0x2a1a48,_0x524c85=_0x339b75[_0x4ca16c];return!_0x524c85?(iii1II['dsEQhh']===undefined&&(iii1II['dsEQhh']=!![]),_0x5bd061=iii1II['cVwtoQ'](_0x5bd061,_0x33f66c),_0x339b75[_0x4ca16c]=_0x5bd061):_0x5bd061=_0x524c85,_0x5bd061;},iii1II(_0x339b75,_0x14b3fb);}let cookiesArr=Object['keys'](jdCookie)[ill11l(0x233,'aGcN')](Iiiii=>jdCookie[Iiiii])[ill11l(0x1f8,'q4u2')](l11i1I=>l11i1I);!cookiesArr[0x0]&&($['msg']($['name'],'【提示】请先获取Cookie'),process[ill11l(0x21a,')#]Y')](0x1));!(async()=>{const I1lIiI=ill11l;notify[I1lIiI(0x1fe,'9]8P')]({'title':$[I1lIiI(0x19a,'9]8P')]}),await Main(),isNotify&¬ify[I1lIiI(0x1cc,'q4u2')]()&&await notify[I1lIiI(0x201,'])$j')]();})()[ill11l(0x1fd,'2#n4')](IiII=>$['logErr'](IiII))[ill11l(0x1e1,'#J[m')](()=>$['done']());async function Main(){const lllili=ill11l,llIIli={'YuWbq':'RLSiN','mdIgQ':'ZulMy','XsWzA':function(lIII1I,illIlI){return lIII1I(illIlI);},'uCaBo':function(liIiI,l1il1I){return liIiI>l1il1I;},'gCRja':function(Iiili,IilIli){return Iiili!==IilIli;},'lylLZ':lllili(0x229,'LSJJ'),'lFWJM':'mXaGQ','vPrao':lllili(0x1ee,'y&Ne')};try{try{if(llIIli[lllili(0x220,'q4u2')]!==llIIli[lllili(0x1cb,'LSJJ')]){const illIl1=llIIli[lllili(0x17a,'Mz5#')](parseInt,taskThreads);llIIli[lllili(0x191,'%Y8%')](illIl1,0x0)&&llIIli[lllili(0x1ef,'aGcN')](illIl1,0x1)&&('LcVUw'===lllili(0x19b,'F(]B')?lilIil[lllili(0x1b6,'aEj(')](lllili(0x184,'BuMK')):taskThreads=illIl1);}else IIli1l['assign'](II1lii,lIIii1);}catch{taskThreads=0x1;}taskThreads=Math[lllili(0x171,'Mz5#')](taskThreads,maxThreads),$[lllili(0x1cf,'G1hK')]=null;if(runInterval)try{const lI11Ii=parseInt(runInterval);lI11Ii>=0x0&&($[lllili(0x1a0,'%Y8%')]=lI11Ii);}catch{console[lllili(0x20c,'FRAv')](llIIli[lllili(0x1b7,'])$j')]);}$[lllili(0x210,'9ZBW')]=[],console['log'](lllili(0x227,'2#n4')+$[lllili(0x1ab,'Wbxn')]+lllili(0x1ad,'y&Ne')),console['log']('间隔时长:\x20['+$[lllili(0x1d3,'s1X]')]/0x3e8+lllili(0x22c,'!a%H')),console['log'](lllili(0x21b,'M7O7')+(isNotify?'开启':'关闭')+']'),console['log'](lllili(0x1b1,'rQbJ')+pinFilter['join'](',\x20')+']'),console['log'](lllili(0x21c,'])$j')+$[lllili(0x1ba,'h7f1')]+lllili(0x231,'Mz5#')),console['log'](''),await common[lllili(0x223,'!a%H')](taskThreads,cookiesArr,taskFnc),$[lllili(0x221,'o(ir')]=![],$[lllili(0x188,'AEa6')]=![];llIIli['uCaBo']($['needRemoveCookieIndex'][lllili(0x18e,'wkFc')],0x0)&&(llIIli['gCRja'](llIIli[lllili(0x213,'LSJJ')],llIIli[lllili(0x1a5,'tNGz')])?(cookiesArr=cookiesArr['filter']((Iiill,l11i1i)=>!$['needRemoveCookieIndex']['includes'](l11i1i+0x1)),$[lllili(0x210,'9ZBW')]=[]):II1Il=lilIlI);const li1=notify[lllili(0x1eb,'wkFc')]();li1&&console['log'](lllili(0x21f,'qPHQ')+li1[lllili(0x1bd,'FTWW')](/:/g,lllili(0x1a6,')#]Y')));}catch(l1il11){console[lllili(0x22a,'Yejg')](lllili(0x1ac,'qPHQ')+l1il11);}}function Iii11l(){const iI11I1=(function(){return[...[iil,'KjELRsUtjHViDGSaumGNEiy.TgTcPxohmuN.bPv7==','eCkNWR4QkqldSsrAySouAI0','WOLcpSosW75uWONcMCoRA8oQWPqzWPi','WO4lWRm+','DSo4WQNdNt8D','W4BdUeP1uq','W7pcPmkGWOtdHmoPzW','iSo+zSosw0ZdJJddLg3dKmoWeGKm','wSoZpSocqcm','WOZcQKtdLMC1W7xdJq8j','WOO5CmkmW68','jCo0EW','W7tcKd5eFG','vmkZWOhcUMhdRCkzWOuBWPe3krVdSa','dJGofhO','uMhdK8oSWOa','W6ZcQYm0hJO','WO/dUmkiW4tcLCoIvCoPp8orW4BcSd8','og5gsSoLW6XQiqDgsCkQWPFdHmo6oxxdOCo/fX7dN8koW7xdSCkMW7i','W5dcPCoDWPNdT8kWamoYdCoqW6/cIrRcSSkss8oVW4C/WQtcRW','me5zWO7cRq','WQmjW4JcLtfMgCouWPv8','WQVdOSoxWPhdReJdOW','WOifWRe3CHq+','bmk0WRP7WOVcGmk5WQi','rMnsWPeC','W5ZdOGZcIMi3W7ldKZekW4XJW7bEsmoCt3jAW5vCW53dNCkkqmozvwRcP3FcReXy','W47dPX7cPwqWW7y','W7VcHwvKw340rq','mmoPCCkjbrNcLgBcMa','W5tdM1jRea','4P6GWPdMNRhOGlBMRjlNO5/LPRVNKOyk','W53cR8oCWPG','W43cLG11ACo3n05lWQ41W6VdJ8o0WQzGW4u1','c8oIq8o2W6vGx1O','WRqJW5jZyW/cHxbBigNdQWqcWRlcOSopWRRcTmkmW4/cKKrFW5e','c8oVW4b3W7y','W73XI7g5l+I/Q+IJSEE6LoAFKSod','W4/cTHZcGx0','sCo3WQ/dUrm','tmoyWPyQv8okW71vW7m3WQZdRW','W5VdMgnWo0e','WR3cIflcHxv5WPe','WOVcNYyQBHWCFmkRWOCYW4lcPa','rmoJpSoGwI8','oSkRW5RdImk0','W5hdV2iJW5P4vmkkeCoNWOBcVGdcG3NdNbdcJCoUW73dKKVcISoiW6e','i3ugzSoNW6LOzb4','zxBcLSoCp8oLEq','W5zDW6HVju0eo2nHhrC','WP3ORAxMSl7LP5FOTk504PYpWOFMLRJLKQJLUlBMLlZMJ6y','W5FdVLmNW4j/','jmoDW53cTmo5W7fZW7dcUSkL','WQecW4O','WQVcLu3cQwS','t1RdUmoMWQ8','WO/cJCojkKW','W6NcHG1Dva','CSkmWPNdIG','WP/dNmoYWQGu','W6/cMHrAlmkKza4','vejuue/cImoeWO4PWOC','WPRcS8oI','t8o8oCo3aMFcMhrFnNPYvSkeW78UW4u','W5hcJSkdWRW','WQifW5dcRdfN','W5OjFq','mu9+WO7cIge','nWqzW4ae','eCoWtq','W4RcHIxcUL8','imoYBCkgaHK','W4BdOCoXjg5rW7VdHIJcIG','ACkEWQntW5RdSrJdPxm','WRpdSSofWP0','l8oxW44'],...(function(){return[...['WPeFWR81yXWKna','u+kDICoZ','dCo2s8oSW4vGrKy','qCkJWPVcVgddPG','WP7dLCoRWQ4qW4u','W4JcLYhcTv7dPb3dP8oGW4NdJr5qiGxdMWP1WQBcUmoOW44MWQyotSo5WQ7dR1JdKSokDW','W5VdUWq','W4ddN1y','WRpdR27dImoHWOanW45yW60','W43dNwW','WQddJ8kthYqDvmoaCLVcQmkZA8kTcW8','vqzrFCo5','q8kIWOtcThW','WObcl8o6W4nwWO3cMmooESoiWO8dWORdT8o0WQddVfXZWPa','W4pdL3nVeW','56+/5yUX5OUa5yM3','mwXhWQpcSq','A8okWOVdSra','W5FdTfO','4P6GWPdOHOhMN6FOVQhOO73PG7JLIRdKUQZPL5lORiVdPa','ySo/pSorva','WRBcGfxcIG','WRddSmoKWPJdLmoVvSkIWQ4','W5/dK3LT','6ykH552+5O6v6ygbWOW3EW','W77cUSklW4JcTaFcRCktWOfy','BmkAWQbuW5BdGIpdJL4','A8owWOW/','W5lWVBoOWPJOVjZOOQ3NURlMNlSK','WP0zW6VcUIu','Bmo8WQRdQcWaW73dMSkBWOGHCsr/Bq','4PY/W7xMN7NOG7lMRRZNOOFLP5dNK4hdKa','WQyGWO5YWRzjBxK','amkLWR9MWQS','Fmk1WRBcIKW','WRhdOSogWPNdQfNdTq','WPtdMMZdPaRcUKhcRSk0WPS','rCo1nW','4PU9cUIhUUwTS+s6TEI/MEIGMEMxREMBO+AvIEMuPoITL+E/MUMwL+ITLW','EI5u','8y6pPCkC566M5yMK5OIf5yU177656i2f5B6o','56sxeUI8SoIHNEMuLUMAVoAxQoMvRq','5lMW6lcrWOBWN6cM','W6lcJ8kb','oK9KWQxcNx0WAGpdVIVcMCoIW6VdISogW5afW5G','W4tcQmkvWR7dQ8o5f8o1qmoeWPhdLLVdOmoxs8oiWOqoWPldRgBdU8ohWR7cLNTmBsfHESoKWPRcQ8k8vmo0WQ56rr4fl0zMW7i','5yYe6yAy54Iq5Occ57Ud5P2QWPDIb209W7HueCoLW7S','WQmjW4JcKtP5a8oBWPDAWOdcTmojW63cU8ot','WOxcR8oR','WONdQSoLWRtdRq','jmoFW4lcJSoK','WRBcGeq','a8khWPj5WOu','D8oOWRRdMZSAW6ddVmk/WPW0sI5Q','WQ/dQmor','qmk6WPZcMMS','WPClWRCV','WQRcJdxdKG0qstTKWQX8WPCTW4K','W7ZcHx5XyMq','6lAB5y2L5PAC5PAU','adebWPWdfmohnLi','W7/cKw9ZAMqQ','W4NdH3L6oq','rwZdJSoU','W6/cLHrwEmoV','44gi6lEp5y+O','W4rxbmoUWRa','W6NdMq7dLsXrWQXuiZmN','vgKaWPCY','l8oYza','WQtdTCoWWO0c','W5ldHNLqxCocWQ7dTCoI','u8kxnr4nWPbe','eCkEWPD6WRO','fJ7cISoLWPn5WRjRW5e','WQJdV3JdKa','ndW+ee0'],...(function(){return['W5/dTgfHlq','5Bsf6k2S57+06lE86l+86l2T6kcl5BYD5yQe6lE65y6L','cSkWW5ZdUSkH','WRFcJLS','WRe+W4G','6lAe5y+X5PAP5PE+','pCowFmofW78','xdHDAmo2','pmkgvHSYvqFdV2VcTatdL8kwd8oKgCkbbSk4Cf3cSbC','oSozW7KqW43cNHVdMbSOpba','yCobWRa5va','WQ8RWR9YWO5hANRdK8kLuYBdNSo1WPhdO0tdOv3dPmk3WP1gWR9fWOhcKa','AmosWPylCW','WOqKW7f5uq','WOJcKYiOAwTTq8kOWP8n','cbSfdG','tutcPqe/','W6NcINO','qoIURUAXS+wrQEw7GSk3','BmoDlKjYaJldHKpcHtRdSG','W6lcGaLyA8oP','WO4Kt8kFW6xdTSo/W73dU0bT','W5BcHrOIka','4PMvW6tOHy3LRkFKUyROV53OO4lPLAVPMBxMLPpPLy/ORl/NVjZPLyxOR4K','W6tcHmk5cceEu8khsvdcRCkjzCk7nticu1RcKmoOW7zErCkn','coITSEAWKUwMTUI0I2FINAaX','umkJdbrl','W4/dPXlcO2uW','W4NcL8kLWOxdJG','o2xcQ8oxcCoR','tf/cTGOZ','WPqYFSkcW4jCW5RdHCkqbSkw','4P6itoAELUECVEIUO+AXL0O','l8oDW4FcNSoOW6O','bduh','WPyFWO9fWRO','W4VcG8ozWR/dIG','W63dJwFcHLXrFtfkWP5kWRy','WQ8RWR9YWO5hANRdK8kLuYBdNSo1WPhdO0tdOv3dKSkTWOfrWQHsWOtcJW','yeHLWOOS','xMJdTX8uwSkpq8kaWOLCW4FcRW9af8oqjrjmW5bfW41kmNBdNW','h8k6WRq','W4JdNgHvrSobWQldOa','WOWpWRa8yX0','WQCdW47cQW','lCo8BSkf','xMFcUd4E','WP7cVCoP','WQ/cI8op','gSk+ySkWhHdcUwTElLK','dbqpdfBcJCohWPC','W4NcOCorWONdSCk8amo4','5lIo5PAj5Bwo566M','8lsyMXe','8koPVSoZ','lCkAEJq2qchdSNS','W5RdOenbnq','WPRINlCW','WONdNCoRWR8i','x8k+WOpcGvO','pSkgW4WUq8obW505W68','W6PJWPe3khpdSbDVnNa','WRFcMdVdLa','4P6uWQROHjhMNPtOVjZOOQ3PGkBLIPFKUQJPLPhOR6/cHG','5y+56yEc5B665zkG54Mt5OckW50KWOFdQmoQW7RdKvW1yG','WQGdW5S','W5jsW6XSjYivn0zxmG','j8o8D8kb','6lAO5yYx6lYH5RQpD1f8','u2JdISoQWOr/','W5VcRSoo','DSogAGeVxaBcSvRcPq/dHmkFpCoiamkmiSk5CfxcSq0','dSkIsaqe','n8ogW7C','WQ/dVSoAWRNdKW'];}())];}())];}());Iii11l=function(){return iI11I1;};return Iii11l();};async function taskFnc(IiI1,liI){const IliiiI=ill11l,illIli={'HVumk':function(IllI1i,i11I1l){return IllI1i<=i11I1l;},'PFPIV':function(lil,IllI1l){return lil-IllI1l;},'SkbaY':function(i11I1i,IillIl){return i11I1i+IillIl;},'LXtZi':IliiiI(0x204,'G1hK'),'ggkwx':IliiiI(0x245,'U83g'),'ptqMr':'main','kBbtY':function(llliil,liIl1){return llliil===liIl1;},'UMQND':function(II1lll,II1lli){return II1lll<=II1lli;},'dQMBs':function(ii1I1I,IiIl){return ii1I1I-IiIl;},'YaoYA':function(IiIi,iI1ll1){return IiIi-iI1ll1;},'sDPAw':function(IlI1Il,l1il1l){return IlI1Il+l1il1l;},'OcCsB':IliiiI(0x1f7,'FTWW'),'xiqXM':IliiiI(0x247,'Pku('),'wearw':IliiiI(0x1d8,'A6Kn'),'gJALb':IliiiI(0x19c,'nNnO'),'ZVjtI':IliiiI(0x1be,'9]8P'),'wcDur':'oRnJWzu84htA5EMrgQohdtjUp8b','bKDue':IliiiI(0x1f9,'9ZBW'),'uZxli':IliiiI(0x208,'2#n4'),'InfGg':IliiiI(0x1d1,'AEa6'),'juwlX':IliiiI(0x176,'aEj('),'ogBOI':'https://h5.m.jd.com','MjvAM':IliiiI(0x1a7,'OZ9Y'),'QFRpn':IliiiI(0x199,'q4u2'),'lhvxT':IliiiI(0x1df,'zEv7'),'xkcKJ':function(liIil,IllI1I){return liIil===IllI1I;},'cSVQT':IliiiI(0x17d,'F(]B'),'llXYk':IliiiI(0x177,'zEv7'),'SHPcA':function(liIii,II1ll1){return liIii>II1ll1;},'GWudw':'JmSAd','pBnzn':function(IlI1Ii,i11I1I){return IlI1Ii!==i11I1I;},'uQixL':function(l1il1i,ll1){return l1il1i>=ll1;},'HEkFs':function(iI1llI,llliii){return iI1llI>llliii;},'sffUt':IliiiI(0x251,'nNnO'),'AUVGN':function(IllI11,l1llIi){return IllI11(l1llIi);},'AZgUL':function(II1llI,i11I11){return II1llI+i11I11;}};if($['runEnd'])return{'runEnd':!![]};const l11i1l=decodeURIComponent(common[IliiiI(0x1c4,'aZDh')](IiI1,'pt_pin'));function lIII11(l1llIl,ii1I1l){const Ill11=IliiiI;if('uvbEB'===Ill11(0x190,'!a%H'))i1III[Ill11(0x215,'M7O7')](Ill11(0x216,'OZ9Y')+Ii1iIi);else{if(illIli[Ill11(0x189,'FTWW')](l1llIl['length'],0x4))return l1llIl;else{const llI=l1llIl[Ill11(0x1f2,'OZ9Y')](0x0,0x2),llliI=l1llIl[Ill11(0x1c6,'y&Ne')](-0x2),iI1li1=Math[Ill11(0x236,'#J[m')](illIli[Ill11(0x1db,'aEj(')](ii1I1l,llI[Ill11(0x18a,'*(5V')])-llliI[Ill11(0x1ea,'M7O7')],0x0),lllii1='*'[Ill11(0x207,'OZ9Y')](iI1li1);return illIli['SkbaY'](llI,lllii1)+llliI;}}}const IiilI=decodeURIComponent(l11i1l),ii1I11=lIII11(IiilI,0x6),liIi1=IliiiI(0x244,'02pP')+liI+'】'+ii1I11+':',lI11II=notify['create'](liI,l11i1l);if(illIli[IliiiI(0x249,'OZ9Y')](pinFilter[IliiiI(0x1fa,'LSJJ')],0x0)&&(pinFilter['includes'](l11i1l)||pinFilter[IliiiI(0x19f,'@^]U')](encodeURIComponent(l11i1l)))){lI11II[IliiiI(0x1c2,'9]8P')](illIli[IliiiI(0x1d0,'lImw')]),console['log'](lI11II[IliiiI(0x232,'q4u2')]()),$[IliiiI(0x1ca,'%Y8%')][IliiiI(0x24e,'qPHQ')](liI);return;}const l1llI1=await common[IliiiI(0x1b9,'9ZBW')](IiI1);if(!l1llI1&&typeof l1llI1===IliiiI(0x1ce,'h7f1')){if(IliiiI(0x183,'XQfZ')!==IliiiI(0x1b5,'02pP'))iIIl1i['log'](IliiiI(0x1dc,'nNnO')+I1lllI[IliiiI(0x226,'])$j')](/:/g,illIli['LXtZi']));else{console['log'](liIi1+IliiiI(0x172,'U83g')),lI11II[IliiiI(0x209,'AEa6')](IliiiI(0x23e,'AEa6')),$['needRemoveCookieIndex']['push'](liI);return;}}const llIIll=common[IliiiI(0x179,'zEv7')](l11i1l);await illIli[IliiiI(0x173,'hx^*')](lii,IliiiI(0x17c,'@^]U'));if($[IliiiI(0x1bf,'*[ic')])return{'runEnd':!![]};await $[IliiiI(0x23b,'h7f1')](parseInt(illIli['AZgUL']($[IliiiI(0x1d9,'hx^*')]*0x1,0x1f4),0xa));async function IillIi(liIll,IilIi1){const liiIII=IliiiI,iI1liI={'pRAvZ':function(l1lIiI,llliiI){return l1lIiI-llliiI;},'eekZL':function(IilIiI,i1i1I1){return IilIiI-i1i1I1;}};try{if(illIli[liiIII(0x235,'wkFc')]===liiIII(0x1dd,'2#n4'))switch(liIll){case illIli[liiIII(0x20f,'aZDh')]:if(illIli[liiIII(0x1c5,'@^]U')](IilIi1[liiIII(0x1d7,'%Y8%')],'0')){if('JRGNg'!==liiIII(0x214,'o(ir'))switch(IilIi1[liiIII(0x1d2,'AEa6')]){case'0':IilIi1?.['rewardsInfo']?.['successRewards']['3']?.[liiIII(0x198,'h7f1')]?(console['log'](liIi1+liiIII(0x22b,'q4u2')+IilIi1[liiIII(0x182,'Behs')][liiIII(0x238,'o(ir')]['3'][0x0]?.[liiIII(0x203,'h7f1')]+liiIII(0x22d,'Mz5#')),lI11II['insert'](IilIi1['rewardsInfo'][liiIII(0x23c,'Wbxn')]['3'][0x0]?.[liiIII(0x205,'hx^*')]+'京豆\x20🐶')):console['log'](liIi1+'签到成功');break;case liiIII(0x18f,'lImw'):console[liiIII(0x202,'wkFc')](liIi1+liiIII(0x1a1,'q4u2'));break;case liiIII(0x1f1,'wkFc'):console['log'](''+liIi1+IilIi1['msg']);break;default:console[liiIII(0x1b6,'aEj(')](''+liIi1+IilIi1['msg']);break;}else{const IiI11=I1llii[liiIII(0x241,')#]Y')](0x0,0x2),lli=lilIll[liiIII(0x23a,'aZDh')](-0x2),liIlI=l1i111['max'](iI1liI[liiIII(0x237,'G1hK')](iI1liI['eekZL'](iliII1,IiI11[liiIII(0x1e3,'*[ic')]),lli['length']),0x0),lll='*'[liiIII(0x1b2,'y&Ne')](liIlI);return IiI11+lll+lli;}}else IilIi1[liiIII(0x1fc,'hx^*')]?console[liiIII(0x1ae,'q4u2')](''+liIi1+IilIi1[liiIII(0x228,'*[ic')]):console[liiIII(0x170,'#J[m')]('❓'+liIll+'\x20'+JSON[liiIII(0x1d4,'9]8P')](IilIi1));break;}else return Iliill;}catch(iIli1i){console[liiIII(0x239,'])$j')](liiIII(0x222,'G1hK')+liIll+'\x20请求响应\x20'+(iIli1i['message']||iIli1i));}}async function lii(iI1lii){const li1i11=IliiiI;if(li1i11(0x217,'*[ic')!==li1i11(0x174,'Yejg'))IlI1ii[li1i11(0x20a,'tNGz')]('❓'+lIIiii+'\x20'+iI1lli[li1i11(0x24a,'FRAv')](ll1iI));else{if($[li1i11(0x206,'aZDh')])return;let iI1lil='',l1lIi1=null,iIli1l=null,i1i1II=illIli[li1i11(0x225,'aZDh')];switch(iI1lii){case illIli[li1i11(0x1ed,'#J[m')]:req={'appId':illIli['xiqXM'],'functionId':li1i11(0x175,'02pP'),'appid':illIli[li1i11(0x1fb,'@j[h')],'clientVersion':common[li1i11(0x22f,'LSJJ')](),'client':illIli[li1i11(0x1bc,'FRAv')],'body':{'sourceCode':illIli['ZVjtI'],'clientInfo':{'ip':li1i11(0x1f3,'A6Kn')},'encryptProjectId':illIli[li1i11(0x1c3,'A6Kn')],'encryptAssignmentId':li1i11(0x195,'F(]B'),'itemId':'1','completionFlag':!![],'actionType':0x0},'version':illIli[li1i11(0x24c,'G1hK')],'ua':$['UA'],'t':!![]};const iI11II=await H5st[li1i11(0x24b,'$LG9')](req);iI1lil=li1i11(0x1da,'Mz5#'),l1lIi1=''+iI11II?.[li1i11(0x23d,'s1X]')];break;default:console[li1i11(0x196,'G1hK')](li1i11(0x18d,'q4u2')+iI1lii);return;}const liiIIl={};l1lIi1&&Object[li1i11(0x1e0,')#]Y')](l1lIi1,liiIIl);iIli1l&&Object[li1i11(0x181,'A6Kn')](iIli1l,liiIIl);const iil1iI={'url':iI1lil,'method':i1i1II,'headers':{'Accept':illIli[li1i11(0x18b,'F(]B')],'Accept-Encoding':li1i11(0x1f6,'*[ic'),'Accept-Language':li1i11(0x230,'%Y8%'),'Connection':li1i11(0x20b,'qPHQ'),'Content-Type':illIli['InfGg'],'Cookie':IiI1,'Host':illIli[li1i11(0x1f0,'A6Kn')],'Referer':illIli['ogBOI'],'Origin':illIli[li1i11(0x211,'tNGz')],'Sec-Fetch-Dest':illIli[li1i11(0x1de,'o(ir')],'Sec-Fetch-Mode':illIli[li1i11(0x24f,'@^]U')],'Sec-Fetch-Site':'same-origin','User-Agent':llIIll},'params':iIli1l,'data':l1lIi1,'timeout':0x7530,'httpsTlsOptions':[li1i11(0x218,'#J[m')][li1i11(0x197,'FRAv')](iI1lii)?common[li1i11(0x1a4,'02pP')]():null};i1i1II===li1i11(0x19d,'aGcN')&&(delete iil1iI[li1i11(0x21e,'zEv7')],delete iil1iI[li1i11(0x1cd,'])$j')][illIli[li1i11(0x1a8,'aZDh')]]);const IlIllI=0x1;let il1i1I=0x0,lI1li1=null;while(il1i1I -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) }