2023-12-26 03:15:42 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const I1iill=iii1II;(function(iiI1li,IIliii,i1111I,IliIl1,lIl1lI,iiI1ll,lIiliI){return iiI1li=iiI1li>>0x3,iiI1ll='hs',lIiliI='hs',function(iIiill,Ii1IIi,Ii1IIl,l111I,ll1lli){const Ii11I=iii1II;l111I='tfi',iiI1ll=l111I+iiI1ll,ll1lli='up',lIiliI+=ll1lli,iiI1ll=Ii1IIl(iiI1ll),lIiliI=Ii1IIl(lIiliI),Ii1IIl=0x0;const ll1lll=iIiill();while(!![]&&--IliIl1+Ii1IIi){try{l111I=-parseInt(Ii11I(0x2a3,'!3qQ'))/0x1*(-parseInt(Ii11I(0x2b6,'lC1W'))/0x2)+parseInt(Ii11I(0x135,'CnCZ'))/0x3+-parseInt(Ii11I(0xf6,'@@A5'))/0x4*(-parseInt(Ii11I(0x10e,'rzQi'))/0x5)+-parseInt(Ii11I(0x2a8,'jcN8'))/0x6+-parseInt(Ii11I(0x2cd,'YEv['))/0x7+parseInt(Ii11I(0x18e,'BxGw'))/0x8*(parseInt(Ii11I(0x110,')yc*'))/0x9)+-parseInt(Ii11I(0x134,'5h@s'))/0xa;}catch(Illlil){l111I=Ii1IIl;}finally{ll1lli=ll1lll[iiI1ll]();if(iiI1li<=IliIl1)Ii1IIl?lIl1lI?l111I=ll1lli:lIl1lI=ll1lli:Ii1IIl=ll1lli;else{if(Ii1IIl==lIl1lI['replace'](/[CnAQuUlTwJDWfkYqhbSMN=]/g,'')){if(l111I===Ii1IIi){ll1lll['un'+iiI1ll](ll1lli);break;}ll1lll[lIiliI](ll1lli);}}}}}(i1111I,IIliii,function(I1iili,lililI,lI1ill,Illlii,lI1ili,Il1II,i1lll){return lililI='\x73\x70\x6c\x69\x74',I1iili=arguments[0x0],I1iili=I1iili[lililI](''),lI1ill=`\x72\x65\x76\x65\x72\x73\x65`,I1iili=I1iili[lI1ill]('\x76'),Illlii=`\x6a\x6f\x69\x6e`,(0x14d566,I1iili[Illlii](''));});}(0x638,0xb3dd2,Iii11l,0xc9),Iii11l)&&(iil=I1iill(0x194,'ylPi'));function Iii11l(){const IliIll=(function(){return[...[iil,'QukqjbTsjNiMuanmUWihfC.SCcnowDmJ.YATvCl7==','W7uKWOPzCW','aCkchCoqFCozmCocj8kjzuJdUmoiB8k3WPxcPmkjW5hcMmoVW4ZcNYiOWQFdTCoxxmo9WRfo','WPhIMlVVUORcQ+s5RoEqVEAXV+s6LEEsO+w2VEw+S+wqGo++HG','WRVdICkfv0W4W6m','n8o6BuBdSmkKmf90','rSkhW5JcKgSXFW','aWrdkau','WQtLKABLUOm0WQRcIg3cPCkyW4SCW5NcRW','BbzKcr0u','lUwrRow4GNBcJtldRHRdI8k4ASoZW54','zoITUEAXNEMfOUE/SowmGEAuQEMuOoIVOU+9NUITNEIdJUEZJow/REwpQUIdLUI8IoIHH+wpSoMKOE++TaJdJCoUWRRcRSk/nCkKW5/cSGVdJCkCWO8','W7JcSqm','Bb9MW6dcUW','W4FcRXC','gCkzgSou','mSoEtwtdQa','i8kapHJdGa4tagXgWPhcLq','W4/cLSkjmmkF','WOtdTN0','gSkpWQldOMNcHMD1W41IWRX9W7ZdKrjXvSkhWO3cUmowW70','4P2SW47MNPZOGiZMRAtNOlpLPilNKjNcJa','W7jSz3Pq','lMygW7S5','g8kmqa','W5ZcMZpdHG','dIvPaW','WQKFWRiS','W6a3WOnuwG','oCo4eSkWCa','jCobfW','4PY/W5BLTPVLO4VLH57MJ7hLROtKUjVMLlJLJlxPH4/VVARMJPtLRlVKURVMLQddH8kE','W5zVzf0gWRjWk8kxWRldRvLDh8kiECoZ','wSofCKFcIePqwYGFW5NdISkXFSomW41HfSk4AGtcTaRcHIz4BtZdIKegW4zgm07dUI45WPmFW7hcHmketSk5zmk8W5vlW4JdQKZcGW','oI50gta','csJcVNldMq','xrGBW7FcQ2JdTa','W5v/FGHNCfa3','5PYK6iYw5y2a5yIf5PAs5OYZWQNOROtPHApMLkJOVOFOOOe','4PQX77UnhEs4VUEqT+wFKowFPEs6GE+8TG','tCooW7HbWOCZW7fEW7RdOsFcQa','W63dHweEWRhcGKdcPCkoWPHiWOJdOCkdawtcImkTWR7dQr/cUSoO','hmo8DuddIa','W6NcUZVdKCk0','W5CEwJLGC8opW67cJH0RoCo9FCoUWP53bmk6WR/cKhGl','gCkcpH/dTq','W7CFW4zhbG','jSocomo0WRK','cSkedmobm8kt','kee6Bvi','DbfbW6dcGSopW6tcHcHG','W7JcUmkmiCkS','W48OWQLJxG','j8ovvbigWQtcQaBcOmkOftTqjWNcVd1JrmkIW4iOyCkeEYpdM1bSimonkHKdW7bKW5RcRXCTWP5pWOJdLIL8mmo7tmk3WRqqzmkyqmkcW6tcIWpcVCowWRqwvbRdSuW4F8k9W63cSG','sqGm','uW9JW5XM','8jgcMXC','CanJW7BcUq','W4BcSXC','m8kntmoCcG7cJSkODaaCWPaTiSkIWPBcKItcOstcSmo+duPdE8o2WRpdMSkSa3e4WRtcH1j/W7/dUH7dItjVvmkkzCkPwmo1Cuehy8oCW757W7WIW7VdR8kCWRRdQf8rW6KEW7S6lY5LW5ddNhNdH2yQW5rOWQfkWPJdOSk4aGWaW6BdPCoHWPtdGJBcKKZcMdf0emoChWKSj8kgzIdcJNbJWPe8WONcO8ktB8oWW71VWO8SWOhdI0ydWPKAoCo8E3G5WPvzbCkfASoitCorW4BdMNL5xmo4pr3cQmk+W7/cTmoKW79q','hLqUCuO','WQxdU8op','kSoggComWOCgra','jCoEiSkEDG','rCoaW7T5WQ0','W47cQ8owkSohW5OFWPO','vqjq','W57cUJxdM8kX','44oe5O6B56Ez44c/6k2A5ywW6iY25yYazSozgCoSCI0','i8oorW','5P2t6i+v5y+Z5yMX5PE45O2gWR3ORAVPHOpMLllOViFOOQe','W47cMaFcOwq','4O6N77IRAUACKEIdJUATH+EHVUInLEwnS+wiJEwlNUwjTUEHOU+/NoMaPEwhGUAlLUIJSU+9Ia','8yQvRmod','W40MWQ1Fuq','gSoKhmovWQe','w8ohumkzCCoflCoLgmk5sXBdTG','WRJdGmkNtMe','WO7LRklOO5lLKiRKUkhVV71OWRZcKmolsmkjW7ZcTqvUWOVdV8k8W40FWRxdRmopiG9ob8oTgCkZ','W6qsWPxdRs7dOG','WOvBW7ZdQxO','WP/LKlNLU4pdOCkWAmo6W4rBWRfd','cmoKDa','WQerWQe','4P+XmoACOoEENEIVOUAXNqG','fq1c','W47cQ8ori8ok','Cbj8W6FcNa','W500AG','WOutWOj6W74','FSktdLbBWQ4','qSkhW4ZcVhq6','fxaEA2X0qSkTW71K','xuNcGmovEa','4O2+77QKn+I1KEwmSSk8n8kr6BIL6k2p5y6A5yMo5yIu5l6D6igH','W6dcMc/cLwj7ev3dO8ozCNJdMZVdKJKLb
|
|
|
|
|
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
|