mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
32 lines
58 KiB
JavaScript
32 lines
58 KiB
JavaScript
/*
|
||
活动名称:批量店铺签到 · 超级无线/超级会员(积分签到专用)
|
||
活动链接:https://lzkj-isv.isvjd.com/sign/signActivity2?activityId=<活动id>
|
||
https://lzkj-isv.isvjd.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||
https://cjhy-isv.isvjcloud.com/sign/signActivity?activityId=<活动id>
|
||
https://cjhy-isv.isvjcloud.com/sign/sevenDay/signActivity?activityId=<活动id>
|
||
环境变量:jd_wxSignPoint_sign_lzkj_Ids // 超级无线签到有礼活动id,多个用英文逗号分割
|
||
jd_wxSignPoint_sevenDay_lzkj_Ids // 超级无线7日签到活动id,多个用英文逗号分割
|
||
jd_wxSignPoint_sign_cjhy_Ids // 超级会员签到有礼活动id,多个用英文逗号分割
|
||
jd_wxSignPoint_sevenDay_cjhy_Ids // 超级会员7日签到活动id,多个用英文逗号分割
|
||
jd_wxSignPoint_lzkjInterval // 自定义超级无线活动签到间隔时长(整数,单位毫秒),默认500ms
|
||
jd_wxSignPoint_cjhyInterval // 自定义超级会员活动签到间隔时长(整数,单位毫秒),默认1000ms
|
||
jd_wxSignPoint_lzkjFilter // 账号pin过滤(跳过不跑),多个用户名用@分割
|
||
jd_wxSignPoint_cjhyFilter // 账号pin过滤(跳过不跑),多个用户名用@分割
|
||
jd_wxSignPoint_notify // 是否推送通知(true/false),默认不推送
|
||
jd_wxSignPoint_maxRetry // 签到失败时的最大重试次数(整数),默认0
|
||
jd_wxSignPoint_forbiddenQuit // 当连续请求IP被限制时是否跳出即停止运行脚本(true/false),默认停止运行
|
||
|
||
不同环境变量对应不同链接类型注意区分,官方接口垃圾,中奖一切随缘,打印仅供参考
|
||
脚本无法跳过黑号(响应擦肩),请主动设置过滤账号以免造成堵塞
|
||
|
||
⚠ 此脚本是 jd_wxSign.js 脚本的复制,两者功能完全一致仅变量不同,推出此本的目的是为了满足需要将积分签到活动分开运行的需求
|
||
|
||
cron: 1 1 1 1 * jd_wxSignPoint.js
|
||
|
||
*/
|
||
|
||
const $ = new Env('批量店铺积分签到(超级无线/超级会员)')
|
||
const _0x153f99=_0x536b;(function(_0x3fcf33,_0x1c0e19){const _0x5040ba=_0x536b,_0x47d1f3=_0x3fcf33();while(!![]){try{const _0x5134d6=-parseInt(_0x5040ba(0x1b0,'8u$P'))/0x1+-parseInt(_0x5040ba(0x1a5,'62yt'))/0x2*(parseInt(_0x5040ba(0x335,']s(#'))/0x3)+-parseInt(_0x5040ba(0x27a,'Zlpu'))/0x4+parseInt(_0x5040ba(0x100,'@zpT'))/0x5*(parseInt(_0x5040ba(0x28a,'22[4'))/0x6)+-parseInt(_0x5040ba(0x1c8,'P1T1'))/0x7+parseInt(_0x5040ba(0x2a7,'22[4'))/0x8+parseInt(_0x5040ba(0x149,'7C7t'))/0x9*(parseInt(_0x5040ba(0x16f,'UZ$C'))/0xa);if(_0x5134d6===_0x1c0e19)break;else _0x47d1f3['push'](_0x47d1f3['shift']());}catch(_0x4f7b7a){_0x47d1f3['push'](_0x47d1f3['shift']());}}}(_0x4ad1,0x6b767));function _0x536b(_0x911c9b,_0x22781b){const _0x4ad1e7=_0x4ad1();return _0x536b=function(_0x536b21,_0x358207){_0x536b21=_0x536b21-0xd8;let _0x45dc31=_0x4ad1e7[_0x536b21];if(_0x536b['cvgtdz']===undefined){var _0x1a9c46=function(_0x32e4e0){const _0x49c7ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25eee='',_0x40ebfb='';for(let _0x58c594=0x0,_0x685483,_0x3a2fc3,_0xdacd41=0x0;_0x3a2fc3=_0x32e4e0['charAt'](_0xdacd41++);~_0x3a2fc3&&(_0x685483=_0x58c594%0x4?_0x685483*0x40+_0x3a2fc3:_0x3a2fc3,_0x58c594++%0x4)?_0x25eee+=String['fromCharCode'](0xff&_0x685483>>(-0x2*_0x58c594&0x6)):0x0){_0x3a2fc3=_0x49c7ad['indexOf'](_0x3a2fc3);}for(let _0x2ac2a0=0x0,_0x170437=_0x25eee['length'];_0x2ac2a0<_0x170437;_0x2ac2a0++){_0x40ebfb+='%'+('00'+_0x25eee['charCodeAt'](_0x2ac2a0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x40ebfb);};const _0x15bb7f=function(_0x27acc8,_0x4a931a){let _0x870640=[],_0x370a44=0x0,_0x251e88,_0x628879='';_0x27acc8=_0x1a9c46(_0x27acc8);let _0x50051c;for(_0x50051c=0x0;_0x50051c<0x100;_0x50051c++){_0x870640[_0x50051c]=_0x50051c;}for(_0x50051c=0x0;_0x50051c<0x100;_0x50051c++){_0x370a44=(_0x370a44+_0x870640[_0x50051c]+_0x4a931a['charCodeAt'](_0x50051c%_0x4a931a['length']))%0x100,_0x251e88=_0x870640[_0x50051c],_0x870640[_0x50051c]=_0x870640[_0x370a44],_0x870640[_0x370a44]=_0x251e88;}_0x50051c=0x0,_0x370a44=0x0;for(let _0xeafaa6=0x0;_0xeafaa6<_0x27acc8['length'];_0xeafaa6++){_0x50051c=(_0x50051c+0x1)%0x100,_0x370a44=(_0x370a44+_0x870640[_0x50051c])%0x100,_0x251e88=_0x870640[_0x50051c],_0x870640[_0x50051c]=_0x870640[_0x370a44],_0x870640[_0x370a44]=_0x251e88,_0x628879+=String['fromCharCode'](_0x27acc8['charCodeAt'](_0xeafaa6)^_0x870640[(_0x870640[_0x50051c]+_0x870640[_0x370a44])%0x100]);}return _0x628879;};_0x536b['VOkGLO']=_0x15bb7f,_0x911c9b=arguments,_0x536b['cvgtdz']=!![];}const _0x46ce4c=_0x4ad1e7[0x0],_0x1e8b6b=_0x536b21+_0x46ce4c,_0x4562ea=_0x911c9b[_0x1e8b6b];return!_0x4562ea?(_0x536b['LOXAzd']===undefined&&(_0x536b['LOXAzd']=!![]),_0x45dc31=_0x536b['VOkGLO'](_0x45dc31,_0x358207),_0x911c9b[_0x1e8b6b]=_0x45dc31):_0x45dc31=_0x4562ea,_0x45dc31;},_0x536b(_0x911c9b,_0x22781b);}const jdCookie=require(_0x153f99(0xd8,'m&I]')),common=require(_0x153f99(0x1ec,'sSK]')),notify=require(_0x153f99(0x222,'cJYv')),getToken=require('./utils/Rebels_Token'),{wuxianDefense}=require(_0x153f99(0x253,'6Mh0')),{wuxian_savePrize}=require(_0x153f99(0xf2,'AJ*v')),lzkj_signInterval=process['env'][_0x153f99(0x311,'!)w3')]||_0x153f99(0x15f,'62yt'),cjhy_signInterval=process['env'][_0x153f99(0x241,'zvQX')]||_0x153f99(0x321,'FN&O'),isNotify=(process[_0x153f99(0x296,'UZ$C')][_0x153f99(0x239,'8u$P')]||process[_0x153f99(0x26d,'62yt')][_0x153f99(0xf8,'8i@1')])===_0x153f99(0x2ef,'Zlpu');let activityIdList1=(process[_0x153f99(0x243,'xuuY')]['jd_wxSignPoint_sevenDay_lzkj_Ids']||process['env']['LZKJ_SEVENDAY_POINT']||'')[_0x153f99(0x17f,']s(#')](','),activityIdList2=(process['env'][_0x153f99(0x343,'Zlpu')]||process['env']['LZKJ_SIGN_POINT']||'')[_0x153f99(0x207,'v5*I')](','),activityIdList3=(process['env'][_0x153f99(0x2dd,'fIt!')]||process[_0x153f99(0x133,'VGyk')][_0x153f99(0x1b1,'kF]W')]||'')[_0x153f99(0x207,'v5*I')](','),activityIdList4=(process[_0x153f99(0x22f,'c(A6')][_0x153f99(0x156,'kF]W')]||process[_0x153f99(0x1e3,'7uYz')][_0x153f99(0x2eb,'Zlpu')]||'')[_0x153f99(0x293,'62yt')](','),lzkjFilter=(process[_0x153f99(0x2ad,'RcXW')][_0x153f99(0x31f,'O2pP')]||'')['split']('@'),cjhyFilter=(process[_0x153f99(0x325,']o]e')]['jd_wxSignPoint_cjhyFilter']||'')[_0x153f99(0x318,'VGyk')]('@');const forbiddenQuit=!(process['env'][_0x153f99(0x1a8,'8L%8')]==='false');let signFailMaxRetryTimes=process['env'][_0x153f99(0x1a9,'dZ6v')]||'0';const maxForbiddenRetryTimes=0x5;let ActInfoMap=new Map(),cookie='',originCookie='',activityCookie='';const cookiesArr=Object[_0x153f99(0x146,'!t$R')](jdCookie)[_0x153f99(0x14e,'fIt!')](_0x15bb7f=>jdCookie[_0x15bb7f])[_0x153f99(0x1e7,'62yt')](_0x32e4e0=>_0x32e4e0);!cookiesArr[0x0]&&($['msg']($['name'],_0x153f99(0x18a,'1pjn')),process[_0x153f99(0x233,'O2pP')](0x1));!(async()=>{const _0x409c63=_0x153f99;console[_0x409c63(0x10e,'zvQX')](_0x409c63(0x315,'t8wT')+$[_0x409c63(0x12f,'c(A6')]+'变量开启状态=========='),console[_0x409c63(0x118,'y7V7')](_0x409c63(0x102,'RcXW')+common[_0x409c63(0x234,'&#ma')]()+']'),console['log'](_0x409c63(0x28e,'8L%8')+lzkj_signInterval+_0x409c63(0x28d,'%anR')),console[_0x409c63(0x301,'m&I]')](_0x409c63(0x1d8,'sSK]')+cjhy_signInterval+_0x409c63(0x1ae,'Zlpu')),console[_0x409c63(0x2ab,'6Mh0')](_0x409c63(0x32a,'v5*I')+lzkjFilter['join'](',\x20')+']'),console[_0x409c63(0x1ff,']s(#')](_0x409c63(0x33a,'xfVZ')+cjhyFilter[_0x409c63(0x10c,'sSK]')](',\x20')+']'),console[_0x409c63(0x26f,'sSK]')](_0x409c63(0x15a,'GDec')+(isNotify?'开启':'关闭')+']'),console[_0x409c63(0x118,'y7V7')](_0x409c63(0x2cf,'xfVZ')+signFailMaxRetryTimes+']'),console[_0x409c63(0x240,'O2pP')](_0x409c63(0x232,'IPgc')+$[_0x409c63(0x24b,'AJ*v')]+_0x409c63(0x223,'h@0e'));function _0x49c7ad(_0x40ebfb){const _0x1df11e=_0x409c63;return[...new Set(_0x40ebfb[_0x1df11e(0x327,']o]e')](_0x58c594=>_0x58c594!==''))];}function _0x25eee(_0x685483,_0x3a2fc3){return _0x685483['map'](_0xdacd41=>{const _0x1d7024=_0x536b;if(_0xdacd41['includes'](':')){const [_0x2ac2a0,_0x170437]=_0xdacd41[_0x1d7024(0x314,'7uYz')](':');return ActInfoMap['set'](_0x2ac2a0,{'venderId':_0x170437,'activityType':_0x3a2fc3}),_0x2ac2a0;}return _0xdacd41;});}activityIdList1=_0x25eee(_0x49c7ad(activityIdList1),0x12),activityIdList2=_0x25eee(_0x49c7ad(activityIdList2),0xf),activityIdList3=_0x25eee(_0x49c7ad(activityIdList3),0x12),activityIdList4=_0x25eee(_0x49c7ad(activityIdList4),0xf);try{const _0x27acc8=parseInt(signFailMaxRetryTimes);signFailMaxRetryTimes=_0x27acc8>0x0?_0x27acc8:0x0;}catch{signFailMaxRetryTimes=0x0;}if(activityIdList1[_0x409c63(0x27d,'sSK]')]<=0x0&&activityIdList2[_0x409c63(0x1dd,'xfVZ')]<=0x0&&activityIdList3[_0x409c63(0x19b,'h@0e')]<=0x0&&activityIdList4[_0x409c63(0x1dd,'xfVZ')]<=0x0){console[_0x409c63(0x144,'v5*I')](_0x409c63(0x165,'P1T1'));return;}notify[_0x409c63(0x147,'LLB8')]({'title':$[_0x409c63(0x344,'1pjn')]});for(let _0x4a931a=0x0;_0x4a931a<cookiesArr[_0x409c63(0x1a3,'7uYz')];_0x4a931a++){$[_0x409c63(0x227,']s(#')]=_0x4a931a+0x1,cookie=cookiesArr[_0x4a931a],originCookie=cookiesArr[_0x4a931a],$[_0x409c63(0x166,'O2pP')]=decodeURIComponent(common[_0x409c63(0x290,'LLB8')](cookie,'pt_pin')),$['UA']=common[_0x409c63(0x33b,'O2pP')]($['UserName']),$['UUID']=common[_0x409c63(0x24c,'!t$R')]('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'),$['te']=Math['floor'](Math['random']()*0x2328)+0x3e8,$[_0x409c63(0x1d3,'c(A6')]=notify['create']($[_0x409c63(0x15b,'6Mh0')],$['UserName']),$[_0x409c63(0x25c,'g#D3')]='',console[_0x409c63(0x31c,'O##s')]('\x0a******开始【京东账号'+$[_0x409c63(0x176,'c(A6')]+'】'+($[_0x409c63(0x1f4,'0afZ')]||$[_0x409c63(0x236,'VGyk')])+_0x409c63(0x12c,'8u$P')),await Main();if($[_0x409c63(0x148,'@zpT')]&&$[_0x409c63(0xec,'cJYv')])break;}isNotify&¬ify[_0x409c63(0x269,'h@0e')]()&&await notify[_0x409c63(0x2c4,'IPgc')]();})()['catch'](_0x870640=>$[_0x153f99(0x13b,'UZ$C')](_0x870640))['finally'](()=>$[_0x153f99(0x1ed,'VGyk')]());async function Main(){const _0x443bbd=_0x153f99;try{$[_0x443bbd(0x1ee,'!t$R')]=null,$[_0x443bbd(0x1f2,'7uYz')]=await getToken(originCookie,_0x443bbd(0x168,'fIt!'));if(!$[_0x443bbd(0x113,'62yt')]){console['log'](_0x443bbd(0x288,'kF]W')),$[_0x443bbd(0x22a,'RcXW')][_0x443bbd(0x1c3,'IPgc')](_0x443bbd(0x1a0,'22[4'));return;}if(activityIdList1['length']>=0x1||activityIdList2[_0x443bbd(0x1a3,'7uYz')]>=0x1){if(lzkjFilter[_0x443bbd(0x1b6,'m&I]')]>0x0&&(lzkjFilter[_0x443bbd(0x306,'@zpT')]($[_0x443bbd(0x23d,'xfVZ')])||lzkjFilter[_0x443bbd(0x280,'Zlpu')](encodeURIComponent($[_0x443bbd(0x1ad,'g#D3')]))))console[_0x443bbd(0xff,'xfVZ')](_0x443bbd(0x2ea,'m&I]'));else{$[_0x443bbd(0x10f,'62yt')]=null,$[_0x443bbd(0x2bb,'m&I]')]=null,$[_0x443bbd(0x120,'7C7t')]='https://lzkj-isv.isvjd.com',$[_0x443bbd(0x2ff,'VGyk')]='lzkj-isv.isvjd.com',$[_0x443bbd(0x2bf,'sSK]')]=_0x443bbd(0x2ac,'P1T1'),$[_0x443bbd(0x23e,'zvQX')]=$['baseUrl'];try{const _0x370a44=parseInt(lzkj_signInterval),_0x251e88=_0x370a44<0xa&&_0x370a44>0x0?_0x370a44*0x3e8:_0x370a44;$[_0x443bbd(0xea,'xuuY')]=_0x251e88;}catch{$[_0x443bbd(0x285,'FN&O')]=parseInt(lzkj_signInterval);}activityIdList2['length']>=0x1&&!$['lzkjOutFlag']&&($['needRemoveActivityIds']=[],console['log'](_0x443bbd(0x268,'RcXW')),await lzkjSign(activityIdList2,_0x443bbd(0x29f,'1pjn'),_0x443bbd(0x331,'Vl08')),$[_0x443bbd(0x2e7,'fIt!')][_0x443bbd(0x21b,'KMG&')]>0x0&&(console[_0x443bbd(0x340,'@zpT')](_0x443bbd(0x250,']s(#')),$[_0x443bbd(0x181,'&#ma')]['forEach'](_0x628879=>{console['log'](_0x628879);}),activityIdList2=activityIdList2[_0x443bbd(0x2c3,'O2pP')](_0x50051c=>!$['needRemoveActivityIds'][_0x443bbd(0x17d,'%anR')](_0x50051c))),console[_0x443bbd(0x32f,'dZ6v')]('')),$[_0x443bbd(0x259,'Vl08')]&&($[_0x443bbd(0x104,'KMG&')]=![],$[_0x443bbd(0x1c9,'VGyk')]=!![]),activityIdList1['length']>=0x1&&!$[_0x443bbd(0x115,'!)w3')]&&($['needRemoveActivityIds']=[],console['log']('❖\x20签到类型(lzkj\x20sevenDay)\x0a'),await lzkjSign(activityIdList1,_0x443bbd(0x279,'P1T1'),_0x443bbd(0x107,'7uYz')),$[_0x443bbd(0x19d,'xuuY')][_0x443bbd(0x18c,'k8Qq')]>0x0&&(console[_0x443bbd(0x208,'&#ma')]('\x0a建议移除的活动:'),$[_0x443bbd(0x157,'P1T1')][_0x443bbd(0x21d,'fIt!')](_0xeafaa6=>{const _0x4d5298=_0x443bbd;console[_0x4d5298(0x144,'v5*I')](_0xeafaa6);}),activityIdList1=activityIdList1[_0x443bbd(0x2e5,'8L%8')](_0x566d79=>!$[_0x443bbd(0x1a2,'sSK]')][_0x443bbd(0xde,'O2pP')](_0x566d79))),console[_0x443bbd(0x20e,'Vl08')]('')),$[_0x443bbd(0x2a3,'8u$P')]&&($[_0x443bbd(0x2dc,'&#ma')]=![],$['lzkjOutFlag']=!![]);}}if(activityIdList3['length']>=0x1||activityIdList4[_0x443bbd(0x172,'AJ*v')]>=0x1){if(cjhyFilter['length']>0x0&&(cjhyFilter[_0x443bbd(0x216,'FN&O')]($[_0x443bbd(0x342,'8L%8')])||cjhyFilter[_0x443bbd(0x244,'8i@1')](encodeURIComponent($[_0x443bbd(0x2b6,'xuuY')]))))console[_0x443bbd(0x183,'%anR')](_0x443bbd(0x2b9,'zvQX'));else{$[_0x443bbd(0x2de,'c(A6')]=null,$[_0x443bbd(0x16b,'IPgc')]=null,$[_0x443bbd(0x32c,'1pjn')]=_0x443bbd(0x30b,'KMG&'),$[_0x443bbd(0x215,'O2pP')]=_0x443bbd(0x29b,'7C7t'),$[_0x443bbd(0x329,']o]e')]=_0x443bbd(0x182,'k8Qq'),$[_0x443bbd(0x30e,'AJ*v')]=$[_0x443bbd(0x2cb,'IPgc')];try{const _0x35f3a1=parseInt(cjhy_signInterval),_0x8d7b6d=_0x35f3a1<0xa&&_0x35f3a1>0x0?_0x35f3a1*0x3e8:_0x35f3a1;$[_0x443bbd(0x143,'zvQX')]=_0x8d7b6d;}catch{$[_0x443bbd(0x1e8,'h@0e')]=parseInt(cjhy_signInterval);}activityIdList4[_0x443bbd(0x231,'62yt')]>=0x1&&!$[_0x443bbd(0x1d5,'P1T1')]&&($[_0x443bbd(0x1f1,'7uYz')]=[],console['log'](_0x443bbd(0x21c,'O2pP')),await cjhySign(activityIdList4,_0x443bbd(0x184,'kF]W'),_0x443bbd(0x202,'!t$R')),$[_0x443bbd(0x1b3,']s(#')][_0x443bbd(0x135,'6Mh0')]>0x0&&(console['log'](_0x443bbd(0x250,']s(#')),$[_0x443bbd(0x18e,'h@0e')][_0x443bbd(0xef,'k8Qq')](_0x20dd23=>{const _0x20f06e=_0x443bbd;console[_0x20f06e(0x1de,'KMG&')](_0x20dd23);}),activityIdList4=activityIdList4[_0x443bbd(0x2c3,'O2pP')](_0x176c5e=>!$[_0x443bbd(0x154,'VGyk')][_0x443bbd(0x2a6,'&#ma')](_0x176c5e))),console['log']('')),$[_0x443bbd(0x2c6,'8i@1')]&&($['outFlag']=![],$['cjhyOutFlag']=!![]),activityIdList3[_0x443bbd(0x1bb,'kF]W')]>=0x1&&!$['cjhyOutFlag']&&($[_0x443bbd(0x152,']o]e')]=[],console[_0x443bbd(0x29c,'AJ*v')]('❖\x20签到类型(cjhy\x20sevenDay)\x0a'),await cjhySign(activityIdList3,_0x443bbd(0x17e,']s(#'),_0x443bbd(0xe3,'62yt')),$['needRemoveActivityIds'][_0x443bbd(0x1a3,'7uYz')]>0x0&&(console[_0x443bbd(0x305,'c(A6')](_0x443bbd(0x273,'KMG&')),$[_0x443bbd(0x2f2,'GDec')][_0x443bbd(0x297,'8u$P')](_0x3db60d=>{const _0x49bdaf=_0x443bbd;console[_0x49bdaf(0x29c,'AJ*v')](_0x3db60d);}),activityIdList3=activityIdList3[_0x443bbd(0x213,'zvQX')](_0xbcdce7=>!$[_0x443bbd(0xf7,'xfVZ')][_0x443bbd(0x332,'F(O7')](_0xbcdce7)))),$[_0x443bbd(0x195,'IPgc')]&&($[_0x443bbd(0x259,'Vl08')]=![],$['cjhyOutFlag']=!![]);}}}catch(_0x43d298){console[_0x443bbd(0xd9,'!our')](_0x443bbd(0x242,'LLB8')+_0x43d298);}}async function lzkjSign(_0x16e9b2,_0x5c10bd,_0x535002){const _0x6ffea7=_0x153f99;activityCookie='',$[_0x6ffea7(0x29e,'VGyk')]='';let _0x4ed759=0x0;_0x25e6e0:for(let _0x2c1539=0x0;_0x2c1539<_0x16e9b2[_0x6ffea7(0x172,'AJ*v')];_0x2c1539++){$[_0x6ffea7(0x300,'Zlpu')]=_0x16e9b2[_0x2c1539],$['activityUrl']=''+$['baseUrl']+_0x5c10bd+_0x6ffea7(0x14b,'xfVZ')+$['activityId'];if(_0x2c1539===0x0){await getFirstLZCK($[_0x6ffea7(0x28b,'cJYv')]);if($[_0x6ffea7(0x2fe,'y7V7')]){$[_0x6ffea7(0xdf,'GDec')]=![];return;}await $[_0x6ffea7(0x16e,'v5*I')]($[_0x6ffea7(0x179,'cJYv')]);if(!$['secretPin']){const _0x90a29=ActInfoMap['get']($[_0x6ffea7(0x2cc,'xfVZ')]);if(!_0x90a29){$[_0x6ffea7(0x30d,'O##s')]=null,await sendRequest('getSimpleActInfoVo'),await $[_0x6ffea7(0x26c,'dZ6v')]($[_0x6ffea7(0x194,'P1T1')]);if($[_0x6ffea7(0x2dc,'&#ma')])break _0x25e6e0;}else $[_0x6ffea7(0x13e,'0afZ')]=_0x90a29['venderId'],$[_0x6ffea7(0x136,'!)w3')]=_0x90a29[_0x6ffea7(0x2e4,'@zpT')];await sendRequest(_0x6ffea7(0x20b,'AJ*v'));if(!$[_0x6ffea7(0x2db,'h@0e')]){console[_0x6ffea7(0x161,'8L%8')](_0x6ffea7(0x1ce,'xuuY')),$[_0x6ffea7(0x326,']o]e')]['insert'](_0x6ffea7(0x134,'KMG&'));break;}await $[_0x6ffea7(0x319,'h@0e')]($[_0x6ffea7(0x1a4,'8u$P')]);}}_0x4ed759+=0x1;if(_0x4ed759>=0x3){_0x4ed759=0x0,await getFirstLZCK($[_0x6ffea7(0x2f3,'y7V7')]);if($[_0x6ffea7(0x32e,'VGyk')]){$[_0x6ffea7(0x204,'t8wT')]=![];return;}await $[_0x6ffea7(0x2f5,'sSK]')]($['signIntervalTimes']);}$[_0x6ffea7(0x2f4,'7C7t')]=0x0,$[_0x6ffea7(0x160,'P1T1')]=![],$[_0x6ffea7(0x22d,']o]e')]=![],$[_0x6ffea7(0x2cd,'1iZV')]=![];for(let _0x147fce=0x1;_0x147fce<=signFailMaxRetryTimes+0x1;_0x147fce++){$[_0x6ffea7(0x2c5,'Vl08')]='',await sendRequest(_0x535002);_0x2c1539!==_0x16e9b2[_0x6ffea7(0x298,'&#ma')]-0x1&&$[_0x6ffea7(0xe0,'KMG&')]&&await $['wait']($[_0x6ffea7(0x12d,'!)w3')]);if($[_0x6ffea7(0x2b8,'t8wT')])break;if($[_0x6ffea7(0x1a6,'xfVZ')]>0x0&&$[_0x6ffea7(0x2f4,'7C7t')]<maxForbiddenRetryTimes){_0x147fce-=0x1;continue;}if($[_0x6ffea7(0x117,'1iZV')]||_0x147fce>=signFailMaxRetryTimes+0x1){console['log']($[_0x6ffea7(0x2bd,'Vl08')]+_0x6ffea7(0x272,'62yt')+($[_0x6ffea7(0x313,'6Mh0')]||_0x6ffea7(0x274,'kF]W')));$['signStop']&&!$[_0x6ffea7(0x18d,'8i@1')]&&$[_0x6ffea7(0x33d,'22[4')][_0x6ffea7(0x1fd,'sSK]')]($['activityId']);break;}if($[_0x6ffea7(0xf6,'!t$R')]){if(forbiddenQuit){$[_0x6ffea7(0x20d,'7uYz')]=!![];break _0x25e6e0;}}}}}async function cjhySign(_0x58bd4c,_0x4ef746,_0x388533){const _0xe57fec=_0x153f99;activityCookie='',$[_0xe57fec(0x1cf,'GDec')]='',$[_0xe57fec(0x122,'k8Qq')]='',$['te']=Math[_0xe57fec(0x1bf,'IPgc')](Math['random']()*0x2328)+0x3e8;let _0x5d5fe1=0x0;_0x5e9e75:for(let _0x4c9057=0x0;_0x4c9057<_0x58bd4c[_0xe57fec(0x11f,'UZ$C')];_0x4c9057++){$[_0xe57fec(0x237,'y7V7')]=_0x58bd4c[_0x4c9057],$[_0xe57fec(0x1a7,'kF]W')]=''+$[_0xe57fec(0x2fa,'k8Qq')]+_0x4ef746+_0xe57fec(0x1c0,'F(O7')+$[_0xe57fec(0x1cd,'!t$R')];if(_0x4c9057===0x0){await getFirstLZCK($['activityUrl']);if($[_0xe57fec(0x2fe,'y7V7')]){$['skipRun']=![];return;}await $[_0xe57fec(0x271,'O##s')]($['signIntervalTimes']);}const _0x4584fe=ActInfoMap[_0xe57fec(0x132,'IPgc')]($['activityId']);if(!_0x4584fe){$[_0xe57fec(0x12b,'t8wT')]=null,await sendRequest(_0xe57fec(0x142,'AJ*v')),await $['wait']($[_0xe57fec(0x1d7,'%anR')]);if($[_0xe57fec(0x20d,'7uYz')])break _0x5e9e75;}else $[_0xe57fec(0x31e,'LLB8')]=_0x4584fe[_0xe57fec(0xed,'7uYz')],$[_0xe57fec(0x123,'KMG&')]=_0x4584fe[_0xe57fec(0x235,'22[4')];_0x5d5fe1+=0x1;if(_0x5d5fe1>=0x3){_0x5d5fe1=0x0,await getFirstLZCK($['activityUrl']);if($[_0xe57fec(0x155,'&#ma')]){$[_0xe57fec(0x13d,'P1T1')]=![];return;}await $[_0xe57fec(0x2e9,'g#D3')]($[_0xe57fec(0x322,']s(#')]);}$['initError']=![],$[_0xe57fec(0x14d,'h@0e')]=await getToken(originCookie,$[_0xe57fec(0x2c8,'Zlpu')]);if(!$[_0xe57fec(0x212,'g#D3')]){console['log']('获取[Token]失败!'),$['message'][_0xe57fec(0x2bc,'8L%8')](_0xe57fec(0x1a0,'22[4'));break;}$['pinToken']='',$['LZ_AES_PIN']='',$['te']=Math[_0xe57fec(0xee,'Vl08')](Math[_0xe57fec(0x153,'cJYv')]()*0x2328)+0x3e8,activityCookie=common['filterCookieByFields'](activityCookie,[_0xe57fec(0x302,']s(#'),'LZ_TOKEN_KEY',_0xe57fec(0xf0,'6Mh0')])+';',await sendRequest(_0xe57fec(0x2b1,'h@0e'));if($[_0xe57fec(0x2a3,'8u$P')])break _0x5e9e75;if($[_0xe57fec(0x2c2,'FN&O')]&&$[_0xe57fec(0x2d7,'6Mh0')]){$[_0xe57fec(0x270,'%anR')]=![],await $[_0xe57fec(0x201,'!our')]($[_0xe57fec(0x1d7,'%anR')]),await sendRequest(_0xe57fec(0x27c,'7C7t'));if($[_0xe57fec(0x1bd,'8L%8')]){if($[_0xe57fec(0x178,'xfVZ')]){$['garbageAct']=![],$[_0xe57fec(0x15c,'7C7t')][_0xe57fec(0x324,'!t$R')]($[_0xe57fec(0x1cb,'KMG&')]);continue;}console['log'](_0xe57fec(0x2d6,'0afZ')),$['message'][_0xe57fec(0xf1,'IPgc')](_0xe57fec(0x1ef,'sSK]'));break;}}if(!$[_0xe57fec(0x1e1,'&#ma')]){console[_0xe57fec(0x20c,'fIt!')](_0xe57fec(0x1e2,'LLB8')),$['message'][_0xe57fec(0x10d,'!t$R')](_0xe57fec(0x22c,'Vl08'));break;}await $[_0xe57fec(0x2b0,'8L%8')]($[_0xe57fec(0x129,'GDec')]),await sendRequest('accessLog'),await $[_0xe57fec(0x2ee,'RcXW')]($[_0xe57fec(0x1e6,'!t$R')]);if($[_0xe57fec(0x25f,'Zlpu')])break _0x5e9e75;$['signRequestFailTimes']=0x0,$[_0xe57fec(0x292,'sSK]')]=![],$[_0xe57fec(0x15e,'62yt')]=![],$[_0xe57fec(0x174,']s(#')]=![],$[_0xe57fec(0x252,'62yt')]=null;for(let _0xfb2ed2=0x1;_0xfb2ed2<=signFailMaxRetryTimes+0x1;_0xfb2ed2++){$[_0xe57fec(0xe9,'0afZ')]='',await sendRequest(_0x388533);_0x4c9057!==_0x58bd4c[_0xe57fec(0x328,'c(A6')]-0x1&&$[_0xe57fec(0x137,'O##s')]&&await $['wait']($[_0xe57fec(0x30f,'F(O7')]);if($[_0xe57fec(0x2ce,'UZ$C')]){$[_0xe57fec(0x171,'v5*I')]=![],await getFirstLZCK($[_0xe57fec(0xfd,'t8wT')]);if($[_0xe57fec(0x1f7,'!)w3')]){$['skipRun']=![];return;}await $[_0xe57fec(0x1fb,'fIt!')]($['signIntervalTimes']),await sendRequest(_0xe57fec(0x199,'FN&O')),await $[_0xe57fec(0x26c,'dZ6v')]($[_0xe57fec(0x110,'&#ma')]);}if($[_0xe57fec(0x219,'O2pP')]>0x0&&$[_0xe57fec(0x177,'!our')]<maxForbiddenRetryTimes){_0xfb2ed2-=0x1;continue;}if($[_0xe57fec(0x247,'m&I]')])break;if($[_0xe57fec(0x11e,'LLB8')]||_0xfb2ed2>=signFailMaxRetryTimes+0x1){console[_0xe57fec(0x1c7,'1pjn')]($[_0xe57fec(0x1c2,'62yt')]+'\x20➜\x20'+$['signTime']+'\x20'+($[_0xe57fec(0x164,'xfVZ')]||'未知状态'));$['signStop']&&!$['signErrorMsg']&&$[_0xe57fec(0xeb,'c(A6')]['push']($['activityId']);break;}if($[_0xe57fec(0x17a,'F(O7')]){if(forbiddenQuit){$[_0xe57fec(0x1c4,'zvQX')]=!![];break _0x5e9e75;}}}}}async function handleResponse(_0x4d304b,_0xcb37e4){const _0x42c01a=_0x153f99;try{switch(_0x4d304b){case _0x42c01a(0x1ea,'IPgc'):if(_0xcb37e4[_0x42c01a(0x16c,'P1T1')]===!![]&&_0xcb37e4['data'])$[_0x42c01a(0x19c,'y7V7')]=_0xcb37e4[_0x42c01a(0x193,'AJ*v')]?.[_0x42c01a(0x2b4,'&#ma')],$[_0x42c01a(0x101,'P1T1')]=_0xcb37e4[_0x42c01a(0x245,'1iZV')]?.[_0x42c01a(0x18b,'IPgc')],ActInfoMap[_0x42c01a(0x2f7,'P1T1')]($[_0x42c01a(0x237,'y7V7')],{'venderId':$[_0x42c01a(0x1cc,'zvQX')],'activityType':$['activityType']});else _0xcb37e4[_0x42c01a(0x203,'sSK]')]?console[_0x42c01a(0x32f,'dZ6v')](_0x4d304b+'\x20'+_0xcb37e4[_0x42c01a(0x105,'8u$P')]):console['log']('❓'+_0x4d304b+'\x20'+JSON['stringify'](_0xcb37e4));break;case _0x42c01a(0x1f5,'UZ$C'):if(_0xcb37e4[_0x42c01a(0x2ec,'IPgc')]===!![]&&_0xcb37e4[_0x42c01a(0x1ba,'fIt!')])$[_0x42c01a(0x320,'7uYz')]=_0xcb37e4['data']?.[_0x42c01a(0x2b3,'8L%8')],$[_0x42c01a(0x2e1,'1pjn')]=$[_0x42c01a(0x10f,'62yt')],$[_0x42c01a(0x265,'c(A6')]=_0xcb37e4[_0x42c01a(0x108,'k8Qq')]?.[_0x42c01a(0x197,'RcXW')];else _0xcb37e4['errorMessage']?(console['log'](_0x4d304b+'\x20'+_0xcb37e4['errorMessage']),$[_0x42c01a(0x1f8,'8u$P')][_0x42c01a(0x2a1,'8i@1')](_0xcb37e4['errorMessage'])):console['log']('❓'+_0x4d304b+'\x20'+JSON[_0x42c01a(0x20a,'!)w3')](_0xcb37e4));break;case'initPinToken':if(_0xcb37e4['result']===!![]&&_0xcb37e4['data'])$['secretPin']=_0xcb37e4['data']?.[_0x42c01a(0x2b5,'cJYv')],$[_0x42c01a(0xe5,'F(O7')]=encodeURIComponent($[_0x42c01a(0xe1,'7C7t')]),$['nickname']=_0xcb37e4['data']?.[_0x42c01a(0x21f,'7C7t')];else _0xcb37e4[_0x42c01a(0x2b2,'1iZV')]?($[_0x42c01a(0x33f,'6Mh0')]=!![],['.java.'][_0x42c01a(0x18f,'8L%8')](_0x3b2f70=>_0xcb37e4[_0x42c01a(0x192,']s(#')][_0x42c01a(0x251,'g#D3')](_0x3b2f70))&&($[_0x42c01a(0x283,'LLB8')]=!![]),console['log'](_0x4d304b+'\x20'+_0xcb37e4[_0x42c01a(0x267,'IPgc')]),$[_0x42c01a(0x294,'FN&O')]['fix'](_0xcb37e4[_0x42c01a(0x2d1,'m&I]')])):console[_0x42c01a(0x29c,'AJ*v')]('❓'+_0x4d304b+'\x20'+JSON['stringify'](_0xcb37e4));break;case _0x42c01a(0x1db,'LLB8'):if(_0xcb37e4[_0x42c01a(0x2c9,'!)w3')]===!![]&&_0xcb37e4['data'])$[_0x42c01a(0x2d3,'k8Qq')]=_0xcb37e4['data']?.['venderId'],$[_0x42c01a(0x131,'8i@1')]=_0xcb37e4[_0x42c01a(0x2d4,'KMG&')]?.['activityType'],ActInfoMap['set']($[_0x42c01a(0x276,'%anR')],{'venderId':$['venderId'],'activityType':$[_0x42c01a(0x22b,'c(A6')]});else _0xcb37e4['errorMessage']?console[_0x42c01a(0x141,'VGyk')](_0x4d304b+'\x20'+_0xcb37e4[_0x42c01a(0xf9,'22[4')]):console[_0x42c01a(0x183,'%anR')]('❓'+_0x4d304b+'\x20'+JSON[_0x42c01a(0x333,'P1T1')](_0xcb37e4));break;case _0x42c01a(0x159,'c(A6'):case _0x42c01a(0x264,'AJ*v'):$[_0x42c01a(0x323,']o]e')]=0x0;if(!_0xcb37e4[_0x42c01a(0x1d6,'1pjn')]&&typeof _0xcb37e4[_0x42c01a(0x27e,'F(O7')]===_0x42c01a(0x254,'@zpT')){$[_0x42c01a(0x221,'zvQX')]=_0xcb37e4[_0x42c01a(0x20f,'Zlpu')];_0xcb37e4[_0x42c01a(0x190,'7uYz')]?(!['火爆','擦肩','缓存',_0x42c01a(0x24d,'AJ*v'),'.java.'][_0x42c01a(0x339,'!)w3')](_0x12aab3=>_0xcb37e4[_0x42c01a(0x238,'KMG&')][_0x42c01a(0x175,'LLB8')](_0x12aab3))&&($['signStop']=!![]),['结束',_0x42c01a(0x307,'Zlpu'),'不在'][_0x42c01a(0x140,'IPgc')](_0x40ebb0=>_0xcb37e4[_0x42c01a(0xdb,'!our')]['includes'](_0x40ebb0))&&$[_0x42c01a(0x169,'62yt')][_0x42c01a(0x22e,'y7V7')]($[_0x42c01a(0x173,'7C7t')]),['会员']['some'](_0x45dbba=>_0xcb37e4['msg']['includes'](_0x45dbba))&&($['signErrorMsg']=_0x42c01a(0x33e,'LLB8')),[_0x42c01a(0x31d,'VGyk')][_0x42c01a(0x339,'!)w3')](_0x21ef18=>_0xcb37e4[_0x42c01a(0x2d5,'8u$P')][_0x42c01a(0x10a,'kF]W')](_0x21ef18))&&($[_0x42c01a(0x18d,'8i@1')]='今日已签'),['7天'][_0x42c01a(0x1f9,'RcXW')](_0x5b05f0=>_0xcb37e4[_0x42c01a(0x2c7,'t8wT')][_0x42c01a(0x2f1,'P1T1')](_0x5b05f0))&&($[_0x42c01a(0x206,'!our')]=_0x42c01a(0x1b2,'y7V7'))):$[_0x42c01a(0x151,'m&I]')]=!![];return;}$[_0x42c01a(0x23f,'RcXW')]=!![];const _0x3542fd=_0x4d304b==='sevenDay_signUp'?_0xcb37e4?.['signResult']?.['gift']:_0xcb37e4?.['gift'];if(_0x3542fd){const _0x2d8a49=_0x3542fd['insufficient'];let _0x359b47='';process[_0x42c01a(0x1e0,']o]e')][_0x42c01a(0x263,']o]e')]($['activityId']+'\x20➜\x20'+$[_0x42c01a(0x2ba,'v5*I')]+'\x20');switch(parseInt(_0x3542fd[_0x42c01a(0xe6,'6Mh0')])){case 0x6:_0x359b47=_0x42c01a(0x15d,'GDec')+_0x3542fd[_0x42c01a(0x2fc,'%anR')]+_0x42c01a(0xdd,'xuuY'),$[_0x42c01a(0x1ac,'62yt')]['insert'](_0x3542fd['giftName']+'🐶');break;case 0x7:const _0x2021c2=_0xcb37e4[_0x42c01a(0x1f0,'8u$P')];let _0x3250e2=_0x3542fd[_0x42c01a(0x16a,'m&I]')];_0x359b47=_0x42c01a(0x2ed,'cJYv')+_0x3250e2+_0x42c01a(0x2a0,'7uYz')+_0x3542fd['priceInfo']+_0x42c01a(0x2be,'GDec')+(_0x3542fd[_0x42c01a(0x28c,'%anR')]?',预览图片\x20'+_0x3542fd[_0x42c01a(0x2e3,'KMG&')]:'');if(!_0x2021c2)break;const _0x46ec4f={'baseUrl':$['baseUrl'],'cookie':activityCookie,'ua':$['UA'],'activityId':$[_0x42c01a(0x17b,']s(#')],'activityType':$[_0x42c01a(0x139,'h@0e')],'venderId':$['venderId'],'secretPin':$['secretPin'],'prizeName':_0x3250e2,'generateId':_0x2021c2,'activityUrl':$[_0x42c01a(0x12a,']o]e')]},_0x176b94=wuxian_savePrize(_0x46ec4f)||![];!isNotify&&_0x176b94&&await notify[_0x42c01a(0x163,'dZ6v')]($[_0x42c01a(0x13f,'IPgc')]+_0x42c01a(0x287,'zvQX'),_0x42c01a(0x27f,'Zlpu')+$['index']+'】'+$[_0x42c01a(0x275,'&#ma')]+'\x0a抽中实物\x20'+_0x3250e2+',已成功自动登记收货地址\x0a\x0a'+$[_0x42c01a(0x229,'1pjn')]);$['message']['insert'](_0x3250e2+'('+(_0x176b94?_0x42c01a(0x121,'xfVZ'):_0x42c01a(0x30c,'7C7t'))+_0x42c01a(0x1c1,'7C7t'));break;case 0x8:_0x359b47=_0x42c01a(0x262,'UZ$C'),$[_0x42c01a(0x25a,'7uYz')][_0x42c01a(0x316,'sSK]')](_0x42c01a(0x21e,'Vl08'));break;case 0x9:_0x359b47='🗑️\x20'+_0x3542fd[_0x42c01a(0x126,'&#ma')]+_0x42c01a(0x1e9,'xuuY'),$[_0x42c01a(0x1ab,'Vl08')][_0x42c01a(0xf1,'IPgc')](_0x3542fd[_0x42c01a(0x291,'fIt!')]+_0x42c01a(0x286,'IPgc'));break;case 0xd:case 0xe:case 0xf:_0x359b47=_0x42c01a(0x1d2,'1pjn')+_0x3542fd[_0x42c01a(0x1e4,'62yt')]+_0x42c01a(0x2ca,'kF]W'),$[_0x42c01a(0x282,'KMG&')][_0x42c01a(0x1eb,'Vl08')](_0x3542fd['giftName']+'🎁');!isNotify&&await notify['sendNotify']($[_0x42c01a(0x2e6,'&#ma')]+_0x42c01a(0x13a,'k8Qq'),'【京东账号'+$['index']+'】'+$[_0x42c01a(0x25c,'g#D3')]+_0x42c01a(0x2af,'cJYv')+_0x3542fd[_0x42c01a(0x2e8,'7uYz')]+'\x0a\x0a'+$['activityUrl']);break;case 0x10:_0x359b47=_0x42c01a(0x2c0,'6Mh0')+_0x3542fd[_0x42c01a(0x124,'!t$R')]+_0x42c01a(0x167,'FN&O'),$[_0x42c01a(0x260,'6Mh0')][_0x42c01a(0x316,'sSK]')](_0x3542fd[_0x42c01a(0x112,'GDec')]+'红包🧧');break;default:_0x3542fd['giftName'][_0x42c01a(0x210,'y7V7')]('券')?(_0x359b47='🗑️\x20优惠券',$['message'][_0x42c01a(0x200,'8i@1')]('优惠券🗑️')):(console[_0x42c01a(0x23b,'GDec')](_0x3542fd[_0x42c01a(0x26b,'v5*I')]),$[_0x42c01a(0x1d4,'k8Qq')]['insert'](_0x3542fd['giftName']));break;}_0x2d8a49&&(_0x359b47+='(可能未到账)',$['message'][_0x42c01a(0x217,'&#ma')][_0x42c01a(0x1a1,'FN&O')]()),console[_0x42c01a(0x20e,'Vl08')](_0x359b47);}else console['log']($[_0x42c01a(0x2a5,'t8wT')]+_0x42c01a(0x23c,'g#D3')+$[_0x42c01a(0xfa,']o]e')]+'\x20💨\x20空气');}}catch(_0x42c698){console[_0x42c01a(0x2ab,'6Mh0')](_0x42c01a(0x29a,'RcXW')+_0x4d304b+_0x42c01a(0x1af,'8u$P')+(_0x42c698[_0x42c01a(0x162,'dZ6v')]||_0x42c698));}}async function sendRequest(_0x4d8142){const _0x2430b9=_0x153f99;if($[_0x2430b9(0x185,'7C7t')])return;let _0xc9ba83=$['baseUrl'],_0x5dac8b=null,_0x1325dd=null,_0x4b2b1e=null,_0x48decb='POST';switch(_0x4d8142){case _0x2430b9(0x31b,'6Mh0'):_0xc9ba83+=_0x2430b9(0xdc,'7C7t'),_0x5dac8b={'activityId':$[_0x2430b9(0x237,'y7V7')]};break;case _0x2430b9(0x32b,'k8Qq'):_0xc9ba83+=_0x2430b9(0x109,'!our'),_0x5dac8b={'token':$['jdToken'],'fromType':_0x2430b9(0x304,'1iZV'),'userId':$['venderId']};break;case _0x2430b9(0x1c5,'%anR'):_0x48decb=_0x2430b9(0x1d9,'1pjn'),_0xc9ba83+=_0x2430b9(0x337,'8i@1'),_0x4b2b1e={'status':'1','activityId':$['activityId'],'jdToken':$[_0x2430b9(0xda,'GDec')],'source':'01','venderId':$['venderId'],'uuid':$[_0x2430b9(0x261,']s(#')],'clientTime':Date['now']()};break;case'accessLog':_0xc9ba83+=_0x2430b9(0x26a,'8u$P'),_0x5dac8b={'venderId':$[_0x2430b9(0x1d1,'IPgc')],'code':$['activityType'],'pin':$[_0x2430b9(0x338,'cJYv')],'activityId':$['activityId'],'pageUrl':$[_0x2430b9(0x255,'IPgc')],'subType':'app','adSource':''};break;case _0x2430b9(0xf3,'GDec'):_0xc9ba83+=_0x2430b9(0x2a2,'g#D3'),_0x5dac8b={'venderId':$['venderId'],'code':$[_0x2430b9(0x295,'LLB8')],'pin':$[_0x2430b9(0x2e0,'22[4')],'activityId':$[_0x2430b9(0x25d,'h@0e')],'pageUrl':$['activityUrl'],'subType':_0x2430b9(0x23a,'@zpT')};break;case _0x2430b9(0x14f,'zvQX'):_0xc9ba83+=_0x2430b9(0x249,'P1T1'),_0x5dac8b={'actId':$[_0x2430b9(0x19e,'RcXW')],'pin':$['formatPin']};break;case _0x2430b9(0x198,'kF]W'):_0xc9ba83+=_0x2430b9(0x127,'0afZ'),_0x5dac8b={'actId':$[_0x2430b9(0x2cc,'xfVZ')],'pin':$['formatPin']};break;default:console[_0x2430b9(0x2d2,'k8Qq')](_0x2430b9(0x220,'0afZ')+_0x4d8142);return;}const _0x114836=$[_0x2430b9(0x1fa,'!our')]==='cjhy'&&wuxianDefense[_0x2430b9(0x2a4,'7uYz')](_0xc9ba83[_0x2430b9(0x334,'LLB8')]($[_0x2430b9(0x1bc,'dZ6v')],'')[_0x2430b9(0x205,'1iZV')]('?')[0x0]);_0x114836&&(_0x5dac8b?.[_0x2430b9(0x19f,'8i@1')]&&(_0x5dac8b[_0x2430b9(0x341,'g#D3')]=encodeURIComponent($[_0x2430b9(0x25e,']s(#')])),_0x1325dd={'ecyText':wuxianDefense[_0x2430b9(0x29d,']o]e')]({'actId':$[_0x2430b9(0x2d0,'xuuY')],..._0x5dac8b},$[_0x2430b9(0x32d,'VGyk')],$['te'])});const _0x5ccba1={'url':_0xc9ba83,'method':_0x48decb,'headers':{'Accept':'application/json','Accept-Encoding':_0x2430b9(0x26e,'62yt'),'Accept-Language':'zh-CN,zh;q=0.9','Connection':_0x2430b9(0xe2,'0afZ'),'Content-Type':_0x114836?_0x2430b9(0x145,'zvQX'):_0x2430b9(0x2f9,'8L%8'),'Cookie':activityCookie[_0x2430b9(0x21a,'VGyk')](),'Origin':$[_0x2430b9(0x1d0,'m&I]')],'Referer':$['activityUrl'],'Sec-Fetch-Dest':_0x2430b9(0x2c1,'k8Qq'),'Sec-Fetch-Mode':_0x2430b9(0x1be,'t8wT'),'Sec-Fetch-Site':_0x2430b9(0xe7,'g#D3'),'User-Agent':$['UA'],'X-Requested-With':_0x2430b9(0x188,'m&I]')},'params':_0x4b2b1e,'data':_0x114836?_0x1325dd:_0x5dac8b,'timeout':0x7530};_0x48decb===_0x2430b9(0x258,'RcXW')&&(delete _0x5ccba1[_0x2430b9(0x2d4,'KMG&')],delete _0x5ccba1[_0x2430b9(0x1b7,'@zpT')][_0x2430b9(0x2da,'AJ*v')]);const _0x519cd7=[_0x2430b9(0x308,'t8wT'),'sevenDay_signUp'][_0x2430b9(0x211,'IPgc')](_0x4d8142)?0x1:0x3;let _0x31b0e4=0x0,_0x214ba7=null,_0x506d1e=![];while(_0x31b0e4<_0x519cd7){['signUp',_0x2430b9(0x107,'7uYz')][_0x2430b9(0x280,'Zlpu')](_0x4d8142)&&($['signTime']=common[_0x2430b9(0x111,'v5*I')](_0x2430b9(0x1f6,'c(A6')));_0x31b0e4>0x0&&await $[_0x2430b9(0x138,'O2pP')](0x3e8);const _0x199c16=await common[_0x2430b9(0x1ca,'g#D3')](_0x5ccba1);if(!_0x199c16['success']){![_0x2430b9(0x2e2,'VGyk'),_0x2430b9(0x2aa,'g#D3')]['includes'](_0x4d8142)?_0x214ba7=_0x4d8142+_0x2430b9(0x11a,'xfVZ')+_0x199c16[_0x2430b9(0x11c,'7uYz')]:_0x214ba7=$[_0x2430b9(0x173,'7C7t')]+'\x20➜\x20'+_0x199c16[_0x2430b9(0x299,'%anR')];_0x31b0e4++;if(_0x199c16[_0x2430b9(0x1aa,'Vl08')]){if(_0x199c16[_0x2430b9(0x24a,']s(#')]===0x1f4&&_0x114836)_0x5ccba1[_0x2430b9(0x19a,'!our')]={'ecyText':wuxianDefense[_0x2430b9(0x186,'m&I]')]({'actId':$['activityId'],..._0x5dac8b},$[_0x2430b9(0x2d8,'62yt')],$['te'])};else[0x193,0x1ed]['includes'](_0x199c16[_0x2430b9(0x228,'P1T1')])&&([_0x2430b9(0x248,'O2pP'),'sevenDay_signUp'][_0x2430b9(0x28f,'c(A6')](_0x4d8142)?$[_0x2430b9(0x130,'FN&O')]=!![]:_0x506d1e=!![]);}$[_0x2430b9(0x14a,'1iZV')]&&($[_0x2430b9(0x24e,'8u$P')]+=0x1);continue;}if([_0x2430b9(0x106,'!t$R'),_0x2430b9(0x1da,'8L%8')]['includes'](_0x4d8142))break;if(!_0x199c16[_0x2430b9(0x103,'FN&O')]){!['signUp',_0x2430b9(0x189,'FN&O')][_0x2430b9(0x12e,'k8Qq')](_0x4d8142)?(_0x214ba7=_0x4d8142+'\x20请求失败\x20➜\x20无响应数据',$['needRefreshPinToken']=!![]):_0x214ba7=$['activityId']+_0x2430b9(0x230,'UZ$C');_0x31b0e4++;_0x114836&&_0x31b0e4<_0x519cd7-0x1&&(_0x5ccba1[_0x2430b9(0x278,'UZ$C')]={'ecyText':wuxianDefense['encrypt']({'actId':$[_0x2430b9(0x1f3,'m&I]')],..._0x5dac8b},$['pinToken'],$['te'])});continue;}const _0x3f74fd=common[_0x2430b9(0x14c,'xuuY')](_0x199c16,activityCookie);let _0x101b1d='';switch(_0x4d8142){case'getMyPing':_0x101b1d=common[_0x2430b9(0x2a9,'@zpT')](_0x3f74fd,_0x2430b9(0x119,'y7V7'));_0x101b1d?$[_0x2430b9(0x13c,'O##s')]=_0x101b1d:(console[_0x2430b9(0x16d,'xuuY')](_0x2430b9(0xe4,'8u$P')),$[_0x2430b9(0x1b9,'O2pP')][_0x2430b9(0x209,'k8Qq')](_0x2430b9(0x2d9,'v5*I')),$[_0x2430b9(0xf4,'7uYz')]=!![]);break;case _0x2430b9(0x1e5,'Vl08'):const _0x2d0d58=common[_0x2430b9(0x11b,'h@0e')](_0x3f74fd,'pToken');if(_0x2d0d58)$[_0x2430b9(0x1dc,'v5*I')]=_0x2d0d58;else{console['log'](_0x2430b9(0x277,'AJ*v')),$[_0x2430b9(0x214,'1pjn')][_0x2430b9(0x27b,'c(A6')](_0x2430b9(0x310,'IPgc')),$['skipRun']=!![];break;}_0x101b1d=common[_0x2430b9(0x2b7,'KMG&')](_0x3f74fd,_0x2430b9(0x11d,'O2pP'));if(_0x101b1d)$[_0x2430b9(0x246,'c(A6')]=_0x101b1d;else{console[_0x2430b9(0x224,'7C7t')](_0x2430b9(0x225,'O2pP')),$['message'][_0x2430b9(0x284,'0afZ')](_0x2430b9(0x312,'8i@1')),$[_0x2430b9(0x336,'c(A6')]=!![];break;}const _0x42ec26=common['getCookieValue'](_0x3f74fd,'te');_0x42ec26&&($['te']=_0x42ec26);break;}[_0x2430b9(0x2df,'8L%8'),_0x2430b9(0x331,'Vl08'),'sevenDay_signUp']['includes'](_0x4d8142)&&(activityCookie=_0x3f74fd);await handleResponse(_0x4d8142,_0x199c16['data']),_0x101b1d=common['getCookieValue'](activityCookie,_0x2430b9(0x330,'k8Qq'));!_0x101b1d&&$[_0x2430b9(0x125,'xfVZ')]&&(activityCookie+=_0x2430b9(0x2f0,'22[4')+$['LZ_AES_PIN']+';\x20');const _0x4a59bd=common['getCookieValue'](activityCookie,'AUTH_C_USER');!_0x4a59bd&&$['secretPin']&&(activityCookie+='AUTH_C_USER='+$[_0x2430b9(0x1c6,'xuuY')]+';\x20');const _0x45dbfa=common[_0x2430b9(0xe8,']o]e')](activityCookie,'pToken');!_0x45dbfa&&$[_0x2430b9(0x289,'LLB8')]&&(activityCookie+='pToken='+$[_0x2430b9(0xf5,'zvQX')]+';\x20');const _0x399577=common[_0x2430b9(0x150,'22[4')](activityCookie,'te');!_0x399577&&$['te']&&(activityCookie+=_0x2430b9(0x114,'0afZ')+$['te']);_0x506d1e=![];break;}_0x31b0e4>=_0x519cd7&&(console[_0x2430b9(0x2ab,'6Mh0')](_0x214ba7),!['accessLogWithAD',_0x2430b9(0x191,'RcXW')][_0x2430b9(0x257,'1pjn')](_0x4d8142)&&_0x506d1e&&forbiddenQuit&&(!['signUp',_0x2430b9(0x10b,'zvQX')]['includes'](_0x4d8142)&&($[_0x2430b9(0x266,']o]e')]=!![])));}function _0x4ad1(){const _0x31674b=['5y2F6ysc54Uc5Ogn57IA5P2CW40squCmW5NdHg8bza','vZhdIa','6i+j5y+ilSoOChikW6bFW5iEW6BcImol5AwX6lsP772v','xmk/WRn3WRRcGmosWQhdQSkA','WRVcPmouWOy2','tmkLW47cN0ny','WOe0gmoPyJbutCkZoSkT','WPGWDX4hWPRdKW','ySopWOlcKmovWPpcSCosW4hcPc5M','5P2Z6ikZ6i++5y2N55wz5OQ46yIq5P+a5l6Q5Oke','FtRdVXZdS3y1W74','kmozWQvi','zSocWOa','W47INPZcKUIVGEAXV+wLKEI1Jo++R+AvU+wsR+w7RUAvToAnNo+9Vq','fSokWOqrWOG5','vCoYWQOLzqVdSSohWQhcUG','g2zNW5a','dSo3W7uoW4BdR3T4hGS/s0dcHG','cSkhW4/dLSk9lsifWPFcRZ1+','rJ7dHCkRiXBdGmoE','oCopWQjjzaxdUNBcG8oF','lZxcGq','W75aaCoAWPhdLfyGBSkroJhdO17dKeexcCoFFSoQ','f8ocW5q','WQWLWOK','gEkEQ8o4','WOxdLIuOvLFdPr0','xuBcSauIW7m','WOy8yWm1WOJdLCkCWO9wxq','eNfP','wfdcHHuZW45RFmkLWP3cUJv3WQdcPdGCme8UASk2W7FcS8kEWOSQ','4P2jW5lOHiZMNydOVOVOO5xPG4FLIyFKUixPL7hORlZdMW','W5ZdMSkT','uSkir8ovb8kZWP8I','vfjxW5K','t8o2WQNcUmoMWQNcMSo7W5ZcKW','W64FW5ldIJqvlmkKF8oYWRG','dxDPW4P/xq','emkIW4BcJfGeW5NdPmo3A0DLeSo0W7W','WQhcVSorWPC7W4C','rwiXW7G','D8kaWOjJWORcUSoP','5PwB5O2T5B6f','W6DnoCodWRVdOK4YzCkYir7dRepdO3SremotAW','mffzW7XTW6NcJSol','W5JLUldORj7NPjJPMkRNMldMTl3LIP3VVl4','ufNcU0XDy2ldNa','cCogWO0yWQG4pd0','WPzjimoiWPP7sCkQW7JdT8kty8orWRdcRhe','fmoDW4VcOSkzW5Db','cCkSW6nXlL/cU8kdW4NdTw4','qudcUby+W64','WOK5d8oSyt1frW','WRiqua','nJS9W7CDW64d','kSoGzthcNMZdGG','WPmJdCo0ysO','v17cU0TMzMRdIG','W6BcRGaLWR9QWOrwnr4','WQhcR8otWPeRW4bwxeO','W5NdSXBcV8kvs8k+','W5udjSopWPjWxW','WOFcN8o5WQC','8ys3KE+6VrBKUk7KU4VKUP4','EshdSqBdHq','wgyQW7JdMKxcSKL9y8ocW7tcSSo+hq','BCofWPxcKSonWPVcQmoo','ysBdRdtdJgm9','dCk9W6v3kNVcQSkjW6/dPMvr','4P6JDEETUUwjNEEWNEwDTU++VSktWPborbXIx8oYWP4pfw9lWOOTW4q1f++9KmoY','W6dcQaabWQXWWOnogX8','WRThmCoaWOtdQffOyCkInJ3dVLNdG0aF','dry8WOBcLIPMmG','m8oxmCo6','h8obWPW','hCovWOmgW5bXnt3dTN3cH8osr8oTr8ooEG','WPLvsa','W55xWP3dRX0ZuI5/','WPFcPmk8WPi','wUkCS8ok','sow6VoITIoELMoMyR+EzGoA2TEwkM++9UG','5P2h55Yq54Is5OkR','b8o7W6i1W7RdOw5K','W5zAWOddSI4OvdHeWQC','6i6C5y+vFmoTW51VWODFsxxdHCkZ5AET6lAo772S','WOPHW4zx','emkIW4BcJfGeW53dUCkUFubghCoyWQpdKCkanrpcTmoRWRz+WQj6WO9R','WOFcSfRdJComeSoTWPm5W698omkA','zCofWO4','uJddHSobpItdPSoQW4yVW4zj','WPLFqCo5qSkh','n0nGW74','44kM5lIQ5lM+6lEF5yYo','W5/dQahcLCkmtSk8WOC','cmkwW5tdJmk4AsuvWRFcSW','lYpcLCoqkSkJW6S','ySktza46W77dPtBdOmkC','W6NcS8oQ','bSkazSkZW4DswCktESkqmtNdPmo6W4RcUhq','8kwnKo+6Ma','5lIF5AwI6yod556h','6i+A5yYJW7/dVSoRECkzhrdLPyxOTAtVVy8','DCkBEdG0W7ldPrK','u8oqWOVdICkKeWqMWRS','W5P3wSkyfSkzW5FdNadcRcy','W4rrWPVdRbeSqszO','W5PkWQK','DrO8xoEVPEwlRUMxMoMyJ8ojr8kC','ASocWPxcLCowWP7cOmoy','ySkxyI80W7BdQX7dPSk+WRlcVColWOy','oCktfvmzeCosAG','WOztsmoWzmkkW4zsW5u7p8kfjwX9WONcUmk6m8op','cCoFWOyFWOG','gmkmCSkUW69Bsa','zmkryGuTW7ddTa7dL8krWQpcTa','WOTUW4q','W7jllmoOWOJdPfC','bCo3W685W4ddQa','W5jlWOBdTcO','4P65DEACRUIcKoASHEEIK+wMSUEtUCok','wdtdH8omqYtdU8oiWOCTW5brWOyEW7lcV8kqCfmuWRpcOa','r2W7','AZ3dUWddMxiU','xXFdV8kykctdSSoRl8kb','W48KbCoNENztxCkbjSkazCk8nXveW58yWQa','772l5y2h6icv5lQ15yod','xCkpxa','fLtcT01fAgNcGhieAmotW79YWPKCWOajW7DUWO8Gra','W7TrkSoRWOxdPLG','lSo2uIFcMw7dIsiuWPlcGLO','WQddTCorkCoBxepcRu7cVa','amo8W6iYW4hdPgzY','wmotWO3cISo5FwasWPdcHX9czW','q1zaW4RdN8kTWO3dUmos','eCoxW5dcJCktW5LeWRRcS3FcNYtdSw0','sLlcRKvgq2BdLKWuySorW6juWQu','W5qjmG','u8kRW4tcGq','WPa7CG','x8ohWPdcMCkZjCopiW4oeWeg','WRhMIQNKUipdKq','tIeEyG','W67cOX04WPLQWP57eXfuWOO','vufrW5FdImkuWRJdOSopW4xcSmkc','sIuuzmo+WQP8W7lcNq','h8o3W686W5hdSKPL','W4HXtCkdbCkeW7pdJdS','W6ZdH8k+WPFcSmozcty','jspcKSoGjmkRW6vAbq1qW78AW4O','WRldV8oclSo+qftcT2lcQ8ki','5BEa6k6k57636lAr6l6m6l2n6kgo5B2i5yQg6lER5yYIFdtdToI1VUE7Vos9RowqGa','gry9WPZcJcjMmG','W7SzW4FdIqyuh8kUDa','uc4eC8oPWQO','oc09W5GhW6yqW7OcWO8','W6JLHiNdHW','WPrzw8o3qmkgW4nEW70Nl8kM','8lgpR3u','WRVcPmkhtSkF','hmkhAmkPW4Tox8kzEG','ghDIW5bpxW','gmk6W6rW','kICUW580W70wW6W5WQzIdW','vmktumo/hSk2WP0','WQZdPCoc','W5tdPXhcNmkSwmk1','Ah7dHmomkv0','tFgcNku','cSkUW6r9dutcOW','WRhdHJqZBL/dVahdQmoo','q1PeW5BdQCkSWR7dSSozW5FcPa','WObLW5DsBWupW5xdVHesvfSAfSoPvmkoW6C','566U5yQv5AwX6lw/6yEv6k+J5Q6P5PsiWPVcISkh','W5JdL8kVWOZcImorecRdPCoU','W7GeW4FdIXuTkSk0ACoGWQZcUa','WRlcPSkq','WQJcRmkzxSkdW64Edq','jIFcKSoc','W7Lxoq','5P6L6icN6iYL5y+/55w15OIJ6yUW5PYl5l+85Ooo77+i','W5icaCotWPHYva','cSogWOqIWPm6ndy','6i+D5y6PaCk+WOiusHldL8oFjbBcIglLPl3OTOi','AgWYW6NdKw/cPX12ACoBW7y','W7tcQbC+WQX3WQbgeG','bSoNW7uyW5JdOwq','nmkElfaVi8owAmopisNdVSklWR3dMKVdVmkhkmoyd8k+W4nQW5CJrb8glmkKDG','CmojWPxcI8ogWO7cLCocW7S','xIudw8oIWO5fW7xcLa','dCklW4NdKSkQmayvWQ0','WOy4hSoTDs1WxCki','yctdH8k3oaC','ms7cICouaSkPW69ubq','f8orW5dcP8kkW59BWQRcGLJcJI0','xYKBySo+WQW','b8oZW6W7','mmkFfKmffCosymoxfaFdTmkrWQddS1hdRCkibmosoa','imoSCdBcSwRdIJq','tLBcSvq','5BwV6k+i57+B6lwx6l6G6l6W6kcd5B6u5yMx6lAN5yY8W709WQ/OT7hNUA7MLjRNUQS','W7xdJcRcOmkMECkqWRmAW714bCkMkWi','gSkQW6rTnei','8lg+Nq7LRA/NIiNdKa','WOi0BrK','W4ldTbFcNa','s8kOW6hdOmkkaquJWPpcNWmM','vSk/W4ZcH0npW4VdRW','WQ4VWOTIW5K+WPWiW5bkWPZdP8otW6qfWQO4sHWsEG','oCopWQjjzaxdUNBcN8ojWQ4','sdFdImoBpcJdUColW4W3W5DHWO0uW7lcHmkmErGe','WOjBrSoQ','jCosW5WdWRZcPSoMWPNdRCkb','tmk0W5S','xIudumoYWQXFW6/cVZ3cHmouaUIVNoAYUEwML+I2OgBINlCN','wdahESoYWR1nW6/cMGJcQCkWwGBcJmorW7jRW41OWQPuW5ZcLSo8W5ddNhL/qSoRW4ldQa','WRZcQmkex8kZW647','lmkGW7ddOSoBuCkJjH4XeW','W5bqWPldRXyGtsq','W58diCoUWPzKsSoQW4tdOCkurCosWQZcMfdcOa','k8ohWR9qqbNdOa','EYldK8kTaXBdGmoE','W5FdPrBcKmkpq8kTWO0DW4y','W7ezW5i','WPJcMCo1WRaDW71jE20q','p8ojWQjJFqpdPwBcR8oTWQmgWObW','CwnZ','B8odWPe','h8oCW4FcOSkjW5jkWQa','5lQ75A+E5z2k','WRldV8oclSo4rq','nmoWDshcMNJdLa','W4DTWPVdSd0V','kJlcKSotomo+WQeCaZfzW6PcW4BcVCowWOKst8khpJfmnrWGW5CSgmkA','5PYr5Ac15z6F5z+1','WPBcOmk7WOjlWOGudG','rhe1W7RdNw8','lvLiW7TdW6BcJSolWODfWQBdSCoJsmoLW4ldPa','6i+F5yYzW4XOmvJcM8kvW7FdOMXP5AwJ6lAm','Ch/dQmoopxPhWRL1x2r3FHxdNXZdUdaGW4FdSgClkCkGW4Cu','6i6m5yYWF8o1kmkiWRSuW6n9nCkWW4VdQUwNVUI0Ma','W4SpmSosWRzLsmoQW5JdN8kcyq','nmo1EIVcIW','W7ZcQ8kyFCkqcaRdQtRdPq','WPXuxmo7rmkB','W4ZdRK/cUSk3bSkJWPXVW5mvESobxa','yd3dJmkWgq','W7dcRb04','C2hcJsOuW55DtSkyWOJcH2e','W58diCoVWPP6sSoPW4/dK8ksCSo0WQ3cLvBcKYS','WOZcQSkY','562T5yM95lQG5Q+4','C8kxEaG+W6VdIrm','fhPrW5nsFIldGMldNshdHSkOWP8Fyc7dUSkZW5r0W4ZdUeRcPG','nmoGDtdcMN/dTZGF','rmozmCoT','WQhcO8oxWO0hW5PYufyIW6pdR8ohwSkGW7jk','FtRdVXZdSMCRW7VdLCkvomknFmkXtCoZA8kCW4xcLq','ymkqWP9E','AZ3dRG','yZBdQWhdGwu/','AdRdTaBdHxa','B8ojWPJcNSoxWPi','BZddRbVdLMSUW7FdVCkjkmkU','jIurWRJOT77LJRZOV4ZMURpcVSkGlW','WRNcRmkdD8kFW4W+bYi','WOi2h8oLqsTm','yYtdJSknaHZdImov','ycBdICkPpWldGW','kmozpW','WPlcK8kOE8kJW48ioqXW','kICUW58KW78','n15mW7L/W6ZcN8oD','tmkLW53cGLHmW4FdUSkH','D8kxzGa6W7RdPq','W6hcVCoQWPOHW7bT','CmohWP/cICoXWO/cQW','fmkfuCokbSk4WPC0W4indmkxW6ZdG8kFvmoWWPtcPLuhW6i','W517xmkCaCkeW7pdJdS','AxtdMSoC','WPpdRWGd6ls+5y+b6l2p5RQCWPVcISkh','gxTGW7fR','W4DTWPVdSd0Vhq','bCkbW57dM8kzitStWRxcSWX4wMtdJfZdR13dJIrl','6zYf6kwZ5ywZ5l22','W5eipmoiWRzLsmoQW5G','gSoDW4m','sv7cTG','BdmszmovWR9bW74','W5ZdOJ3cJSkbECkWWPm6W7jhi8kbeqLJzmouWOiKWPhdTCoNWOCumCkvpG','WO42aCoL','WRnzW5/dGcqpimkSC8oK','W73cLCob','WQOUWRPPW6a+WP8','W7ZcICob','fd3dMSoggIldPCoBW5TRW4rcWPGUW7FcVCkvEbG2WR/cUCoiemooF2pcRq','WPNWSPoT','f3bTW4HFss7dLG','WRmHWOD2W5KUWP8','ms/cGCongmkXW61qbsHc','sdVdJmohcZNdMmoxW4C','W6tcV8o3wxb1W6GHA8oe','cCokWPWtWPivmchdJ2lcJ8obtmkufW','6iYJ5y+YFSoHWRpdMh4cu8kEbrhdGWRLPR7OTiRVVBK','of9DW7HRW7ZcQSohWPS','W58pm8oiWQDUsSoG','sLBcTuufAhxdHNqozq','AtBdRdhdJ20XW6FdLCkWlCkNAmk9','W7ZcS8o1rXHMW7yNB8oSWROF','W4RdNCk8WOVcT8owedBdNSo8ubqaA8kTW5y9','BCojWPpcNCoXWP/cQmoeW6pcUb9GWOldUXhcG8kkr0/cIXi','W5H+rSkil8kfW5FdOZNcVY0','mCoGEcBcMNNdRJu','pYiMW54d','WRJcPSkfF8khW78/','W7q8cSoOWRXCF8olW7xdHmkWsSoOWOy','aCkHW6r9kKi','bsWPW6NdNw3cOb9WDCojW7BcSmoymKmJACkYWQRcMJJcU8kJ','WQePWO1JW7GOWR0iW4f4WRtdSmopW4W3','nmoUFZlcRx7dIq','qL3cTZyKW7zNDq','y8kmWOTyWQ3cTSo8WOtdHSkNz8kykZldOmkZWQhcT8oTW7q','WR7dGcu+sLpdPrFdL8opWP3dNhbnnSkzdCkAWQvttW','uCkcE8oocSkeWPm2W55YcSkqW6VdG8kqC8oXWRtcOfGB','dSkwW4NdKmk5ctmpWRdcTYP+','FtRdVXZdTgS3W6S','rfyE','WRhdV8olfmocxLlcUG','WQddTCorkCoBxepcRvlcQSkx','xLlcRgnhAgZdHNyXASoAW7LK','WRZdIIC','q8kfWPtdU8k/W4neWRVcMhq','xSkYW5VcGKbcW5RdPCkmyv5N','5lIw55gt5BYe5ysExmoDW60','eCkiDCk8','ltpcKSoLj8kLW6K','W7fwlmocWPVdILO0C8kGmJ0','CCkgWO9tWOZcOmobWP7dHa','nmoGycFcKu/dHIGUWQdcM1rYWQ3cHq','WRRcQmkdwW','WR7cMCotWPtcRSorWRziaHfDqar6txXFBCkk','bmkBW4FdHSoXDSkzaa','qvhcRWCLW5LJySkuWR7cVdT3WOhcIW','WP9vrSoW','ECklWP9tWO3cPW','xLVcVG','cCokWOKeWPKLathdVG','gSo7W6yWW73dRNDKpWK/u2hcNgddOfe','dbaOWP/cUt9FpSoPW6u','WRa4WODLW64sWP8bW4K','emolWR4zWPC0pW','W7VcV8kV','DMhdNmotcLXAWPH3BMW','WRRdR8kHh24NW5WDE8oIWOyE','q1PeW5BdQCkTWRldOq','nmodWRe','fmo2WOLHvZ/dKv/cG8o1','W7dORzlMSilLPAVOTl0w4PYuwa','W6dcQaapWQzSWPTggsXqWOJcJdC','iSo3zc3cJq','mKrrW6vVFHtdTuxdGW','DSkBCqiiW63dRWC','WOjLW5XrsqG','wt/dNmoqoZ/dPa','5BsI5Aoo5z2W5zYA','WQ7cOmkzBSkjW7CYbW','iYxcKSokpCkTW7PkncjbW7y','ymkxWOvvWPRcMSoJWPFdJa','WPZdVX8BxwxdLYJdQmoK','dSo7W6CQW7RdOw5K','WQdcQCo7tJm7W7CTA8oeWQC8oCoHwSosW4LTWPvmWPhcO8kwWQy','gCkqW5ZdNSkRESkihIfyid4eBwX1W6ldHxVdPHRcRCo/W4KXWPtdGCkWq0TeW57dISohWRNdIt8cemoRW5RdMSo0ACoYW6D3WO8ms8kteSkkW6OrFbWXW486BaTai8osW5XJsSodbMbfwqpdHSoIWPL7WRJcJHhcVe7cQ1v1W6K3WPNdQ8kAnZFdNMTsfsddOCk3W4NdJ8k5WPenzSkZWRFcNSoDcLNdI8o7WOzudCk2WRtcV8kmW4iGW7iEWOldRCk8wK7cQ1Lvn8oq','WRmJWOLOW4i1WOucW5rzWRZdQmoZW6qEWQy/','BZddRbVdLMSUW7FdPCkuia','WRFdS8oljmoir37cSa','WR4oDmkhW4pcRtu','AxldKmoxdeDAWRTPEwPYraJdRrxdSq','WRFcP8kuvSktW7GYgG','BConWPVcNa','bSkazSkZW5XzxmkdBCkvjbpdN8oHW4xcV24/W7ar','wSkfumoqbmk+WO4OW6rBfCkC','d8kQW6m','DIpdLG','5P2O6ik76i2r5y2155wJ5OUZ6yU65P2W5l6b5Oc0','W5qdo8oBWOD/','E3JdG8oqm0bAWQDpDNT7','WPpcRmkYWOH9WO8+cxjeCG','cx9NW5a','W6BcRGaLWR9QWOrwkanbWOe','5lUZ5AAF6yoT55+F','WOjVW5vZtXi','WQZcN8kkWQDRWQKcoL55','tmk6W4BcM2rEW4a','W7NcV8o8ttHMW40S','bSkUW7P9','g8kGW7P9','FYldHW','tgyOW47dNwZcO1XhuCoiW6FcLCofc18uCa','qv3cVGWcW7n2FSk5WRVcTdbnWR3cLJ4f','bHa9','u0tcQq4IW75JB8kIWQlcU3nZWQFcLdu','E8kaWPvf','zSkDEaOYW74','gSoiW4/cPmkZW4nBWPxcUKdcMq','d2VdTSoflXJdQSo/','q1PeW5BdQmk8WQZdPmozW5FcO8kHWPLTEWJdHuZcNSok','W6/dHcmUCuddOqZdMmoJWRJcGG','W57dKCkVWRFcM8olfdZdGSo5vdS7BCkRW5OR','W63cQsaJWQjMWP4','m8kBaW','qv3cVGWEW60','dmkbW4/dVmkKkZ0vWQBcGcX3w2G','W64FW5ldIJquimk3','ydBdVrBdSMC3W6hdHSkddCkOACkXv8ooDSkiW6NcGSok','W4L1qmkvd8kD','FsJdHCk9pXldGmouemkQW7n4W583W4uGwuTkbc8','gSo5W6GUW6BdTw0','b8krW7VdNCo8qCkvfcmKlICADvPLW6RdLNZdLHFdQmoVW5GAWRddICoO','uCk0W4RcJ2roW4pdS8kUFw9HcmoiW7RdI8kDkZtcKCo7','xSkcW77dK8oRvSkx','CmofWPhcL8o2WOO','5O2O6ygl6yo055+JWRf7WQO','W5eimCozWOS','vtVdISorpcJdPCorW58HW6jeWPGuW6JcUCkrBtqtWQ8','8y+pG8oo','cCogWO0yWQ8LpIG','t8kFW5O','tmk4W4JcHwroW5/dQCk9A1Pee8otW67dGmkanHJcMW','vs8q','kCotk8o9WO7dGr4','n8otnSoQWQhdIq8+WRrl','WQpdJcC0xutdUHFdK8oNWQ/dMa','4PQFW7hORzJLHQpLRQZKUAlLVAVOPj3NMzZNJRFLOQ3LJ5RPHRpLKQ/LHihOVBlOOQxOHyJMNzhVV7q','k21RW5zKtcBdGa','vFgfT6y','nSkob1CKsSkqimoncY3dVCoiWQddTK7cT8kypSoaiCk7WPrwW5SK','fmokWO8sWQ40pdFdPNtcP8ofvSkOeCofFeNcGCoUBq','W7OFW5pdKcKbiSkI','dSkGW6v1oulcN8ktW7i','tCk0W5ZcNLPF','W5xdM8k8','hr4ZWOy','W50YWOScbfnzW6JdSJm3sKi','q1HkW4JdQmkSWRm','bbO/WPBcII5TjCoHW7mCd8kVuvJdImoiWOZcRW','r2yYW7RdGgK','wJ3dM8oCgctdVmohW6aG','WQhcO8oxWO0DW4fLvKeNW7e','BmkCDqaUW73dPqq','ASocWPlcNmoB','W6lcK8obWONcImoBWQPyfu1oyXfEwhHFBSkiW70','WRFdHdi4EvhdRtNdGSoE','W4H9sCkFkCkEW5FdGcFcQcS5sJhdUuRcJq','lvLiW7TyW63cI8oBWPbaWRpdM8oyu8oQW4xdVJJcQq0','WRpcQCoeWOO4W51Ytg0W','DcJdLmkAaHJdHSosa8kzW5n3W547','W55xWPFdTY0Lrti','W73cUCozWOqGWPT1ufiXW6ZdH8oYsSoIW6rqW43cGLvpbKOJyCkpyG','WQhcUSoCWOO6','dmkGW7rTnvpcOCko','b8o3W6q6W6BdPw5UoXOFxehcNhVdRfy8d8o/WOG','WR3cO8kFqW','W5TwWPm','qSkgW43dJCoQpCkpgIOAac0aAhn/W7FdIa','vcVdM8oZaIZdRW','W7GyW5BdLH4qoW','W77cHCkTzCkNW5KenHv3W4/cSa','W4u7W7NdRbmup8kvF8oWWR7cUgpdUW','bSkmD8k4W6b4tmkpv8kvotldNSogW5C','44oW5O6h56ww44kr6k+J5ysr6i6x5y+IWQuNWQ5TWQe7','cCkSW6nXlL/cU8kdW4JdVNjr','WRlcRmkzxCksW7q','smkpq8oxn8kLWOG+W4jVfSkE','W6NcQbeOWPTMWP1acH9WWOFcJtTkmeu5rCo2AW','sI8ACW','kSo2Cq','WPq2zWGvWO7dUSkqWO0','WRFcUmocWOW8W7LJrLC1W6xdPG','t2iOW7W','tmk4W4JcHx9fW5RdUCkQBK9UkmoiW6hdH8kA','b8k6W6nEnfFcQa','WRtdHdq7','WPS8zWyiWPZdM8kA','hSkqW5ldJ8oQvSkDcHihkcKAvhu','hmkhAmkPW55vq8kIz8knntS','W7xcM8osWOy','W6VcQbORWR1R','lSojWRHeDX7dH2S','W5FdKCk+WOhcRmoDctZdMSoVCbSGA8k2W5O6emkyga0','WPq2CaqqWPtdGSkgWQnb','s8kpsG','6i+C5yYYW6ddQ8kKlZmsWP7LP6FOTAG','bCkgCq','WPTFsSo6zmkkW5PiW4yTcSkGpNDPWOlcPCkNh8ofBG','k8oGEcxcI2m','W6DnoCodWQddQuSICSk3ndtdMupdOKOl','s8kFW5jcW4TNzrxdPglcGmoXqq','WQpdJcC0sLpdUq3dHmozWQJdUwvnlmkKemkoWOLe','dmkwW5ddG8oYE8kicHGglq','uYqOyCoJWO1fW7ZcNtFcQmo2tf/cPmoaW6O0W4LUWRXDWPtcJCoFW4NdKgm','lSosb8o5WPFdTriWWRXIW4RdMSoAeerwW4HRF0zEWRddUG','kJOOW4ueW7W','ncS6W4iqW6Gb','f8okWPKfWP02na','BetcVvjMzMRdIG','W5VdTt8','WRtOR5pMSjZLKAdLUB3cPW','WQerBCkBW5RcTgCszSkcgJ4','lSk/W6ZdS8oBqCk5jqG6bq8TxLvzW4RdV0y','5BAQ56+s5RI3f+wKUW','WRZcR8ovWOCCW5fRwLiXW4pdOmoNwSk7W75nW5pcPxbF','w2OYW4NdM2RcTL4','a8oZda','W7etW5VdGXmi','hSoxW4xcQSkzW4rC','FmkkWOS','e3T9W5DlsI4','oSkBb0y','aCkqW4RdJCoWEG','jSoxk8oRWRRdLbC','uc4EySoEWQXEW7tcGq','WQldUCoxmW','dSkJW7H3kG','yvfmW6fJW77cK8oAWOX6WQpcOa','eVcORk4','g8omWP4FWOO4jshdMxu','dSkMW68','xuhcRsqNW7XL','W55xWP3dRWGOtHvIWQJdPSoY','W4RdKCk4WPFcM8omndRdGG','WOW4cW','dCoJWPVdMaeCWP3dJmkByNXndG','FZFdI8kZiGldMCo9cSkUW5u','s1lcQvvnDhm','iYxcKSokpCkTW7Pkkt8','rfhcTWyUW69lFW','CCkgWPHFWONcUSo5WOJdQSkW','5P6t6igj6i2S5yYZ55Ew5OQp6yIq5PYq5l2n5OoL77YW','WOWqWRfhW44iWQ43W69H','W7ieW5ZdGW4o','hSkQW7L8putcHSkE','8yEpNKZMG63LLOJOJ67LVRC','BSojWOxcISocWP3cOa','WRpcRmkesCkhW7SY','xmk7W4FcKNLEW5RdMSk0EuK','WOKKi8oR','W4rqWPpdTreVvcr/WRxdOSoWWRySW6hdIfG','WRzWz8oh562i5yUF6zwd6zQZWOPOea','WQCsoa','wcmuC8oOWQ1GW7tcLddcRSoRsMRcVW','ySkxyJ8YW7tdSbVdPSkPWRdcPCo3WO0MFdqy','gHy0WQBcTYbUoq','WRZdGc49Bf4','lINcGq','WOmGhSkhd8kNW7hdVY0','FsFdVb3dLxy','gSo3W6iSW5hdTfnOiW','5PYV6icp6i6H5y6655wZ5OQU6yU05PY05l2I5Okh77+s','iSoRya','hCogWOWcWRiWpd0','mcaGW4uHW6ykW5CKWOb0bG','y8kmWOTyWRBcVCo5WPtdKCkICSkYecNdR8k0WRS','hmogWOycWPKJ','W7tcPbmIWObTWOrkdGXqWOJcRtTrpei','WPNWSO2e77UQ','d8kQW6nlmvVcV8kwW7NdHMfag8ohvmkgWO8V','mca6W5qdW7S','W5SvwSoQx8kdW4qiW6iTkCkMjM1aWOhcTCkDoComCmkoWR0','DYldJSk8','ESkbWRHzWPtcTSoJ','5P+F6ioh6i6y5y2i55sE5OUy6yUd5P2K5l2r5OcN','W7vaoSoFWOZdTeWoza','kCoGCYBcRw7dIJ4hWRBcS1bOWPhcGYlcIKbTWOy+','lCoHqI3cLg7dIq','W7WvW4hdJrejo8k+u8oL','W6hcS8oXqHn1W6KT','WOLLW4z7rdaaW4NdVa','s8oKW4ZcLmooW4dcTSoyWRVcJG','AxddNSojf1Xa','W7LblCoEWOJdOfO','WOy6AqG','W7dcMCosWO7cRmoxWQ9upvfEqa','kCkBgLm','xSkuvSowaa','WOvpxmo2','WQBdS8ora8ocwLZcVwlcJSkAWRldV8oa','WR7cPCox','uSkiv8oCamkJ','W6BcM8opWPm','y8kmWOTyWQRcOW','WPbixCoXrmkIW5juW4mPlmkM','WRldVCommmo/qfK','q0npW5hdJG','W6lcK8obWONcN8omWQLcaNnjqG','gq82WPVcRa','bCo9W6y','WRJcOmkp','Aw/dHCoqk05hWRHI','tgyOW5ddJvhcUL5f','mSkvfa','kmoWyGtcK2RdGa','nseU','W5VdTqu','mCocWRvmzWJdQ3W','aCkHW7r0lvlcQSkj','u1pcJe9dyMK','vf3cTryUW68','WO0Yh8oZDt5f','fNf9W5betcBdGa','hmkhySkXW7Tysmkf','bmo3W7iTW5xdP2zY','W7TJWQVdMH0sFXfeWO0','dxDPW4P4sdRdKgNdVJRdQCkNWOiSwd3dVmk8W6e','zZ/dICk0','lIpcImoep8kS','4PYOpUETSowkLoEXKEwEPU+9G8ogzSoLn8kpWRxcGIDIfCoYWQ3dU2VdICo4vU+/NCoF','omkvawi2e8ox','5lMk5lUL5lQ+8logOo+6Ga','vtFdJmoEacZdPCoB','4P+dW7RMNRJNN4ZORQRMSzBcPa','qv3cVGWoW69WDmk5WOdcPJS','WPu7w8kfcCkCW5dcIGFcUYGWCIVdI1ZcM1CYccLjhJRdHSo2WRO'];_0x4ad1=function(){return _0x31674b;};return _0x4ad1();}async function getFirstLZCK(_0x2383bb){const _0x5821cc=_0x153f99;$[_0x5821cc(0x336,'c(A6')]=!![];const _0x3908fb={'url':_0x2383bb,'method':_0x5821cc(0x1b5,'dZ6v'),'headers':{'Accept':_0x5821cc(0x128,'kF]W'),'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':_0x5821cc(0x317,'Zlpu'),'Connection':'keep-alive','Sec-Fetch-Dest':_0x5821cc(0x180,'IPgc'),'Sec-Fetch-Mode':_0x5821cc(0x24f,'F(O7'),'Sec-Fetch-Site':_0x5821cc(0x281,'22[4'),'Referer':_0x2383bb,'User-Agent':$['UA']},'timeout':0x7530},_0x16511d=0x3;let _0x195587=0x0,_0x32b531=null,_0x5c9065=![];while(_0x195587<_0x16511d){const _0x1f336e=await common['request'](_0x3908fb);if(!_0x1f336e[_0x5821cc(0x309,'7uYz')]){_0x32b531=_0x5821cc(0x2f8,'8L%8')+_0x1f336e[_0x5821cc(0x1fc,'8i@1')],_0x195587++;_0x1f336e[_0x5821cc(0x25b,'1pjn')]&&([0x193,0x1ed][_0x5821cc(0x216,'FN&O')](_0x1f336e[_0x5821cc(0x256,'zvQX')])&&(_0x5c9065=!![]));continue;}if(!_0x1f336e[_0x5821cc(0x196,'xfVZ')]){_0x32b531='getFirstLZCK\x20请求失败\x20➜\x20无响应数据',_0x195587++;continue;}activityCookie=common[_0x5821cc(0x2fd,'6Mh0')](_0x1f336e),LZ_AES_PIN=common[_0x5821cc(0xfe,'g#D3')](activityCookie,_0x5821cc(0x218,'%anR'));!LZ_AES_PIN&&$[_0x5821cc(0x226,'!t$R')]&&(activityCookie+=_0x5821cc(0x187,'k8Qq')+$['LZ_AES_PIN']+';\x20');const _0x8dd30e=common[_0x5821cc(0x303,'y7V7')](activityCookie,_0x5821cc(0x2fb,'kF]W'));!_0x8dd30e&&$[_0x5821cc(0x2db,'h@0e')]&&(activityCookie+=_0x5821cc(0x31a,'zvQX')+$[_0x5821cc(0x2a8,'1iZV')]+';\x20');const _0x5e2075=common[_0x5821cc(0x17c,'VGyk')](activityCookie,_0x5821cc(0x30a,'%anR'));!_0x5e2075&&$[_0x5821cc(0x1b4,'AJ*v')]&&(activityCookie+=_0x5821cc(0x33c,'%anR')+$[_0x5821cc(0xfc,'t8wT')]+';\x20');const _0x5349fd=common[_0x5821cc(0x1fe,'t8wT')](activityCookie,'te');!_0x5349fd&&$['te']&&(activityCookie+=_0x5821cc(0xfb,'1iZV')+$['te']);$[_0x5821cc(0x170,'1iZV')]=![];break;}_0x195587>=_0x16511d&&(console[_0x5821cc(0x1b8,'!t$R')](_0x32b531),_0x5c9065&&forbiddenQuit&&($[_0x5821cc(0x20d,'7uYz')]=!![]));}
|
||
// 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)}
|