-
Notifications
You must be signed in to change notification settings - Fork 541
/
jd_code2url.js
10 lines (8 loc) · 28.1 KB
/
jd_code2url.js
1
2
3
4
5
6
7
8
9
10
/*
口令转链接
10 10 10 10 * jd_code2url.js
nolan服务接口
*/
const $ = new Env('口令转链接');
var _0xodD='jsjiami.com.v7';const _0x4e6e09=_0x2684;function _0x2684(_0x154025,_0x5dc49b){const _0x3aba57=_0x5d89();return _0x2684=function(_0x17d653,_0x4f7643){_0x17d653=_0x17d653-0xd5;let _0x5d89f0=_0x3aba57[_0x17d653];if(_0x2684['HewBnd']===undefined){var _0x268486=function(_0x1448c5){const _0x38f124='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b2e8c='',_0x243a69='',_0x44244a=_0x4b2e8c+_0x268486;for(let _0x256b90=0x0,_0x2b14c8,_0x802dc8,_0x6c335b=0x0;_0x802dc8=_0x1448c5['charAt'](_0x6c335b++);~_0x802dc8&&(_0x2b14c8=_0x256b90%0x4?_0x2b14c8*0x40+_0x802dc8:_0x802dc8,_0x256b90++%0x4)?_0x4b2e8c+=_0x44244a['charCodeAt'](_0x6c335b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2b14c8>>(-0x2*_0x256b90&0x6)):_0x256b90:0x0){_0x802dc8=_0x38f124['indexOf'](_0x802dc8);}for(let _0x57a533=0x0,_0x292aab=_0x4b2e8c['length'];_0x57a533<_0x292aab;_0x57a533++){_0x243a69+='%'+('00'+_0x4b2e8c['charCodeAt'](_0x57a533)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x243a69);};const _0x1fd487=function(_0x100196,_0x1cb7be){let _0xca3fd5=[],_0xb38b1b=0x0,_0xadac5f,_0x9155bb='';_0x100196=_0x268486(_0x100196);let _0x2f6697;for(_0x2f6697=0x0;_0x2f6697<0x100;_0x2f6697++){_0xca3fd5[_0x2f6697]=_0x2f6697;}for(_0x2f6697=0x0;_0x2f6697<0x100;_0x2f6697++){_0xb38b1b=(_0xb38b1b+_0xca3fd5[_0x2f6697]+_0x1cb7be['charCodeAt'](_0x2f6697%_0x1cb7be['length']))%0x100,_0xadac5f=_0xca3fd5[_0x2f6697],_0xca3fd5[_0x2f6697]=_0xca3fd5[_0xb38b1b],_0xca3fd5[_0xb38b1b]=_0xadac5f;}_0x2f6697=0x0,_0xb38b1b=0x0;for(let _0x4027de=0x0;_0x4027de<_0x100196['length'];_0x4027de++){_0x2f6697=(_0x2f6697+0x1)%0x100,_0xb38b1b=(_0xb38b1b+_0xca3fd5[_0x2f6697])%0x100,_0xadac5f=_0xca3fd5[_0x2f6697],_0xca3fd5[_0x2f6697]=_0xca3fd5[_0xb38b1b],_0xca3fd5[_0xb38b1b]=_0xadac5f,_0x9155bb+=String['fromCharCode'](_0x100196['charCodeAt'](_0x4027de)^_0xca3fd5[(_0xca3fd5[_0x2f6697]+_0xca3fd5[_0xb38b1b])%0x100]);}return _0x9155bb;};_0x2684['JfPhQh']=_0x1fd487,_0x154025=arguments,_0x2684['HewBnd']=!![];}const _0x5b9cce=_0x3aba57[0x0],_0x3e81f5=_0x17d653+_0x5b9cce,_0x1a132a=_0x154025[_0x3e81f5];if(!_0x1a132a){if(_0x2684['gYZKsO']===undefined){const _0x47b4f3=function(_0x2fa7a8){this['CnnYOE']=_0x2fa7a8,this['qTpHma']=[0x1,0x0,0x0],this['bydJWV']=function(){return'newState';},this['rDHdFB']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KxydnD']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x47b4f3['prototype']['kJguZX']=function(){const _0x542cc5=new RegExp(this['rDHdFB']+this['KxydnD']),_0x5a6733=_0x542cc5['test'](this['bydJWV']['toString']())?--this['qTpHma'][0x1]:--this['qTpHma'][0x0];return this['TAcCcP'](_0x5a6733);},_0x47b4f3['prototype']['TAcCcP']=function(_0x1e2fce){if(!Boolean(~_0x1e2fce))return _0x1e2fce;return this['JLJQmy'](this['CnnYOE']);},_0x47b4f3['prototype']['JLJQmy']=function(_0x58ae2b){for(let _0x48e338=0x0,_0x565689=this['qTpHma']['length'];_0x48e338<_0x565689;_0x48e338++){this['qTpHma']['push'](Math['round'](Math['random']())),_0x565689=this['qTpHma']['length'];}return _0x58ae2b(this['qTpHma'][0x0]);},new _0x47b4f3(_0x2684)['kJguZX'](),_0x2684['gYZKsO']=!![];}_0x5d89f0=_0x2684['JfPhQh'](_0x5d89f0,_0x4f7643),_0x154025[_0x3e81f5]=_0x5d89f0;}else _0x5d89f0=_0x1a132a;return _0x5d89f0;},_0x2684(_0x154025,_0x5dc49b);}(function(_0x120f82,_0x51101e,_0x10faa8,_0x48f5f0,_0x7983ed,_0x336ecc,_0x4f873a){return _0x120f82=_0x120f82>>0x2,_0x336ecc='hs',_0x4f873a='hs',function(_0x2d85f8,_0x1db0d7,_0x391adb,_0x371448,_0x1cf15a){const _0x38babf=_0x2684;_0x371448='tfi',_0x336ecc=_0x371448+_0x336ecc,_0x1cf15a='up',_0x4f873a+=_0x1cf15a,_0x336ecc=_0x391adb(_0x336ecc),_0x4f873a=_0x391adb(_0x4f873a),_0x391adb=0x0;const _0x25c26e=_0x2d85f8();while(!![]&&--_0x48f5f0+_0x1db0d7){try{_0x371448=-parseInt(_0x38babf(0x117,'^w4N'))/0x1*(-parseInt(_0x38babf(0x13d,'BYgp'))/0x2)+-parseInt(_0x38babf(0x115,'VuB2'))/0x3+-parseInt(_0x38babf(0x1a4,'O3yo'))/0x4*(-parseInt(_0x38babf(0x113,'EEGC'))/0x5)+-parseInt(_0x38babf(0x193,'OE1R'))/0x6+-parseInt(_0x38babf(0x190,'^w4N'))/0x7*(-parseInt(_0x38babf(0x129,'9)P5'))/0x8)+parseInt(_0x38babf(0x1a6,'C]CZ'))/0x9*(-parseInt(_0x38babf(0x170,'ztUU'))/0xa)+parseInt(_0x38babf(0xfe,'PqU['))/0xb;}catch(_0x15799f){_0x371448=_0x391adb;}finally{_0x1cf15a=_0x25c26e[_0x336ecc]();if(_0x120f82<=_0x48f5f0)_0x391adb?_0x7983ed?_0x371448=_0x1cf15a:_0x7983ed=_0x1cf15a:_0x391adb=_0x1cf15a;else{if(_0x391adb==_0x7983ed['replace'](/[tOKlruVSIDQdJBkwgGqe=]/g,'')){if(_0x371448===_0x1db0d7){_0x25c26e['un'+_0x336ecc](_0x1cf15a);break;}_0x25c26e[_0x4f873a](_0x1cf15a);}}}}}(_0x10faa8,_0x51101e,function(_0xbf8bff,_0x7f95c3,_0x49095c,_0xd70e64,_0x480753,_0x4bdb20,_0x204de5){return _0x7f95c3='\x73\x70\x6c\x69\x74',_0xbf8bff=arguments[0x0],_0xbf8bff=_0xbf8bff[_0x7f95c3](''),_0x49095c=`\x72\x65\x76\x65\x72\x73\x65`,_0xbf8bff=_0xbf8bff[_0x49095c]('\x76'),_0xd70e64=`\x6a\x6f\x69\x6e`,(0x151401,_0xbf8bff[_0xd70e64](''));});}(0x318,0xc0dc3,_0x5d89,0xc8),_0x5d89)&&(_0xodD=`\x88b`);const _0x524403=(function(){let _0x38c2b6=!![];return function(_0x541f8d,_0x3e3b00){const _0x242bfc=_0x38c2b6?function(){const _0x2eb73a=_0x2684;if(_0x3e3b00){const _0x49ec37=_0x3e3b00[_0x2eb73a(0xed,'PM!n')](_0x541f8d,arguments);return _0x3e3b00=null,_0x49ec37;}}:function(){};return _0x38c2b6=![],_0x242bfc;};}()),_0x1e5efa=_0x524403(this,function(){const _0x437f43=_0x2684,_0x14af19={'TzYMp':_0x437f43(0x1a7,'^w4N')};return _0x1e5efa[_0x437f43(0x105,'KTB2')]()[_0x437f43(0xe1,'VuB2')](_0x14af19[_0x437f43(0x141,'XLos')])[_0x437f43(0x11b,'q[d$')]()[_0x437f43(0x110,'!I#Q')](_0x1e5efa)[_0x437f43(0x126,'XLos')](_0x14af19[_0x437f43(0x17a,'VuB2')]);});_0x1e5efa();const _0x5ba484=require(_0x4e6e09(0x128,'HWCj')),_0x123fe7=require(_0x4e6e09(0xea,'!I#Q'));function _0x5d89(){const _0x4f56ea=(function(){return[...[_0xodD,'OtljGsuDjwkwiJSaeqmiQ.dcdom.vOg7rKIJVGSB==','W5mXWPBdKSke','tSoEW69yfW','zxSND2ZcQSoIW6a','WOjvWQe2WRW','rSocW6XSgq','W5DzW4pdQSkE','W7fAhq','imkfyWi6','WQpcNmoUeq','j8osmdJdPmkrstNdOa','WPybBwJcValcKJ7cO8klt0iMB8kmj8ojAKqlW4DooSkpWQmTWQ7dSYpdVSkRaCo7uCoysSouW67cPchdM8kmgquzmXNcHHVcKmk8WP8SBSkICCkM','gs3dPbiy','WQr0bSkZ','WP4bvwKSW5W','lSoFWPRdSmod','jSkhWPFdHCoAWRJcKHvWWQhcUCkEW6xcMhtdRmkgaXRcIW','WQfzWOTrW7BcN8kfWPXeWRJdLv0','jmk+tWqD','iEISMUIUGEE8NEMDREINHUILVEACUoEAP+wpV+s6Go+8Q2OflSo/W4i','WOj2lSoXFW','ewvSp8kS','W4O+WQ9UWQC','tSoNWOpdISom','W7SmjbWP','W60vWPG','W4SBit/dMH7dUa7cO8onl3bX','z8o6W7HSiW','wSkhWPZdQHG','i8kzW5NdRsKPW7VdOaS','DxuayG','W7BdQu95WQ8','W6ivWPfjWQiJW5ZcImkdWRr6','WPWyW6e','mmojldq','WRLmW44lWO88W4lcJmkMWO8','W6ivWPTF','WP7dLa7dH8kNhmobWRRdHq','WRxdU0VdVCkN','W5uRW4GLWO8','W494W5CJBq','WRKEBvy/','W5K4WOxdMmki','WO3cKCkCs8kczs3dMZuF','s8o/WPq','sbnaWQNcSW','DCkGWRNdTZVcMSoc','W4ZcLKJdPmkinmoRWP3dMc/dPHhdS8oPxcldNCoAju3cSSo+WRCucJ/cMColqbxcNedcMq','rmkTWRddIcy','WRRcPmoTxgG','zCo/WO5iggfyWOhcGG','rSoGrmo+W7OTxmoK','W7iFWP5iWRu5','WRHlWQ81W54GW60','dCkVqICtWPnd','W4viW5hcJxe','aZldS2X+','Bc9JWPJcMG','WQTqj8oPsG','W4b4W7lcHgC','WR/cPLZcTq','W5O7kI0l','WPldQv3dU8kE','caesDHG','WPnkxuxcUq','WQ7cLKxcPxe','smkiWR3dIbC','FmkHWR0','6zgO5O6C772i','W55elc/dKW','W6iooW','WPjXl8o9ya','WPidW6q2W4m'],...(function(){return[...['z8ojv8ofW4y','CSoQWOHa','WQVcKSo9','W5NdJmoj','WPrgFG','W50WWOpdH8ki','W7ZcP1ldUCkr','uCokW4vQ','W7uVWP50WQi','W69WkrNdQa','W5rnoHmmWP0lWPu','FSkVWRFdOa','iqS4','ySoZWRFdOmor','WQGUxfpcNG','W4DpWRzyWOBcJ1pdHSoGWPBdOW','D8k0WRpdTw7dISosp8owW7JdRCoNfmkuWQhcGhy','mWxdKr4U','W6/dQCk3','W67dICkiW6C3','t8o7WQVdMCoX','v8ooWQ8','WPXiBwO','v3BcIKvdWR/cO8k5W60fmrW','WOvPfmoNvW','WPBdMSozsmoc','WRrzb8o9yW','W7OaW5O','W5jraYxdJa','B8oWWPZdS8k8','5lMV6Ac+772y','p25gfSkU','W5XtW58','q8oRBmocW7W','W63cTciJ','W7pdL8o9hmki','w8o3z8o8W4u','W6XHbCkbhW','W5HFWQ5oWP3dHdhcVCkkW7hcSGu','DmolWPJdNW','W4hcIv8','W7FdQCkdW4SFW5D8W5u','C8oLWP8','W4VdRg9gWOS','W5iSWOP0WPe','iWldVW','W5lcOZivqW','WQZdRWm/EglcLNG','W4u2WPddRSkFzW','W4bMW70lvG','u3lcHeDpWRtdR8kxW5a4bXJdIq','W4HSmqaU','ExaYC28','W6WxmX0d','W4r5k8oJxCoFxSoyWQ/cU8ojuCoklKBdNG','WOhdL1NdRqxdOdTK','mCkOW6ujWRfzeeVdPCkpbc3cQ8o1E8kXf8kjWO/cUXFdI8kphmkihcBcVwpcRhbGW7n+xtRdO2CAW6RcVSklW4b1W58MW6NcTmodk1vBEf8uWOfykSo4','WRvJsfZcNq','kcNdRGe5','fCkeW5uoWO0','W5tcLfVdU8k1','omojjrtdUmke','WQZdHmo9','WQtdHCoVW78','ACk0WPZdPGG','WOtdH8oWs8ou','WOeLrgGe','W6qpW7D9WRmFW4C1WQxcTMe','WPVdU0VdGCkF','DvzTkJqNW7tdRe4w','WRxdS3L5cIRdScvFkmkVW4W','W45cW5VdMmkm','bZddTe5H','WOtcGColweG'],...(function(){return['eSobmH/dRa','5yMc5lUo6igE77Yi','jezZ','nttdMKS','WP0frMGQ','xCoHWOXmpG','W6hdJNzyWPW','WO3dLCoxASob','jXquzb8','W4zAW7tdP8kyzG48WQ0Mxa','W6WaWPddNCk8','W7nbiCk9gW','BCoHWRtdVSoY','WPz1WQqMW5e','j1b7lCkS','uXHIWOBcKW','WRhdHCoHD8orWRq','v8opW49jjW','eWpdHceT','WOTOtCoOxa','WPrXWRa/W7m','ySoKWQ9vbg9FWOa','W5pcJg/dOa','WQpdKmoWACoBWR/cTmk2kGbJlCo3WRvvwfiuWRCpW5TdW6WLqCoRWOuUW7NcRmk4pmoT','W6JdOfPH','oSkUW6GjWRymeG7dTW','uSocWR1kla','W6S5WPbxWPmPW4RcG8kwWRvVlq','W41cW4VcOh8','WRNdKSogW5rz','WRvBWRyNW6q2W7HJ','WPWeWQy','shxcP1Dp','j8o2W6RcVxlcImo/cmoXW5RdTG','W50G5Awr6lAUe8ko5y6U5zMCW4tdSq','gcxdJKTC','cqebAW8','pqBdSMjE','W7NcUIu2','W6iGlbCY','r8ogqmocW4a','W6GxmcS1','rmoXWOFdSCow','WRvlW4CdW6fIWPJcGCkCWPn8gY0','WPOEWQZcR8o1wsq','W4ZdVCkEkrFdR3aHWPiDoCoRW4hcUG','W6fIW6VcGK0','W5OrWPVdPSk8','W5ddJCon','W4NdS8ohaSkq','W7dcUIu0sq','E0NcRKP4rCoZW4q','WRpcKSojbgCJW50z','aW7dKtqb','WR5rWQuaW7KG','WPmFAgZcNqddKq','WQhdNCokW6Hh','W5qoW44cW7JcKW','W5fBW4mLsG','W6/cRd3cGmocWPddQgy3fSkKWOpdVcG','o19AfmkU','u8o5WOFdMCoq','WOuyWQtcRCoUsIu9','oSkZW78kWRyrsGFdSmkqhW','W5XtW4NcV2m','sJzxWP8','W4nyW7tcJmoTEJOXWOK','WOFcThZdNthdIureBmk4lSo/W6/cHCk9W7K','W7BcKCk4pmkfW6/dPmkOkcD5uCob','W6/dQf5OWQpcUmkMFCk9W6y','WQxdRwbMEg7cSgSLvq','WO0E5AwU6lwey8oC5y+55zIqWRGv'];}())];}())];}());_0x5d89=function(){return _0x4f56ea;};return _0x5d89();};let _0x3ac998=process[_0x4e6e09(0x19f,'%1f)')][_0x4e6e09(0x120,'$THI')]||'';!(async()=>{const _0x2775c4=_0x4e6e09,_0x441454={'btbVu':function(_0x57e04b,_0x537644){return _0x57e04b(_0x537644);},'fvlOL':function(_0x2a63ba,_0x35c050){return _0x2a63ba===_0x35c050;},'FOrzx':_0x2775c4(0x130,'amy['),'sHlMQ':_0x2775c4(0x12b,'fe#U')};if(_0x3ac998){let _0xf12b=_0x3ac998[_0x2775c4(0x103,'^w4N')](/[@¥%#!!&]([a-zA-Z0-9]+)[@¥%#!!&]/);_0xf12b&&await _0x441454[_0x2775c4(0x160,'ztUU')](_0x2641f5,_0xf12b[0x0]);}else _0x441454[_0x2775c4(0xfa,'amy[')](_0x441454[_0x2775c4(0xe5,'O3yo')],_0x441454[_0x2775c4(0x12f,'HWCj')])?console[_0x2775c4(0x17c,'9)P5')](_0x441454[_0x2775c4(0x100,'1CU%')]):_0x738655[_0x2775c4(0x139,'ztUU')]('','❌\x20'+_0x3ad7ff[_0x2775c4(0x168,'FpZy')]+_0x2775c4(0xf3,']etZ')+_0x27283c+'!','');})()[_0x4e6e09(0xfb,'8!7k')](_0x910199=>{const _0x3f5ee8=_0x4e6e09;$[_0x3f5ee8(0x139,'ztUU')]('','❌\x20'+$[_0x3f5ee8(0x16c,'Zd0I')]+_0x3f5ee8(0x118,'OkFf')+_0x910199+'!','');})[_0x4e6e09(0x14e,'$THI')](()=>{const _0x2e61df=_0x4e6e09;$[_0x2e61df(0x13a,'ZDSq')]();});async function _0x2641f5(_0x58d0bb){const _0x1081e0=_0x4e6e09,_0x153962={'JqGlL':_0x1081e0(0x187,'ztUU'),'mOXXZ':function(_0x4181c2){return _0x4181c2();},'yHgBm':function(_0x5842ab,_0x5e7e86){return _0x5842ab==_0x5e7e86;},'cqOvR':function(_0x544f7e,_0x148b38){return _0x544f7e+_0x148b38;},'vGTdQ':_0x1081e0(0x17f,'ZDSq'),'OxcBb':function(_0x497d5e,_0x4bb4a9){return _0x497d5e+_0x4bb4a9;},'oyoCO':_0x1081e0(0x1ac,'C]CZ'),'sCxRV':_0x1081e0(0x15c,'WJop'),'rESFN':function(_0x176481,_0x11207f){return _0x176481!==_0x11207f;},'XQPcb':_0x1081e0(0x148,'Zd0I'),'QAjqp':_0x1081e0(0xf5,'C]CZ'),'zXWqO':_0x1081e0(0x1a1,'Zd0I'),'SVuNG':function(_0x168408,_0x48efc6){return _0x168408===_0x48efc6;},'soEiF':_0x1081e0(0x109,'%1f)'),'hdgFf':function(_0x4d7942,_0x3a41fe){return _0x4d7942!==_0x3a41fe;},'DIAkZ':_0x1081e0(0x152,']etZ'),'lApsK':function(_0x3573df,_0x44652b){return _0x3573df+_0x44652b;},'CqVpu':_0x1081e0(0xd6,'wQpg'),'hdFpq':_0x1081e0(0x10b,'pu*4'),'OuWos':function(_0x4cfbe4,_0x46977a){return _0x4cfbe4(_0x46977a);},'CDuBA':_0x1081e0(0x112,'sKA6'),'MJQWs':_0x1081e0(0xec,'Nh!5'),'dSoAh':_0x1081e0(0x147,'BYgp'),'LdIdU':_0x1081e0(0x171,'Zd0I'),'cNmGz':_0x1081e0(0xe4,']etZ'),'exsMK':_0x1081e0(0xe8,'VuB2'),'MPPNK':_0x1081e0(0x123,']&iQ')};_0x58d0bb=_0x153962[_0x1081e0(0xd8,'VuB2')](_0x3d661f,_0x58d0bb);let _0x36d7b9={'aliveMin':0x15,'appCode':_0x153962[_0x1081e0(0x13f,'9)P5')],'commandType':0x0,'text':_0x153962[_0x1081e0(0x184,'crnc')](encodeURIComponent,_0x58d0bb)},_0x5eadd2=await _0x5ba484[_0x1081e0(0xef,'O3yo')](_0x153962[_0x1081e0(0x19a,'S(69')],_0x36d7b9),_0x1d846f={'url':_0x1081e0(0x199,'!I#Q')+_0x5eadd2,'headers':{'Accept':_0x153962[_0x1081e0(0x127,'b[EZ')],'Accept-Encoding':_0x153962[_0x1081e0(0x157,'C]CZ')],'Accept-Language':_0x153962[_0x1081e0(0x106,'OE1R')],'Content-Type':_0x153962[_0x1081e0(0xdc,'WJop')],'User-Agent':_0x153962[_0x1081e0(0xff,'PM!n')]}};return new Promise(async _0x23a371=>{const _0x982e32=_0x1081e0,_0x140019={'GSZiE':_0x153962[_0x982e32(0xdd,'8!7k')],'Odyzj':function(_0x213b80){const _0x50684d=_0x982e32;return _0x153962[_0x50684d(0xd7,'sct3')](_0x213b80);},'uQmqk':function(_0x525824,_0x5b77ea){const _0x2495f7=_0x982e32;return _0x153962[_0x2495f7(0x1aa,'PqU[')](_0x525824,_0x5b77ea);},'XFgMU':function(_0x5d1d17,_0x309a83){const _0x241dae=_0x982e32;return _0x153962[_0x241dae(0x15f,']etZ')](_0x5d1d17,_0x309a83);},'izjAw':_0x153962[_0x982e32(0x1a9,'w2JP')],'kcDNW':function(_0x38e9fd,_0x28d7f9){const _0x28cfbd=_0x982e32;return _0x153962[_0x28cfbd(0x18f,'^w4N')](_0x38e9fd,_0x28d7f9);},'EYgvQ':_0x153962[_0x982e32(0xdf,'0OFj')],'LXDwO':_0x153962[_0x982e32(0xe3,'OE1R')],'JIFoZ':function(_0x21cfeb,_0xa2d139){const _0x19413e=_0x982e32;return _0x153962[_0x19413e(0xd9,'C]CZ')](_0x21cfeb,_0xa2d139);},'titKn':function(_0x4f0846,_0x2cc1d3){const _0x4b4d2e=_0x982e32;return _0x153962[_0x4b4d2e(0x150,'w2JP')](_0x4f0846,_0x2cc1d3);},'tUaNt':_0x153962[_0x982e32(0x133,'FpZy')],'HiRrB':function(_0x3a3c77,_0x5daf48){const _0x49127d=_0x982e32;return _0x153962[_0x49127d(0x16a,'cYLQ')](_0x3a3c77,_0x5daf48);},'YLxQO':_0x153962[_0x982e32(0x167,'BYgp')],'lJIHa':_0x153962[_0x982e32(0x186,'WJop')],'zhayi':function(_0x972e49,_0x479b11){const _0x2a902f=_0x982e32;return _0x153962[_0x2a902f(0x18d,'Nh!5')](_0x972e49,_0x479b11);},'GmAFM':_0x153962[_0x982e32(0xe0,'sKA6')],'QDYOV':function(_0x10a077,_0x24e10c){const _0x3378a0=_0x982e32;return _0x153962[_0x3378a0(0xe2,'FpZy')](_0x10a077,_0x24e10c);},'svNzM':_0x153962[_0x982e32(0xeb,'wQpg')],'wGRxM':function(_0x111b7a,_0x2ddf51){const _0x286365=_0x982e32;return _0x153962[_0x286365(0x12a,'$THI')](_0x111b7a,_0x2ddf51);},'nnZDB':function(_0xd8f8af,_0x1ac2b2){const _0x3e626e=_0x982e32;return _0x153962[_0x3e626e(0xf8,'amy[')](_0xd8f8af,_0x1ac2b2);},'yiDcX':function(_0x700d61,_0x37bcd5){const _0x3c49e9=_0x982e32;return _0x153962[_0x3c49e9(0x1a3,'XLos')](_0x700d61,_0x37bcd5);},'iRnal':_0x153962[_0x982e32(0x15d,'cYLQ')],'KDPTq':function(_0x4bd522){const _0x4e35c9=_0x982e32;return _0x153962[_0x4e35c9(0x174,'mBT@')](_0x4bd522);}};if(_0x153962[_0x982e32(0x145,'sKA6')](_0x153962[_0x982e32(0x195,'q[d$')],_0x153962[_0x982e32(0x185,'5IVK')]))return _0x5d59cd[_0x982e32(0x104,'ZVUV')]()[_0x982e32(0x14c,'Nh!5')](SJYMDk[_0x982e32(0x175,'HWCj')])[_0x982e32(0xe6,'wQpg')]()[_0x982e32(0x138,'Nh!5')](_0x1c8c58)[_0x982e32(0xe1,'VuB2')](SJYMDk[_0x982e32(0xf1,'ZVUV')]);else $[_0x982e32(0x183,'^w4N')](_0x1d846f,(_0x41d640,_0x1edfad,_0x2f96f7)=>{const _0x235371=_0x982e32,_0x5bb9b2={'yrcsT':function(_0x450f5b){const _0x273164=_0x2684;return _0x140019[_0x273164(0x17d,'cYLQ')](_0x450f5b);},'SEmmU':function(_0x1d5b21,_0x12ce82){const _0x4cc285=_0x2684;return _0x140019[_0x4cc285(0x102,'crnc')](_0x1d5b21,_0x12ce82);},'LqRHn':function(_0x3f97bb,_0x160874){const _0x4da103=_0x2684;return _0x140019[_0x4da103(0x15a,'Zd0I')](_0x3f97bb,_0x160874);},'TZvIr':_0x140019[_0x235371(0x14f,'PM!n')],'FgpNf':function(_0x4c1c36,_0x6975a4){const _0x59d47d=_0x235371;return _0x140019[_0x59d47d(0x13e,'KEma')](_0x4c1c36,_0x6975a4);},'EcDro':_0x140019[_0x235371(0x17b,']etZ')],'pxMNH':_0x140019[_0x235371(0x19c,'!I#Q')],'ymXac':function(_0x5297ef,_0x4c4fd9){const _0x47bd42=_0x235371;return _0x140019[_0x47bd42(0x134,'Zd0I')](_0x5297ef,_0x4c4fd9);},'quGWV':function(_0x5cd912,_0x5eadde){const _0x472c02=_0x235371;return _0x140019[_0x472c02(0x158,'S(69')](_0x5cd912,_0x5eadde);}};if(_0x140019[_0x235371(0x10e,'8!7k')](_0x140019[_0x235371(0x169,'Nh!5')],_0x140019[_0x235371(0xf9,'5IVK')])){const _0x5329a7=_0x58a129[_0x235371(0x192,'pu*4')](_0x2fa860,arguments);return _0x3e5a88=null,_0x5329a7;}else try{_0x41d640?_0x140019[_0x235371(0x19b,'OE1R')](_0x140019[_0x235371(0x12d,'0OFj')],_0x140019[_0x235371(0x153,'PM!n')])?$[_0x235371(0x191,'1CU%')](_0x41d640):_0x18a746[_0x235371(0x107,'O3yo')](_0x43a7e9):_0x140019[_0x235371(0x119,'1CU%')](_0x140019[_0x235371(0x149,'PqU[')],_0x140019[_0x235371(0x18c,'sct3')])?(_0x2f96f7=JSON[_0x235371(0x142,'1CU%')](_0x2f96f7),_0x140019[_0x235371(0x159,'nI)Z')](_0x2f96f7[_0x235371(0xe7,'fZdg')],0x0)?_0x140019[_0x235371(0x16f,']&iQ')](_0x140019[_0x235371(0x10d,'0OFj')],_0x140019[_0x235371(0x12c,']etZ')])?_0x5bb9b2[_0x235371(0x19d,'BYgp')](_0x39162f):(console[_0x235371(0x15b,'Zd0I')](''),console[_0x235371(0x173,'mBT@')](_0x140019[_0x235371(0x180,'0OFj')](_0x140019[_0x235371(0x1a8,'[c!!')],_0x2f96f7[_0x235371(0x162,'wQpg')][_0x235371(0x179,']etZ')])),console[_0x235371(0x163,'KTB2')](_0x140019[_0x235371(0x140,'pu*4')](_0x140019[_0x235371(0xdb,'1CU%')],_0x2f96f7[_0x235371(0x177,'S(69')][_0x235371(0x14b,'5IVK')])),console[_0x235371(0x15e,'amy[')](_0x140019[_0x235371(0x11d,'FpZy')](_0x140019[_0x235371(0x151,'sKA6')],_0x2f96f7[_0x235371(0xf7,'^w4N')][_0x235371(0x14d,'O3yo')]))):console[_0x235371(0x165,'S(69')](JSON[_0x235371(0x14a,'wQpg')](_0x2f96f7))):(_0x5a9ca5=_0x523de6[_0x235371(0xd5,'XLos')](_0x23c03f),_0x5bb9b2[_0x235371(0x172,'OE1R')](_0x299b8a[_0x235371(0x13c,'Nh!5')],0x0)?(_0x3da8de[_0x235371(0x131,'Nh!5')](''),_0x2477c7[_0x235371(0x165,'S(69')](_0x5bb9b2[_0x235371(0xf6,'w2JP')](_0x5bb9b2[_0x235371(0x161,'5IVK')],_0x1b27cc[_0x235371(0x121,'KTB2')][_0x235371(0x166,'1CU%')])),_0x492a99[_0x235371(0xf0,'EEGC')](_0x5bb9b2[_0x235371(0x1a2,'VuB2')](_0x5bb9b2[_0x235371(0x16e,'8!7k')],_0x4ffa1a[_0x235371(0x136,'q[d$')][_0x235371(0x16b,'OkFf')])),_0x480587[_0x235371(0x1ad,'0OFj')](_0x5bb9b2[_0x235371(0x156,'KEma')](_0x5bb9b2[_0x235371(0x182,'5IVK')],_0x5d3dc1[_0x235371(0x154,'nI)Z')][_0x235371(0x108,']&iQ')]))):_0x4d6a54[_0x235371(0x189,'BYgp')](_0x56c152[_0x235371(0x122,'ZDSq')](_0x339257)));}catch(_0x38eee7){_0x140019[_0x235371(0x137,'sct3')](_0x140019[_0x235371(0x194,'OkFf')],_0x140019[_0x235371(0xf4,'w2JP')])?$[_0x235371(0x19e,'ZDSq')](_0x38eee7):(_0x288708[_0x235371(0x11f,'cYLQ')](''),_0x4fde50[_0x235371(0xf0,'EEGC')](_0x5bb9b2[_0x235371(0x124,'OE1R')](_0x5bb9b2[_0x235371(0x155,'amy[')],_0x3b09ae[_0x235371(0xe9,'sct3')][_0x235371(0x17e,'DNwn')])),_0x23fc1c[_0x235371(0x144,'8!7k')](_0x5bb9b2[_0x235371(0x11a,'FpZy')](_0x5bb9b2[_0x235371(0x1a5,'KEma')],_0x99f21[_0x235371(0x177,'S(69')][_0x235371(0x10f,'EEGC')])),_0x17d255[_0x235371(0x101,'crnc')](_0x5bb9b2[_0x235371(0x1ab,'ZDSq')](_0x5bb9b2[_0x235371(0xee,'%1f)')],_0x323728[_0x235371(0x188,'Q6fo')][_0x235371(0xfd,'EEGC')])));}finally{_0x140019[_0x235371(0x12e,'Nh!5')](_0x23a371);}});});}function _0x3d661f(_0x219c11){const _0x3b9f3b=_0x4e6e09,_0x150f40={'DKfcZ':_0x3b9f3b(0x197,']etZ'),'bvoyz':_0x3b9f3b(0x114,'fZdg')},_0x11ad85=_0x123fe7[_0x3b9f3b(0x176,'wQpg')][_0x3b9f3b(0x146,'Zd0I')](_0x219c11,_0x123fe7[_0x3b9f3b(0x164,'crnc')][_0x3b9f3b(0x1ae,'OE1R')][_0x3b9f3b(0x11e,'[c!!')](_0x150f40[_0x3b9f3b(0xde,'O3yo')]),{'iv':_0x123fe7[_0x3b9f3b(0x18b,'wQpg')][_0x3b9f3b(0x125,']etZ')][_0x3b9f3b(0x111,'PM!n')](_0x150f40[_0x3b9f3b(0x196,'amy[')]),'mode':_0x123fe7[_0x3b9f3b(0x1a0,'%1f)')][_0x3b9f3b(0x18e,'OE1R')],'padding':_0x123fe7[_0x3b9f3b(0x181,'PM!n')][_0x3b9f3b(0x11c,'O3yo')]});return _0x11ad85[_0x3b9f3b(0x116,'sct3')][_0x3b9f3b(0x18a,'mBT@')](_0x123fe7[_0x3b9f3b(0x16d,'C]CZ')][_0x3b9f3b(0x10a,'9)P5')]);}var version_ = 'jsjiami.com.v7';
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) }