faker3/jd_superbrandhall.js
2024-07-09 23:02:32 +08:00

16 lines
27 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.

/*
活动名称:超级品牌殿堂
环境变量jd_superbrandhall_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_superbrandhall_notify // 是否推送通知true/false默认不推送
jd_superbrandhall_pinFilter // 账号pin过滤多个用@进行分割
cron:18 8,18 * * *
*/
const $ = new Env('超级品牌殿堂')
const _0x1784b0=_0x37a3;(function(_0x59c245,_0x248a11){const _0x53a1a4=_0x37a3,_0x215a2d=_0x59c245();while(!![]){try{const _0x3e040d=-parseInt(_0x53a1a4(0x189,'^go['))/0x1*(-parseInt(_0x53a1a4(0xf2,'[660'))/0x2)+parseInt(_0x53a1a4(0x102,'0@Mr'))/0x3*(parseInt(_0x53a1a4(0x113,'*3j7'))/0x4)+-parseInt(_0x53a1a4(0x11b,'6qx8'))/0x5+parseInt(_0x53a1a4(0x1bc,'0@Mr'))/0x6+-parseInt(_0x53a1a4(0x1c6,'9SRD'))/0x7*(parseInt(_0x53a1a4(0x15c,'D6*^'))/0x8)+-parseInt(_0x53a1a4(0x174,'Cy6U'))/0x9+parseInt(_0x53a1a4(0x195,'wFtf'))/0xa*(parseInt(_0x53a1a4(0x176,'5fYw'))/0xb);if(_0x3e040d===_0x248a11)break;else _0x215a2d['push'](_0x215a2d['shift']());}catch(_0x5b34ea){_0x215a2d['push'](_0x215a2d['shift']());}}}(_0x44da,0x91ead));const jdCookie=require(_0x1784b0(0xf4,'hWRA')),notify=require(_0x1784b0(0x138,'FKjw')),common=require(_0x1784b0(0xe9,'gpjv'));function _0x44da(){const _0x56c710=['WQ4GDmoOW5ZcKdldJSkiW6G','WOVdQuC','W4xcOCkadSklb3raWQJcIG0NW4FcQ8oVjarHwSkfWOG','xCo5CNLeWO/dTw5MW4VcJ2/cV8kK','WOJdTH95WRZcQh3dLCoYWOnnqa','WOdcVezWW4NdGG','uJCY','p8k/iW','u+IVRoAYGUwNV+I2NetINjlcOoAxHowtP+w6LEAwNoAoLG','schcUSoAWPWKvxhcNW','44cW5O6q56ES44kN6kY05ywD6i+t5y6wW63cI8kfDxdcQG','dHHA','WP/dPu8YWPhdPG','WQpcNSkiW4fPW7ldKaZdUSkuWOJdMSopW5BcHc1Zsuydwa','pSoLW7ZcG8kJWORdQmkdh2JdKuSqeK1lWR5+W7aMjmohtCoYWQTk','4PMjWRxOHOhLRORKUOpOVjhOOyxPLzJPMkJMLjtPLz/ORPVNV5JPLjBOR4O','yr4s','dg9Sn8o1oSk+WRldVCoOiCoa','jSoaWPtcLW','W7SPomoKzY9LW619WOddH8kyFCoUxvSIAfKDW4/cKCoNgq','WRZdJcT+pICe','cXLEWOycW71bW6q','WQvlyq','WOJLTyRPO7ZLJQxLP6JLIzxVV5y','8yklVSol','nmk1mmoAW7pdUCoLWOqSWQqieNtcTa','nNpdRSoZ','WO7dSavfWOS','W5j7WQFcQSk2W69eWRddQvFdShuegsSj','oCoIW5pdMSkIumo8Eq','amkPW6tdUmkOW5j0x2tcRCkArCoCW6Lcd8kxoa','WRFdKqaWW5hcGmkP','W7GmnW','AhfOm8kftmoVrCkyW7aCWPZdTCo9W5FdNG','WO3cSCkdcq','FgfSgSkyACo0sSkLW6a5WOFdLmoV','WQhcLmkk','phpdT8o3','W4LVWRVcO8kBWPWhW6dcTG','WQNcMSkzW4q','zCkxpSopxmoqW6SU','W79YlG','WOlcVe1ZW6/dJ1/dLqq5W6tdPJxcVhFdKSk/fCo+W79X','W6xcH0m','WOP6o8kTWRWuWRNcTCkxafpcUW3dPG','WRddKCkqW5rIzWFcVb5xW5pdIqD8dSkFWRqDcH3dMa','BSkqj8oGrSoqW6S','WORcV8ktdq','6zAL6zMm5PE66zsNj8o/W60','W6S2aZhcOSkbWP4G','6lgI5A+V8jAaOZq','c8oWW5WFvs1NWQbY','uSoRBhu','WP7dTu8YWOldKmoawaVdIMu2W4JcVSo+ffNdNW','WRjazmkQj8oN','o8kKmmoPW6/cRmkHW4i5WOaggMtcP8oZqL98lhZcUCoPWQasCNNdNCodg8kNcCkzW5hcIu/dVffzWQeBWQ/dQNb7ymo2WPOBAbddRCkYWPtcOCkUW40wt8oYBCkQW6FdPMhdOCooWRVdG3CqlmkrbSkV','W6D8oSk+WQ3dHhZcHW','6AE06Acc5Asm6lEpla','WRhdMq4s','WROqBSooiW0','WPVcUefJW6NdG1/dNW','mSkNjCoRW7JdGSo3WP0S','B3zTmW','WRpcMCkr','W7RcNvtcGJfDhfGOdcddRw3cOWXd','pSkTvG','hCkZW6m','fmoRW4K','WQCTFSoMW5FcNZ3cLCodWRpdPemj','WR3dIJ9Bocq','56snWQVOVkBOOkpPLyVPMOFMLBhPLBq','WOJcT8klgmofdG','rmoTWQZcRmoJWQa0E07cSmkdDCov','WQ3cG8kykSorDW','WRddLGW','jCoeWPtcUYWowKNcGCkh','W4FcQCkZbSkWWRLRW7Dj','mSk3Ad0','WOH4w8kxc2TKWOpcKmoiESkMkW','ix7dS8oXWRK','WOJcUfX2','i8oGW4RcHmkcWPpdOmku','f2rNWO/cG8oqga','W7VcNuRcOI17','W6m4cCosFdS','fhz7','WPRdSSk0g8k3WRjXWR5IWQNdQXZdNrukFmoZFCo4WOTdvSkj','W4hcUSkt','W7uwrG','WRddGdrzaYymBmo4wSovm8krDNfRW5KFW48fWOC','FSk3W53dMmktBCoL','W6VcNgifzxDsqmo8B8oIdSk5','WPP+jSkj','WRldNq42W4ZcLSkJWQVdN8krW5G','WRSCBG','lZBcS259amoz','W4tcU8khg8kksq','W4pcR1uZWRpdVCoDuGZdIW','m++/GUMGRoApGa','loISPEAZQowrTow5TsK','WRmnACoD','eKKKW40dWRZcJCkQ','W6BdPSo9WQpcLCok','WRtdKmkQW4nfCG/cOqPaW7hdIaX/bSkwWPeSibFdLmk0W7ddRa','aSk3WOu','tshcPG','WQiTECoL','6ych556c5O2I6ycvluJdJq','W63cKwqpyNfzA8ofwSoogCkq','FSk3W5RdLCkaASoZ','WPP+jSkjWPOsWQZcQq','WQiQE8oGW5tcNt7cKmoBWOFdJgGK','ymk9W40','t3q1W7S/WQ/cMG','W7LtymkG','nmk1mmoCW67dPmoHWP8eWOeo','W67cJvdcOJfTauSlgWm','W7iSe8o0EG','W4ZdJmklFmoHWPddGaRcU8otWRCJh1S','oSkWe8o8W4rsW4FcI8oZxNFdPmk8xmoRWRhdNH8','W7eBrmo8dCo2W5FcUMlcUq','5lMZ55g+5BYW5yEMqCk/W7G','WOb6pmkoWQ8CWQq','WO3cQLT+W5RdHf/dNXWOW6NdQdFcSG','gCk5WOSt','s3z3mSkcBCoPFSocW5yQWPldJ8o4','WQqqD8oijqfEWOL3smkl','W5JdGSkpEmozWPZdMqy','WQ/dVSkVW43dS8kAEW','W4/cVmkopCkxwt4','W6/dRCoL','5lQ55yIa5yU36kkE5Aw46lwyCG','W7zxBCkY','qCorrMCqrCoCW40op2VdTGnnjLdcRh/dHa','fSoHW4SsAs9JWQL9lCoHcrtcGZTVxgtdICkEiG','W7XrymkOW4dcPmohvxDfwSkVbbnlW74','oufmWQddTmk2W6NcR8k7WP49WRDp','W70OcCoWzJC','5RAr6kw8W4FLNORNSO7LVAVLNylNUAZMTzpLIPO','6lEM5y+s5PE35PAx','omoUW4q','ArabW7u','W6ZdQSoR','FqqgW7W','W7fxESkMW4lcPq','td0IzSkZAmkjWQldN8o9','WQ3dItHEna','WQuNWOtcPYBdSHaoW6VdUSomi8o7vq','6lsy5y6V5PA15Pwp','W5/dQCovwCkvtmosmSkpW7NdLCo5W6y','W78ScSoY','5y6E5ygV5lUL5yMu77+ZW6m','FmknaSotqmoA','frzuWP4JW7bjW7i','dmokWRBcLNxcP0RdP8kFW5ddR0RdOmoTW7ldSCocW7hcPSo5g1lcGrW0WOmwi8kC','BHlcQxDYg8oL','k8kSgCoAW5L0W5a','WROAzW','qUkFQX0','W7JdGSkZW7tdRSkmEK0','W4/cSmkvemk2sdy','v1bPWPtcM8oCja','rchcOSox','4P6sWOxMNBVOG4dMRllNOk3LPAxNKixcRG','yXqqW7dcK8oJWRtcISkIWQ4WWRrIW5pdIh3dLSoEW4ddLgC','vSkRW5ScuIz9W6LzlCoaaXFcMW15CgtdICkXhSkBW50tCSoNW6O','l8osWOC','6lgM5AYq8yQYGmkE','5Bw46kY957+96ls36lYM6l2Y6kgJ5B6I5yIa6lEf5y2f','6lcO5A6i8yEXKCkY','mCk1jCo3W5ldO8oJ','WQNdNmoa','nhVdTSoMWRLw','WRJdJd9Cps8y','WOVKUO7LIQhLRkxMIyFKVkpMNklOJz/LVOZLPAVLKk8','eCk1W67dNSk1W7rJ','W6NdImkUW6ldLSkz','euGUW48','W47cUSkqgW','6AEu6Aou5AEr6lEteG','W5iIcCoJDZf0WRjlWOVdLSkt','WRhORRRMSkxLPQBOTlD/4P6CWR8','FSk3W5VdJmkeESoI','BgWT','bVglSyNcMEI8SEIHHEE5HEAEOXi','hCoQW40eqJP6WPz5j8oiaXJcNbTU','AHqbW53cR8oQWRdcI8kXWOGCWRv5W53dJ2W','WOdcTK8','q8oAuvGmrSoBW60Akq','5P656i6Q5B+E5AAd5yMq','WR/dG8kuW4jutaVcVG0','schcPCoMWRf8cJtdR8khWP5xD8kPW4u','lCkKf8o4','5y666yA454Ql5OoR57QK5P+ggCkQFJJcU8o0W4/dJCkZW5W','hmonWQpcKNpcGa','W7qzrmo0','eMJcS8kNW54k','W5JcSSkM','44gV6lAz5yYX','W6RcLwGjzhnrsCoHASoymmk8','mCorWOZcNZ0','WRldMCoYWRZcKmo0tq','W7WxvW','W6RcLwyoz3ftzCo4wCo/lSkx','WRCgC8oamaTLWO11sCkGdmkjiW','W4NcTmkahW','W784dIa','b8k2WPecWP3dIq','oMBdRSoIWQ8EWPe9WQxdOwXAW5C5WQWNwZddP8k5W44','W5ZdLSkwACo/WRFdHGlcUSozWQiQhvpdMciWWQ7dNCojqMJdMw/dT3jcct8','4P2OWP/OHl/MNlNOVRNOOBNPG6/LIRZKU7VPLzxOR63cMW','D2T/','5lQi5Pwe5Psa5REn5yUH','WRRcMSkeW5e','WQXkCa','WRldM8ksW7vcCa','zSkDaSoqxmoeW6SVWPlcN2RdKSkXcmo2F8otx8oTh8oOW6neW7ejWQe','FmkNW5NdKq','oCoGW5S','W7RdMSk8W6xdNSkJAeTK','WR/dLIjunI0mzSoGs8oypCktEa','FMPU','WPRdObT1WRJcG3VdJCosWOzZqmovyeT/ECk/W5PBW6VdG8ocvSoZW7NdSSk8rG','6AAB6Ace5Awe6lAXWPO','WRRdHcvC','WQLUwx3dGSoCW4aguSkLWOq3iW','hSoiWQFcGwpcQ1NdQ8ku','qc/dTCo8WOPwWRBdQg9pwCkPWPy','WPqMWPJcQJtdVW'];_0x44da=function(){return _0x56c710;};return _0x44da();}let taskThreads=process[_0x1784b0(0x170,'^ro4')][_0x1784b0(0x186,')lAt')]||'1';const runInterval=process[_0x1784b0(0x18e,'m]b#')][_0x1784b0(0x16b,'HbC^')]||_0x1784b0(0xfd,'0@Mr'),isNotify=(process[_0x1784b0(0x115,'D6*^')][_0x1784b0(0x18b,'3vtK')]||process[_0x1784b0(0xeb,'LbbP')][_0x1784b0(0xfa,'t^ts')])===_0x1784b0(0x1b6,'^ro4'),pinFilter=(process[_0x1784b0(0x1c2,'2eiV')]['jd_superbrandhall_pinFilter']||'')[_0x1784b0(0x15b,'f&W^')]('@'),maxThreads=0x3;let cookiesArr=Object[_0x1784b0(0x117,'kigI')](jdCookie)[_0x1784b0(0xfc,'8bjz')](_0x516da0=>jdCookie[_0x516da0])[_0x1784b0(0x13f,'2IoE')](_0x64af15=>_0x64af15);function _0x37a3(_0x35c0ab,_0x2bea06){const _0x44da09=_0x44da();return _0x37a3=function(_0x37a30b,_0x2a3d4a){_0x37a30b=_0x37a30b-0xe9;let _0x159c58=_0x44da09[_0x37a30b];if(_0x37a3['vqxDuL']===undefined){var _0x420a8c=function(_0x64af15){const _0x24d571='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d8636='',_0xf93124='';for(let _0x11b0b5=0x0,_0x26d156,_0xa6e5eb,_0x5d7b83=0x0;_0xa6e5eb=_0x64af15['charAt'](_0x5d7b83++);~_0xa6e5eb&&(_0x26d156=_0x11b0b5%0x4?_0x26d156*0x40+_0xa6e5eb:_0xa6e5eb,_0x11b0b5++%0x4)?_0x4d8636+=String['fromCharCode'](0xff&_0x26d156>>(-0x2*_0x11b0b5&0x6)):0x0){_0xa6e5eb=_0x24d571['indexOf'](_0xa6e5eb);}for(let _0x16ae2d=0x0,_0x319bf9=_0x4d8636['length'];_0x16ae2d<_0x319bf9;_0x16ae2d++){_0xf93124+='%'+('00'+_0x4d8636['charCodeAt'](_0x16ae2d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf93124);};const _0x516da0=function(_0x1656d5,_0x506a0b){let _0x2fb083=[],_0x10b163=0x0,_0x4a5d5a,_0x444f1f='';_0x1656d5=_0x420a8c(_0x1656d5);let _0x45e493;for(_0x45e493=0x0;_0x45e493<0x100;_0x45e493++){_0x2fb083[_0x45e493]=_0x45e493;}for(_0x45e493=0x0;_0x45e493<0x100;_0x45e493++){_0x10b163=(_0x10b163+_0x2fb083[_0x45e493]+_0x506a0b['charCodeAt'](_0x45e493%_0x506a0b['length']))%0x100,_0x4a5d5a=_0x2fb083[_0x45e493],_0x2fb083[_0x45e493]=_0x2fb083[_0x10b163],_0x2fb083[_0x10b163]=_0x4a5d5a;}_0x45e493=0x0,_0x10b163=0x0;for(let _0x1cf6ec=0x0;_0x1cf6ec<_0x1656d5['length'];_0x1cf6ec++){_0x45e493=(_0x45e493+0x1)%0x100,_0x10b163=(_0x10b163+_0x2fb083[_0x45e493])%0x100,_0x4a5d5a=_0x2fb083[_0x45e493],_0x2fb083[_0x45e493]=_0x2fb083[_0x10b163],_0x2fb083[_0x10b163]=_0x4a5d5a,_0x444f1f+=String['fromCharCode'](_0x1656d5['charCodeAt'](_0x1cf6ec)^_0x2fb083[(_0x2fb083[_0x45e493]+_0x2fb083[_0x10b163])%0x100]);}return _0x444f1f;};_0x37a3['acQGJI']=_0x516da0,_0x35c0ab=arguments,_0x37a3['vqxDuL']=!![];}const _0x369da8=_0x44da09[0x0],_0x3f1537=_0x37a30b+_0x369da8,_0x38d736=_0x35c0ab[_0x3f1537];return!_0x38d736?(_0x37a3['gkQCQg']===undefined&&(_0x37a3['gkQCQg']=!![]),_0x159c58=_0x37a3['acQGJI'](_0x159c58,_0x2a3d4a),_0x35c0ab[_0x3f1537]=_0x159c58):_0x159c58=_0x38d736,_0x159c58;},_0x37a3(_0x35c0ab,_0x2bea06);}!cookiesArr[0x0]&&($[_0x1784b0(0x139,'f&W^')]($[_0x1784b0(0x129,'3vtK')],_0x1784b0(0x182,'8bjz')),process[_0x1784b0(0xf7,'VH5Y')](0x1));!(async()=>{const _0x5b3e1d=_0x1784b0;notify[_0x5b3e1d(0x1bd,'gLHN')]({'title':$[_0x5b3e1d(0x19d,'2IoE')]}),await Main(),isNotify&&notify[_0x5b3e1d(0x14f,'Qx[Z')]()&&await notify['push']();})()[_0x1784b0(0x108,'3vtK')](_0x24d571=>$[_0x1784b0(0x16a,'t^ts')](_0x24d571))[_0x1784b0(0x140,'gLHN')](()=>$['done']());async function Main(){const _0x13dd78=_0x1784b0;try{try{const _0xf93124=parseInt(taskThreads);_0xf93124>0x0&&_0xf93124!==0x1&&(taskThreads=_0xf93124);}catch{taskThreads=0x1;}taskThreads=Math[_0x13dd78(0xf1,'VH5Y')](taskThreads,maxThreads),$[_0x13dd78(0x101,'(^EK')]=null;if(runInterval)try{const _0x11b0b5=parseInt(runInterval);_0x11b0b5>=0x0&&($[_0x13dd78(0x1a9,'Cy6U')]=_0x11b0b5);}catch{console[_0x13dd78(0x14e,'u@i&')](_0x13dd78(0x187,'05EX'));}console[_0x13dd78(0xea,'%Ni[')]('=========='+$[_0x13dd78(0x1ac,'n2CY')]+'变量开启状态=========='),console[_0x13dd78(0x19c,'8Qiy')](_0x13dd78(0x10c,'LbbP')+common[_0x13dd78(0x1a4,'(^EK')]()+']'),console[_0x13dd78(0x183,'MgK5')](_0x13dd78(0x1a8,'4X$2')+$['waitTime']/0x3e8+_0x13dd78(0x1be,'9Aks')),console[_0x13dd78(0x1cd,'vg0v')](_0x13dd78(0xfe,'[660')+(isNotify?'开启':'关闭')+']'),console[_0x13dd78(0x130,'VH5Y')]('账号过滤:\x20['+pinFilter[_0x13dd78(0x144,'(Npc')](',\x20')+']'),console[_0x13dd78(0x188,'6qx8')](_0x13dd78(0x178,'0@Mr')+$['name']+_0x13dd78(0x154,'MgK5')),console[_0x13dd78(0x17e,'^go[')](''),$[_0x13dd78(0xec,'gLHN')]=[],await common[_0x13dd78(0x132,'*3j7')](taskThreads,cookiesArr,taskFnc),$[_0x13dd78(0x152,'8bjz')]=![],$[_0x13dd78(0x1cb,'Xq32')]=![];$[_0x13dd78(0x119,'FKjw')]['length']>0x0&&(cookiesArr=cookiesArr[_0x13dd78(0x1bf,'Ow6m')]((_0x26d156,_0xa6e5eb)=>!$[_0x13dd78(0x185,'8Qiy')][_0x13dd78(0xf8,'(Npc')](_0xa6e5eb+0x1)),$[_0x13dd78(0x1a5,'t^ts')]=[]);const _0x4d8636=notify[_0x13dd78(0x1c3,'f&W^')]();_0x4d8636&&console[_0x13dd78(0x158,'gpjv')](_0x13dd78(0x14b,'wFtf')+_0x4d8636[_0x13dd78(0x100,'wFtf')](//g,_0x13dd78(0x131,'MgK5')));}catch(_0x5d7b83){console[_0x13dd78(0x17f,'Q!Ed')](_0x13dd78(0x165,'Qx[Z')+_0x5d7b83);}}async function taskFnc(_0x16ae2d,_0x319bf9){const _0x1b3c26=_0x1784b0;if($[_0x1b3c26(0x1c1,'9Aks')])return{'runEnd':!![]};const _0x1656d5=decodeURIComponent(common[_0x1b3c26(0x191,'Q!Ed')](_0x16ae2d,_0x1b3c26(0x12b,'HbC^')));function _0x506a0b(_0x26b104,_0x3451ee){const _0x5ad3ff=_0x1b3c26;if(_0x26b104[_0x5ad3ff(0x123,'kigI')]<=0x4)return _0x26b104;else{const _0x11ea28=_0x26b104[_0x5ad3ff(0x1c7,'2IoE')](0x0,0x2),_0x5ba45d=_0x26b104[_0x5ad3ff(0x125,'gLHN')](-0x2),_0x42b201=Math[_0x5ad3ff(0x16d,')lAt')](_0x3451ee-_0x11ea28[_0x5ad3ff(0x17d,'u@i&')]-_0x5ba45d[_0x5ad3ff(0xf9,'D6*^')],0x0),_0x36d799='*'[_0x5ad3ff(0x184,'hWRA')](_0x42b201);return _0x11ea28+_0x36d799+_0x5ba45d;}}const _0x2fb083=decodeURIComponent(_0x1656d5),_0x10b163=_0x506a0b(_0x2fb083,0x6),_0x4a5d5a=_0x1b3c26(0x159,'y2&s')+_0x319bf9+'】'+_0x10b163+'',_0x444f1f=notify[_0x1b3c26(0x155,'y2&s')](_0x319bf9,_0x1656d5);if(pinFilter[_0x1b3c26(0x1b3,'VH5Y')]>0x0&&(pinFilter[_0x1b3c26(0x18d,'MgK5')](_0x1656d5)||pinFilter[_0x1b3c26(0x1a0,'HbC^')](encodeURIComponent(_0x1656d5)))){_0x444f1f[_0x1b3c26(0x121,'D6*^')](_0x1b3c26(0x13b,'D6*^')),console[_0x1b3c26(0xfb,'F%pm')](_0x444f1f[_0x1b3c26(0x14d,'6qx8')]()),$[_0x1b3c26(0x1a2,'u@i&')][_0x1b3c26(0x122,'6qx8')](_0x319bf9);return;}const _0x45e493=await common[_0x1b3c26(0x19b,'^ro4')](_0x16ae2d);if(!_0x45e493&&typeof _0x45e493==='boolean'){console[_0x1b3c26(0x11f,')lAt')](_0x4a5d5a+_0x1b3c26(0x127,'^go[')),_0x444f1f[_0x1b3c26(0x179,'hWRA')](_0x1b3c26(0x11e,'m]b#')),$[_0x1b3c26(0x137,'6qx8')][_0x1b3c26(0x16c,'wFtf')](_0x319bf9);return;}const _0x1cf6ec=common[_0x1b3c26(0x193,'05EX')](_0x1656d5);let _0x307362=![],_0x241a89,_0x1148d7,_0x2caecb,_0x592d11,_0x4bc54f;_0x1148d7='',await _0x2503ce(_0x1b3c26(0x164,'8!jZ')),await $['wait'](parseInt($['waitTime']*0x1+0x1f4,0xa));if($[_0x1b3c26(0x1cc,'3vtK')]||_0x307362)return;if(_0x1148d7){const _0x386f10=_0x1148d7[_0x1b3c26(0x11a,'kigI')],_0x5d6b71=_0x386f10?.[_0x1b3c26(0x17c,'05EX')]||'';_0x592d11=_0x386f10?.[_0x1b3c26(0x10b,'LbbP')],_0x2caecb=_0x386f10?.[_0x1b3c26(0x14c,'FKjw')];if(_0x5d6b71){_0x241a89='',await _0x2503ce(_0x1b3c26(0x10a,')(*3')),await $['wait'](parseInt($[_0x1b3c26(0x1b4,'u@i&')]*0x1+0x1f4,0xa));if(_0x241a89)for(const _0x27bd49 of _0x241a89?.[_0x1b3c26(0x1b0,'0@Mr')]||[]){_0x4bc54f=_0x27bd49;if(_0x4bc54f[_0x1b3c26(0x109,'8!jZ')]){let _0x464d03=_0x4bc54f[_0x1b3c26(0xed,'wFtf')]||[],_0x2cfcc6='';if(_0x464d03&&_0x464d03['length']>0x0)for(const _0x190c82 of _0x464d03){const _0x47dfc4=_0x190c82[_0x1b3c26(0x124,'^go[')];switch(_0x47dfc4){case 0x3:_0x2cfcc6='['+_0x190c82[_0x1b3c26(0x111,'VH5Y')]+_0x1b3c26(0x13a,'8bjz');break;default:_0x2cfcc6='['+_0x190c82['rewardName']+']';break;}}else _0x2cfcc6=_0x1b3c26(0x150,'0@Mr');console['log'](_0x4a5d5a+'['+_0x4bc54f['assignmentName']+_0x1b3c26(0x18f,'2eiV')+_0x2cfcc6);continue;}console[_0x1b3c26(0x169,'m]b#')](_0x4a5d5a+_0x1b3c26(0x12a,'cVc)')+_0x4bc54f[_0x1b3c26(0x10e,'u@i&')]+']'),await $[_0x1b3c26(0xef,'(^EK')](parseInt($[_0x1b3c26(0x12c,'MgK5')]*0x1+0x1f4,0xa));let _0xe3950b;_0x4bc54f[_0x1b3c26(0x15f,'VH5Y')]==_0x1b3c26(0x11d,'t^ts')?_0xe3950b=0x2:_0xe3950b=0x1;for(let _0x2ae395=0x0;_0x2ae395<_0xe3950b;_0x2ae395++){await _0x2503ce(_0x1b3c26(0x194,'E&u!')),await $['wait'](parseInt($[_0x1b3c26(0x1c9,')lAt')]*0x1+0x3e8,0xa));}}}else console['log'](_0x4a5d5a+_0x1b3c26(0x167,'f&W^'));}if($[_0x1b3c26(0x1cc,'3vtK')])return{'runEnd':!![]};await $[_0x1b3c26(0x168,'8Qiy')](parseInt($[_0x1b3c26(0x112,'8!jZ')]*0x1+0x1f4,0xa));async function _0x3a1be1(_0x4b514a,_0xba7f1b){const _0x3a7917=_0x1b3c26;try{switch(_0x4b514a){case _0x3a7917(0x12d,'y2&s'):_0xba7f1b[_0x3a7917(0x145,'%Ni[')]==='0'&&_0xba7f1b[_0x3a7917(0x135,'8bjz')]?_0xba7f1b['data'][_0x3a7917(0x114,'%Ni[')]==='0'?_0x1148d7=_0xba7f1b[_0x3a7917(0x153,')(*3')]?.['result']:(msg=common[_0x3a7917(0x106,'Q!Ed')](_0xba7f1b[_0x3a7917(0x18a,'f&W^')]),_0xba7f1b[_0x3a7917(0x160,'%Ni[')][_0x3a7917(0x1a6,'HbC^')]==='2001'?console[_0x3a7917(0x1b7,'9Aks')](_0x4a5d5a+_0x3a7917(0x1b1,'MgK5')+_0xba7f1b['data'][_0x3a7917(0x142,'I1YN')]+_0x3a7917(0xf5,'F%pm')):console[_0x3a7917(0x1a3,'Xq32')](_0x4a5d5a+_0x3a7917(0x172,'6qx8')+_0xba7f1b[_0x3a7917(0x1c8,'u@i&')]['bizCode']+']'+msg)):(msg=common['getErrorMsg'](_0xba7f1b),console[_0x3a7917(0x166,'^ro4')](_0x4a5d5a+_0x3a7917(0x146,'f&W^')+_0xba7f1b[_0x3a7917(0x161,'Cy6U')]+']'+msg));break;case _0x3a7917(0x196,'I1YN'):_0xba7f1b[_0x3a7917(0x19a,'Ow6m')]==='0'&&_0xba7f1b['data']?_0xba7f1b[_0x3a7917(0x19f,'8Qiy')][_0x3a7917(0x197,'2eiV')]==='0'?_0x241a89=_0xba7f1b[_0x3a7917(0x173,'gLHN')]?.[_0x3a7917(0x143,'*3j7')]:(msg=common['getErrorMsg'](_0xba7f1b[_0x3a7917(0x1b2,'2eiV')]),console[_0x3a7917(0x17e,'^go[')](_0x4a5d5a+'任务列表失败['+_0xba7f1b['data'][_0x3a7917(0x12f,')(*3')]+']'+msg)):(msg=common['getErrorMsg'](_0xba7f1b),console[_0x3a7917(0x166,'^ro4')](_0x4a5d5a+_0x3a7917(0x116,'f&W^')+_0xba7f1b[_0x3a7917(0x1c5,'4X$2')]+']'+msg));break;case _0x3a7917(0x199,'^ro4'):if(_0xba7f1b['code']==='0'&&_0xba7f1b['data']){if(_0xba7f1b[_0x3a7917(0x1a7,'Ow6m')]['bizCode']==='0'){let _0x296d7f=_0xba7f1b[_0x3a7917(0x120,'6qx8')]?.[_0x3a7917(0x1ae,'m]b#')][_0x3a7917(0x134,'cVc)')]||[];if(_0x296d7f&&_0x296d7f[_0x3a7917(0x11c,'3vtK')]>0x0)for(const _0x333951 of _0x296d7f){const _0x2ad0da=_0x333951[_0x3a7917(0x1b5,'Q!Ed')];switch(_0x2ad0da){case 0x3:console[_0x3a7917(0x15d,'LbbP')](''+_0x4a5d5a+_0x333951[_0x3a7917(0x175,'y2&s')]+'['+_0x333951[_0x3a7917(0x13d,'Q!Ed')]+_0x3a7917(0x13c,'F%pm')),_0x444f1f[_0x3a7917(0x162,'F%pm')](_0x333951[_0x3a7917(0x151,'t^ts')]+'['+_0x333951[_0x3a7917(0x133,'%Ni[')]+_0x3a7917(0x1aa,'Qx[Z'));break;default:console[_0x3a7917(0x17f,'Q!Ed')](''+_0x4a5d5a+_0x333951[_0x3a7917(0x16e,'*3j7')]),_0x444f1f[_0x3a7917(0xf3,'%Ni[')](''+_0x333951['awardName']);break;}}else console[_0x3a7917(0x1a1,'0@Mr')](_0x4a5d5a+'['+_0x4bc54f[_0x3a7917(0x16f,'gLHN')]+_0x3a7917(0x141,'VH5Y'));}else msg=common[_0x3a7917(0x107,'Xq32')](_0xba7f1b[_0x3a7917(0x105,'kigI')]),console[_0x3a7917(0x11f,')lAt')](_0x4a5d5a+'['+_0x4bc54f['assignmentName']+']任务失败['+_0xba7f1b[_0x3a7917(0x156,'LbbP')][_0x3a7917(0x18c,'gLHN')]+']'+msg);}else msg=common[_0x3a7917(0xf0,'2eiV')](_0xba7f1b),console[_0x3a7917(0x188,'6qx8')](_0x4a5d5a+'['+_0x4bc54f[_0x3a7917(0x17b,'n2CY')]+']任务失败['+_0xba7f1b['code']+']'+msg);break;}}catch(_0x5c79a8){console[_0x3a7917(0x1bb,'FKjw')](_0x3a7917(0x136,'gLHN')+_0x4b514a+_0x3a7917(0xf6,'wFtf')+(_0x5c79a8[_0x3a7917(0x10d,'(^EK')]||_0x5c79a8));}}async function _0x2503ce(_0xeba986){const _0x47a1c3=_0x1b3c26;if($['runEnd'])return;let _0x30166d='',_0x13923a=null,_0x3398b3=null,_0x49e106='POST';switch(_0xeba986){case _0x47a1c3(0x171,'05EX'):_0x30166d=_0x47a1c3(0x17a,'%Ni['),_0x13923a={'functionId':_0xeba986,'body':JSON['stringify']({'source':_0x47a1c3(0x181,'8bjz')}),'appid':_0x47a1c3(0x126,'S7gf'),'t':Date['now'](),'client':_0x47a1c3(0x1b9,')(*3')};break;case _0x47a1c3(0x1ad,'hWRA'):_0x30166d='https://api.m.jd.com/',_0x13923a={'functionId':_0xeba986,'body':JSON[_0x47a1c3(0x1c4,'gpjv')]({'source':_0x47a1c3(0x19e,'E&u!'),'activityId':_0x592d11}),'appid':_0x47a1c3(0x110,'^ro4'),'t':Date[_0x47a1c3(0x1ba,'I1YN')](),'client':_0x47a1c3(0x13e,'t^ts')};break;case _0x47a1c3(0x1b8,'Xq32'):_0x30166d=_0x47a1c3(0x163,'2IoE'),_0x13923a={'functionId':_0xeba986,'body':JSON[_0x47a1c3(0x1ab,'FKjw')]({'source':'hall_1111','activityId':_0x592d11,'completionFlag':0x1,'encryptProjectId':_0x2caecb,'encryptAssignmentId':_0x4bc54f[_0x47a1c3(0x118,'Qx[Z')],'assignmentType':0x0,'actionType':0x0}),'appid':_0x47a1c3(0x126,'S7gf'),'t':Date['now'](),'client':_0x47a1c3(0x14a,'^ro4')};break;default:console['log']('❌\x20未知请求\x20'+_0xeba986);return;}const _0x39e1cf={};_0x13923a&&Object[_0x47a1c3(0x157,'5fYw')](_0x13923a,_0x39e1cf);_0x3398b3&&Object[_0x47a1c3(0x177,'S7gf')](_0x3398b3,_0x39e1cf);const _0x484e51={'url':_0x30166d,'method':_0x49e106,'headers':{'origin':'https://prodev.m.jd.com','Referer':_0x47a1c3(0x1af,'Q!Ed'),'User-Agent':_0x1cf6ec,'Cookie':_0x16ae2d,'content-type':'application/x-www-form-urlencoded','accept':'application/json,\x20text/plain,\x20*/*'},'params':_0x3398b3,'data':_0x13923a,'timeout':0x7530};_0x49e106===_0x47a1c3(0x198,'9SRD')&&(delete _0x484e51['data'],delete _0x484e51['headers'][_0x47a1c3(0x147,'3vtK')]);const _0x596487=0x1;let _0xf14c7e=0x0,_0x1d82f6=null;while(_0xf14c7e<_0x596487){_0xf14c7e>0x0&&await $[_0x47a1c3(0x10f,'F%pm')](0x3e8);const _0x421112=await common[_0x47a1c3(0x149,'wFtf')](_0x484e51);if(!_0x421112[_0x47a1c3(0x12e,'[660')]){_0x1d82f6=_0x47a1c3(0x190,'S7gf')+_0xeba986+_0x47a1c3(0x148,'3vtK')+_0x421112['error'],_0xf14c7e++;continue;}if(!_0x421112[_0x47a1c3(0x192,'2IoE')]){_0x1d82f6='🚫\x20'+_0xeba986+_0x47a1c3(0x180,'5fYw'),_0xf14c7e++;continue;}await _0x3a1be1(_0xeba986,_0x421112['data']);break;}_0xf14c7e>=_0x596487&&console[_0x47a1c3(0x103,'wFtf')](_0x1d82f6);}}
// 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)}