This commit is contained in:
2024 committed 2024-12-08 23:13:39 +08:00
1 parent 44321ca153
commit c58fb862dc
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -3,5 +3,5 @@
*/
const $ = new Env('3C每日签到');
function FqiKV5(){}var fvJGfo=Object['defineProperty'],MlUmFJ,ytJBd5u,tHXx9A,d1Y6_C,UkUAmWU,iUL05m,IIH2VLF,aWAR1Yl,WJRoMj5,PV_vILJ,ZrkjFaM,gy_RPet,MW5D42,xubiDt,n8Szit,waUxBs;function rM5sRnv(FqiKV5){return MlUmFJ[FqiKV5<0x80?FqiKV5<-0x45?FqiKV5-0x3c:FqiKV5+0x44:FqiKV5-0x41]}MlUmFJ=Yqtu0h();function Nk2ZSV(FqiKV5,fvJGfo){var tHXx9A=BuymgW(FqiKV5=>{return MlUmFJ[FqiKV5<0x7b?FqiKV5>0x7b?FqiKV5+0x4c:FqiKV5+0x49:FqiKV5+0x60]},0x1);return ytJBd5u.call(null,FqiKV5,tHXx9A(-0x40),{value:fvJGfo,configurable:!0x0})}FqiKV5(ytJBd5u=Object.defineProperty,tHXx9A=BuymgW((FqiKV5,fvJGfo)=>{return fvJGfo(FqiKV5())},0x2)(KyAVzo,SUQMCe));var CY7m7RX=[],L0ZO35j=[n0UFQa(0x0),n0UFQa(0x1),n0UFQa(0x2),n0UFQa(0x3),n0UFQa(0x4),n0UFQa(0x5),n0UFQa(0x6),n0UFQa(rM5sRnv(-0x2e)),n0UFQa(rM5sRnv(-0x29)),n0UFQa(0x9),n0UFQa(rM5sRnv(-0x2a)),n0UFQa(0xb),n0UFQa(0xc),'~|W2m',n0UFQa(0xd),n0UFQa(0xe),n0UFQa(0xf),'$}vOT|?a','XM|On',n0UFQa(rM5sRnv(-0x44)),n0UFQa(rM5sRnv(-0x11)),n0UFQa(0x12),n0UFQa(0x13),n0UFQa(rM5sRnv(-0x44)),n0UFQa(0x14),n0UFQa(0x15),n0UFQa(0x16),n0UFQa(rM5sRnv(-0xf)),n0UFQa(0x15),n0UFQa(0x18),n0UFQa(0x19),n0UFQa(rM5sRnv(-0x3e)),n0UFQa(0x1b),'n#_ep|nE',n0UFQa(0x19),n0UFQa(0x1c),n0UFQa(0x1d),n0UFQa(rM5sRnv(-0x43)),n0UFQa(0x1f),n0UFQa(0x20),n0UFQa(0x21),n0UFQa(0x22),n0UFQa(0x23),n0UFQa(0x24),n0UFQa(rM5sRnv(-0x22)),n0UFQa(0x26),n0UFQa(0x27),'GV|Gjq#St@)pa',n0UFQa(rM5sRnv(-0x4)),n0UFQa(0x29),n0UFQa(0x2a),n0UFQa(0x2b),n0UFQa(0x2c),n0UFQa(0x2d),n0UFQa(0x2e),n0UFQa(0x2f),n0UFQa(0x30),n0UFQa(rM5sRnv(0x64)),n0UFQa(rM5sRnv(-0x2)),n0UFQa(0x32),n0UFQa(rM5sRnv(0x17)),n0UFQa(0x34),n0UFQa(0x19),n0UFQa(0x35),n0UFQa(0x36),n0UFQa(0x37),n0UFQa(0x38),n0UFQa(0x39),n0UFQa(0x3a),n0UFQa(0x3b),n0UFQa(0x3c),n0UFQa(0x3d),'gAg*p|nE',n0UFQa(rM5sRnv(-0x43)),n0UFQa(0x3e),n0UFQa(0x3f),n0UFQa(rM5sRnv(-0x42)),n0UFQa(0x41),n0UFQa(0x42),n0UFQa(0x43),n0UFQa(0x44),n0UFQa(0x1e),n0UFQa(0x3f),n0UFQa(0x40),n0UFQa(0x2d),n0UFQa(rM5sRnv(-0x3f)),n0UFQa(0x46),n0UFQa(0x47),n0UFQa(0x24),n0UFQa(0x48),n0UFQa(0x2e),n0UFQa(0x49),n0UFQa(rM5sRnv(-0x41)),n0UFQa(0x4b),n0UFQa(0x4c),n0UFQa(0x4d),n0UFQa(rM5sRnv(-0x40)),n0UFQa(0x4f),n0UFQa(0x50),n0UFQa(0x51),n0UFQa(rM5sRnv(-0x1)),n0UFQa(0x52),n0UFQa(0x53),n0UFQa(0x54),n0UFQa(0x55),n0UFQa(rM5sRnv(0x6a)),n0UFQa(0x57),n0UFQa(0x58),n0UFQa(0x59),n0UFQa(0x5a),n0UFQa(0x5b),n0UFQa(0x5c),n0UFQa(0x5d),n0UFQa(rM5sRnv(0x19)),n0UFQa(0x3b),n0UFQa(0x3c),n0UFQa(0x3d),n0UFQa(rM5sRnv(0x18)),'gAg*p|nE',n0UFQa(0x60),n0UFQa(0x61),'uyH8YA|Y','&Rl~;d|<<@w3Z}T0Ia',n0UFQa(rM5sRnv(0x1a)),n0UFQa(0x63),n0UFQa(0x64),'}c,8g]|Y',n0UFQa(rM5sRnv(0x29)),'.%]{?C|Y',n0UFQa(0x66),n0UFQa(0x67),n0UFQa(0x68),'Rjui#?v!rANW_+yx9A|GLH_E',n0UFQa(0x36),n0UFQa(0x38),n0UFQa(rM5sRnv(0x1c)),n0UFQa(0x6a),'n#C??`7$g7M|a',n0UFQa(rM5sRnv(0x1e)),n0UFQa(0x6c),n0UFQa(0x6d),n0UFQa(0x6e),n0UFQa(rM5sRnv(0x20)),n0UFQa(0x70),n0UFQa(rM5sRnv(0xb)),n0UFQa(rM5sRnv(-0x34)),n0UFQa(0x73),n0UFQa(0x74),n0UFQa(0x75),n0UFQa(0x76),n0UFQa(0x77),n0UFQa(0x78),n0UFQa(rM5sRnv(0x27)),n0UFQa(0x7a),n0UFQa(0x19),n0UFQa(0x7b),n0UFQa(0x7c),n0UFQa(0x7d),'_A|~l?Huas#',n0UFQa(0x7e),n0UFQa(0x46),n0UFQa(0x7f),n0UFQa(rM5sRnv(-0x32)),n0UFQa(0x6f),n0UFQa(rM5sRnv(-0x2d)),n0UFQa(rM5sRnv(-0x42)),n0UFQa(0x81),'"A|G',n0UFQa(0x82),n0UFQa(0x83),n0UFQa(0x84),'gAg*p|nE',n0UFQa(0x85),n0UFQa(rM5sRnv(0x2c)),n0UFQa(0x87),n0UFQa(0x83),n0UFQa(0x46),n0UFQa(rM5sRnv(-0x41)),n0UFQa(0x88),n0UFQa(0x86),n0UFQa(0x89),n0UFQa(0x8a),'|}oe/*TE',n0UFQa(0x8b),n0UFQa(0x8c),'|}%?"XnE',n0UFQa(rM5sRnv(-0x2b)),n0UFQa(0x8e),n0UFQa(0x8f),n0UFQa(0x90),n0UFQa(0x91),n0UFQa(0x92),n0UFQa(0x93),'.|1qJ=gE',n0UFQa(0x94),n0UFQa(0x95),n0UFQa(0x96),n0UFQa(0x97),n0UFQa(0x98),n0UFQa(0x99),n0UFQa(0x9a),n0UFQa(rM5sRnv(-0x3d)),n0UFQa(0x9c),n0UFQa(0x9d),n0UFQa(rM5sRnv(0x36)),'/|_e',n0UFQa(0x9f),'%>|G)1r%F',n0UFQa(0xa0),n0UFQa(0xa1),n0UFQa(0xa2),n0UFQa(rM5sRnv(0x39)),n0UFQa(0x19),n0UFQa(0xa4),n0UFQa(0xa5),n0UFQa(0xa6),n0UFQa(rM5sRnv(0x3a)),n0UFQa(0xa8),n0UFQa(0xa9),n0UFQa(0x84),'Wkq=4N]nKDRK(`G:)V`<XTW{~e5`7_BOXML3Mv(O2R8ICl.8gjj3&0VA3}mh$VV:}eX)*rx,{l)@9>6nLl5<XTW{~e5`d]6oX}y_Rpu=^UehDo!%@Cg)X*q.tJ<=5o*oyJX)q*WnNUla3]s@tW[1)&q=U}3ajE8n7}+Y<T#=>AyY+}+>1}<Ohrk=&Alnwr0:~|W2,Q]n6{0FjpljnRb)qN]nXibqw5ljgV)F+N{.9e~F4&V:"Vv=,Nz@PAuf0}D@eV|=#iiF6e==6',n0UFQa(0xaa),n0UFQa(0xab),']ybpzkdV`R*1V%q@|NNa,QB.}L%8#SK7:P)d"V[Q(qZqw6',n0UFQa(0xac),n0UFQa(0x24),n0UFQa(0xad),n0UFQa(0x22),n0UFQa(0xae),n0UFQa(0xaf),n0UFQa(0xb0),n0UFQa(0xb1),n0UFQa(0xb2),n0UFQa(0xb3),n0UFQa(0xb4),n0UFQa(0xb5),n0UFQa(0xb6),']yca~Ja|/i)1p"IC"N6',n0UFQa(0xb7),n0UFQa(0xb8),n0UFQa(0xb9),n0UFQa(0xba),n0UFQa(rM5sRnv(-0x41)),n0UFQa(0xbb),'gAg*p|nE',n0UFQa(0xbc),'0WVf=gi,u7M|"YI',n0UFQa(0xbd),n0UFQa(0xbe),n0UFQa(0xbf),n0UFQa(0xc0),n0UFQa(0xc1),n0UFQa(0x11),n0UFQa(0xc2),n0UFQa(0xc3),'_A|~l?Huas#',n0UFQa(0xc4),n0UFQa(0xc5),'z|de0,y6',n0UFQa(rM5sRnv(-0x26)),n0UFQa(0xc7),n0UFQa(0xc8),n0UFQa(0xc9),n0UFQa(0xca),n0UFQa(rM5sRnv(0x43)),n0UFQa(0xcc),n0UFQa(0xcd),n0UFQa(rM5sRnv(-0x3c)),n0UFQa(0x5c),n0UFQa(0x5d),n0UFQa(0xcf),n0UFQa(0xd0),n0UFQa(0xd1),n0UFQa(rM5sRnv(0x4e)),n0UFQa(0xd3),'i9|lqj^:v8VRd@152>@P|Q8)M8BAn<>HT=ZZQYa',n0UFQa(0xd4),n0UFQLine truncated
var X88mW_l,ibOtxs,P1tzCx,DCY9ye,mqObo2m,a39kWRh,ZYjV29I,RnHmjk,ag1RsgH,YVW3dW,f5Ktcwm,aws77ON,TgYaCS;function YdxNEF(ibOtxs,P1tzCx,DCY9ye){for(DCY9ye=0x0;DCY9ye<P1tzCx;DCY9ye++)ibOtxs.push(ibOtxs.shift());return ibOtxs}const ktN8rV8=YdxNEF([0x20b,0x20c,0x236,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1ba,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1c0,0x12,0x1b6,0x1fff,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x1a2,0x1a3,0x5,0x9,0xa,0xb,0x73,0x74,0x75,0x76,0x77,0x1ac,0x1bd,0x1a0,0x78,0x1a8,0x79,0x1b2,0x1c5,0x1fd,0x7a,0x7b,0x1a4,0x7c,0x1c3,0x1b7,0x7d,0x7e,0x19c,0x81,0x82,0x1b5,0x83,0x84,0x85,0x205,0x86,0x1d2,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x19f,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x244,0x95,0x238,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x214,0x9e,0x9f,0xa0,0x1cd,0xa1,0x1a6,0x1ab,0xa2,0x234,0x1d5,0xa3,0x1d0,0x28,"UA",0xa4,0xa5,0x1f4,0xa6,0xa7,0xa8,0x1be," ",0xa9,0xaa,0x1e7,0x22e,0xab,0xac,0x23b,0x19e,0xad,0xae,0xaf,0x1ef,0xb0,0xb1,0xb2,0xb3,0x1a7,0x206,0xb4,0x1a5,0xb5,0x1cc,0x1b8,0x23d,0x1d1,0xb6,0xb7,0xb8,0xb9,0xba,0x21a,0x3e8,0x1af,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0x1d4,0x1d6,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,"\u3011",0xc9,0xca,0xcb,0xcc,"me",0x210,0x200,0x227,0xcd,0xce,0x7d0,0x20e,0x1b9,0x1ca,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0x228,0xd8,0x20d,0xd9,0xda,0xdb,0xdc,0xdd,0xde,"1","0",0x203,0xe0,0xe1,0xe2,0x1e3,0xe3,0xe4,0x1b0,0x1bb,0x22f,0xe5,0x1cf,0x23f,"e",0xe6,0xe7,"p",0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0x204,0xf0,0xf1,0xf2,0xf3,0xf4,0x219,0xf5,0xf6,0xf7,0xf8,0xf9,0x1ad,0xfa,0xfb,0xfc,0x19a,0xfd,0xfe,0x1a1,0x101,0x102,0x22c,"nb",0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,"ty",0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19b,0x19d,0x1a9,0x1aa,0x1ae,0x1b1,0x1b3,0x1b4,0x1bc,0x1bf,0x1c1,0x1c2,0x1c4,0x1c6,0x1c9,0x21f,0x1f0,0x18,0x242,0x1ce,0x211,0x213,0x1dd,"n",0x1d3,0x22a," \u274C",0x232,0x1d9,"\u706B\u7206",0x1dc,0x229,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e4,0x1e5,0x1e6,0x1e8,0x1e9,0x1d8,0x1eb,0x1db,0x1ec,0x1ed,0x1ee,"s",0x1f3,0x1f5,0x1f6,0x208,0x1d7,0x1f7,0x1f8,0x1f9,0x20f,0x1fa,0x1fb,0x1fc,0x1f1,0x1fe,0x1ff,0x201,0x1c8,0x1ea,0x1da,0x1c7,0x202,0x1cb,0x13,0x245,"g",0x207,0x209,0x20a,0x1f2],0x3);ShOAtS7(X88mW_l=function(){var ibOtxs=String.fromCharCode,P1tzCx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",DCY9ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",mqObo2m={},a39kWRh;function ZYjV29I(a39kWRh,ZYjV29I){if(!mqObo2m[a39kWRh]){var RnHmjk;mqObo2m[a39kWRh]={};for(RnHmjk=ktN8rV8[0x0];RnHmjk<a39kWRh.length;RnHmjk++)mqObo2m[a39kWRh][a39kWRh.charAt(RnHmjk)]=RnHmjk}return mqObo2m[a39kWRh][ZYjV29I]}a39kWRh={compressToBase64:function(mqObo2m){var ZYjV29I;if(ktN8rV8[0x1]==mqObo2m)return"";ZYjV29I=a39kWRh._compress(mqObo2m,ktN8rV8[0x6],function(ZYjV29I){return P1tzCx.charAt(ZYjV29I)});switch(ZYjV29I.length%ktN8rV8[0xa]){default:case ktN8rV8[0x0]:return ZYjV29I;case ktN8rV8[0x4]:return ZYjV29I+"===";case ktN8rV8[0x3]:return ZYjV29I+"==";case ktN8rV8[0x7]:return ZYjV29I+"="}},decompressFromBase64:function(mqObo2m){return ktN8rV8[0x1]==mqObo2m?"":""==mqObo2m?ktN8rV8[0x1]:a39kWRh._decompress(mqObo2m.length,ktN8rV8[0x2],function(a39kWRh){return ZYjV29I(P1tzCx,mqObo2m.charAt(a39kWRh))})},compressToUTF16:function(DCY9ye){return ktN8rV8[0x1]==DCY9ye?"":a39kWRh._compress(DCY9ye,ktN8rV8[0x11],function(mqObo2m){return ibOtxs(mqObo2m+ktN8rV8[0x2])})+ktN8rV8[0x85]},decompressFromUTF16:function(DCY9ye){return ktN8rV8[0x1]==DCY9ye?"":""==DCY9ye?ktN8rV8[0x1]:a39kWRh._decompress(DCY9ye.length,0x4000,function(mqObo2m){return DCY9ye.charCodeAt(mqObo2m)-ktN8rV8[0x2]})},compressToUint8Array:function(RnHmjk){for(var ag1RsgH=a39kWRh.compress(RnHmjk),YVW3dW=new Uint8Array(ktN8rV8[0x3]*ag1RsgH.length),f5Ktcwm=ktN8rV8[0x0],aws77ON=ag1RsgH.length;f5Ktcwm<aws77ON;f5Ktcwm++){var TgYaCS=ag1RsgH.charCodeAt(f5Ktcwm);ShOAtS7(YVW3dW[ktN8rV8[0x3]*f5Ktcwm]=TgYaCS>>>ktN8rV8[0x8],YVW3dW[ktN8rV8[0x3]*f5Ktcwm+ktN8rV8[0x4]]=TgYaCS%ktN8rV8[0x5])}return YVW3dW},decompressFromUint8Array:function(RnHmjk){var ag1RsgH;if(ktN8rV8[0x1]==RnHmjk)return a39kWRh.decompress(RnHmjk);for(var YVW3dW=new Array(RnHmjk.length/ktNLine truncated
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(tLine truncated
+1 -1
View File
@@ -4,5 +4,5 @@
7 7 7 7 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_wwmanor_merge.js
*/
const $ = new Env('汪汪庄园合成');
function Zw2bpFr(){}var ItPGzz=Object['defineProperty'],m8XnJfM,IAgpml,CFDpLzE,BABFJxC,W5SssZ,Anoogk,UgpP6kU,dVCWYM,ofBh_n,qzQrQN,gef70uq,kOYUCX2,Dnyafk,VQzJAt,gfJF6f,Rrq81bj;function AZEmqL(Zw2bpFr){return m8XnJfM[Zw2bpFr<-0x51?Zw2bpFr+0x39:Zw2bpFr<0x85?Zw2bpFr<-0x51?Zw2bpFr+0x5c:Zw2bpFr<0x85?Zw2bpFr+0x50:Zw2bpFr-0x14:Zw2bpFr-0x5e]}m8XnJfM=uODbxSe();function sl4zeW(Zw2bpFr,ItPGzz){IAgpml(Zw2bpFr,AZEmqL(-0x50),{value:ItPGzz,configurable:!0x0});return Zw2bpFr}Zw2bpFr(IAgpml=Object.defineProperty,CFDpLzE=sl4zeW(hdRMuI((...ItPGzz)=>{Zw2bpFr(ItPGzz[AZEmqL(-0x50)]=0x2,ItPGzz[0x5d]=-0x80);return ItPGzz[0x5d]>ItPGzz[0x5d]+0x45?ItPGzz[-0x3]:ItPGzz[0x1](ItPGzz[ItPGzz[0x5d]+0x80]())}),0x2)(m8zCzbQ,B4rtV4_));var rmlDEX=[],d1tHKUc=[i9lLN1(0x0),i9lLN1(AZEmqL(-0x3c)),i9lLN1(0x2),i9lLN1(AZEmqL(-0x46)),i9lLN1(0x4),i9lLN1(0x3),i9lLN1(0x4),i9lLN1(0x5),i9lLN1(0x6),i9lLN1(0x7),i9lLN1(0x8),i9lLN1(0x9),i9lLN1(0xa),i9lLN1(0xb),i9lLN1(0xc),i9lLN1(0xd),i9lLN1(0x8),i9lLN1(0x9),i9lLN1(0xe),i9lLN1(0xd),i9lLN1(0xe),i9lLN1(AZEmqL(-0x43)),i9lLN1(0xf),'V"/|b;wb','f;:|q5/b',i9lLN1(AZEmqL(-0x1f)),i9lLN1(0x11),i9lLN1(0x12),i9lLN1(0x13),i9lLN1(0x14),i9lLN1(AZEmqL(0x3d)),i9lLN1(AZEmqL(-0x3d)),i9lLN1(0x17),'d+P753)=Tu5QmfNL!:z4CjWM,2`z|6quYV0_?gtI)~JLJ_IUCuf=r=t$=YfL=D1UBuon8RfB?|(6g??m][',i9lLN1(AZEmqL(0x46)),i9lLN1(AZEmqL(-0x30)),i9lLN1(0x1a),i9lLN1(AZEmqL(-0x21)),i9lLN1(AZEmqL(0x82)),i9lLN1(0x1d),'0IL`co{5$RA|}/A`;;lf{[[',i9lLN1(AZEmqL(-0xc)),i9lLN1(0x1f),i9lLN1(0x20),i9lLN1(0x21),i9lLN1(0x22),i9lLN1(0x23),i9lLN1(0x24),i9lLN1(0x25),i9lLN1(0x26),i9lLN1(0xa),i9lLN1(0x27),i9lLN1(AZEmqL(-0x22)),i9lLN1(0x29),i9lLN1(0x2a),i9lLN1(0x2b),i9lLN1(0x2c),'V"/|b;wb',i9lLN1(0x2d),i9lLN1(0x2e),i9lLN1(0x2f),i9lLN1(0x30),i9lLN1(AZEmqL(0x15)),i9lLN1(0x30),i9lLN1(0x32),i9lLN1(0xa),i9lLN1(0x33),i9lLN1(0x11),i9lLN1(0x34),i9lLN1(0x35),i9lLN1(0x1f),i9lLN1(0x20),i9lLN1(0x21),i9lLN1(0x19),i9lLN1(0x36),i9lLN1(0x37),i9lLN1(0x38),i9lLN1(AZEmqL(-0x4f)),i9lLN1(0x39),i9lLN1(0x3a),i9lLN1(AZEmqL(-0x49)),i9lLN1(0x34),i9lLN1(0x3c),i9lLN1(0x3d),i9lLN1(0x3e),i9lLN1(0x3f),i9lLN1(0x40),i9lLN1(0x3a),i9lLN1(0xe),i9lLN1(AZEmqL(-0x17)),i9lLN1(0x42),i9lLN1(0x33),i9lLN1(AZEmqL(0xd)),i9lLN1(0x44),i9lLN1(AZEmqL(0xe)),i9lLN1(0x46),i9lLN1(AZEmqL(-0x1b)),i9lLN1(AZEmqL(0x26)),i9lLN1(0x49),i9lLN1(0x1f),i9lLN1(0x20),i9lLN1(AZEmqL(-0x4e)),i9lLN1(AZEmqL(-0x4f)),'Cgw`uOb6^gtV4iLK1?Eo&!|_kayua.mS3WE?Da/rSun{,f4Y.qT$[ui5|,eV9iQKsClf{[[',i9lLN1(0x4a),'^V:|(|PD=~V','V"/|b;wb',i9lLN1(0x11),i9lLN1(0x4b),i9lLN1(0x4c),i9lLN1(AZEmqL(0x4)),i9lLN1(0x3b),i9lLN1(0x1e),i9lLN1(AZEmqL(-0x4c)),i9lLN1(0x4f),i9lLN1(0x21),i9lLN1(0x38),i9lLN1(0x46),i9lLN1(0xa),i9lLN1(0x4e),i9lLN1(0x4f),i9lLN1(AZEmqL(-0x4e)),i9lLN1(AZEmqL(0x11)),'>D%|Ma*b',i9lLN1(0x11),i9lLN1(0x1f),i9lLN1(AZEmqL(-0x4d)),i9lLN1(0x21),i9lLN1(0x38),i9lLN1(0x51),'/(E;|=CF',i9lLN1(AZEmqL(-0x4d)),i9lLN1(0x52),i9lLN1(0x40),i9lLN1(AZEmqL(-0x4c)),i9lLN1(0x53),'W|{0h{z5JRp|gAA`;;gLfO[',i9lLN1(0x54),i9lLN1(0x55),i9lLN1(0x1e),i9lLN1(0x56),i9lLN1(0x40),i9lLN1(AZEmqL(0x4e)),i9lLN1(AZEmqL(-0x4f)),i9lLN1(0x58),i9lLN1(0x59),i9lLN1(AZEmqL(-0x4b)),i9lLN1(0x33),i9lLN1(0x5b),i9lLN1(0x3a),i9lLN1(0xe),i9lLN1(0xa),i9lLN1(0x5b),i9lLN1(0x5c),i9lLN1(0x22),i9lLN1(0x5d),i9lLN1(0xa),i9lLN1(0x5e),i9lLN1(0x5f),i9lLN1(0x60),i9lLN1(0xe),i9lLN1(0x61),i9lLN1(AZEmqL(-0x7)),i9lLN1(0x63),i9lLN1(AZEmqL(-0x4f)),i9lLN1(0x64),i9lLN1(0x65),i9lLN1(0x5a),i9lLN1(0x22),i9lLN1(0x66),i9lLN1(0x61),i9lLN1(0x67),i9lLN1(0x68),i9lLN1(AZEmqL(-0x4b)),i9lLN1(0x69),i9lLN1(0x6a),i9lLN1(0x6b),i9lLN1(0x6c),i9lLN1(0x6d),i9lLN1(0x6e),i9lLN1(0x6f),i9lLN1(0x70),i9lLN1(0x71),'9c.[bwz{lSS7$Omhe+qX|ZaG',i9lLN1(0x72),i9lLN1(0x73),i9lLN1(0xa),i9lLN1(0x33),i9lLN1(0x74),i9lLN1(0x75),i9lLN1(AZEmqL(-0x8)),i9lLN1(AZEmqL(-0x4a)),i9lLN1(0x78),i9lLN1(0x1f),i9lLN1(AZEmqL(-0x48)),i9lLN1(0x7a),i9lLN1(0x7b),i9lLN1(AZEmqL(0x24)),'^V:|J',i9lLN1(0x5b),i9lLN1(0x7d),i9lLN1(0x7e),i9lLN1(AZEmqL(-0x4a)),i9lLN1(AZEmqL(-0x40)),'DV:|r53uF~Qx[',i9lLN1(AZEmqL(0x45)),i9lLN1(AZEmqL(-0x45)),i9lLN1(0x82),'/0ljIa,]|]V/UH',i9lLN1(0x83),i9lLN1(0x84),i9lLN1(0x85),i9lLN1(0x86),i9lLN1(AZEmqL(-0xe)),'^!c|B#,z]',i9lLN1(0x88),i9lLN1(0x74),i9lLN1(0x89),i9lLN1(0x77),i9lLN1(0x78),i9lLN1(AZEmqL(0x2a)),i9lLN1(0x7b),'^V:|J',i9lLN1(0x5b),i9lLN1(0x8b),i9lLN1(0x7e),'U8fj~`9.,|HQ4_DeyJ=|Q(|F5|mY`&3e&ul=c`GqeG_|9_r*VtxVyn5FO',i9lLN1(0x7f),'DV:|r53uF~Qx[',i9lLN1(0x8c),i9lLN1(0x8d),i9lLN1(0x83),i9lLN1(AZEmqL(-0x47)),i9lLN1(0x84),i9lLN1(AZEmqL(-0x10)),i9lLN1(AZEmqL(-0x44)),i9lLN1(0x7e),i9lLN1(0x8f),i9lLN1(0x90),'yJ=|Q(|FI>',i9lLN1(0x91),i9lLN1(0x92),i9lLN1(0x7f),i9lLN1(0x86),i9lLN1(0x93),'DV:|r5m[',i9lLN1(0x94),i9lLN1(0x95),i9lLN1(0x5a),i9lLN1(0x96),i9lLN1(0x97),i9lLN1(0x98),i9lLN1(0x99),i9lLN1(0x11),'V"/|b;wb',i9lLN1(0x46),i9lLN1(0x9a),i9lLN1(0x8f),i9lLN1(0x9b),i9lLN1(0x9c),i9lLN1(0x9d),i9lLN1(0x9e),i9lLN1(0x9f),i9lLN1(0xa0),'[H|j',i9lLN1(0xa1),i9lLN1(AZEmqL(-0x49)),i9lLN1(AZEmqL(-0x5)),i9lLN1(0xa3),'j}:|U.p',i9lLN1(0xa4),i9lLN1(0x34),i9lLN1(0xa5),i9lLN1(0xa6),i9lLN1(0xa7),'Mw<gq2%T3=[^J|R`8S_ro<',i9lLN1(0xa8),i9lLN1(0xa9),i9lLN1(0xaa),i9lLN1(0xab),i9lLN1(AZEmqL(0x3e)),iLine truncated
var deKKM1x,vvmazn,IRATjTe,oePJGgP,QPOcVgK,mpxbWlc,CWEOku,JKT5Kg,YhEcJ5,yNC58z9,mYis0dA,tnkPbI,K9GD5w;const ysrNpdZ=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x226,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x22c,0x12,0x222,0x1fff,0x72,0x73,0x74,0x75,!0x1,0x76,0x77,0x78,0x79,0x7a,0x10b,0x149,0x7b,0xda,0x143,0x105,0xbb,0xe6,0x113,0x7c,0xf0,0x7d,0x144,0xe8,0x7e,0x81,0x82,0x83,0x84,0x85,0x13b,0xe5,0xf8,0xa6,0x118,0x5,0x10a,0xe1,0x107,0x8d,0x9,0x110,0xa,0x86,0x87,0x88,0x89,0x145,0x114,0x129,0x9d,0x14d,0x12f,0xa2,0xf4,0x8a,0x8b,0x8c,0x139,0x9f,0x127,0x132,0xaf,0x8e,0x151,0x8f,0x90,0xec,0xc2,0x9a,0x10c,0xfb,0xa9,0x92,0x91,0x93,0x102,0xc1,0xe2,0x103,0x94,0x95,0x96,0x97,0x98,0x99,0xaa,0x9b,0xca,0x137,0x9c,0x9e,0x125,0xa0,0xa1,0x13d,0xdc,0xa3,0xa4,0x123,0x11f,0xa5,"n",0x12e,0xb3,0xcc,0x121,0x122,0xa7," ",0xa8,0xf7,0xc0,0x14c,0xb6,0xdb,"UA",0x108,0x138,0x1f4,0xab,0x10e,0xce,0x104,0xac,0xc8,0xc3,0xea,0xad,"id",0x128,0xae,0xe7,0xb0,0xb1,0xb2,0x11b,0xf9,0x116,0xc5,0x120,0x136,0xd2,0x130,0xb4,0xb5,0xb7,0xcd,0x1e,0xb8,0x12a,0xb9,0xba,0x109,0xd9,0xbc,!0x0,void 0x0,0xbd,0xe4,0xbe,0xc6,0xbf,0x140,0x11d,"\u3011",0xc4,0x117,0xf2,0xd0,0x150,0xc7,0x13c,0xd5,0xc9,0xcb,0x10d,0xcf,0xd1,0x3ff,0x10000,0xd800,0xdc00,0xd3,0xe0,0xd4,0xd6,0xd7,0xd8,0xdd,0xde,0xe3,0xe9,0xeb,0x126,0xed,0xee,0x111,0xf1,0xf3,0xf5,0xf6,0x13a,0xfa,0xfc,0xfd,0xfe,0x101,0x131,0x19,0x7d0,0x106,0x200,0x10f,0xdbff,0xdfff,0xffff,0x18,0x16,0xb,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x40,0x13e,0x112,0x3e8,0x115,0x124,0x14b,0x148,0x119,0x11a,0x13f,0x14a,0x11c,0x11e,0x207,0x206,0x12b,0x135,0x12c,0x12d,0x133,0x134,0x141,0x142,0x146,0x147,0x14e,0x14f,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,"me",0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,"y",0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x201,0x202,0x203,0x204,0x205,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,0x220,0x221,0x223,0x224,0x225,0x227,0x228,0x229,0x22a,0x22b,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x64,"s",0x248,0x249,0xfc00,0xffffff80,0xfffff800,0xffff0000,0xffe00000,"e",0x251,0x800,0x256,0x10ffff,0x25e,";",0x25a,0x25b,0x25c,0x25d,0x25f,"ua",0x26a,"&","\u4E07",0x2710,"\u4EBF","\u5343\u4EBF","\u5146","\u5343\u5146"];DKibSG(deKKM1x=function(){var vvmazn=String.fromCharCode,IRATjTe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",oePJGgP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",QPOcVgK={},mpxbWlc;function CWEOku(mpxbWlc,CWEOku){if(!QPOcVgK[mpxbWlc]){var JKT5Kg;QPOcVgK[mpxbWlc]={};for(JKT5Kg=ysrNpdZ[0x0];JKT5Kg<mpxbWlc.length;JKT5Kg++)QPOcVgK[mpxbWlc][mpxbWlc.charAt(JKT5Kg)]=JKT5Kg}return QPOcVgK[mpxbWlc][CWEOku]}mpxbWlc={compressToBase64:function(QPOcVgK){var CWEOku;if(ysrNpdZ[0x1]==QPOcVgK)return"";CWEOku=mpxbWlc._compress(QPOcVgK,ysrNpdZ[0x6],function(CWEOku){return IRATjTe.charAt(CWEOku)});switch(CWEOku.length%ysrNpdZ[0xa]){default:case ysrNpdZ[0x0]:return CWEOku;case ysrNpdZ[0x4]:return CWEOku+"===";case ysrNpdZ[0x3]:return CWEOku+"==";case ysrNpdZ[0x7]:return CWEOku+"="}},decompressFromBase64:function(QPOcVgK){return ysrNpdZ[0x1]==QPOcVgK?"":""==QPOcVgK?ysrNpdZ[0x1]:mpxbWlc._decompress(QPOcVgK.length,ysrNpdZ[0x2],function(mpxbWlc){return CWEOku(IRATjTe,QPOcVgK.charAt(mpxbWlc))})},compressToUTF16:function(oePJGgP){return ysrNpdZ[0x1]==oePJGgP?"":mpxbWlc._compress(oePJGgP,ysrNpdZ[0x11],function(QPOcVgK){return vvmazn(QPOcVgK+ysrNpdZ[0x2])})+ysrNpdZ[0x8d]},decompressFromUTF16:function(oePJGgP){return ysrNpdZ[0x1]==oePJGgP?"":""==oePJGgP?ysrNpdZ[0x1]:mpxbWlc._decompress(oePJGgP.length,0x4000,function(QPOcVgK){return oePJGgP.charCodeAt(QPOcVgK)-ysrNpdZ[0x2]})},compressToUint8Array:function(JKT5Kg){for(var YhEcJ5=mpxbWlc.compress(JKT5Kg),yNC58z9=new Uint8Array(ysrNpdZ[0x3]*YhEcJ5.length),mYis0dA=ysrNpdZ[0x0],tnkPbI=YhEcJ5.length;mYis0dA<tnkPbI;mYis0dA++){var K9GD5w=YhEcJ5.charCodeAt(mYis0dA);DKibSG(yNC58z9[ysrNpdZ[0x3]*mYis0dA]=K9GD5w>>>ysrNpdZ[0x8],yNC58z9[ysrNpdZ[0x3]*mYis0dA+ysrNpdZ[0x4]]=K9GD5w%ysrNpdZ[0x5])}return yNC58z9},decompreLine truncated
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("", `🔔${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() ? (thLine truncated
+1 -1
View File
@@ -3,5 +3,5 @@
*/
const $ = new Env('做任务赚汪贝');
function tmfFM7(){}var bvoFY6=Object['defineProperty'],z_0a_D,thUxs4y,t1uorT,xDd4mk6,Ch86EL,fbz5Kz,BRUuVaI,JgryxAB,YSqIl2,ufilCt,LshWENQ,w9159x,Jotj0LV,c4zeUw;function P2uHbw(tmfFM7){return z_0a_D[tmfFM7>0x21?tmfFM7<0x21?tmfFM7+0x16:tmfFM7>0x21?tmfFM7-0x22:tmfFM7-0x29:tmfFM7+0x55]}z_0a_D=mVrBl2Q();function VeRYxjg(tmfFM7,bvoFY6){thUxs4y(tmfFM7,'length',{value:bvoFY6,configurable:!0x0});return tmfFM7}tmfFM7(thUxs4y=Object.defineProperty,t1uorT=VeRYxjg(a9XSSZU((...bvoFY6)=>{var thUxs4y=a9XSSZU(bvoFY6=>{return z_0a_D[bvoFY6>-0x36?bvoFY6>-0x36?bvoFY6<0x84?bvoFY6+0x35:bvoFY6+0x4e:bvoFY6-0x49:bvoFY6-0x37]},0x1);tmfFM7(bvoFY6.length=thUxs4y(-0x35),bvoFY6.egxQPth=bvoFY6[0x1]);return bvoFY6.egxQPth(bvoFY6[P2uHbw(0x26)]())}),P2uHbw(0x22))(TrlDip0,W86ADz));var n4aCZWs=[],eShuix=[m9SYVc5(0x0),m9SYVc5(0x1),m9SYVc5(0x2),m9SYVc5(P2uHbw(0x3c)),m9SYVc5(0x4),m9SYVc5(0x5),m9SYVc5(0x6),m9SYVc5(0x5),m9SYVc5(P2uHbw(0x29)),m9SYVc5(0x7),m9SYVc5(0x8),m9SYVc5(0x9),'M}X729BWt=jWL*&AGzQ|i*cVml4d,bV6N31H#}Wn:e3":5YAt=l]HgI(MDS6s[=U=jlGXV"=,a_Gt9]R?T@Sv41_Uifux',m9SYVc5(0xa),m9SYVc5(0xb),m9SYVc5(0xc),m9SYVc5(P2uHbw(0x45)),m9SYVc5(0xe),m9SYVc5(P2uHbw(0x28)),m9SYVc5(0x10),m9SYVc5(0x11),m9SYVc5(P2uHbw(0x2d)),m9SYVc5(0x13),m9SYVc5(0x14),m9SYVc5(0x15),m9SYVc5(0x16),m9SYVc5(0x17),m9SYVc5(0x18),m9SYVc5(0x19),m9SYVc5(0x1a),m9SYVc5(0x1b),m9SYVc5(0x1c),m9SYVc5(0x1d),m9SYVc5(0x1e),'WE|W7{7;',m9SYVc5(0x1f),m9SYVc5(0x20),m9SYVc5(0x21),m9SYVc5(0x22),m9SYVc5(0x23),m9SYVc5(0x24),m9SYVc5(P2uHbw(0x38)),m9SYVc5(0x26),m9SYVc5(0x27),m9SYVc5(0x28),m9SYVc5(P2uHbw(0x58)),m9SYVc5(0x2a),'hvMBn|w',m9SYVc5(0x2b),m9SYVc5(0x2c),m9SYVc5(0x2d),m9SYVc5(0x2e),m9SYVc5(0x2f),m9SYVc5(0x30),m9SYVc5(0x31),m9SYVc5(0x32),m9SYVc5(0x33),'OW*")N{Ca:M|x',m9SYVc5(0x34),m9SYVc5(0x35),m9SYVc5(0x36),'|&Z2i6)]?',m9SYVc5(0x37),m9SYVc5(0x38),m9SYVc5(0x39),m9SYVc5(0x3a),m9SYVc5(0x3b),m9SYVc5(0x3c),'s@3I|tm:&R!H*]hto~k9UUFx?:rMxT)QDSe1@BdSd&[&_x1lSMMBUKw9oV!5k]"T9>DF$R)H(<d6=sa7@+w',m9SYVc5(0x3d),m9SYVc5(0x3e),m9SYVc5(P2uHbw(0x27)),m9SYVc5(0x40),m9SYVc5(0x41),m9SYVc5(0x42),m9SYVc5(0x43),m9SYVc5(0x44),m9SYVc5(0x45),m9SYVc5(0x46),m9SYVc5(0x47),m9SYVc5(0x48),m9SYVc5(0x49),m9SYVc5(0x4a),m9SYVc5(0x4b),m9SYVc5(0x4c),m9SYVc5(0x4d),m9SYVc5(0x4e),m9SYVc5(0x4f),m9SYVc5(0x50),m9SYVc5(P2uHbw(0x35)),m9SYVc5(0x52),m9SYVc5(0x53),m9SYVc5(0x54),m9SYVc5(0x55),'DS=~HO:{H:[&g(R2"E~WIO|?>Y]&@sGl',m9SYVc5(0x56),m9SYVc5(0x57),m9SYVc5(P2uHbw(0x44)),m9SYVc5(0x59),m9SYVc5(0x5a),m9SYVc5(P2uHbw(0x8a)),m9SYVc5(0x5c),m9SYVc5(0x5d),m9SYVc5(0x5e),m9SYVc5(0x5f),m9SYVc5(0x60),m9SYVc5(0x61),m9SYVc5(0x62),m9SYVc5(P2uHbw(0xcf)),m9SYVc5(0x64),m9SYVc5(0x65),m9SYVc5(0x66),m9SYVc5(0x67),m9SYVc5(0x68),m9SYVc5(0x69),m9SYVc5(0x6a),m9SYVc5(0x6b),'!;&STH.g+[]RkTeUSbig+3AkFB,tS.&&qq]Tu|bn%#qK;',m9SYVc5(P2uHbw(0x71)),m9SYVc5(0x6d),m9SYVc5(0x6e),m9SYVc5(0x6f),m9SYVc5(0x70),m9SYVc5(P2uHbw(0x2e)),m9SYVc5(0x72),m9SYVc5(0x73),m9SYVc5(0x74),'j:6mW|>e:#x*W,|fEU+2xl30',m9SYVc5(0x75),m9SYVc5(P2uHbw(0x5a)),m9SYVc5(0x77),m9SYVc5(0x78),m9SYVc5(0x79),m9SYVc5(0x7a),'XaTsxlCo|N)u9#t',m9SYVc5(0x7b),m9SYVc5(P2uHbw(0x5c)),m9SYVc5(0x7d),m9SYVc5(0x7e),'=n8E{MU$N"$(2T6C[Pc(l|w',m9SYVc5(0x7f),m9SYVc5(0x80),m9SYVc5(0x81),m9SYVc5(0x82),m9SYVc5(P2uHbw(0x5d)),m9SYVc5(0x84),m9SYVc5(0x85),m9SYVc5(0x86),m9SYVc5(0x87),m9SYVc5(P2uHbw(0x5e)),'+TX@L|IBV#V/4,JL/UWq',m9SYVc5(0x89),m9SYVc5(0x8a),m9SYVc5(0x8b),m9SYVc5(P2uHbw(0x5f)),m9SYVc5(P2uHbw(0x60)),m9SYVc5(0x8e),m9SYVc5(0x8f),m9SYVc5(P2uHbw(0xc6)),m9SYVc5(0x91),m9SYVc5(0x92),m9SYVc5(0x93),m9SYVc5(0x94),m9SYVc5(0x95),m9SYVc5(P2uHbw(0x8c)),m9SYVc5(P2uHbw(0x76)),m9SYVc5(0x98),m9SYVc5(0x99),m9SYVc5(0x9a),m9SYVc5(0x9b),m9SYVc5(0x9c),m9SYVc5(0x9d),m9SYVc5(P2uHbw(0x74)),m9SYVc5(P2uHbw(0x50)),m9SYVc5(P2uHbw(0x62)),m9SYVc5(0xa1),m9SYVc5(0xa2),m9SYVc5(0xa3),'5Q1^`!/V48W4jU9F[nUaKR5r,~AUYoEpKvL|vOjp(W2IGXc27]]|{JnS|Zqd_nnFZ~K[N%C#rX[:TswVLXAaKR5r,~AU=/wzKZ+oW6u^gf~d8z$<:G7[KN1cPHa^AzNz+HK[1N5V!fXx|/i:P5}e[{1^fZ|x];2VYZk3aR@^sS+3kZkseZapd%Q^{SXVM%JF,.5(#l/VwrJ?]6X]VWt[1!/VK"t1MAX]7n[?k!rcT~,?`{nFDnW|woC?`ufHS/nF,.OE%f]$Y@w=Q6gGV~w>botr@XXi_;)tt]MRU2+w_q"%*%_T"w',m9SYVc5(0xa4),m9SYVc5(0xa5),m9SYVc5(0xa6),'Pl/"NeT9oVV}5(uldc*"`1%qhii|x',m9SYVc5(0xa7),m9SYVc5(P2uHbw(0x6f)),m9SYVc5(0xa9),m9SYVc5(P2uHbw(0x48)),'x0MBn|w',m9SYVc5(0xab),m9SYVc5(P2uHbw(0x63)),m9SYVc5(0xad),m9SYVc5(0xae),m9SYVc5(0xaf),m9SYVc5(0xb0),m9SYVc5(0xb1),m9SYVc5(0xb2),'Y~|WNeBpt<',m9SYVc5(0xb3),m9SYVc5(0xb4),m9SYVc5(0xb5),m9SYVc5(0xb6),m9SYVc5(0xb7),m9SYVc5(0xb8),m9SYVc5(P2uHbw(0x64)),m9SYVc5(0xba),',Rws<ngvr|7M;',m9SYVc5(P2uHbw(0x51)),m9SYVc5(0xbc),m9SYVc5(0xbd),m9SYVc5(0xbe),m9SYVc5(0xbf),m9SYVc5(P2uHbw(0x65)),m9SYVc5(0xc1),m9SYVc5(0xc2),m9SYVc5(0xc3),m9SYVc5(0xc4),m9SYVc5(0xc5),m9SYVc5(0xc6),'WE|W,2g;',m9SYVc5(P2uHbw(0xba)),m9SYVc5(0xc8),m9SYVc5(P2uHbw(0x66)),m9SYVc5(0xca),m9SYVc5(0xcb),m9SYVc5(P2uHbw(0x4e)),m9SYVc5(0xcd),m9SYVc5(P2uHbw(0x68)),m9SYVc5(0xcf),m9SYVc5(P2uHbw(0x3b)),m9SYVc5(0xd1),'?cA~q^|?P&5bfk]gV&xK`N6_H&UiXdr7!l]1S4bz>',m9SYVc5(0xd2),m9SYVc5(0xd3),m9SYVc5(0xd4),m9SYVc5(0xd5),m9SYVc5(0xd6),m9SYVc5(0xd7),m9SYVc5(0xd8),m9SYVc5(0xd9),m9SYVc5(0xda),mLine truncated
var uV4GyV,EM9GTwk,zZmS4u,wSy2tGD,wGJkRo,T5l9RKx,lnyVTHY,rHxbFeg,yiaKC5,RgX5PS,U_zF_M_;function qzTvtF2(EM9GTwk,zZmS4u,wSy2tGD){for(wSy2tGD=0x0;wSy2tGD<zZmS4u;wSy2tGD++)EM9GTwk.push(EM9GTwk.shift());return EM9GTwk}const mz0ngTn=qzTvtF2([0x207,0x209,0x13,"g","t",0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d0,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1d6,0x12,0x1cc,0x1fff,0x7b,0x7c,0x7d,0x7e,0x81,0xa,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,"d",0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x188,0x17d,0x16d,0x5,0x177,0x182,0x181,0x9,0x19a,0xb,0x15a,0x15b,0x15c,0x15d,0x164,0x18b,0x15e,0x199,0x15f,0x17b,0x173,0x172,0x160,0x161,0x170,0x162,0x163,0x16a,0x165,0x168,0x189,0x166,0x167,0x169,0x16b,0x187,0x16c,0x16e,0x16f,0x171,0x197,0x19f,0x174,0x175,0x176,0x178,0x179,0x192,0x17c,0x17a,0x18f,0x17e,0x28,0x17f,"UA",0x180,0x185," ",0x183,0x184,"rl",0x18e,0x186,0x195,0x18a,0x18c,0x18d,0x190,"me",0x191,0x193,0x194,0x196,0x198,0x3e8,0x19b,0x19c,0x19d,"\u3011",0x19e,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x7d0,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,"1","0",0x1b6,"e",0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,"io",0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cd,0x1ce,0x1cf,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d7,0x1d8,"nb",0x1d9,0x1da,"k",0x1db,0x1dc,"s",!0x1," \u274C","\u706B\u7206",0x1ed],0x5);wiG7ka(uV4GyV=function(){var EM9GTwk=String.fromCharCode,zZmS4u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",wSy2tGD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",wGJkRo={},T5l9RKx;function lnyVTHY(T5l9RKx,lnyVTHY){if(!wGJkRo[T5l9RKx]){var rHxbFeg;wGJkRo[T5l9RKx]={};for(rHxbFeg=mz0ngTn[0x0];rHxbFeg<T5l9RKx.length;rHxbFeg++)wGJkRo[T5l9RKx][T5l9RKx.charAt(rHxbFeg)]=rHxbFeg}return wGJkRo[T5l9RKx][lnyVTHY]}T5l9RKx={compressToBase64:function(wSy2tGD){var wGJkRo,lnyVTHY;function*rHxbFeg(lnyVTHY,rHxbFeg,yiaKC5,RgX5PS={qLLQySJ:{}}){while(lnyVTHY+rHxbFeg+yiaKC5!==-0x16)with(RgX5PS.FUZrL5S||RgX5PS)switch(lnyVTHY+rHxbFeg+yiaKC5){case 0x73:case-0xee:case yiaKC5- -0x2a:[RgX5PS.qLLQySJ.DRjSfT,RgX5PS.qLLQySJ.OUhwi_,RgX5PS.qLLQySJ.oyEUWr]=[0x16,-0x4c,0x9c];if(!(yiaKC5!=lnyVTHY+0x4e)){wiG7ka(RgX5PS.FUZrL5S=RgX5PS.EGpnjuy,lnyVTHY+=-0xe4,rHxbFeg+=-0x16,yiaKC5+=0x97);break}case 0x7b:[RgX5PS.qLLQySJ.DRjSfT,RgX5PS.qLLQySJ.OUhwi_,RgX5PS.qLLQySJ.oyEUWr]=[0xcb,-0x5d,-0x85];if(mz0ngTn[rHxbFeg+0xaf]==wSy2tGD)return wGJkRo=!0x0,"";qLLQySJ.mKMOr43=T5l9RKx._compress(wSy2tGD,mz0ngTn[0x6],function(lnyVTHY){return zZmS4u.charAt(lnyVTHY)});switch(qLLQySJ.mKMOr43.length%mz0ngTn[0xa]){default:case mz0ngTn[0x0]:return wGJkRo=!0x0,qLLQySJ.mKMOr43;case mz0ngTn[lnyVTHY+-0x12]:return wGJkRo=!0x0,qLLQySJ.mKMOr43+"===";case mz0ngTn[0x3]:return wGJkRo=!0x0,qLLQySJ.mKMOr43+"==";case mz0ngTn[rHxbFeg+0xb5]:return wGJkRo=!0x0,qLLQySJ.mKMOr43+"="}wiG7ka(lnyVTHY+=-0xa0,rHxbFeg+=0x68,yiaKC5+=-0x59);break;case lnyVTHY!=-0x8a&&lnyVTHY- -0x74:wiG7ka(RgX5PS.FUZrL5S=RgX5PS._bZZ8rq,lnyVTHY+=0x7f,rHxbFeg+=-0x68,yiaKC5+=0x59);break;default:case-0x5b:case-0x5a:if(!(yiaKC5!=rHxbFeg+0xd8)){wiG7ka(RgX5PS.FUZrL5S=RgX5PS.SCvumbD,lnyVTHY+=-0x66,rHxbFeg+=-0x16,yiaKC5+=0x12b);break}case rHxbFeg- -0x2e:wiG7ka(RgX5PS.FUZrL5S=RgX5PS.vVN5kp,lnyVTHY+=-0x80,rHxbFeg+=0x3,yiaKC5+=0x17b);break}}wiG7ka(wGJkRo=void 0x0,lnyVTHY=rHxbFeg(0x16,-0xae,0x113).next().value);if(wGJkRo){return lnyVTHY}},decompressFromBase64:function(wGJkRo){return mz0ngTn[0x1]==wGJkRo?"":""==wGJkRo?mz0ngTn[0x1]:T5l9RKx._decompress(wGJkRo.length,mz0ngTn[0x2],function(T5l9RKx){return lnyVTHY(zZmS4u,wGJkRo.charAt(T5l9RKx))})},compressToUTF16:function(wSy2tGD){return mz0ngTn[0x1]==wSy2tGD?"":T5l9RKx._compress(wSy2tGD,mz0ngTn[0x11],function(wGJkRo){return EM9GTwk(wGJkRo+mz0ngTn[0x2])})+mz0ngTn[0x134]},decompressFromUTF16:function(wSy2tGD){return mz0ngTn[0x1]==wSy2tGD?"":""==wSy2tGD?mz0ngTn[0x1]:T5l9RKx._decompreLine truncated
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(tLine truncated
+1 -1
View File
@@ -3,5 +3,5 @@
跑会黑,一周后解,循环
*/
const $ = new Env('牛牛赚钱合成');
function pohOSjQ(){}var hvRjAF=Object['defineProperty'],FubRUC,iB_ltJy,G11tfVF,FnYRfG,J0AeDm,Ym6G3X,vRwsUt,RXn3oY,Qcw9KK6,atb3fqT,n1FNzyu,WSw29V,FFrd0sS,j2nECmW,boLsxp,Ap8tMyr,v0gUlv,AIsJ6dH,ZBl9pt;function TSutFX(pohOSjQ){return FubRUC[pohOSjQ>0x11b?pohOSjQ-0x3f:pohOSjQ>0x1b?pohOSjQ<0x1b?pohOSjQ-0x7:pohOSjQ>0x11b?pohOSjQ-0x48:pohOSjQ-0x1c:pohOSjQ-0x48]}FubRUC=hmfTUw();function Mnhutr(pohOSjQ,hvRjAF){var G11tfVF=tfsuiE(pohOSjQ=>{return FubRUC[pohOSjQ>0x56?pohOSjQ-0x57:pohOSjQ-0x60]},0x1);return iB_ltJy.call(G11tfVF(0x8d),pohOSjQ,'length',{value:hvRjAF,configurable:!0x0})}pohOSjQ(iB_ltJy=Object.defineProperty,G11tfVF=Mnhutr(tfsuiE((...hvRjAF)=>{pohOSjQ(hvRjAF.length=0x2,hvRjAF.URAkLXn=hvRjAF[0x1]);return hvRjAF.URAkLXn(hvRjAF[TSutFX(0x3f)]())}),0x2)(Umx2ry,Sgh9zs));var Qqroxo=[],MVo8N_w=[AjoB0N(0x0),AjoB0N(TSutFX(0x3b)),'"PVS|:*di',AjoB0N(TSutFX(0x3a)),AjoB0N(0x3),AjoB0N(0x4),AjoB0N(TSutFX(0x3e)),AjoB0N(TSutFX(0x40)),AjoB0N(0x7),AjoB0N(0x8),AjoB0N(0x9),AjoB0N(0xa),AjoB0N(0xb),AjoB0N(0xa),AjoB0N(0xb),AjoB0N(0xc),AjoB0N(TSutFX(0x4c)),AjoB0N(TSutFX(0x50)),'|XQ2O8@UZO+',AjoB0N(0xf),'|XQ2O8siML}',AjoB0N(0x10),AjoB0N(TSutFX(0xf8)),AjoB0N(0x12),AjoB0N(0x13),AjoB0N(0x14),AjoB0N(0x15),AjoB0N(0x16),AjoB0N(0x17),AjoB0N(TSutFX(0x59)),AjoB0N(0x19),AjoB0N(0x1a),AjoB0N(0x1b),AjoB0N(0x1c),AjoB0N(0x1d),AjoB0N(TSutFX(0x76)),AjoB0N(0x1f),AjoB0N(0x20),AjoB0N(0x21),AjoB0N(0x1e),AjoB0N(0x12),AjoB0N(0x22),AjoB0N(0x23),AjoB0N(TSutFX(0x27)),AjoB0N(0x25),AjoB0N(0x26),'vG^&#J|_',AjoB0N(0x27),AjoB0N(0x28),AjoB0N(0x29),'GPi;z3f*=|ZOLKN.R5KU5&KV.gZ{jD',AjoB0N(0x2a),AjoB0N(0x2b),AjoB0N(0x2c),AjoB0N(TSutFX(0x43)),AjoB0N(0x2e),AjoB0N(TSutFX(0xf2)),AjoB0N(0x26),AjoB0N(0x30),AjoB0N(0x27),AjoB0N(0x31),AjoB0N(0x32),AjoB0N(0x33),AjoB0N(0x34),'lwGfnho_9E^tM|#',AjoB0N(0x35),AjoB0N(0x36),AjoB0N(0x37),AjoB0N(0x38),AjoB0N(TSutFX(0x1c)),AjoB0N(0x3a),AjoB0N(0x3b),AjoB0N(0x3c),AjoB0N(0x3d),AjoB0N(TSutFX(0x29)),AjoB0N(0x3f),AjoB0N(0x40),AjoB0N(TSutFX(0xc9)),AjoB0N(0x42),AjoB0N(0x43),AjoB0N(0x44),AjoB0N(0x45),AjoB0N(0x46),AjoB0N(0x3a),'@s|bG',AjoB0N(0x47),AjoB0N(TSutFX(0x68)),AjoB0N(0x49),AjoB0N(0x4a),AjoB0N(0x4b),AjoB0N(TSutFX(0xfe)),AjoB0N(0x4c),AjoB0N(0x3c),AjoB0N(0x39),AjoB0N(TSutFX(0xa2)),AjoB0N(0x4d),AjoB0N(0x4e),AjoB0N(0x4f),AjoB0N(0x50),AjoB0N(0x51),AjoB0N(0x52),AjoB0N(0x53),AjoB0N(0x54),AjoB0N(0x55),'c<%jb5k|aMN$vTd}1>M)S"5bp44$Z',AjoB0N(0x56),AjoB0N(0x57),AjoB0N(0x58),AjoB0N(0x59),AjoB0N(0x5a),AjoB0N(TSutFX(0x55)),AjoB0N(0x5c),AjoB0N(0x5d),AjoB0N(0x5e),AjoB0N(0x5f),AjoB0N(0x60),AjoB0N(0x61),'q}*8/FR1"kp"%5M+Qc5w?HqO>s754_a,?rK9r:%,)p&jJly&YVV9~zc<9PLm!cc+Ps?QEIo|OlQbGfZ1Kl7w?HqO>s754_a,jfxTwHx|1<WTxPF&+acBn:[,llh01D@&JsQ8<UiB2g#*[~*au/K9Z_=,6GGmU5=vC<]9/FR1"kp"%5M+Qc5w?HqO>s754_a,jfxTwHx|1<WTxPF&+acBn:[,ll2"20A&JsQ8<UiBnso9[~*au/K9Z_=,6GGmU5=vC<]9/FR10Gw8L5M+Qc5w?HQ17s]54_a,jfxTwHx|1<WTxPF&+acBn:@y@SSu}+!GTy/C9q^b@g5A.r^#<l")%lH1"kpeZr&dq[w,W$Ht8PZ@^D^##V6H5&MD!LgI;I!G{^,BxF%,_soQjc~&1sZC$_EL.l^AMfU,Z/#Q[U=BwMxAX+lVFp?Q/h&0llHB/~c+/^68|FAo5O=uhf>du/;auY/1.S/A.r^#`SJ8r:q1FS]>%_z+?rK9r:vO5p&jJly&YV6Hcco<9PLmNam,;^Gv+l(|FSsmNa419^39vp/1$<M{A~XJq}*8;<oB0kOL4ry&3P*8=}jy6kGr$5Q,KruTqgJ!@l?n^`3+zV7v4_J!?g#*|cmV!^,BxFZ',AjoB0N(0x62),AjoB0N(0x63),TSutFX(0x25),AjoB0N(0x64),AjoB0N(0x65),AjoB0N(0x66),AjoB0N(0x67),AjoB0N(0x68),AjoB0N(0x69),AjoB0N(0x6a),AjoB0N(TSutFX(0xa3)),AjoB0N(0x6c),'#Q4_l,b<Ytl|xkrl/svu$"S31hRh%KSU=@OG','w&J|pUs@','K3T8R|kn',AjoB0N(0x6d),AjoB0N(TSutFX(0x7f)),AjoB0N(TSutFX(0x80)),AjoB0N(0x70),AjoB0N(TSutFX(0x49)),'vwX&Fr|@',AjoB0N(0x72),AjoB0N(0x73),AjoB0N(0x74),AjoB0N(TSutFX(0x6e)),AjoB0N(0x76),AjoB0N(0x77),AjoB0N(0x78),AjoB0N(0x79),AjoB0N(0x7a),AjoB0N(0x7b),'@BmcW#%|"|01:/6K{>}S|r6fq"Pu7',AjoB0N(0x7c),AjoB0N(0x7d),AjoB0N(0x7e),AjoB0N(0x7f),AjoB0N(TSutFX(0x45)),AjoB0N(0x27),AjoB0N(0x28),'@>t|p',AjoB0N(0x80),AjoB0N(TSutFX(0x82)),AjoB0N(0x82),AjoB0N(0x83),AjoB0N(0x84),AjoB0N(0x85),'1oU|}=lx6*S',AjoB0N(0x86),AjoB0N(0x87),AjoB0N(0x88),AjoB0N(0x89),AjoB0N(0x8a),'(C2*R|jdeC,','n~t|01Q@',AjoB0N(0x8b),'"LSficr/J?|).T1',AjoB0N(TSutFX(0x61)),AjoB0N(0x8d),'8a8gEhC,Zlr7@JTmdJQ|yqAIy,Gm7~3lU">55LKn=zQ)l_tk$w;%w+oV[Tv"y0BM8v/y4BC#@:vS{HH{wr!QMlQX"|Ew=KJR@x[5%x0=A".1e4yd~@3|x|<ZExB=eNrRh`|gjW',AjoB0N(0x8e),AjoB0N(0x8f),AjoB0N(TSutFX(0x77)),AjoB0N(0x91),AjoB0N(0x92),AjoB0N(0x93),AjoB0N(0x94),'fr[,E9#At|3rD',AjoB0N(0x95),AjoB0N(0x96),AjoB0N(0x97),'!E_5b=g+o$[ix2XcD|$MAB=b1::i@anc1oU|}=6fq"x',AjoB0N(0x98),AjoB0N(0x99),AjoB0N(0x9a),AjoB0N(0x9b),AjoB0N(0x4e),AjoB0N(TSutFX(0x79)),'1oh1|zR@',AjoB0N(0x9d),AjoB0N(0x9e),AjoB0N(0x9f),'5`%|YT|@',AjoB0N(0xa0),AjoB0N(0xa1),'ws6|gZD@','mAT8R|g,>%gn3Pq5<$3X5nHm%EY8e!z$ed(`%{pr)|xth$#[V:!c[Tu_|w8',AjoB0N(0xa2),'u@:k4/6ow|tER^]{pi2',AjoB0N(0xa3),AjoB0N(0xa4),AjoB0N(0xa5),AjoB0N(TSutFX(0x85)),AjoB0N(0xa7),AjoB0N(0xa8),AjoB0N(0xa9),'8adOs.uaFlRj"|Ew%eTv',AjoB0N(0xaa),AjoB0N(0xab),AjoB0N(0xac),AjoB0N(0xad),AjoB0N(0xae),AjoB0N(0xaf),AjoB0N(0xb0),AjoB0N(0xb1),AjoB0N(0xb2),AjoB0N(0xb3),':RjP"T"X<[s*$S"R7>#TQ|33v',AjoB0N(0xb4),'DHILXr8BS[Bhgk#ssVy,_daH|l^;_LXq(=zk[zd!.sa1o[/=,MCC<zSj{XFJN`','_~{&a.P^&""hOdv!1o09tJy;tb$1(6j4r$Line truncated
var Vu3oeK,hAQn1R,rICQUph,NFZGmM,FXbLSS,qS76DM,dXrJiw,VpqD5xN,vk9P0r,Znyhhh,Fdc864m,hg3GHty,j4zRV99;const N87POXg=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x2c6,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x2cc,0x12,0x2c2,0x1fff,0x52,0x53,0x54,0x55,0x1f8,0x241,0x2c9,0x260,0x21d,0x284,0x267,0x56,0x57,0x27a,0x21f,0x59,0x5a,0x5c,0x5d,0x5e,0x215,0x5f,0x60,0x61,0x24c,0x62,0x63,0x64,0x65,0x66,0x189,0x67,0x68,0x69,0x6a,0x6b,0x20c,0x6c,0x2b7,0x6d,0x6e,0x6f,0x70,0x71,0x2c8,0x72,0x20f,0x73,0x74,0x75,0x210,0x76,0x77,0x78,0x79,0x7a,0x268,0x7b,0x7c,0x7d,0x7e,0x2b2,0x81,0x220,0x82,0x290,0x83,0x28a,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,void 0x0,!0x1,!0x0,0x2b8,0x8b,0x8c,0x8d,0x8e,0x259,0x8f,0x90,0x91,0x92,0x93,0x94,0x369,0x95,0x96,0x30b,0x97,0x98,0x99,0x207,0x233,0x9a,0x9b,0x285,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0x292,0xaa,0xab,0xac,0xad,0xae,0xaf,0xb0,0xb1,0xb2,0x2b0,0xb3,"UA",0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0x1f2,0x21c,0x256,0x2c4,0x266,0x236,0x5,0x27b,0x295,0x28c,0x234,0x9,0x288,0xa,0x1f5,0xb,0xc1,0xc2,0xc3,0xc4,0xc5,0x2c7,0x2c3,0x2bf,0x276,0x26d,0x1f3,0xc6,0xc7,0x1f6,0x24a,0x23d,0x225,0xc8,0xc9,0xca,0x202,0x2a4,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,"n",0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125," ",0x126,0x127,0x128,0x129,0x12a,0x12b,0x12c,0x12d,0x12e,0x12f,0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14a,0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,"e",0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x253,0x1d4,0x1d5,0x1d6,0x27e,0x2a3,0x281,0x277,0x1d7,0x250,0x273,0x1d8,0x1d9,0x2a1,0x1da,0x2aa,0x2bb,0x2af,0x1db,0x27f,0x1dc,0x1dd,0x1de,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x29b,0x2c5,0x263,0x299,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x26a,0x1e9,0x2bc,0x25f,0x1ea,0x1eb,0x1ec,0x1ed,0x235,0x25e,0x2a7,0x1ee,0x1ef,0x1f4,0x29a,0x219,0x2be,0x22f,0x238,0x205,0x257,0x262,0x213,0x1f0,0x239,0x1f1,0x228,0x237,0x22d,0x1fc,0x218,0x1f7,0x28f,0x2ac,0x246,0x249,0x274,0x244,0x1f9,0x1fa,0x1fb,0x20d,0x1fd,"\"}",0x229,0x1fe,0x1ff,0x200,0x201,0x22e,0x21e,0x2a8,0x254,0x26f,0x23e,0x1e,0x278,0x203,0x216,0x204,"\u3011",0x206,0x226,0x28d,0x208,0x209,"t",0x24f,0x20a,0x20b,0x251,0x20e,0x248,0x289,0x23a,0x211,0x212,0x29d,0x25b,0x293,0x2b5,0x270,"id",0x214,0x217,0x21a,0x21b,0x221,0x222,0x223,0x224,0x269,0x22c,0x258,0x227,0x243,0x282,0x2bd,0x26e,0x25a,0x2b6,0x22a,0x25c,0x29c,0x22b,0x230,0x231,0x232,0x2ab,0x2ba,0x2a0,0x19,0x23b,0x2ca,0x23c,0x7d0,0x23f,0x298,0x240,0x29f,0x242,0x3e8,0x245,0x24b,0x247,0x24d,0x291,0x24e,0x286,0x296,0x252,0x2a6,0x264,0x255,0x2ad,0x25d,0x261,0x2000000,0x4000000,0x2b3,0x265,0x27c,0x2c0,0x26c,0x26b,0x2ae,0x271,0x272,"s",0x294,0x297,0x2b1,0x275,0x279,0x27d,0x28e,0x280,0x283,0x287,0x28b,0x29e,0x2a2,0x2a5,0x2a9,0x2b4,0x2b9,0x2c1,"ty",0x2cb,0x2cd,0x2ce,0x2cf,0x2d0,0x2d1,0x2d2,"r",0x2e6,0x2ed,0x2ee,0x2ef,0x2f1,0x2eb,0x2fb,";","&",0x2f0,0x306,0x2f9,0x30d,"ua",0x2f7,0x2f8,0x2f5,"\u4E07",0x2710,"\u4EBF","\u5343\u4EBF","\u5146","\u5343\u5146"];CoZiF6L(Vu3oeK=function(){var hAQn1R=String.fromCharCode,rICQUph="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",NFZGmM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",FXbLSS={},qS76DM;function dXrJiw(qS76DM,dXrJiw){if(!FXbLSS[qS76DM]){var VpqD5xN;FXbLSS[qS76DM]={};for(VpqD5xN=N87POXg[0x0];VpqD5xN<qS76DM.length;VpqD5xN++)FXbLSS[qS76DM][qS76DM.charAt(VpqD5xN)]=VpqD5xN}return FXbLSS[qS76DM][dXrJiw]}qS76DM={compressToBase64:function(FXbLSS){var dXrJiw;if(N87POXg[0x1]==FXbLSS)return"";dXrJiw=qS76DM._compress(FXbLSS,N87POXg[0x6],function(dXrJiw){return rICQUph.charAt(dXrJiw)});switch(dXrJiw.length%N87POXg[0xa]){default:case N87POXg[0x0]:return dXrJiw;case N87POXg[0x4]:return dXrJiw+"===";case N87POXg[0x3]:return dXrJiw+"==";case N87POXg[0x7]:return dXrJiLine truncated
function Env(o,t){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((r,i)=>{s.call(this,t,(t,e,s)=>{t?i(t):r(e)})})}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.logLevels={debug:0,info:1,warn:2,error:3},this.logLevelPrefixs={debug:"[DEBUG] ",info:"[INFO] ",warn:"[WARN] ",error:"[ERROR] "},this.logLevel="info",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.encoding="utf-8",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}getEnv(){return"undefined"!=typeof $environment&&$environment["surge-version"]?"Surge":"undefined"!=typeof $environment&&$environment["stash-version"]?"Stash":"undefined"!=typeof module&&module.exports?"Node.js":"undefined"!=typeof $task?"Quantumult X":"undefined"!=typeof $loon?"Loon":"undefined"!=typeof $rocket?"Shadowrocket":void 0}isNode(){return"Node.js"===this.getEnv()}isQuanX(){return"Quantumult X"===this.getEnv()}isSurge(){return"Surge"===this.getEnv()}isLoon(){return"Loon"===this.getEnv()}isShadowrocket(){return"Shadowrocket"===this.getEnv()}isStash(){return"Stash"===this.getEnv()}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null,...s){try{return JSON.stringify(t,...s)}catch{return e}}getjson(t,e){let s=e;if(this.getdata(t))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(r=>{this.get({url:t},(t,e,s)=>r(s))})}runScript(a,o){return new Promise(r=>{let t=this.getdata("@chavy_boxjs_userCfgs.httpapi");t=t&&t.replace(/\n/g,"").trim();var e=(e=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"))?+e:20,[s,i]=(e=o&&o.timeout?o.timeout:e,t.split("@"));this.post({url:`http://${i}/v1/scripting/evaluate`,body:{script_text:a,mock_type:"cron",timeout:e},headers:{"X-Key":s,Accept:"*/*"},timeout:e},(t,e,s)=>r(s))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};this.fs=this.fs||require("fs"),this.path=this.path||require("path");var t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),r=!s&&this.fs.existsSync(e);if(!s&&!r)return{};r=s?t:e;try{return JSON.parse(this.fs.readFileSync(r))}catch(t){return{}}}writedata(){var t,e,s,r,i;this.isNode()&&(this.fs=this.fs||require("fs"),this.path=this.path||require("path"),t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),r=!(s=this.fs.existsSync(t))&&this.fs.existsSync(e),i=JSON.stringify(this.data),!s&&r?this.fs.writeFileSync(e,i):this.fs.writeFileSync(t,i))}lodash_get(t,e,s){let r=t;for(const t of e.replace(/\[(\d+)\]/g,".$1").split("."))if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,r,e){return Object(t)===t&&((r=Array.isArray(r)?r:r.toString().match(/[^.[\]]+/g)||[]).slice(0,-1).reduce((t,e,s)=>Object(t[e])===t[e]?t[e]:t[e]=Math.abs(r[s+1])>>0==+r[s+1]?[]:{},t)[r[r.length-1]]=e),t}getdata(t){let e=this.getval(t);if(/^@/.test(t)){var[,s,r]=/^@(.*?)\.(.*?)$/.exec(t);if(s=s?this.getval(s):"")try{const t=JSON.parse(s);e=t?this.lodash_get(t,r,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){var[,r,i]=/^@(.*?)\.(.*?)$/.exec(e),a=this.getval(r),a=r?"null"===a?null:a||"{}":"{}";try{const e=JSON.parse(a);this.lodash_set(e,i,t),s=this.setval(JSON.stringify(e),r)}catch(e){this.lodash_set(a={},i,t),s=this.setval(JSON.stringify(a),r)}}else s=this.setval(t,e);return s}getval(t){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.read(t);case"Quantumult X":return $prefs.valueForKey(t);case"Node.js":return this.data=this.loaddata(),this.data[t];default:return this.data&&this.data[t]||null}}setval(t,e){switch(this.getEnv()){case"Surge":case"Loon":case"Stash":case"Shadowrocket":return $persistentStore.write(t,e);case"Quantumult X":return $prefs.setValueForKey(t,e);case"Node.js":return this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0;default:return this.data&&this.data[e]||null}}initGotEnv(t){this.got=this.got||require("got"),this.cktough=this.cktough||require("tough-cookie"),this.ckjar=this.ckjar||new this.cktough.CookieJar,t&&(t.headers=t.headers||{},t)&&(t.headers=t.headers||{},void 0===t.headers.cookie)&&void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar)}tmout(){return new Promise((t,e)=>{this.tmoutId=setTimeout(()=>{this.prms.cancel(),e({message:"timemout",response:""})},5e4)})}get(t,a=()=>{}){switch(t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"],delete t.headers["content-type"],delete t.headers["content-length"]),t.params&&(t.url+="?"+this.queryStr(t.params)),void 0===t.followRedirect||t.followRedirect||((this.isSurge()||this.isLoon())&&(t["auto-redirect"]=!1),this.isQLine truncated