easemob-uniapp-logger-plugin 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +110 -0
- package/README.md +283 -0
- package/dist/easemob-uniapp-logger.esm.js +780 -0
- package/dist/easemob-uniapp-logger.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +780 -0
- package/dist/lib/logger.d.ts +216 -0
- package/dist/main.d.ts +36 -0
- package/dist/types/index.d.ts +85 -0
- package/package.json +55 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
var l0 = Object.defineProperty;
|
|
2
|
+
var B0 = (o, t, x) => t in o ? l0(o, t, { enumerable: !0, configurable: !0, writable: !0, value: x }) : o[t] = x;
|
|
3
|
+
var D = (o, t, x) => B0(o, typeof t != "symbol" ? t + "" : t, x);
|
|
4
|
+
const r = L, i = L;
|
|
5
|
+
function L(o, t) {
|
|
6
|
+
o = o - (-4128 + -31 * -137);
|
|
7
|
+
const x = H();
|
|
8
|
+
let n = x[o];
|
|
9
|
+
if (L.bBsYTM === void 0) {
|
|
10
|
+
var e = function(f) {
|
|
11
|
+
const v = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
|
|
12
|
+
let b = "", h = "";
|
|
13
|
+
for (let z = 0, g, d, u = 0; d = f.charAt(u++); ~d && (g = z % 4 ? g * 64 + d : d, z++ % 4) ? b += String.fromCharCode(255 & g >> (-2 * z & 6)) : 0)
|
|
14
|
+
d = v.indexOf(d);
|
|
15
|
+
for (let z = 0, g = b.length; z < g; z++)
|
|
16
|
+
h += "%" + ("00" + b.charCodeAt(z).toString(16)).slice(-2);
|
|
17
|
+
return decodeURIComponent(h);
|
|
18
|
+
};
|
|
19
|
+
L.WMvpJc = e, L.uWmbbA = {}, L.bBsYTM = !0;
|
|
20
|
+
}
|
|
21
|
+
const c = x[-16 * -22 + 4454 + -4806], s = o + c, a = L.uWmbbA[s];
|
|
22
|
+
return a ? n = a : (n = L.WMvpJc(n), L.uWmbbA[s] = n), n;
|
|
23
|
+
}
|
|
24
|
+
(function(o, t) {
|
|
25
|
+
const x = L, n = L, e = o();
|
|
26
|
+
for (; ; )
|
|
27
|
+
try {
|
|
28
|
+
if (parseInt(x(227)) / 1 * (parseInt(x(394)) / 2) + parseInt(n(401)) / 3 + parseInt(x(252)) / 4 + parseInt(x(279)) / 5 * (parseInt(n(333)) / 6) + -parseInt(n(432)) / 7 + -parseInt(n(446)) / 8 * (parseInt(x(354)) / 9) + -parseInt(x(416)) / 10 === t) break;
|
|
29
|
+
e.push(e.shift());
|
|
30
|
+
} catch {
|
|
31
|
+
e.push(e.shift());
|
|
32
|
+
}
|
|
33
|
+
})(H, 162320 + -1 * -809437);
|
|
34
|
+
const j = /* @__PURE__ */ function() {
|
|
35
|
+
let o = !0;
|
|
36
|
+
return function(t, x) {
|
|
37
|
+
const n = o ? function() {
|
|
38
|
+
const e = L;
|
|
39
|
+
if (x) {
|
|
40
|
+
const c = x[e(340)](t, arguments);
|
|
41
|
+
return x = null, c;
|
|
42
|
+
}
|
|
43
|
+
} : function() {
|
|
44
|
+
};
|
|
45
|
+
return o = !1, n;
|
|
46
|
+
};
|
|
47
|
+
}(), M0 = j(void 0, function() {
|
|
48
|
+
const o = L, t = L, x = { GgtwZ: o(349), jdcYb: t(187), sEmTs: t(326), LYojj: t(253), cindS: function(s, a) {
|
|
49
|
+
return s < a;
|
|
50
|
+
} };
|
|
51
|
+
let n;
|
|
52
|
+
try {
|
|
53
|
+
n = Function(t(250) + t(217) + ");")();
|
|
54
|
+
} catch {
|
|
55
|
+
n = window;
|
|
56
|
+
}
|
|
57
|
+
const e = n[o(236)] = n[t(236)] || {}, c = [x[o(434)], o(313), t(415), t(268), x[t(277)], x[t(350)], x[o(137)]];
|
|
58
|
+
for (let s = 7792 + 3 * -845 + -5257; x[t(318)](s, c[t(390)]); s++) {
|
|
59
|
+
const a = j[o(421)][o(184)][o(168)](j), f = c[s], v = e[f] || a;
|
|
60
|
+
a[t(406)] = j[t(168)](j), a[o(314)] = v[t(314)][t(168)](v), e[f] = a;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
M0();
|
|
64
|
+
const Q = { expireDays: 7, maxFileSize: (3086 + -1526 * 4 + 3020) * 1024 * (7223 + -1626 * 1 + 1 * -4573), rootDirectory: r(163), directory: i(307), fileName: i(349), flushInterval: 3e3, batchSize: 10, uploadTimeout: 3e4, maxFiles: 3 }, y0 = r(130), $ = r(193), x0 = { DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, FATAL: 4 }, G0 = `\r
|
|
65
|
+
`;
|
|
66
|
+
function t0() {
|
|
67
|
+
const o = r, t = r, x = /* @__PURE__ */ new Date(), n = x[o(431)](), e = x[t(411)]() + 1, c = x[o(457)](), s = x[t(444)](), a = x[o(358)]() < -3 * -109 + 733 * 5 + 2 * -1991 ? "0" + x[t(358)]() : x[t(358)](), f = x[t(242)]() < -4683 + 10 * -988 + -767 * -19 ? "0" + x[t(242)]() : x[t(242)]();
|
|
68
|
+
return n + "/" + e + "/" + c + " " + s + ":" + a + ":" + f;
|
|
69
|
+
}
|
|
70
|
+
function J(o) {
|
|
71
|
+
const t = i, x = i, n = { vnmDS: function(d, u) {
|
|
72
|
+
return d + u;
|
|
73
|
+
}, risVP: function(d, u) {
|
|
74
|
+
return d(u);
|
|
75
|
+
} }, e = new Date(o[t(299)]), c = e[x(431)](), s = String(n[t(356)](e[t(411)](), 4844 + -7 * -293 + -6894))[t(420)](-4305 + -35 * -229 + -36 * 103, "0"), a = n[t(362)](String, e[x(457)]())[t(420)](-10630 + 4 * 2658, "0"), f = n[x(362)](String, e[t(444)]())[t(420)](1 * 3795 + 4320 * 2 + -12433, "0"), v = String(e[x(358)]())[x(420)](4629 + -1 * -3641 + -212 * 39, "0"), b = n[x(362)](String, e[t(242)]())[x(420)](-131 * 13 + -25 * -254 + -4645, "0"), h = String(e[x(453)]())[x(420)](7690 + -90 * -81 + -14977, "0"), z = c + "-" + s + "-" + a + " " + f + ":" + v + ":" + b + "." + h, g = o[t(435)] ? " " + JSON[t(289)](o[x(435)]) : "";
|
|
76
|
+
return "[" + z + x(122) + o[x(460)] + "] " + o[t(352)] + g;
|
|
77
|
+
}
|
|
78
|
+
function Y() {
|
|
79
|
+
const o = i;
|
|
80
|
+
return typeof plus !== o(181) && plus.io !== void (-15 * 291 + 4997 * 1 + -4 * 158);
|
|
81
|
+
}
|
|
82
|
+
function T() {
|
|
83
|
+
const o = i, t = i;
|
|
84
|
+
return typeof wx !== o(181) && wx[o(243)] !== void (-6362 + 13 * 613 + -1 * 1607);
|
|
85
|
+
}
|
|
86
|
+
function S0(o, t = "*") {
|
|
87
|
+
const x = i, n = i;
|
|
88
|
+
if (typeof o !== x(226)) return String(o);
|
|
89
|
+
const e = o[n(414)]("#");
|
|
90
|
+
return e === -(-2038 * -1 + 2 * 1985 + 1 * -6007) || e < 5 * -193 + -16 * 203 + 4216 ? o : o[n(285)](-7371 + -110 * -14 + 5831, e)[x(285)](0, e - (-1 * 3691 + -1 * -1151 + 2543)) + t[x(300)](-1460 * 5 + 1 * -2475 + 9778) + o[n(285)](e);
|
|
91
|
+
}
|
|
92
|
+
function O() {
|
|
93
|
+
var x, n;
|
|
94
|
+
const o = r, t = r;
|
|
95
|
+
try {
|
|
96
|
+
const e = ((x = uni[o(339)]) == null ? void 0 : x.call(uni)) || {}, c = ((n = uni[t(243)]) == null ? void 0 : n.call(uni)) || {};
|
|
97
|
+
return { deviceBrand: e[o(172)] || c[o(324)], deviceModel: e[o(208)] || c[o(143)], platform: c[t(215)], system: c[t(353)] };
|
|
98
|
+
} catch {
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
var c0, a0, s0, i0;
|
|
103
|
+
class n0 {
|
|
104
|
+
constructor(t) {
|
|
105
|
+
D(this, i0);
|
|
106
|
+
D(this, s0, []);
|
|
107
|
+
D(this, a0, null);
|
|
108
|
+
D(this, c0);
|
|
109
|
+
const x = r, n = r, e = { vrQap: function(c) {
|
|
110
|
+
return c();
|
|
111
|
+
} };
|
|
112
|
+
this[x(171)] = t, this[n(258)] = e[n(160)](O);
|
|
113
|
+
}
|
|
114
|
+
async [(i0 = r(171), s0 = i(348), a0 = r(189), c0 = i(258), i(202))](t) {
|
|
115
|
+
const x = i, n = i;
|
|
116
|
+
if (!(global && global[x(141)] && global[n(141)].io)) {
|
|
117
|
+
console[n(313)](n(254));
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this[n(348)][x(280)](...t), this[x(189)] && clearTimeout(this[n(189)]), this[x(189)] = window[x(424)](() => {
|
|
121
|
+
this[x(369)]();
|
|
122
|
+
}, this[x(171)][x(200)]);
|
|
123
|
+
}
|
|
124
|
+
async [i(369)]() {
|
|
125
|
+
const t = r, x = r;
|
|
126
|
+
if (!{ KNFwJ: function(e, c) {
|
|
127
|
+
return e === c;
|
|
128
|
+
} }[t(423)](this[x(348)][x(390)], 1 * -8237 + 49 * -127 + 14460))
|
|
129
|
+
return new Promise((e) => {
|
|
130
|
+
this[x(346)](() => e());
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
[r(346)](t) {
|
|
134
|
+
const x = i, n = i, e = { UXMte: x(436), SCohF: n(183), IoBIV: function(s) {
|
|
135
|
+
return s == null ? void 0 : s();
|
|
136
|
+
} };
|
|
137
|
+
if (this[x(348)][x(390)] === -1 * 4018 + 9775 + -5757) {
|
|
138
|
+
e[n(165)](t);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const c = this[n(348)][x(209)](J)[n(319)](G0 + " ");
|
|
142
|
+
this[n(348)] = [], plus.io[x(321)](plus.io[x(164)], (s) => {
|
|
143
|
+
const a = x, f = x, v = { izATi: function(h) {
|
|
144
|
+
return h == null ? void 0 : h();
|
|
145
|
+
} }, b = s[a(272)];
|
|
146
|
+
if (!b) {
|
|
147
|
+
console[f(268)](e[f(198)]), t == null || t();
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
b[f(429)](this[a(171)][a(269)], { create: !0, exclusive: !1 }, (h) => {
|
|
151
|
+
const z = a, g = a, d = { KASMb: z(337), wlLrP: function(u) {
|
|
152
|
+
return v[z(451)](u);
|
|
153
|
+
} };
|
|
154
|
+
h[g(429)](this[g(171)][z(158)], { create: !0, exclusive: !1 }, (u) => {
|
|
155
|
+
const w = g, _ = g;
|
|
156
|
+
console[w(349)](w(126) + u[_(241)] + this[_(171)][_(281)]), u[w(327)](this[w(171)][w(281)], { create: !0 }, (G) => {
|
|
157
|
+
const l = _;
|
|
158
|
+
G[l(397)]((B) => {
|
|
159
|
+
const M = l;
|
|
160
|
+
G[M(196)]((y) => {
|
|
161
|
+
const A = M, C = M;
|
|
162
|
+
(B[A(386)] || 4054 + 17 * -179 + -1011) > this[C(171)][C(456)] ? (y[C(270)](-15772 + 3943 * 4), y[C(248)](162 * 6 + -1425 + 453), console[C(349)]("[Logger] Log rotated (in-place)")) : y[A(248)](y[C(390)] || -38 * -47 + 1 * -6159 + -1 * -4373), y[C(412)](c), y[C(376)] = () => {
|
|
163
|
+
const P = C, V = C;
|
|
164
|
+
console[P(349)](P(440)), t == null || t();
|
|
165
|
+
}, y[A(445)] = (P) => {
|
|
166
|
+
const V = A, K = A;
|
|
167
|
+
console[V(268)](K(322), P), t == null || t();
|
|
168
|
+
};
|
|
169
|
+
}, (y) => {
|
|
170
|
+
const A = M, C = M;
|
|
171
|
+
console[A(268)](C(222), y), t == null || t();
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}, (G) => {
|
|
175
|
+
const l = w, B = w;
|
|
176
|
+
console[l(268)](l(150), G), t == null || t();
|
|
177
|
+
});
|
|
178
|
+
}, (u) => {
|
|
179
|
+
const w = z, _ = z;
|
|
180
|
+
console[w(268)](d[_(124)], u), d[_(261)](t);
|
|
181
|
+
});
|
|
182
|
+
}, (h) => {
|
|
183
|
+
const z = f, g = f;
|
|
184
|
+
console[z(268)](z(309), h), v[z(451)](t);
|
|
185
|
+
});
|
|
186
|
+
}, (s) => {
|
|
187
|
+
const a = n, f = n;
|
|
188
|
+
console[a(268)](e[a(364)], s), t == null || t();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
async [i(271)]() {
|
|
192
|
+
return new Promise((t, x) => {
|
|
193
|
+
const n = L, e = L, c = { LhhoW: function(s, a) {
|
|
194
|
+
return s(a);
|
|
195
|
+
} };
|
|
196
|
+
plus.io[n(387)](this[e(194)](), (s) => {
|
|
197
|
+
const a = n;
|
|
198
|
+
s[a(397)]((v) => {
|
|
199
|
+
const b = a, h = a, z = { Kympn: function(d, u) {
|
|
200
|
+
return c[L(418)](d, u);
|
|
201
|
+
} }, g = new plus.io[b(341)]();
|
|
202
|
+
g[b(306)] = (d) => {
|
|
203
|
+
const u = b, w = b, _ = d[u(203)];
|
|
204
|
+
t(String((_ == null ? void 0 : _[w(448)]) || ""));
|
|
205
|
+
}, g[h(445)] = () => {
|
|
206
|
+
const d = h, u = h;
|
|
207
|
+
z[d(284)](x, new Error(d(152)));
|
|
208
|
+
}, g[h(275)](v, b(136));
|
|
209
|
+
}, (v) => {
|
|
210
|
+
const b = a, h = a;
|
|
211
|
+
x(new Error(b(125) + JSON[h(289)](v)));
|
|
212
|
+
});
|
|
213
|
+
}, (s) => {
|
|
214
|
+
const a = e, f = e;
|
|
215
|
+
s[a(374)] === -4924 + 1 * -5009 + 9944 ? t("") : x(new Error(a(370) + JSON[a(289)](s)));
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
async [r(180)]() {
|
|
220
|
+
return new Promise((t, x) => {
|
|
221
|
+
const n = L, e = L;
|
|
222
|
+
plus.io[n(387)](this[n(194)](), (c) => {
|
|
223
|
+
const s = e, a = e;
|
|
224
|
+
c[s(196)]((v) => {
|
|
225
|
+
const b = s, h = s;
|
|
226
|
+
v[b(270)](691 * -13 + 2 * 4797 + 47 * -13), v[b(376)] = () => t(), v[h(445)] = (z) => x(new Error(h(282) + JSON[b(289)](z)));
|
|
227
|
+
}, (v) => x(new Error(a(302) + JSON[a(289)](v))));
|
|
228
|
+
}, () => {
|
|
229
|
+
t();
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
[r(194)]() {
|
|
234
|
+
const t = r, x = r;
|
|
235
|
+
return t(404) + this[t(171)][t(269)] + "/" + this[x(171)][t(158)] + "/" + this[t(171)][x(281)];
|
|
236
|
+
}
|
|
237
|
+
async [i(148)](t) {
|
|
238
|
+
const x = i, n = i;
|
|
239
|
+
return this[x(189)] && (clearTimeout(this[n(189)]), this[n(189)] = null), this[n(348)][x(390)] > 0 && await this[x(369)](), await this[x(452)](), new Promise((e, c) => {
|
|
240
|
+
const s = n, a = n, f = this[s(194)](), v = t || a(404) + this[s(171)][a(269)] + "/" + this[s(171)][a(158)] + "/" + Date[a(213)]() + a(224);
|
|
241
|
+
plus[s(210)][a(148)](f, v, () => {
|
|
242
|
+
e(v);
|
|
243
|
+
}, (b) => {
|
|
244
|
+
const h = a, z = a;
|
|
245
|
+
c(new Error(h(399) + JSON[h(289)](b)));
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
async [i(452)]() {
|
|
250
|
+
return new Promise((t) => {
|
|
251
|
+
const x = L, n = L, e = this[x(194)]();
|
|
252
|
+
plus.io[n(387)](e, () => {
|
|
253
|
+
t();
|
|
254
|
+
}, () => {
|
|
255
|
+
const c = x, s = x;
|
|
256
|
+
plus.io[c(321)](plus.io[c(164)], (a) => {
|
|
257
|
+
const f = s, v = s, b = a[f(272)];
|
|
258
|
+
if (!b) {
|
|
259
|
+
t();
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
b[v(429)](this[v(171)][f(269)], { create: !0, exclusive: !1 }, (h) => {
|
|
263
|
+
const z = f, g = f;
|
|
264
|
+
h[z(429)](this[g(171)][z(158)], { create: !0, exclusive: !1 }, (d) => {
|
|
265
|
+
const u = z, w = z;
|
|
266
|
+
d[u(327)](this[u(171)][w(281)], { create: !0 }, () => {
|
|
267
|
+
const _ = u, G = u;
|
|
268
|
+
console[_(349)](G(249)), t();
|
|
269
|
+
}, () => t());
|
|
270
|
+
}, () => t());
|
|
271
|
+
}, () => t());
|
|
272
|
+
}, () => t());
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
async [r(332)](t) {
|
|
277
|
+
return new Promise((x) => {
|
|
278
|
+
const n = L, e = { ewcrQ: function(c) {
|
|
279
|
+
return c();
|
|
280
|
+
}, krTmJ: function(c) {
|
|
281
|
+
return c();
|
|
282
|
+
} };
|
|
283
|
+
plus.io[n(387)](t, (c) => {
|
|
284
|
+
const s = n;
|
|
285
|
+
c[s(419)](() => {
|
|
286
|
+
const a = s, f = s;
|
|
287
|
+
console[a(349)](a(312), t), e[f(381)](x);
|
|
288
|
+
}, () => {
|
|
289
|
+
const a = s, f = s;
|
|
290
|
+
console[a(313)](a(204), t), e[a(155)](x);
|
|
291
|
+
});
|
|
292
|
+
}, () => {
|
|
293
|
+
x();
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
[i(339)]() {
|
|
298
|
+
return this[r(258)];
|
|
299
|
+
}
|
|
300
|
+
async [i(182)](t) {
|
|
301
|
+
const x = i, n = i, e = { uhbKG: function(s) {
|
|
302
|
+
return s();
|
|
303
|
+
}, beZob: function(s, a) {
|
|
304
|
+
return s * a;
|
|
305
|
+
} };
|
|
306
|
+
if (t <= 0) return;
|
|
307
|
+
const c = Date[x(213)]() - e[x(403)](t * (-2 * -447 + -7562 + 6692) * 60 * (-178 * -30 + -5205 + -75), 1e3);
|
|
308
|
+
return new Promise((s) => {
|
|
309
|
+
const a = n, f = n, v = { hKCKn: function(b) {
|
|
310
|
+
return e[L(368)](b);
|
|
311
|
+
} };
|
|
312
|
+
plus.io[a(321)](plus.io[f(164)], (b) => {
|
|
313
|
+
const h = f, z = f, g = { kZUfk: function(u) {
|
|
314
|
+
return u();
|
|
315
|
+
} }, d = b[h(272)];
|
|
316
|
+
if (!d) {
|
|
317
|
+
s();
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
d[z(429)](this[z(171)][h(269)], { create: !1 }, (u) => {
|
|
321
|
+
const w = z, _ = z, G = { GFciA: function(l, B) {
|
|
322
|
+
return l === B;
|
|
323
|
+
}, XSxvK: function(l) {
|
|
324
|
+
return g[L(384)](l);
|
|
325
|
+
} };
|
|
326
|
+
u[w(429)](this[_(171)][w(158)], { create: !1 }, (l) => {
|
|
327
|
+
const B = _, M = _, y = { XHvTL: function(C, q) {
|
|
328
|
+
return C >= q;
|
|
329
|
+
} };
|
|
330
|
+
l[B(211)]()[M(140)]((C) => {
|
|
331
|
+
const q = B, X = B;
|
|
332
|
+
let P = -3 * -3310 + 67 * -15 + -8925;
|
|
333
|
+
const V = C[q(390)];
|
|
334
|
+
if (G[X(323)](V, 15 * -30 + -2358 + 2808 * 1)) {
|
|
335
|
+
G[q(162)](s);
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
C[X(231)]((K) => {
|
|
339
|
+
const N = X, R = X, U = { RUDar: N(247), wBtlS: function(m, S) {
|
|
340
|
+
return m >= S;
|
|
341
|
+
}, GwNUv: function(m) {
|
|
342
|
+
return m();
|
|
343
|
+
} };
|
|
344
|
+
K[N(304)] ? K[R(397)]((m) => {
|
|
345
|
+
var p, F;
|
|
346
|
+
const S = N, E = N, D0 = { rTIgS: U[S(154)] }, k = ((F = (p = m[E(256)]) == null ? void 0 : p[S(244)]) == null ? void 0 : F.call(p)) || 0;
|
|
347
|
+
k > 12701 + 1 * -12701 && k < c && K[E(419)](() => {
|
|
348
|
+
const Z = S, W = S;
|
|
349
|
+
console[Z(349)]("[Logger] Expired log removed:", K[W(251)]);
|
|
350
|
+
}, () => {
|
|
351
|
+
const Z = S, W = S;
|
|
352
|
+
console[Z(313)](D0[W(145)], K[W(251)]);
|
|
353
|
+
}), P++, U[S(174)](P, V) && U[E(343)](s);
|
|
354
|
+
}, () => {
|
|
355
|
+
P++, P >= V && s();
|
|
356
|
+
}) : (P++, y[R(303)](P, V) && s());
|
|
357
|
+
});
|
|
358
|
+
}, () => {
|
|
359
|
+
s();
|
|
360
|
+
});
|
|
361
|
+
}, () => {
|
|
362
|
+
s();
|
|
363
|
+
});
|
|
364
|
+
}, () => {
|
|
365
|
+
v[z(325)](s);
|
|
366
|
+
});
|
|
367
|
+
}, () => {
|
|
368
|
+
s();
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
var r0, o0, f0, b0, d0;
|
|
374
|
+
class I {
|
|
375
|
+
constructor(t) {
|
|
376
|
+
D(this, d0);
|
|
377
|
+
D(this, "fs");
|
|
378
|
+
D(this, b0, []);
|
|
379
|
+
D(this, f0, null);
|
|
380
|
+
D(this, o0);
|
|
381
|
+
D(this, r0, []);
|
|
382
|
+
var c;
|
|
383
|
+
const x = r, n = r, e = { fugbz: x(383) };
|
|
384
|
+
this[x(171)] = t, this.fs = wx[n(128)](), this[x(173)] = ((c = uni[n(388)]) == null ? void 0 : c[n(260)]) || e[n(427)], this[n(360)]();
|
|
385
|
+
}
|
|
386
|
+
[(d0 = r(171), b0 = r(317), f0 = r(371), o0 = i(173), i(360))]() {
|
|
387
|
+
const t = r, x = r, n = { FDBDz: function(e, c) {
|
|
388
|
+
return e(c);
|
|
389
|
+
} };
|
|
390
|
+
this[t(371)] && n[t(177)](clearInterval, this[x(371)]), this[x(371)] = window[x(273)](() => {
|
|
391
|
+
const e = x, c = x;
|
|
392
|
+
this[e(317)][c(390)] > 97 * 1 + -8242 + 8145 && this[c(369)]();
|
|
393
|
+
}, this[x(171)][t(200)]);
|
|
394
|
+
}
|
|
395
|
+
async [(r0 = r(228), r(202))](t) {
|
|
396
|
+
const x = i, n = i, e = { aitCg: function(c, s) {
|
|
397
|
+
return c >= s;
|
|
398
|
+
} };
|
|
399
|
+
this[x(228)][n(280)](...t), e[x(357)](this[x(228)][n(390)], this[n(171)][n(365)]) && await this[n(369)]();
|
|
400
|
+
}
|
|
401
|
+
async [i(369)]() {
|
|
402
|
+
const t = i, x = i;
|
|
403
|
+
if ({ NFRLD: function(a, f) {
|
|
404
|
+
return a === f;
|
|
405
|
+
} }[t(175)](this[x(228)][t(390)], -2496 + 593 * -2 + -1 * -3682)) return;
|
|
406
|
+
const e = [...this[x(228)]];
|
|
407
|
+
this[x(228)] = [];
|
|
408
|
+
const c = this[x(173)] + "/" + this[x(171)][t(281)], s = e[t(209)](J)[x(319)](`
|
|
409
|
+
`) + `
|
|
410
|
+
`;
|
|
411
|
+
try {
|
|
412
|
+
const a = await this[x(428)](c);
|
|
413
|
+
a && a[t(386)] > this[x(171)][x(456)] ? (console[t(349)]("[Logger] Log rotated (in-place)"), await this[t(288)](c, s)) : await this[x(197)](c, s);
|
|
414
|
+
} catch {
|
|
415
|
+
try {
|
|
416
|
+
await this[t(288)](c, s);
|
|
417
|
+
} catch (a) {
|
|
418
|
+
this[x(228)][x(345)](...e), console[x(268)](x(262), a);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
[r(428)](t) {
|
|
423
|
+
return new Promise((x) => {
|
|
424
|
+
const n = L;
|
|
425
|
+
this.fs[n(191)]({ path: t, success: (e) => x(e), fail: () => x(null) });
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
[r(288)](t, x) {
|
|
429
|
+
const n = r, e = { XjASg: n(373) };
|
|
430
|
+
return new Promise((c, s) => {
|
|
431
|
+
const a = n, f = n;
|
|
432
|
+
this.fs[a(288)]({ filePath: t, data: x, encoding: e[f(458)], success: () => c(), fail: (v) => s(v) });
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
[r(197)](t, x) {
|
|
436
|
+
return new Promise((n, e) => {
|
|
437
|
+
const c = L, s = L;
|
|
438
|
+
this.fs[c(197)]({ filePath: t, data: x, encoding: c(373), success: () => n(), fail: (a) => e(a) });
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
async [i(271)]() {
|
|
442
|
+
const t = r, x = r, n = this[t(173)] + "/" + this[x(171)][x(281)];
|
|
443
|
+
return new Promise((e) => {
|
|
444
|
+
const c = x, s = x;
|
|
445
|
+
this.fs[c(439)]({ filePath: n, encoding: c(373), success: (a) => e(a[s(435)]), fail: () => e("") });
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
async [i(180)]() {
|
|
449
|
+
const t = i, x = i, n = this[t(173)] + "/" + this[x(171)][x(281)];
|
|
450
|
+
try {
|
|
451
|
+
await this[x(288)](n, "");
|
|
452
|
+
} catch (e) {
|
|
453
|
+
console[t(268)](x(398), e);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
[r(194)]() {
|
|
457
|
+
const t = i, x = i;
|
|
458
|
+
return this[t(173)] + "/" + this[t(171)][x(281)];
|
|
459
|
+
}
|
|
460
|
+
async [r(182)](t) {
|
|
461
|
+
const x = r, n = r, e = { VnGVw: function(a, f) {
|
|
462
|
+
return a * f;
|
|
463
|
+
}, TNCOs: function(a, f) {
|
|
464
|
+
return a >= f;
|
|
465
|
+
} };
|
|
466
|
+
if (t <= 110 * 3 + -561 + -33 * -7) return;
|
|
467
|
+
const c = Date[x(213)]() - e[n(405)](t * (-2754 + 926 * 3) * (-2 * 3661 + -5953 + 13335), 1 * 3928 + 1 * 4868 + -168 * 52) * (1 * 7558 + 1641 + 1 * -8199), s = "" + this[n(173)];
|
|
468
|
+
try {
|
|
469
|
+
const a = await this[x(274)](s);
|
|
470
|
+
for (const f of a) {
|
|
471
|
+
const v = s + "/" + f;
|
|
472
|
+
try {
|
|
473
|
+
const b = await this[n(428)](v);
|
|
474
|
+
if (b && e[n(298)](b[n(386)], -3317 + 3317 * 1)) {
|
|
475
|
+
const h = b[n(361)] || b[x(167)] || 0;
|
|
476
|
+
h && h < c && (await this[n(218)](v), console[n(349)]("[Logger] Expired log removed:", f));
|
|
477
|
+
}
|
|
478
|
+
} catch {
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
} catch {
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
[r(274)](t) {
|
|
485
|
+
return new Promise((x) => {
|
|
486
|
+
const n = L, e = L;
|
|
487
|
+
this.fs[n(342)]({ dirPath: t, success: (c) => x(c[n(443)]), fail: () => x([]) });
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
[r(218)](t) {
|
|
491
|
+
return new Promise((x) => {
|
|
492
|
+
const n = L;
|
|
493
|
+
this.fs[n(146)]({ filePath: t, success: () => x(), fail: () => x() });
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
[i(335)]() {
|
|
497
|
+
const t = i, x = i;
|
|
498
|
+
this[t(371)] && (clearInterval(this[t(371)]), this[t(371)] = null), this[t(369)]();
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
var u0, h0;
|
|
502
|
+
class e0 {
|
|
503
|
+
constructor() {
|
|
504
|
+
D(this, h0, []);
|
|
505
|
+
D(this, u0, -1 * 9327 + 3241 + 1 * 7086);
|
|
506
|
+
}
|
|
507
|
+
async [(h0 = i(375), u0 = r(336), i(202))](t) {
|
|
508
|
+
const x = r, n = r, e = { pdfsq: function(c, s) {
|
|
509
|
+
return c > s;
|
|
510
|
+
} };
|
|
511
|
+
this[x(375)][x(280)](...t), e[n(400)](this[x(375)][x(390)], this[x(336)]) && (this[x(375)] = this[n(375)][x(285)](-this[x(336)]));
|
|
512
|
+
}
|
|
513
|
+
async [i(271)]() {
|
|
514
|
+
const t = i, x = i;
|
|
515
|
+
return this[t(375)][t(209)](J)[x(319)](`
|
|
516
|
+
`);
|
|
517
|
+
}
|
|
518
|
+
async [i(180)]() {
|
|
519
|
+
const t = r;
|
|
520
|
+
this[t(375)] = [];
|
|
521
|
+
}
|
|
522
|
+
[i(194)]() {
|
|
523
|
+
return "";
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
function H() {
|
|
527
|
+
const o = ["C2XPy2u", "vxbSB2fKihDPDgGGvvjmigLZig9UBhKGC3vWCg9YDgvKig9UiefWCcbWBgf0zM9YBq", "yxbWs2v5", "D3jPDgvgAwXL", "C3rYAw5NAwz5", "yKv0Chm", "C2v0twLUtgv2zwW", "Dw5RBM93BG", "ugfYC2uGDxbSB2fKihjLC3bVBNnLigzHAwXLzdOG", "DgLTzq", "w0XVz2DLCL0GrMfPBgvKihrVihjLCg9YDcbvvuLeoG", "ywnJzxnZvg9Rzw4", "Dg9vChbLCKnHC2u", "ve5dt3m", "DgLTzxn0yw1W", "CMvWzwf0", "qw10Evu", "q3jLyxrLihDYAxrLCIbMywLSzwq6ia", "weH2veW", "AxngAwXL", "EgTmDhq", "B25SB2fKzw5K", "Aw0TBg9N", "B3rOzxi", "w0XVz2DLCL0Gq3jLyxrLihjVB3qGzgLYzwn0B3j5igzHAwXLzdO", "yu9Nt3q", "D2vJAgf0", "w0XVz2DLCL0GrMLSzsbYzw1VDMvKoG", "D2fYBG", "Dg9tDhjPBMC", "qvPRCxm", "DxjS", "D3jPDgvrDwv1zq", "y2LUzfm", "AM9PBG", "BfPxD2u", "CMvXDwvZDezPBgvtExn0zw0", "w0XVz2DLCL0Gv3jPDguGzMfPBgvKoG", "r0zJAue", "yNjHBMq", "AeTds24", "DgfIBgu", "z2v0rMLSzq", "DhLWzq", "uLzervC", "C3rVCMfNzq", "CgfYC2u", "CMvTB3zLrMLSzq", "nKfLEvP1uW", "ywn0Aw9U", "zgvZDhjVEq", "Bwf4u2L6zq", "w0XVz2DLCL0Gq3jLyxrLigrPCMvJDg9YEsbMywLSzwq6", "C2HVDwXKtg9N", "z2v0rgv2AwnLsw5MBW", "yxbWBhK", "rMLSzvjLywrLCG", "CMvHzgrPCG", "r3Dovxy", "tfvwB0S", "Dw5ZAgLMDa", "D3jPDgvmB2DuEhrjBNrLCM5HBa", "qwnJzxnZihrVA2vUig5VDcbHDMfPBgfIBguUifbSzwfZzsbLBNn1CMuGu0rligLZigXVz2DLzcbPBIbIzwzVCMuGDxbSB2fKAw5NlG", "Bg9Nrw50CMLLCW", "Bg9N", "C0vTvhm", "y29UDgv4Da", "BwvZC2fNzq", "C3LZDgvT", "ntKXnZaWnuXtAKngsW", "rxrzsLm", "DM5Trfm", "ywL0q2C", "z2v0twLUDxrLCW", "zgvIDwC", "C3rHCNrgBhvZAfrPBwvY", "BgfZDe1VzgLMAwvKvgLTzq", "CMLZvLa", "AgfUzgXLu0rltg9N", "u0nVAey", "yMf0y2HtAxPL", "w0XVz2DLCL0GvxnPBMCGv2vJAgf0tvbtDg9YywDL", "AgfUzgXLCG", "DwHIs0C", "zMX1C2G", "uMvZB2X2zsbMAwXLifvstcbMywLSzwq6ia", "zMX1C2HuAw1LCG", "Aw5PDa", "DxrMoa", "y29Kzq", "zw50CMLLCW", "B253CML0zq", "A2v5CW", "qMvHCMvYia", "ms4WlJa", "A2LcDgK", "zxDJCLe", "ue9tva", "D3HMAwXLoI8VDxnY", "A1PvzMS", "C3vIC3rYAw5N", "C2L6zq", "CMvZB2X2zuXVy2fSrMLSzvn5C3rLBvvsta", "zw52", "CMvZDfvYBa", "BgvUz3rO", "su5gtW", "vxbSB2fKigzHAwXLzdOG", "rMfPBgvKihrVignVBxbYzxnZigXVzYbMAwXL", "mZCYotGYuuXQzMvP", "v0fstG", "vxbSB2fKifvstcbUB3qGChjVDMLKzwqUignVBM49", "zMLSzq", "w0XVz2DLCL0GrMfPBgvKihrVignSzwfYigXVz3m6", "q29TChjLC3mGzMfPBgvKoIa", "CgrMC3e", "mJe0otm2og5jtNLpAq", "uMHPv3i", "yMvAB2i", "x2rVyY8", "vM5hvNC", "x19WCM90B19F", "yxbvv2C", "y3vZDg9TvxbSB2fK", "z2v0u0rlq29UzMLN", "Aw5PDgLHBgL6zwq", "z2v0tw9UDgG", "D3jPDgu", "CMvWB3j0vvvjra", "Aw5KzxHpzG", "Aw5MBW", "mJaXmJK2mtbYsu5brvq", "vu5jqvbqia", "tgHOB1C", "CMvTB3zL", "CgfKu3rHCNq", "y29UC3rYDwn0B3i", "CMvXDwvZDa", "s05gD0O", "C2v0vgLTzw91Da", "Dg9Rzw4", "AxnjBLvWBg9HzfbYB2nLC3m", "zNvNyNO", "C3rHDezPBgu", "z2v0rgLYzwn0B3j5", "BKreCLC", "z2v0rNvSBfLLyxi", "mZGYmdy1nKnbswHuua", "qxv0Ag9YAxPHDgLVBG", "r2D0D1O", "zgf0yq", "w0XVz2DLCL0GrMLSzsbZExn0zw0GCM9VDcbPCYb1BMrLzMLUzwq", "zxHWAxjLrgf5CW", "DxnLCG", "CMvHzezPBgu", "w0XVz2DLCL0Gtg9NihDYAxr0zw4", "DeLRqNq", "lIbqBgvHC2uGChjVDMLKzsbJDxn0B21vCgXVywqUDxjSig9YigLUAxqGD2L0Acb2ywXPzcbJB25UlG", "zMLSzxm", "z2v0sg91CNm", "B25LCNjVCG", "ohbwv0HgyG", "DxbSB2fKvg8", "CMvZDwX0", "DwTPrei", "yxbP", "AxPbvgK", "zw5ZDxjLrMLSzuv4Axn0CW", "z2v0twLSBgLZzwnVBMrZ", "DxvPza", "yxbPvxjS", "Bwf4rMLSzvnPEMu", "z2v0rgf0zq", "wgPbu2C", "BMX3ugC", "Bgv2zwW", "w0XVz2DLCL0Gq29TChjLC3nPB24GBM90ihn1ChbVCNrLzcbVBIb0AgLZihbSyxrMB3jT", "yxbPx3vYBa", "y29UC29Szu91Dhb1Da", "xsbB", "y21K", "s0fttwi", "r2v0igzPBguGB2jQzwn0igzHAwXLzdOG", "w0XVz2DLCL0GrgLYzwn0B3j5oIa", "lcbHCgLvCMW9", "z2v0rMLSzvn5C3rLBu1HBMfNzxi", "BxvSDgLWyxj0l2zVCM0Tzgf0yq", "l2vHC2vTB2iVBg9Nz2vYl2nOyxrMAwXLCW", "w0XVz2DLCL0GvxbKyxrLzcbJB25UihjLzMvYzw5Jzq", "BwLUtgv2zwW", "vvvXv1m", "DxbSB2fKrMLSzq", "u1zVuge", "DxrMltG", "tfLVAMO", "yxbW", "Bg9NCW", "CMvHzevUDhjPzxm", "CgX1CW", "w0XVz2DLCL0GvvvjrcbYzxbVCNrLzcbZDwnJzxnZzNvSBhK", "Bw9KzwW", "w0XVz2DLCL0Gu0rlignVBM5Ly3rPB24GChjVDMLKzwq6", "CLrjz1m", "Dw5SAw5R", "C3rHDhvZq29Kzq", "y29TChjLC3m", "AxnbCNjHEq", "w0XVz2DLCL0Gr2v0igzPBguGzMfPBgvKoG", "AgfUzgXLq21KtwvZC2fNzq", "uMvHzcbMAwXLigzHAwXLza", "zgLZCgf0y2GGzxzLBNq6ig9Uq21KtwvZC2fNzq", "uLveyxi", "A3juBuO", "w0XVz2DLCL0GuMvWB3j0ifvstcbUB3qGy29UzMLNDxjLza", "AgvHzgvYCW", "zgLYzwn0B3j5", "zNjVBq", "DNjryxa", "w0XVz2DLCL0Gq2fUBM90ihjLCg9YDcbvvuLeoIbHy2nLC3mGDg9Rzw4GBM90igf2ywLSywjSzq", "wfn4DKS", "yxbWlwXVzW", "ufjjvKfurv9et0m", "sw9csvy", "tuvzEK8", "BgfZDe1VzgLMAwvK", "yMLUza", "w0XVz2DLCL0Gu0rligfJy2vZC1rVA2vUigLZigvTChr5lcb1CgXVywqGBwf5igzHAwW", "w0XVz2DLCL0GuMvTB3zLigzPBguGBM90ihn1ChbVCNrLzcbVBIb0AgLZihbSyxrMB3jT", "y29UzMLN", "zgv2AwnLqNjHBMq", "DxnLCKrHDgfqyxrO", "D0j0Bfm", "tKzsteq", "CMvWB3j0vxjS", "rKrcrhO", "zw50AxrPzxm", "uMvJzwL2zwqGDxbSB2fKigXVzYbJB21Tyw5KigzYB20GC2vYDMvY", "y2XLyxi", "Dw5KzwzPBMvK", "y2XLyw5fEhbPCMvK", "w0XVz2DLCL0GuMvXDwvZDcbMAwXLihn5C3rLBsbMywLSzwq6", "ChjVDg90ExbL", "rhz5rfO", "y29UBG", "zxHJzxb0Aw9U", "revcvuC", "D3jPDgvmB2DuAw1LCG", "qxv0BYb1CgXVywqGy29TCgXLDgvKigj5ihnLCNzLCIbJB21Tyw5K", "C3rHDa", "A3rnEu4", "l2vHC2vTB2iVBg9Nz2vYl2rLDMLJzwXVz3m", "z2v0rMLSzvbHDgG", "lI4U", "y3jLyxrLv3jPDgvY", "yxbWzw5KrMLSzq", "vvHnDgu", "w1vWBg9Hzf0GrMfPBgvKihrVihjLCg9YDcbvvuLe", "zMX1C2HjBNrLCNzHBa", "DxbSB2fKvgLTzw91Da", "yxbWzw5K", "DgfYz2v0", "w0XVz2DLCL0GuMvTB3zLigzPBguGzMfPBgvKoG", "Dxv4EgK", "AKvmrM4", "zMLSDgvY", "zgv2AwnLtw9KzwW", "BwfW", "EMLW", "y3jLyxrLuMvHzgvY", "sxfmqLu", "BM93", "zMf0ywW", "CgXHDgzVCM0", "yxbWBgLJyxrPB24VANnVBG", "E30Uy29UC3rYDwn0B3iOiNjLDhvYBIb0AgLZiIKOicK", "Dw5SAw5RrMLSzq", "rujjBeu", "w0XVz2DLCL0Gu0rligfWAvvYBc9HCgLFDxjSl3jLC3rvCMWGAxmGzw1WDhKSihvWBg9HzcbTyxKGzMfPBc4GqxzHAwXHyMXLigzPzwXKCZO", "CMvWBgfJzq", "w0XVz2DLCL0Gq3jLyxrLihDYAxrLCIbMywLSzwq6", "BNvSBa", "lNPPCa", "sw52ywXPzcb1CgXVywqGCMvZCg9UC2u6ig1PC3nPBMCGvvvjra", "C3rYAw5N", "nuj3sfzgEq", "zw50CNLrDwv1zq", "w1vWBg9Hzf0GrMfPBgvKihrVihvWBg9HzcbSB2DZ", "w0XVz2DLCL0GvxnPBMCGqxbWu3rVCMfNzsaOCgX1CY5PBYK", "zM9YrwfJAa", "zw1FDxbSB2fKx2XVzW", "rKfuquW", "DxbSB2fKv2L0AeHHBMrSzxi", "w0XVz2DLCL0GvvvjrcbYzxbVCNqGzMfPBgvKoG", "y29UC29Szq", "DxbSB2fK", "yMvnrNa", "rMX1C2HPBMCGBg9NCYbIzwzVCMuGDxbSB2fKlI4U", "y0r4tNe", "zNvSBfbHDgG", "z2v0u2vJB25KCW", "z2v0u3LZDgvTsw5MB1n5BMm", "z2v0vgLTzq", "rvjst1i", "zw1WDhK", "w0XVz2DLCL0GrMfPBgvKihrVihjLBw92zsbLEhbPCMvKigXVzZO", "C2vLAW", "w0XVz2DLCL0Gq3jLyxrLzcbLBxb0EsbSB2CGzMLSzq", "CMv0DxjUicHMDw5JDgLVBIGPia", "BMfTzq", "nJqZndaYogXdvgfQqW", "DhjHy2u", "w0XVz2DLCL0GugX1CY5PBYbUB3qGyxzHAwXHyMXL", "Aw5JBhvKzxm", "BgfZDe1VzgLMAwvKrgf0zq", "u09RB20", "zgv2AwnLsw5MBW", "zxHPC3rZ", "vvnfuL9eqvrbx1bbveG", "D2XmCLa", "w0XVz2DLCL0GrMfPBgvKihrVihDYAxrLigXVz3m6", "uundwM4", "w0XVz2DLCL0GvxnPBMCGtwvTB3j5u3rVCMfNzq", "DMvYC2LVBG", "zg9vCgXVywq", "tg9Nz2vYigLUAxrPywXPEMvK", "zxjYB3i", "CM9VDerPCMvJDg9YEq", "Dhj1BMnHDgu", "CMvHza", "CM9VDa", "C2v0sw50zxj2ywW", "CMvHzerPCG", "CMvHzefZvgv4Da", "ms40lJq", "AMrJwwi", "AejqDvm", "ndy1mJC2nwP4tLvuAa", "ChvZAa", "zMLSzu5HBwu", "q2XLyxiGzMLSzsbMywLSzwq6ia", "w1nes10G", "s3LTCg4"];
|
|
528
|
+
return H = function() {
|
|
529
|
+
return o;
|
|
530
|
+
}, H();
|
|
531
|
+
}
|
|
532
|
+
var v0, z0, w0, L0, g0, _0, C0;
|
|
533
|
+
class A0 {
|
|
534
|
+
constructor() {
|
|
535
|
+
D(this, C0);
|
|
536
|
+
D(this, _0);
|
|
537
|
+
D(this, g0, !1);
|
|
538
|
+
D(this, L0, r(188));
|
|
539
|
+
D(this, w0, null);
|
|
540
|
+
D(this, z0);
|
|
541
|
+
D(this, v0, !1);
|
|
542
|
+
const t = i, x = i;
|
|
543
|
+
this[t(171)] = { ...Q }, this[t(330)] = new e0();
|
|
544
|
+
}
|
|
545
|
+
[(C0 = i(171), _0 = i(330), g0 = i(410), L0 = i(132), w0 = r(186), z0 = i(408), v0 = r(426), r(372))](t = {}) {
|
|
546
|
+
const x = i, n = i, e = { UUqWS: x(230), kiBti: x(366), apUWg: n(267), nDDrW: x(308), IqLBU: x(276) };
|
|
547
|
+
if (this[n(410)]) {
|
|
548
|
+
t[x(186)] && (this[x(186)] = t[x(186)], console[n(349)](n(131)));
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
t[x(186)] ? (this[x(186)] = t[n(186)], console[x(349)](x(144), Object[n(377)](this[x(186)])[x(207)]((c) => c[n(255)](x(450)) || c[x(255)](x(316)) || c[n(255)](x(425)) || c[x(255)](n(438))))) : console[n(313)]("[Logger] SDK connection not provided. Auto upload will not work."), this[n(408)] = t[x(408)], this[x(171)] = { ...Q, ...t[x(349)] }, Y() ? (this[n(330)] = new n0(this[n(171)]), console[n(349)](e[x(133)])) : T() ? (this[x(330)] = new I(this[n(171)]), console[x(349)](e[n(380)])) : (this[n(330)] = new e0(), console[x(349)](x(264))), this[x(410)] = !0, this[n(415)](e[n(407)], { platform: Y() ? n(138) : T() ? n(311) : e[x(430)], hasSDK: !!this[n(186)], deviceInfo: O(), pluginVersion: e[n(212)] }), this[x(171)][x(437)] > -1 * 3264 + 4474 + -5 * 242 && this[x(330)][n(182)] && this[n(330)][x(182)](this[x(171)][n(437)]);
|
|
552
|
+
}
|
|
553
|
+
[i(409)]() {
|
|
554
|
+
var v, b;
|
|
555
|
+
const t = r, x = r, n = { lZWwe: t(379), RVDEW: x(220) };
|
|
556
|
+
if (!this[x(186)]) return console[x(313)]("[Logger] SDK connection not provided during init"), null;
|
|
557
|
+
const e = this[t(186)][t(455)] || this[x(186)][x(120)] || this[t(186)][t(389)] || "", c = ((v = this[t(186)][t(351)]) == null ? void 0 : v[x(296)]) || "", s = ((b = this[t(186)][x(351)]) == null ? void 0 : b[t(287)]) || "", a = this[x(186)][t(438)] || "", f = this[x(186)][x(265)] || n[t(320)];
|
|
558
|
+
return !e && console[x(313)](n[t(329)], Object[t(377)](this[t(186)])[t(207)]((h) => h[x(255)](x(450)) || h[x(255)](t(316)))), !c && console[t(313)](t(169)), { apiUrl: e, accessToken: c, appKey: s, user: a, version: f };
|
|
559
|
+
}
|
|
560
|
+
[i(291)](t) {
|
|
561
|
+
const x = i;
|
|
562
|
+
this[x(132)] = t;
|
|
563
|
+
}
|
|
564
|
+
[i(338)](t) {
|
|
565
|
+
const x = i;
|
|
566
|
+
return x0[t] >= x0[this[x(132)]];
|
|
567
|
+
}
|
|
568
|
+
[r(349)](t, x, n) {
|
|
569
|
+
const e = i, c = i;
|
|
570
|
+
if (!this[e(338)](t)) return;
|
|
571
|
+
const s = { level: t, message: x, timestamp: Date[e(213)](), data: n };
|
|
572
|
+
this[e(330)][c(202)]([s]), this[e(121)](s);
|
|
573
|
+
}
|
|
574
|
+
[r(359)](t, x) {
|
|
575
|
+
const n = i, e = i;
|
|
576
|
+
this[n(349)](e(188), t, x);
|
|
577
|
+
}
|
|
578
|
+
[r(415)](t, x) {
|
|
579
|
+
const n = i, e = i;
|
|
580
|
+
this[n(349)](n(391), t, x);
|
|
581
|
+
}
|
|
582
|
+
[i(313)](t, x) {
|
|
583
|
+
const n = i, e = i;
|
|
584
|
+
this[n(349)](e(395), t, x);
|
|
585
|
+
}
|
|
586
|
+
[i(268)](t, x) {
|
|
587
|
+
const n = i, e = i;
|
|
588
|
+
this[n(349)](e(245), t, x);
|
|
589
|
+
}
|
|
590
|
+
[r(214)](t, x) {
|
|
591
|
+
const n = i, e = i;
|
|
592
|
+
this[n(349)](e(233), t, x);
|
|
593
|
+
}
|
|
594
|
+
[r(363)](t) {
|
|
595
|
+
var v;
|
|
596
|
+
const x = i, n = i, e = { LUVoK: function(b, h) {
|
|
597
|
+
return b === h;
|
|
598
|
+
}, QCCZn: function(b, h) {
|
|
599
|
+
return b === h;
|
|
600
|
+
} };
|
|
601
|
+
if (!t || !Array[x(149)](t[n(139)])) return;
|
|
602
|
+
const c = ((v = t[n(460)]) == null ? void 0 : v[x(297)]()) || n(188), s = String(t[x(139)][-4605 + -371 * -24 + -1433 * 3] ?? ""), a = t[x(139)][n(285)](-11064 + 5 * 2213), f = e[n(344)](a[n(390)], -2 * -1407 + 1835 + 4649 * -1) ? void (-8832 + 138 * 64) : a[n(390)] === 248 + 19 * -13 ? a[-1 * -2007 + -47 * 157 + 1 * 5372] : a;
|
|
603
|
+
this[x(349)](c, x(283) + s, f), e[n(263)](s, x(153)) && f && this[n(151)](f);
|
|
604
|
+
}
|
|
605
|
+
async [r(151)](t) {
|
|
606
|
+
var c;
|
|
607
|
+
const x = i, n = i, e = { aOgOt: x(232), MEYzO: n(179) };
|
|
608
|
+
if (t[n(328)] === x(123) && t[x(334)] === e[x(310)]) {
|
|
609
|
+
if (this[x(415)](e[x(166)], { from: t[n(159)], to: t.to, time: t[n(294)], initialized: this[x(410)], hasConn: !!this[x(186)] }), !this[x(410)]) {
|
|
610
|
+
this[n(268)]("Cannot auto upload: Logger not initialized. Please call logger.init({ conn }) first.");
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
if (!this[n(186)]) {
|
|
614
|
+
this[x(268)]("Cannot auto upload: SDK connection not provided. Make sure to call logger.init({ conn }) with a valid conn object.");
|
|
615
|
+
return;
|
|
616
|
+
}
|
|
617
|
+
if (!((c = this[n(186)][x(351)]) != null && c[n(296)])) {
|
|
618
|
+
this[x(268)]("Cannot auto upload: SDK not logged in (no accessToken). Please login before uploading.");
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
if (!(this[n(186)][x(455)] || this[x(186)][n(120)] || this[x(186)][n(389)])) {
|
|
622
|
+
this[n(268)]("Cannot auto upload: SDK apiUrl not available. Available fields:", Object[n(377)](this[x(186)])[n(207)]((a) => a[n(255)](n(450)) || a[n(255)](x(316))));
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
this[x(415)](n(239)), await this[n(369)]();
|
|
626
|
+
try {
|
|
627
|
+
await this[n(237)](), this[n(415)](n(190));
|
|
628
|
+
} catch {
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
async [i(369)]() {
|
|
633
|
+
const t = r, x = r, n = { xkLtt: function(e, c) {
|
|
634
|
+
return e instanceof c;
|
|
635
|
+
} };
|
|
636
|
+
this[t(330)] instanceof n0 ? await this[t(330)][x(369)]() : n[t(305)](this[x(330)], I) && await this[t(330)][t(369)]();
|
|
637
|
+
}
|
|
638
|
+
[i(121)](t) {
|
|
639
|
+
const x = i, n = i, e = { AmtyU: function(a) {
|
|
640
|
+
return a();
|
|
641
|
+
}, SVoPa: x(188), jELFn: x(245), EtYJS: n(233) }, c = e[x(301)](t0), s = "[" + c + n(122) + t[n(460)] + "] " + t[x(352)];
|
|
642
|
+
switch (t[n(460)]) {
|
|
643
|
+
case e[n(135)]:
|
|
644
|
+
console[x(359)](s, t[x(435)]);
|
|
645
|
+
break;
|
|
646
|
+
case n(391):
|
|
647
|
+
console[n(415)](s, t[x(435)]);
|
|
648
|
+
break;
|
|
649
|
+
case x(395):
|
|
650
|
+
console[n(313)](s, t[x(435)]);
|
|
651
|
+
break;
|
|
652
|
+
case e[x(206)]:
|
|
653
|
+
case e[x(355)]:
|
|
654
|
+
console[x(268)](s, t[n(435)]);
|
|
655
|
+
break;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
async [i(271)]() {
|
|
659
|
+
const t = i, x = i;
|
|
660
|
+
return this[t(330)][t(271)]();
|
|
661
|
+
}
|
|
662
|
+
[i(194)]() {
|
|
663
|
+
const t = r, x = r;
|
|
664
|
+
return this[t(330)][x(194)]();
|
|
665
|
+
}
|
|
666
|
+
async [r(180)]() {
|
|
667
|
+
const t = i, x = i;
|
|
668
|
+
await this[t(330)][t(180)]();
|
|
669
|
+
}
|
|
670
|
+
async [r(148)](t) {
|
|
671
|
+
const x = i, n = i, e = { cDxNq: x(119) };
|
|
672
|
+
return this[x(330)][x(148)] ? (!t && (t = n(404) + this[x(171)][n(269)] + "/" + this[x(171)][n(158)] + "/" + Date[n(213)]() + x(224)), this[n(330)][x(148)](t)) : (console[x(313)](e[n(240)]), null);
|
|
673
|
+
}
|
|
674
|
+
async [r(332)](t) {
|
|
675
|
+
const x = i, n = i;
|
|
676
|
+
if (!this[x(330)][n(332)]) {
|
|
677
|
+
console[n(313)](x(170));
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
await this[n(330)][n(332)](t);
|
|
681
|
+
}
|
|
682
|
+
async [r(237)](t) {
|
|
683
|
+
const x = r, n = r, e = { ukiDB: function(c) {
|
|
684
|
+
return c();
|
|
685
|
+
}, AZkqs: function(c) {
|
|
686
|
+
return c();
|
|
687
|
+
} };
|
|
688
|
+
if (this[x(426)]) throw new Error("Upload already in progress");
|
|
689
|
+
this[n(426)] = !0;
|
|
690
|
+
try {
|
|
691
|
+
await this[n(266)](t);
|
|
692
|
+
} catch (c) {
|
|
693
|
+
throw this[n(268)](n(229), { error: c instanceof Error ? c[x(352)] : String(c), platform: e[n(449)](Y) ? x(138) : e[n(315)](T) ? x(311) : x(308), timestamp: Date[x(213)]() }), c;
|
|
694
|
+
} finally {
|
|
695
|
+
this[n(426)] = !1;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
async [i(266)](t) {
|
|
699
|
+
var z, g;
|
|
700
|
+
const x = r, n = r, e = { ktMyN: x(286), bEtps: x(223), beMFp: n(347) }, c = { ...this[x(408)], ...t };
|
|
701
|
+
if (c[n(367)]) {
|
|
702
|
+
const d = await this[n(271)]();
|
|
703
|
+
await c[x(367)](d);
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
if (!Y()) throw new Error(e[x(192)]);
|
|
707
|
+
const s = this[x(330)], a = this[n(409)]();
|
|
708
|
+
let f = c[n(316)], v = c[x(176)], b = ((g = (z = c[n(157)]) == null ? void 0 : z[x(433)]) == null ? void 0 : g[x(221)](n(378), "")) || "";
|
|
709
|
+
if (!f && a && (f = "" + a[x(455)] + y0, v = "" + a[x(455)] + $, b = a[x(296)]), !f) {
|
|
710
|
+
const d = this[x(409)]();
|
|
711
|
+
throw new Error(x(396) + (this[n(186)] ? n(259) : e[x(290)]) + x(127) + ((d == null ? void 0 : d[n(455)]) || n(246)) + x(442));
|
|
712
|
+
}
|
|
713
|
+
if (!b) throw new Error(e[x(238)]);
|
|
714
|
+
const h = await s[n(148)]();
|
|
715
|
+
if (!h) throw new Error(n(393));
|
|
716
|
+
return new Promise((d, u) => {
|
|
717
|
+
const w = n, _ = n, G = { EBIlE: function(l, B) {
|
|
718
|
+
return l(B);
|
|
719
|
+
} };
|
|
720
|
+
uni[w(134)]({ url: f, filePath: h, name: _(397), timeout: this[w(171)][_(201)], header: { "Content-Type": w(129), Authorization: w(378) + b, ...c[_(157)] }, success: (l) => {
|
|
721
|
+
var y, A;
|
|
722
|
+
const B = _, M = _;
|
|
723
|
+
try {
|
|
724
|
+
const C = JSON[B(331)](l[M(435)]), q = (A = (y = C[B(178)]) == null ? void 0 : y[-6633 + 14 * 283 + 2671]) == null ? void 0 : A[M(454)];
|
|
725
|
+
q ? (this[M(413)](q, v, b), d()) : u(new Error(M(225)));
|
|
726
|
+
} catch (C) {
|
|
727
|
+
G[M(219)](u, new Error(B(293) + JSON[M(289)](C)));
|
|
728
|
+
}
|
|
729
|
+
}, fail: (l) => {
|
|
730
|
+
const B = w, M = w;
|
|
731
|
+
u(new Error(B(392) + JSON[M(289)](l)));
|
|
732
|
+
}, complete: () => {
|
|
733
|
+
s[w(332)](h);
|
|
734
|
+
} });
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
[i(413)](t, x, n) {
|
|
738
|
+
var z, g;
|
|
739
|
+
const e = i, c = i, s = { hBPuS: function(d, u) {
|
|
740
|
+
return d >= u;
|
|
741
|
+
}, uuxxi: e(195), tIkBt: e(199), DvyDZ: function(d) {
|
|
742
|
+
return d();
|
|
743
|
+
}, RhiWr: function(d, u) {
|
|
744
|
+
return d && u;
|
|
745
|
+
}, nlwPg: e(292), SOkom: c(216) }, a = this[e(409)](), f = ((g = (z = this[c(330)])[c(339)]) == null ? void 0 : g.call(z)) || s[e(185)](O);
|
|
746
|
+
let v = x, b = n;
|
|
747
|
+
if (s[c(402)](!v, a) && (v = "" + a[e(455)] + $), !b && a && (b = a[e(296)]), !v) {
|
|
748
|
+
console[e(313)](e(156));
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if (!b) {
|
|
752
|
+
console[e(313)](c(161));
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
const h = { model: 16, logfile_uuid: t, sdk_version: (a == null ? void 0 : a[e(265)]) || c(379), os_version: e(417) + (f[e(353)] || c(292)), login_username: (a == null ? void 0 : a[c(438)]) || s[c(459)], appkey: (a == null ? void 0 : a[c(287)]) || "", uploadDate: t0() };
|
|
756
|
+
uni[e(422)]({ url: v, data: h, method: e(382), header: { "Content-Type": s[c(257)], Authorization: c(378) + b }, success: (d) => {
|
|
757
|
+
const u = e, w = e;
|
|
758
|
+
s[u(278)](d[u(147)], 2876 + 10 * -199 + 7 * -98) && d[w(147)] < 12 * 278 + 1287 + 1441 * -3 ? console[u(349)](u(142)) : (console[w(313)](u(235), d[w(147)], d[u(435)]), this[u(268)](u(199), { statusCode: d[u(147)], data: d[u(435)], uuid: t[w(385)](-1 * -2559 + -69 * 39 + 33 * 4, 8) + s[w(205)] }));
|
|
759
|
+
}, fail: (d) => {
|
|
760
|
+
const u = c, w = c;
|
|
761
|
+
console[u(268)](u(295), d), this[w(268)](s[w(441)], { error: d, uuid: t[w(385)](-3297 + -1 * -686 + -2611 * -1, 6834 + -6826 * 1) + s[w(205)] });
|
|
762
|
+
} });
|
|
763
|
+
}
|
|
764
|
+
async [i(447)](t, x) {
|
|
765
|
+
await this[i(237)]({ url: t, headers: x });
|
|
766
|
+
}
|
|
767
|
+
async [r(234)](t) {
|
|
768
|
+
await this[r(237)]({ handler: t });
|
|
769
|
+
}
|
|
770
|
+
[i(335)]() {
|
|
771
|
+
const t = i, x = i;
|
|
772
|
+
this[t(330)] instanceof I && this[t(330)][x(335)](), this[t(410)] = !1, this[t(186)] = null;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
const q0 = new A0();
|
|
776
|
+
export {
|
|
777
|
+
q0 as default,
|
|
778
|
+
q0 as logger,
|
|
779
|
+
S0 as maskAppkey
|
|
780
|
+
};
|