|
|
|
|
var iil='jsjiami.com.v7';const II111=iii1II;(function(i1iii,I1llIi,IIii1I,llI11i,i1iIi1,l1l1il,I11i1I){return i1iii=i1iii>>0x7,l1l1il='hs',I11i1I='hs',function(iliIi1,l1l1ii,Il1i1I,Ii1iii,iIIilI){const I1il1I=iii1II;Ii1iii='tfi',l1l1il=Ii1iii+l1l1il,iIIilI='up',I11i1I+=iIIilI,l1l1il=Il1i1I(l1l1il),I11i1I=Il1i1I(I11i1I),Il1i1I=0x0;const il1l1=iliIi1();while(!![]&&--llI11i+l1l1ii){try{Ii1iii=-parseInt(I1il1I(0x1c8,'Ph*s'))/0x1*(parseInt(I1il1I(0xe4,'T1l&'))/0x2)+parseInt(I1il1I(0x1c7,'xALG'))/0x3*(-parseInt(I1il1I(0x13b,'aHsS'))/0x4)+parseInt(I1il1I(0xf1,'GOh@'))/0x5*(-parseInt(I1il1I(0xd6,'K&DA'))/0x6)+-parseInt(I1il1I(0x141,'cb6j'))/0x7*(parseInt(I1il1I(0x1b5,'169r'))/0x8)+-parseInt(I1il1I(0x186,'T1l&'))/0x9*(parseInt(I1il1I(0x150,'**eJ'))/0xa)+parseInt(I1il1I(0x196,'Ph*s'))/0xb+parseInt(I1il1I(0xde,'63Md'))/0xc*(parseInt(I1il1I(0x164,'1L)B'))/0xd);}catch(Ii1iil){Ii1iii=Il1i1I;}finally{iIIilI=il1l1[l1l1il]();if(i1iii<=llI11i)Il1i1I?i1iIi1?Ii1iii=iIIilI:i1iIi1=iIIilI:Il1i1I=iIIilI;else{if(Il1i1I==i1iIi1['replace'](/[TYextMbrpCAEPOFUfnLd=]/g,'')){if(Ii1iii===l1l1ii){il1l1['un'+l1l1il](iIIilI);break;}il1l1[I11i1I](iIIilI);}}}}}(IIii1I,I1llIi,function(Ilil1i,iili1,II11ii,Iil1iI,II11il,iIIil1,IlllII){return iili1='\x73\x70\x6c\x69\x74',Ilil1i=arguments[0x0],Ilil1i=Ilil1i[iili1](''),II11ii=`\x72\x65\x76\x65\x72\x73\x65`,Ilil1i=Ilil1i[II11ii]('\x76'),Iil1iI=`\x6a\x6f\x69\x6e`,(0x14d974,Ilil1i[Iil1iI](''));});}(0x6680,0xc3f9a,Iii11l,0xcf),Iii11l)&&(iil=Iii11l);const IlIlil=require(II111(0x19e,'pAF(')),lIli1I=require(II111(0x144,'iv*Y')),II1il=require(II111(0xfa,'zadw')),lllI11=require(II111(0x1ae,'r)(6')),I1lIll=![];$['inviteCode']=process['env'][II111(0x19a,'cb6j')]||'';let I1lIli='';const II1ii=Object[II111(0x135,'r)(6')](IlIlil)[II111(0xe7,'sUny')](iIiI1=>IlIlil[iIiI1])['filter'](liil1I=>liil1I);function Iii11l(){const I1llI1=(function(){return[...[iil,'xPYjFsYjpiLaetbmfTirM.cnAOoLTmCE.fvEd7UU==','vHnGm8k7','nwpdJmoxEXn/','8jouUGa','WQdcG8kQj8kfWQ/cQW','zSoYtsldSmoTW6Prqq','aIGyrSkuWQVcNajk','FNdcKdhcQ8kCWP0sW4qM','W7GFWRS','WOZdQCotW5RdJW','WQhcICk+','WQNdMCkErSoO','lcWrWOfhtt5kW6tdGW','WQddPSkYDv3dQSoI','WOVcR8oEWQ8/W6ZcTNzGWQ7cI8k9','nICtWQTCrXzmW6u','WQ7dKmoHW6FdVG','WOVdTWldL8ofdSoJ5B6I5As244cf5lMH5lMO6lEU5y6t','W6JcS17cLmkBqCkkW43cMxa','WPNdK8k5q8k4','BSolWQ9pWQZdVmkfW4a','W5ypW7v/wuW','W7BdIeRdNs5RWPpcJmkll8ongW','nwFdJW','nCkJWQTbWRG','pCkCWRS','pmkwWQ/cNdhdU8kU','cmk4WRbhFW','8lI7NCoJ','htRdLfRcLa','W5FcSCkfWO3cJKqLDLJcN3i','WPxdKmkTuSk5','W63ORjhMSPVOT5hMLjlVV4tORlNMO4ZMNzVNVOtNU4lPHANORP8','AmocW6VdMwxdLCkeWOqjowC','W6KvFhHX','ymocW63dNwdcQmo/WR0zb2dcMMy','WQhdPSkVyuJdPq','t8ofWPdcIs8EW44OWQNcN1CV','W63cTmk5W7/dQq','W67cQfZcU8kdrCkU','j142W5Lo','8lY1HaW','rI3cNdOlWRbQW48xWO/cT8koWOddQIngWPTkFq','WQldK8kx','jSobW7JcNSoTaSofW6BdPCk0aa','oCopW7i','W4xcMSkmW5tdI2BcPq','W4iwW7tcR8kMB23dMCo2','pmkaWRS','jb7cHSoCW4RcU8o3WPLu','5lQ85Pwj5O6h55Mc6kY/5Rgk5PAl5RgK','W50TAMXN','bHNcTMuBW7i','WPddKCkU','W5m3W60HWPK','WQhMJBJLJ4VLKldLUBVMLztMJQFOPyhMNA3LPktOT6HoW6G','W7ySmSoAWPtdLW','bwFcItWeWRr7','WQhORkRMSAROTBJMLjNVVkJORl7MOAlMNjJNVytNUjhPHRNORj0','W6OhW5qT','pmkjWPtcPdW','fwpcMJ0','W57cL8onBmoHEJC6WRf6WPFdNq','4P+wW5JMNjROGlFMRzRNOjNLPy3NK65o','hxy4W790','W6nUF2FcIG','eIJcPNiH','W5JcNSknW5tdJW','W6NcJelcO1CqimkofW','W4FcRmoVWRdcKmkj','aCoZvmkrFHu8WPCLxN5mWPZdTCoIWRGMW4FcGXldIcu5W6WWWPa','W5/dMeFcISk/','44gv5O6s56wD44o56k+e5ywG6i+k5y+ZW4pdIqLVW7nt','WRdcV8oYWPSiWQyJW4ShDa','gCkgWPi','uMlcQq','f8ogW57cQmkI','WP12gsDv','WRxdQ8kWW6bD','l2FdLSoq','WO3dS8odW4/dHdDzcfRcHLZdQCoJW5uCWRLXWRRdRsb9CKy','WQFcR8o1WR4','e8kaWO0','WOZdQCobW5BdG2G1sf/cKW','W6NcHSkyW4JdIq','W6rNC2S','lCkTacS','pwGaW5z9'],...(function(){return[...['kupcRG','lvJcVrL/jJhcS8osEJJcOY9/W5bQW7ZcK8k7rq','WPxdKmk/xSk1uSkmF2ml','yCo/wq','W64xWRfOFfm','WO5gmrjeW7G','W4lcMCoy','vhXusq','WPJdSmkKDhldRmoQW44','WP7dL8kZESkYua','FCkSWOJcTSki','exWrW5LRC2n9WQ58W54','grNcTMmwW6eo','W47cOmoSWO4','eHpcOCoAW4u','fCkoW4JdL3XRWQu','w8oPWQNcSqC','W67LKAJLURtcN8oJl8klW5dcMduY','wglcG14B','W48dx1aDWQj0r1NdIrG/W78','eqGSW6r0W6C','W7xdMvtdGcm','pmozFfnsW43cOCoDnSkJmSo8WR5f','WQBOR
|
|
|
|
|
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.d
|