小毛:喜爱帮 脚本
ql raw https://gitee.com/wj0570/wjwpl/raw/master/xab.js
定时:0 7,8 * * * 不会的复制我这个定时 不需要抓包 变量 变量名 xabzh 值格式:账号#密码@你的账号#密码 不需要抓包,很爽!
拉库失败,请自己添加脚本文件
/*
游戏下载:https://m.xiaicn.cn/invite/508902
定时:0 7,8 * * *
不会的复制我这个定时
不需要抓包还不会玩,问问别人咋玩
变量
变量名 xabzh
值格式:账号#密码@你的账号#密码
不需要抓包,很爽!
*/
const $ = new Env('喜爱帮');
function _0x24b20f(_0x43196e,_0x480cd4){return _0x5cf5(_0x480cd4- -0xe4,_0x43196e);}(function(_0x39724a,_0x351538){function _0x4f4779(_0x3c2878,_0x5b793c){return _0x5da4(_0x3c2878- -0x87,_0x5b793c);}function _0x866a9c(_0x4f27a9,_0x336fdc){return _0x5da4(_0x336fdc- -0x203,_0x4f27a9);}function _0xeac910(_0x19485b,_0x52f184){return _0x5cf5(_0x19485b-0x18e,_0x52f184);}function _0x484639(_0x2d3067,_0x4b2521){return _0x5cf5(_0x4b2521-0x2c2,_0x2d3067);}const _0x232aa3=_0x39724a();function _0x558385(_0x3106c2,_0x446da5){return _0x5cf5(_0x446da5-0x2ed,_0x3106c2);}function _0x1e9055(_0x360c12,_0x26646e){return _0x5da4(_0x26646e-0x33f,_0x360c12);}function _0x579795(_0x5c8e09,_0x385868){return _0x5da4(_0x5c8e09-0x286,_0x385868);}function _0x3ea41b(_0x15ad37,_0x567b45){return _0x5da4(_0x567b45- -0x34f,_0x15ad37);}function _0x1faa03(_0x49bc6e,_0x5caa27){return _0x5cf5(_0x49bc6e- -0x3c,_0x5caa27);}function _0x25b523(_0x255942,_0x5c53c3){return _0x5cf5(_0x255942- -0xfb,_0x5c53c3);}while(!![]){try{const _0x273936=parseInt(_0x579795(0x4a5,0x4ae))/0x1*(-parseInt(_0x1faa03(0x1e4,'8X$D'))/0x2)+-parseInt(_0x3ea41b(-0x134,-0x121))/0x3+-parseInt(_0x25b523(0x150,'oBEc'))/0x4+parseInt(_0x558385(')ZRF',0x53f))/0x5+-parseInt(_0x3ea41b(-0x15f,-0x167))/0x6*(parseInt(_0x25b523(0x140,'p$1r'))/0x7)+-parseInt(_0x3ea41b(-0x10b,-0x124))/0x8+parseInt(_0x25b523(0xe2,'L[f3'))/0x9*(parseInt(_0x579795(0x485,0x4ba))/0xa);if(_0x273936===_0x351538)break;else _0x232aa3['push'](_0x232aa3['shift']());}catch(_0x3dadee){_0x232aa3['push'](_0x232aa3['shift']());}}}(_0x2315,0xe7bc2));let status;status=(status=$[_0x3b7fac(0x24e,0x212)](_0x34cfa2(-0xa3,'6pH@'))||'1')>0x1?''+status:'';function _0x493c82(_0x20be00,_0x44fb99){return _0x5da4(_0x44fb99- -0x146,_0x20be00);}function _0x5cf5(_0x1b2d92,_0x38a573){const _0x2315ad=_0x2315();return _0x5cf5=function(_0x5da418,_0x4df2a1){_0x5da418=_0x5da418-0x1d6;let _0x406787=_0x2315ad[_0x5da418];if(_0x5cf5['svBoAM']===undefined){var _0x28dadb=function(_0x55a68f){const _0x42f051='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x304d3b='',_0x310fdf='';for(let _0x2bea9b=0x0,_0x458ae8,_0x44cdf0,_0x398041=0x0;_0x44cdf0=_0x55a68f['charAt'](_0x398041++);~_0x44cdf0&&(_0x458ae8=_0x2bea9b%0x4?_0x458ae8*0x40+_0x44cdf0:_0x44cdf0,_0x2bea9b++%0x4)?_0x304d3b+=String['fromCharCode'](0xff&_0x458ae8>>(-0x2*_0x2bea9b&0x6)):0x0){_0x44cdf0=_0x42f051['indexOf'](_0x44cdf0);}for(let _0x2c94a4=0x0,_0x168d2f=_0x304d3b['length'];_0x2c94a4<_0x168d2f;_0x2c94a4++){_0x310fdf+='%'+('00'+_0x304d3b['charCodeAt'](_0x2c94a4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x310fdf);};const _0x5cf56b=function(_0x28aace,_0x3db5e7){let _0x1d9c06=[],_0x386731=0x0,_0xd908f6,_0x32ddb0='';_0x28aace=_0x28dadb(_0x28aace);let _0x4573c6;for(_0x4573c6=0x0;_0x4573c6<0x100;_0x4573c6++){_0x1d9c06[_0x4573c6]=_0x4573c6;}for(_0x4573c6=0x0;_0x4573c6<0x100;_0x4573c6++){_0x386731=(_0x386731+_0x1d9c06[_0x4573c6]+_0x3db5e7['charCodeAt'](_0x4573c6%_0x3db5e7['length']))%0x100,_0xd908f6=_0x1d9c06[_0x4573c6],_0x1d9c06[_0x4573c6]=_0x1d9c06[_0x386731],_0x1d9c06[_0x386731]=_0xd908f6;}_0x4573c6=0x0,_0x386731=0x0;for(let _0x6a2d9d=0x0;_0x6a2d9d<_0x28aace['length'];_0x6a2d9d++){_0x4573c6=(_0x4573c6+0x1)%0x100,_0x386731=(_0x386731+_0x1d9c06[_0x4573c6])%0x100,_0xd908f6=_0x1d9c06[_0x4573c6],_0x1d9c06[_0x4573c6]=_0x1d9c06[_0x386731],_0x1d9c06[_0x386731]=_0xd908f6,_0x32ddb0+=String['fromCharCode'](_0x28aace['charCodeAt'](_0x6a2d9d)^_0x1d9c06[(_0x1d9c06[_0x4573c6]+_0x1d9c06[_0x386731])%0x100]);}return _0x32ddb0;};_0x5cf5['rvodET']=_0x5cf56b,_0x1b2d92=arguments,_0x5cf5['svBoAM']=!![];}const _0x3859cd=_0x2315ad[0x0],_0x372c89=_0x5da418+_0x3859cd,_0x1cd2c4=_0x1b2d92[_0x372c89];return!_0x1cd2c4?(_0x5cf5['tDjspS']===undefined&&(_0x5cf5['tDjspS']=!![]),_0x406787=_0x5cf5['rvodET'](_0x406787,_0x4df2a1),_0x1b2d92[_0x372c89]=_0x406787):_0x406787=_0x1cd2c4,_0x406787;},_0x5cf5(_0x1b2d92,_0x38a573);}let xabsjhArr=[],xabzh=($[_0x2ea74b(-0x86,-0x9c)]()?process[_0x293603('A@F!',-0x19e)][_0x57c580(0xc2,0x9a)]:$[_0x493c82(0x105,0xca)](_0x34cfa2(-0xa7,'P25F')))||'';function _0x293603(_0x45b5fe,_0x2ae11c){return _0x5cf5(_0x2ae11c- -0x3d3,_0x45b5fe);}!(async()=>{function _0x49a53b(_0x5de8b5,_0x481eb4){return _0x493c82(_0x5de8b5,_0x481eb4-0x3fb);}function _0x245336(_0x5f5ce8,_0x65b48e){return _0x293603(_0x65b48e,_0x5f5ce8-0x1f8);}function _0x57e4aa(_0x506734,_0xa0eb65){return _0x34cfa2(_0xa0eb65-0x12a,_0x506734);}function _0x2e4232(_0x19a006,_0x243304){return _0x293603(_0x243304,_0x19a006-0x36f);}function _0x13101(_0xb80614,_0x29203d){return _0x34cfa2(_0xb80614-0x11a,_0x29203d);}function _0x98bfb6(_0x43b1ca,_0x356025){return _0x3b7fac(_0x43b1ca- -0x176,_0x356025);}function _0x5b9a41(_0xe747a4,_0x2a29c3){return _0x493c82(_0xe747a4,_0x2a29c3- -0x1db);}function _0x4caf27(_0x26b577,_0xe27d25){return _0x2ea74b(_0x26b577,_0xe27d25-0x2ac);}function _0x1f7897(_0x149a2c,_0x310ba9){return _0x2ea74b(_0x310ba9,_0x149a2c- -0xd5);}function _0x1258c7(_0x270b2f,_0x52927a){return _0x4daf18(_0x52927a,_0x270b2f- -0x14a);}function _0x2ac1cb(_0x468dc1,_0x4479fa){return _0x293603(_0x4479fa,_0x468dc1-0x3b9);}function _0x4b23b0(_0x13e2a7,_0x57a54c){return _0x2ea74b(_0x13e2a7,_0x57a54c-0x42d);}function _0x42dfaf(_0x374c43,_0x38a511){return _0x2ea74b(_0x38a511,_0x374c43- -0x81);}function _0x4f9ed1(_0x37f782,_0x4c264e){return _0x2ea74b(_0x37f782,_0x4c264e-0x146);}if(typeof $request!==_0x49a53b(0x487,0x497))await ddtjck();else{xabsjhArr=xabzh[_0x13101(-0xf,'3gOA')]('@'),console[_0x4b23b0(0x3b4,0x3dd)](_0x13101(0x44,'kzKS')+xabsjhArr[_0x57e4aa('AE$3',0x61)]+_0x13101(0x9,'#rVD'));for(let _0x44cdf0=0x0;_0x44cdf0$[_0x34cfa2(-0xb3,'g4w*')](_0x398041))[_0x34cfa2(-0x114,'IWr7')](()=>$[_0x34cfa2(-0x125,'qOQc')]());function stringToBase64(_0x2c94a4){function _0x4517fb(_0x4d5299,_0x29b00b){return _0x493c82(_0x4d5299,_0x29b00b-0x367);}function _0x558176(_0xe6b0f7,_0x2c0669){return _0x3b7fac(_0x2c0669-0xff,_0xe6b0f7);}function _0x6df5ee(_0xee6b90,_0xfeb805){return _0x24b20f(_0xfeb805,_0xee6b90- -0x2a8);}var _0x168d2f=Buffer[_0x4517fb(0x471,0x42d)](_0x2c94a4)[_0x6df5ee(-0x17e,'P25F')](_0x4517fb(0x443,0x453));return _0x168d2f;}function _0x276de2(_0x9f933f,_0x134ba1){return _0x5cf5(_0x134ba1- -0x3d7,_0x9f933f);}function _0x57c580(_0x5aa1ca,_0x51cb1f){return _0x5da4(_0x5aa1ca- -0x13e,_0x51cb1f);}function _0x3591b5(_0x27bbd9,_0x33bf83){return _0x5cf5(_0x33bf83-0x2f3,_0x27bbd9);}function _0x4daf18(_0x3beb77,_0x20d660){return _0x5cf5(_0x20d660-0xef,_0x3beb77);}function _0x5da4(_0x1b2d92,_0x38a573){const _0x2315ad=_0x2315();return _0x5da4=function(_0x5da418,_0x4df2a1){_0x5da418=_0x5da418-0x1d6;let _0x406787=_0x2315ad[_0x5da418];if(_0x5da4['iEyqCM']===undefined){var _0x28dadb=function(_0x5cf56b){const _0x55a68f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42f051='',_0x304d3b='';for(let _0x310fdf=0x0,_0x2bea9b,_0x458ae8,_0x44cdf0=0x0;_0x458ae8=_0x5cf56b['charAt'](_0x44cdf0++);~_0x458ae8&&(_0x2bea9b=_0x310fdf%0x4?_0x2bea9b*0x40+_0x458ae8:_0x458ae8,_0x310fdf++%0x4)?_0x42f051+=String['fromCharCode'](0xff&_0x2bea9b>>(-0x2*_0x310fdf&0x6)):0x0){_0x458ae8=_0x55a68f['indexOf'](_0x458ae8);}for(let _0x398041=0x0,_0x2c94a4=_0x42f051['length'];_0x398041<_0x2c94a4;_0x398041++){_0x304d3b+='%'+('00'+_0x42f051['charCodeAt'](_0x398041)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x304d3b);};_0x5da4['upViLQ']=_0x28dadb,_0x1b2d92=arguments,_0x5da4['iEyqCM']=!![];}const _0x3859cd=_0x2315ad[0x0],_0x372c89=_0x5da418+_0x3859cd,_0x1cd2c4=_0x1b2d92[_0x372c89];return!_0x1cd2c4?(_0x406787=_0x5da4['upViLQ'](_0x406787),_0x1b2d92[_0x372c89]=_0x406787):_0x406787=_0x1cd2c4,_0x406787;},_0x5da4(_0x1b2d92,_0x38a573);}function _0x34cfa2(_0x395cb8,_0x312e6b){return _0x5cf5(_0x395cb8- -0x303,_0x312e6b);}function _0x3b7fac(_0x57cf41,_0x2d7c4d){return _0x5da4(_0x57cf41-0x36,_0x2d7c4d);}function randomString(_0x28aace=0xc){let _0x3db5e7=_0x27e49e(0x23a,0x227);function _0x1fd837(_0x4d488b,_0x5f4665){return _0x2ea74b(_0x4d488b,_0x5f4665-0x2b0);}function _0x16ff41(_0x32a7aa,_0x4ebbf5){return _0x34cfa2(_0x32a7aa-0x6ea,_0x4ebbf5);}let _0x1d9c06=_0x3db5e7[_0x1fd837(0x241,0x25d)],_0x386731='';function _0x497a90(_0x5ceae7,_0x6cad43){return _0x4daf18(_0x5ceae7,_0x6cad43- -0x4c5);}function _0x33a978(_0x265204,_0x42faf4){return _0x2ea74b(_0x265204,_0x42faf4-0x58b);}for(i=0x0;i<_0x28aace;i++){_0x386731+=_0x3db5e7[_0x16ff41(0x63b,'7^U*')](Math[_0x16ff41(0x618,'#rVD')](Math[_0x33a978(0x4fb,0x53d)]()*_0x1d9c06));}function _0x27e49e(_0x34b2af,_0x553ca4){return _0x3b7fac(_0x553ca4- -0x5c,_0x34b2af);}return _0x386731;}function xabdl(_0xd908f6=0x0){return new Promise(_0x32ddb0=>{let _0x4573c6={'url':_0x5b2354(0x32,0x36),'headers':{'Cookie':randomString()}};function _0x46b8cb(_0x1851e8,_0x289246){return _0x5da4(_0x1851e8-0x28d,_0x289246);}function _0x5b2354(_0x40535a,_0x38fd48){return _0x5da4(_0x40535a- -0x1b4,_0x38fd48);}$[_0x5b2354(0x3f,0x80)](_0x4573c6,async(_0x6a2d9d,_0x3a97a6,_0x3147a9)=>{function _0x425df0(_0x1e6258,_0x4e9527){return _0x5b2354(_0x4e9527-0x4c3,_0x1e6258);}function _0x5a7d01(_0x2ef2f2,_0x4922e6){return _0x5b2354(_0x4922e6- -0xec,_0x2ef2f2);}function _0x31097b(_0x4ebb41,_0x22e445){return _0x46b8cb(_0x22e445-0x108,_0x4ebb41);}function _0x111525(_0x2bb086,_0x5a9528){return _0x5cf5(_0x2bb086-0x1bb,_0x5a9528);}function _0x1a3f56(_0x54c138,_0xcfd6f4){return _0x5cf5(_0xcfd6f4- -0x29c,_0x54c138);}try{let _0x26c38a=_0x3a97a6[_0x5a7d01(-0xd2,-0xb5)][_0x5a7d01(-0x5a,-0x46)][_0x425df0(0x4f6,0x52b)](';'),_0x2580ec=_0x3147a9[_0x1a3f56('GQQl',-0xa3)](/_csrf_token" value="(.+?)"/)[0x1];await $[_0x111525(0x419,'kzKS')](0x3e8),await ddtjopen(_0x26c38a,_0x2580ec);}catch(_0xab0296){}finally{_0x32ddb0();}},_0xd908f6);});}function ddtjopen(_0x382fc6,_0x367215,_0x3bcd09=0x0){return new Promise(_0x431595=>{let _0x298c1e={'url':_0x1f784e(0x58c,0x571)+Date[_0x2b1af0(0x201,'#rVD')](),'headers':{'Accept':_0x2b1af0(0x1f6,'RH#['),'Accept-Encoding':_0x1f784e(0x584,0x577),'Accept-Language':_0x2b1af0(0x1d7,'z&bc'),'Cache-Control':_0x2b1af0(0x213,'RH#['),'Content-Type':_0x1f784e(0x5e5,0x5bc),'Cookie':_0x382fc6,'Origin':_0x13d4c0(0x406,0x3dc),'Pragma':_0x1f784e(0x5b6,0x577),'Referer':_0x2b1af0(0x1ee,'m#k['),'User-Agent':_0x3cf370(-0x18e,'6pH@'),'x-requested-with':_0x522753(0x3b5,0x3e3)},'body':_0x2129eb(0x48c,'GQQl')+_0x367215+_0x13d4c0(0x370,0x38b)+xabsjh+_0x3cf370(-0x199,'lP#k')+xabpwd};function _0x13d4c0(_0x59613a,_0x488177){return _0x5da4(_0x488177-0x1b0,_0x59613a);}function _0x2b1af0(_0x2177eb,_0x194a8d){return _0x5cf5(_0x2177eb- -0x2f,_0x194a8d);}function _0x3df369(_0x27b268,_0x537ee5){return _0x5da4(_0x537ee5- -0x6e,_0x27b268);}function _0x25ada2(_0x1a6fe4,_0x49b9ce){return _0x5cf5(_0x1a6fe4- -0x2b0,_0x49b9ce);}function _0x522753(_0xdb0bb6,_0x35c9e5){return _0x5da4(_0xdb0bb6-0x19c,_0x35c9e5);}function _0x3cf370(_0x3941d1,_0x27e1bf){return _0x5cf5(_0x3941d1- -0x389,_0x27e1bf);}function _0xbd0da(_0x250ce9,_0x4267c0){return _0x5da4(_0x250ce9-0xc5,_0x4267c0);}function _0x3ff8a0(_0x2a8006,_0x548d88){return _0x5cf5(_0x548d88- -0x140,_0x2a8006);}function _0x48ba77(_0x51fd7f,_0x24c98e){return _0x5da4(_0x51fd7f- -0x26c,_0x24c98e);}function _0x34f061(_0x519618,_0x221a47){return _0x5cf5(_0x519618- -0xa4,_0x221a47);}function _0x398bca(_0xceb0e8,_0x303c0e){return _0x5da4(_0x303c0e-0x11a,_0xceb0e8);}function _0x2129eb(_0x255e2d,_0x485867){return _0x5cf5(_0x255e2d-0x289,_0x485867);}function _0xc547e(_0x3aeee0,_0xb9fa53){return _0x5cf5(_0x3aeee0- -0x100,_0xb9fa53);}function _0x1f784e(_0x1d35a3,_0x4edff4){return _0x5da4(_0x1d35a3-0x3ac,_0x4edff4);}function _0x352f37(_0x3e83b9,_0x4befb0){return _0x5da4(_0x3e83b9- -0x35a,_0x4befb0);}function _0x2ae91b(_0x1a3f90,_0x29095c){return _0x5cf5(_0x1a3f90- -0x3f,_0x29095c);}$[_0x522753(0x3f5,0x3d8)](_0x298c1e,async(_0x5a796d,_0x56c377,_0x3bb4f2)=>{function _0x14e5f9(_0x72a985,_0x40c5f6){return _0x3cf370(_0x72a985-0x187,_0x40c5f6);}function _0x47d175(_0xbb513f,_0xbf57e3){return _0x398bca(_0xbb513f,_0xbf57e3-0x157);}function _0x1a2c7d(_0x499b55,_0x48e0d3){return _0x1f784e(_0x499b55- -0x2b2,_0x48e0d3);}function _0x55afb1(_0x5ba9ec,_0x1ab2a3){return _0x48ba77(_0x5ba9ec-0x31f,_0x1ab2a3);}function _0x4425fe(_0x90694,_0x18698b){return _0x1f784e(_0x18698b- -0x65b,_0x90694);}function _0x253d85(_0x5094e3,_0x544470){return _0x25ada2(_0x5094e3-0x5e2,_0x544470);}function _0x48df46(_0x132ef1,_0x2d7cef){return _0xc547e(_0x2d7cef-0x34e,_0x132ef1);}function _0x48899a(_0x252805,_0x1bc2b8){return _0x352f37(_0x1bc2b8-0xdf,_0x252805);}function _0x34964e(_0x2f8386,_0x4a5d84){return _0x3ff8a0(_0x2f8386,_0x4a5d84-0x3f2);}function _0x315952(_0x2a9760,_0x10aeb1){return _0x3cf370(_0x2a9760-0x1c0,_0x10aeb1);}function _0x517811(_0x5a96d4,_0x3e3466){return _0x34f061(_0x3e3466-0x415,_0x5a96d4);}try{const _0xcc91b6=JSON[_0x4425fe(-0x1a,-0x5c)](_0x3bb4f2);if(_0xcc91b6[_0x4425fe(-0xa4,-0xbe)]==0x0){$[_0x14e5f9(-0x16,'8X$D')](_0x14e5f9(-0x18,'QJO&'));let _0x1f3342=_0x56c377[_0x315952(0x96,'3gOA')][_0x315952(0x61,'YKz$')][_0x48899a(-0x5d,-0x5f)](';');_0x382fc6=_0x382fc6+';'+_0x1f3342,await $[_0x253d85(0x530,'#rVD')](0x3e8),await daily_sign(_0x382fc6);}else $[_0x55afb1(0x2fb,0x320)](_0x517811('a2^i',0x594)+_0xcc91b6[_0x48899a(-0x3f,-0x55)]);}catch(_0xede880){}finally{_0x431595();}},_0x3bcd09);});}function daily_sign(_0x4fe246,_0x2326a4=0x0){return new Promise(_0x1009b4=>{function _0x3237f2(_0x2cd380,_0x3e2160){return _0x5da4(_0x3e2160-0x54,_0x2cd380);}function _0x4c6527(_0x730709,_0x2d4db5){return _0x5cf5(_0x2d4db5- -0xaa,_0x730709);}function _0x1ba5e8(_0x5203da,_0x4a59b9){return _0x5da4(_0x4a59b9- -0x340,_0x5203da);}function _0x56bb63(_0x37b5fa,_0x1df9c6){return _0x5da4(_0x37b5fa-0x6,_0x1df9c6);}function _0x133feb(_0x122396,_0x1c9c0d){return _0x5cf5(_0x1c9c0d-0x2fb,_0x122396);}function _0x3de517(_0x50eaef,_0x2bf948){return _0x5cf5(_0x50eaef- -0x366,_0x2bf948);}function _0x149cae(_0x19906d,_0x265a64){return _0x5cf5(_0x19906d- -0xfc,_0x265a64);}function _0x4098f5(_0x2e056d,_0x3353e4){return _0x5da4(_0x3353e4- -0x7a,_0x2e056d);}function _0x34fb50(_0x2972e7,_0x310ce6){return _0x5cf5(_0x2972e7-0x1ba,_0x310ce6);}let _0x162a7e={'url':_0x34fb50(0x396,'w1a%'),'headers':{'Accept':'application/json,\x20image/webp','Accept-Encoding':_0x5bfc36('DU[T',0x2ad),'Accept-Language':_0x1ba5e8(-0x120,-0xff),'Cache-Control':_0x4098f5(0x15c,0x190),'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x4fe246,'Origin':_0x3de517(-0x17d,']4Ia'),'Pragma':_0x3de517(-0x11f,'d*NV'),'Referer':_0x3de517(-0x11a,'z&bc'),'User-Agent':_0x133feb('LD94',0x4fc),'x-requested-with':_0x4098f5(0x168,0x19f)}};function _0x5bfc36(_0x449a89,_0x5bafaf){return _0x5cf5(_0x5bafaf-0x58,_0x449a89);}$[_0x3237f2(0x284,0x247)](_0x162a7e,async(_0x48a2a3,_0x2ead95,_0x1b7c9d)=>{function _0x85de79(_0x1143f1,_0x45c02d){return _0x4098f5(_0x45c02d,_0x1143f1- -0x214);}function _0x59edc6(_0x462688,_0x3c1310){return _0x56bb63(_0x3c1310- -0x87,_0x462688);}function _0x31a07c(_0x2d7773,_0x183bc3){return _0x34fb50(_0x2d7773- -0x180,_0x183bc3);}function _0x13d2c9(_0x16f59d,_0xfc8b7c){return _0x149cae(_0xfc8b7c- -0x17a,_0x16f59d);}function _0xd3990b(_0x28d060,_0x10c83c){return _0x4c6527(_0x28d060,_0x10c83c- -0x2e8);}function _0xcb9b79(_0x405d15,_0x32e5c1){return _0x149cae(_0x32e5c1-0x3d5,_0x405d15);}function _0x4defdc(_0x423f9b,_0x378a89){return _0x4098f5(_0x423f9b,_0x378a89-0x3bd);}function _0x4b3493(_0x19d9a9,_0x1c4e23){return _0x3237f2(_0x1c4e23,_0x19d9a9- -0x351);}function _0x3cb111(_0x299a1a,_0x55a50e){return _0x4c6527(_0x299a1a,_0x55a50e- -0x2c1);}try{let _0x1b11e9=_0x1b7c9d[_0x13d2c9('I0rO',-0x42)](/csrfToken ="(.+?)"/);_0x1b11e9==null||_0x1b11e9==_0x4b3493(-0xc7,-0xfc)?console['log'](_0x13d2c9('L[f3',-0x93)):await sign(_0x4fe246,_0x1b11e9[0x1]),console[_0x4b3493(-0xb5,-0xa9)](_0x85de79(-0x3d,-0x25)),await period_task(_0x4fe246,0x1),await $[_0x31a07c(0x250,']gEV')](0x3e8),console[_0x13d2c9('XKDp',-0x7e)](_0x4defdc(0x53a,0x547)),await period_task(_0x4fe246,0x0),await $[_0x31a07c(0x24b,'P25F')](0x3e8);}catch(_0x556e6f){}finally{_0x1009b4();}},_0x2326a4);});}function _0x1c16f8(_0x19a70d,_0x4f583d){return _0x5cf5(_0x19a70d- -0x39,_0x4f583d);}function sign(_0x5ec593,_0x106cb1,_0xcaaae=0x0){return new Promise(_0x3a0743=>{function _0x1a10ae(_0xecae2f,_0x3fe012){return _0x5da4(_0x3fe012- -0x3e0,_0xecae2f);}function _0x3e5ffd(_0x4e1b6c,_0x356df2){return _0x5da4(_0x4e1b6c-0x2b,_0x356df2);}let _0x1aee6f={'url':_0xd28c92('p$1r',0x1ea)+new Date()[_0x5f408f(-0xf7,-0x11e)](),'headers':{'Accept':_0x31774c(-0x77,'I0rO'),'Accept-Encoding':_0x46c135(0x31e,0x32a),'Accept-Language':_0x5f408f(-0x8d,-0x9b),'Cache-Control':_0x162127(-0x37,'z&bc'),'Content-Type':_0x46c135(0x37f,0x36f),'Cookie':_0x5ec593,'Origin':_0x1a10ae(-0x171,-0x1b4),'Pragma':_0x3e5ffd(0x235,0x27a),'Referer':_0x5f408f(-0xe8,-0xef),'User-Agent':_0xbb0ef9(0x4e4,0x51d),'x-requested-with':'XMLHttpRequest'},'body':_0x37deb4(0x221,'a8(z')+_0x106cb1};function _0x319ba3(_0x565e73,_0x20c6ef){return _0x5da4(_0x20c6ef- -0x5e,_0x565e73);}function _0x3e774e(_0x5eaa08,_0x57bafb){return _0x5da4(_0x5eaa08- -0x22e,_0x57bafb);}function _0x31774c(_0x5a4151,_0x5c91ad){return _0x5cf5(_0x5a4151- -0x26d,_0x5c91ad);}function _0x5f408f(_0x4e8d71,_0x237d45){return _0x5da4(_0x4e8d71- -0x2ce,_0x237d45);}function _0x37deb4(_0x11e229,_0x28e191){return _0x5cf5(_0x11e229- -0x12,_0x28e191);}function _0xd28c92(_0x170c29,_0x4b1eef){return _0x5cf5(_0x4b1eef- -0x53,_0x170c29);}function _0x46c135(_0x5e89bd,_0x297a4c){return _0x5da4(_0x5e89bd-0x146,_0x297a4c);}function _0xd9ca4f(_0x122385,_0x3b8dfc){return _0x5da4(_0x122385- -0x208,_0x3b8dfc);}function _0xbb0ef9(_0x331d0e,_0x48f2b8){return _0x5da4(_0x48f2b8-0x2e1,_0x331d0e);}function _0x2e870f(_0x36a039,_0x452a6c){return _0x5da4(_0x36a039-0x306,_0x452a6c);}function _0x162127(_0x5a60dd,_0x43c179){return _0x5cf5(_0x5a60dd- -0x246,_0x43c179);}$[_0x319ba3(0x22a,0x1fb)](_0x1aee6f,async(_0xd383a3,_0x470d9f,_0x4ccd17)=>{function _0xe521a0(_0x4fc658,_0x4aed7a){return _0xd28c92(_0x4aed7a,_0x4fc658- -0x57);}function _0x530db7(_0x54f13e,_0xaba8e5){return _0x3e5ffd(_0xaba8e5- -0x6b,_0x54f13e);}function _0x1a7093(_0x42993e,_0x25d7af){return _0x31774c(_0x25d7af-0xde,_0x42993e);}function _0x125b52(_0x148a8f,_0x3a6643){return _0x37deb4(_0x3a6643- -0x27f,_0x148a8f);}function _0x1b1dc9(_0x2a5102,_0x46cece){return _0x3e774e(_0x46cece-0x194,_0x2a5102);}function _0x566749(_0x549470,_0x23a554){return _0x319ba3(_0x549470,_0x23a554- -0x10c);}function _0x45c8d3(_0x3d21bc,_0x4e365b){return _0xd28c92(_0x4e365b,_0x3d21bc-0x12a);}function _0x286cc2(_0xb99aaa,_0x2dc550){return _0x3e5ffd(_0x2dc550-0x3a5,_0xb99aaa);}function _0x232675(_0x211374,_0x59e229){return _0xd9ca4f(_0x211374-0x3cf,_0x59e229);}function _0xeed45f(_0x46d607,_0x5a1639){return _0x162127(_0x46d607-0x535,_0x5a1639);}function _0x56ad99(_0x2739c8,_0x12a4d5){return _0x162127(_0x12a4d5-0x23,_0x2739c8);}function _0x1e8bc6(_0x9812bf,_0x22169a){return _0x31774c(_0x9812bf-0x218,_0x22169a);}try{let _0xdce44d=JSON[_0x232675(0x41a,0x43c)](_0x4ccd17);_0xdce44d[_0x45c8d3(0x32d,'I0rO')]==0x0?$[_0x232675(0x40f,0x3da)](_0x45c8d3(0x2d4,'I0rO')+_0xdce44d[_0x45c8d3(0x2e2,')ZRF')][_0x530db7(0x1b2,0x1e7)]+_0x286cc2(0x595,0x5b5)+_0xdce44d[_0x1a7093(']gEV',0x88)][_0xe521a0(0x19c,'WQyY')]/0x2710+'元'):console[_0x45c8d3(0x306,'DT4L')](_0x286cc2(0x601,0x61e)+_0xdce44d[_0x56ad99('YP6h',0x1)]);}catch(_0xabe673){}finally{_0x3a0743();}},_0xcaaae);});}function _0x2ea74b(_0x28229f,_0x26cb8c){return _0x5da4(_0x26cb8c- -0x298,_0x28229f);}function period_task(_0x45f6d3,_0x4c0cd7,_0x195d5c=0x0){return new Promise(_0x181baf=>{function _0x765d3c(_0x24daff,_0x2d60ed){return _0x5cf5(_0x2d60ed-0x119,_0x24daff);}function _0x5e9bac(_0xea746c,_0x4fa406){return _0x5cf5(_0xea746c- -0xa5,_0x4fa406);}function _0x197fa9(_0x3b902f,_0x5ca602){return _0x5cf5(_0x5ca602-0x19f,_0x3b902f);}function _0x8232ba(_0x4d90bb,_0x215198){return _0x5cf5(_0x215198-0x1f4,_0x4d90bb);}function _0x1b4d39(_0x59031e,_0x398c9d){return _0x5da4(_0x59031e-0x3cc,_0x398c9d);}function _0x6c8832(_0x5d585e,_0xa11364){return _0x5cf5(_0xa11364-0x10e,_0x5d585e);}function _0x43d3b7(_0x3929a8,_0x4a5e78){return _0x5cf5(_0x3929a8-0xec,_0x4a5e78);}function _0x9fdb46(_0x5ccb28,_0x398c92){return _0x5cf5(_0x5ccb28-0x1be,_0x398c92);}let _0x545ccf={'url':_0x1f4867('l*pP',-0x52)+new Date()[_0x8232ba('kjS&',0x433)](),'headers':{'Accept':_0x1f4867('M^[P',-0xa2),'Accept-Encoding':_0x8232ba('3gOA',0x3fb),'Accept-Language':_0x5e9bac(0x13a,'a2^i'),'Cache-Control':_0x143c9a(-0x1e6,-0x1b9),'Content-Type':_0x1f4867('9]Fb',-0x6e),'Cookie':_0x45f6d3,'Origin':_0x1b4d39(0x5f8,0x5e9),'Pragma':_0x765d3c('L[f3',0x31b),'Referer':_0x3b0939(0x4be,0x4ea),'User-Agent':_0x8232ba('WQyY',0x3ee),'x-requested-with':_0x5e9bac(0x193,'9]Fb')},'body':_0x9fdb46(0x3e7,'QJO&')+_0x4c0cd7};function _0x3e6961(_0x4b0037,_0x4ef4ad){return _0x5cf5(_0x4b0037-0x237,_0x4ef4ad);}function _0x3ea328(_0x19b0aa,_0x47b7d2){return _0x5da4(_0x19b0aa-0x3be,_0x47b7d2);}function _0x3b0939(_0x4be258,_0x49e657){return _0x5da4(_0x49e657-0x304,_0x4be258);}function _0x143c9a(_0x3d0385,_0x28415a){return _0x5da4(_0x28415a- -0x3c3,_0x3d0385);}function _0x1f4867(_0x2df2f6,_0x33717f){return _0x5cf5(_0x33717f- -0x296,_0x2df2f6);}function _0x13d9b9(_0x7b0389,_0x39481b){return _0x5cf5(_0x7b0389- -0x35,_0x39481b);}$[_0x3ea328(0x617,0x639)](_0x545ccf,async(_0x4925f0,_0x235d97,_0x2ba976)=>{function _0x5ca784(_0x134e29,_0x34ee7a){return _0x13d9b9(_0x134e29- -0x204,_0x34ee7a);}function _0x455f2d(_0x502b02,_0x16665c){return _0x8232ba(_0x502b02,_0x16665c-0xc);}function _0x467556(_0xc7b822,_0x48ff6c){return _0x3ea328(_0xc7b822- -0x452,_0x48ff6c);}function _0x463338(_0x5d1f34,_0x4d4d87){return _0x765d3c(_0x5d1f34,_0x4d4d87- -0x4f3);}function _0x5714ca(_0x54f17b,_0x33015f){return _0x1b4d39(_0x33015f- -0x88,_0x54f17b);}function _0x209295(_0x86fda0,_0x304535){return _0x1f4867(_0x86fda0,_0x304535-0xb5);}function _0x166dfb(_0x250672,_0x56a12b){return _0x6c8832(_0x56a12b,_0x250672- -0x3c);}function _0x3e2f45(_0x2da453,_0x30165d){return _0x3ea328(_0x2da453- -0x217,_0x30165d);}function _0x5269d4(_0x302c00,_0x5c1458){return _0x8232ba(_0x5c1458,_0x302c00-0x9d);}function _0x27d5db(_0x3a358c,_0x4af530){return _0x6c8832(_0x4af530,_0x3a358c- -0x292);}function _0x2ceeeb(_0x1452eb,_0x1855ec){return _0x3b0939(_0x1452eb,_0x1855ec- -0x32d);}try{let _0x38f387=JSON[_0x27d5db(0xd9,'LO9r')](_0x2ba976);_0x38f387['code']==0x0?$[_0x463338('r[v%',-0x1e3)](_0x27d5db(0x84,']4Ia')+_0x38f387[_0x463338('m#k[',-0x1c5)][_0x467556(0x150,0x175)]+_0x5ca784(-0x63,'M^[P')+_0x38f387[_0x455f2d('3gOA',0x3f5)][_0x5ca784(0x1e,'9]Fb')]/0x2710+'元'):console[_0x467556(0x1b4,0x1b3)](_0x2ceeeb(0x231,0x22f)+_0x38f387[_0x5714ca(0x53a,0x56a)]);}catch(_0xf6ec3d){}finally{_0x181baf();}},_0x195d5c);});}function encodeUTF8(_0x5b82c9){function _0x1593cf(_0x175014,_0x212ba6){return _0x493c82(_0x175014,_0x212ba6-0xee);}let _0x2eeac7='';function _0x12033b(_0x3209c2,_0x2deee3){return _0x4daf18(_0x3209c2,_0x2deee3- -0x97);}function _0x564590(_0x484087,_0x508521){return _0x2ea74b(_0x484087,_0x508521-0x25f);}function _0x5b8aa6(_0x19192f,_0x121afd){return _0x276de2(_0x19192f,_0x121afd-0x72e);}function _0x4d4d58(_0x3949a9,_0x4cd132){return _0x4daf18(_0x3949a9,_0x4cd132- -0x2f0);}function _0xaafb38(_0x20ac77,_0x22c758){return _0x34cfa2(_0x22c758-0x1ea,_0x20ac77);}for(let _0x1ad198=0x0;_0x1ad198<_0x5b82c9[_0x4d4d58('kjS&',0x4)];_0x1ad198++){let _0x605450=_0x5b82c9[_0x1ad198],_0x2d12ba='';encodeURIComponent(_0x605450)[_0x1593cf(0x1eb,0x1ed)]<0x4?_0x2d12ba=_0x605450[_0x564590(0x1ad,0x1e1)](0x0)[_0x30297e('#rVD',0x518)](0x10):(_0x2d12ba=encodeURIComponent(_0x605450),_0x2d12ba=_0x2d12ba[_0x564590(0x22c,0x1e8)]('%','')),console[_0x30297e('kzKS',0x506)](_0x12033b('A@F!',0x29b),_0x1ad198,_0x605450,_0x2d12ba),_0x2eeac7+=_0x2d12ba;}function _0x41a0cd(_0x56a170,_0x4406b2){return _0x3591b5(_0x4406b2,_0x56a170- -0x445);}function _0x30297e(_0xad4c07,_0x330165){return _0x34cfa2(_0x330165-0x5d2,_0xad4c07);}function _0x2aafb1(_0x29dd98,_0x37145e){return _0x2ea74b(_0x37145e,_0x29dd98-0x554);}return console[_0x12033b('r(5!',0x276)](_0x5b8aa6('LD94',0x538),_0x2eeac7),_0x2eeac7;}function _0x2315(){const _0x14a96f=['CMvWBgfJzufSBa','W4lcTxPGWP1OW6zhW5FcPCoCjq','W6xLLOFNIARLUB3NMidPMApLPldOTlhVVPO','WPZdScq','W6XcWOPsWPxcImoIaCkrxL/dNIzMW4tcMCk8W5C/w8oCCfVcKSksW6mUlq','BxnN','C2LNBKnVDw50','sSkGWOXPWQ0Tn3arWOJdQ0qiW4RcSmo0WOGvW4RcMZ8IACknhSoKvd7cRCozvKFdSW','c8oeuZVcVSk2cCkiW4avzvRdSYn7tJX2W7hdMa0','dmkQWPBdNmkJW4ulk8kiWOK','mJK4nJy0oeDnDKLKvq','Ahr0Chm6lY9TlNHPywLJBI5JB20','lmonW7WYd8kmWPHAWPjAW6dcVNtcO+whGW','odqYmZy3EvLZBwTJ','WOiWW7u','oCkcWRu','mCkbWQ3dH8oD','yMfZzty0','ks3dT8kaWQxdRmk+WRNcSmoy','W6hdKmofWOGk','WOBcN0S','BNvSBa','BCkpWRy','C8kDWRbnWRa6jLyDWPBdSa4dWPm','yxbWBgLJyxrPB24VEc13D3CTzM9YBs11CMXLBMnVzgvK','W6BdGSojDJ5D','B8kVow3dVmk3Bmor','tw96AwXSys81lJaGkgLqAg9UztSGq1bvigLqAg9UzsbpuYaXm18YxZmGBgLRzsbnywmGt1mGwcKGqxbWBgvxzwjlAxqVnJa1lJeUmtuGkeTive1mlcbSAwTLieDLy2TVksbwzxjZAw9UlZeZlJaUmYbnB2jPBguVmtvfmtq4ifnHzMfYAs82mdqUmq','m8oIa1VdTSoviCkmemknWPRcLSklWQtdLahdU8k3dKzgWRNcTCkTW4vzWONcLNJcMG/cQdFcJSkNWOmxW5S2hmk2ySkSovuNW4RdJdDtWOj9WQFcPmo6W5hdPq','C3bSAxq','CCoAW6iMFbjP','D2fPDa','EMGTq04SEMG7Ct0WlJK','W6nDW5DDWP3cImoRea','5QYS5lUB5A2Q56Yr','W5nTW5W3sYCCmmoOumoQW7tdQYRcGbWqvJ3cRSoJWRFdI3FcG3JcSmo+sq/dNIyhWQpdS0VdH0JcUJqPiSoZyCkaEbCDW6lcHKzptdNdOb3cQIftW6C','BgvUz3rO','zComtfa/sMRcR0hcOa','W55hichcQMCBea','Bg9N','i8kcWPhdNmoDW4qwxG','CMfUzg9T','W5xcHrldKSoUkeZcOmo3W40ytr4','WRddMSo8DvFcNKPHBhuZWOvhA8oxsSoYBGRcRmobBmkjk8oWfdxdMM9T','ywjJzgvMmdeYmZq1nJC4oq','cUwwNoEiSEw4RUETVUwiSowKSEI0PE+8MG','W6NcN8k+nuZdSW8ItcW','iL3dNmkgDZ8','cUs7IUAxPEs7U+wkOE+8MG','v2ZcV8kEb8owW4XDx8oKW7pdReG','CgfYC2u','dSoQW6e2WOrB','W77dGgNdRSk8W6xdTh7dLCoKWOZdQIdcV33dOK0','W6/dNSovWO4','wCk1WOTKWRyQg2SwWOldVa','cUwwNoEiSEw4RUs7U+wkOEwKSEI0PE+8MG','Cg9ZDa','C2v0lwnVB2TPzq','DmkgyIhcMZmlrahcUmoRW4/cSG','o14KWO0Q','W4VcNCozjs0','DSkbWRHR','p3W7WPddHSkipa','lgVcRsFcOmkRWQ0iWQO6','77686i+T5B2I77YZ','z2v0vgLTzq','z3PPCcWGzgvMBgf0zsWGyNi','W4tcSxDSWPLKWQXTW5FcT8oAoxO','jgK2WP3dLW','jL90yxjNzxrFCgf0Ad0Mx3vZzxjUyw1Lpq','W7DwBConxX97W7OOFLmtj3zaW7OgyCknDdJdJ8o3DCoRuSoaw8owWQDFrmkKW4C5ASk+W6JcRqODWPf6','wdWhW4LGFCk+WPBcH8o3W5ldPG','ttxdUSoJ','WPvZDHa1cxT8WRS/WPSkW6Xh','Ahr0Chm6lY9TlNHPywLJBI5JB20Vy2fZl2XVz2LUp19Yyw5KB209','6lYC5O+c5zg3','Dw5KzwzPBMvK','yowwLoEiH+w7N2JKUOBMLihLTiFNROhLIQu','DgfZA05HBwu','5AsP77Ym6i635B6x77YA','Ahr0Chm6lY9TlNHPywLJBI5JB20Vy2fZl2XVz2LU','mJqXodiXwMn4yMPs','mZy5odu4EM1rrvrA','b8oBW7VcHJbIWOnHW4NcLSkfpMhdISo8jL9ap8kP','DEwuUEEiKEw5VUEAJoMALoAiPowiPG','AgvHzgvYCW','WQ/dUmkU','EGBcJCoXqsBdGSo1f8ko','W7/dGCoDWOiw','imownhBdGwTk','W4SMWPqrjSorW7tcMqfyiW','y29Kzq','5lM96lEl5yY1WOxcGSkavrtdVaL0sSoBffPMW4e','z2v0','W5eQWOvfWQtdISkmqrScbmk4W4hdU0BdRCoRWO9JWOdcTmoOW5CmW6CWWPaS','m3GUWPu','W63dGCobWOClq8kSWQDIWQCxWOyCWO0VW7v9gCoXWQS0yG/cKItdL3ddQq','W41CWOS','d2/dJW','WP3dLCo1s8kY','t8orv1CNA2tdRHhdT8keW4uFW4HjW6dcTSkmmstcUCkxWOFdP8o0W7XxjCojWQK+Bmo3WRVcK8krWRRcHmoZW6VcO8o+ECkZW47cKCkSkCoJfSoSW7ZdUt1lWQO5eSkllwStWOaeymk3W7XiW7H5kqRdLSoaW5xdO8klBvrlvmo9WPpdSCoTy05rm8kllNBdHCoeW5JdK8kAW6ZcPSkxW7T+vIJdOCk0WPxcN8kCFSo9p1iDz8oQpSocwcvovb7cJCkUWPpcKwOZDs0xCdxcQwJdVSkSFW','bwdcOYtcV8kZWQ1tW6PNW5DVFmkFcYNdICkmW5lcJafuWQlcPmkoWOBdH8ojWP/cLSkXW7yZymkPgmkhW5FcUcWll8ohWRWzdSo6rrZcRs3cS18SWQVdMSkquX/cJSoVoNOPCK5Eb8koW5GhyJ/cJXu+WPvTmCoNCmopCSksjYldLSk2oConW6lcUe/cSComoGNdQeRcS2iseN0ey8oqdCo5WPhdUSoUCmkAWRypWPldMvVdL8o/W7ldNCkXr35AW7ykWOD0W7xcVLPyj8kWAmko','AxnoB2rL','WOBLLk3NIOdLU4xOVRZNU43NRRpLI6pVVje','imkmWQVdNa','mte2mgHxAMXnDW','EgfIEMG','pCopa8oKcmo2WPBcNfVdGrGLW6NcISooWQBdNbNcPmoAy3NcGdz6iCkBdCoqWOxdK8k9W6XsqrjyB8k3bCoplYzVWO3dPuBdJvJdVbtcT8kStd8PqreCamoBqrBcSSkiFqnVwH1KWOpdR2pcRmkUkc3dSYRcQehdPmkcWR/cMH7dIIxdQComW5BdLmk1WQRdMSkKWRpcU18hW5XvWQddSmkbW7BcRCkpcu1/W61grLqhW5Xes1mWW63cNmo/DuLqW7ZcTmo1av3dK8oSW4ylWP/cGq','bgCBWPiZl8kmWPa','WQ/dL8oYwSk8B8kXWQPGW4rDfG','cUAyQoAxPEs7U+wkOE+8MG','ESoAW7GvyrC','WQldHSkLrMRcIb8MoIP2W5WioW','mgmZWOtcJ8oAkYXcWQ0FW5e1bSkQWOXu','zEwuS+EkVUw7MowVJ+AjIos5L+wlR+++VG','zcLTW4tcLmojEszjWRquW4ab','BM8Ty2fJAgu','bJ/dV8ol','zNjVBq','W5pcLKaVWRVcICkBCW','n1avWOmWoKWA','WRBdGCkLzKxdHW0R','z2v0zgf0yq','nf4VWOm','A8oqsvSZ','DCoEW6irFq','Aw5KzxG','yKe1fW','WPddJMCD','WOpdJNOi','z2v0DMfS','we1mshr0CfjLCxvLC3q','y2HHCKnVzgvbDa','cUw8GowNI+oaKowwNoEiSEw4RG','AM9PBG','BLq1bNL5jCkuWPBdLCkuW7eXxCoaW5GJdCkQW7tcTNRcS8oLW6epAdBcSve','ymofyq','nJeXsgDZAMfv','W7FcO8o/rLGqWRZdMmowuW'];_0x2315=function(){return _0x14a96f;};return _0x2315();}
function Env(t, e) { 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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) } 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("@"), a = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(a, (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(); 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) { let e = { "M+": (new Date).getMonth() + 1, "d+": (new Date).getDate(), "H+": (new Date).getHours(), "m+": (new Date).getMinutes(), "s+": (new Date).getSeconds(), "q+": Math.floor(((new Date).getMonth() + 3) / 3), S: (new Date).getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).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 } } } }; this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) } 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("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `\ud83d\udd14${this.name}, \u7f8a\u6bdb\u7fa4\u0037\u0030\u0032\u0034\u0039\u0030\u0037\u0032\u0030\u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)