/*
活动名称：新版玩一玩签到返现 5.17-8.31结束
活动入口: APP-我的-更多工具-玩一玩-下单全额返
活动建议：定时自行修改，奖票有效期2个月，仅参与打卡账号输出日志
活动变量：jd_wyw_notify  // 是否推送通知，默认不推送
          jd_wyw_pinFilter // 账号pin过滤，多个pin用@分隔，默认不过滤

*/

const $ = new Env('新版玩一玩签到返现')
var _js='jsjiami.com.v7';const a5=b;function a(){const ac=(function(){return[...[_js,'uwDjRLsBhPjiAlqaSmSIiX.pcXxomU.Rwvh7uJDw==','W63cGhj0W5u','k8okW5mxW7z3ymobb3m','W5FdLwf2ze3dLw16W4FcLG','gMpdKSoGW5eJ','W7RcKH7dUG','hmopuSkgW40','W5dLPQxNPj/dKW','kEAFQEwkMUAiSUwmUoAuLUMwPo++TUI8MEMCQEIMSoAlOUwnJa','W63dVSkzW4lcHHqN','WR5vaqKfW7rOufyDWRqprG','4PM4W4tOH7ZLRABKUOpOVk/OOkNPLR/PMjtMLQxPL4pORRVNVAVPLz7OR4u','Fg9GWOzS','W6tcSmoqdu0+WRW','t3Ta','q1r6WPL6aSk3W4lcMaVdRXKA','W6hcUJVcH8obv0/cSG','doAkV+woNUAjG+wlR++9PUI+OEMEN+IKMUAiOEwmLW','WQmTbG','W4VdRHxcVcu','W7pcVv0','aSoQWQSUoW','rXZcPtOldW','m8kdWPa/fqSx','W6JcNqe','hmk3W54rkSoAF8kvWQbzwmkFqeq+WPq/g8ogW5xdLq','W6pcShhcHSoU','A8oIBJhdVCo+oq','W6/cQmoWWR/dOKawwtxcJmkvpW','beBcQYNcQW','WOBdGupdO8ocxCk/WOtcHeldMCo6k8oXW5z+WOlcISobvGBdHSkaDmkWsNC','jSknWPyNjamuW7O','W6rnWOSuWOddPa','WQnqnWO','kmo1ubRdM8o8hsVdQtrT','WPzomMvUqa','EW09W4C','WPddPCo7uG','W7mjW7i','imorEq','WPxcMCkq','WRNORlxMSk7LPlROTRmO4PYIW6pML5lLKkFLUQtML7tMJyK','eCoYAs/dIG','W7qvWPhcNCktWO3dPNm','aXuKW6KTvW','W5hdRCorWPzgWRFdGCoXnSo4W6aAW63cLv5yWQ0xWOFcJIq','wSojEsldIG','dmoDW5ajma','WP8nmNm','W6WkW7WVW6S','WRW3dhmUs8oAWRhdL3DjxNCJzMP+WPq','FM9kAYxcS8o4qW','44oe5O+H56wK44gV6k6l5yEl6i6a5y+iEGBcSGjwiq','mmk2hu3cVZ1NxxyI','eamnW4u6','W5vCEmkdW63cPCkTuSoaW64fBZi','eGO7ECkx','8kUyMmkG','imkuWOSGga','WPJdJbZdTLjjW4jjcCk7ErZcGq','hWuVW4GrvSoOW6tcVYZdJXiIW4r8WOCKW7zQn1O','W5ZdIH3cQIS','WOFdPhTPq0FdIW','W6VdMJlcKG','W6ZdIIe','WQJdSdXOW5HqW63cJq','gGuZW58','W65lWOa','W4FdOmoZWPfX','W4tcGve','bSkLWPaqpq','WRW3aKqKtmoi','WRRdS8knWQ7dMG','pHqLB8kQtSkua3dcKfNdJ31nWPS','dhFdImoe','ga45W4KXrW','WRCqWRCZWOZdG8oMWRy','W5/XG4grAEI/MEIGOEE4VoAEN2m','WPz1WPBcJmkJ','z0vjlCoJdCo6u0ZcJ0RdUf5o','zXCP','WPqBpSoz','nYamDCkl','5Psb5B656l+E5ywlW6lcVEs5MowpQUs6JEAlIowmH+I0IowoH+I9I+wfIoAxO+w9Kq','5B6B5yUW5OM05P2K6lsw5y6B5zYs5RkS5P+m5Q+z5z2e5y+U5lMh5OIM5y+G55Q45zss5zcv5zcJuW','WPZMNiVLI7hMIP3LJPVMLk7PLyFVVjdOVjhPNjlOPlFMIRpLJim','W6ldIbRcNIq','WOzzgdi4','gmkOWQ0','ASkxW50wW4DrAW','m8kvW4GUfq','W47cT2jVW44','bchcMNVcNvu','W77cPXHoW6r6W5hcSx/cMvC','mZuFW7KX'],...(function(){return[...['W7XWvX55cSkdWQFdLM9nuK4','WPiKsmodW64','W77dLYJcJG','WPZcMmkb','WRtcI3e','bcVcKW','t8o+WOCpjXNdIW','W6RcRGvOW7m','W7tcGqhdNru','6AAD6Acn6i+55y255AAn6lwcCr4','W7FcPWLVW4rTW5pcRetcJ3pdQ0JcQWKqWRdcL0hcNmoL','qw4i','WQJdSLW7','WOtdUmo6u8k4W6NdQqj3Fdi','W6pcJIPZW6e','CMbj','W4VcOvRdNmok','4PYyuoADKoEFVEISPoAXU8oR','W6NdHY/cPqb7WOJdRCkig0tdNCkxca','W5RcPCoGq8kKW6BdRMneDdxdMmkfW7RcMtC','WOVdL8kuWRldOLa','W6NcQhNdTmoZ','WRddMmkfWOhdMq','pCk2W4WJdG','776K5OQ95y2x5AA+5PEBc8oS','W4/dHN1bEeNdJ2D6W5pcGa','w35hsXC','WPFdQ8oHvmkL','W7P+W6xdK1C','WRtcGSobig4d','WQ9eWRBcM8kjWR3dGq','esexta5OAI/cIrVdSCo6W5C','W6RcQWTLW5b6W5VcPN3cMftdOvxcIq4tWPBcTuZcISoP','W5xcUhVcHmo+fa','WQhdHe0FrG','c8oG6l2t54+mmq','FCkqlSo/WOq','WOZdS8koW4hcKq','W6lcVd3cSSoK','WP3dUCourCk/W6VdPa','zNDSdfy','sg8z','W5ldNxW','5OQl5y6f5AsN6lEzW7ddNW','WRzRlc8o','hqdcSxhcUW','WR/cGwlcSCkVWOWwkSoNnG','WQtdKLm','W6VcUZBcJCoDva','W5r0W60','W7xdJmonWR9I','jsueW5Gb','W5GqqG','WQ0uD8oR','xCoVzbhdJa','BhvdWQfoWPzwW4HY','W4ncnKeT','FCk/orhcHHjLW5e','4PIIboIeJEwVUUs6RoI9HUIJV+MuREMBUUAvMEMvRoIVNEE8HUMvNUIUPa','dCkzW5meeG','W5JdRCoaWRDMWQddG8oSdCoUW4q','W6VcL37cTmow','wtq+W7BdPG','kqRcH37cKa','W7WuW7aTW7Ox','W7FdVKbCEa','aSoXW5mlbW','WPipAmogW70','mLhdJmoiW5u','aSkWW7i3oG','WPzomG','fcn1dMyulYe','ACoQvbe','W57dU8ohWPTZWRW','kUAlVEwoJ+AjK+wlTU+9UoAlQowmKUwKJoAwHUw2NUA6SE+8TEw+KEwmNoweToAoQ+wNHowkPEwrVCoc','W6lMI5VLJ5xMI6lLIOVVV57OVBtPNP7OP4hMI47LJ4i','pSosxrRdQq','FUAjH+wnHUwLKUAvH+w2O+A6U++9MEw8TEwpS+whK+ApQowNJEwlREwrKwq','WQKAC8oG','qLa7WO0b','omosW7mqbYZdSXZcJw3dMmojz8kzW5q','W79EW54','W7NcGxfmW7y','WQDtWQtcQ8k7WRxdNgNcP2y','W4NcJuldVSoDwmk4W4lcS1tdPmoVk8oJW71RWOJcLSoi','6AE46AgB6i255y6M5AEk6lEyW5zn','AaVcMZWj','W7atW7tdVmomW6dcGs3cI0xdSSkml1u','5yYg6ywu54M+5Okm57Ig5PYQsGXsW7/dVNrUE8o2ta','W50rvItdQCoY','aWu6W4aIumoG','WQFdIgCvqa','WP7dL8kqWP/cTLCI','W5NcKuVcRs0kWPvLemkwDX0','pmoUsJVdGG','nSoYwmkPW4m'],...(function(){return['eSktW68Nfa','W53cQuVdSvpdOSkUpSo0W7bWWRhcGq','aeVcQXtcQCkyWOecfCoZh8kXsKJdUSostSoql8osoW','WPNcMCkvW4qbWQO','jZmHW7SS','WPjvivbVcaTnW40gWOLsk3hcV8khWPtdRchcGmoMWPhdG21IWQXMW6q7vCoGv3i6i8okbCkAW6q1WORcO1pcImoHCCo0D8ouWQ3cG8k5lCk/v8oHW57cV8o2aSoXrmo9a8krjCoYCG5da8oDhCk/vdaHBSkpW7ddNLO/WRXwk8ou','WQ7dLmkhW6FcGq','iCkVWQGloq','FNjcWQfhWP8','jWawCCkN','dhtcMYFcVa','W73cMLhcRmoZ','WQXoWQ/cQ8kdWORdLN/cRhVdGmkfl0ldJmkZ','W7VcS05A','WQySaKS0w8oEWQ4','EWOHW4VdIqq/CmoKkmoe','los6QUAwR+AEHUAiKownKU++IEI9K+MFIEINIoAlN+wmNa','WOGbkG','nmoOwa','WRRdNCkkWQpdPKOIWQhdK8kqW5hdPa','5REl5yMF5yAd5y2csCo+W6CpWPWN5OMH55QiW5/MMjxLPkJLTjtLH6tdKUEnGos5JoEmLSo15lIo5y+75ywL6AgW6lYV','WOpMI4JLJQNMIP3LIyRVVBNMIktLJzdLPyBMLRlLTlhMUQJVVz/LVQ3LJBdLHkdMJ6ZLP7dLIjVLKQNcQG','W7xcPWjSW6jG','zwfe','loAiS+wmQ+AkVowlNo+8V+I9NEMEI+ILIoAiMUwpRq','W4/dQCogWPn5WQhdQmo/nmo8','W4hcTSkeW6u3WO3dTq','W7zwWPif','6lwS5y2/6l6S5RQaW613sW','W5pKUAJMLR7LTjtMIlZLJBxVV6/OVzZPN63OP4ZMIBBLJ5a','qXZcQJKAfCky','axJdJ8oaW40Z','WPBcJCkTW6Gh','y8kbWRz5txdcPrlcI2tdJCoPCq','6ycX556C5O2J6ygCruFcSa','WRldTmkV','WP1eiwXZvu0mW60BWO9ioha','f+AyIUAwNEADJUECSUAcKUwgPE++QEAjU+wpHowLPEAwVCk4WRu','EbePW4hdUHuUw8owlmogqCoeWQW','W7RcKH7dUHfjW7ldJW','5AA2772Q54YL5z2K5yY15OIH5y+9','W4GuzrCLcXqyW6K8WP1maq','cepcUbVcKW','FSo+qXpdP3mP','WRJdJ1Sjrq8Hq8kKW5Cj','WRRdIfOOxGG','WPRdQ8o4uG','mSoAW7mD','uoAlMownGEwLMEAxSUw3SUA6U++9Row+OowoPowgRUApRUwNTowlKowtNmki','WRHumbKiW6S','W7xORiBMS7dLPBJOTkXn4P2ZiW','W7pcIwpcJam','rNTdp24','vokDN8kk','mHKuECk/vCkY','oqmD','j8oPeW','WORdNSknWRtdPG','WRBcHxVcMq','WQtcV8kYW40C','8lwzHry','WOJMIQlLJ5pLPAdMLBNLTP/MUi7VVi/LVOlLJzJLHAxMJA3LPylLI63LKk7cLG','mmkCWO8/gqKyW6VdSH0yW6xcJ8oQWO/cPdfhWRVdSI84wCoAxK/cOSoaWR99WP7dMg0','W4pcLL/cPHKm','ugfvc1SKkqhcTYxdPW','WR1FlrSoW7C','W73cJaZcH8oM','s3LIEdG','W6/cQCo9WR/dO01fac3cLCkhjr4+','A8kgWRPbv8osWRGQW4hdLq','W5JcNfNdS8oEuSk4W6xcT0RdNG','W6ldJtW','xbJcOIKRdSkgWQ8','wYpcJ8kqWO9ZW4OdW67dICoUWPOVW4C','54Ij5Okj5P6E55Yx77Yo','mHKwBmk2sW','WQJdSvq5WQe9W5/cQ2JcPgBdSG','WONMIAlLJl/LPzFMLiZLTBhMU5BVVjlLV5lLJ5lLHOZMJiVLPANLI7xLKA43','sNPuhKuL','W5tcHetdL8ozkZv5W4JcHwtcJCoMjulcJu4yxmogW4ldVW','bhNdMW','hCokWRe0eapdPaDnWOqjmv0j','WQHpWQlcOSkpWRZdLM8','W4VcGvVdTCocx8kTW5/cV0JdLq','hHuzW5qZ','WRfEoJOL','WO/dGCk8WOhdOa','gf3cLIBcMa','5OME5y+Q5Asr6lwvWRGG','W6ZcTsZcIG','woAzP+AvJ+ADMEEDKoAdNEwgUU++PUAiVEwnT+wNGEAwQL1v','W4hcJKdcLSof','WPRcK8k5W5ykWQNdUthcO34zASkl','W6/dKJtcOqS'];}())];}())];}());a=function(){return ac;};return a();};function b(c,d){const e=a();return b=function(f,g){f=f-0x168;let h=e[f];if(b['FWcwYI']===undefined){var i=function(n){const o='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let p='',q='';for(let r=0x0,s,t,u=0x0;t=n['charAt'](u++);~t&&(s=r%0x4?s*0x40+t:t,r++%0x4)?p+=String['fromCharCode'](0xff&s>>(-0x2*r&0x6)):0x0){t=o['indexOf'](t);}for(let v=0x0,w=p['length'];v<w;v++){q+='%'+('00'+p['charCodeAt'](v)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(q);};const m=function(n,o){let p=[],q=0x0,r,t='';n=i(n);let u;for(u=0x0;u<0x100;u++){p[u]=u;}for(u=0x0;u<0x100;u++){q=(q+p[u]+o['charCodeAt'](u%o['length']))%0x100,r=p[u],p[u]=p[q],p[q]=r;}u=0x0,q=0x0;for(let v=0x0;v<n['length'];v++){u=(u+0x1)%0x100,q=(q+p[u])%0x100,r=p[u],p[u]=p[q],p[q]=r,t+=String['fromCharCode'](n['charCodeAt'](v)^p[(p[u]+p[q])%0x100]);}return t;};b['bvGfKP']=m,c=arguments,b['FWcwYI']=!![];}const j=e[0x0],k=f+j,l=c[k];return!l?(b['obeHiP']===undefined&&(b['obeHiP']=!![]),h=b['bvGfKP'](h,g),c[k]=h):h=l,h;},b(c,d);}(function(c,d,e,f,g,h,i){return c=c>>0x7,h='hs',i='hs',function(j,k,l,m,n){const a4=b;m='tfi',h=m+h,n='up',i+=n,h=l(h),i=l(i),l=0x0;const o=j();while(!![]&&--f+k){try{m=parseInt(a4(0x26e,'5n7@'))/0x1*(-parseInt(a4(0x1f4,'NuJc'))/0x2)+parseInt(a4(0x19e,'iAwS'))/0x3*(parseInt(a4(0x1d0,'9w]Z'))/0x4)+parseInt(a4(0x184,'25uk'))/0x5*(-parseInt(a4(0x1e1,'xGPi'))/0x6)+-parseInt(a4(0x255,'HmRl'))/0x7+parseInt(a4(0x1d3,'Ded3'))/0x8*(parseInt(a4(0x17c,'iAwS'))/0x9)+-parseInt(a4(0x27d,')#&O'))/0xa*(parseInt(a4(0x23b,'W8!v'))/0xb)+-parseInt(a4(0x1d6,'25uk'))/0xc*(-parseInt(a4(0x1e4,'SFNQ'))/0xd);}catch(p){m=l;}finally{n=o[h]();if(c<=f)l?g?m=n:g=n:l=n;else{if(l==g['replace'](/[wDSUALuJRBPlqpxhIX=]/g,'')){if(m===k){o['un'+h](n);break;}o[i](n);}}}}}(e,d,function(j,k,l,m,n,o,p){return k='\x73\x70\x6c\x69\x74',j=arguments[0x0],j=j[k](''),l=`\x72\x65\x76\x65\x72\x73\x65`,j=j[l]('\x76'),m=`\x6a\x6f\x69\x6e`,(0x171b4c,j[m](''));});}(0x6000,0xda52d,a,0xc2),a)&&(_js=a);const jdCookie=require(a5(0x197,'oz0a')),notify=require(a5(0x1b3,'FkYb')),common=require('./utils/Rebels_jdCommon'),{H5st}=require(a5(0x207,'PSQA'));let taskThreads=process[a5(0x1ff,'!7w5')][a5(0x189,'Oai2')]||'1';const runInterval=process['env'][a5(0x1de,'SFNQ')]||a5(0x200,'25uk'),isNotify=(process['env'][a5(0x194,'5n7@')]||process[a5(0x1bd,'5n7@')][a5(0x19f,'JCQ[')])===a5(0x26f,'xGPi'),pinFilter=(process[a5(0x1ad,'YOb9')]['jd_wyw_pinFilter']||'')[a5(0x25d,'SFNQ')]('@');let linkId=a5(0x187,'VN9F'),completedAccounts=0x0,cookiesArr=Object[a5(0x1d7,'BNEH')](jdCookie)['map'](c=>jdCookie[c])[a5(0x1b5,'xGPi')](c=>c);!cookiesArr[0x0]&&($[a5(0x16f,'SFNQ')]($[a5(0x229,'^&T[')],a5(0x1c9,'JCQ[')),process[a5(0x1d4,'*To5')](0x1));!(async()=>{const a6=a5,c={'TENtB':function(d){return d();},'VSkWo':function(d,e){return d===e;},'wIViz':a6(0x25a,'iAwS')};notify[a6(0x224,'hCI^')]({'title':$[a6(0x282,'PSQA')]}),await c[a6(0x227,'BNEH')](Main),isNotify&&notify['getMessage']()&&(c[a6(0x258,'BNEH')](c['wIViz'],a6(0x1cb,'BNEH'))?d++:await notify[a6(0x1b9,'v7$9')]());})()[a5(0x20f,'PSQA')](c=>$[a5(0x1b8,')#&O')](c))[a5(0x16e,'SFNQ')](()=>$[a5(0x1ba,'PSQA')]());async function Main(){const a7=a5,c={'FFWtj':function(d,f){return d>=f;},'WBYRH':function(d,f){return d+f;},'ZfWuZ':function(d,f){return d(f);},'CMoCN':function(d,f){return d!==f;},'EcKwa':'XFPJv','cnQNL':a7(0x204,'FkYb'),'Dmzgq':a7(0x1a0,'huG2'),'BUUUr':function(d,f){return d>f;},'fzKIt':a7(0x16c,'W8!v')};try{try{const f=c[a7(0x1c4,'AhuM')](parseInt,taskThreads);f>0x0&&c['CMoCN'](f,0x1)&&(taskThreads=f);}catch{taskThreads=0x1;}taskThreads=Math[a7(0x21e,'Ded3')](taskThreads,0x3),$[a7(0x1c8,'jZ*d')]=null;if(runInterval){if(c[a7(0x21c,'W8!v')]!==c['EcKwa']){g[a7(0x26b,'jZ*d')](h+'账号无效'),i[a7(0x1fe,'25uk')][a7(0x1e6,'PBGg')](j);return;}else try{const h=parseInt(runInterval);h>=0x0&&($[a7(0x180,'tFQ1')]=h);}catch{if('OcVmy'===c[a7(0x1a1,'SOwS')])try{const j=k(l);c['FFWtj'](j,0x0)&&(n['waitTime']=j);}catch{p[a7(0x1a3,'W8!v')]('⚠\x20自定义运行间隔时长设置错误');}else console['log'](c[a7(0x1af,'VN9F')]);}}console[a7(0x266,'#Ft9')](a7(0x1ca,'9fO%')+$['name']+'变量开启状态=========='),console[a7(0x228,'&X42')](a7(0x268,'5n7@')),console[a7(0x17f,'*To5')](a7(0x1e8,'PBGg')),console[a7(0x1f7,'5n7@')](a7(0x276,'tFQ1')+(isNotify?'开启':'关闭')+']'),console[a7(0x1e5,'v7$9')](a7(0x270,'ZZe(')+pinFilter[a7(0x242,'^&T[')](',\x20')+']'),console[a7(0x188,'8z]o')](a7(0x17d,'AhuM')+$[a7(0x172,'huG2')]+a7(0x24c,'iAwS')),console[a7(0x1f9,'($lU')](''),$['needRemoveCookieIndex']=[],await common['concTask'](taskThreads,cookiesArr,taskFnc),$[a7(0x244,'n2*3')]=![],$[a7(0x199,'8z]o')]=![];c[a7(0x1f3,'BNEH')]($[a7(0x1d1,'BNEH')]['length'],0x0)&&(cookiesArr=cookiesArr[a7(0x183,'SFNQ')]((j,k)=>!$[a7(0x1c2,'$Q31')][a7(0x18a,'@Y%s')](k+0x1)),$[a7(0x1d1,'BNEH')]=[]);const d=notify[a7(0x222,'huG2')]();d&&console[a7(0x225,'u#xX')](a7(0x1e2,'7$0M')+d[a7(0x24e,'BNEH')](/：/g,a7(0x16d,'*O6o')));}catch(j){if(c['CMoCN'](c[a7(0x274,'5n7@')],a7(0x18d,'JCQ['))){const o=g['slice'](0x0,0x2),p=h[a7(0x1fb,'25uk')](-0x2),q=i[a7(0x170,'ZZe(')](j-o['length']-p['length'],0x0),r='*'[a7(0x208,'rIQP')](q);return c[a7(0x1c3,'9fO%')](o+r,p);}else console[a7(0x265,'PBGg')]('❌\x20脚本运行遇到了错误\x0a'+j);}}async function taskFnc(c,d){const a8=a5,e={'RhFLD':function(t,u){return t===u;},'QQRMT':a8(0x195,'*To5'),'HJRyu':function(t,u){return t<=u;},'fSKwZ':function(t,u){return t-u;},'bZrQr':function(t,u){return t-u;},'zLFxw':function(t,u){return t+u;},'IuVQd':function(t,u){return t+u;},'ljAxK':a8(0x22e,'xGPi'),'GmaDy':function(t,u){return t-u;},'iyyrv':a8(0x1e3,'@Y%s'),'ZGMsh':a8(0x24a,'tFQ1'),'ALxDz':a8(0x221,'($lU'),'IjaVZ':function(t,u){return t==u;},'FTPIk':a8(0x25f,'VN9F'),'ZGpmj':'xycIi','GVbOL':function(t,u){return t-u;},'jheYP':function(t,u){return t(u);},'vsXVc':function(t,u){return t>u;},'fPEFM':function(t,u){return t!==u;},'diuEl':'signFreeHome','QeXTb':a8(0x248,'FkYb'),'vsXzp':'1.0.0','FzAaD':a8(0x27e,'*EXX'),'DLevk':'application/x-www-form-urlencoded','fUbdG':a8(0x176,'OSY&'),'yZyeK':function(t,u){return t===u;},'PdDaN':a8(0x267,'rIQP'),'yrvSP':a8(0x1e7,'SFNQ'),'WIoCM':'BjYWy','THTlo':a8(0x231,'VN9F'),'pCWXI':function(t,u,v){return t(u,v);},'TJTwm':function(t,u){return t===u;},'BeoLR':a8(0x1cf,'OSY&'),'RLpYZ':function(t,u,v){return t(u,v);},'IufBW':function(t,u){return t(u);},'RdaUY':function(t,u){return t===u;},'hxEqe':'已设置跳过运行当前账号','ANsby':a8(0x24f,'BAdM'),'mozjM':'PqLWy','NGbII':function(t,u){return t>u;},'JDyMv':a8(0x20e,'jZ*d'),'vAFCn':'kIuCn','uXTlR':'dTnlk','cKozt':function(t,u){return t(u);},'AFOcX':function(t,u,v){return t(u,v);},'ELNZJ':function(t,u){return t*u;},'QzrHG':function(t,u){return t===u;}};if($[a8(0x281,'BAdM')])return{'runEnd':!![]};const f=e['jheYP'](decodeURIComponent,common[a8(0x206,'*To5')](c,'pt_pin'));function g(t,u){const a9=a8;if(e[a9(0x219,'iAwS')](e[a9(0x1f5,'^&T[')],a9(0x1d9,'$Q31')))g['log']('['+h['productName']+a9(0x23e,'Oai2')),i[a9(0x177,'9w]Z')]('['+j['productName']+']打卡天数已满，快去兑换奖励吧~');else{if(e[a9(0x235,'Ded3')](t['length'],0x4))return'CAiyY'!==a9(0x1dd,'rIQP')?d:t;else{const x=t[a9(0x1c6,'5xGm')](0x0,0x2),y=t[a9(0x171,'rIQP')](-0x2),z=Math[a9(0x203,'SOwS')](e[a9(0x193,'VN9F')](e[a9(0x220,'JCQ[')](u,x['length']),y[a9(0x1ab,'tFQ1')]),0x0),A='*'[a9(0x215,'VN9F')](z);return e[a9(0x253,'79wb')](e[a9(0x1bf,'#Ft9')](x,A),y);}}}const h=e[a8(0x21a,'hCI^')](decodeURIComponent,f),j=e[a8(0x232,'v7$9')](g,h,0x6),k='【账号'+d+'】'+j+'：',l=notify[a8(0x234,'5xGm')](d,f);if(e[a8(0x18f,'*EXX')](pinFilter[a8(0x169,'JCQ[')],0x0)&&(pinFilter[a8(0x262,'NuJc')](f)||pinFilter[a8(0x1a5,'hCI^')](e['IufBW'](encodeURIComponent,f)))){if(e['RdaUY']('bZUWG',a8(0x25e,'*EXX'))){l['fix'](e['hxEqe']),console['log'](l['getInlineContent']()),$[a8(0x256,'*EXX')]['push'](d);return;}else d['log'](e[a8(0x1eb,'*To5')]);}const m=await common[a8(0x278,')#&O')](c);if(!m&&typeof m===a8(0x1ac,'OSY&')){if(e[a8(0x233,'($lU')]===a8(0x18c,'BNEH')){console['log'](k+'账号无效'),$['needRemoveCookieIndex'][a8(0x1f6,'*To5')](d);return;}else{let v=g[a8(0x1f2,'25uk')](h);i[a8(0x21d,'!7w5')](j+a8(0x21f,'huG2')+v);}}const n=common['genUA'](f);let o,p,q;p='',await e[a8(0x20b,'*O6o')](s,e[a8(0x252,'#Ft9')]);if(p){if(a8(0x19b,'79wb')===e['mozjM']){const v=p[a8(0x214,'25uk')],w=p['surplusCount']||0x0,x=p[a8(0x1c7,'NuJc')],y=p[a8(0x212,'@Y%s')]||![];if(Array[a8(0x21b,'PSQA')](v)&&e['NGbII'](v[a8(0x26a,'25uk')],0x0)){if(e[a8(0x254,'*O6o')](e[a8(0x226,'$Q31')],e['vAFCn']))for(let z=0x0;z<v[a8(0x1f1,'($lU')];z++){o=v[z];const A=o[a8(0x20d,'Ded3')]||'',B=o['needSignDays']||0x0,C=o[a8(0x198,'Ded3')]||0x0,D=o[a8(0x247,'@Y%s')],E=o[a8(0x260,'@Y%s')],F=o[a8(0x178,'W8!v')],G=o['jpNum'],H=o[a8(0x18b,'FkYb')]||0x3;q=B-C,console['log'](k+'['+(z+0x1)+']'+A+'['+D+']['+C+'/'+B+a8(0x217,'AhuM')+G+a8(0x19c,'YOb9'));if(C===B)console[a8(0x23a,')#&O')](k+'['+A+a8(0x175,'7$0M')),l['insert']('['+A+a8(0x185,'JCQ['));else{if('dTnlk'===e[a8(0x17a,'hCI^')])switch(H){case 0x0:console['log'](k+'['+A+a8(0x192,'oz0a')+C+'/'+B),l[a8(0x186,'W8!v')]('['+A+a8(0x279,'ZZe(')+C+'/'+B);break;case 0x1:console[a8(0x1a7,'NuJc')](k+'['+A+a8(0x19d,'*O6o')+q+'天'),l[a8(0x1e0,'BNEH')]('['+A+a8(0x1ea,'@Y%s')+q+'天');break;case 0x2:console[a8(0x1bc,'79wb')](k+'['+A+']今日已打卡，还需要打卡'+q+'天'),l[a8(0x273,'8z]o')]('['+A+a8(0x271,'*To5')+q+'天');break;case 0x3:console[a8(0x277,'iAwS')](k+'['+A+a8(0x264,'BNEH')+q+a8(0x27c,'5xGm')),await e['cKozt'](s,'signFreeSignIn'),await $[a8(0x1b6,'JCQ[')](e[a8(0x209,'FkYb')](parseInt,e[a8(0x1a8,'*To5')]($['waitTime'],0x1)+0x1f4,0xa));break;default:console[a8(0x1bb,'5xGm')](k+a8(0x182,'$Q31')+H+a8(0x20c,'FkYb')+C+'/'+B);break;}else f[a8(0x211,'7$0M')](g,h);}}else f['assign'](g,h);}else completedAccounts++;if(completedAccounts===cookiesArr['length']){if(e[a8(0x237,'^&T[')](a8(0x17b,'jZ*d'),'BwAgI')){console['log'](a8(0x1e9,'BAdM'));return;}else{const L=o+'['+p[a8(0x20d,'Ded3')]+']打卡成功，还需要打卡'+(q-0x1)+'天';r-0x1===0x0?(A['log']('['+B[a8(0x1b7,'#Ft9')]+']打卡成功，打卡天数已满，快去兑换奖励吧~'),C['insert']('['+D[a8(0x201,'PSQA')]+a8(0x168,'9fO%'))):(E[a8(0x1ed,'4C@I')](L),F[a8(0x186,'W8!v')]('['+G[a8(0x263,'v7$9')]+a8(0x1a6,'OSY&')+e['GmaDy'](H,0x1)+'天'));}}}else e=f[a8(0x191,'hCI^')];}if($['runEnd'])return{'runEnd':!![]};await $['wait'](parseInt(e[a8(0x202,'25uk')]($[a8(0x1c8,'jZ*d')]*0x1,0x1f4),0xa));async function r(M,N){const aa=a8;if(e[aa(0x1d2,'*To5')](e[aa(0x216,'BAdM')],e['ZGMsh']))e[aa(0x1b4,'OSY&')]=f;else try{if(e['ALxDz']!==aa(0x1aa,'Oai2'))e['log']('❌\x20脚本运行遇到了错误\x0a'+f);else switch(M){case aa(0x251,'9w]Z'):if(e[aa(0x20a,'rIQP')](N['code'],0x0)){if(N[aa(0x283,'AhuM')]&&N[aa(0x27f,'9fO%')]===!![])e['FTPIk']===e[aa(0x238,'8z]o')]?(h[aa(0x223,'BAdM')](i),j[aa(0x179,'JCQ[')]('['+k['productName']+']打卡成功，还需要打卡'+e[aa(0x246,'VeMn')](l,0x1)+'天')):p=N[aa(0x23c,'9fO%')];else{let R=common['getErrorMsg'](N['data']);console[aa(0x1da,'FkYb')](k+aa(0x249,'*EXX')+R);}}else{let S=common[aa(0x230,'$Q31')](N);console[aa(0x17f,'*To5')](k+aa(0x1fd,'v7$9')+S);}break;case aa(0x27a,'v7$9'):if(N['code']==0x0&&e[aa(0x1ec,'JCQ[')](N[aa(0x1dc,'NuJc')],!![])){const T=k+'['+o[aa(0x17e,'FkYb')]+aa(0x26c,'BNEH')+e['GmaDy'](q,0x1)+'天';e[aa(0x1ef,'*O6o')](q,0x1)===0x0?(console[aa(0x228,'&X42')]('['+o[aa(0x1b7,'#Ft9')]+aa(0x269,'iAwS')),l[aa(0x257,'5n7@')]('['+o[aa(0x280,'BAdM')]+aa(0x241,'W8!v'))):(console[aa(0x1a9,'VeMn')](T),l[aa(0x24d,'&X42')]('['+o['productName']+aa(0x23f,'$Q31')+(q-0x1)+'天'));}else{let U=common['getErrorMsg'](N);console['log'](k+aa(0x190,'9fO%')+U);}break;}}catch(V){console[aa(0x277,'iAwS')]('❌\x20未能正确处理\x20'+M+'\x20请求响应\x20'+(V['message']||V));}}async function s(M){const ab=a8;if($[ab(0x1c1,'BNEH')])return;let N='',O=null,P=null,Q=ab(0x1c5,'NuJc'),R={},S={};switch(M){case e['diuEl']:S={'appId':ab(0x22c,')#&O'),'functionId':M,'appid':e[ab(0x1f0,'VeMn')],'clientVersion':e['vsXzp'],'client':'H5','body':{'linkId':linkId},'version':ab(0x1d5,'huG2'),'ua':n,'t':!![]},R=await H5st[ab(0x250,'rIQP')](S),N='https://api.m.jd.com/',O=R[ab(0x26d,'$Q31')];break;case'signFreeSignIn':N=ab(0x1ae,'*O6o'),O={'functionId':M,'body':JSON[ab(0x22b,'SOwS')]({'linkId':linkId,'orderId':o[ab(0x1ee,'oz0a')]}),'cthr':0x1,'appid':'activities_platform','t':Date['now'](),'clientVersion':ab(0x218,'79wb'),'client':'H5'};break;default:console[ab(0x1f8,'huG2')](ab(0x205,'SFNQ')+M);return;}const T={};O&&Object[ab(0x25c,'SOwS')](O,T);if(P){if(e['fPEFM']('fmvkh',e[ab(0x1cd,'SFNQ')])){const Z=f(g);Z>=0x0&&(i[ab(0x27b,'YOb9')]=Z);}else Object[ab(0x23d,'$Q31')](P,T);}const U={'url':N,'method':Q,'headers':{'origin':'https://signfree.jd.com','Referer':ab(0x259,')#&O'),'User-Agent':n,'Cookie':c,'content-type':e['DLevk'],'accept':e[ab(0x240,'#Ft9')],'x-rp-client':'h5_1.0.0'},'params':P,'data':O,'timeout':0x7530};if(e[ab(0x22f,'*O6o')](Q,ab(0x245,'u#xX'))){if(ab(0x16b,'9w]Z')!=='YqOOh'){const a0=e[ab(0x1b2,'*EXX')](f,g);e[ab(0x239,'*O6o')](a0,0x0)&&e[ab(0x243,'!7w5')](a0,0x1)&&(i=a0);}else delete U['data'],delete U[ab(0x272,'tFQ1')][e[ab(0x22a,'9fO%')]];}const V=0x1;let W=0x0,X=null;while(W<V){e[ab(0x18e,'rIQP')](W,0x0)&&await $[ab(0x19a,'YOb9')](0x3e8);const a0=await common['request'](U);if(!a0['success']){if(ab(0x196,'VeMn')===e[ab(0x1fc,'YOb9')]){let a2=g['getErrorMsg'](h['data']);i['log'](j+'首页获取失败:\x20'+a2);}else{X=ab(0x1ce,'n2*3')+M+ab(0x16a,'7$0M')+a0['error'],W++;continue;}}if(!a0[ab(0x1df,'8z]o')]){if(e[ab(0x1db,'OSY&')]===e[ab(0x173,'5n7@')])e=f;else{X=ab(0x174,'FkYb')+M+ab(0x1be,'25uk'),W++;continue;}}await e[ab(0x25b,'OSY&')](r,M,a0[ab(0x261,'VeMn')]);break;}W>=V&&(e[ab(0x236,'AhuM')](e[ab(0x210,'u#xX')],'INFlc')?d=0x1:console[ab(0x1d8,'xGPi')](X));}}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)}
