elm/ele_mst.js

16 lines
103 KiB
JavaScript
Raw Normal View History

2024-03-23 11:52:53 +08:00
/**
* @平行绳 飞机频道https://t.me/tigerorrose
* 变量elmck: 必填账号cookie短信登录面板项目地址https://github.com/funaihui/eleWeb
* 卡密地址http://card.94wan.fun:90
* cron: 11 7 * * *
* 2023.7.14 首次发布
* 2023.8.22 修复没有对应关卡问题
*/
const $ = new Env('饿了么美食摊');
const _0x2407=['TsOsM8KUHQ==','I0vDlsOZw5zCtMK9WMOIw7Q=','w6HDv1bCnMKh','wrvCnsKzYMOv','w7N7wqodwppSMx4ow6s=','wrlfRhbCtw==','w6Fww7XCrjbDog==','wq8PEzbCiw==','KCkfCMOd','wo07JBTChA==','w5PCs8OWC1DDucOFw50hwow=','wq3Dt8O7dHo=','e1Fkw7xmHWDCk8O8wqI=','wo3Ct1LDtm4=','woAgMBHCnQ==','CsKYZwLDoMOZHRTDjMKO','woMLEcO9w5s=','wrYydnzDiw==','MD4FF8Ol','fwYdbcKU','RE59w4pW','wrYGw7diw7s=','c0ZUe8Kpw5s=','w7nChsOpwqXDkw==','wrwvw51dw4I=','KcO7ShbDlw==','VWLCr27ChA==','w4R1wp4Gwr7CtQ==','fcOUP1NN','ciB6w7nDuA==','TkzDoMO3UA==','HB1rw7QBwog4B0fDkw==','IWbCpCjDoQ==','wq8Xd1fDl8KSMMK9Zh4=','CzVIw74L','wrXCrMK3asOv','wqoiwrlRwo0=','ScKowojDpBoYEg==','wqd9QADCpg==','w6Yrwrwfwr8=','P8OyVDnDmw==','McKfwrVyLw==','wqbCg03Dl0Y=','wqrCisKSZMOD','KkTCgBbDoQ==','ZWPCqmXDtQDChjTDokY=','wqzCj1nDlXo=','EMOKcgXDsg==','SGJew7BW','fAU7NMKv','wqbDtMKDwqzDt8OFVcOGMMKO','SR7Cgld/','a8K5UDLDmRnDiMOFUiI=','w7d6w7TCtRg=','WjkFGcKz','woEeDsObw7M=','GhNpw4MKwp1pQgrDnA==','woTDiDsiPw==','bcKrwr7DozY=','CWvDoHzDig==','wpPCo3HDimY=','w4pXw43Csio=','GgNjw6EawpxZRAHDlw==','wrxtw5lCw5gXYEhww7A=','XEfDjsOUYw==','CW7Dq1HDnCzCrGE=','Kz4XF8Ol','BgNDw7k3','wr3DqsKCwpfDig==','wqLCo2rDoXI=','UsK+DMK1IHF7GCLCow==','wrsqwpw/w5o=','wrLDjMO4cw==','LMKLwrJDPg==','fxTCgQ==','w65Ab3jDgg==','w7FhKcOnSg==','wrsEwp40w5w=','wq7Dq8KSwprDrg==','P2fCkg/DrA==','CsK8wq1zCA==','w6bCicOmwoPDug==','w6VGQ1fDqwjCgRPCm2E=','UR8AS8Kzd09fYcOK','wqAuw6Yhw40=','IC10w543','YmHCjlbDiA==','wrDDuHzDt1I6wp0/Kh0=','w5TCjcODwoXDiw==','AwxLw5nDtQ==','C8KHwqQ8csKvwpDDrg8i','dB7CksK9woPDrMOp','HkBBf8OB','JMKfwoh4Dw==','w4xtdcOQw40=','wpLDscOEU0TCuMOMw549','wrjCjcKJWMOn','wpwEwpsY','Y8K+GWrCgEfCpMKMEXc=','fSRzw7nDmQ==','w6nCo8OuwqjDqA==','wrpzXATCrQ==','OT4VC8OM','JVfDlW7Dlg==','6LWP5Y6A5aSz5ped772u6KyY6YeX5pab55ie5b+n','cmrCsXTCuA==','XzgdUcKV','E2PDt1fDmA==','wqQ3LMO5w7c=','w4xwMsOfSw==','wrxFehzChg==','wqbDqzMZP8KAdyDClg==','wrLDtDMkFQ==','w7NGAcO0dCTCtF3Cphs=','YA/Ch8Kdwo/DjsOuBsKAwqU=','CcKPwpIdYsOgw48=','bcOMBsKRFw==','wpjChRMoCsOjH0/CvC4=','w6IYwqUiwr8=','VBLCt8KGwpw=','ZcKqUDLDmRnDrw==','wo0wwr7CjRRxwpjDrsKvwq4=','T0LCjVjDsw==','6K+v6LWA5Y+B5rCs5p6o542O6L2L57+a6aGi5pGR','eRTCrsKewpM=','w5BAfFbDlQ==','wqnDtAAyNw==','wpU+CMO4w68=','wprDkwUDLg==','GCBY','wq/Du07DlRE=','wo3DpMOZUFw=','w4/CkUZ2TMOtEV/Do2w=','WVHCj2zDtw==','KiFQw7oR','wqR7wogfwptTOAR+w7w=','SUvCklXCrA==','SB7DrRvCuw==','RcOzDg==','w5AWw5JSQg==','JcKIwoNs','XsKUZi/Dug==','wo3Dp33Dsz4=','TsOsCsKUIA==','TsKqwrrDsDc=','w7LDl13DgMO8','w7N7wpkewpVfMwIIwqk=','RmbCsVnDkQ==','wojDg8KPwqLDlg==','w45xasO0w6I=','V0tQw7ZV','w5fDghTCo8KSVAYIwqPDow==','wqYCwqI6w6A=','fWDCkkbDkw==','w7tzWk3DqQ==','wr7CjU7DkHo=','dCfCmnN4','wr5uQR7Cnw==','AHLCnAnDlw==','wqkxwos5w6E=','w6M/w7bCozfDpsKxJ8OANg==','wo4VMMOyw4g=','WHDCnnbCgg==','RAsac8OPw5A=','77+077+L776j8Yi4hQ==','bTfDqR3CnQ==','OBVlw7gh','w6XCpcOdwrzDlA==','Ijw3JMO5','wpfDkW0=','w4hOdgnCsMKAw7oNOxo=','akp5w70=','wqjCrMKoXMOb','w586w4Y=','wq44H8ODw7NMwq8/wrgl','esKDUzrDsQ==','XyMHNcKm','B8O/XUfCsw==','Fwtgw7kb','wpUzw4R3w6A=','IEwcwqfCi8ON5b6M5aaf44Kt6aWk','UizChH9E','Y3zCuA==','w78OwrEgwrU=','WcOwCMKiMyEIXg==','QSouIcKY','w7t4w68=','eU/DssOWcg==','SQLCgsKawpM=','dhDCksKRwqs=','wppSZyHCkw==','wrrCicOHwr9n','SRTCvCPDrMOJw6cowrIz','w7p4R1DDlQ==','S8O7HcK9Jg==','MB9Qw4PDmg==','w506woxeWcOVw615','FMOUYUfCjA==','M8KOUDNrw5dHfcO8wo8=','fHzCsTbDggQowr5pw64=','fMOJDUJ2','wqXDpsOoT0w=','IS1fw4EF','D3DDqEzDkyXDoWHCpyE=','wobCpcOMw7wEw5DCq0TDksKv','fcOlGcK+dGljWz3CvQ==','wrwQw4Rhw6c=','wrE2MMOaw4o=','wrRKZAbCvQ==','wr3CucONwrhe','TVLDrsO4YA==','EUvCp1VFWBJOwo/CoQ==','wr9dXh/CmA==','wosOwpw=','w588w49YGsOL','f2XCkUzDnw==','YCfDoTDCjiDCk8OnUHo=','wqTCiHbDnF8=','wpwDMxzCgw==','HMK6wqI/YQ==','wrEvw4VVw5s=','V0/CiUPDqQ==','w5hhw6vCvhU=','wpEuw41Xw73DrTA6wrUI','wpIvf0zDtA==','SCvCmGg=','wqBuewfCu8O+XETCtg==','wo0DRHDDgw==','wpnCssOxwpNr','wq4Cwoc6w5nCtA==','wqs+cR3CosK/CQrCqsKJ','UyXDoz7CmSHCncOnGDI=','WsKadgTDv8KIBx3Cg8OC','N8KMwp4PXw==','w64wwocbwodOBQQ9wrI=','UxBaw6nDig==','BsKqwpxYLg==','w4HDoFPDgsO/','NHnDqEDCn3jDrWXCuzQ=','Y8KswpnDuDE=','NcOXVibDpQ==','wpLCiEzDgFc=','NcOVYULCpg==','fMK2ZTbDgg==','DGXDtkLDiSo=','QcOUBV9u
// prettier-ignore
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