forked from gys619/banana1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gua_opencard39.js
executable file
·48 lines (35 loc) · 49.8 KB
/
gua_opencard39.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
5.18~12.31 大牌联合 瓜分京豆 [gua_opencard39.js]
新增开卡脚本 (脚本已加密
一次性脚本
邀请一人10豆 被邀请也有10豆(有可能没有豆
开2张卡 抽奖可能获得10京豆(有可能有抽到空气💨
加购2京豆 (有可能是空气💨 默认不加购 如需加购请设置环境变量[guaopencard_addSku39]为"true"
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard39="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait39="0"
All变量适用
————————————————
入口:[ 5.18~12.31 大牌联合 瓜分京豆 (https://lzdz1-isv.isvjcloud.com/dingzhi/commonUse/openCard/activity?activityId=581a27b8458743069b802351cdbae6b2&shareUuid=e7e091977fd9460a96a6ad46bc80d51b)]
请求太频繁会被黑ip
过10分钟再执行
============Quantumultx===============
[task_local]
#5.18~12.31 大牌联合 瓜分京豆
47 9 * 9-12 * https://raw.githubusercontent.com/smiek2121/scripts/master/gua_opencard39.js, tag=5.18~12.31 大牌联合 瓜分京豆, enabled=true
*/
let guaopencard_addSku = "false"
let guaopencard = "false"
let guaopenwait = "0"
const $ = new Env('5.18~12.31 大牌联合 瓜分京豆');
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
//IOS等用户直接用NobyDa的jd cookie
var _0xodT='jsjiami.com.v6',_0x5302=[_0xodT,'\x69\x73\x4e\x6f\x64\x65','\x6b\x65\x79\x73','\x66\x6f\x72\x45\x61\x63\x68','\x70\x75\x73\x68','\x65\x6e\x76','\x4a\x44\x5f\x44\x45\x42\x55\x47','\x66\x61\x6c\x73\x65','\x6c\x6f\x67','\x67\x65\x74\x64\x61\x74\x61','\x43\x6f\x6f\x6b\x69\x65\x4a\x44','\x43\x6f\x6f\x6b\x69\x65\x4a\x44\x32','\x43\x6f\x6f\x6b\x69\x65\x73\x4a\x44','\x6d\x61\x70','\x63\x6f\x6f\x6b\x69\x65','\x66\x69\x6c\x74\x65\x72','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x33\x39','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x5f\x41\x6c\x6c','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x33\x39','\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x41\x6c\x6c','\x67\x75\x61\x6f\x70\x65\x6e\x77\x61\x69\x74\x33\x39','\x67\x75\x61\x6f\x70\x65\x6e\x77\x61\x69\x74\x5f\x41\x6c\x6c','\x68\x6f\x74\x46\x6c\x61\x67','\x6f\x75\x74\x46\x6c\x61\x67','\x61\x63\x74\x69\x76\x69\x74\x79\x45\x6e\x64','\x74\x72\x75\x65','\u5982\u9700\u6267\u884c\u811a\u672c\u8bf7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\x5b\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x33\x39\x5d\u4e3a\x22\x74\x72\x75\x65\x22','\x6d\x73\x67','\x6e\x61\x6d\x65','\u3010\u63d0\u793a\u3011\u8bf7\u5148\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65\x0a\u76f4\u63a5\u4f7f\u7528\x4e\x6f\x62\x79\x44\x61\u7684\u4eac\u4e1c\u7b7e\u5230\u83b7\u53d6','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x65\x61\x6e\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f','\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64','\x35\x38\x31\x61\x32\x37\x62\x38\x34\x35\x38\x37\x34\x33\x30\x36\x39\x62\x38\x30\x32\x33\x35\x31\x63\x64\x62\x61\x65\x36\x62\x32','\x73\x68\x61\x72\x65\x55\x75\x69\x64','\x65\x37\x65\x30\x39\x31\x39\x37\x37\x66\x64\x39\x34\x36\x30\x61\x39\x36\x61\x36\x61\x64\x34\x36\x62\x63\x38\x30\x64\x35\x31\x62','\u5165\u53e3\x3a\x0a\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x26\x73\x68\x61\x72\x65\x55\x75\x69\x64\x3d','\x6c\x65\x6e\x67\x74\x68','\x55\x73\x65\x72\x4e\x61\x6d\x65','\x6d\x61\x74\x63\x68','\x69\x6e\x64\x65\x78','\x62\x65\x61\x6e','\x6e\x69\x63\x6b\x4e\x61\x6d\x65','\x0a\x0a\x2a\x2a\x2a\x2a\x2a\x2a\u5f00\u59cb\u3010\u4eac\u4e1c\u8d26\u53f7','\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x2a\x0a','\x61\x63\x74\x6f\x72\x55\x75\x69\x64','\u6b64\x69\x70\u5df2\u88ab\u9650\u5236\uff0c\u8bf7\u8fc7\x31\x30\u5206\u949f\u540e\u518d\u6267\u884c\u811a\u672c','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x68\x61\x73\x45\x6e\x64','\x65\x6e\x64\x54\x69\x6d\x65','\x54\x6f\x6b\x65\x6e','\x50\x69\x6e','\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72','\u83b7\u53d6\x5b\x74\x6f\x6b\x65\x6e\x5d\u5931\u8d25\uff01','\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65\u5931\u8d25','\u6b64\x69\x70\u5df2\u88ab\u9650\u5236\uff0c\u8bf7\u8fc7\x31\x30\u5206\u949f\u540e\u518d\u6267\u884c\u811a\u672c\x0a','\x67\x65\x74\x53\x69\x6d\x70\x6c\x65\x41\x63\x74\x49\x6e\x66\x6f\x56\x6f','\x67\x65\x74\x4d\x79\x50\x69\x6e\x67','\u83b7\u53d6\x5b\x50\x69\x6e\x5d\u5931\u8d25\uff01','\x61\x63\x63\x65\x73\x73\x4c\x6f\x67\x57\x69\x74\x68\x41\x44','\x67\x65\x74\x55\x73\x65\x72\x49\x6e\x66\x6f','\x61\x63\x74\x69\x76\x69\x74\x79\x43\x6f\x6e\x74\x65\x6e\x74','\u83b7\u53d6\u4e0d\u5230\x5b\x61\x63\x74\x6f\x72\x55\x75\x69\x64\x5d\u9000\u51fa\u6267\u884c\uff0c\u8bf7\u91cd\u65b0\u6267\u884c','\x6e\x6f\x77','\u6d3b\u52a8\u7ed3\u675f','\x64\x72\x61\x77\x43\x6f\x6e\x74\x65\x6e\x74','\x77\x61\x69\x74','\x6f\x70\x65\x6e\x4c\x69\x73\x74','\x61\x6c\x6c\x4f\x70\x65\x6e\x43\x61\x72\x64','\x63\x68\x65\x63\x6b\x4f\x70\x65\x6e\x43\x61\x72\x64','\u5f00\u5361\u4efb\u52a1','\x6f\x70\x65\x6e\x43\x61\x72\x64','\x73\x74\x61\x74\x75\x73','\x6a\x6f\x69\x6e\x56\x65\x6e\x64\x65\x72\x49\x64','\x76\x61\x6c\x75\x65','\x72\x61\x6e\x64\x6f\x6d','\u5df2\u5168\u90e8\u5f00\u5361','\x6f\x70\x65\x6e\x43\x61\x72\x64\x53\x63\x6f\x72\x65\x31','\x73\x74\x61\x72\x74\x44\x72\x61\x77','\x6f\x70\x65\x6e\x43\x61\x72\x64\x53\x63\x6f\x72\x65\x32','\u70ed\u95e8\u6587\u7ae0\x3a\x20','\x76\x69\x65\x77\x56\x69\x64\x65\x6f','\u6d4f\u89c8\u6587\u7ae0\x3a\x20','\x74\x6f\x53\x68\x6f\x70','\u6d4f\u89c8\u5e97\u94fa\x3a\x20','\x76\x69\x73\x69\x74\x53\x6b\x75','\x76\x69\x73\x69\x74\x53\x6b\x75\x4c\x69\x73\x74','\x76\x69\x73\x69\x74\x53\x6b\x75\x56\x61\x6c\x75\x65','\u5173\u6ce8\x3a\x20','\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70','\u52a0\u8d2d\x3a\x20','\x61\x64\x64\x53\x6b\x75','\u5982\u9700\u52a0\u8d2d\u8bf7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\x5b\x67\x75\x61\x6f\x70\x65\x6e\x63\x61\x72\x64\x5f\x61\x64\x64\x53\x6b\x75\x33\x39\x5d\u4e3a\x22\x74\x72\x75\x65\x22','\x67\x65\x74\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x48\x61\x73\x43\x6f\x75\x70\x6f\x6e','\x67\x65\x74\x53\x68\x61\x72\x65\x52\x65\x63\x6f\x72\x64','\u5f53\u524d\u52a9\u529b\x3a','\u540e\u9762\u7684\u53f7\u90fd\u4f1a\u52a9\u529b\x3a','\u4f11\u606f\x31\u5206\u949f\uff0c\u522b\u88ab\u9ed1\x69\x70\u4e86\x0a\u53ef\u6301\u7eed\u53d1\u5c55','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d','\x50\x4f\x53\x54','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f\x63\x6c\x69\x65\x6e\x74\x2e\x61\x63\x74\x69\x6f\x6e\x3f\x66\x75\x6e\x63\x74\x69\x6f\x6e\x49\x64\x3d\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72','\x62\x6f\x64\x79\x3d\x25\x37\x42\x25\x32\x32\x75\x72\x6c\x25\x32\x32\x25\x33\x41\x25\x32\x32\x68\x74\x74\x70\x73\x25\x33\x41\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x25\x32\x32\x25\x32\x43\x25\x32\x32\x69\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32\x25\x32\x32\x25\x37\x44\x26\x75\x75\x69\x64\x3d\x33\x62\x66\x39\x36\x37\x61\x36\x66\x31\x66\x64\x62\x34\x66\x63\x64\x33\x34\x38\x37\x65\x31\x39\x37\x61\x38\x64\x64\x32\x64\x33\x65\x66\x63\x38\x32\x30\x39\x36\x26\x63\x6c\x69\x65\x6e\x74\x3d\x61\x70\x70\x6c\x65\x26\x63\x6c\x69\x65\x6e\x74\x56\x65\x72\x73\x69\x6f\x6e\x3d\x31\x30\x2e\x31\x2e\x34\x26\x73\x74\x3d\x31\x36\x33\x32\x37\x38\x39\x30\x33\x33\x32\x34\x31\x26\x73\x76\x3d\x31\x31\x31\x26\x73\x69\x67\x6e\x3d\x64\x66\x33\x64\x31\x30\x33\x63\x35\x31\x63\x32\x63\x39\x65\x64\x33\x65\x31\x33\x61\x31\x39\x65\x63\x63\x66\x38\x36\x66\x30\x66','\x2f\x64\x7a\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x53\x69\x6d\x70\x6c\x65\x41\x63\x74\x49\x6e\x66\x6f\x56\x6f','\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x2f\x63\x75\x73\x74\x6f\x6d\x65\x72\x2f\x67\x65\x74\x4d\x79\x50\x69\x6e\x67','\x75\x73\x65\x72\x49\x64\x3d','\x73\x68\x6f\x70\x49\x64','\x76\x65\x6e\x64\x65\x72\x49\x64','\x26\x74\x6f\x6b\x65\x6e\x3d','\x26\x66\x72\x6f\x6d\x54\x79\x70\x65\x3d\x41\x50\x50','\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x61\x63\x63\x65\x73\x73\x4c\x6f\x67\x57\x69\x74\x68\x41\x44','\x2f\x64\x72\x61\x77\x43\x65\x6e\x74\x65\x72\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x76\x65\x6e\x64\x65\x72\x49\x64\x3d','\x26\x63\x6f\x64\x65\x3d\x39\x39\x26\x70\x69\x6e\x3d','\x26\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x26\x70\x61\x67\x65\x55\x72\x6c\x3d','\x26\x73\x75\x62\x54\x79\x70\x65\x3d\x61\x70\x70\x26\x61\x64\x53\x6f\x75\x72\x63\x65\x3d','\x2f\x77\x78\x41\x63\x74\x69\x6f\x6e\x43\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x55\x73\x65\x72\x49\x6e\x66\x6f','\x70\x69\x6e\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x43\x6f\x6e\x74\x65\x6e\x74','\x26\x70\x69\x6e\x3d','\x26\x70\x69\x6e\x49\x6d\x67\x3d','\x61\x74\x74\x72\x54\x6f\x75\x58\x69\x61\x6e\x67','\x26\x6e\x69\x63\x6b\x3d','\x6e\x69\x63\x6b\x6e\x61\x6d\x65','\x26\x63\x6a\x79\x78\x50\x69\x6e\x3d\x26\x63\x6a\x68\x79\x50\x69\x6e\x3d\x26\x73\x68\x61\x72\x65\x55\x75\x69\x64\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x74\x61\x73\x6b\x61\x63\x74\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x63\x6f\x6d\x6d\x6f\x6e\x2f\x64\x72\x61\x77\x43\x6f\x6e\x74\x65\x6e\x74','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x63\x68\x65\x63\x6b\x4f\x70\x65\x6e\x43\x61\x72\x64','\x26\x61\x63\x74\x6f\x72\x55\x75\x69\x64\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x73\x74\x61\x72\x74\x44\x72\x61\x77','\x26\x74\x79\x70\x65\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70','\x26\x74\x61\x73\x6b\x54\x79\x70\x65\x3d\x32\x33\x26\x74\x61\x73\x6b\x56\x61\x6c\x75\x65\x3d\x32\x33','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x73\x61\x76\x65\x54\x61\x73\x6b','\x26\x74\x61\x73\x6b\x54\x79\x70\x65\x3d','\x26\x74\x61\x73\x6b\x56\x61\x6c\x75\x65\x3d','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x74\x61\x73\x6b\x61\x63\x74\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x44\x72\x61\x77\x52\x65\x63\x6f\x72\x64\x48\x61\x73\x43\x6f\x75\x70\x6f\x6e','\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x74\x61\x73\x6b\x61\x63\x74\x2f\x63\x6f\x6d\x6d\x6f\x6e\x2f\x67\x65\x74\x53\x68\x61\x72\x65\x52\x65\x63\x6f\x72\x64','\x70\x6f\x73\x74','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x74\x6f\x53\x74\x72','\x20\x41\x50\x49\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u8def\u91cd\u8bd5','\x70\x61\x72\x73\x65','\x20\u6267\u884c\u4efb\u52a1\u5f02\u5e38','\x72\x75\x6e\x46\x61\x6c\x61\x67','\x6f\x62\x6a\x65\x63\x74','\x65\x72\x72\x63\x6f\x64\x65','\x74\x6f\x6b\x65\x6e','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x6d\x65\x73\x73\x61\x67\x65','\x69\x73\x76\x4f\x62\x66\x75\x73\x63\x61\x74\x6f\x72\x20','\x72\x65\x73\x75\x6c\x74','\x64\x61\x74\x61','\x65\x72\x72\x6f\x72\x4d\x65\x73\x73\x61\x67\x65','\x73\x65\x63\x72\x65\x74\x50\x69\x6e','\x79\x75\x6e\x4d\x69\x64\x49\x6d\x61\x67\x65\x55\x72\x6c','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x6d\x67\x31\x30\x2e\x33\x36\x30\x62\x75\x79\x69\x6d\x67\x2e\x63\x6f\x6d\x2f\x69\x6d\x67\x7a\x6f\x6e\x65\x2f\x6a\x66\x73\x2f\x74\x31\x2f\x37\x30\x32\x30\x2f\x32\x37\x2f\x31\x33\x35\x31\x31\x2f\x36\x31\x34\x32\x2f\x35\x63\x35\x31\x33\x38\x64\x38\x45\x34\x64\x66\x32\x65\x37\x36\x34\x2f\x35\x61\x31\x32\x31\x36\x61\x33\x61\x35\x30\x34\x33\x63\x35\x64\x2e\x70\x6e\x67','\x61\x6c\x6c\x53\x74\x61\x74\x75\x73','\x73\x65\x74\x74\x69\x6e\x67\x73','\x6d\x65\x6d\x62\x65\x72\x43\x61\x72\x64','\x66\x6f\x6c\x6c\x6f\x77\x53\x68\x6f\x70\x56\x61\x6c\x75\x65','\x61\x64\x64\x53\x6b\x75\x56\x61\x6c\x75\x65','\x63\x61\x72\x64\x4c\x69\x73\x74\x31','\x63\x61\x72\x64\x4c\x69\x73\x74\x32','\x73\x63\x6f\x72\x65\x31','\x73\x63\x6f\x72\x65\x32','\x61\x64\x64\x42\x65\x61\x6e\x4e\x75\x6d','\x73\x65\x6e\x64\x53\x74\x61\x74\x75\x73','\x62\x65\x61\x6e\x4e\x75\x6d\x4d\x65\x6d\x62\x65\x72','\x61\x73\x73\x69\x73\x74\x53\x65\x6e\x64\x53\x74\x61\x74\x75\x73','\x20\u989d\u5916\u83b7\u5f97\x3a','\u70ed\u95e8\u6587\u7ae0','\u6d4f\u89c8\u6587\u7ae0','\u6d4f\u89c8\u5e97\u94fa','\x64\x72\x61\x77\x4f\x6b','\x64\x72\x61\x77\x49\x6e\x66\x6f\x54\x79\x70\x65','\u7a7a\u6c14\ud83d\udca8','\u83b7\u5f97\x3a','\u6211\u7684\u5956\u54c1\uff1a','\u9080\u8bf7\u597d\u53cb','\x69\x6e\x66\x6f\x4e\x61\x6d\x65','\x72\x65\x70\x6c\x61\x63\x65','\x69\x6e\x66\x6f\x54\x79\x70\x65','\u9080\u8bf7\u597d\u53cb\x28','\x53\x68\x61\x72\x65\x43\x6f\x75\x6e\x74','\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x20\u4f60\u9080\u8bf7\u4e86\x3a','\x2d\x3e\x20','\x69\x6e\x64\x65\x78\x4f\x66','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\x6f\x6e','\x67\x7a\x69\x70\x2c\x20\x64\x65\x66\x6c\x61\x74\x65\x2c\x20\x62\x72','\x7a\x68\x2d\x63\x6e','\x6b\x65\x65\x70\x2d\x61\x6c\x69\x76\x65','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\x2d\x77\x77\x77\x2d\x66\x6f\x72\x6d\x2d\x75\x72\x6c\x65\x6e\x63\x6f\x64\x65\x64','\x58\x4d\x4c\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74','\x52\x65\x66\x65\x72\x65\x72','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x7a\x64\x7a\x31\x2d\x69\x73\x76\x2e\x69\x73\x76\x6a\x63\x6c\x6f\x75\x64\x2e\x63\x6f\x6d\x2f\x64\x69\x6e\x67\x7a\x68\x69\x2f\x63\x6f\x6d\x6d\x6f\x6e\x55\x73\x65\x2f\x6f\x70\x65\x6e\x43\x61\x72\x64\x2f\x61\x63\x74\x69\x76\x69\x74\x79\x3f\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x3d','\x43\x6f\x6f\x6b\x69\x65','\x41\x55\x54\x48\x5f\x43\x5f\x55\x53\x45\x52\x3d','\x73\x68\x6f\x70\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64','\x2c\x22\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x22\x3a','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f\x63\x6c\x69\x65\x6e\x74\x2e\x61\x63\x74\x69\x6f\x6e\x3f\x61\x70\x70\x69\x64\x3d\x6a\x64\x5f\x73\x68\x6f\x70\x5f\x6d\x65\x6d\x62\x65\x72\x26\x66\x75\x6e\x63\x74\x69\x6f\x6e\x49\x64\x3d\x62\x69\x6e\x64\x57\x69\x74\x68\x56\x65\x6e\x64\x65\x72\x26\x62\x6f\x64\x79\x3d\x7b\x22\x76\x65\x6e\x64\x65\x72\x49\x64\x22\x3a\x22','\x22\x2c\x22\x73\x68\x6f\x70\x49\x64\x22\x3a\x22','\x22\x2c\x22\x62\x69\x6e\x64\x42\x79\x56\x65\x72\x69\x66\x79\x43\x6f\x64\x65\x46\x6c\x61\x67\x22\x3a\x31\x2c\x22\x72\x65\x67\x69\x73\x74\x65\x72\x45\x78\x74\x65\x6e\x64\x22\x3a\x7b\x7d\x2c\x22\x77\x72\x69\x74\x65\x43\x68\x69\x6c\x64\x46\x6c\x61\x67\x22\x3a\x30','\x2c\x22\x63\x68\x61\x6e\x6e\x65\x6c\x22\x3a\x34\x30\x31\x7d\x26\x63\x6c\x69\x65\x6e\x74\x3d\x48\x35\x26\x63\x6c\x69\x65\x6e\x74\x56\x65\x72\x73\x69\x6f\x6e\x3d\x39\x2e\x32\x2e\x30\x26\x75\x75\x69\x64\x3d\x38\x38\x38\x38\x38','\x74\x65\x78\x74\x2f\x70\x6c\x61\x69\x6e\x3b\x20\x43\x68\x61\x72\x73\x65\x74\x3d\x55\x54\x46\x2d\x38','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d','\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d','\x2a\x2f\x2a','\x67\x65\x74','\x74\x6f\x4f\x62\x6a','\x73\x75\x63\x63\x65\x73\x73','\x67\x69\x66\x74\x49\x6e\x66\x6f','\x67\x69\x66\x74\x4c\x69\x73\x74','\u5165\u4f1a\u83b7\u5f97\x3a','\x64\x69\x73\x63\x6f\x75\x6e\x74\x53\x74\x72\x69\x6e\x67','\x70\x72\x69\x7a\x65\x4e\x61\x6d\x65','\x73\x65\x63\x6f\x6e\x64\x4c\x69\x6e\x65\x44\x65\x73\x63','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x6d\x2e\x6a\x64\x2e\x63\x6f\x6d\x2f\x63\x6c\x69\x65\x6e\x74\x2e\x61\x63\x74\x69\x6f\x6e\x3f\x61\x70\x70\x69\x64\x3d\x6a\x64\x5f\x73\x68\x6f\x70\x5f\x6d\x65\x6d\x62\x65\x72\x26\x66\x75\x6e\x63\x74\x69\x6f\x6e\x49\x64\x3d\x67\x65\x74\x53\x68\x6f\x70\x4f\x70\x65\x6e\x43\x61\x72\x64\x49\x6e\x66\x6f\x26\x62\x6f\x64\x79\x3d\x25\x37\x42\x25\x32\x32\x76\x65\x6e\x64\x65\x72\x49\x64\x25\x32\x32\x25\x33\x41\x25\x32\x32','\x25\x32\x32\x25\x32\x43\x25\x32\x32\x63\x68\x61\x6e\x6e\x65\x6c\x25\x32\x32\x25\x33\x41\x34\x30\x31\x25\x37\x44\x26\x63\x6c\x69\x65\x6e\x74\x3d\x48\x35\x26\x63\x6c\x69\x65\x6e\x74\x56\x65\x72\x73\x69\x6f\x6e\x3d\x39\x2e\x32\x2e\x30\x26\x75\x75\x69\x64\x3d\x38\x38\x38\x38\x38','\u5165\u4f1a\x3a','\x73\x68\x6f\x70\x4d\x65\x6d\x62\x65\x72\x43\x61\x72\x64\x49\x6e\x66\x6f','\x76\x65\x6e\x64\x65\x72\x43\x61\x72\x64\x4e\x61\x6d\x65','\x69\x6e\x74\x65\x72\x65\x73\x74\x73\x52\x75\x6c\x65\x4c\x69\x73\x74','\x69\x6e\x74\x65\x72\x65\x73\x74\x73\x49\x6e\x66\x6f','\x20\x63\x6f\x6f\x6b\x69\x65\x20\x41\x50\x49\u8bf7\u6c42\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7f51\u8def\u91cd\u8bd5','\x68\x65\x61\x64\x65\x72\x73','\x73\x65\x74\x2d\x63\x6f\x6f\x6b\x69\x65','\x53\x65\x74\x2d\x43\x6f\x6f\x6b\x69\x65','\x73\x70\x6c\x69\x74','\x74\x72\x69\x6d','\x4c\x5a\x5f\x54\x4f\x4b\x45\x4e\x5f\x4b\x45\x59\x3d','\x4c\x5a\x5f\x54\x4f\x4b\x45\x4e\x5f\x56\x41\x4c\x55\x45\x3d','\x6c\x7a\x5f\x6a\x64\x70\x69\x6e\x5f\x74\x6f\x6b\x65\x6e\x3d','\x6a\x64\x61\x70\x70\x3b\x69\x50\x68\x6f\x6e\x65\x3b\x31\x30\x2e\x31\x2e\x34\x3b\x31\x33\x2e\x31\x2e\x32\x3b','\x3b\x6e\x65\x74\x77\x6f\x72\x6b\x2f\x77\x69\x66\x69\x3b\x6d\x6f\x64\x65\x6c\x2f\x69\x50\x68\x6f\x6e\x65\x38\x2c\x31\x3b\x61\x64\x64\x72\x65\x73\x73\x69\x64\x2f\x32\x33\x30\x38\x34\x36\x30\x36\x31\x31\x3b\x61\x70\x70\x42\x75\x69\x6c\x64\x2f\x31\x36\x37\x38\x31\x34\x3b\x6a\x64\x53\x75\x70\x70\x6f\x72\x74\x44\x61\x72\x6b\x4d\x6f\x64\x65\x2f\x30\x3b\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x69\x50\x68\x6f\x6e\x65\x3b\x20\x43\x50\x55\x20\x69\x50\x68\x6f\x6e\x65\x20\x4f\x53\x20\x31\x33\x5f\x31\x5f\x32\x20\x6c\x69\x6b\x65\x20\x4d\x61\x63\x20\x4f\x53\x20\x58\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x36\x30\x35\x2e\x31\x2e\x31\x35\x20\x28\x4b\x48\x54\x4d\x4c\x2c\x20\x6c\x69\x6b\x65\x20\x47\x65\x63\x6b\x6f\x29\x20\x4d\x6f\x62\x69\x6c\x65\x2f\x31\x35\x45\x31\x34\x38\x3b\x73\x75\x70\x70\x6f\x72\x74\x4a\x44\x53\x48\x57\x4b\x2f\x31','\x61\x62\x63\x64\x65\x66\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39','\x63\x68\x61\x72\x41\x74','\x66\x6c\x6f\x6f\x72','\x73\x74\x72\x69\x6e\x67','\u8bf7\u52ff\u968f\u610f\u5728\x42\x6f\x78\x4a\x73\u8f93\u5165\u6846\u4fee\u6539\u5185\u5bb9\x0a\u5efa\u8bae\u901a\u8fc7\u811a\u672c\u53bb\u83b7\u53d6\x63\x6f\x6f\x6b\x69\x65','\x6e\x6a\x73\x56\x4d\x6b\x6a\x69\x67\x5a\x61\x4a\x6d\x69\x2e\x66\x63\x6f\x6d\x44\x6b\x4a\x2e\x4e\x4e\x51\x76\x6e\x36\x67\x3d\x3d'];var _0x233c=function(_0xc5ee54,_0x560a8e){_0xc5ee54=~~'0x'['concat'](_0xc5ee54);var _0x5f3f52=_0x5302[_0xc5ee54];return _0x5f3f52;};(function(_0x56e478,_0x4e99f7){var _0x3ca6be=0x0;for(_0x4e99f7=_0x56e478['shift'](_0x3ca6be>>0x2);_0x4e99f7&&_0x4e99f7!==(_0x56e478['pop'](_0x3ca6be>>0x3)+'')['replace'](/[nVMkgZJfDkJNNQng=]/g,'');_0x3ca6be++){_0x3ca6be=_0x3ca6be^0xab4d4;}}(_0x5302,_0x233c));let cookiesArr=[],cookie='';if($[_0x233c('0')]()){Object[_0x233c('1')](jdCookieNode)[_0x233c('2')](_0x5e8863=>{cookiesArr[_0x233c('3')](jdCookieNode[_0x5e8863]);});if(process[_0x233c('4')][_0x233c('5')]&&process[_0x233c('4')][_0x233c('5')]===_0x233c('6'))console[_0x233c('7')]=()=>{};}else{cookiesArr=[$[_0x233c('8')](_0x233c('9')),$[_0x233c('8')](_0x233c('a')),...jsonParse($[_0x233c('8')](_0x233c('b'))||'\x5b\x5d')[_0x233c('c')](_0x8dbbd8=>_0x8dbbd8[_0x233c('d')])][_0x233c('e')](_0x686892=>!!_0x686892);}guaopencard_addSku=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('f')]?process[_0x233c('4')][_0x233c('f')]:''+guaopencard_addSku:$[_0x233c('8')](_0x233c('f'))?$[_0x233c('8')](_0x233c('f')):''+guaopencard_addSku;guaopencard_addSku=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('10')]?process[_0x233c('4')][_0x233c('10')]:''+guaopencard_addSku:$[_0x233c('8')](_0x233c('10'))?$[_0x233c('8')](_0x233c('10')):''+guaopencard_addSku;guaopencard=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('11')]?process[_0x233c('4')][_0x233c('11')]:''+guaopencard:$[_0x233c('8')](_0x233c('11'))?$[_0x233c('8')](_0x233c('11')):''+guaopencard;guaopencard=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('12')]?process[_0x233c('4')][_0x233c('12')]:''+guaopencard:$[_0x233c('8')](_0x233c('12'))?$[_0x233c('8')](_0x233c('12')):''+guaopencard;guaopenwait=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('13')]?process[_0x233c('4')][_0x233c('13')]:''+guaopenwait:$[_0x233c('8')](_0x233c('13'))?$[_0x233c('8')](_0x233c('13')):''+guaopenwait;guaopenwait=$[_0x233c('0')]()?process[_0x233c('4')][_0x233c('14')]?process[_0x233c('4')][_0x233c('14')]:''+guaopenwait:$[_0x233c('8')](_0x233c('14'))?$[_0x233c('8')](_0x233c('14')):''+guaopenwait;guaopenwait=parseInt(guaopenwait,0xa)||0x0;allMessage='';message='';$[_0x233c('15')]=![];$[_0x233c('16')]=![];$[_0x233c('17')]=![];let lz_jdpin_token_cookie='';let activityCookie='';!(async()=>{if($[_0x233c('0')]()){if(guaopencard+''!=_0x233c('18')){console[_0x233c('7')](_0x233c('19'));}if(guaopencard+''!=_0x233c('18')){return;}}if(!cookiesArr[0x0]){$[_0x233c('1a')]($[_0x233c('1b')],_0x233c('1c'),_0x233c('1d'),{'open-url':_0x233c('1d')});return;}$[_0x233c('1e')]=_0x233c('1f');$[_0x233c('20')]=_0x233c('21');console[_0x233c('7')](_0x233c('22')+$[_0x233c('1e')]+_0x233c('23')+$[_0x233c('20')]);for(let _0x2fa9cb=0x0;_0x2fa9cb<cookiesArr[_0x233c('24')];_0x2fa9cb++){cookie=cookiesArr[_0x2fa9cb];if(cookie){$[_0x233c('25')]=decodeURIComponent(cookie[_0x233c('26')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x233c('26')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x233c('27')]=_0x2fa9cb+0x1;message='';$[_0x233c('28')]=0x0;$[_0x233c('15')]=![];$[_0x233c('29')]='';console[_0x233c('7')](_0x233c('2a')+$[_0x233c('27')]+'\u3011'+($[_0x233c('29')]||$[_0x233c('25')])+_0x233c('2b'));await getUA();await run();if(_0x2fa9cb==0x0&&!$[_0x233c('2c')])break;if($[_0x233c('16')]||$[_0x233c('17')])break;}}if($[_0x233c('16')]){let _0x4030f4=_0x233c('2d');$[_0x233c('1a')]($[_0x233c('1b')],'',''+_0x4030f4);if($[_0x233c('0')]())await notify[_0x233c('2e')](''+$[_0x233c('1b')],''+_0x4030f4);}})()[_0x233c('2f')](_0xd3b690=>$[_0x233c('30')](_0xd3b690))[_0x233c('31')](()=>$[_0x233c('32')]());async function run(){try{$[_0x233c('33')]=!![];$[_0x233c('34')]=0x0;lz_jdpin_token_cookie='';$[_0x233c('35')]='';$[_0x233c('36')]='';let _0x46ebb2=![];await takePostRequest(_0x233c('37'));if($[_0x233c('35')]==''){console[_0x233c('7')](_0x233c('38'));return;}await getCk();if(activityCookie==''){console[_0x233c('7')](_0x233c('39'));return;}if($[_0x233c('16')]){console[_0x233c('7')](_0x233c('3a'));return;}await takePostRequest(_0x233c('3b'));await takePostRequest(_0x233c('3c'));if(!$[_0x233c('36')]){console[_0x233c('7')](_0x233c('3d'));return;}await takePostRequest(_0x233c('3e'));await takePostRequest(_0x233c('3f'));await takePostRequest(_0x233c('40'));if(!$[_0x233c('2c')]){console[_0x233c('7')](_0x233c('41'));return;}if(Date[_0x233c('42')]()>$[_0x233c('34')]){$[_0x233c('17')]=!![];console[_0x233c('7')](_0x233c('43'));return;}await takePostRequest(_0x233c('44'));await $[_0x233c('45')](0x3e8);$[_0x233c('46')]=[];$[_0x233c('47')]=![];await takePostRequest(_0x233c('48'));if($[_0x233c('47')]==![]){console[_0x233c('7')](_0x233c('49'));for(o of $[_0x233c('46')]){$[_0x233c('4a')]=![];if(o[_0x233c('4b')]==0x0){_0x46ebb2=!![];$[_0x233c('4c')]=o[_0x233c('4d')];await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0xbb8+0xbb8,0xa));await joinShop();await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x3e8,0xa));await takePostRequest(_0x233c('44'));await takePostRequest(_0x233c('48'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0xbb8+0x7d0,0xa));}}await takePostRequest(_0x233c('40'));}else{console[_0x233c('7')](_0x233c('4f'));}if($[_0x233c('50')]==0x1&&!$[_0x233c('16')]){$[_0x233c('51')]=0x1;_0x46ebb2=!![];await takePostRequest(_0x233c('51'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0xbb8,0xa));}if($[_0x233c('52')]==0x1&&!$[_0x233c('16')]){$[_0x233c('51')]=0x2;_0x46ebb2=!![];await takePostRequest(_0x233c('51'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0xbb8,0xa));}$[_0x233c('7')](_0x233c('53')+$[_0x233c('54')]);if(!$[_0x233c('54')]&&!$[_0x233c('16')]){_0x46ebb2=!![];await takePostRequest(_0x233c('54'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));}$[_0x233c('7')](_0x233c('55')+$[_0x233c('56')]);if(!$[_0x233c('56')]&&!$[_0x233c('16')]){_0x46ebb2=!![];await takePostRequest(_0x233c('56'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));}$[_0x233c('7')](_0x233c('57')+$[_0x233c('58')]);if(!$[_0x233c('58')]&&!$[_0x233c('16')]){_0x46ebb2=!![];for(let _0x39da99 of $[_0x233c('59')]||[]){if(_0x39da99[_0x233c('4d')]&&_0x39da99[_0x233c('4b')]===0x0){$[_0x233c('5a')]=_0x39da99[_0x233c('4d')];await takePostRequest(_0x233c('58'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));}}}$[_0x233c('7')](_0x233c('5b')+$[_0x233c('5c')]);if(!$[_0x233c('5c')]&&!$[_0x233c('16')]){_0x46ebb2=!![];await takePostRequest(_0x233c('5c'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));}$[_0x233c('7')](_0x233c('5d')+$[_0x233c('5e')]);if(!$[_0x233c('5e')]&&!$[_0x233c('16')]){if(guaopencard_addSku+''==_0x233c('18')){_0x46ebb2=!![];await takePostRequest(_0x233c('5e'));await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));}else{console[_0x233c('7')](_0x233c('5f'));}}if(_0x46ebb2){await takePostRequest(_0x233c('40'));}await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x7d0,0xa));await takePostRequest(_0x233c('60'));await takePostRequest(_0x233c('61'));if($[_0x233c('16')]){console[_0x233c('7')](_0x233c('3a'));return;}console[_0x233c('7')]($[_0x233c('2c')]);console[_0x233c('7')](_0x233c('62')+$[_0x233c('20')]);if($[_0x233c('27')]==0x1){$[_0x233c('20')]=$[_0x233c('2c')];console[_0x233c('7')](_0x233c('63')+$[_0x233c('20')]);}await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x1388,0xa));if(_0x46ebb2)await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x3e8+0x2710,0xa));if(guaopenwait){if($[_0x233c('27')]!=cookiesArr[_0x233c('24')]){console[_0x233c('7')]('\u7b49\u5f85'+guaopenwait+'\u79d2');await $[_0x233c('45')](parseInt(guaopenwait,0xa)*0x3e8);}}else{if($[_0x233c('27')]%0x3==0x0)console[_0x233c('7')](_0x233c('64'));if($[_0x233c('27')]%0x3==0x0)await $[_0x233c('45')](parseInt(Math[_0x233c('4e')]()*0x1388+0xea60,0xa));}}catch(_0x2bf4ad){console[_0x233c('7')](_0x2bf4ad);}}async function takePostRequest(_0x3fed54){if($[_0x233c('16')])return;let _0x40ddac=_0x233c('65');let _0x205efb='';let _0xb59698=_0x233c('66');let _0x3113d6='';switch(_0x3fed54){case _0x233c('37'):_0x40ddac=_0x233c('67');_0x205efb=_0x233c('68');break;case _0x233c('3b'):_0x40ddac=_0x40ddac+_0x233c('69');_0x205efb=_0x233c('6a')+$[_0x233c('1e')];break;case _0x233c('3c'):_0x40ddac=_0x40ddac+_0x233c('6b');_0x205efb=_0x233c('6c')+($[_0x233c('6d')]||$[_0x233c('6e')]||'')+_0x233c('6f')+$[_0x233c('35')]+_0x233c('70');break;case _0x233c('3e'):_0x40ddac=_0x40ddac+_0x233c('71');let _0x264306=_0x40ddac+_0x233c('72')+$[_0x233c('1e')]+_0x233c('23')+$[_0x233c('20')];_0x205efb=_0x233c('73')+($[_0x233c('6d')]||$[_0x233c('6e')]||'')+_0x233c('74')+encodeURIComponent($[_0x233c('36')])+_0x233c('75')+$[_0x233c('1e')]+_0x233c('76')+encodeURIComponent(_0x264306)+_0x233c('77');break;case _0x233c('3f'):_0x40ddac=_0x40ddac+_0x233c('78');_0x205efb=_0x233c('79')+encodeURIComponent($[_0x233c('36')]);break;case _0x233c('40'):_0x40ddac=_0x40ddac+_0x233c('7a');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('7c')+encodeURIComponent($[_0x233c('7d')])+_0x233c('7e')+encodeURIComponent($[_0x233c('7f')])+_0x233c('80')+$[_0x233c('20')];break;case _0x233c('44'):_0x40ddac=_0x40ddac+_0x233c('81');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')]);break;case _0x233c('48'):_0x40ddac=_0x40ddac+_0x233c('82');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('83')+$[_0x233c('2c')]+_0x233c('23')+$[_0x233c('20')];break;case _0x233c('51'):_0x40ddac=_0x40ddac+_0x233c('84');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('83')+$[_0x233c('2c')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('85')+($[_0x233c('51')]||0x1);break;case _0x233c('5c'):_0x40ddac=_0x40ddac+_0x233c('86');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('83')+$[_0x233c('2c')]+_0x233c('23')+$[_0x233c('20')]+_0x233c('87');break;case _0x233c('54'):case _0x233c('58'):case _0x233c('56'):case _0x233c('5e'):_0x40ddac=_0x40ddac+_0x233c('88');let _0x143816='';let _0x3332b1='';if(_0x3fed54==_0x233c('54')){_0x143816=0x1f;_0x3332b1=0x1f;}else if(_0x3fed54==_0x233c('58')){_0x143816=0x5;_0x3332b1=$[_0x233c('5a')]||'';}else if(_0x3fed54==_0x233c('56')){_0x143816=0xe;_0x3332b1=0xe;}else if(_0x3fed54==_0x233c('5e')){_0x143816=0x15;_0x3332b1=0x15;}_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('83')+$[_0x233c('2c')]+_0x233c('89')+_0x143816+_0x233c('8a')+_0x3332b1;break;case _0x233c('60'):_0x40ddac=_0x40ddac+_0x233c('8b');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('83')+$[_0x233c('2c')];break;case _0x233c('61'):_0x40ddac=_0x40ddac+_0x233c('8c');_0x205efb=_0x233c('6a')+$[_0x233c('1e')]+_0x233c('7b')+encodeURIComponent($[_0x233c('36')])+_0x233c('83')+$[_0x233c('2c')];break;default:console[_0x233c('7')]('\u9519\u8bef'+_0x3fed54);}let _0xa12c7d=getPostRequest(_0x40ddac,_0x205efb,_0xb59698);return new Promise(async _0xcffbe2=>{$[_0x233c('8d')](_0xa12c7d,(_0x41da53,_0x21981e,_0x5d6fd7)=>{try{setActivityCookie(_0x21981e);if(_0x41da53){if(_0x21981e&&_0x21981e[_0x233c('8e')]&&_0x21981e[_0x233c('8e')]==0x1ed){console[_0x233c('7')](_0x233c('3a'));$[_0x233c('16')]=!![];}console[_0x233c('7')](''+$[_0x233c('8f')](_0x41da53,_0x41da53));console[_0x233c('7')](_0x3fed54+_0x233c('90'));}else{dealReturn(_0x3fed54,_0x5d6fd7);}}catch(_0x25c93d){console[_0x233c('7')](_0x25c93d,_0x21981e);}finally{_0xcffbe2();}});});}async function dealReturn(_0x53334e,_0x138e6b){let _0x73e020='';try{if(_0x53334e!=_0x233c('3e')||_0x53334e!=_0x233c('44')){if(_0x138e6b){_0x73e020=JSON[_0x233c('91')](_0x138e6b);}}}catch(_0x588288){console[_0x233c('7')](_0x53334e+_0x233c('92'));console[_0x233c('7')](_0x138e6b);$[_0x233c('93')]=![];}try{switch(_0x53334e){case _0x233c('37'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('95')]==0x0){if(typeof _0x73e020[_0x233c('96')]!=_0x233c('97'))$[_0x233c('35')]=_0x73e020[_0x233c('96')];}else if(_0x73e020[_0x233c('98')]){console[_0x233c('7')](_0x233c('99')+(_0x73e020[_0x233c('98')]||''));}else{console[_0x233c('7')](_0x138e6b);}}else{console[_0x233c('7')](_0x138e6b);}break;case _0x233c('3b'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){if(typeof _0x73e020[_0x233c('9b')][_0x233c('6d')]!=_0x233c('97'))$[_0x233c('6d')]=_0x73e020[_0x233c('9b')][_0x233c('6d')];if(typeof _0x73e020[_0x233c('9b')][_0x233c('6e')]!=_0x233c('97'))$[_0x233c('6e')]=_0x73e020[_0x233c('9b')][_0x233c('6e')];}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('3c'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){if(_0x73e020[_0x233c('9b')]&&typeof _0x73e020[_0x233c('9b')][_0x233c('9d')]!=_0x233c('97'))$[_0x233c('36')]=_0x73e020[_0x233c('9b')][_0x233c('9d')];if(_0x73e020[_0x233c('9b')]&&typeof _0x73e020[_0x233c('9b')][_0x233c('7f')]!=_0x233c('97'))$[_0x233c('7f')]=_0x73e020[_0x233c('9b')][_0x233c('7f')];}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('3f'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){if(_0x73e020[_0x233c('9b')]&&typeof _0x73e020[_0x233c('9b')][_0x233c('9e')]!=_0x233c('97'))$[_0x233c('7d')]=_0x73e020[_0x233c('9b')][_0x233c('9e')]||_0x233c('9f');}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('40'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){$[_0x233c('34')]=_0x73e020[_0x233c('9b')][_0x233c('34')]||0x0;$[_0x233c('33')]=_0x73e020[_0x233c('9b')][_0x233c('33')]||!![];$[_0x233c('2c')]=_0x73e020[_0x233c('9b')][_0x233c('2c')]||'';$[_0x233c('5c')]=_0x73e020[_0x233c('9b')][_0x233c('5c')][_0x233c('a0')]||![];$[_0x233c('5e')]=_0x73e020[_0x233c('9b')][_0x233c('5e')][_0x233c('a0')]||![];$[_0x233c('58')]=_0x73e020[_0x233c('9b')][_0x233c('58')][_0x233c('a0')]||![];$[_0x233c('59')]=_0x73e020[_0x233c('9b')][_0x233c('58')][_0x233c('a1')]||[];$[_0x233c('56')]=_0x73e020[_0x233c('9b')][_0x233c('56')][_0x233c('a0')]||![];$[_0x233c('a2')]=_0x73e020[_0x233c('9b')][_0x233c('a2')][_0x233c('a0')]||![];$[_0x233c('54')]=_0x73e020[_0x233c('9b')][_0x233c('54')][_0x233c('a0')]||![];if(_0x73e020[_0x233c('9b')][_0x233c('5c')]&&_0x73e020[_0x233c('9b')][_0x233c('5c')][_0x233c('a1')]&&_0x73e020[_0x233c('9b')][_0x233c('5c')][_0x233c('a1')][0x0]){$[_0x233c('a3')]=_0x73e020[_0x233c('9b')][_0x233c('5c')][_0x233c('a1')][0x0][_0x233c('4d')]||0x0;}if(_0x73e020[_0x233c('9b')][_0x233c('5e')]&&_0x73e020[_0x233c('9b')][_0x233c('5e')][_0x233c('a1')]&&_0x73e020[_0x233c('9b')][_0x233c('5e')][_0x233c('a1')][0x0]){$[_0x233c('a4')]=_0x73e020[_0x233c('9b')][_0x233c('5e')][_0x233c('a1')][0x0][_0x233c('4d')]||0x0;}}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('48'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){let _0x31955f=_0x73e020[_0x233c('9b')][_0x233c('a5')]||[];let _0x2401bf=_0x73e020[_0x233c('9b')][_0x233c('a6')]||[];$[_0x233c('46')]=[..._0x31955f,..._0x2401bf];$[_0x233c('47')]=_0x73e020[_0x233c('9b')][_0x233c('47')]||![];$[_0x233c('50')]=_0x73e020[_0x233c('9b')][_0x233c('a7')]||0x0;$[_0x233c('52')]=_0x73e020[_0x233c('9b')][_0x233c('a8')]||0x0;}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('51'):case _0x233c('5c'):case _0x233c('54'):case _0x233c('58'):case _0x233c('56'):case _0x233c('5e'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){if(typeof _0x73e020[_0x233c('9b')]==_0x233c('94')){let _0x5b1158='';let _0x97f9a0='\u62bd\u5956';if(_0x73e020[_0x233c('9b')][_0x233c('a9')]&&_0x73e020[_0x233c('9b')][_0x233c('aa')]){_0x5b1158=_0x73e020[_0x233c('9b')][_0x233c('a9')]+'\u4eac\u8c46';}if(_0x53334e==_0x233c('5c')){_0x97f9a0='\u5173\u6ce8';if(_0x73e020[_0x233c('9b')][_0x233c('ab')]&&_0x73e020[_0x233c('9b')][_0x233c('ac')]){_0x5b1158+=_0x233c('ad')+_0x73e020[_0x233c('9b')][_0x233c('ab')]+'\u4eac\u8c46';}}else if(_0x53334e==_0x233c('5e')){_0x97f9a0='\u52a0\u8d2d';}else if(_0x53334e==_0x233c('54')){_0x97f9a0=_0x233c('ae');}else if(_0x53334e==_0x233c('56')){_0x97f9a0=_0x233c('af');}else if(_0x53334e==_0x233c('58')){_0x97f9a0=_0x233c('b0');}else{_0x5b1158=_0x73e020[_0x233c('9b')][_0x233c('b1')]==!![]&&(_0x73e020[_0x233c('9b')][_0x233c('b2')]==0x6&&_0x73e020[_0x233c('9b')][_0x233c('1b')]||'')||_0x233c('b3');}if(!_0x5b1158){_0x5b1158=_0x233c('b3');}console[_0x233c('7')](_0x97f9a0+_0x233c('b4')+(_0x5b1158||_0x138e6b));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('60'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]){console[_0x233c('7')](_0x233c('b5'));let _0x9e7baa=0x0;let _0x4445b8=0x0;for(let _0x1ebae0 in _0x73e020[_0x233c('9b')]){let _0x334b8b=_0x73e020[_0x233c('9b')][_0x1ebae0];if(_0x334b8b[_0x233c('4d')]==_0x233c('b6'))_0x9e7baa++;if(_0x334b8b[_0x233c('4d')]==_0x233c('b6'))_0x4445b8=_0x334b8b[_0x233c('b7')][_0x233c('b8')]('\u4eac\u8c46','');if(_0x334b8b[_0x233c('4d')]!=_0x233c('b6'))console[_0x233c('7')](''+(_0x334b8b[_0x233c('b9')]!=0xa&&_0x334b8b[_0x233c('4d')]+'\x3a'||'')+_0x334b8b[_0x233c('b7')]);}if(_0x9e7baa>0x0)console[_0x233c('7')](_0x233c('ba')+_0x9e7baa+'\x29\x3a'+(_0x9e7baa*parseInt(_0x4445b8,0xa)||0x1e)+'\u4eac\u8c46');}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('61'):if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9a')]&&_0x73e020[_0x233c('9a')]===!![]&&_0x73e020[_0x233c('9b')]){$[_0x233c('bb')]=_0x73e020[_0x233c('9b')][_0x233c('24')];$[_0x233c('7')](_0x233c('bc')+_0x73e020[_0x233c('9b')][_0x233c('24')]+'\u4e2a');}else if(_0x73e020[_0x233c('9c')]){console[_0x233c('7')](_0x53334e+'\x20'+(_0x73e020[_0x233c('9c')]||''));}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}}else{console[_0x233c('7')](_0x53334e+'\x20'+_0x138e6b);}break;case _0x233c('3e'):case _0x233c('44'):break;default:console[_0x233c('7')](_0x53334e+_0x233c('bd')+_0x138e6b);}if(typeof _0x73e020==_0x233c('94')){if(_0x73e020[_0x233c('9c')]){if(_0x73e020[_0x233c('9c')][_0x233c('be')]('\u706b\u7206')>-0x1){$[_0x233c('15')]=!![];}}}}catch(_0x300f98){console[_0x233c('7')](_0x300f98);}}function getPostRequest(_0x53c9b5,_0xf7f73d,_0x489fde=_0x233c('66')){let _0x5d637b={'Accept':_0x233c('bf'),'Accept-Encoding':_0x233c('c0'),'Accept-Language':_0x233c('c1'),'Connection':_0x233c('c2'),'Content-Type':_0x233c('c3'),'Cookie':cookie,'User-Agent':$['\x55\x41'],'X-Requested-With':_0x233c('c4')};if(_0x53c9b5[_0x233c('be')](_0x233c('65'))>-0x1){_0x5d637b[_0x233c('c5')]=_0x233c('c6')+$[_0x233c('1e')]+_0x233c('23')+$[_0x233c('20')];_0x5d637b[_0x233c('c7')]=''+(lz_jdpin_token_cookie&&lz_jdpin_token_cookie||'')+($[_0x233c('36')]&&_0x233c('c8')+$[_0x233c('36')]+'\x3b'||'')+activityCookie;}return{'\x75\x72\x6c':_0x53c9b5,'\x6d\x65\x74\x68\x6f\x64':_0x489fde,'\x68\x65\x61\x64\x65\x72\x73':_0x5d637b,'\x62\x6f\x64\x79':_0xf7f73d,'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};}function joinShop(){if(!$[_0x233c('4c')])return;return new Promise(async _0x49e1da=>{$[_0x233c('c9')]='';await $[_0x233c('45')](0x3e8);await getshopactivityId();let _0x1af600='';if($[_0x233c('c9')])_0x1af600=_0x233c('ca')+$[_0x233c('c9')];const _0x23ed2b={'\x75\x72\x6c':_0x233c('cb')+$[_0x233c('4c')]+_0x233c('cc')+$[_0x233c('4c')]+_0x233c('cd')+_0x1af600+_0x233c('ce'),'\x68\x65\x61\x64\x65\x72\x73':{'Content-Type':_0x233c('cf'),'Origin':_0x233c('d0'),'Host':_0x233c('d1'),'accept':_0x233c('d2'),'User-Agent':$['\x55\x41'],'content-type':_0x233c('c3'),'Cookie':cookie}};$[_0x233c('d3')](_0x23ed2b,async(_0x13066e,_0x322cde,_0x4f59c7)=>{try{let _0x2af124=$[_0x233c('d4')](_0x4f59c7);if(typeof _0x2af124==_0x233c('94')){if(_0x2af124[_0x233c('d5')]===!![]){console[_0x233c('7')](_0x2af124[_0x233c('98')]);if(_0x2af124[_0x233c('9a')]&&_0x2af124[_0x233c('9a')][_0x233c('d6')]){for(let _0x2adb61 of _0x2af124[_0x233c('9a')][_0x233c('d6')][_0x233c('d7')]){console[_0x233c('7')](_0x233c('d8')+_0x2adb61[_0x233c('d9')]+_0x2adb61[_0x233c('da')]+_0x2adb61[_0x233c('db')]);}}}else if(typeof _0x2af124==_0x233c('94')&&_0x2af124[_0x233c('98')]){console[_0x233c('7')](''+(_0x2af124[_0x233c('98')]||''));}else{console[_0x233c('7')](_0x4f59c7);}}else{console[_0x233c('7')](_0x4f59c7);}}catch(_0x9833ef){$[_0x233c('30')](_0x9833ef,_0x322cde);}finally{_0x49e1da();}});});}function getshopactivityId(){return new Promise(_0x5916e0=>{const _0x1fbf0c={'\x75\x72\x6c':_0x233c('dc')+$[_0x233c('4c')]+_0x233c('dd'),'\x68\x65\x61\x64\x65\x72\x73':{'Content-Type':_0x233c('cf'),'Origin':_0x233c('d0'),'Host':_0x233c('d1'),'accept':_0x233c('d2'),'User-Agent':$['\x55\x41'],'content-type':_0x233c('c3'),'Cookie':cookie}};$[_0x233c('d3')](_0x1fbf0c,async(_0x22ea17,_0x1e2f47,_0xb1a528)=>{try{let _0x3ae7ec=$[_0x233c('d4')](_0xb1a528);if(_0x3ae7ec[_0x233c('d5')]==!![]){console[_0x233c('7')](_0x233c('de')+(_0x3ae7ec[_0x233c('9a')][_0x233c('df')][_0x233c('e0')]||''));$[_0x233c('c9')]=_0x3ae7ec[_0x233c('9a')][_0x233c('e1')]&&_0x3ae7ec[_0x233c('9a')][_0x233c('e1')][0x0]&&_0x3ae7ec[_0x233c('9a')][_0x233c('e1')][0x0][_0x233c('e2')]&&_0x3ae7ec[_0x233c('9a')][_0x233c('e1')][0x0][_0x233c('e2')][_0x233c('1e')]||'';}}catch(_0x2c2405){$[_0x233c('30')](_0x2c2405,_0x1e2f47);}finally{_0x5916e0();}});});}function getCk(){return new Promise(_0x21aca9=>{let _0x3e4900={'\x75\x72\x6c':_0x233c('c6')+$[_0x233c('1e')]+_0x233c('23')+$[_0x233c('20')],'\x66\x6f\x6c\x6c\x6f\x77\x52\x65\x64\x69\x72\x65\x63\x74':![],'\x68\x65\x61\x64\x65\x72\x73':{'User-Agent':$['\x55\x41']},'\x74\x69\x6d\x65\x6f\x75\x74':0x7530};$[_0x233c('d3')](_0x3e4900,async(_0x49885b,_0x20e8f3,_0x1f2667)=>{try{if(_0x49885b){if(_0x20e8f3[_0x233c('8e')]&&_0x20e8f3[_0x233c('8e')]==0x1ed){console[_0x233c('7')](_0x233c('3a'));$[_0x233c('16')]=!![];}console[_0x233c('7')](''+$[_0x233c('8f')](_0x49885b));console[_0x233c('7')]($[_0x233c('1b')]+_0x233c('e3'));}else{setActivityCookie(_0x20e8f3);}}catch(_0x3f2f66){$[_0x233c('30')](_0x3f2f66,_0x20e8f3);}finally{_0x21aca9();}});});}function setActivityCookie(_0x56163b){let _0x14ad9c='';let _0x150a98='';let _0x1e111c='';let _0x58f370=_0x56163b&&_0x56163b[_0x233c('e4')]&&(_0x56163b[_0x233c('e4')][_0x233c('e5')]||_0x56163b[_0x233c('e4')][_0x233c('e6')]||'')||'';let _0xf062e9='';if(_0x58f370){if(typeof _0x58f370!=_0x233c('94')){_0xf062e9=_0x58f370[_0x233c('e7')]('\x2c');}else _0xf062e9=_0x58f370;for(let _0x3d03ff of _0xf062e9){let _0x4ccfe2=_0x3d03ff[_0x233c('e7')]('\x3b')[0x0][_0x233c('e8')]();if(_0x4ccfe2[_0x233c('e7')]('\x3d')[0x1]){if(_0x4ccfe2[_0x233c('be')](_0x233c('e9'))>-0x1)_0x14ad9c=_0x4ccfe2[_0x233c('b8')](/ /g,'')+'\x3b';if(_0x4ccfe2[_0x233c('be')](_0x233c('ea'))>-0x1)_0x150a98=_0x4ccfe2[_0x233c('b8')](/ /g,'')+'\x3b';if(_0x4ccfe2[_0x233c('be')](_0x233c('eb'))>-0x1)_0x1e111c=''+_0x4ccfe2[_0x233c('b8')](/ /g,'')+'\x3b';}}}if(_0x14ad9c&&_0x150a98)activityCookie=_0x14ad9c+'\x20'+_0x150a98;if(_0x1e111c)lz_jdpin_token_cookie=_0x1e111c;}async function getUA(){$['\x55\x41']=_0x233c('ec')+randomString(0x28)+_0x233c('ed');}function randomString(_0x2e5a31){_0x2e5a31=_0x2e5a31||0x20;let _0x4d9a62=_0x233c('ee'),_0x29d936=_0x4d9a62[_0x233c('24')],_0x555bce='';for(i=0x0;i<_0x2e5a31;i++)_0x555bce+=_0x4d9a62[_0x233c('ef')](Math[_0x233c('f0')](Math[_0x233c('4e')]()*_0x29d936));return _0x555bce;}function jsonParse(_0x4d9604){if(typeof _0x4d9604==_0x233c('f1')){try{return JSON[_0x233c('91')](_0x4d9604);}catch(_0x4f3993){console[_0x233c('7')](_0x4f3993);$[_0x233c('1a')]($[_0x233c('1b')],'',_0x233c('f2'));return[];}}};_0xodT='jsjiami.com.v6';
// prettier-ignore
function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&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.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}