This commit is contained in:
2024 committed 2026-08-12 12:56:46 +08:00
1 parent 2b6cd1f87f
commit de9881a478
9 files changed
+4 -66

No files matched your search

+1 -1
View File
@@ -1 +1 @@
var ygMsX08,_3UVVF4,Db05FfE,gG2SB2,F_L4WDc,SjEyTvr,AGyzfB,enbqkDk,bgRDFt,aupQGtM,feW5R2;function xEimN6(_3UVVF4,Db05FfE,gG2SB2){for(gG2SB2=0x0;gG2SB2<Db05FfE;gG2SB2++)_3UVVF4.push(_3UVVF4.shift());return _3UVVF4}const yLarge=xEimN6([0x258,"\\s",0x262,0x263,0x264,0x265,0x268,0xfe00000,0xfffffff,0x5265c00,0x275,0x2000000,0x4000000,0x27d,0x27f,0x287,0x288,0x27c,0x28d,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x21e,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x224,0x12,0x21a,0x1fff,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x40,0x84,0x85,0x86,0x87,"ck",0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x189,0x1c2,0x9b,0x9c,0x9d,0x64,0xc8,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,!0x0,0xb8,!0x1,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,"p",0xdb,0xdc,0xdd,"s",0xde,0xe0,0x18,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,0x1e0,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,"=","d",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,0x6f,0x137,0x138,0x139,0x13a,0x13b,0x13c,0x13d,0x13e,0x13f,"0",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,"iv",0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,"K","A","L","B","M","C","N","D","O","E","P","F","Q","G","R","H","S","I","T","J","o","f","v","m","w","n","e","q","g","r","h","i","t","j","u","k","l","x",0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x18a,0x18b,0xa,0x18c,0x18d,0x18e,0x18f,0x200,0x190,0x191,0x192,0x193,0x3ff,0x5,0x16,0xb,0x19,0x11,0x13,0x1c,0x22,0x27,0x29,0x3d,0x9,0xffff,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,"ts",0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,"av",0x1aa,"bv",0x1ab,0x1ac,"dv",0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x24,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0xe10,0x3c,0x1d6,0x1d7,0x1d8,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,"_",".",0x1ee,0x1ef,0x1f0,"ud","sv",0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x1f9,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x28,0x201,0x202,0x203,0x204,0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,"\\.",0x20d,0x20e,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21b,0x21c,0x21d,0x39ef8b000,0x1b7740,0x21f,0x220,0x3e8,0x221,0x222,0x223,0x225,0x226,0x227,0x15,0x228,0x229,"-",0x22a,"|",0x231,0x23a,0x237,0x31,";",0x236,0x246,0x235,0x250],0x13);HBbnet(ygMsX08=function(){var _3UVVF4=String.fromCharCode,Db05FfE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gG2SB2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",F_L4WDc={},SjEyTvr;function AGyzfB(SjEyTvr,AGyzfB){if(!F_L4WDc[SjEyTvr]){var enbqkDk;F_L4WDc[SjEyTvr]={};for(enbqkDk=yLarge[0x0];enbqkDk<SjEyTvr.length;enbqkDk++)F_L4WDc[SjEyTvr][SjEyTvr.charAt(enbqkDk)]=enbqkDk}return F_L4WDc[SjEyTvr][AGyzfB]}SjEyTvr={compressToBase64:function(F_L4WDc){var AGyzfB;if(yLarge[0x1]==F_L4WDc)return"";AGyzfB=SjEyTvr._compress(F_L4WDc,yLarge[0x6],function(AGyzfB){return Db05FfE.charAt(AGyzfB)});switch(AGyzfB.length%yLarge[0xa]){default:case yLarge[0x0]:return AGyzfB;case yLarge[0x4]:return AGyzfB+"===";case yLarge[0x3]:return AGyzfB+"==";case yLarge[0x7]:return AGyzfB+yLarge[0xc6]}},decompressFromBase64:function(F_L4WDc){return yLarge[0x1]==F_L4WDc?"":""==F_L4WDc?yLarge[0x1]:SjEyTvr._decompress(F_L4WDc.length,yLarge[0x2],function(SjEyTvr){return AGyzfB(Db05FfE,F_L4WDc.charAt(SjEyTvr))})},compressToUTF16:function(gG2SB2){return yLarge[0x1]==gG2SB2?"":SjEyTvr._compress(gG2SB2,yLarge[0x11],function(F_L4WDc){return _3UVVF4(F_L4WDc+yLarge[0x2])})+yLarge[0xf9]},decompressFromUTF16:function(gG2SB2){return yLarge[0x1]==gG2SB2?"":""==gG2SB2?yLarge[0x1]:SjEyTvr._decompress(gG2SB2.length,0x4000,function(F_L4WDc){return gG2SB2.charCodeAt(F_L4WDc)-yLarge[0x2]})},compressToUint8Array:function(enbqkDk){for(var bgRDFt=SjEyTvr.compress(enbqkDk),aupQGtM=new Uint8Array(yLarge[0x3]*bgRDFt.length),feW5R2=yLarge[0x0],xEimN6=bgRDFt.length;feW5Line truncated
var UxUBgj,NjI71B,KuFLDjE,r9Jbj2h,DpYhym,iZQkV4x,P9heqCr,l_WnlZ,rPmp4k,t0pAAz4,cwlWUK3;function kSXZ3gS(NjI71B,KuFLDjE,r9Jbj2h){for(r9Jbj2h=0x0;r9Jbj2h<KuFLDjE;r9Jbj2h++)NjI71B.push(NjI71B.shift());return NjI71B}const wBUagJx=kSXZ3gS([0x5265c00,0x255,0x25c,0x25e,0x248,0x265,0x266,0x25b,0x26e,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x21c,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x222,0x12,0x218,0x1fff,0x54,0x55,0x56,0x57,0x59,0x5a,0x5c,0x5d,0x40,0x5e,0x5f,0x60,0x61,"ck",0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x189,0x1c2,0x75,0x76,0x77,0xc8,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,!0x0,0x92,!0x1,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,"p",0xb5,0xb6,0xb7,"s",0xb8,0xb9,0xba,0x18,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0x1e0,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,"=","d",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,"0",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,"iv",0x14b,0x14c,0x14d,0x14e,0x14f,0x150,0x151,0x152,0x153,0x154,"K","A","L","B","M","C","N","D","O","E","P","F","Q","G","R","H","S","I","T","J","o","f","v","m","w","n","e","q","g","r","h","i","t","j","u","k","l","x",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,"ts",0x17d,0x17e,0x17f,0x180,0x5,0x181,0x182,0x183,0x184,0x185,"av",0x186,"bv",0x187,0x188,"dv",0x18a,0x18b,0x18c,0x18d,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x24,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,0xe10,0x3c,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x1b7,0x1b8,0x1b9,0x1ba,0x1bb,0x1bc,0x1bd,0x1be,0x1bf,0x1c0,0x1c1,0x1c3,0x1c4,0x19,0x1c5,0x1c6,0x1c7,0x9,"_",0x1c8,".",0x1c9,0x1ca,"ud","sv",0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d5,0x1d6,0x1d7,0x1d8,0x1d9,0x28,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,"\\.",0x1e6,0x1e7,0x1e8,0x1e9,0x1ea,0x1eb,0x1ec,0x1ed,0x1ee,0x1ef,0x1f0,0x1f1,0x1f2,0x1f3,0x1f4,0x1f5,0x1f6,0x1f7,0x1f8,0x39ef8b000,0x1b7740,0x1f9,0x1fa,0x3e8,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x15,0x200,0x201,"-",0x20e,0x202,0x203,"|",0xa,0x204,0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20f,0x210,0x211,0x212,0x213,0x214,0x215,0x31,0x216,0x217,";",0x219,0x21a,0x21b,0x21d,0x21e,0x21f,0x220,0x221,0x223,0x224,0x225,0x226,0x227,0x228,0x232,"\\s",0x23c,0x23d,0x23e,0x23f,0x240,0x244,0xfe00000,0xfffffff,0x24c],0x9);u_iOKcK(UxUBgj=function(){var NjI71B=String.fromCharCode,KuFLDjE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r9Jbj2h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",DpYhym={},iZQkV4x;function P9heqCr(iZQkV4x,P9heqCr){if(!DpYhym[iZQkV4x]){var l_WnlZ;DpYhym[iZQkV4x]={};for(l_WnlZ=wBUagJx[0x0];l_WnlZ<iZQkV4x.length;l_WnlZ++)DpYhym[iZQkV4x][iZQkV4x.charAt(l_WnlZ)]=l_WnlZ}return DpYhym[iZQkV4x][P9heqCr]}iZQkV4x={compressToBase64:function(DpYhym){var P9heqCr;if(wBUagJx[0x1]==DpYhym)return"";P9heqCr=iZQkV4x._compress(DpYhym,wBUagJx[0x6],function(P9heqCr){return KuFLDjE.charAt(P9heqCr)});switch(P9heqCr.length%wBUagJx[0xa]){default:case wBUagJx[0x0]:return P9heqCr;case wBUagJx[0x4]:return P9heqCr+"===";case wBUagJx[0x3]:return P9heqCr+"==";case wBUagJx[0x7]:return P9heqCr+wBUagJx[0xc3]}},decompressFromBase64:function(DpYhym){return wBUagJx[0x1]==DpYhym?"":""==DpYhym?wBUagJx[0x1]:iZQkV4x._decompress(DpYhym.length,wBUagJx[0x2],function(iZQkV4x){return P9heqCr(KuFLDjE,DpYhym.charAt(iZQkV4x))})},compressToUTF16:function(r9Jbj2h){return wBUagJx[0x1]==r9Jbj2h?"":iZQkV4x._compress(r9Jbj2h,wBUagJx[0x11],function(DpYhym){return NjI71B(DpYhym+wBUagJx[0x2])})+wBUagJx[0xfb]},decompressFromUTF16:function(r9Jbj2h){return wBUagJx[0x1]==r9Jbj2h?"":""==r9Jbj2h?wBUagJx[0x1]:iZQkV4x._decompress(r9Jbj2h.length,0x4000,function(DpYhym){return r9Jbj2h.charCodeAt(DpYhym)-wBUagJx[0x2]})},compressToUint8Array:function(l_WnlZ){for(var rPmp4k=iZQkV4x.compress(l_WnlZ),t0pAAz4=new Uint8Array(wBUagJx[0Line truncated
-7
View File
@@ -1,7 +0,0 @@
/*
cron: 2 2 29 2 *
*/
const $ = new Env('天天抽红包');
var W8ZtqqM,TB0aGTK,H6l_6VV,Ym8d9J,IvOl_b,vBwACD5,HqHXZUD,EHNQHdA,YZarRyA,yvjHokB,bUbWzS9;function N6pJMn7(W8ZtqqM,TB0aGTK,H6l_6VV){for(H6l_6VV=0x0;H6l_6VV<TB0aGTK;H6l_6VV++)W8ZtqqM.push(W8ZtqqM.shift());return W8ZtqqM}const uCWKdTd=[0x0,0x1,0x8,0xff,"length","b",0x2,0x2c,"a",0x4,"undefined",0x3f,0x6,"fromCodePoint",0x7,0xc,"push",0x5b,0x1fff,0x58,0xd,0xe,0xae,"c","i","e","f","h",0xf2,0x9,0xaf,0xda,"d",0x5f,0xb2,0x7f,0x80,0x50,0x3,0x8e,"j",0x5,!0x1,0x87,0x8c,0xc6,0xb3,"\n",!0x0,0x99,0x2b,0x34,0xa5,0xa6,0x8a,0xaa,0x9b,0xc9,0xc0,0x30,"g",0xb8,0xc1,0xc2,0xc3,0xc5,"UA",0xf4," ",0xdf,"\u8D26\u53F7",0xca,0xc7,0xf6,0x10,0xef,0xd5,0x7b,0x14,0x10b,0x106,0x107,0x118,0x10c,0x131,0x18,0x11f,0x109,";",".",0x11e,0xb6,0x14e,0x14d,0x150,0x57,void 0x0,0xa,0x3ff,0x10000,0xd800,0xdc00,0x1f,0xf,0xe0,0x12,0xf0,0x159,0x15a,0xf8,0x160,0x79,0x6a,0xe2,0x93,0xa4,0x52,0x16a,0x16c,0x172,0x173,0x17d,"\u706B\u7206",0x28,0x18e,0x196,"ua",0x7530,0x1b8,0x1bf,0x1c1,0x1c2,0x1bb,0x1c0,0x1bd,0x75,0x47,null,"Q",0x192,0x1d7,"fn","cl","H5",0x1e6,0x5d,0xb,0x55,0x1f9,0x1fa,0x200,0x204,0x205,0x3e8,0x210];n6Tmr1x(WcPX0sx);function n6Tmr1x(W8ZtqqM,TB0aGTK=uCWKdTd[0x1]){Object.defineProperty(W8ZtqqM,uCWKdTd[0x4],{value:TB0aGTK,configurable:uCWKdTd[0x2a]});return W8ZtqqM}function DDftBk(W8ZtqqM){var TB0aGTK="0BlOdcZ]T.|85krb%vD`(6\"J!G4Rx/n=2of7z+F~euQS3*P;i&qW:sYKyHg<jh,wm$EULX#_)>C}pAN^MI1[9?@t{Va",H6l_6VV,Ym8d9J,IvOl_b,vBwACD5,HqHXZUD,EHNQHdA,YZarRyA;GO2izpq(H6l_6VV=""+(W8ZtqqM||""),Ym8d9J=H6l_6VV.length,IvOl_b=[],vBwACD5=uCWKdTd[0x0],HqHXZUD=uCWKdTd[0x0],EHNQHdA=-uCWKdTd[0x1]);for(YZarRyA=uCWKdTd[0x0];YZarRyA<Ym8d9J;YZarRyA++){var yvjHokB=TB0aGTK.indexOf(H6l_6VV[YZarRyA]);if(yvjHokB===-uCWKdTd[0x1])continue;if(EHNQHdA<uCWKdTd[0x0]){EHNQHdA=yvjHokB}else{GO2izpq(EHNQHdA+=yvjHokB*uCWKdTd[0x11],vBwACD5|=EHNQHdA<<HqHXZUD,HqHXZUD+=(EHNQHdA&uCWKdTd[0x12])>uCWKdTd[0x13]?uCWKdTd[0x14]:uCWKdTd[0x15]);do{GO2izpq(IvOl_b.push(vBwACD5&uCWKdTd[0x3]),vBwACD5>>=uCWKdTd[0x2],HqHXZUD-=uCWKdTd[0x2])}while(HqHXZUD>uCWKdTd[0xe]);EHNQHdA=-uCWKdTd[0x1]}}if(EHNQHdA>-uCWKdTd[0x1]){IvOl_b.push((vBwACD5|EHNQHdA<<HqHXZUD)&uCWKdTd[0x3])}return Trza0d(IvOl_b)}function WcPX0sx(...H6l_6VV){H6l_6VV[uCWKdTd[0x4]]=uCWKdTd[0x1];if(typeof W8ZtqqM[H6l_6VV[uCWKdTd[0x0]]]===uCWKdTd[0xa]){return W8ZtqqM[H6l_6VV[uCWKdTd[0x0]]]=DDftBk(TB0aGTK[H6l_6VV[uCWKdTd[0x0]]])}return W8ZtqqM[H6l_6VV[uCWKdTd[0x0]]]}GO2izpq(W8ZtqqM={},TB0aGTK=N6pJMn7(["rPG;xOhU5(W4a}nN;@","5b,S*d;jZ):ND1Q&%7>TW","5b,S*d;jZ)7>aGDl","M;,SN9tUaFuc@","W@ne","P@=X/KSO","i9kEr1WSE","K`$l1Lx3dtOqE4L}SdF&\"@DPK=b{(OG|~To+q$SAA`Z!95}","P*.XHcH6{ja%O}a@<E,<a3XL`d8\"CwW9^0#m:VoHsWL_2S|fncmu[7=ApnBs!|pC.uL`BIJdYBX","^vg8sK[OJFUm!T08kY@|:VZqP5~&w6\"f$wjA2R.x~5BBw6W9hH6l\"a7jrH6orEp^>2{L6>~>@H0quy|dR!)|sAn1\"BMcm}?8#YCGv?S~4pJM84)9Ec*`?X%q~kert},nKw)|sA6A+Dz_v1,n!wd`Q/E*?<z_5?Tn4Rz`?XRd.pzZ;SW9^&pEJa#","8&>Wx73l","SScC_K$B","=jbpIIPl","/bM.;LxnZ","+C#KCXuB","%QsP","ft`_FAn$;.4!mRhf3)|3n,rT)!x0*~lo5fzg9jc,SX%tw7cUY;XP","d{Q.1W~dw","$N1jz,=6","K{4gYTBkw","ft`_FAn$;.G/;eKc?z3Wa@LV6","~3%vyg,)/FZ(D","3;Glg@w8w","I{`_","HHOjgW#","|3Hj]LwAS","f0A$kaB=T","f0&tkaB=T",">F@u","fZ#x]s}?p,vZu%az7W(K??&Br6","0Y_:OC15/D5h$z1xEx/|$I,54,f)Gcfv3W}AQh%PmH>U~1_+j(7Ar,o7~(6)0","sWN.,^G`Hg<7Xd(f/_.YUir:_m0+\"+ZF2WIZ8X1gAT%Wd_6emxR2LP;7%6V/B","Y_psO)}klYB}EF%~W_B","$+!>:}o;ZgTke[F!oiwZDF`u(.wGui=n{<@d+70","JW_.%qDTIDW8rhOv#,r:;}a!I5bK8rte%j,]Nq2:$.{IBz[ud.l","^GN_5pJ]BY/)okA~RPm>Ef+HHvX#wF.","}J+Cy9eD[YH","vHGN~w8ue(r|{b\"fFW]YVoM5c|2:hiWffCoZ$Is]KkXw2Ob",":YmZZ^W?A<(=Y+.~ReA]{HK;bwF^gX!xX.tx1HxzZ|_&tlP`","k5Y]$zo}bb{U$&,/~_$2&+F!Ujz]LRdnY*VZ8,E!ygu!~4_+5w%nLj@5h,q","^<y.|i:Pc","{~w&YPz:.(gA*ddnS_K.8iA]Q8s","2if}AH7/c","JY=xI[oIm5SXmR7v@(#=xY2:{v`1@XEDd&h=WW67OmTi?d.F~HOA)^LM,T","@Zf2`<bI}8#bWra\"~vr]{;=ujrg7eO","~.Z:ze/;6`@HfcQ~^G~dDHYL<8x,7#7n","}f}2W~?BE`","ZCK>=<Dl5vsM(_rejJtxjANg$Hd)Xz@xhL[cAX4!tm!p?d)G/B","$,0W1F]]j8c%lG5",",Lnd!:@5Dj=OH![uq0","DwbY<A=w}<ED>ia%YZDR*AKkD.RZ(RM4fH?:,CGu\"`1&gkRvA(iYx","qYACyP?k2EXbHia%K0","IyvRUi^/(HO+74T+{>WA5[ED(k0LGzkR+WAC?_IkUH/=C&H/k&[A]qX].$!","sOBnl9=uT([yc%!7DYXpJpiP%5)U@IBJvH].(,T@%D3vz<<7`/s]","4Y/K1[PgBbgM{b=Q(_B}Ls)P%Ex","~_Axyg_/U`IwyOC=l7,]_KOwxrD,gXZFNL7)YP0ztmP:B","N+kCsA{CZg/Rj<!73vXKGH>]1wK","/_s:zMXJ5raCM[B+J$!WB@n51`5$Ij!Q,f|WK~[7ST)wpO","#iPxNqNf]k12s%N~\"(uWlik]C,}d%b|~cY[s}iwW(kXMhz0DU+!n5,fz%HK","2JyY@pW](.>MW16Rn$wZPgG725r(Yh4/~$8/,Aqexr~>E#3F=YoYD","z+[/gP|TZ`9qlGC=ojBR/M7]26&","4CjC1Fc`zYNBS4MR%Wdc[H}u}vq8B%z=","64)Z7NbG*8y:yRr~y,e>31S?``hM)<%4Arbo}q$7BEHA4rZFWWqs/:Fl","mOBn_X:L^w~>WF7+KZHW4Yt7=bw>5O8(J2O","=HU|s1hkH$evqh<vuSzCy)fzLY~xq&K7AfK>`","<Y9_&}QP{g%v5_PeYeKx,9vBbj[D2_yQDwBNzy{f2b/|xR^4nHq2%[WB","vw#_v:&?zYW!Zc","UZ9qMq/;CvL>%bP~SClRNHr!bwpCK<xQH<sp`[0","Q(cK1,UH;E<A`_B=<f}T","B6x/1o%PZKNBHdO!hvAqkCink6&8?i|(),W/oL|moH)2Mb</%YDW)p&7`5G","bjf/[XE!Wjt/,k!QGC!oW~c`h,9jkzyx[GgTK~:gRrF^P#@f=L}AXX*7<r","HfnKzy@gsY?#0","(bK>AIL@}8|.&d!/Vr:/Nz/w4rJ=+i8F2JO2f?yPvwi8%<dn;WF&CqABc","Ki9sM:v]C85JH!?xG_4R$i</%5+>z[eF%+X]W1PDo.","qWmYCq)!R$^P;#|(Kf>YaF``:m]Zl+T`:_9qn?.IV$RKxO",":=eZ|XLgtguO`1HJ:Y%W Line 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 || rLine truncated
-22
View File
@@ -1,22 +0,0 @@
/*
入口:APP —— 我的 —— 欢乐挖宝
地址:
https://bnzf.jd.com/?activityId=Bn1VWXtvgTv5ewPoMR-X8A
助力脚本为: jd_fcwb_help.js
环境变量:
JD_FCWB_ID 指定活动ID 不指定默认 APP入口 格式:Bn1VWXtvgTv5ewPoMR-X8A
JD_FCWB_ROUND 指定剩余血量 非必须,不填默认剩余 1 退出
JD_FCWB_TXNUM 轮询提现页数 默认查询第一页,一般无需填写
JD_FCWB_EXCHANGE 达到剩余血量是否领取奖励,默认不启用(领取奖励后相当于结束当天活动,无法继续挖宝,请自行对应设置)
JD_FCWB_SWISH 是否延长提现时间,默认不延长(true/false)
cron:1 1 1 1 *
*/
const $ = new Env('欢乐挖宝任务')
function Kg9aWN_(){}var aTT1C0=Object['defineProperty'],kWuQtL,ArWi39R,_XESV3,HqtkZp9,m1_2ixu,cLd9GDt,dQduEMI,FAkpsX,j3s9aTl,Tip9tY,vPCpYs,gdESKF5,u2h4i0M,XHFrhR9,dWbV93,LRVO2X3,WUHnDK,f_o79b,tTBmdX,Ons1Hg,VFjijm,k3d0zT,qfkEOHk,cAOXYo9,YA9Om1W,EgaQUx;function tlfhSks(Kg9aWN_){return kWuQtL[Kg9aWN_<-0x45?Kg9aWN_-0x2f:Kg9aWN_+0x44]}kWuQtL=WZeB74c();function OmS8Uol(Kg9aWN_,aTT1C0){return ArWi39R(Kg9aWN_,'length',{value:aTT1C0,configurable:!0x0})}Kg9aWN_(ArWi39R=Object.defineProperty,_XESV3=vBwkzC((Kg9aWN_,aTT1C0)=>{return aTT1C0(Kg9aWN_())},0x2)(jE9jUi,Ftz9yvK));var BrLt7X=[],AtjjiIU=[CMRwX5R(0x0),CMRwX5R(tlfhSks(-0x26)),CMRwX5R(tlfhSks(-0x29)),CMRwX5R(0x3),CMRwX5R(0x4),'=*f|:d00{',CMRwX5R(tlfhSks(-0x21)),CMRwX5R(0x6),CMRwX5R(0x7),CMRwX5R(tlfhSks(-0x6)),CMRwX5R(tlfhSks(-0xe)),CMRwX5R(0xa),CMRwX5R(0xb),'++jfsr6Ab~|7c(]l<&',CMRwX5R(tlfhSks(-0x1c)),CMRwX5R(0xd),'Ay|uq',CMRwX5R(0xe),CMRwX5R(0xf),CMRwX5R(tlfhSks(0x18)),'=%O[!E+S>8%xcAcL06;=Sza&KlMX;b4J_{^NgDOgm!xk"U=dGDV6|{OeJ7uLRJ<k~+~x5','=%O[!E+S>8@u$21q0mSy?.7cxlLTrDM#k8r8e|,m|qPTVKe^UoQ',CMRwX5R(0x11),CMRwX5R(0x12),CMRwX5R(tlfhSks(0x5)),CMRwX5R(tlfhSks(0x8)),CMRwX5R(0x15),CMRwX5R(0x16),CMRwX5R(0x17),CMRwX5R(tlfhSks(-0x17)),CMRwX5R(0x19),CMRwX5R(tlfhSks(0x1b)),CMRwX5R(tlfhSks(0x1c)),CMRwX5R(0x1c),CMRwX5R(0x1d),CMRwX5R(0x1e),CMRwX5R(0x1f),CMRwX5R(tlfhSks(-0x19)),CMRwX5R(tlfhSks(-0x44)),CMRwX5R(tlfhSks(0x4c)),CMRwX5R(tlfhSks(0x1e)),CMRwX5R(0x24),CMRwX5R(0x25),CMRwX5R(0x26),CMRwX5R(tlfhSks(-0x43)),CMRwX5R(tlfhSks(-0x44)),CMRwX5R(0x24),CMRwX5R(tlfhSks(-0x44)),CMRwX5R(0x24),CMRwX5R(0x1d),CMRwX5R(tlfhSks(-0x43)),CMRwX5R(0x27),CMRwX5R(tlfhSks(0x1f)),CMRwX5R(tlfhSks(0x1d)),CMRwX5R(tlfhSks(0x26)),CMRwX5R(0x2b),CMRwX5R(0x2c),CMRwX5R(0x2d),CMRwX5R(0x2e),':A~oe|,mH!M0we.do`/mHQRwqruLxl|1+u9fq',CMRwX5R(0x2f),'=UCS|.yCx*aZSi)`s<h3Ag9Wt{',CMRwX5R(0x30),CMRwX5R(0x31),CMRwX5R(0x32),CMRwX5R(0x33),'A9cx|msTz.y&',CMRwX5R(tlfhSks(-0x41)),CMRwX5R(0x35),CMRwX5R(tlfhSks(-0x2b)),CMRwX5R(tlfhSks(0x10)),CMRwX5R(0x38),CMRwX5R(0x39),'L!~gshVo(la&}XBn:A#%PI{(ju|om?7Rq`Q',CMRwX5R(tlfhSks(0x4b)),CMRwX5R(0x3b),CMRwX5R(tlfhSks(-0x16)),CMRwX5R(0x3d),CMRwX5R(0x3e),'|yYBh',CMRwX5R(tlfhSks(-0x1d)),CMRwX5R(0x40),CMRwX5R(0x41),CMRwX5R(0x42),CMRwX5R(0x43),CMRwX5R(tlfhSks(-0x3c)),CMRwX5R(0x45),CMRwX5R(tlfhSks(-0x3a)),CMRwX5R(0x45),CMRwX5R(0x46),CMRwX5R(tlfhSks(0x27)),CMRwX5R(tlfhSks(-0x3b)),CMRwX5R(tlfhSks(0x83)),CMRwX5R(tlfhSks(-0x40)),CMRwX5R(0x4b),CMRwX5R(tlfhSks(-0x3f)),CMRwX5R(tlfhSks(-0x5)),CMRwX5R(tlfhSks(0x2a)),'|yYBh',CMRwX5R(0x4f),CMRwX5R(0x50),CMRwX5R(tlfhSks(0x2c)),CMRwX5R(0x52),CMRwX5R(tlfhSks(0x16)),CMRwX5R(0x54),CMRwX5R(0x55),CMRwX5R(tlfhSks(-0x3d)),CMRwX5R(tlfhSks(0x87)),CMRwX5R(0x58),CMRwX5R(tlfhSks(0x34)),CMRwX5R(0x5a),CMRwX5R(tlfhSks(0x24)),CMRwX5R(0x5c),CMRwX5R(0x5d),CMRwX5R(tlfhSks(0x53)),CMRwX5R(tlfhSks(0x57)),CMRwX5R(0x60),CMRwX5R(0x61),CMRwX5R(tlfhSks(0x20)),CMRwX5R(tlfhSks(-0x42)),CMRwX5R(tlfhSks(0x55)),CMRwX5R(tlfhSks(0xda)),CMRwX5R(tlfhSks(-0x35)),CMRwX5R(0x66),CMRwX5R(tlfhSks(-0x42)),'|yYBh',CMRwX5R(tlfhSks(-0x41)),CMRwX5R(0x67),CMRwX5R(0x68),CMRwX5R(0x69),CMRwX5R(tlfhSks(0x4)),'ei7|ApI5',CMRwX5R(0x6b),CMRwX5R(0x6c),CMRwX5R(0x6d),CMRwX5R(tlfhSks(0x2)),CMRwX5R(tlfhSks(0x58)),CMRwX5R(0x70),CMRwX5R(tlfhSks(0x3d)),CMRwX5R(tlfhSks(0x14)),CMRwX5R(tlfhSks(0x59)),CMRwX5R(tlfhSks(0x12)),'Hhd$|=85',CMRwX5R(tlfhSks(-0x34)),CMRwX5R(tlfhSks(-0x39)),CMRwX5R(tlfhSks(-0x24)),CMRwX5R(tlfhSks(-0x23)),'TbT|jiq5',CMRwX5R(0x78),CMRwX5R(0x79),CMRwX5R(0x7a),CMRwX5R(tlfhSks(-0x40)),CMRwX5R(tlfhSks(-0x3f)),CMRwX5R(0x7b),CMRwX5R(0x7c),CMRwX5R(tlfhSks(-0x3e)),CMRwX5R(tlfhSks(0x71)),CMRwX5R(tlfhSks(-0x42)),'|yYBh',CMRwX5R(0x52),CMRwX5R(0x7f),CMRwX5R(tlfhSks(-0x1f)),CMRwX5R(0x56),CMRwX5R(0x81),CMRwX5R(0x54),CMRwX5R(0x55),CMRwX5R(tlfhSks(-0x32)),CMRwX5R(0x82),CMRwX5R(tlfhSks(0x5d)),CMRwX5R(0x84),'#Z7r5xXygvH)2p_1{8BTR;^V^Xq&E?4.Y2UruXNnv|H:&J',CMRwX5R(tlfhSks(0x47)),CMRwX5R(0x86),CMRwX5R(tlfhSks(0x5f)),CMRwX5R(tlfhSks(0x60)),CMRwX5R(0x89),CMRwX5R(0x8a),CMRwX5R(tlfhSks(0x36)),CMRwX5R(0x8c),CMRwX5R(tlfhSks(0x37)),CMRwX5R(0x8e),CMRwX5R(0x8f),CMRwX5R(tlfhSks(0x63)),'|:,2*a$yRY32"QpRq`QXm%ezx>#*/@QZHUa',CMRwX5R(0x91),CMRwX5R(tlfhSks(0x7e)),CMRwX5R(0x93),'|:,2*a$yRY32"QUR9ycmmHs?uGrmr2gBjc&',CMRwX5R(tlfhSks(0x64)),CMRwX5R(0x4a),CMRwX5R(0x4c),CMRwX5R(tlfhSks(0x38)),CMRwX5R(tlfhSks(0x1)),CMRwX5R(tlfhSks(-0x3e)),CMRwX5R(0x7e),CMRwX5R(tlfhSks(-0x42)),'|yYBh',CMRwX5R(0x52),CMRwX5R(tlfhSks(-0x3d)),CMRwX5R(tlfhSks(-0x41)),CMRwX5R(tlfhSks(0x67)),CMRwX5R(0x97),CMRwX5R(tlfhSks(0x68)),'|:pd!YDxe(y[SJ6',CMRwX5R(0x99),CMRwX5R(0x9a),CMRwX5R(0x9b),CMRwX5R(0x44),CMRwX5R(tlfhSks(0x69)),CMRwX5R(tlfhSks(0x23)),CMRwX5R(tlfhSks(0x7a)),CMRwX5R(tlfhSks(-0x2c)),CMRwX5R(tlfhSks(0x79)),CMRwX5R(tlfhSks(-0x41)),'^I:8e|,m|qX',CMRwX5R(0xa1),'4j1!Sd8IEt^FjqYx*==_f.O4|~?/=Q',CMRwX5R(0xa2),CMRwX5R(0xa3),CMRwX5R(0xa4),CMRwX5R(tlfhSks(0x6b)),CMRwX5R(0xa6),CMRwX5R(tlfhSks(0x6c)),CMRwX5R(tlfhSks(0x6d)),CMRwX5R(0xa9),CMRwX5R(0xaa),CMRwX5R(0xab),CMRwX5R(tlfhSks(0x13)),CMRwX5R(0xad),'Md"|?.Na~l{7%b?0s<AN',CMRwX5R(tlfhSks(0x76)),CMRwX5R(0xaf),CMRwXLine 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
-14
View File
@@ -1,14 +0,0 @@
/*
欢乐挖宝助力
环境变量:
JD_FCWB_InviterId // 指定助力码 非必须,不填默认助力账号一 格式:inviterId&inviterCode
JD_FCWB_NUM // 指定人数 非必须,不填默认跑全部账号
cron:1 1 1 1 *
*/
const $ = new Env('欢乐挖宝助力')
function J_38Wmr(){}var Scad07=Object['defineProperty'],IAOqrW0,nBvDpW,spzbhdp,Yyd85_,OMNaGR,W8_ghC,OJjGV0J,uNeQXV2,f2Due9,JLXlgvg,n1_aFPQ,XrtCvz,CdHKde,SfGFFZ,D9lnzQ,j24fuft,LlXKYU,NYK1US,bl6xZTl,tJt1hTA,jYYSky6,Oc6yYm6;function opp2qJ(J_38Wmr){return IAOqrW0[J_38Wmr<0x21?J_38Wmr+0x5d:J_38Wmr<0x12e?J_38Wmr>0x21?J_38Wmr-0x22:J_38Wmr-0x46:J_38Wmr+0x2b]}IAOqrW0=E8swh5();function CYuBxPL(J_38Wmr,Scad07){nBvDpW(J_38Wmr,'length',{value:Scad07,configurable:!0x0});return J_38Wmr}J_38Wmr(nBvDpW=Object.defineProperty,spzbhdp=c_8zWXy((J_38Wmr,Scad07)=>{return Scad07(J_38Wmr())},0x2)(vr6oosq,CL1fqf));var YXnLoAe=[],XOzOjx=[fCCFRO(opp2qJ(0x30)),fCCFRO(0x1),fCCFRO(0x2),fCCFRO(0x3),fCCFRO(0x4),fCCFRO(opp2qJ(0x45)),fCCFRO(opp2qJ(0x33)),fCCFRO(0x7),fCCFRO(opp2qJ(0x54)),fCCFRO(opp2qJ(0x22)),fCCFRO(opp2qJ(0x108)),fCCFRO(opp2qJ(0x3f)),fCCFRO(opp2qJ(0x35)),fCCFRO(0xd),fCCFRO(opp2qJ(0x3d)),fCCFRO(0xf),'}O<Kc#D^4a6;E~2VNKSf]8?0J0t$(5q+3R8H/Kh:Q!kf|GeOM|ZkT!f}xyi@:qR~=.',fCCFRO(0x10),fCCFRO(opp2qJ(0x5b)),fCCFRO(0x12),fCCFRO(opp2qJ(0x51)),fCCFRO(0xb),fCCFRO(0x13),fCCFRO(opp2qJ(0x3e)),fCCFRO(opp2qJ(0x22)),fCCFRO(opp2qJ(0x5c)),fCCFRO(opp2qJ(0x5d)),fCCFRO(0x15),fCCFRO(opp2qJ(0xf1)),'GPt0C)mH`|egTZq+n.',fCCFRO(opp2qJ(0x5f)),fCCFRO(opp2qJ(0x47)),fCCFRO(0x19),fCCFRO(0x1a),fCCFRO(0x1b),'$|D/l{f?)lvFS+m3F`Tg&?.',fCCFRO(opp2qJ(0xb9)),'GP]dj0mHLZeH+DFZ26E$s)3Te[sb8YV`!LH&X@4tdk[XZ!.`l3;BTsS=$Zw5ieFqGP%nX<QiK|:Go^{C"',',_kuR?_=M89fhqs*|J',fCCFRO(0x1d),'GPt0C)mH`|egTZq+LpTG?','n+#2w|+%NgoC{|0tyzW#u1Jz/f#',fCCFRO(opp2qJ(0x61)),'Qm^e|lg4G',fCCFRO(opp2qJ(0x32)),fCCFRO(opp2qJ(0x63)),fCCFRO(0x21),fCCFRO(0x22),fCCFRO(0x23),fCCFRO(0x24),fCCFRO(0x25),fCCFRO(0x26),'G@*HE5Wm[q!|$lc0W[w]c#3?8#=f0G"ud`M(/n5&7%HBk><|RP+|i&WD`~<','Gc]U*Yz$@7lR;^tT3vM[t?#2Z?|bTG5%SkV<+BY0gkwczGoRPp5C;rcy[!u"b?(b','`}`RL0|Q?!Wy0}W{v_bU',fCCFRO(0x27),fCCFRO(opp2qJ(0x9a)),'kt9H^e|Q]{:V6WF9Y/]M`00_@!wgU;hE#IB_+/+D_H=,1T9%K%5Q@wz;I6(E`G',fCCFRO(opp2qJ(0x23)),fCCFRO(0x2a),fCCFRO(opp2qJ(0x67)),fCCFRO(opp2qJ(0x38)),'^5?fW/v%l>=,|sP',fCCFRO(opp2qJ(0x24)),fCCFRO(0x2e),fCCFRO(opp2qJ(0xef)),fCCFRO(0x30),'fP?fW/v%l>=,|sP','q]fC@>t9=KlLu";Ht=BQ;`O6AYa}PAm&SYMa%s>${Y7K%LZ7_9nQ*>K,m|*',fCCFRO(opp2qJ(0x23)),fCCFRO(0x31),'G@*H45hjtq!|$lc0W[w]c#^YV`(F8V7ud`M(/n5&L`jq/|Djfmg]<5qhO++f8(2h4^Xd',fCCFRO(opp2qJ(0x6a)),opp2qJ(0x26),fCCFRO(0x33),fCCFRO(0x34),'2+IY|@J',fCCFRO(opp2qJ(0x23)),fCCFRO(opp2qJ(0xda)),fCCFRO(0x2c),fCCFRO(opp2qJ(0xe3)),fCCFRO(0x36),fCCFRO(0x37),fCCFRO(0x38),fCCFRO(opp2qJ(0x24)),fCCFRO(opp2qJ(0xbb)),fCCFRO(0x3a),fCCFRO(opp2qJ(0x71)),fCCFRO(0x3c),fCCFRO(0x3d),'fP?fW/v%l>=,|sP',fCCFRO(0x3e),'^5?fW/v%l>=,|sP',fCCFRO(0x33),fCCFRO(opp2qJ(0x25)),fCCFRO(opp2qJ(0x78)),fCCFRO(0x41),fCCFRO(0x42),fCCFRO(0x42),fCCFRO(0x43),fCCFRO(opp2qJ(0x28)),fCCFRO(opp2qJ(0x2b)),fCCFRO(0x46),fCCFRO(opp2qJ(0x86)),fCCFRO(0x48),fCCFRO(opp2qJ(0x87)),'ad{u|#gZ',fCCFRO(0x4a),fCCFRO(opp2qJ(0x6e)),fCCFRO(opp2qJ(0x25)),fCCFRO(0x4c),fCCFRO(opp2qJ(0x90)),fCCFRO(0x4e),fCCFRO(opp2qJ(0x8e)),opp2qJ(0x2c),fCCFRO(0x50),fCCFRO(0x51),fCCFRO(opp2qJ(0x6b)),fCCFRO(opp2qJ(0x91)),fCCFRO(0x53),opp2qJ(0x26),fCCFRO(0x54),fCCFRO(0x55),fCCFRO(0x56),fCCFRO(opp2qJ(0x27)),fCCFRO(0x58),fCCFRO(opp2qJ(0xa6)),fCCFRO(opp2qJ(0x2a)),fCCFRO(opp2qJ(0x50)),fCCFRO(opp2qJ(0x27)),fCCFRO(0x5b),fCCFRO(0x44),fCCFRO(0x55),fCCFRO(0x56),fCCFRO(0x5c),fCCFRO(0x5b),fCCFRO(opp2qJ(0x28)),fCCFRO(0x5d),fCCFRO(opp2qJ(0x29)),fCCFRO(0x5f),fCCFRO(0x60),fCCFRO(0x61),fCCFRO(0x62),fCCFRO(opp2qJ(0x29)),fCCFRO(0x55),fCCFRO(opp2qJ(0xad)),fCCFRO(0x64),fCCFRO(opp2qJ(0x2a)),fCCFRO(0x65),'9O7EE5M*]qDQf#;jjI|H',fCCFRO(0x66),'jI|HwT8K#Wb7C0E3K.o:UT.',fCCFRO(0x58),fCCFRO(opp2qJ(0xb4)),'9O7EE5M*]qDQf#;jjI|H',fCCFRO(opp2qJ(0x5a)),'jI|HwT8K#Wb7C0E3K.o:UT.','uXax3&xY]+Vxf#of|Ir|j6J/x&i',fCCFRO(opp2qJ(0x2b)),fCCFRO(opp2qJ(0x2e)),fCCFRO(opp2qJ(0x2d)),fCCFRO(0x64),fCCFRO(0x64),fCCFRO(opp2qJ(0x74)),fCCFRO(opp2qJ(0xb1)),fCCFRO(opp2qJ(0xb7)),opp2qJ(0x2c),fCCFRO(0x67),fCCFRO(0x67),fCCFRO(opp2qJ(0x2d)),fCCFRO(0x64),fCCFRO(0x53),fCCFRO(opp2qJ(0x2f)),opp2qJ(0x2c),fCCFRO(0x57),fCCFRO(opp2qJ(0x2e)),fCCFRO(0x67),fCCFRO(0x68),fCCFRO(0x64),fCCFRO(0x53),fCCFRO(0x6c),'DB|n',fCCFRO(0x57),fCCFRO(opp2qJ(0xea)),fCCFRO(0x6e),fCCFRO(opp2qJ(0x111)),fCCFRO(0x53),fCCFRO(opp2qJ(0x22)),'Cd4zH8=|OQuU$WhM59,QU<Q;BQuUdu',fCCFRO(0x70),fCCFRO(0x71),'>_VaC|rFs(!&J=r',fCCFRO(opp2qJ(0x89)),fCCFRO(opp2qJ(0xcb)),fCCFRO(0x74),fCCFRO(0x75),fCCFRO(opp2qJ(0x27)),fCCFRO(opp2qJ(0x75)),fCCFRO(0x5d),fCCFRO(0x77),fCCFRO(0x78),fCCFRO(opp2qJ(0x6d)),'>_VaC|rFs(PF<u`','J}?r;y*b+|eF".Q*?Sfj7',fCCFRO(0x7a),'t=fYjl2b|;U3.',fCCFRO(0x7b),fCCFRO(0x7c),fCCFRO(0x7d),fCCFRO(0x7e),fCCFRO(0x7f),fCCFRO(opp2qJ(0xa2)),fCCFRO(opp2qJ(0x7a)),fCCFRO(0x82),fCCFRO(opp2qJ(0xe0)),fCCFRO(0x84),fCCFRO(opp2qJ(0xe7)),fCCFRO(opp2qJ(0xee)),fCCFRO(0x87),fCCFRO(opp2qJ(0x68)),fCCFRO(0x89),fCCFRO(opp2qJ(0xd7)),fCCFRO(opp2qJ(0xcd)),fCCFRO(0x8b),fCCFRO(opp2qJ(0x2f)),fCCFRO(0x8c),fCCFRO(opp2qJ(0x10a)),fCCFRO(opp2qJ(0xfb)),fCCFRO(0x8f),fCCFRO(0x90),fCCFRO(opp2qJ(0xfc)),'o!Va$[6owNL&2e0Cxw*adgL0A4U&|:Rm:PI_dZOdq',fCCFRO(0x92),fCCFRO(opp2qJ(0x7c)),'?v%e9YQ94XT>W2|tz6vLine 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
@@ -7,5 +7,5 @@
*/
const $ = new Env('新农场任务');
var wYdiTJS,gY11gX,SuVphA,ZaR8pEJ,ZiOp353,A25mkZy,b5pVz7,xYu112W,XTOUZx,q0X3kX1,F7PgSVY,UaJIiM,ychURc;const WtKAiO=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x340,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x346,0x12,0x33c,0x7a,0x7b,0x1fff,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,!0x1,0xc8,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,!0x0,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,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,"UA",0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5," ",0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,"\u8D26\u53F7",0xfe,0x101,0x102,0x103,0x104,0x105,0x1f4,0xa,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,"\u274C ",0x111,0x112,"!",0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x5,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,"\u3011",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,"\n",0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17a,0x17b,0x17c,"\u7EA7]",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,0x29,0x196,0x197,0x198,0x199,0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,"%",0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x64,0x1e,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,0x3e8,0x1d1,0x1d2,0x1d3,0x1d4,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,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,0x205,void 0x0,0x206,0x207,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,0x222,0x223,0x224,0x225,0x226,0x227,0x228,"\u6B21",0x229,0x22a,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x233,0x234,0x235,0x236,0x237,0x238,0x32,0x239,0x23a,0x23b,0x23c,0x23d,0x23e,0x23f,0x240,0x241,0x242,0x243,0x244,0x245,0x246,0x247,0x248,0x249,0x24a,0x24b,0x24c,0x24d,0x24e,0x24f,0x250,0x251,0x252,0x253,"0",0x254,0x255,0x256,0x257,0x258,0x259,0x25a,0x25b,0x25c,0x25d,0x25e,0x25f,0x260,0x261,0x262,0x263,0x264,0x265,0x266,0x267,0x268,0x269,0x26a,0x26b,0x26c,0x26d,0x26e,0x26f,0x270,0x271,0x272,0x273,0x274,0x275,0x276,0x277,0x278,0x279,0x27a,0x27b,0x27c,"\u6D47\u6C34",0x27d,"g\uFF0C",0x27e,0x27f,0x280,0x281,0x282,0x283,0x284,0x285,0x286,0x287,0x288,0x289,0x28a,0x28b,0x28c,0x28d,0x28e,0x28f,0x290,0x291,0x292,0x293,0x294,0x295,0x296,0x297,0x298,0x299,0x29a,0x29b,0x29c,0x29d,0x29e,0x29f,0x2a0,0x2a1,0x2a2,0x2a3,0x2a4,0x2a5,0x2a6,0x2a7,0x2a8,0x2a9,0x2aa,0x2ab,0x2ac,0x2ad,0x2ae,0x2af,0x2b0,0x2b1,0x2b2,0x2b3,0x2b4,0x2b5,0x2b6,0x2b7,0x2b8,"/",0x2b9,0x2ba,0x2bb,0x2bc,":",0x2bd,0x2be,0x2bf,0x2c0,0x2c1,0x2c2,0x2c3,0x2c4,0x2c5,0x2c6,0x2c7,0x2c8,0x2c9,0x2ca,0x2cb,0x2cc,0x2cd,0x2ce,0x2cf,0x2d0,0x2d1,0x2d2,0x2d3,",",0x2d4,0x2d5,0x2d6,"-",0x2d7,0x2d8,0x2d9,0x2da,"\u3010",0x2db,0x2dc,0x2dd,0x2de,0x2df,0x2e0,0x2e1,0x2e2,0x2e3,0x2e4,0x2e5,0x2e6,0x14,0x2e7,"1",0x2e8,0x2e9,0x2ea,0x2eb,0x2ec,0x2ed,0x2ee,0x2ef,0x2f0,0x2f1,0x2f2,0x2f3,0x2f4,0x2f5,0x2f6,0x2f7,0x2f8,0x2f9,0x2fa,0x2fb,0x2fc,0x2fd,0x2fe,0x2ff,0x300,0x301,0x302,0x303,0x304,0x305,0x306,0x307,0x308,0x309,0x30a,0x30b,0x30c,0x30d,0x30e,0x30f,0x310,0x311,0x312,"\u83B7\u5F97",0x313,0x314,0x315,0x316,0x317,0x318,0x319,0x15,0x31a,0x31b,0x31c,0x31d,0x31e,0x31f,0x320,0x321,0x322,0x323,0x324,0x325,0x326,0x327,0x328,0x329,0x32a,0x32b,0x32c,0x32d,0x32e,0x32f,0x330,0x331,0x332,0x333,0x334,0x335,0x336,0x337,0x338,0x339,0x33a,0x33b,0x33d,0x33e,0x33f,0x341,0x342,0x343,0x344,0x345,0x347,0x348,0x349,0x34a,0x34b,0x34c,0x34f,0x351,0x352,0x353,0x354,0x355,0x356,0x357,0x358,0x2710,0x35b,0x35f,0x35d,";",0x379,0x367,"fn",0x368,0x380,0x36c,0x36d,"ua",0x36e,0x370,0x371,0x374,0x37a,"2",0x382,0x383,0x36b,"fg",0x373,0x38c,0x38d,0x7530,0x384,0x390,0x391,0x392,0x393,0x394,0x386,0x3a0,0x3a1,0x3a2,0x3a3,0x3af,"fp",0x3b6,0x3ab,0x3c3,0x3c4,0x7d0,0x3cf,0x3d0,0x3a4,0x3a5,0x366,0xLine truncated
var sK4brJ,GE3r9n,LizVz9,oX3EMvz,CUao0K,EiCU6CU,hUqh8M,JAPWMk,w9zhKfr,hs_Ybjz,gLJ6XM,Zvuujj2,sBqLjS;const McJRHWE=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x33e,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x344,0x12,0x33a,0x1fff,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0xc8,!0x1,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,!0x0,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,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,"UA",0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb," ",0xdc,0xdd,0xde,0xe0,0xe1,"\u8D26\u53F7",0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0x1f4,0xa,0xe9,0xea,0xeb,0xec,0xed,0xee,0xf0,0xf1,0xf2,0xf3,"\u274C ",0xf4,0xf5,"!",0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,0x105,0x5,0x106,0x107,0x108,0x109,0x10a,0x10b,"\u3011",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,"\n",0x157,0x158,0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x15f,0x160,0x161,0x162,"\u7EA7]",0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x29,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,void 0x0,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,0x1ac,0x1ad,0x1ae,0x1af,0x1b0,0x1b1,0x1b2,0x1b3,0x1b4,0x1b5,0x1b6,0x3e8,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,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,0x1fa,0x1fb,0x1fc,0x1fd,0x1fe,0x1ff,0x200,0x201,0x202,0x203,0x204,"\u6B21",0x205,0x206,0x207,0x208,0x209,0x20a,0x20b,0x20c,0x20d,0x20e,0x20f,0x210,0x211,0x212,0x32,0x213,0x214,0x215,0x216,0x217,0x218,0x219,0x21a,0x21b,0x21c,0x21d,0x21e,0x21f,0x220,0x221,0x222,0x223,0x224,0x225,0x226,0x227,0x228,0x229,0x22a,0x22b,0x22c,0x22d,0x22e,0x22f,0x230,0x231,0x232,0x233,0x234,0x235,0x236,0x237,0x238,0x239,0x23a,0x23b,0x23c,0x23d,0x23e,0x23f,0x240,0x241,0x242,0x243,0x244,0x245,0x18,0x3c,0x246,"=",0x247,0x248,0x249,0x24a,0x24b,0x24c,0x24d,0x24e,0x24f,0x250,0x251,0x252,"\u6D47\u6C34",0x253,"g\uFF0C",0x254,0x255,0x256,0x257,0x258,0x259,0x25a,0x25b,0x25c,0x25d,0x25e,0x25f,0x260,0x261,0x262,0x263,0x264,0x265,0x266,0x267,0x268,0x269,0x26a,0x26b,0x26c,0x26d,0x26e,0x26f,0x270,0x271,0x272,0x273,0x274,0x275,0x276,0x277,0x278,0x279,0x27a,0x27b,0x27c,0x27d,0x27e,0x27f,0x280,0x281,0x282,0x283,0x284,0x285,0x286,0x287,0x288,0x289,0x28a,0x28b,0x28c,0x28d,0x28e,0x28f,0x290,0x291,0x292,0x293,0x294,0x295,"0",0x296,0x297,"/",0x298,0x299,0x29a,":",0x29b,0x29c,0x29d,0x29e,0x29f,0x2a0,0x2a1,0x2a2,0x2a3,0x2a4,0x2a5,0x2a6,0x2a7,0x2a8,0x2a9,0x2aa,0x2ab,0x2ac,0x2ad,0x2ae,0x2af,0x2b0,0x2b1,0x2b2,0x2b3,0x2b4,0x3ff,0x10000,0xd800,0xdc00,0x2b5,0x2b6,0x2b7,0x2b8,0x2b9,0x2ba,0x2bb,0x2bc,",",0x2bd,0x2be,"-",0x2bf,0x2c0,0x2c1,"\u3010",0x2c2,0x2c3,0x2c4,0x2c5,0x2c6,0x2c7,0x2c8,0x2c9,0x2ca,0x2cb,0x2cc,0x2cd,0x2ce,0x2cf,0x14,0x2d0,0x2d1,0x2d2,"1",0x2d3,0x2d4,0x2d5,0x2d6,0x2d7,0x2d8,0x2d9,0x2da,0x2db,0x2dc,0x2dd,0x2de,0x2df,0x2e0,0x2e1,0x2e2,0x2e3,0x2e4,0x2e5,0x2e6,0x2e7,0x2e8,0x2e9,0x2ea,0x2eb,0x2ec,0x2ed,0x2ee,0x2ef,0x2f0,0x2f1,0x2f2,0x2f3,0x2f4,0x2f5,0x2f6,0x2f7,"\u83B7\u5F97",0x2f8,0x2f9,0x2fa,0x2fb,0x2fc,0x2fd,0x2fe,0x2ff,0x15,0x300,0x301,0x302,0x303,0x304,0x305,0x306,0x307,0x308,0x309,0x30a,0x30b,0x30c,0x30d,0x30e,0x30f,0x310,0x311,0x312,0x313,0x314,0x315,0x316,0x317,0x318,0x319,0x31a,0x31b,0x31c,0x31d,0x31e,0x31f,0x320,0x321,0x322,0x323,0x324,0x325,0x326,0x327,0x328,0x329,0x32a,0x32b,0x32c,0x32d,0x32e,0x32f,0x330,0x331,0x332,0x333,0x334,0x335,0x336,0x337,0x338,0x339,0x33b,0x33c,0x33d,0x33f,0x340,0x341,0x342,0x343,0x345,0x346,0x347,0x348,0x349,0x34a,0x2710,";",0x34c,0x34d,0x351,0x353,0x355,0x357,0x36a,0x358,"fn",0x359,0x370,0x35d,0x35e,"ua",0x35f,0x361,0x362,0x365,"2",0x372,0x373,0x35c,"fg",0x364,0x37c,0x37d,0x7530,0x374,0x381,0x382,0x383,0x384,0x385,0Line 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
+1 -1
View File
@@ -3,5 +3,5 @@ cron: 6 8,16 * * *
*/
const $ = new Env('互动游戏赚豆');
var zPG58f,ahnPPDY,kI09VYo,UH1ZIBB,ZqEir_G,ce789xo,G8gLCs,mprrhR,fYdAcF,hGDe08,XiZ0LU_,jbiAyrn,WPbH2x;function Zg2Na_(ahnPPDY,kI09VYo,UH1ZIBB){for(UH1ZIBB=0x0;UH1ZIBB<kI09VYo;UH1ZIBB++)ahnPPDY.push(ahnPPDY.shift());return ahnPPDY}const nQ27gE=Zg2Na_([0x17f,0x181,0x182,0x183,0x184,0x185,0x186,0x28,0x195,0x196,0x13,0x19a,0x1a4,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x17a,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x180,0x12,0x176,0x54,0x55,0x56,0x57,0x1fff,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x7530,0x75,0x76,!0x1,!0x0,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,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,"UA",0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5," ",0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,"\u8D26\u53F7",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,0x3e8,0xa,0x10d,0x1f4,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,"\u3010",0x12b,0x12c,0x12d,0x12e,0x9c4,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,0x177,0x178,0x179,0x17b,0x17c,0x17d,0x17e],0xd);NDAucIP(zPG58f=function(){var ahnPPDY=String.fromCharCode,kI09VYo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",UH1ZIBB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",ZqEir_G={},ce789xo;function G8gLCs(ce789xo,G8gLCs){if(!ZqEir_G[ce789xo]){var mprrhR;ZqEir_G[ce789xo]={};for(mprrhR=nQ27gE[0x0];mprrhR<ce789xo.length;mprrhR++)ZqEir_G[ce789xo][ce789xo.charAt(mprrhR)]=mprrhR}return ZqEir_G[ce789xo][G8gLCs]}ce789xo={compressToBase64:function(ZqEir_G){var G8gLCs;if(nQ27gE[0x1]==ZqEir_G)return"";G8gLCs=ce789xo._compress(ZqEir_G,nQ27gE[0x6],function(G8gLCs){return kI09VYo.charAt(G8gLCs)});switch(G8gLCs.length%nQ27gE[0xa]){default:case nQ27gE[0x0]:return G8gLCs;case nQ27gE[0x4]:return G8gLCs+"===";case nQ27gE[0x3]:return G8gLCs+"==";case nQ27gE[0x7]:return G8gLCs+"="}},decompressFromBase64:function(ZqEir_G){return nQ27gE[0x1]==ZqEir_G?"":""==ZqEir_G?nQ27gE[0x1]:ce789xo._decompress(ZqEir_G.length,nQ27gE[0x2],function(ce789xo){return G8gLCs(kI09VYo,ZqEir_G.charAt(ce789xo))})},compressToUTF16:function(UH1ZIBB){return nQ27gE[0x1]==UH1ZIBB?"":ce789xo._compress(UH1ZIBB,nQ27gE[0x11],function(ZqEir_G){return ahnPPDY(ZqEir_G+nQ27gE[0x2])})+nQ27gE[0xa2]},decompressFromUTF16:function(UH1ZIBB){return nQ27gE[0x1]==UH1ZIBB?"":""==UH1ZIBB?nQ27gE[0x1]:ce789xo._decompress(UH1ZIBB.length,0x4000,function(ZqEir_G){return UH1ZIBB.charCodeAt(ZqEir_G)-nQ27gE[0x2]})},compressToUint8Array:function(mprrhR){for(var fYdAcF=ce789xo.compress(mprrhR),hGDe08=new Uint8Array(nQ27gE[0x3]*fYdAcF.length),XiZ0LU_=nQ27gE[0x0],jbiAyrn=fYdAcF.length;XiZ0LU_<jbiAyrn;XiZ0LU_++){var WPbH2x=fYdAcF.charCodeAt(XiZ0LU_);NDAucIP(hGDe08[nQ27gE[0x3]*XiZ0LU_]=WPbH2x>>>nQ27gE[0x8],hGDe08[nQ27gE[0x3]*XiZ0LU_+nQ27gE[0x4]]=WPbH2x%nQ27gE[0x5])}return hGDe08},decompressFromUint8Array:function(mprrhR){var fYdAcF;if(nQ27gE[0x1]==mprrhR)return ce789xo.decompress(mprrhR);for(var hGDe08=new Array(mprrhR.length/nQ27gE[0x3]),XiZ0LU_=nQ27gE[0x0],jbiAyrn=hGDe08.length;XiZ0LU_<jbiAyrn;XiZ0LU_++)hGDe08[XiZ0LU_]=nQ27gE[0x5]*mprrhR[nQ27gE[0x3]*XiZ0LU_]+mprrhR[nQ27gE[0x3]*XiZ0LU_+nQ27gE[0x4]];fYdAcF=[];return hGDe08.forEach(function(hGDe08){fYdAcF.push(ahnPPDY(hGDe08))}),ce789xo.decompress(fYdAcF.join(""))},compressToEncodedURIComponent:function(kI09VYo){return nQ27gE[0x1]==kI09VYo?"":ce789xo._compress(kI09VYo,nQ27gE[0x6],function(ZqEir_G){return UH1ZIBB.charAt(ZqEir_G)})},decompressFromEncodedURIComponent:function(ZqEir_G){return nQ27gE[0x1]==ZqEir_G?"":""==ZqEir_G?nQ27gE[0x1]:(ZqEir_G=ZqEir_G.replace(/ /g,"+"),ce789xo._decompress(ZqEir_G.length,nQ27gE[0x2],function(ce789xo){return G8gLCs(UH1ZIBB,ZqEir_G.charAt(ce789xo))}))},compress:function(UH1ZIBB){return ce789xo._compress(UH1ZIBB,nQ27gE[0x9],function(ZqEir_G){return ahnPPDY(ZqEir_G)})},_compress:function(mprrhR,fYdAcF,hGDe08){if(nQ27gE[0x1]==mprrhR)return"";var XiZ0LU_,jbiAyrn,WPbH2x,ZgLine truncated
var kC8y1ZV,vkd_U6,E7KQ9G,bs6cgG,IPZyjE,mjdasu4,p1ldMX_,dhzOwt,VnZ7_q,PIRMP4,Kqhpq6,x02OfHb,fmcV6u;function QLkt_zl(vkd_U6,E7KQ9G,bs6cgG){for(bs6cgG=0x0;bs6cgG<E7KQ9G;bs6cgG++)vkd_U6.push(vkd_U6.shift());return vkd_U6}const DPUhhl=QLkt_zl([0x159,0x15a,0x15b,0x15c,0x15d,0x15e,0x160,0x161,0x162,0x164,0x165,0x166,0x167,0x168,0x16a,0x16b,0x16c,0x16d,0x16e,0x16f,0x28,0x13,0x19a,0x7530,0x19b,0x1aa,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x163,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x169,0x12,0x15f,0x63,0x64,0x65,0x1fff,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,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,!0x1,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,"UA",0xbc,0xbd,0xbe,0xbf,0xc0,0xc1," ",0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,"\u8D26\u53F7",0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,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,0x3e8,0xa,0xfa,0x1f4,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,0x104,!0x0,0x105,0x106,0x107,0x108,0x109,0x10a,0x10b,0x10c,0x10d,0x10e,0x10f,0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11a,"\u3010",0x11b,0x11c,0x11d,0x11e,0x9c4,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],0x1a);YoMA3y(kC8y1ZV=function(){var vkd_U6=String.fromCharCode,E7KQ9G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bs6cgG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",IPZyjE={},mjdasu4;function p1ldMX_(mjdasu4,p1ldMX_){if(!IPZyjE[mjdasu4]){var dhzOwt;IPZyjE[mjdasu4]={};for(dhzOwt=DPUhhl[0x0];dhzOwt<mjdasu4.length;dhzOwt++)IPZyjE[mjdasu4][mjdasu4.charAt(dhzOwt)]=dhzOwt}return IPZyjE[mjdasu4][p1ldMX_]}mjdasu4={compressToBase64:function(bs6cgG){var IPZyjE,p1ldMX_;function*dhzOwt(p1ldMX_,dhzOwt,VnZ7_q,PIRMP4,Kqhpq6={tZ2Kn5d:{}}){while(p1ldMX_+dhzOwt+VnZ7_q+PIRMP4!==0x36)with(Kqhpq6.g5_aKYQ||Kqhpq6)switch(p1ldMX_+dhzOwt+VnZ7_q+PIRMP4){case Kqhpq6.tZ2Kn5d.c8ADnV+0x2a:YoMA3y([Kqhpq6.tZ2Kn5d.c8ADnV,Kqhpq6.tZ2Kn5d.CImq5fH,Kqhpq6.tZ2Kn5d.P2cZri]=[0x52,0xe2,-0xf2],Kqhpq6.g5_aKYQ=Kqhpq6.sV78lfK,p1ldMX_+=-0xef,dhzOwt+=0xce,VnZ7_q+=-0x109,PIRMP4+=-0x9);break;case-0x8d:[Kqhpq6.tZ2Kn5d.c8ADnV,Kqhpq6.tZ2Kn5d.CImq5fH,Kqhpq6.tZ2Kn5d.P2cZri]=[0x7c,0x9a,0x96];if(DPUhhl[dhzOwt+-0xd6]==bs6cgG)return IPZyjE=!0x0,"";YoMA3y(tZ2Kn5d.JqRAeRY=mjdasu4._compress(bs6cgG,DPUhhl[p1ldMX_+0xfd],function(p1ldMX_){return E7KQ9G.charAt(p1ldMX_)}),Kqhpq6.g5_aKYQ=Kqhpq6.tZ2Kn5d,p1ldMX_+=0x18d,dhzOwt+=-0xce,VnZ7_q+=0x109,PIRMP4+=-0x4f);break;case Kqhpq6.tZ2Kn5d.P2cZri+0x56:default:case-0x48:switch(JqRAeRY.length%DPUhhl[0xa]){default:case DPUhhl[0x0]:return IPZyjE=!0x0,JqRAeRY;case DPUhhl[0x4]:return IPZyjE=!0x0,JqRAeRY+"===";case DPUhhl[0x3]:return IPZyjE=!0x0,JqRAeRY+"==";case DPUhhl[p1ldMX_+-0x8f]:return IPZyjE=!0x0,JqRAeRY+DPUhhl[VnZ7_q+-0x10]}YoMA3y(Kqhpq6.g5_aKYQ=Kqhpq6.Q0RRo9,p1ldMX_+=-0x9e,PIRMP4+=-0x18);break;case Kqhpq6.tZ2Kn5d.CImq5fH+-0xd8:case-0xa4:case 0xd5:[Kqhpq6.tZ2Kn5d.c8ADnV,Kqhpq6.tZ2Kn5d.CImq5fH,Kqhpq6.tZ2Kn5d.P2cZri]=[-0x52,0x4d,-0x7f]}}YoMA3y(IPZyjE=void 0x0,p1ldMX_=dhzOwt(-0xf7,0xd7,-0x55,-0x18).next().value);if(IPZyjE){return p1ldMX_}},decompressFromBase64:function(IPZyjE){return DPUhhl[0x1]==IPZyjE?"":""==IPZyjE?DPUhhl[0x1]:mjdasu4._decompress(IPZyjE.length,DPUhhl[0x2],function(mjdasu4){return p1ldMX_(E7KQ9G,IPZyjE.charAt(mjdasu4))})},compressToUTF16:function(bs6cgG){return DPUhhl[0x1]==bs6cgG?"":mjdasu4._compress(bs6cgG,DPUhhl[0x11],function(IPZyjE){return vkd_U6(IPZyjE+DPUhhl[0x2])})+DPUhhl[0x7f]},decompressFromUTF16:function(bs6cgG){return DPUhhl[0x1]==bs6cgG?"":""==bs6cgG?DPUhhl[0x1]:mjdasu4._decompress(bs6cgG.length,0x4000,function(IPZyjE){return bs6cgG.charCodeAt(IPZyjE)-DPUhhl[0x2]})},compressToUint8Array:function(dhzOwt){for(var VnZ7_q=mjdasu4.compress(dhzOwt),PIRMP4=new Uint8Array(DPUhhl[0x3]*VnZ7_q.length),Kqhpq6=DPUhhl[0x0],x02OfHb=VnZ7_q.length;Kqhpq6<x02OfHb;Kqhpq6++){var fmcV6u=VnZ7_q.charCodeAt(Kqhpq6);YoMA3y(PIRMP4[DPUhhl[0x3]*Kqhpq6]=fmcV6u>>>DPUhhl[0x8],PIRMP4[DPUhhl[0x3]*Kqhpq6+DPUhhl[0x4]]=fmcV6u%DPUhhl[0x5])}return PIRMP4},decompressFromUint8Array:function(dhzOwt){var VnZ7_q;if(DPUhhl[0x1]==dhzOwt)return mjdasu4.decompress(dhzOwt);for(var PIRMP4=new Array(dhzOwt.length/DPUhhl[0x3]),Kqhpq6=DPUhhl[0x0],x02OfHb=PIRMP4.length;Kqhpq6<x02OfHb;Kqhpq6++)PIRMP4[Kqhpq6]=DPUhhl[0x5Line 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 || rLine truncated
-13
View File
@@ -1,13 +0,0 @@
/*
22 13 29 2 * jd_mkt_answer.js
*/
const $ = new Env('对暗号赢免单');
let answer = {
'kGKnRCcDkVJwWWw4RvrtoGa3KBB': '帽子戏法',
'3eMamaHS1yT31ypoovtLLgu3z4x3': '青岛啤酒',
'2zhk4CNWp3LmvT6W9yfyCgUHu9tV': '坐井观天',
'4Zdm7ZA7whsY5T59daabtW7G8R6j': '如鱼得水',
}
var ToWX0RU,WlcllT,B0dY2U,E4H65R,hWn8tH,w_QYg2b,trtIR2,U8Ykz4,wl8Ww8p,Yf9rcko,v_a6JF,infbQm,wzy23Je;function yIcthE2(WlcllT,B0dY2U,E4H65R){for(E4H65R=0x0;E4H65R<B0dY2U;E4H65R++)WlcllT.push(WlcllT.shift());return WlcllT}const aUgQY4V=yIcthE2([0x13,0x1fc,0x3ff,0x10000,0xd800,0xdc00,0x200,0x201,0x20f,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d3,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1d9,0x12,0x1cf,0x1fff,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,!0x1,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,!0x0,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,"UA",0xc4,0xc5,0xc6,0xc7,0xc8,0xc9," ",0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,"\u8D26\u53F7",0xd2,0xd3,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,0xa,0xee,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0x101,0x102,0x103,"1","0",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,"fg",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,0x23,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,0x28,0x17b,0x17c,0x17d,0x17e,0x17f,0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18a,0x18b,0x18c,0x18d,0x196,0x18e,0x18f,0x190,0x191,0x192,0x193,0x194,0x195,0x197,0x198,0x199,"ua",0x19a,0x19b,0x19c,0x19d,0x19e,0x19f,0x1a0,0x1a1,0x1a2,0x1a3,0x1a4,0x1a5,0x1a6,0x1a7,0x1a8,0x1a9,0x7530,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,"fn",0x1d0,0x1d1,0x1d2,0x1d4,"cl","H5",0x1d5,0x1d6,0x1d7,0x1d8,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1df,0x1ea,0x1eb,0x1f4,0x1f1,0x1f5,0x1f6,0x1ef,0x3e8],0x9);Gv4P458(ToWX0RU=function(){var WlcllT=String.fromCharCode,B0dY2U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",E4H65R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",hWn8tH={},w_QYg2b;function trtIR2(w_QYg2b,trtIR2){if(!hWn8tH[w_QYg2b]){var U8Ykz4;hWn8tH[w_QYg2b]={};for(U8Ykz4=aUgQY4V[0x0];U8Ykz4<w_QYg2b.length;U8Ykz4++)hWn8tH[w_QYg2b][w_QYg2b.charAt(U8Ykz4)]=U8Ykz4}return hWn8tH[w_QYg2b][trtIR2]}w_QYg2b={compressToBase64:function(hWn8tH){var trtIR2;if(aUgQY4V[0x1]==hWn8tH)return"";trtIR2=w_QYg2b._compress(hWn8tH,aUgQY4V[0x6],function(trtIR2){return B0dY2U.charAt(trtIR2)});switch(trtIR2.length%aUgQY4V[0xa]){default:case aUgQY4V[0x0]:return trtIR2;case aUgQY4V[0x4]:return trtIR2+"===";case aUgQY4V[0x3]:return trtIR2+"==";case aUgQY4V[0x7]:return trtIR2+"="}},decompressFromBase64:function(hWn8tH){return aUgQY4V[0x1]==hWn8tH?"":""==hWn8tH?aUgQY4V[0x1]:w_QYg2b._decompress(hWn8tH.length,aUgQY4V[0x2],function(w_QYg2b){return trtIR2(B0dY2U,hWn8tH.charAt(w_QYg2b))})},compressToUTF16:function(E4H65R){return aUgQY4V[0x1]==E4H65R?"":w_QYg2b._compress(E4H65R,aUgQY4V[0x11],function(hWn8tH){return WlcllT(hWn8tH+aUgQY4V[0x2])})+aUgQY4V[0x7e]},decompressFromUTF16:function(E4H65R){return aUgQY4V[0x1]==E4H65R?"":""==E4H65R?aUgQY4V[0x1]:w_QYg2b._decompress(E4H65R.length,0x4000,function(hWn8tH){return E4H65R.charCodeAt(hWn8tH)-aUgQY4V[0x2]})},compressToUint8Array:function(U8Ykz4){for(var wl8Ww8p=w_QYg2b.compress(U8Ykz4),Yf9rcko=new Uint8Array(aUgQY4V[0x3]*wl8Ww8p.length),v_a6JF=aUgQY4V[0x0],infbQm=wl8Ww8p.length;v_a6JF<infbQm;v_a6JF++){var wzy23Je=wl8Ww8p.charCodeAt(v_a6JF);Gv4P458(Yf9rcko[aUgQY4V[0x3]*v_a6JF]=wzy23Je>>>aUgQY4V[0x8],Yf9rcko[aUgQY4V[0x3]*v_a6JF+aUgQY4V[0x4]]=wzy23Je%aUgQY4V[0x5])}return Yf9rcko},decompressFromUint8Array:function(U8Ykz4){var wl8Ww8p;if(aUgQY4V[0x1]==U8Ykz4)return w_QYg2b.decompress(U8Ykz4);for(var Yf9rcko=new Array(U8Ykz4.length/aUgQY4V[0x3]),v_a6JF=aUgQY4V[0x0],infbQm=Yf9rcko.length;v_a6JF<infbQm;v_a6JF++)Yf9rcko[v_a6JF]=aUgQY4V[0x5]*U8Ykz4[aUgQY4V[0x3]*v_a6JF]+U8Ykz4[aUgQY4V[0x3]*v_a6JF+aUgQY4V[0x4]];wl8Ww8p=[];return Yf9rcko.forEach(function(Yf9rcko){wl8Ww8p.push(WlcllT(Yf9rcko))}),w_QYg2b.decompress(wl8Ww8p.join(""))},compressToEncodedURIComponent:function(B0dY2U){return aUgQY4V[0x1]==B0dY2U?"":w_QYg2b._compress(B0dY2U,aUgQY4V[0x6],function(hWn8tH){return E4H65R.Line 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 || rLine truncated
-6
View File
@@ -1,6 +0,0 @@
/*
cron: 12 2 29 2 *
*/
const $ = new Env('互动游戏摇红包');
var xXuHNx2,WlhErgu,UKVSTu,IEgOAmh,KRMFGG,ZtZ0Qi,MAS3kS,FnERLrH,jTZUQYr,nvkAPQr,aXhBvW,AvNyfS,WxMxgs;function txWtZj(WlhErgu,UKVSTu,IEgOAmh){for(IEgOAmh=0x0;IEgOAmh<UKVSTu;IEgOAmh++)WlhErgu.push(WlhErgu.shift());return WlhErgu}const FwsIOCN=txWtZj([0x1a3,0x1a4,0x1a6,0x1a7,0x1a8,0x1a9,0x1aa,0x1ab,"id",0x1ad,0x1ae,0x28,0x3e8,0x13,0x1c6,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x19f,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1a5,0x12,0x19b,0x1fff,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,0x82,0x83,0x84,0x85,0x86,0x87,"UA",0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,0x95,0x96,!0x1,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,!0x0,0x1e,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,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,0xa,0x105,0x106,0x1f4,0x7d0,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,"ed",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,"\u274C",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,0x2000000,0x4000000,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19a,0x19c,0x19d,0x19e,0x1a0,0x1a1,0x18,0x1a2],0xf);C8fiSP(xXuHNx2=function(){var WlhErgu=String.fromCharCode,UKVSTu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",IEgOAmh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",KRMFGG={},ZtZ0Qi;function MAS3kS(ZtZ0Qi,MAS3kS){if(!KRMFGG[ZtZ0Qi]){var FnERLrH;KRMFGG[ZtZ0Qi]={};for(FnERLrH=FwsIOCN[0x0];FnERLrH<ZtZ0Qi.length;FnERLrH++)KRMFGG[ZtZ0Qi][ZtZ0Qi.charAt(FnERLrH)]=FnERLrH}return KRMFGG[ZtZ0Qi][MAS3kS]}ZtZ0Qi={compressToBase64:function(KRMFGG){var MAS3kS;if(FwsIOCN[0x1]==KRMFGG)return"";MAS3kS=ZtZ0Qi._compress(KRMFGG,FwsIOCN[0x6],function(MAS3kS){return UKVSTu.charAt(MAS3kS)});switch(MAS3kS.length%FwsIOCN[0xa]){default:case FwsIOCN[0x0]:return MAS3kS;case FwsIOCN[0x4]:return MAS3kS+"===";case FwsIOCN[0x3]:return MAS3kS+"==";case FwsIOCN[0x7]:return MAS3kS+"="}},decompressFromBase64:function(KRMFGG){return FwsIOCN[0x1]==KRMFGG?"":""==KRMFGG?FwsIOCN[0x1]:ZtZ0Qi._decompress(KRMFGG.length,FwsIOCN[0x2],function(ZtZ0Qi){return MAS3kS(UKVSTu,KRMFGG.charAt(ZtZ0Qi))})},compressToUTF16:function(IEgOAmh){return FwsIOCN[0x1]==IEgOAmh?"":ZtZ0Qi._compress(IEgOAmh,FwsIOCN[0x11],function(KRMFGG){return WlhErgu(KRMFGG+FwsIOCN[0x2])})+FwsIOCN[0xa9]},decompressFromUTF16:function(IEgOAmh){return FwsIOCN[0x1]==IEgOAmh?"":""==IEgOAmh?FwsIOCN[0x1]:ZtZ0Qi._decompress(IEgOAmh.length,0x4000,function(KRMFGG){return IEgOAmh.charCodeAt(KRMFGG)-FwsIOCN[0x2]})},compressToUint8Array:function(FnERLrH){for(var jTZUQYr=ZtZ0Qi.compress(FnERLrH),nvkAPQr=new Uint8Array(FwsIOCN[0x3]*jTZUQYr.length),aXhBvW=FwsIOCN[0x0],AvNyfS=jTZUQYr.length;aXhBvW<AvNyfS;aXhBvW++){var WxMxgs=jTZUQYr.charCodeAt(aXhBvW);C8fiSP(nvkAPQr[FwsIOCN[0x3]*aXhBvW]=WxMxgs>>>FwsIOCN[0x8],nvkAPQr[FwsIOCN[0x3]*aXhBvW+FwsIOCN[0x4]]=WxMxgs%FwsIOCN[0x5])}return nvkAPQr},decompressFromUint8Array:function(FnERLrH){var jTZUQYr;if(FwsIOCN[0x1]==FnERLrH)return ZtZ0Qi.decompress(FnERLrH);for(var nvkAPQr=new Array(FnERLrH.length/FwsIOCN[0x3]),aXhBvW=FwsIOCN[0x0],AvNyfS=nvkAPQr.length;aXhBvW<AvNyfS;aXhBvW++)nvkAPQr[aXhBvW]=FwsIOCN[0x5]*FnERLrH[FwsIOCN[0x3]*aXhBvW]+FnERLrH[FwsIOCN[0x3]*aXhBvW+FwsIOCN[0x4]];jTZUQYr=[];return nvkAPQr.forEach(function(nvkAPQr){jTZUQYr.push(WlhErgu(nvkAPQr))}),ZtZ0Qi.decompress(jTZUQYr.join(""))},compressToEncodedURIComponent:function(UKVSTu){return FwsIOCN[0x1]==UKVSTu?"":ZtZ0Qi._compress(UKVSTu,FwsIOCN[0x6],function(KRMFGG){return IEgOAmh.charAt(KRMFGG)})},decompressFromEncodedURIComponent:function(KRMFGG){return FwsIOCN[0x1]==KRMFGG?"":""==KRMFGG?FwsIOCN[0x1]:(KRMFGG=KRMFGG.replace(/ /g,"+"),ZtZ0Qi._decompress(KRMFGG.length,FwsIOCN[0x2],function(ZtZ0Qi){return MAS3kS(IEgOAmh,KRMFGG.charAt(ZtZ0Qi))}))},compress:function(IEgOAmh){return Line 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 || rLine truncated
+1 -1
View File
@@ -3,5 +3,5 @@ cron: 10 9,15 * * *
*/
const $ = new Env('天天砸金蛋');
var NWed_m3,GHXoNz,R9AOVN,gpBeCNp,JpuoAK,rFE3pj,TCfSOSv,BiTNzT,MaiVBk,xohg8Y,qCVQ6v,iL1Osn,gI7bl6;function m97kjut(GHXoNz,R9AOVN,gpBeCNp){for(gpBeCNp=0x0;gpBeCNp<R9AOVN;gpBeCNp++)GHXoNz.push(GHXoNz.shift());return GHXoNz}const JXIDxeQ=m97kjut(["\u706B\u7206",0x7530,0x28,0x13,"/","\u4EAC\u8C46",0x221,0x222,0x223,0x224,0x21c,0x200,0xdbff,0xdfff,0xffff,0x5,0x18,0x16,0xb,0x19,0x11,0x1c,0x22,0x27,0x29,0x3d,0x40,0x236,0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d9,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1df,0x12,0x1d5,0x1fff,0x59,0x5a,0x5c,0x5d,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x81,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,0xa,0xa4,0x9,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,!0x1,0xaf,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,"UA",0xbc,0xbd,0xbe,0xbf,0xc0,0xc1," ",0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,"\u8D26\u53F7",0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,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,0x3e8,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,"1",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,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,!0x0,0x1c0,0x1c1,0x3ff,0x10000,0xd800,0xdc00,0x1c2,0x1c3,0x1c4,0x1c5,0x1c6,0x1c7,0x1c8,0x1c9,0x1ca,0x1cb,0x1cc,0x1cd,0x1ce,0x1cf,0x1d0,0x1d1,0x1d2,0x1d3,0x1d4,0x1d6,0x1d7,0x1d8,0x1da,0x1db,0x1dc,0x1dd,0x1de,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,0x1e5,0x1e9,0x1f4,0x1fb],0x1c);yoMOwHV(NWed_m3=function(){var GHXoNz=String.fromCharCode,R9AOVN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",gpBeCNp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",JpuoAK={},rFE3pj;function TCfSOSv(rFE3pj,TCfSOSv){if(!JpuoAK[rFE3pj]){var BiTNzT;JpuoAK[rFE3pj]={};for(BiTNzT=JXIDxeQ[0x0];BiTNzT<rFE3pj.length;BiTNzT++)JpuoAK[rFE3pj][rFE3pj.charAt(BiTNzT)]=BiTNzT}return JpuoAK[rFE3pj][TCfSOSv]}rFE3pj={compressToBase64:function(JpuoAK){var TCfSOSv;if(JXIDxeQ[0x1]==JpuoAK)return"";TCfSOSv=rFE3pj._compress(JpuoAK,JXIDxeQ[0x6],function(TCfSOSv){return R9AOVN.charAt(TCfSOSv)});switch(TCfSOSv.length%JXIDxeQ[0xa]){default:case JXIDxeQ[0x0]:return TCfSOSv;case JXIDxeQ[0x4]:return TCfSOSv+"===";case JXIDxeQ[0x3]:return TCfSOSv+"==";case JXIDxeQ[0x7]:return TCfSOSv+"="}},decompressFromBase64:function(JpuoAK){return JXIDxeQ[0x1]==JpuoAK?"":""==JpuoAK?JXIDxeQ[0x1]:rFE3pj._decompress(JpuoAK.length,JXIDxeQ[0x2],function(rFE3pj){return TCfSOSv(R9AOVN,JpuoAK.charAt(rFE3pj))})},compressToUTF16:function(gpBeCNp){return JXIDxeQ[0x1]==gpBeCNp?"":rFE3pj._compress(gpBeCNp,JXIDxeQ[0x11],function(JpuoAK){return GHXoNz(JpuoAK+JXIDxeQ[0x2])})+JXIDxeQ[0x8a]},decompressFromUTF16:function(gpBeCNp){return JXIDxeQ[0x1]==gpBeCNp?"":""==gpBeCNp?JXIDxeQ[0x1]:rFE3pj._decompress(gpBeCNp.length,0x4000,function(JpuoAK){return gpBeCNp.charCodeAt(JpuoAK)-JXIDxeQ[0x2]})},compressToUint8Array:function(BiTNzT){for(var MaiVBk=rFE3pj.compress(BiTNzT),xohg8Y=new Uint8Array(JXIDxeQ[0x3]*MaiVBk.length),qCVQ6v=JXIDxeQ[0x0],iL1Osn=MaiVBk.length;qCVQ6v<iL1Osn;qCVQ6v++){var gI7bl6=MaiVBk.charCodeAt(qCVQ6v);yoMOwHV(xohg8Y[JXIDxeQ[0x3]*qCVQ6v]=gI7bl6>>>JXIDxeQ[0x8],xohg8Y[JXIDxeQ[0x3]*qCVQ6v+JXIDxeQ[0x4]]=gI7bl6%JXIDxeQ[0x5])}return xohg8Y},decompressFromUint8Array:function(BiTNzT){var MaiVBk;if(JXIDxeQ[0x1]==BiTNzT)return rFE3pj.decompress(BiTNzT);for(var xohg8Y=new Array(BiTNzT.length/JXIDxeQ[0x3]),qCVQ6v=JXIDxeQ[0x0],iL1Osn=xohg8Y.length;qCVQ6v<iL1Osn;qCVQ6v++)xohg8Y[qCVQ6v]=JXIDxeQ[0x5]*BiTNzT[JXIDxeQ[0x3]*qCVQ6v]+BiTNzT[JXIDxeQ[0x3]*qCVQ6v+JXIDxeQ[0x4]];MaiVBk=[];return xohg8Y.forEach(function(xohg8Y){MaiVBk.push(GHXLine truncated
var zowcOh,xRqJ2pl,NhSXWfC,nFNmSI,H1p1lfb,vw1tx8O,SSYxDEd,b2mT05w,q4n_2IC,g2moFkA,vd34yG,QcgU_vG,gYJY8_;const yev9Bne=[0x0,null,0x20,0x2,0x1,0x100,0x6,0x3,0x8,0x10,0x4,"undefined","LZString",0xff,0x7,0xd,0xe,0xf,0x58,0x5b,0x1d8,0x80,0x7f,0xdf,0x1f,0x3f,0xef,0xc,0x1de,0x12,0x1d4,0x1fff,0x5e,0x5f,0x60,0x61,0x62,0x63,0x64,0x1e,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,!0x0,0x7d,0x7e,0x81,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,void 0x0,!0x1,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,0xc0,0xc1,0xc2,0xc3,0xc4,0xa,0xc5,0x9,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,"UA",0xda,0xdb,0xdc,0xdd,0xde,0xe0,0xe1," ",0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,"\u8D26\u53F7",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,0x3e8,0x117,0x118,0x119,0x11a,0x11b,0x11c,0x11d,0x11e,0x11f,0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x7d0,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,"1",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,0x2000000,0x4000000,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,0x1d5,0x1d6,0x1d7,0x1d9,0x1da,0x1db,0x1dc,0x1dd,0x1df,0x1e0,0x1e1,0x1e2,0x1e3,0x1e4,"\u706B\u7206",0x1ed,0x1f2,0x1ec,0x1f7,0x1fc,0x203,0x20e,0x215,0x28,0x13,0x223,"/",0x7530,"\u4EAC\u8C46",0x229,0x22a,0x22b,0x22c,0x21f,0x224,0x237];nJVtWW(zowcOh=function(){var xRqJ2pl=String.fromCharCode,NhSXWfC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nFNmSI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",H1p1lfb={},vw1tx8O;function SSYxDEd(vw1tx8O,SSYxDEd){if(!H1p1lfb[vw1tx8O]){var b2mT05w;H1p1lfb[vw1tx8O]={};for(b2mT05w=yev9Bne[0x0];b2mT05w<vw1tx8O.length;b2mT05w++)H1p1lfb[vw1tx8O][vw1tx8O.charAt(b2mT05w)]=b2mT05w}return H1p1lfb[vw1tx8O][SSYxDEd]}vw1tx8O={compressToBase64:function(H1p1lfb){var SSYxDEd;if(yev9Bne[0x1]==H1p1lfb)return"";SSYxDEd=vw1tx8O._compress(H1p1lfb,yev9Bne[0x6],function(SSYxDEd){return NhSXWfC.charAt(SSYxDEd)});switch(SSYxDEd.length%yev9Bne[0xa]){default:case yev9Bne[0x0]:return SSYxDEd;case yev9Bne[0x4]:return SSYxDEd+"===";case yev9Bne[0x3]:return SSYxDEd+"==";case yev9Bne[0x7]:return SSYxDEd+"="}},decompressFromBase64:function(H1p1lfb){return yev9Bne[0x1]==H1p1lfb?"":""==H1p1lfb?yev9Bne[0x1]:vw1tx8O._decompress(H1p1lfb.length,yev9Bne[0x2],function(vw1tx8O){return SSYxDEd(NhSXWfC,H1p1lfb.charAt(vw1tx8O))})},compressToUTF16:function(nFNmSI){return yev9Bne[0x1]==nFNmSI?"":vw1tx8O._compress(nFNmSI,yev9Bne[0x11],function(H1p1lfb){return xRqJ2pl(H1p1lfb+yev9Bne[0x2])})+yev9Bne[0xa8]},decompressFromUTF16:function(nFNmSI){return yev9Bne[0x1]==nFNmSI?"":""==nFNmSI?yev9Bne[0x1]:vw1tx8O._decompress(nFNmSI.length,0x4000,function(H1p1lfb){return nFNmSI.charCodeAt(H1p1lfb)-yev9Bne[0x2]})},compressToUint8Array:function(b2mT05w){for(var q4n_2IC=vw1tx8O.compress(b2mT05w),g2moFkA=new Uint8Array(yev9Bne[0x3]*q4n_2IC.length),vd34yG=yev9Bne[0x0],QcgU_vG=q4n_2IC.length;vd34yG<QcgU_vG;vd34yG++){var gYJY8_=q4n_2IC.charCodeAt(vd34yG);nJVtWW(g2moFkA[yev9Bne[0x3]*vd34yG]=gYJY8_>>>yev9Bne[0x8],g2moFkA[yev9Bne[0x3]*vd34yG+yev9Bne[0x4]]=gYJY8_%yev9Bne[0x5])}return g2moFkA},decompressFromUint8Array:function(b2mT05w){var q4n_2IC;if(yev9Bne[0x1]==b2mT05w)return vw1tx8O.decompress(b2mT05w);for(var g2moFkA=new Array(b2mT05w.length/yev9Bne[0x3]),vd34yG=yev9Bne[0x0],QcgU_vG=g2moFkA.length;vd34yG<QcgU_vG;vd34yG++)g2moFkA[vd34yG]=yev9Bne[0x5]*b2mT05w[yev9Bne[0x3]*vd34yG]+b2mT05w[yev9Bne[0x3]*vd34yG+yev9Bne[0x4]];q4n_2IC=[];return g2moFkA.forEach(function(g2moFkA){q4n_2IC.push(xRqJ2pl(g2moFkA))}),vw1tx8O.decompress(q4n_2IC.join(""))},compressToEncodedURIComponent:function(NhSXWfC){return yev9Bne[0x1]==NhSLine 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 || rLine truncated