forked from mylovedonotcry/bienaoccc_hym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ym_klyx.js
11 lines (10 loc) · 35.9 KB
/
ym_klyx.js
1
2
3
4
5
6
7
8
9
10
11
/*
@萝卜 9.14 科勒优选
抓取 kohler-mini.brandsh.cn 域名请求体的openid & activeId
一天五毛。。
变量名:klyxtk @分割多账户
值 : openid & activeId 用&拼接
*/
const $ = new Env('科勒优选');
const _0x4f90b9=_0xe654,_0x576f17=_0xe654,_0x39fb7b=_0xe654,_0x444ae4=_0xe654,_0x37f637=_0x59b9,_0x46ac04=_0x59b9,_0x4a64d7=_0x59b9,_0x300cb8=_0x59b9,_0x573b8d=_0x59b9,_0x4115d9=_0x59b9;function _0x59b9(_0x5e1119,_0x5f3315){const _0x441461=_0x4414();return _0x59b9=function(_0x59b906,_0x25e88b){_0x59b906=_0x59b906-0xe0;let _0x2a2416=_0x441461[_0x59b906];if(_0x59b9['MMnZeM']===undefined){var _0x148f67=function(_0xe654cd){const _0x23998f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x266242='',_0x3b5d1c='';for(let _0x519591=0x0,_0x1a132d,_0x3a9d95,_0x5a4e8a=0x0;_0x3a9d95=_0xe654cd['charAt'](_0x5a4e8a++);~_0x3a9d95&&(_0x1a132d=_0x519591%0x4?_0x1a132d*0x40+_0x3a9d95:_0x3a9d95,_0x519591++%0x4)?_0x266242+=String['fromCharCode'](0xff&_0x1a132d>>(-0x2*_0x519591&0x6)):0x0){_0x3a9d95=_0x23998f['indexOf'](_0x3a9d95);}for(let _0x38e099=0x0,_0x23517c=_0x266242['length'];_0x38e099<_0x23517c;_0x38e099++){_0x3b5d1c+='%'+('00'+_0x266242['charCodeAt'](_0x38e099)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b5d1c);};_0x59b9['arejfM']=_0x148f67,_0x5e1119=arguments,_0x59b9['MMnZeM']=!![];}const _0x878c16=_0x441461[0x0],_0x1c9b2a=_0x59b906+_0x878c16,_0x4ab3a2=_0x5e1119[_0x1c9b2a];return!_0x4ab3a2?(_0x2a2416=_0x59b9['arejfM'](_0x2a2416),_0x5e1119[_0x1c9b2a]=_0x2a2416):_0x2a2416=_0x4ab3a2,_0x2a2416;},_0x59b9(_0x5e1119,_0x5f3315);}(function(_0x48539a,_0x2fae4e){const _0x5de1fa=_0xe654,_0x32a538=_0xe654,_0x35ac55=_0xe654,_0xbbcfd0=_0xe654,_0x4623b1=_0xe654,_0x550d2a=_0x59b9,_0x6305c=_0x59b9,_0x1a11b1=_0x59b9,_0x273642=_0x59b9,_0x59f295=_0x59b9,_0x32fa27=_0x48539a();while(!![]){try{const _0x4119fd=parseInt(_0x550d2a(0x149))/0x1*(parseInt(_0x5de1fa(0x132,'bqw^'))/0x2)+-parseInt(_0x550d2a('0x133'))/0x3+parseInt(_0x6305c(0x135))/0x4*(-parseInt(_0x32a538(0xe9,'Bpg7'))/0x5)+-parseInt(_0x5de1fa(0x12d,'dYA1'))/0x6+parseInt(_0x32a538('0x123','m8[5'))/0x7*(-parseInt(_0xbbcfd0('0xec','aIy]'))/0x8)+parseInt(_0x273642(0x13b))/0x9+parseInt(_0x273642(0xf5))/0xa;if(_0x4119fd===_0x2fae4e)break;else _0x32fa27['push'](_0x32fa27['shift']());}catch(_0x2afa1c){_0x32fa27['push'](_0x32fa27['shift']());}}}(_0x4414,0x6e617));let status;status=(status=$[_0x37f637('0x169')]('klyxstatus')||'1')>0x1?''+status:'';let klyxtkArr=[],klyxcount='',klyxtk=($[_0x46ac04(0x14a)]()?process[_0x4f90b9('0x121','EeG1')][_0x46ac04(0x13e)]:$[_0x4f90b9('0xf3','ofdB')](_0x300cb8('0x13e')))||'',activeId=_0x4f90b9('0x130',')d7E'),taskCode='',taskName='',flightStoneNum='',cookie='';!(async()=>{const _0x49f6b7=_0x39fb7b,_0x3f1a8b=_0x39fb7b,_0xc6cabf=_0x39fb7b,_0x39eb34=_0x576f17,_0x3911d3=_0x39fb7b,_0xe04a6f=_0x39fb7b,_0x17eb6b=_0x576f17,_0x300a21=_0x4f90b9,_0x48b2de=_0x300cb8,_0x174642=_0x4a64d7,_0x22cd99=_0x46ac04,_0x5415e7=_0x4a64d7,_0x3406f7=_0x300cb8,_0x1d3e12=_0x4a64d7,_0x50032e=_0x4a64d7;if(typeof $request!=='undefined')await klyxtk();else{klyxtkArr=klyxtk['split']('@'),console[_0x48b2de(0x11a)](_0x174642('0x101')+klyxtkArr['length']+_0x174642(0x134));for(let _0x5a4e8a=0x0;_0x5a4e8a<klyxtkArr['length'];_0x5a4e8a++){klyxtk=klyxtkArr[_0x5a4e8a],activeId=klyxtk[_0x48b2de('0x103')]('&')[0x1],klyxtk=klyxtk[_0x49f6b7('0x170','uF&I')]('&')[0x0],$['index']=_0x5a4e8a+0x1,console['log'](_0x3406f7(0x126)+$[_0x49f6b7(0x143,')d7E')]+'】'),await finishShare(),await $['wait'](0x2710),await receiveAward(),await $[_0x1d3e12('0x165')](0x3e8),await klyxrw(),await $['wait'](0x3e8),await klyxtj(),await $[_0xc6cabf('0x122','dYA1')](0x3e8),await finishVideo(),await $[_0x1d3e12('0x165')](0x3e8),await video_page(),await $[_0x39eb34('0x139','RyIp')](0x3e8),await finishsubscribe(),await $[_0x3f1a8b(0x118,')E#c')](0x3e8),await subscribe_msg(),await $[_0x49f6b7('0x10f','XThO')](0x3e8),await finishDance(),await $[_0x3f1a8b(0xe4,'ZXy7')](0x3e8),await dance_page(),await $[_0xe04a6f(0x108,'R3bM')](0x3e8),await memberLottery(),await getReawrd();}}})()[_0x37f637('0x171')](_0x38e099=>$['logErr'](_0x38e099))[_0x300cb8(0x172)](()=>$[_0x576f17('0x124',')d7E')]());function finishShare(_0x23517c=0x0){return new Promise(_0xb5dcff=>{const _0x56ac38=_0x59b9,_0x374ebb=_0xe654,_0x5315aa=_0xe654,_0x38945b=_0xe654,_0x19f965=_0xe654,_0x37df06=_0xe654,_0x3e0785=_0xe654,_0x396c6f=_0xe654;let _0x2356a3={'url':'https://kohler-mini.brandsh.cn/mini.php/fissionCustom/finishBrowse','headers':{'Host':_0x374ebb('0x153','F]Gd'),'Connection':'keep-alive','Content-Length':'85','content-type':_0x5315aa('0x11b','(I!^'),'Accept-Encoding':_0x5315aa('0x10a','aIy]'),'User-Agent':_0x56ac38(0x119),'Referer':_0x19f965(0x14b,'RyIp')},'body':_0x19f965(0x15b,'uF&I')+klyxtk+_0x37df06('0x145','z$ul')+activeId+'&city=%E6%96%B0%E4%BD%99%E5%B8%82'};$[_0x38945b(0x106,'2avV')](_0x2356a3,async(_0x6819e7,_0x19dcf6,_0x4d9618)=>{const _0x14ad04=_0x374ebb,_0x2b78f6=_0x374ebb,_0x17d44e=_0x56ac38,_0x1c2792=_0x56ac38,_0x26700d=_0x56ac38;try{const _0x4953b6=JSON[_0x17d44e(0x17a)](_0x4d9618);_0x4953b6['msg']==_0x1c2792(0xfd)?console['log'](_0x14ad04('0x131','uF&I')):console[_0x2b78f6(0x16e,'LNBT')](_0x1c2792('0x140')+_0x4953b6['msg']);}catch(_0x3b788c){}finally{_0xb5dcff();}},_0x23517c);});}function receiveAward(_0x3e848e=0x0){return new Promise(_0xe37aae=>{const _0x5464a1=_0xe654,_0x2899ef=_0xe654,_0x333c6a=_0xe654,_0x3fdd38=_0x59b9,_0x5bae2b=_0x59b9,_0x1a9f82=_0x59b9,_0x59987a=_0x59b9;let _0x50ea14={'url':_0x3fdd38('0xea'),'headers':{'Host':'kohler-mini.brandsh.cn','Connection':_0x5464a1('0x146','Bpg7'),'Content-Length':'85','content-type':_0x5464a1('0xe3','qhZZ'),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':_0x3fdd38(0x119),'Referer':_0x5bae2b(0xfe)},'body':_0x5bae2b(0xf7)+klyxtk+_0x2899ef(0xf2,'F]Gd')+activeId+'&task_no=browse_page&city=%E6%96%B0%E4%BD%99%E5%B8%82'};$['post'](_0x50ea14,async(_0x5b9548,_0x2ef4bd,_0x56d47c)=>{const _0x16f25b=_0x333c6a,_0x2ab0e5=_0x5464a1,_0xfc9804=_0x3fdd38,_0x5b87f5=_0x3fdd38,_0x34f5b3=_0x3fdd38,_0x34808d=_0x59987a;try{const _0x47cc28=JSON[_0xfc9804(0x17a)](_0x56d47c);_0x47cc28[_0x16f25b('0x12e','exT4')]=='Success'?console['log'](_0x2ab0e5(0x116,'aIy]')):console[_0xfc9804('0x11a')](_0x34f5b3('0x120')+_0x47cc28[_0xfc9804('0x13f')]);}catch(_0x505987){}finally{_0xe37aae();}},_0x3e848e);});}function _0x4414(){const _0x5a3271=['yxbWBgLJyxrPB24VEc13D3CTzM9YBs11CMXLBMnVzgvK','mJa4odi0qwztD1nc','kwGKqSkrW5OijSowW4qHpCoPdmoSvCk5WQtcR8kSq8oKsSkEW6/cUxb6W7y2q8kUWRGfwdFcMKFcRcGVWPKonCk8dCo2WONcVmo9xdfLbYBcO8k9ASovW6vjCJr9W5nsrxRdM0OUW7BcOCo2WRpcK8o5yCokWQZcVKhdTrlcNIRcTmkNW5tdI8oVWRZdGvxcIGxcGmo+rwxdKmkwC8o7WO00d8oWo8k4W7mdW6FcSdddL8oqWQNcH0TTj8ovp8oHBxOaWRnAWPiPpCodhgioWRvlW51pW6JdPCovErFdNCksW5BdOL/cKa7cUIb+oxJcVx4jCxv4WO8oWPZdL8o6W43dQG','WRvHBCoGF0jnW5XMWO0','gfKQWOvbtCkl','qSkjwSkV','mZi0nJy5mhP6uxjtzW','cUENKEwlKUs8MoMaIEMIHUwpLUMIHoE6PUINHUMIKEEBToAsREwLLUwkSq','Egn4x29Wzw5Pzd0','jMnPDhK9juu2jtK2juiWjuu0jujejtK5juu1jui4jtGY','aCoSDr/cQ8k1qmkIWPWEs2ZcIvbXWOzmpNxdVmorwSouvK4wvN4mFNmYzWdcNmoHW6RdJSk2WOFdTeSlpxBdO0i9e8kVeSk4wdBdL8ktCCozWOf4W75upCow','ofvrtLPwDa','uCkdiG','W687tGdcKmouk8kZW6u0W5Jc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RFs8qWQK','W659W5HK','W68UtaFcKSo9imkvWRX6','Et92t3PAy8owcSkKW6SaWQC9lCoFW5NdKmooevxcJa','WRJcTmkbW4S','uKz3pq','W5D/W7BcVCkgWOxdMZZdTLOdwhDBaJZcUSk4WR1eACouWRddI3/dSSkJW70JWPnMm1y','WRK4jrXhpCkl','AUELN+wjQ+s/JoMdQoA3UUILPUwNG+EiP+MJG+wmGEwLVowiLa','W7JcVSoW','hSo5AbS','tw96AwXSys81lJaGkgLqAg9UztSGq1bvigLqAg9UzsbpuYaXnf8YigXPA2uGtwfJie9tifGPiefWCgXLv2vIs2L0lZyWns4XlJe1icHlsfrntcWGBgLRzsbhzwnRBYKGtw9IAwXLlZe1rte0ocbnAwnYB01LC3nLBMDLCI84lJaUmtCOmhGXodaWmteYzsKGtMv0vhLWzs9xsuzjieXHBMD1ywDLl3POx0no','Bg9N','uSoRW7nvmSoFh8onzxCuEmokWOK0Aqenb3reDcjlWQZcIHCPW7BcNJ/cTvS','W5FdN8kSWP1czd3cHe3dI0JcQKddUSkZW7JdLmo+drvMCq','WQhdP8kmehOeWQ8XW7iSwmoJW5jFW4xdJvuPW6iiW5TWWOLPtXnxkhVdKc7cSrmAvHqcW7mBWQ3cJMLnW6BdGr7dHCk9hmkchtDUqSoXkLpdG8o/l07cHaSp','y+ELIEwlK+s9T+MdKCkI6AoR57IR6ksP6AoQ55Un5Pk3','W5FdLCkHWOekD3ZcGfldGa','cUENKEwlKUs8MoMaIEA1J+INIowLVEEjQEMIHUwpLUwLLUwkSq','W5NdNSkY','WRr9bmo/','WOC+WRFdOSoEW5ldUsddVuelaG','EM8Hsq','DsP3uZnliCowe8k4W6DDWRzJlSodWPhdH8odwvRcG8kmjq','cUw8GowNI+oaKoENKEwlKUs8MoMaIq','cUENKEwlKUs8MoMaIs3MJ5dNJRdMIjdLIP8','w1rK','WQtdOmkF','WQ5VcG','WR9/W5HKgM02sfNdSmkitSocW4BcS8kmWQ/cGSk3W4NdMWJdNaRdGeXLhCooW47dHSkxfq','W5JcOSoTFG5LWQXnW53dIrpcL0OZehGKWPfCWR0NW5XtWRBcKKaclGBdNmkbudldHd9ZWOycD13dJ2FcVKCyxCkNWPPaB8oIvJikW47cV3aEWRnVWP5cW7pcOmkLWPVdTu19W6pdQmo4hCkwmCo4lmo2lMbfWPpcISozWPddGCk8WQ/cPa4OWQW2bXuzW4NdQHnQF8oxzGNdMSkmkmkll8k9wSk6xmorcJCVdar+W4pcGw7cVmognNqEDmk8W58BWPDIWQBdH8o0W5/cPYZdHSozf33cMv0fW7bcWPNdT8oKeGTJuCoBiCottcP+W6WsW7RdOCoAWRfLW44d','W7eSvCkZWOtcKSo5CcDac0e','W7lcMmk4','z3PPCcXJB21WCMvZCYXICIXKzwzSyxrL','ldD4','W6dNPPZLIPtKVAFPGkVMTihOPldLPk/NIPNMIBROOQFKUOVLI6W','BmoiEYm8W5vv','mte5mZm0oun1Chv0Ca','5lIQ6lsM5y+3ls0Tls0Tls0Tls0TlqO','nJm3odHPC1Pzqxq','WRdNPz/LIQRKV73PGBxMJR/NJ7NVVOe','WO4LDSoFyL18W53cQmoRiYddO8oXlmk3W4NcLhddJv7dNSkJtvalCY3dHCoQadZcQa','WQxdVmkF','WQjYsrq','WQiXn8kNjqarW5z3W4dcOSodWRy','mZaYmtq5ogvPr0H4qG','WOGVB8odj11YW4tcSCo2khZdQmoWoCkYWPldNxpdHeddKSo6xq','cUENKEwlKUs8MoMaIs3LIiBKUQVMIjdLIP8','A2X5EhrR','BxnN','cUENKEwlKUs8MoMaIEA1J+INIowLVEEjQE+8MG','cUENKEwlKUs8MoMaIs3LIiBKUQVLPlhOTku','jNrHC2TFBM89C3vIC2nYAwjLx21ZzYzJAxr5psvfnIu5nIvcmcvfncvcrcu5osvfnsvcocu4mG','D24RsCkh','WOi5mG9rDmoxFCkdEmkzbIq/W6VcQwFcO8oLdCkzW4iTWRnmWQOUWQPMFxtcNbJdRSk5W5XNWQSzWQVdV8otWOpdGCodBmozWOFcGKzk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nySkKW6ddKIBcTSk0y37cPLn0W7GapNtdJZlcUmozW6iAW73cUSkNWPRcSLJdTbJcOMjAiGDXW603twpdHa','u8kwwCk3W4nUca3dTmoDWODSFcX5WOzYzH/dUSkfwCkwrKhdKa3dRCkCWQ8vcmkZ','tYBdQmo/','CM8O','W4tdK8k8WQ5izNxcH03dGrW','Cg9ZDa','x8kvtG','WQpdTGtcNeZdOmkszq','Ahr0Chm6lY9RB2HSzxiTBwLUAs5ICMfUzhnOlMnUl21PBMKUCgHWl2zPC3nPB25dDxn0B20VCMvJzwL2zuf3yxjK','WRL8rW','wmoEW6RcO8k4W5ZdUW','W78nxMdcM8kOiSkjf8kxhq','odvhDgXxvMe'];_0x4414=function(){return _0x5a3271;};return _0x4414();}function getReawrd(_0x57e41d=0x0){return new Promise(_0x5f5026=>{const _0x51d5f8=_0x59b9,_0x23c234=_0x59b9,_0x51b5d0=_0x59b9,_0x3dd5ca=_0x59b9,_0x14af9a=_0x59b9,_0x56834c=_0xe654,_0x423b71=_0xe654,_0x2fd7ae=_0xe654;let _0x236b1f={'url':'https://kohler-mini.brandsh.cn/mini.php/fission/getReawrd','headers':{'Host':_0x56834c(0x15c,'ofdB'),'Connection':_0x51d5f8(0x177),'Content-Length':'85','content-type':_0x51d5f8('0xef'),'Accept-Encoding':_0x56834c(0x179,'m8[5'),'User-Agent':_0x51d5f8('0x119'),'Referer':'https://servicewechat.com/wxfae640908f0d46b5/620/page-frame.html'},'body':_0x3dd5ca('0xf7')+klyxtk+_0x56834c('0x157','bgAv')+activeId};$[_0x3dd5ca(0xe7)](_0x236b1f,async(_0x41121a,_0x2ef01e,_0x5aad52)=>{const _0x54effc=_0x51b5d0,_0xd0dd81=_0x14af9a,_0x264a47=_0x2fd7ae,_0x4dd721=_0x56834c,_0xbfa601=_0x56834c,_0x1cf1f5=_0x56834c,_0x2c85b7=_0x56834c;try{const _0x1c6a99=JSON[_0x264a47(0x10c,'R3bM')](_0x5aad52);_0x1c6a99['msg']==_0x264a47(0x115,'uF&I')?console[_0x54effc(0x11a)](_0x54effc(0x127)):console[_0x264a47('0x102','2hXs')](_0x264a47('0x136','w#eS')+_0x1c6a99[_0x4dd721('0x12a','dYA1')]);}catch(_0x2500d1){}finally{_0x5f5026();}},_0x57e41d);});}function klyxrw(_0x49d714=0x0){return new Promise(_0x5ae4ea=>{const _0x545204=_0xe654,_0xe18211=_0xe654,_0x5172ac=_0xe654,_0xfd1916=_0xe654,_0xf53b68=_0x59b9,_0x916e5f=_0x59b9,_0x104f18=_0x59b9,_0x14b8a3=_0x59b9,_0x7165af=_0x59b9;let _0x3029f1={'url':_0xf53b68(0x10d),'headers':{'Host':'kohler-mini.brandsh.cn','Connection':_0xf53b68('0x177'),'Content-Length':'85','content-type':_0x545204('0x137','2hXs'),'Accept-Encoding':_0xe18211('0x13c','2hXs'),'User-Agent':_0x5172ac('0x12c','aEks'),'Referer':_0xfd1916('0x15d','qhZZ')},'body':_0x916e5f('0xf7')+klyxtk+'&activeId='+activeId+_0x916e5f('0xf8')};$[_0x7165af('0xe7')](_0x3029f1,async(_0x6e7595,_0x46c707,_0x3a5edc)=>{const _0x2fe090=_0x14b8a3,_0x413f9f=_0x104f18,_0x328c81=_0xf53b68,_0x38f768=_0x5172ac,_0x514e3c=_0xfd1916,_0x38cbed=_0xe18211;try{const _0x2da33e=JSON[_0x38f768('0x167','(&F4')](_0x3a5edc);_0x2da33e['msg']==_0x2fe090('0xfd')?console[_0x38f768(0x14e,'L@ha')](_0x2fe090(0x13d)):console['log'](_0x2fe090(0x141)+_0x2da33e[_0x38cbed('0x174','1%4a')]);}catch(_0x44d8a0){}finally{_0x5ae4ea();}},_0x49d714);});}function klyxtj(_0x5e567a=0x0){return new Promise(_0x37e921=>{const _0x53b20e=_0xe654,_0x16a23e=_0xe654,_0x32c29e=_0xe654,_0x2eb6d5=_0xe654,_0x5b83f1=_0xe654,_0x2ada7c=_0xe654,_0x1cff7a=_0xe654,_0x36ce49=_0x59b9,_0x4dc995=_0x59b9,_0x11ae11=_0x59b9;let _0x1f9136={'url':_0x36ce49(0xea),'headers':{'Host':_0x36ce49('0x147'),'Connection':_0x53b20e('0x15a','@a3s'),'Content-Length':'85','content-type':_0x53b20e('0x114','m8[5'),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':_0x53b20e(0x173,'IjFh'),'Referer':_0x16a23e('0x144','uF&I')},'body':_0x2eb6d5('0xe6','EeG1')+klyxtk+_0x11ae11(0x152)+activeId+_0x5b83f1(0xfc,'@a3s')};$[_0x16a23e(0x112,'eTSZ')](_0x1f9136,async(_0x303c8f,_0x75452,_0x30c0dc)=>{const _0x5756d7=_0x36ce49,_0x4c005c=_0x2eb6d5,_0x96bfd2=_0x53b20e,_0x20b714=_0x2ada7c,_0x18c482=_0x32c29e;try{const _0x3fd8a5=JSON[_0x4c005c('0x100','m8[5')](_0x30c0dc);_0x3fd8a5[_0x4c005c('0x128','u02[')]=='Success'?console[_0x96bfd2(0xe5,')d7E')]('\x0a科勒优选领取分享奖励'+_0x30c0dc):console['log'](_0x5756d7(0x109)+_0x3fd8a5[_0x96bfd2(0x117,'aEks')]);}catch(_0x41b9b2){}finally{_0x37e921();}},_0x5e567a);});}function finishVideo(_0x1aca47=0x0){return new Promise(_0x1a7c0b=>{const _0x5dd9e3=_0x59b9,_0x1739dc=_0x59b9,_0x502fd5=_0x59b9,_0x49573f=_0xe654,_0x2f69ba=_0xe654,_0x272198=_0xe654,_0x23ea72=_0xe654,_0x303a39=_0xe654;let _0x47033a={'url':_0x49573f('0x16c','d2rM'),'headers':{'Host':_0x2f69ba(0x16a,'R3bM'),'Connection':'keep-alive','Content-Length':'85','content-type':_0x272198(0x168,'LNBT'),'Accept-Encoding':_0x5dd9e3('0x12f'),'User-Agent':_0x5dd9e3('0x119'),'Referer':_0x2f69ba('0x11d','TwZ0')},'body':_0x1739dc('0xf7')+klyxtk+'&activeId='+activeId+'&city=%E6%96%B0%E4%BD%99%E5%B8%82'};$[_0x272198(0x16b,'exT4')](_0x47033a,async(_0x3b73de,_0x2a110a,_0xcdbe63)=>{const _0x4f6f8e=_0x272198,_0x555904=_0x49573f,_0x2b814f=_0x23ea72,_0x13e825=_0x49573f,_0x4254c5=_0x1739dc,_0x285452=_0x1739dc,_0x5f151a=_0x502fd5;try{const _0x269e18=JSON[_0x4254c5(0x17a)](_0xcdbe63);_0x269e18[_0x4f6f8e(0xe8,'qhZZ')]==_0x4254c5('0xfd')?console[_0x4f6f8e(0x16e,'LNBT')](_0x555904(0x11e,')E#c')):console[_0x4f6f8e('0x15e','Yh)v')]('\x0a科勒优选-预约视频直播'+_0x269e18[_0x285452(0x13f)]);}catch(_0x8abfb){}finally{_0x1a7c0b();}},_0x1aca47);});}function video_page(_0x4b6dde=0x0){return new Promise(_0x2b43f6=>{const _0x26d9f9=_0xe654,_0x2da321=_0xe654,_0x2edd68=_0xe654,_0x3f2334=_0xe654,_0x3623e0=_0x59b9,_0x49b4f5=_0x59b9;let _0x5a86ea={'url':_0x3623e0(0xea),'headers':{'Host':_0x26d9f9('0x160','D^E2'),'Connection':_0x26d9f9('0x11f','EeG1'),'Content-Length':'85','content-type':'application/x-www-form-urlencoded','Accept-Encoding':_0x49b4f5('0x12f'),'User-Agent':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148\x20MicroMessenger/8.0.17(0x1800112e)\x20NetType/WIFI\x20Language/zh_CN','Referer':_0x2edd68('0x144','uF&I')},'body':'xcx_openid='+klyxtk+'&activeId='+activeId+'&task_no=video_page&city=%E6%96%B0%E4%BD%99%E5%B8%82'};$[_0x2edd68(0xf4,'qhZZ')](_0x5a86ea,async(_0x2f79e9,_0x14f0db,_0x497a23)=>{const _0x692c26=_0x3623e0,_0x72cd14=_0x49b4f5,_0x5df4bf=_0x3623e0,_0x1530ff=_0x3623e0,_0x325f3d=_0x49b4f5,_0x460ce2=_0x26d9f9,_0x284ce1=_0x3f2334;try{const _0x263e30=JSON[_0x460ce2('0x104','bgAv')](_0x497a23);_0x263e30[_0x692c26(0x13f)]==_0x72cd14('0xfd')?console[_0x5df4bf('0x11a')](_0x1530ff('0xf6')+_0x497a23):console[_0x72cd14('0x11a')](_0x460ce2(0x159,'w#eS')+_0x263e30['msg']);}catch(_0x50f3ee){}finally{_0x2b43f6();}},_0x4b6dde);});}function finishsubscribe(_0x465bc7=0x0){return new Promise(_0x339b82=>{const _0x26f120=_0x59b9,_0x3a1fc6=_0x59b9,_0x4e5378=_0x59b9,_0x3b8dc7=_0x59b9,_0x45c57a=_0xe654,_0xc577d4=_0xe654,_0x4327a1=_0xe654,_0x22b331=_0xe654,_0x1bdaf5=_0xe654;let _0x5e0b82={'url':_0x45c57a(0xe1,')d7E'),'headers':{'Host':_0x26f120(0x147),'Connection':_0x3a1fc6(0x177),'Content-Length':'85','content-type':'application/x-www-form-urlencoded','Accept-Encoding':_0x45c57a('0x14c','mIsr'),'User-Agent':_0xc577d4('0xf1',')vUS'),'Referer':_0xc577d4('0x16d','w#eS')},'body':'xcx_openid='+klyxtk+_0x4e5378('0x152')+activeId+_0x4327a1(0x12b,'XThO')};$[_0x26f120(0xe7)](_0x5e0b82,async(_0x46c5f1,_0x4b0390,_0x24135c)=>{const _0x39e11a=_0x26f120,_0xc87a3e=_0x3b8dc7,_0x1b314b=_0xc577d4,_0x1433d8=_0x22b331,_0x56d325=_0xc577d4,_0x129a4d=_0xc577d4,_0x393002=_0x45c57a;try{const _0x26bf4f=JSON[_0x1b314b('0x17b','7hSH')](_0x24135c);_0x26bf4f[_0x1b314b(0x154,'m8[5')]==_0x39e11a('0xfd')?console[_0x1b314b('0xeb','RyIp')](_0x39e11a(0x175)):console[_0x129a4d(0x148,'5r0B')]('\x0a科勒优选-开启活动提醒'+_0x26bf4f[_0x1433d8('0xfb','7hSH')]);}catch(_0x3cbf69){}finally{_0x339b82();}},_0x465bc7);});}function subscribe_msg(_0x4406ff=0x0){return new Promise(_0x382681=>{const _0x395af9=_0x59b9,_0x5e9e22=_0x59b9,_0x2c1e78=_0x59b9,_0xb8db30=_0x59b9,_0x2aefa6=_0xe654,_0x273adb=_0xe654,_0x44721c=_0xe654,_0x4c470d=_0xe654;let _0xe03a8={'url':_0x2aefa6('0x166','Bpg7'),'headers':{'Host':_0x2aefa6('0x111','O#Ti'),'Connection':_0x395af9(0x177),'Content-Length':'85','content-type':_0x395af9(0xef),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':_0x395af9(0x119),'Referer':_0x273adb('0xf9',')E#c')},'body':_0x44721c('0xed','(&F4')+klyxtk+'&activeId='+activeId+_0x2c1e78('0x142')};$['post'](_0xe03a8,async(_0x3ead16,_0x36ca35,_0x50e359)=>{const _0x4051a8=_0xb8db30,_0x3f3f02=_0x2c1e78,_0x1be3e3=_0x5e9e22,_0x13307=_0x44721c,_0x2e695d=_0x273adb;try{const _0x3c4d49=JSON[_0x13307('0x15f','RyIp')](_0x50e359);_0x3c4d49['msg']==_0x4051a8('0xfd')?console['log'](_0x3f3f02(0xe0)+_0x50e359):console['log'](_0x13307('0x105','dYA1')+_0x3c4d49[_0x4051a8(0x13f)]);}catch(_0x710c45){}finally{_0x382681();}},_0x4406ff);});}function finishDance(_0x17406f=0x0){return new Promise(_0x1dcf60=>{const _0x21697c=_0xe654,_0x6f54f5=_0xe654,_0x5d1ca9=_0xe654,_0x5604a1=_0x59b9,_0x40a765=_0x59b9,_0x3778e1=_0x59b9,_0x232978=_0x59b9,_0x517311=_0x59b9,_0xad576a=_0x59b9,_0x4df793=_0x59b9,_0x2f0142=_0x59b9;let _0x53cc96={'url':_0x5604a1('0xff'),'headers':{'Host':_0x5604a1('0x147'),'Connection':_0x40a765('0x177'),'Content-Length':'85','content-type':_0x21697c(0xe3,'qhZZ'),'Accept-Encoding':_0x5604a1(0x12f),'User-Agent':_0x21697c('0x10e','aIy]'),'Referer':_0x5604a1(0xfe)},'body':_0x40a765('0xf7')+klyxtk+_0x21697c(0x110,'@a3s')+activeId+_0x40a765(0xf8)};$[_0xad576a(0xe7)](_0x53cc96,async(_0xbbcddc,_0x2ce8f4,_0x567770)=>{const _0x229766=_0xad576a,_0x22e70a=_0xad576a,_0x677443=_0x232978,_0x2039fd=_0x21697c,_0x1cc09b=_0x6f54f5,_0x3e7951=_0x6f54f5;try{const _0x5e28ff=JSON[_0x2039fd(0x151,'pN6@')](_0x567770);_0x5e28ff[_0x229766('0x13f')]==_0x229766('0xfd')?console[_0x2039fd('0x138','TwZ0')]('\x0a科勒优选-舞力全开'):console['log'](_0x3e7951('0x163',')E#c')+_0x5e28ff[_0x229766('0x13f')]);}catch(_0x1c4db5){}finally{_0x1dcf60();}},_0x17406f);});}function _0xe654(_0x5e1119,_0x5f3315){const _0x441461=_0x4414();return _0xe654=function(_0x59b906,_0x25e88b){_0x59b906=_0x59b906-0xe0;let _0x2a2416=_0x441461[_0x59b906];if(_0xe654['lDdVxz']===undefined){var _0x148f67=function(_0x23998f){const _0x266242='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b5d1c='',_0x519591='';for(let _0x1a132d=0x0,_0x3a9d95,_0x5a4e8a,_0x38e099=0x0;_0x5a4e8a=_0x23998f['charAt'](_0x38e099++);~_0x5a4e8a&&(_0x3a9d95=_0x1a132d%0x4?_0x3a9d95*0x40+_0x5a4e8a:_0x5a4e8a,_0x1a132d++%0x4)?_0x3b5d1c+=String['fromCharCode'](0xff&_0x3a9d95>>(-0x2*_0x1a132d&0x6)):0x0){_0x5a4e8a=_0x266242['indexOf'](_0x5a4e8a);}for(let _0x23517c=0x0,_0xb5dcff=_0x3b5d1c['length'];_0x23517c<_0xb5dcff;_0x23517c++){_0x519591+='%'+('00'+_0x3b5d1c['charCodeAt'](_0x23517c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x519591);};const _0xe654cd=function(_0x2356a3,_0x6819e7){let _0x19dcf6=[],_0x4d9618=0x0,_0x4953b6,_0x3b788c='';_0x2356a3=_0x148f67(_0x2356a3);let _0x3e848e;for(_0x3e848e=0x0;_0x3e848e<0x100;_0x3e848e++){_0x19dcf6[_0x3e848e]=_0x3e848e;}for(_0x3e848e=0x0;_0x3e848e<0x100;_0x3e848e++){_0x4d9618=(_0x4d9618+_0x19dcf6[_0x3e848e]+_0x6819e7['charCodeAt'](_0x3e848e%_0x6819e7['length']))%0x100,_0x4953b6=_0x19dcf6[_0x3e848e],_0x19dcf6[_0x3e848e]=_0x19dcf6[_0x4d9618],_0x19dcf6[_0x4d9618]=_0x4953b6;}_0x3e848e=0x0,_0x4d9618=0x0;for(let _0xe37aae=0x0;_0xe37aae<_0x2356a3['length'];_0xe37aae++){_0x3e848e=(_0x3e848e+0x1)%0x100,_0x4d9618=(_0x4d9618+_0x19dcf6[_0x3e848e])%0x100,_0x4953b6=_0x19dcf6[_0x3e848e],_0x19dcf6[_0x3e848e]=_0x19dcf6[_0x4d9618],_0x19dcf6[_0x4d9618]=_0x4953b6,_0x3b788c+=String['fromCharCode'](_0x2356a3['charCodeAt'](_0xe37aae)^_0x19dcf6[(_0x19dcf6[_0x3e848e]+_0x19dcf6[_0x4d9618])%0x100]);}return _0x3b788c;};_0xe654['VPGImQ']=_0xe654cd,_0x5e1119=arguments,_0xe654['lDdVxz']=!![];}const _0x878c16=_0x441461[0x0],_0x1c9b2a=_0x59b906+_0x878c16,_0x4ab3a2=_0x5e1119[_0x1c9b2a];return!_0x4ab3a2?(_0xe654['LJfXYD']===undefined&&(_0xe654['LJfXYD']=!![]),_0x2a2416=_0xe654['VPGImQ'](_0x2a2416,_0x25e88b),_0x5e1119[_0x1c9b2a]=_0x2a2416):_0x2a2416=_0x4ab3a2,_0x2a2416;},_0xe654(_0x5e1119,_0x5f3315);}function dance_page(_0x461d61=0x0){return new Promise(_0x3168e6=>{const _0xf733be=_0xe654,_0x1d47e3=_0xe654,_0x48a101=_0xe654,_0x935451=_0x59b9,_0x1dd2bb=_0x59b9,_0x5dcb21=_0x59b9,_0x4830fb=_0x59b9,_0x1aff41=_0x59b9,_0x34edd4=_0x59b9;let _0x3f4971={'url':_0x935451(0xea),'headers':{'Host':_0xf733be('0x11c','EeG1'),'Connection':_0x935451(0x177),'Content-Length':'85','content-type':_0x5dcb21('0xef'),'Accept-Encoding':'gzip,compress,br,deflate','User-Agent':_0x1d47e3(0xe2,'w#eS'),'Referer':_0x5dcb21(0xfe)},'body':_0x48a101('0x156','4hxr')+klyxtk+'&activeId='+activeId+_0x935451(0x158)};$[_0x935451(0xe7)](_0x3f4971,async(_0x4b8760,_0xed5b1a,_0x76ba35)=>{const _0x243eed=_0x1aff41,_0xf4eabb=_0x5dcb21;try{const _0x5da942=JSON['parse'](_0x76ba35);_0x5da942['msg']=='Success'?console[_0x243eed(0x11a)](_0xf4eabb(0x14f)+_0x76ba35):console['log']('\x0a科勒优选领取舞力全开奖励'+_0x5da942['msg']);}catch(_0x3b0650){}finally{_0x3168e6();}},_0x461d61);});}function memberLottery(_0x1c0e65=0x0){return new Promise(_0x4be849=>{const _0x14ee73=_0x59b9,_0x7bc8df=_0x59b9,_0x369161=_0x59b9,_0xe91c8d=_0x59b9,_0x575c2f=_0xe654,_0x2a232f=_0xe654,_0x58be71=_0xe654,_0x59618e=_0xe654,_0x18f30a=_0xe654;let _0x3b7874={'url':_0x575c2f('0x176','O#Ti'),'headers':{'Host':_0x14ee73('0x147'),'Connection':_0x7bc8df(0x177),'Content-Length':'85','content-type':'application/x-www-form-urlencoded','Accept-Encoding':_0x2a232f(0x125,'O#Ti'),'User-Agent':_0x58be71('0x178','exT4'),'Referer':_0x58be71('0x155','F]Gd')},'body':_0x7bc8df(0xf7)+klyxtk+'&activeId='+activeId+_0x59618e('0x10b','dYA1')};$[_0x369161('0xe7')](_0x3b7874,async(_0x43ba67,_0xc3ba06,_0x2ed7ab)=>{const _0x37d82c=_0x18f30a,_0x538edd=_0x18f30a,_0xc17de1=_0x18f30a,_0x302ad7=_0xe91c8d,_0x34b446=_0x369161,_0x5b2236=_0xe91c8d,_0xdefd4b=_0xe91c8d;try{const _0x39ba19=JSON['parse'](_0x2ed7ab);_0x39ba19[_0x302ad7(0x13f)]=='Success'?console[_0x37d82c('0x162','P0IA')](_0x34b446('0x14d')+_0x39ba19[_0x37d82c('0x113','u02[')]['result'][_0x5b2236(0x107)]):console['log'](_0x302ad7('0x161')+_0x39ba19[_0xc17de1('0x129','TwZ0')]);}catch(_0x201e8f){}finally{_0x4be849();}},_0x1c0e65);});}function rand(_0x2b804a,_0x5037b8){const _0x24ce5f=_0x4115d9;return parseInt(Math[_0x24ce5f(0x16f)]()*(_0x5037b8-_0x2b804a+0x1)+_0x2b804a,0xa);}
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}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }