aibox-web-tracing 0.0.1 → 0.0.3
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/es/index.mjs +715 -722
- package/lib/index.js +8 -8
- package/package.json +6 -6
package/es/index.mjs
CHANGED
|
@@ -3,17 +3,17 @@ import { record as Qt } from "rrweb";
|
|
|
3
3
|
import xt from "pako";
|
|
4
4
|
import { Base64 as Ae } from "js-base64";
|
|
5
5
|
function ee(e) {
|
|
6
|
-
return function(
|
|
7
|
-
return Object.prototype.toString.call(
|
|
6
|
+
return function(n) {
|
|
7
|
+
return Object.prototype.toString.call(n) === `[object ${e}]`;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
const et = ee("RegExp"), Kt = ee("Number"), en = ee("String"), tn = ee("Boolean"), nn = ee("Function"), Te = ee("Array"), rn = ee("Window"), Ce = (e) => tn(e) && String(e) === "false";
|
|
11
11
|
function on(e) {
|
|
12
12
|
return en(e) && e.trim() === "" || e === void 0 || e === null;
|
|
13
13
|
}
|
|
14
|
-
const an = rn(typeof window < "u" ? window : 0), sn = !!window?.process?.versions?.electron,
|
|
14
|
+
const an = rn(typeof window < "u" ? window : 0), sn = !!window?.process?.versions?.electron, Ue = typeof navigator < "u" && navigator.userAgent.includes("jsdom") || typeof window < "u" && window.jsdom;
|
|
15
15
|
function Nt() {
|
|
16
|
-
return an || sn ||
|
|
16
|
+
return an || sn || Ue ? window : {};
|
|
17
17
|
}
|
|
18
18
|
function cn() {
|
|
19
19
|
return p.__webTracing__ = p.__webTracing__ || {}, p.__webTracing__;
|
|
@@ -28,19 +28,19 @@ function ae(...e) {
|
|
|
28
28
|
function se(...e) {
|
|
29
29
|
console.error("@web-tracing: ", ...e);
|
|
30
30
|
}
|
|
31
|
-
function D(e,
|
|
32
|
-
e.addEventListener(
|
|
31
|
+
function D(e, n, t, r = !1) {
|
|
32
|
+
e.addEventListener(n, t, r);
|
|
33
33
|
}
|
|
34
|
-
function de(e,
|
|
35
|
-
if (e !== void 0 && (
|
|
36
|
-
const o = e[
|
|
37
|
-
nn(a) && (e[
|
|
34
|
+
function de(e, n, t, r = !1) {
|
|
35
|
+
if (e !== void 0 && (n in e || r)) {
|
|
36
|
+
const o = e[n], a = t(o);
|
|
37
|
+
nn(a) && (e[n] = a);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
function ce(e) {
|
|
41
|
-
return Object.keys(e).forEach((
|
|
42
|
-
const
|
|
43
|
-
Kt(
|
|
41
|
+
return Object.keys(e).forEach((n) => {
|
|
42
|
+
const t = e[n];
|
|
43
|
+
Kt(t) && (e[n] = t === 0 ? void 0 : parseFloat(t.toFixed(2)));
|
|
44
44
|
}), e;
|
|
45
45
|
}
|
|
46
46
|
function F() {
|
|
@@ -49,37 +49,37 @@ function F() {
|
|
|
49
49
|
function R() {
|
|
50
50
|
return Date.now();
|
|
51
51
|
}
|
|
52
|
-
function Ft(e,
|
|
52
|
+
function Ft(e, n, t = !1) {
|
|
53
53
|
let r = null, o;
|
|
54
|
-
return function(a
|
|
55
|
-
o =
|
|
54
|
+
return function(...a) {
|
|
55
|
+
o = a, r === null && (t && e.apply(this, o), r = setTimeout(() => {
|
|
56
56
|
r = null, e.apply(this, o);
|
|
57
|
-
},
|
|
57
|
+
}, n));
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function ln(e,
|
|
60
|
+
function ln(e, n, t = !1) {
|
|
61
61
|
let r = null;
|
|
62
|
-
return function(o
|
|
63
|
-
|
|
64
|
-
e.call(this, ...
|
|
65
|
-
},
|
|
62
|
+
return function(...o) {
|
|
63
|
+
t && (e.call(this, ...o), t = !1), r && clearTimeout(r), r = setTimeout(() => {
|
|
64
|
+
e.call(this, ...o);
|
|
65
|
+
}, n);
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function Oe(e, ...
|
|
69
|
-
const
|
|
68
|
+
function Oe(e, ...n) {
|
|
69
|
+
const t = /* @__PURE__ */ new Map();
|
|
70
70
|
for (const r of e) {
|
|
71
|
-
const o =
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
return Array.from(
|
|
75
|
-
}
|
|
76
|
-
function Ie(e, ...
|
|
77
|
-
return
|
|
78
|
-
for (const r in
|
|
79
|
-
|
|
80
|
-
e[r] || (Te(
|
|
81
|
-
|
|
82
|
-
) : e[r] =
|
|
71
|
+
const o = n.filter((a) => r[a]).map((a) => r[a]).join(":");
|
|
72
|
+
t.has(o) || t.set(o, []), t.get(o).push(r);
|
|
73
|
+
}
|
|
74
|
+
return Array.from(t.values());
|
|
75
|
+
}
|
|
76
|
+
function Ie(e, ...n) {
|
|
77
|
+
return n.forEach((t) => {
|
|
78
|
+
for (const r in t)
|
|
79
|
+
t[r] !== null && et(t[r]) ? e[r] = t[r] : t[r] !== null && typeof t[r] == "object" ? e[r] = Ie(
|
|
80
|
+
e[r] || (Te(t[r]) ? [] : {}),
|
|
81
|
+
t[r]
|
|
82
|
+
) : e[r] = t[r];
|
|
83
83
|
}), e;
|
|
84
84
|
}
|
|
85
85
|
function P(e) {
|
|
@@ -88,18 +88,18 @@ function P(e) {
|
|
|
88
88
|
function ue(e) {
|
|
89
89
|
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
|
|
90
90
|
}
|
|
91
|
-
function fe(e,
|
|
92
|
-
return e in
|
|
91
|
+
function fe(e, n) {
|
|
92
|
+
return e in n;
|
|
93
93
|
}
|
|
94
94
|
function dn(e) {
|
|
95
95
|
return Math.random() <= e;
|
|
96
96
|
}
|
|
97
|
-
function te(e,
|
|
97
|
+
function te(e, n, t = "0") {
|
|
98
98
|
const r = String(e);
|
|
99
|
-
if (r.length <
|
|
99
|
+
if (r.length < n) {
|
|
100
100
|
let o = r;
|
|
101
|
-
for (let a = 0; a <
|
|
102
|
-
o =
|
|
101
|
+
for (let a = 0; a < n - r.length; a += 1)
|
|
102
|
+
o = t + o;
|
|
103
103
|
return o;
|
|
104
104
|
}
|
|
105
105
|
return r;
|
|
@@ -108,46 +108,47 @@ function fn(e) {
|
|
|
108
108
|
return e.split("?")[0];
|
|
109
109
|
}
|
|
110
110
|
function We() {
|
|
111
|
-
const e = /* @__PURE__ */ new Date(),
|
|
111
|
+
const e = /* @__PURE__ */ new Date(), n = parseInt(
|
|
112
112
|
`${e.getFullYear()}${te(e.getMonth() + 1, 2)}${te(
|
|
113
113
|
e.getDate(),
|
|
114
114
|
2
|
|
115
115
|
)}`,
|
|
116
116
|
10
|
|
117
|
-
).toString(16),
|
|
117
|
+
).toString(16), t = parseInt(
|
|
118
118
|
`${te(e.getHours(), 2)}${te(e.getMinutes(), 2)}${te(
|
|
119
119
|
e.getSeconds(),
|
|
120
120
|
2
|
|
121
121
|
)}${te(e.getMilliseconds(), 3)}`,
|
|
122
122
|
10
|
|
123
123
|
).toString(16);
|
|
124
|
-
let r =
|
|
124
|
+
let r = n + t.length + t;
|
|
125
125
|
for (; r.length < 32; )
|
|
126
126
|
r += Math.floor(Math.random() * 16).toString(16);
|
|
127
127
|
return `${r.slice(0, 8)}-${r.slice(8, 16)}-${r.slice(16)}`;
|
|
128
128
|
}
|
|
129
129
|
function tt(e) {
|
|
130
|
-
const
|
|
131
|
-
return
|
|
130
|
+
const n = document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));
|
|
131
|
+
return n ? n[1] : void 0;
|
|
132
132
|
}
|
|
133
|
-
function hn(e,
|
|
134
|
-
|
|
133
|
+
function hn(e, n) {
|
|
134
|
+
const t = new Blob([JSON.stringify(n)], { type: "application/json" });
|
|
135
|
+
return navigator.sendBeacon(e, t);
|
|
135
136
|
}
|
|
136
137
|
const we = [];
|
|
137
|
-
function mn(e,
|
|
138
|
-
return new Promise((
|
|
138
|
+
function mn(e, n) {
|
|
139
|
+
return new Promise((t) => {
|
|
139
140
|
const r = new Image();
|
|
140
|
-
r.src = `${e}?v=${encodeURIComponent(JSON.stringify(
|
|
141
|
-
|
|
141
|
+
r.src = `${e}?v=${encodeURIComponent(JSON.stringify(n))}`, we.push(r), r.onload = () => {
|
|
142
|
+
t();
|
|
142
143
|
}, r.onerror = function() {
|
|
143
|
-
|
|
144
|
+
t();
|
|
144
145
|
};
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
|
-
function st(e,
|
|
148
|
+
function st(e, n, t = 5e3) {
|
|
148
149
|
return new Promise((r, o) => {
|
|
149
150
|
const a = new XMLHttpRequest();
|
|
150
|
-
a.open("post", e), a.setRequestHeader("content-type", "application/json"), a.timeout =
|
|
151
|
+
a.open("post", e), a.setRequestHeader("content-type", "application/json"), a.timeout = t, a.send(JSON.stringify(n)), a.onreadystatechange = function() {
|
|
151
152
|
a.readyState === 4 && (a.status >= 200 && a.status < 300 ? r() : o(new Error("@web-tracing XMLHttpRequest error: " + a.status)));
|
|
152
153
|
}, a.ontimeout = function() {
|
|
153
154
|
o(new Error("@web-tracing XMLHttpRequest timeout"));
|
|
@@ -156,66 +157,66 @@ function st(e, t, n = 5e3) {
|
|
|
156
157
|
};
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
|
-
function Ee(e,
|
|
160
|
-
if (e.length === 0) return
|
|
160
|
+
function Ee(e, n, t) {
|
|
161
|
+
if (e.length === 0) return t;
|
|
161
162
|
let r;
|
|
162
163
|
for (let o = 0; o < e.length; o++) {
|
|
163
164
|
const a = e[o];
|
|
164
|
-
o === 0 ||
|
|
165
|
+
o === 0 || n ? r = a(t) : r = a(r);
|
|
165
166
|
}
|
|
166
167
|
return r;
|
|
167
168
|
}
|
|
168
169
|
function Pe(e) {
|
|
169
170
|
return Te(e) ? e : [e];
|
|
170
171
|
}
|
|
171
|
-
const pn = Array.prototype.map || function(
|
|
172
|
-
const
|
|
172
|
+
const pn = Array.prototype.map || function(n) {
|
|
173
|
+
const t = [];
|
|
173
174
|
for (let r = 0; r < this.length; r += 1)
|
|
174
|
-
|
|
175
|
-
return
|
|
175
|
+
t.push(n(this[r], r, this));
|
|
176
|
+
return t;
|
|
176
177
|
};
|
|
177
|
-
function Mt(e,
|
|
178
|
-
return pn.call(e,
|
|
178
|
+
function Mt(e, n) {
|
|
179
|
+
return pn.call(e, n);
|
|
179
180
|
}
|
|
180
|
-
const vn = Array.prototype.filter || function(
|
|
181
|
-
const
|
|
182
|
-
for (let
|
|
183
|
-
n(this[
|
|
184
|
-
return
|
|
181
|
+
const vn = Array.prototype.filter || function(n) {
|
|
182
|
+
const t = [];
|
|
183
|
+
for (let r = 0; r < this.length; r += 1)
|
|
184
|
+
n(this[r], r, this) && t.push(this[r]);
|
|
185
|
+
return t;
|
|
185
186
|
};
|
|
186
|
-
function gn(e,
|
|
187
|
-
return vn.call(e,
|
|
187
|
+
function gn(e, n) {
|
|
188
|
+
return vn.call(e, n);
|
|
188
189
|
}
|
|
189
190
|
const bn = window.requestIdleCallback || window.requestAnimationFrame || ((e) => setTimeout(e, 17));
|
|
190
|
-
function ct(e,
|
|
191
|
-
const
|
|
192
|
-
return new TextEncoder().encode(
|
|
191
|
+
function ct(e, n) {
|
|
192
|
+
const t = JSON.stringify(e);
|
|
193
|
+
return new TextEncoder().encode(t).length / 1024 > n;
|
|
193
194
|
}
|
|
194
195
|
function Be(e) {
|
|
195
196
|
if (!e) return {};
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const r =
|
|
197
|
+
const n = {}, t = e.split("?")[1];
|
|
198
|
+
if (t) {
|
|
199
|
+
const r = t.split("&");
|
|
199
200
|
for (const o of r) {
|
|
200
201
|
const [a, s] = o.split("=");
|
|
201
|
-
|
|
202
|
+
n[decodeURIComponent(a)] = decodeURIComponent(s);
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
return
|
|
205
|
+
return n;
|
|
205
206
|
}
|
|
206
|
-
function Ze(e,
|
|
207
|
+
function Ze(e, n = /* @__PURE__ */ new Map()) {
|
|
207
208
|
if (e !== null && typeof e == "object") {
|
|
208
|
-
let
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
})) : (
|
|
212
|
-
fe(r, e) && (
|
|
213
|
-
})),
|
|
209
|
+
let t = n.get(e);
|
|
210
|
+
return t || (e instanceof Array ? (t = [], n.set(e, t), e.forEach((r, o) => {
|
|
211
|
+
t[o] = Ze(r, n);
|
|
212
|
+
})) : (t = {}, n.set(e, t), Object.keys(e).forEach((r) => {
|
|
213
|
+
fe(r, e) && (t[r] = Ze(e[r], n));
|
|
214
|
+
})), t);
|
|
214
215
|
}
|
|
215
216
|
return e;
|
|
216
217
|
}
|
|
217
|
-
function B(e,
|
|
218
|
-
e.removeEventListener(
|
|
218
|
+
function B(e, n, t, r = !1) {
|
|
219
|
+
e.removeEventListener(n, t, r);
|
|
219
220
|
}
|
|
220
221
|
class yn {
|
|
221
222
|
dsn = "";
|
|
@@ -290,33 +291,33 @@ class yn {
|
|
|
290
291
|
// 本地化存储溢出后的回调
|
|
291
292
|
localizationOverFlow = () => {
|
|
292
293
|
};
|
|
293
|
-
constructor(
|
|
294
|
-
const
|
|
295
|
-
|
|
294
|
+
constructor(n) {
|
|
295
|
+
const t = this.transitionOptions(n);
|
|
296
|
+
t.ignoreRequest.push(new RegExp(t.dsn)), Ie(this, t);
|
|
296
297
|
}
|
|
297
298
|
/**
|
|
298
299
|
* 对入参配置项进行转换
|
|
299
300
|
*/
|
|
300
|
-
transitionOptions(
|
|
301
|
-
const
|
|
302
|
-
return typeof s == "boolean" && (
|
|
301
|
+
transitionOptions(n) {
|
|
302
|
+
const t = Ie({}, this, n), { beforePushEventList: r, beforeSendData: o, afterSendData: a } = n, { pv: s, performance: c, error: i, event: u } = t;
|
|
303
|
+
return typeof s == "boolean" && (t.pv = {
|
|
303
304
|
core: s
|
|
304
|
-
}), typeof c == "boolean" && (
|
|
305
|
+
}), typeof c == "boolean" && (t.performance = {
|
|
305
306
|
core: c,
|
|
306
307
|
firstResource: c,
|
|
307
308
|
server: c
|
|
308
|
-
}), typeof i == "boolean" && (
|
|
309
|
+
}), typeof i == "boolean" && (t.error = {
|
|
309
310
|
core: i,
|
|
310
311
|
server: i
|
|
311
|
-
}), typeof u == "boolean" && (
|
|
312
|
+
}), typeof u == "boolean" && (t.event = {
|
|
312
313
|
core: u
|
|
313
|
-
}), r && (
|
|
314
|
+
}), r && (t.beforePushEventList = [r]), o && (t.beforeSendData = [o]), a && (t.afterSendData = [a]), n.timeout !== void 0 && (t.timeout = n.timeout), n.maxQueueLength !== void 0 && (t.maxQueueLength = n.maxQueueLength), n.checkRecoverInterval !== void 0 && (t.checkRecoverInterval = n.checkRecoverInterval), t;
|
|
314
315
|
}
|
|
315
316
|
}
|
|
316
317
|
function En(e) {
|
|
317
318
|
const {
|
|
318
|
-
dsn:
|
|
319
|
-
appName:
|
|
319
|
+
dsn: n,
|
|
320
|
+
appName: t,
|
|
320
321
|
appCode: r,
|
|
321
322
|
appVersion: o,
|
|
322
323
|
userUuid: a,
|
|
@@ -333,7 +334,7 @@ function En(e) {
|
|
|
333
334
|
ignoreErrors: m,
|
|
334
335
|
ignoreRequest: k,
|
|
335
336
|
scopeError: x,
|
|
336
|
-
localization:
|
|
337
|
+
localization: U,
|
|
337
338
|
sendTypeByXmlBody: q,
|
|
338
339
|
// whiteScreen,
|
|
339
340
|
beforePushEventList: ye,
|
|
@@ -355,8 +356,8 @@ function En(e) {
|
|
|
355
356
|
E(l.core, "error.core", "boolean"),
|
|
356
357
|
E(l.server, "error.server", "boolean")
|
|
357
358
|
) : z.push(E(l, "error", "boolean")), h && typeof h == "object" ? z.push(E(h.core, "event.core", "boolean")) : z.push(E(h, "event", "boolean")), [
|
|
358
|
-
E(
|
|
359
|
-
E(
|
|
359
|
+
E(n, "dsn", "string"),
|
|
360
|
+
E(t, "appName", "string"),
|
|
360
361
|
E(r, "appCode", "string"),
|
|
361
362
|
E(o, "appVersion", "string"),
|
|
362
363
|
E(a, "userUuid", "string"),
|
|
@@ -371,7 +372,7 @@ function En(e) {
|
|
|
371
372
|
E(k, "ignoreRequest", "array"),
|
|
372
373
|
lt(k, "ignoreRequest", ["string", "regexp"]),
|
|
373
374
|
E(x, "scopeError", "boolean"),
|
|
374
|
-
E(
|
|
375
|
+
E(U, "localization", "boolean"),
|
|
375
376
|
E(q, "sendTypeByXmlBody", "boolean"),
|
|
376
377
|
// validateOption(whiteScreen, 'whiteScreen', 'boolean'),
|
|
377
378
|
E(ye, "beforePushEventList", "function"),
|
|
@@ -386,24 +387,24 @@ function Sn(e) {
|
|
|
386
387
|
return [
|
|
387
388
|
ut(e.appName, "appName"),
|
|
388
389
|
ut(e.dsn, "dsn")
|
|
389
|
-
].every((
|
|
390
|
+
].every((t) => !!t);
|
|
390
391
|
}
|
|
391
|
-
function ut(e,
|
|
392
|
-
return on(e) ? (se(`【${
|
|
392
|
+
function ut(e, n) {
|
|
393
|
+
return on(e) ? (se(`【${n}】参数必填`), !1) : !0;
|
|
393
394
|
}
|
|
394
|
-
function E(e,
|
|
395
|
-
return !e || ue(e) ===
|
|
396
|
-
`TypeError:【${
|
|
395
|
+
function E(e, n, t) {
|
|
396
|
+
return !e || ue(e) === t ? !0 : (se(
|
|
397
|
+
`TypeError:【${n}】期望传入${t}类型,目前是${ue(
|
|
397
398
|
e
|
|
398
399
|
)}类型`
|
|
399
400
|
), !1);
|
|
400
401
|
}
|
|
401
|
-
function lt(e,
|
|
402
|
+
function lt(e, n, t) {
|
|
402
403
|
if (!e) return !0;
|
|
403
404
|
let r = !0;
|
|
404
405
|
return e.forEach((o) => {
|
|
405
|
-
|
|
406
|
-
`TypeError:【${
|
|
406
|
+
t.includes(ue(o)) || (se(
|
|
407
|
+
`TypeError:【${n}】数组内的值期望传入${t.join(
|
|
407
408
|
"|"
|
|
408
409
|
)}类型,目前值${o}是${ue(o)}类型`
|
|
409
410
|
), r = !1);
|
|
@@ -413,7 +414,7 @@ let d;
|
|
|
413
414
|
function Ln(e) {
|
|
414
415
|
return !Sn(e) || !En(e) ? !1 : (d = qt(new yn(e)), C.options = d, !0);
|
|
415
416
|
}
|
|
416
|
-
const wn = "0.0.
|
|
417
|
+
const wn = "0.0.3", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, Ge = "_webtracing_localization_key", An = wn, f = {
|
|
417
418
|
ERROR: "error",
|
|
418
419
|
CONSOLEERROR: "consoleError",
|
|
419
420
|
UNHANDLEDREJECTION: "unhandledrejection",
|
|
@@ -479,50 +480,50 @@ class kn {
|
|
|
479
480
|
* 为目标类型事件添加回调
|
|
480
481
|
* @param handler 需要被添加的类型以及回调函数
|
|
481
482
|
*/
|
|
482
|
-
addEvent(
|
|
483
|
-
!this.handlers[
|
|
483
|
+
addEvent(n) {
|
|
484
|
+
!this.handlers[n.type] && (this.handlers[n.type] = []), this._getCallbackIndex(n) === -1 && this.handlers[n.type]?.push(n.callback);
|
|
484
485
|
}
|
|
485
486
|
/**
|
|
486
487
|
* 为目标类型事件删除回调
|
|
487
488
|
* @param handler 需要被删除的类型以及回调函数
|
|
488
489
|
*/
|
|
489
|
-
delEvent(
|
|
490
|
-
const
|
|
491
|
-
|
|
490
|
+
delEvent(n) {
|
|
491
|
+
const t = this._getCallbackIndex(n);
|
|
492
|
+
t !== -1 && this.handlers[n.type]?.splice(t, 1);
|
|
492
493
|
}
|
|
493
494
|
/**
|
|
494
495
|
* 为目标类型事件更改回调
|
|
495
496
|
* @param handler 需要被更改的类型以及回调函数
|
|
496
497
|
* @param newCallback 新的回调函数
|
|
497
498
|
*/
|
|
498
|
-
changeEvent(
|
|
499
|
-
const r = this._getCallbackIndex(
|
|
500
|
-
r !== -1 && this.handlers[
|
|
499
|
+
changeEvent(n, t) {
|
|
500
|
+
const r = this._getCallbackIndex(n);
|
|
501
|
+
r !== -1 && this.handlers[n.type]?.splice(r, 1, t);
|
|
501
502
|
}
|
|
502
503
|
/**
|
|
503
504
|
* 获取目标类型事件所有的回调
|
|
504
505
|
* @param type 事件类型
|
|
505
506
|
*/
|
|
506
|
-
getEvent(
|
|
507
|
-
return this.handlers[
|
|
507
|
+
getEvent(n) {
|
|
508
|
+
return this.handlers[n] || [];
|
|
508
509
|
}
|
|
509
510
|
/**
|
|
510
511
|
* 执行目标类型事件所有的回调
|
|
511
512
|
* @param type 事件类型
|
|
512
513
|
* @param args 额外参数
|
|
513
514
|
*/
|
|
514
|
-
runEvent(
|
|
515
|
-
this.getEvent(
|
|
516
|
-
o(...
|
|
515
|
+
runEvent(n, ...t) {
|
|
516
|
+
this.getEvent(n).forEach((o) => {
|
|
517
|
+
o(...t);
|
|
517
518
|
});
|
|
518
519
|
}
|
|
519
520
|
/**
|
|
520
521
|
* 获取函数在 callback 列表中的位置
|
|
521
522
|
*/
|
|
522
|
-
_getCallbackIndex(
|
|
523
|
-
if (this.handlers[
|
|
524
|
-
const
|
|
525
|
-
return
|
|
523
|
+
_getCallbackIndex(n) {
|
|
524
|
+
if (this.handlers[n.type]) {
|
|
525
|
+
const t = this.handlers[n.type];
|
|
526
|
+
return t ? t.findIndex((r) => r === n.callback) : -1;
|
|
526
527
|
} else
|
|
527
528
|
return -1;
|
|
528
529
|
}
|
|
@@ -530,9 +531,9 @@ class kn {
|
|
|
530
531
|
* 移除多个指定类型的事件监听
|
|
531
532
|
* @param types 事件类型数组
|
|
532
533
|
*/
|
|
533
|
-
removeEvents(
|
|
534
|
-
|
|
535
|
-
delete this.handlers[
|
|
534
|
+
removeEvents(n) {
|
|
535
|
+
n.forEach((t) => {
|
|
536
|
+
delete this.handlers[t];
|
|
536
537
|
});
|
|
537
538
|
}
|
|
538
539
|
}
|
|
@@ -592,10 +593,10 @@ function Cn(e) {
|
|
|
592
593
|
Xn(f.HASHCHANGE);
|
|
593
594
|
break;
|
|
594
595
|
case f.HISTORYPUSHSTATE:
|
|
595
|
-
|
|
596
|
+
Un(f.HISTORYPUSHSTATE);
|
|
596
597
|
break;
|
|
597
598
|
case f.HISTORYREPLACESTATE:
|
|
598
|
-
|
|
599
|
+
jn(f.HISTORYREPLACESTATE);
|
|
599
600
|
break;
|
|
600
601
|
case f.POPSTATE:
|
|
601
602
|
Wn(f.POPSTATE);
|
|
@@ -609,90 +610,90 @@ function Cn(e) {
|
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
612
|
function On(e) {
|
|
612
|
-
const
|
|
613
|
-
b.runEvent(e,
|
|
613
|
+
const n = function(t) {
|
|
614
|
+
b.runEvent(e, t);
|
|
614
615
|
};
|
|
615
|
-
w.error =
|
|
616
|
+
w.error = n, D(p, "error", n, !0);
|
|
616
617
|
}
|
|
617
618
|
function Pn(e) {
|
|
618
|
-
const
|
|
619
|
-
b.runEvent(e,
|
|
619
|
+
const n = function(t) {
|
|
620
|
+
b.runEvent(e, t);
|
|
620
621
|
};
|
|
621
|
-
w.unhandledrejection =
|
|
622
|
+
w.unhandledrejection = n, D(p, "unhandledrejection", n);
|
|
622
623
|
}
|
|
623
624
|
function xn(e) {
|
|
624
|
-
A.consoleError = console.error, de(console, "error", (
|
|
625
|
-
|
|
625
|
+
A.consoleError = console.error, de(console, "error", (n) => function(...t) {
|
|
626
|
+
t[0] && t[0].slice && t[0].slice(0, 12) === "@web-tracing" || b.runEvent(e, t), n.apply(this, t);
|
|
626
627
|
});
|
|
627
628
|
}
|
|
628
629
|
function Nn(e) {
|
|
629
630
|
if (!("document" in p)) return;
|
|
630
|
-
const
|
|
631
|
-
|
|
631
|
+
const n = Ft(b.runEvent, 100, !0), t = function(r) {
|
|
632
|
+
n.call(b, e, r);
|
|
632
633
|
};
|
|
633
|
-
w.click =
|
|
634
|
+
w.click = t, D(p.document, "click", t, !0);
|
|
634
635
|
}
|
|
635
636
|
function Fn(e) {
|
|
636
|
-
const
|
|
637
|
-
b.runEvent(e,
|
|
637
|
+
const n = function(t) {
|
|
638
|
+
b.runEvent(e, t);
|
|
638
639
|
};
|
|
639
|
-
w.load =
|
|
640
|
+
w.load = n, D(p, "load", n, !0);
|
|
640
641
|
}
|
|
641
642
|
function Mn(e) {
|
|
642
|
-
const
|
|
643
|
-
b.runEvent(e,
|
|
643
|
+
const n = function(t) {
|
|
644
|
+
b.runEvent(e, t);
|
|
644
645
|
};
|
|
645
|
-
w.beforeunload =
|
|
646
|
+
w.beforeunload = n, D(p, "beforeunload", n, !1);
|
|
646
647
|
}
|
|
647
648
|
function Vn(e) {
|
|
648
|
-
"XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, de(XMLHttpRequest.prototype, "open", (
|
|
649
|
-
b.runEvent(e, ...
|
|
649
|
+
"XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, de(XMLHttpRequest.prototype, "open", (n) => function(...t) {
|
|
650
|
+
b.runEvent(e, ...t), n.apply(this, t);
|
|
650
651
|
}));
|
|
651
652
|
}
|
|
652
653
|
function Hn(e) {
|
|
653
|
-
"XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, de(XMLHttpRequest.prototype, "send", (
|
|
654
|
-
b.runEvent(e, this, ...
|
|
654
|
+
"XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, de(XMLHttpRequest.prototype, "send", (n) => function(...t) {
|
|
655
|
+
b.runEvent(e, this, ...t), n.apply(this, t);
|
|
655
656
|
}));
|
|
656
657
|
}
|
|
657
658
|
function Dn(e) {
|
|
658
|
-
"fetch" in p && (A.fetch = p.fetch, de(p, "fetch", (
|
|
659
|
-
const
|
|
660
|
-
return
|
|
659
|
+
"fetch" in p && (A.fetch = p.fetch, de(p, "fetch", (n) => function(...t) {
|
|
660
|
+
const r = R(), o = {};
|
|
661
|
+
return n.apply(p, t).then((a) => (b.runEvent(e, t[0], t[1], a, r, o), a));
|
|
661
662
|
}));
|
|
662
663
|
}
|
|
663
664
|
function Xn(e) {
|
|
664
|
-
const
|
|
665
|
-
b.runEvent(e,
|
|
665
|
+
const n = function(t) {
|
|
666
|
+
b.runEvent(e, t);
|
|
666
667
|
};
|
|
667
|
-
w.hashchange =
|
|
668
|
+
w.hashchange = n, D(p, "hashchange", n);
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
-
A.historyReplaceState = history.replaceState, de(history, "replaceState", (
|
|
671
|
-
b.runEvent(e, ...
|
|
670
|
+
function jn(e) {
|
|
671
|
+
A.historyReplaceState = history.replaceState, de(history, "replaceState", (n) => function(...t) {
|
|
672
|
+
b.runEvent(e, ...t), n.apply(this, t);
|
|
672
673
|
});
|
|
673
674
|
}
|
|
674
|
-
function
|
|
675
|
-
A.historyPushState = history.pushState, de(history, "pushState", (
|
|
676
|
-
b.runEvent(e, ...
|
|
675
|
+
function Un(e) {
|
|
676
|
+
A.historyPushState = history.pushState, de(history, "pushState", (n) => function(...t) {
|
|
677
|
+
b.runEvent(e, ...t), n.apply(this, t);
|
|
677
678
|
});
|
|
678
679
|
}
|
|
679
680
|
function Wn(e) {
|
|
680
|
-
const
|
|
681
|
-
b.runEvent(e,
|
|
681
|
+
const n = function(t) {
|
|
682
|
+
b.runEvent(e, t);
|
|
682
683
|
};
|
|
683
|
-
w.popstate =
|
|
684
|
+
w.popstate = n, D(p, "popstate", n);
|
|
684
685
|
}
|
|
685
686
|
function Bn(e) {
|
|
686
|
-
const
|
|
687
|
-
b.runEvent(e,
|
|
687
|
+
const n = function(t) {
|
|
688
|
+
b.runEvent(e, t);
|
|
688
689
|
};
|
|
689
|
-
w.offline =
|
|
690
|
+
w.offline = n, D(p, "offline", n);
|
|
690
691
|
}
|
|
691
692
|
function Zn(e) {
|
|
692
|
-
const
|
|
693
|
-
b.runEvent(e,
|
|
693
|
+
const n = function(t) {
|
|
694
|
+
b.runEvent(e, t);
|
|
694
695
|
};
|
|
695
|
-
w.offline =
|
|
696
|
+
w.offline = n, D(p, "offline", n);
|
|
696
697
|
}
|
|
697
698
|
function Yn() {
|
|
698
699
|
A.consoleError && console.error !== A.consoleError && (console.error = A.consoleError), A.xhrOpen && XMLHttpRequest.prototype.open !== A.xhrOpen && (XMLHttpRequest.prototype.open = A.xhrOpen), A.xhrSend && XMLHttpRequest.prototype.send !== A.xhrSend && (XMLHttpRequest.prototype.send = A.xhrSend), A.fetch && p.fetch !== A.fetch && (p.fetch = A.fetch), A.historyPushState && history.pushState !== A.historyPushState && (history.pushState = A.historyPushState), A.historyReplaceState && history.replaceState !== A.historyReplaceState && (history.replaceState = A.historyReplaceState), w.error && B(p, "error", w.error, !0), w.unhandledrejection && B(p, "unhandledrejection", w.unhandledrejection), w.click && B(p.document, "click", w.click, !0), w.load && B(p, "load", w.load, !0), w.beforeunload && B(p, "beforeunload", w.beforeunload, !1), w.hashchange && B(p, "hashchange", w.hashchange), w.popstate && B(p, "popstate", w.popstate), w.offline && B(p, "offline", w.offline), w.online && B(p, "online", w.online), Object.keys(A).forEach((e) => {
|
|
@@ -703,14 +704,14 @@ function Yn() {
|
|
|
703
704
|
}
|
|
704
705
|
let _e = function() {
|
|
705
706
|
return _e = Object.assign || function(e) {
|
|
706
|
-
for (var
|
|
707
|
-
for (const o in
|
|
708
|
-
Object.prototype.hasOwnProperty.call(
|
|
707
|
+
for (var n, t = 1, r = arguments.length; t < r; t++)
|
|
708
|
+
for (const o in n = arguments[t])
|
|
709
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
709
710
|
return e;
|
|
710
711
|
}, _e.apply(this, arguments);
|
|
711
712
|
};
|
|
712
|
-
function G(e,
|
|
713
|
-
return new (
|
|
713
|
+
function G(e, n, t, r) {
|
|
714
|
+
return new (t || (t = Promise))(function(o, a) {
|
|
714
715
|
function s(u) {
|
|
715
716
|
try {
|
|
716
717
|
i(r.next(u));
|
|
@@ -727,15 +728,15 @@ function G(e, t, n, r) {
|
|
|
727
728
|
}
|
|
728
729
|
function i(u) {
|
|
729
730
|
let l;
|
|
730
|
-
u.done ? o(u.value) : (l = u.value, l instanceof
|
|
731
|
+
u.done ? o(u.value) : (l = u.value, l instanceof t ? l : new t(function(h) {
|
|
731
732
|
h(l);
|
|
732
733
|
})).then(s, c);
|
|
733
734
|
}
|
|
734
735
|
i((r = r.apply(e, [])).next());
|
|
735
736
|
});
|
|
736
737
|
}
|
|
737
|
-
function W(e,
|
|
738
|
-
let
|
|
738
|
+
function W(e, n) {
|
|
739
|
+
let t, r, o, a, s = {
|
|
739
740
|
label: 0,
|
|
740
741
|
sent: function() {
|
|
741
742
|
if (1 & o[0]) throw o[1];
|
|
@@ -750,10 +751,10 @@ function W(e, t) {
|
|
|
750
751
|
function c(i) {
|
|
751
752
|
return function(u) {
|
|
752
753
|
return (function(l) {
|
|
753
|
-
if (
|
|
754
|
+
if (t) throw new TypeError("Generator is already executing.");
|
|
754
755
|
for (; a && (a = 0, l[0] && (s = 0)), s; )
|
|
755
756
|
try {
|
|
756
|
-
if (
|
|
757
|
+
if (t = 1, r && (o = 2 & l[0] ? r.return : l[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, l[1])).done)
|
|
757
758
|
return o;
|
|
758
759
|
switch (r = 0, o && (l = [2 & l[0], o.value]), l[0]) {
|
|
759
760
|
case 0:
|
|
@@ -788,11 +789,11 @@ function W(e, t) {
|
|
|
788
789
|
o[2] && s.ops.pop(), s.trys.pop();
|
|
789
790
|
continue;
|
|
790
791
|
}
|
|
791
|
-
l =
|
|
792
|
+
l = n.call(e, s);
|
|
792
793
|
} catch (h) {
|
|
793
794
|
l = [6, h], r = 0;
|
|
794
795
|
} finally {
|
|
795
|
-
|
|
796
|
+
t = o = 0;
|
|
796
797
|
}
|
|
797
798
|
if (5 & l[0]) throw l[1];
|
|
798
799
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
@@ -800,44 +801,44 @@ function W(e, t) {
|
|
|
800
801
|
};
|
|
801
802
|
}
|
|
802
803
|
}
|
|
803
|
-
function ie(e,
|
|
804
|
-
if (
|
|
805
|
-
for (var r, o = 0, a =
|
|
806
|
-
!r && o in
|
|
807
|
-
return e.concat(r || Array.prototype.slice.call(
|
|
804
|
+
function ie(e, n, t) {
|
|
805
|
+
if (t || arguments.length === 2)
|
|
806
|
+
for (var r, o = 0, a = n.length; o < a; o++)
|
|
807
|
+
!r && o in n || (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]);
|
|
808
|
+
return e.concat(r || Array.prototype.slice.call(n));
|
|
808
809
|
}
|
|
809
|
-
function Y(e,
|
|
810
|
-
return new Promise(function(
|
|
811
|
-
return setTimeout(
|
|
810
|
+
function Y(e, n) {
|
|
811
|
+
return new Promise(function(t) {
|
|
812
|
+
return setTimeout(t, e, n);
|
|
812
813
|
});
|
|
813
814
|
}
|
|
814
815
|
function Vt(e) {
|
|
815
816
|
return !!e && typeof e.then == "function";
|
|
816
817
|
}
|
|
817
|
-
function ft(e,
|
|
818
|
+
function ft(e, n) {
|
|
818
819
|
try {
|
|
819
|
-
const
|
|
820
|
-
Vt(
|
|
820
|
+
const t = e();
|
|
821
|
+
Vt(t) ? t.then(
|
|
821
822
|
function(r) {
|
|
822
|
-
return
|
|
823
|
+
return n(!0, r);
|
|
823
824
|
},
|
|
824
825
|
function(r) {
|
|
825
|
-
return
|
|
826
|
+
return n(!1, r);
|
|
826
827
|
}
|
|
827
|
-
) :
|
|
828
|
-
} catch (
|
|
829
|
-
|
|
828
|
+
) : n(!0, t);
|
|
829
|
+
} catch (t) {
|
|
830
|
+
n(!1, t);
|
|
830
831
|
}
|
|
831
832
|
}
|
|
832
|
-
function ht(e,
|
|
833
|
-
return
|
|
833
|
+
function ht(e, n, t) {
|
|
834
|
+
return t === void 0 && (t = 16), G(this, void 0, void 0, function() {
|
|
834
835
|
let r, o, a;
|
|
835
836
|
return W(this, function(s) {
|
|
836
837
|
switch (s.label) {
|
|
837
838
|
case 0:
|
|
838
839
|
r = Date.now(), o = 0, s.label = 1;
|
|
839
840
|
case 1:
|
|
840
|
-
return o < e.length ? (
|
|
841
|
+
return o < e.length ? (n(e[o], o), (a = Date.now()) >= r + t ? (r = a, [4, Y(0)]) : [3, 3]) : [3, 4];
|
|
841
842
|
case 2:
|
|
842
843
|
s.sent(), s.label = 3;
|
|
843
844
|
case 3:
|
|
@@ -852,70 +853,70 @@ function ke(e) {
|
|
|
852
853
|
e.then(void 0, function() {
|
|
853
854
|
});
|
|
854
855
|
}
|
|
855
|
-
function J(e,
|
|
856
|
-
e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]],
|
|
857
|
-
const
|
|
858
|
-
return
|
|
856
|
+
function J(e, n) {
|
|
857
|
+
e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], n = [n[0] >>> 16, 65535 & n[0], n[1] >>> 16, 65535 & n[1]];
|
|
858
|
+
const t = [0, 0, 0, 0];
|
|
859
|
+
return t[3] += e[3] + n[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += e[2] + n[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += e[1] + n[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += e[0] + n[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
|
|
859
860
|
}
|
|
860
|
-
function H(e,
|
|
861
|
-
e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]],
|
|
862
|
-
const
|
|
863
|
-
return
|
|
861
|
+
function H(e, n) {
|
|
862
|
+
e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], n = [n[0] >>> 16, 65535 & n[0], n[1] >>> 16, 65535 & n[1]];
|
|
863
|
+
const t = [0, 0, 0, 0];
|
|
864
|
+
return t[3] += e[3] * n[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += e[2] * n[3], t[1] += t[2] >>> 16, t[2] &= 65535, t[2] += e[3] * n[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += e[1] * n[3], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += e[2] * n[2], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += e[3] * n[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
|
|
864
865
|
}
|
|
865
|
-
function ne(e,
|
|
866
|
-
return (
|
|
866
|
+
function ne(e, n) {
|
|
867
|
+
return (n %= 64) === 32 ? [e[1], e[0]] : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n | e[0] >>> 32 - n] : (n -= 32, [e[1] << n | e[0] >>> 32 - n, e[0] << n | e[1] >>> 32 - n]);
|
|
867
868
|
}
|
|
868
|
-
function M(e,
|
|
869
|
-
return (
|
|
869
|
+
function M(e, n) {
|
|
870
|
+
return (n %= 64) === 0 ? e : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n] : [e[1] << n - 32, 0];
|
|
870
871
|
}
|
|
871
|
-
function I(e,
|
|
872
|
-
return [e[0] ^
|
|
872
|
+
function I(e, n) {
|
|
873
|
+
return [e[0] ^ n[0], e[1] ^ n[1]];
|
|
873
874
|
}
|
|
874
875
|
function mt(e) {
|
|
875
876
|
return e = I(e, [0, e[0] >>> 1]), e = I(e = H(e, [4283543511, 3981806797]), [0, e[0] >>> 1]), e = I(e = H(e, [3301882366, 444984403]), [0, e[0] >>> 1]);
|
|
876
877
|
}
|
|
877
|
-
function Gn(e,
|
|
878
|
-
|
|
879
|
-
let
|
|
880
|
-
for (
|
|
878
|
+
function Gn(e, n) {
|
|
879
|
+
n = n || 0;
|
|
880
|
+
let t, r = (e = e || "").length % 16, o = e.length - r, a = [0, n], s = [0, n], c = [0, 0], i = [0, 0], u = [2277735313, 289559509], l = [1291169091, 658871167];
|
|
881
|
+
for (t = 0; t < o; t += 16)
|
|
881
882
|
c = [
|
|
882
|
-
255 & e.charCodeAt(
|
|
883
|
-
255 & e.charCodeAt(
|
|
883
|
+
255 & e.charCodeAt(t + 4) | (255 & e.charCodeAt(t + 5)) << 8 | (255 & e.charCodeAt(t + 6)) << 16 | (255 & e.charCodeAt(t + 7)) << 24,
|
|
884
|
+
255 & e.charCodeAt(t) | (255 & e.charCodeAt(t + 1)) << 8 | (255 & e.charCodeAt(t + 2)) << 16 | (255 & e.charCodeAt(t + 3)) << 24
|
|
884
885
|
], i = [
|
|
885
|
-
255 & e.charCodeAt(
|
|
886
|
-
255 & e.charCodeAt(
|
|
886
|
+
255 & e.charCodeAt(t + 12) | (255 & e.charCodeAt(t + 13)) << 8 | (255 & e.charCodeAt(t + 14)) << 16 | (255 & e.charCodeAt(t + 15)) << 24,
|
|
887
|
+
255 & e.charCodeAt(t + 8) | (255 & e.charCodeAt(t + 9)) << 8 | (255 & e.charCodeAt(t + 10)) << 16 | (255 & e.charCodeAt(t + 11)) << 24
|
|
887
888
|
], c = ne(c = H(c, u), 31), a = J(a = ne(a = I(a, c = H(c, l)), 27), s), a = J(H(a, [0, 5]), [0, 1390208809]), i = ne(i = H(i, l), 33), s = J(s = ne(s = I(s, i = H(i, u)), 31), a), s = J(H(s, [0, 5]), [0, 944331445]);
|
|
888
889
|
switch (c = [0, 0], i = [0, 0], r) {
|
|
889
890
|
case 15:
|
|
890
|
-
i = I(i, M([0, e.charCodeAt(
|
|
891
|
+
i = I(i, M([0, e.charCodeAt(t + 14)], 48));
|
|
891
892
|
case 14:
|
|
892
|
-
i = I(i, M([0, e.charCodeAt(
|
|
893
|
+
i = I(i, M([0, e.charCodeAt(t + 13)], 40));
|
|
893
894
|
case 13:
|
|
894
|
-
i = I(i, M([0, e.charCodeAt(
|
|
895
|
+
i = I(i, M([0, e.charCodeAt(t + 12)], 32));
|
|
895
896
|
case 12:
|
|
896
|
-
i = I(i, M([0, e.charCodeAt(
|
|
897
|
+
i = I(i, M([0, e.charCodeAt(t + 11)], 24));
|
|
897
898
|
case 11:
|
|
898
|
-
i = I(i, M([0, e.charCodeAt(
|
|
899
|
+
i = I(i, M([0, e.charCodeAt(t + 10)], 16));
|
|
899
900
|
case 10:
|
|
900
|
-
i = I(i, M([0, e.charCodeAt(
|
|
901
|
+
i = I(i, M([0, e.charCodeAt(t + 9)], 8));
|
|
901
902
|
case 9:
|
|
902
|
-
i = H(i = I(i, [0, e.charCodeAt(
|
|
903
|
+
i = H(i = I(i, [0, e.charCodeAt(t + 8)]), l), s = I(s, i = H(i = ne(i, 33), u));
|
|
903
904
|
case 8:
|
|
904
|
-
c = I(c, M([0, e.charCodeAt(
|
|
905
|
+
c = I(c, M([0, e.charCodeAt(t + 7)], 56));
|
|
905
906
|
case 7:
|
|
906
|
-
c = I(c, M([0, e.charCodeAt(
|
|
907
|
+
c = I(c, M([0, e.charCodeAt(t + 6)], 48));
|
|
907
908
|
case 6:
|
|
908
|
-
c = I(c, M([0, e.charCodeAt(
|
|
909
|
+
c = I(c, M([0, e.charCodeAt(t + 5)], 40));
|
|
909
910
|
case 5:
|
|
910
|
-
c = I(c, M([0, e.charCodeAt(
|
|
911
|
+
c = I(c, M([0, e.charCodeAt(t + 4)], 32));
|
|
911
912
|
case 4:
|
|
912
|
-
c = I(c, M([0, e.charCodeAt(
|
|
913
|
+
c = I(c, M([0, e.charCodeAt(t + 3)], 24));
|
|
913
914
|
case 3:
|
|
914
|
-
c = I(c, M([0, e.charCodeAt(
|
|
915
|
+
c = I(c, M([0, e.charCodeAt(t + 2)], 16));
|
|
915
916
|
case 2:
|
|
916
|
-
c = I(c, M([0, e.charCodeAt(
|
|
917
|
+
c = I(c, M([0, e.charCodeAt(t + 1)], 8));
|
|
917
918
|
case 1:
|
|
918
|
-
c = H(c = I(c, [0, e.charCodeAt(
|
|
919
|
+
c = H(c = I(c, [0, e.charCodeAt(t)]), u), a = I(a, c = H(c = ne(c, 31), l));
|
|
919
920
|
}
|
|
920
921
|
return a = J(a = I(a, [0, e.length]), s = I(s, [0, e.length])), s = J(s, a), a = J(a = mt(a), s = mt(s)), s = J(s, a), ("00000000" + (a[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[1] >>> 0).toString(16)).slice(-8);
|
|
921
922
|
}
|
|
@@ -925,18 +926,18 @@ function xe(e) {
|
|
|
925
926
|
function X(e) {
|
|
926
927
|
return parseFloat(e);
|
|
927
928
|
}
|
|
928
|
-
function Z(e,
|
|
929
|
-
return typeof e == "number" && isNaN(e) ?
|
|
929
|
+
function Z(e, n) {
|
|
930
|
+
return typeof e == "number" && isNaN(e) ? n : e;
|
|
930
931
|
}
|
|
931
|
-
function
|
|
932
|
-
return e.reduce(function(
|
|
933
|
-
return
|
|
932
|
+
function j(e) {
|
|
933
|
+
return e.reduce(function(n, t) {
|
|
934
|
+
return n + (t ? 1 : 0);
|
|
934
935
|
}, 0);
|
|
935
936
|
}
|
|
936
|
-
function Ht(e,
|
|
937
|
-
if (
|
|
938
|
-
const
|
|
939
|
-
return Math.round(e *
|
|
937
|
+
function Ht(e, n) {
|
|
938
|
+
if (n === void 0 && (n = 1), Math.abs(n) >= 1) return Math.round(e / n) * n;
|
|
939
|
+
const t = 1 / n;
|
|
940
|
+
return Math.round(e * t) / t;
|
|
940
941
|
}
|
|
941
942
|
function pt(e) {
|
|
942
943
|
return e && typeof e == "object" && "message" in e ? e : { message: e };
|
|
@@ -944,12 +945,12 @@ function pt(e) {
|
|
|
944
945
|
function _n(e) {
|
|
945
946
|
return typeof e != "function";
|
|
946
947
|
}
|
|
947
|
-
function zn(e,
|
|
948
|
+
function zn(e, n, t) {
|
|
948
949
|
const r = Object.keys(e).filter(function(a) {
|
|
949
950
|
return !(function(s, c) {
|
|
950
951
|
for (let i = 0, u = s.length; i < u; ++i) if (s[i] === c) return !0;
|
|
951
952
|
return !1;
|
|
952
|
-
})(
|
|
953
|
+
})(t, a);
|
|
953
954
|
}), o = Array(r.length);
|
|
954
955
|
return ht(r, function(a, s) {
|
|
955
956
|
o[s] = (function(c, i) {
|
|
@@ -972,8 +973,8 @@ function zn(e, t, n) {
|
|
|
972
973
|
return new Promise(function(m) {
|
|
973
974
|
const k = Date.now();
|
|
974
975
|
ft(y, function() {
|
|
975
|
-
for (var x = [],
|
|
976
|
-
x[
|
|
976
|
+
for (var x = [], U = 0; U < arguments.length; U++)
|
|
977
|
+
x[U] = arguments[U];
|
|
977
978
|
const q = S + Date.now() - k;
|
|
978
979
|
if (!x[0]) return m({ error: pt(x[1]), duration: q });
|
|
979
980
|
m({ value: x[1], duration: q });
|
|
@@ -987,7 +988,7 @@ function zn(e, t, n) {
|
|
|
987
988
|
return l();
|
|
988
989
|
});
|
|
989
990
|
};
|
|
990
|
-
})(e[a],
|
|
991
|
+
})(e[a], n);
|
|
991
992
|
}), function() {
|
|
992
993
|
return G(this, void 0, void 0, function() {
|
|
993
994
|
let a, s, c, i, u, l;
|
|
@@ -1037,30 +1038,30 @@ function zn(e, t, n) {
|
|
|
1037
1038
|
};
|
|
1038
1039
|
}
|
|
1039
1040
|
function Dt() {
|
|
1040
|
-
const e = window,
|
|
1041
|
-
return
|
|
1041
|
+
const e = window, n = navigator;
|
|
1042
|
+
return j([
|
|
1042
1043
|
"MSCSSMatrix" in e,
|
|
1043
1044
|
"msSetImmediate" in e,
|
|
1044
1045
|
"msIndexedDB" in e,
|
|
1045
|
-
"msMaxTouchPoints" in
|
|
1046
|
-
"msPointerEnabled" in
|
|
1046
|
+
"msMaxTouchPoints" in n,
|
|
1047
|
+
"msPointerEnabled" in n
|
|
1047
1048
|
]) >= 4;
|
|
1048
1049
|
}
|
|
1049
1050
|
function Jn() {
|
|
1050
|
-
const e = window,
|
|
1051
|
-
return
|
|
1051
|
+
const e = window, n = navigator;
|
|
1052
|
+
return j([
|
|
1052
1053
|
"msWriteProfilerMark" in e,
|
|
1053
1054
|
"MSStream" in e,
|
|
1054
|
-
"msLaunchUri" in
|
|
1055
|
-
"msSaveBlob" in
|
|
1055
|
+
"msLaunchUri" in n,
|
|
1056
|
+
"msSaveBlob" in n
|
|
1056
1057
|
]) >= 3 && !Dt();
|
|
1057
1058
|
}
|
|
1058
1059
|
function ze() {
|
|
1059
|
-
const e = window,
|
|
1060
|
-
return
|
|
1061
|
-
"webkitPersistentStorage" in
|
|
1062
|
-
"webkitTemporaryStorage" in
|
|
1063
|
-
|
|
1060
|
+
const e = window, n = navigator;
|
|
1061
|
+
return j([
|
|
1062
|
+
"webkitPersistentStorage" in n,
|
|
1063
|
+
"webkitTemporaryStorage" in n,
|
|
1064
|
+
n.vendor.indexOf("Google") === 0,
|
|
1064
1065
|
"webkitResolveLocalFileSystemURL" in e,
|
|
1065
1066
|
"BatteryManager" in e,
|
|
1066
1067
|
"webkitMediaStream" in e,
|
|
@@ -1068,19 +1069,19 @@ function ze() {
|
|
|
1068
1069
|
]) >= 5;
|
|
1069
1070
|
}
|
|
1070
1071
|
function me() {
|
|
1071
|
-
const e = window,
|
|
1072
|
-
return
|
|
1072
|
+
const e = window, n = navigator;
|
|
1073
|
+
return j([
|
|
1073
1074
|
"ApplePayError" in e,
|
|
1074
1075
|
"CSSPrimitiveValue" in e,
|
|
1075
1076
|
"Counter" in e,
|
|
1076
|
-
|
|
1077
|
-
"getStorageUpdates" in
|
|
1077
|
+
n.vendor.indexOf("Apple") === 0,
|
|
1078
|
+
"getStorageUpdates" in n,
|
|
1078
1079
|
"WebKitMediaKeys" in e
|
|
1079
1080
|
]) >= 4;
|
|
1080
1081
|
}
|
|
1081
1082
|
function Je() {
|
|
1082
1083
|
const e = window;
|
|
1083
|
-
return
|
|
1084
|
+
return j([
|
|
1084
1085
|
"safari" in e,
|
|
1085
1086
|
!("DeviceMotionEvent" in e),
|
|
1086
1087
|
!("ongestureend" in e),
|
|
@@ -1088,14 +1089,14 @@ function Je() {
|
|
|
1088
1089
|
]) >= 3;
|
|
1089
1090
|
}
|
|
1090
1091
|
function qn() {
|
|
1091
|
-
let e,
|
|
1092
|
-
return
|
|
1092
|
+
let e, n, t = window;
|
|
1093
|
+
return j([
|
|
1093
1094
|
"buildID" in navigator,
|
|
1094
|
-
"MozAppearance" in ((
|
|
1095
|
-
"onmozfullscreenchange" in
|
|
1096
|
-
"mozInnerScreenX" in
|
|
1097
|
-
"CSSMozDocumentRule" in
|
|
1098
|
-
"CanvasCaptureMediaStream" in
|
|
1095
|
+
"MozAppearance" in ((n = (e = document.documentElement) === null || e === void 0 ? void 0 : e.style) !== null && n !== void 0 ? n : {}),
|
|
1096
|
+
"onmozfullscreenchange" in t,
|
|
1097
|
+
"mozInnerScreenX" in t,
|
|
1098
|
+
"CSSMozDocumentRule" in t,
|
|
1099
|
+
"CanvasCaptureMediaStream" in t
|
|
1099
1100
|
]) >= 4;
|
|
1100
1101
|
}
|
|
1101
1102
|
function $n() {
|
|
@@ -1103,30 +1104,30 @@ function $n() {
|
|
|
1103
1104
|
return e.fullscreenElement || e.msFullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || null;
|
|
1104
1105
|
}
|
|
1105
1106
|
function Xt() {
|
|
1106
|
-
const e = ze(),
|
|
1107
|
-
if (!e && !
|
|
1108
|
-
const
|
|
1109
|
-
return
|
|
1110
|
-
"onorientationchange" in
|
|
1111
|
-
"orientation" in
|
|
1112
|
-
e && !("SharedWorker" in
|
|
1113
|
-
|
|
1107
|
+
const e = ze(), n = qn();
|
|
1108
|
+
if (!e && !n) return !1;
|
|
1109
|
+
const t = window;
|
|
1110
|
+
return j([
|
|
1111
|
+
"onorientationchange" in t,
|
|
1112
|
+
"orientation" in t,
|
|
1113
|
+
e && !("SharedWorker" in t),
|
|
1114
|
+
n && /android/i.test(navigator.appVersion)
|
|
1114
1115
|
]) >= 2;
|
|
1115
1116
|
}
|
|
1116
1117
|
function vt(e) {
|
|
1117
|
-
const
|
|
1118
|
-
return
|
|
1118
|
+
const n = new Error(e);
|
|
1119
|
+
return n.name = e, n;
|
|
1119
1120
|
}
|
|
1120
|
-
function gt(e,
|
|
1121
|
+
function gt(e, n, t) {
|
|
1121
1122
|
let r, o, a;
|
|
1122
|
-
return
|
|
1123
|
+
return t === void 0 && (t = 50), G(this, void 0, void 0, function() {
|
|
1123
1124
|
let s, c;
|
|
1124
1125
|
return W(this, function(i) {
|
|
1125
1126
|
switch (i.label) {
|
|
1126
1127
|
case 0:
|
|
1127
1128
|
s = document, i.label = 1;
|
|
1128
1129
|
case 1:
|
|
1129
|
-
return s.body ? [3, 3] : [4, Y(
|
|
1130
|
+
return s.body ? [3, 3] : [4, Y(t)];
|
|
1130
1131
|
case 2:
|
|
1131
1132
|
return i.sent(), [3, 1];
|
|
1132
1133
|
case 3:
|
|
@@ -1153,7 +1154,7 @@ function gt(e, t, n) {
|
|
|
1153
1154
|
case 5:
|
|
1154
1155
|
i.sent(), i.label = 6;
|
|
1155
1156
|
case 6:
|
|
1156
|
-
return !((o = (r = c.contentWindow) === null || r === void 0 ? void 0 : r.document) === null || o === void 0) && o.body ? [3, 8] : [4, Y(
|
|
1157
|
+
return !((o = (r = c.contentWindow) === null || r === void 0 ? void 0 : r.document) === null || o === void 0) && o.body ? [3, 8] : [4, Y(t)];
|
|
1157
1158
|
case 7:
|
|
1158
1159
|
return i.sent(), [3, 6];
|
|
1159
1160
|
case 8:
|
|
@@ -1169,7 +1170,7 @@ function gt(e, t, n) {
|
|
|
1169
1170
|
});
|
|
1170
1171
|
}
|
|
1171
1172
|
function Qn(e) {
|
|
1172
|
-
for (var
|
|
1173
|
+
for (var n = (function(c) {
|
|
1173
1174
|
for (var i, u, l = "Unexpected syntax '".concat(c, "'"), h = /^\s*([a-z-]*)(.*)$/i.exec(c), v = h[1] || void 0, g = {}, S = /([.:#][\w-]+|\[.+?\])/gi, y = function(k, x) {
|
|
1174
1175
|
g[k] = g[k] || [], g[k].push(x);
|
|
1175
1176
|
}; ; ) {
|
|
@@ -1196,15 +1197,15 @@ function Qn(e) {
|
|
|
1196
1197
|
}
|
|
1197
1198
|
}
|
|
1198
1199
|
return [v, g];
|
|
1199
|
-
})(e),
|
|
1200
|
+
})(e), t = n[0], r = n[1], o = document.createElement(t ?? "div"), a = 0, s = Object.keys(r); a < s.length; a++) {
|
|
1200
1201
|
const c = s[a], i = r[c].join(" ");
|
|
1201
1202
|
c === "style" ? Kn(o.style, i) : o.setAttribute(c, i);
|
|
1202
1203
|
}
|
|
1203
1204
|
return o;
|
|
1204
1205
|
}
|
|
1205
|
-
function Kn(e,
|
|
1206
|
-
for (let
|
|
1207
|
-
const o = r[
|
|
1206
|
+
function Kn(e, n) {
|
|
1207
|
+
for (let t = 0, r = n.split(";"); t < r.length; t++) {
|
|
1208
|
+
const o = r[t], a = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);
|
|
1208
1209
|
if (a) {
|
|
1209
1210
|
const s = a[1], c = a[2], i = a[4];
|
|
1210
1211
|
e.setProperty(s, c, i || "");
|
|
@@ -1273,26 +1274,26 @@ function er() {
|
|
|
1273
1274
|
const e = this;
|
|
1274
1275
|
return (function() {
|
|
1275
1276
|
if (Fe === void 0) {
|
|
1276
|
-
const
|
|
1277
|
-
const
|
|
1278
|
-
Ve(
|
|
1277
|
+
const n = function() {
|
|
1278
|
+
const t = Me();
|
|
1279
|
+
Ve(t) ? Fe = setTimeout(n, 2500) : (Se = t, Fe = void 0);
|
|
1279
1280
|
};
|
|
1280
|
-
|
|
1281
|
+
n();
|
|
1281
1282
|
}
|
|
1282
1283
|
})(), function() {
|
|
1283
1284
|
return G(e, void 0, void 0, function() {
|
|
1284
|
-
let
|
|
1285
|
-
return W(this, function(
|
|
1286
|
-
switch (
|
|
1285
|
+
let n;
|
|
1286
|
+
return W(this, function(t) {
|
|
1287
|
+
switch (t.label) {
|
|
1287
1288
|
case 0:
|
|
1288
|
-
return Ve(
|
|
1289
|
+
return Ve(n = Me()) ? Se ? [2, ie([], Se, !0)] : $n() ? [
|
|
1289
1290
|
4,
|
|
1290
1291
|
(r = document, (r.exitFullscreen || r.msExitFullscreen || r.mozCancelFullScreen || r.webkitExitFullscreen).call(r))
|
|
1291
1292
|
] : [3, 2] : [3, 2];
|
|
1292
1293
|
case 1:
|
|
1293
|
-
|
|
1294
|
+
t.sent(), n = Me(), t.label = 2;
|
|
1294
1295
|
case 2:
|
|
1295
|
-
return Ve(
|
|
1296
|
+
return Ve(n) || (Se = n), [2, n];
|
|
1296
1297
|
}
|
|
1297
1298
|
let r;
|
|
1298
1299
|
});
|
|
@@ -1309,29 +1310,29 @@ function Me() {
|
|
|
1309
1310
|
];
|
|
1310
1311
|
}
|
|
1311
1312
|
function Ve(e) {
|
|
1312
|
-
for (let
|
|
1313
|
+
for (let n = 0; n < 4; ++n) if (e[n]) return !1;
|
|
1313
1314
|
return !0;
|
|
1314
1315
|
}
|
|
1315
1316
|
function tr(e) {
|
|
1316
|
-
let
|
|
1317
|
+
let n;
|
|
1317
1318
|
return G(this, void 0, void 0, function() {
|
|
1318
|
-
let
|
|
1319
|
+
let t, r, o, a, s, c, i;
|
|
1319
1320
|
return W(this, function(u) {
|
|
1320
1321
|
switch (u.label) {
|
|
1321
1322
|
case 0:
|
|
1322
|
-
for (
|
|
1323
|
-
s = Qn(e[i]), yt(c =
|
|
1323
|
+
for (t = document, r = t.createElement("div"), o = new Array(e.length), a = {}, yt(r), i = 0; i < e.length; ++i)
|
|
1324
|
+
s = Qn(e[i]), yt(c = t.createElement("div")), c.appendChild(s), r.appendChild(c), o[i] = s;
|
|
1324
1325
|
u.label = 1;
|
|
1325
1326
|
case 1:
|
|
1326
|
-
return
|
|
1327
|
+
return t.body ? [3, 3] : [4, Y(50)];
|
|
1327
1328
|
case 2:
|
|
1328
1329
|
return u.sent(), [3, 1];
|
|
1329
1330
|
case 3:
|
|
1330
|
-
|
|
1331
|
+
t.body.appendChild(r);
|
|
1331
1332
|
try {
|
|
1332
1333
|
for (i = 0; i < e.length; ++i) o[i].offsetParent || (a[e[i]] = !0);
|
|
1333
1334
|
} finally {
|
|
1334
|
-
(
|
|
1335
|
+
(n = r.parentNode) === null || n === void 0 || n.removeChild(r);
|
|
1335
1336
|
}
|
|
1336
1337
|
return [2, a];
|
|
1337
1338
|
}
|
|
@@ -1368,11 +1369,11 @@ const L = Math, N = function() {
|
|
|
1368
1369
|
system: [{ fontFamily: "system-ui" }]
|
|
1369
1370
|
}, nr = {
|
|
1370
1371
|
fonts: function() {
|
|
1371
|
-
return gt(function(e,
|
|
1372
|
-
const
|
|
1372
|
+
return gt(function(e, n) {
|
|
1373
|
+
const t = n.document, r = t.body;
|
|
1373
1374
|
r.style.fontSize = "48px";
|
|
1374
|
-
const o =
|
|
1375
|
-
const h =
|
|
1375
|
+
const o = t.createElement("div"), a = {}, s = {}, c = function(l) {
|
|
1376
|
+
const h = t.createElement("span"), v = h.style;
|
|
1376
1377
|
return v.position = "absolute", v.top = "0", v.left = "0", v.fontFamily = l, h.textContent = "mmMwWLliI0O&1", o.appendChild(h), h;
|
|
1377
1378
|
}, i = re.map(c), u = (function() {
|
|
1378
1379
|
for (var l = {}, h = function(S) {
|
|
@@ -1389,20 +1390,20 @@ const L = Math, N = function() {
|
|
|
1389
1390
|
for (let l = 0; l < re.length; l++)
|
|
1390
1391
|
a[re[l]] = i[l].offsetWidth, s[re[l]] = i[l].offsetHeight;
|
|
1391
1392
|
return bt.filter(function(l) {
|
|
1392
|
-
return
|
|
1393
|
-
return
|
|
1393
|
+
return n = u[l], re.some(function(h, v) {
|
|
1394
|
+
return n[v].offsetWidth !== a[h] || n[v].offsetHeight !== s[h];
|
|
1394
1395
|
});
|
|
1395
1396
|
});
|
|
1396
1397
|
});
|
|
1397
1398
|
},
|
|
1398
1399
|
domBlockers: function(e) {
|
|
1399
|
-
const
|
|
1400
|
+
const n = (e === void 0 ? {} : e).debug;
|
|
1400
1401
|
return G(this, void 0, void 0, function() {
|
|
1401
|
-
let
|
|
1402
|
+
let t, r, o, a, s;
|
|
1402
1403
|
return W(this, function(c) {
|
|
1403
1404
|
switch (c.label) {
|
|
1404
1405
|
case 0:
|
|
1405
|
-
return me() || Xt() ? (i = atob,
|
|
1406
|
+
return me() || Xt() ? (i = atob, t = {
|
|
1406
1407
|
abpIndo: [
|
|
1407
1408
|
"#Iklan-Melayang",
|
|
1408
1409
|
"#Kolom-Iklan-728",
|
|
@@ -1739,19 +1740,19 @@ const L = Math, N = function() {
|
|
|
1739
1740
|
".zergnet-recommend",
|
|
1740
1741
|
".yt.btn-link.btn-md.btn"
|
|
1741
1742
|
]
|
|
1742
|
-
}, r = Object.keys(
|
|
1743
|
+
}, r = Object.keys(t), [
|
|
1743
1744
|
4,
|
|
1744
1745
|
tr(
|
|
1745
1746
|
(s = []).concat.apply(
|
|
1746
1747
|
s,
|
|
1747
1748
|
r.map(function(u) {
|
|
1748
|
-
return
|
|
1749
|
+
return t[u];
|
|
1749
1750
|
})
|
|
1750
1751
|
)
|
|
1751
1752
|
)
|
|
1752
1753
|
]) : [2, void 0];
|
|
1753
1754
|
case 1:
|
|
1754
|
-
return o = c.sent(),
|
|
1755
|
+
return o = c.sent(), n && (function(u, l) {
|
|
1755
1756
|
for (var h = "DOM blockers debug:\n```", v = 0, g = Object.keys(u); v < g.length; v++) {
|
|
1756
1757
|
const S = g[v];
|
|
1757
1758
|
h += `
|
|
@@ -1763,9 +1764,9 @@ const L = Math, N = function() {
|
|
|
1763
1764
|
}
|
|
1764
1765
|
}
|
|
1765
1766
|
console.log("".concat(h, "\n```"));
|
|
1766
|
-
})(
|
|
1767
|
-
const l =
|
|
1768
|
-
return
|
|
1767
|
+
})(t, o), (a = r.filter(function(u) {
|
|
1768
|
+
const l = t[u];
|
|
1769
|
+
return j(
|
|
1769
1770
|
l.map(function(h) {
|
|
1770
1771
|
return o[h];
|
|
1771
1772
|
})
|
|
@@ -1777,36 +1778,36 @@ const L = Math, N = function() {
|
|
|
1777
1778
|
});
|
|
1778
1779
|
},
|
|
1779
1780
|
fontPreferences: function() {
|
|
1780
|
-
return (function(e,
|
|
1781
|
-
return
|
|
1781
|
+
return (function(e, n) {
|
|
1782
|
+
return n === void 0 && (n = 4e3), gt(function(t, r) {
|
|
1782
1783
|
const o = r.document, a = o.body, s = a.style;
|
|
1783
|
-
s.width = "".concat(
|
|
1784
|
+
s.width = "".concat(n, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", ze() ? a.style.zoom = "".concat(1 / r.devicePixelRatio) : me() && (a.style.zoom = "reset");
|
|
1784
1785
|
const c = o.createElement("div");
|
|
1785
|
-
return c.textContent = ie([], Array(
|
|
1786
|
+
return c.textContent = ie([], Array(n / 20 << 0), !0).map(function() {
|
|
1786
1787
|
return "word";
|
|
1787
1788
|
}).join(" "), a.appendChild(c), e(o, a);
|
|
1788
1789
|
});
|
|
1789
|
-
})(function(e,
|
|
1790
|
-
for (var
|
|
1790
|
+
})(function(e, n) {
|
|
1791
|
+
for (var t = {}, r = {}, o = 0, a = Object.keys(He); o < a.length; o++) {
|
|
1791
1792
|
var s = a[o], c = He[s], i = c[0], u = i === void 0 ? {} : i, l = c[1], h = l === void 0 ? "mmMwWLliI0fiflO&1" : l, v = e.createElement("span");
|
|
1792
1793
|
v.textContent = h, v.style.whiteSpace = "nowrap";
|
|
1793
1794
|
for (let g = 0, S = Object.keys(u); g < S.length; g++) {
|
|
1794
1795
|
const y = S[g], m = u[y];
|
|
1795
1796
|
m !== void 0 && (v.style[y] = m);
|
|
1796
1797
|
}
|
|
1797
|
-
|
|
1798
|
+
t[s] = v, n.appendChild(e.createElement("br")), n.appendChild(v);
|
|
1798
1799
|
}
|
|
1799
1800
|
for (let g = 0, S = Object.keys(He); g < S.length; g++)
|
|
1800
|
-
r[s = S[g]] =
|
|
1801
|
+
r[s = S[g]] = t[s].getBoundingClientRect().width;
|
|
1801
1802
|
return r;
|
|
1802
1803
|
});
|
|
1803
1804
|
},
|
|
1804
1805
|
audio: function() {
|
|
1805
|
-
const e = window,
|
|
1806
|
-
if (!
|
|
1806
|
+
const e = window, n = e.OfflineAudioContext || e.webkitOfflineAudioContext;
|
|
1807
|
+
if (!n) return -2;
|
|
1807
1808
|
if (me() && !Je() && !(function() {
|
|
1808
1809
|
const u = window;
|
|
1809
|
-
return
|
|
1810
|
+
return j([
|
|
1810
1811
|
"DOMRectList" in u,
|
|
1811
1812
|
"RTCPeerConnectionIceEvent" in u,
|
|
1812
1813
|
"SVGGeometryElement" in u,
|
|
@@ -1814,29 +1815,29 @@ const L = Math, N = function() {
|
|
|
1814
1815
|
]) >= 3;
|
|
1815
1816
|
})())
|
|
1816
1817
|
return -1;
|
|
1817
|
-
const
|
|
1818
|
+
const t = new n(1, 5e3, 44100), r = t.createOscillator();
|
|
1818
1819
|
r.type = "triangle", r.frequency.value = 1e4;
|
|
1819
|
-
const o =
|
|
1820
|
-
o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.25, r.connect(o), o.connect(
|
|
1820
|
+
const o = t.createDynamicsCompressor();
|
|
1821
|
+
o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.25, r.connect(o), o.connect(t.destination), r.start(0);
|
|
1821
1822
|
const a = (function(u) {
|
|
1822
1823
|
let l = 3, h = 500, v = 500, g = 5e3, S = function() {
|
|
1823
1824
|
};
|
|
1824
1825
|
return [
|
|
1825
1826
|
new Promise(function(y, m) {
|
|
1826
|
-
let k = !1, x = 0,
|
|
1827
|
+
let k = !1, x = 0, U = 0;
|
|
1827
1828
|
u.oncomplete = function(_) {
|
|
1828
1829
|
return y(_.renderedBuffer);
|
|
1829
1830
|
};
|
|
1830
1831
|
const q = function() {
|
|
1831
1832
|
setTimeout(function() {
|
|
1832
1833
|
return m(vt("timeout"));
|
|
1833
|
-
}, Math.min(v,
|
|
1834
|
+
}, Math.min(v, U + g - Date.now()));
|
|
1834
1835
|
}, ye = function() {
|
|
1835
1836
|
try {
|
|
1836
1837
|
const _ = u.startRendering();
|
|
1837
1838
|
switch (Vt(_) && ke(_), u.state) {
|
|
1838
1839
|
case "running":
|
|
1839
|
-
|
|
1840
|
+
U = Date.now(), k && q();
|
|
1840
1841
|
break;
|
|
1841
1842
|
case "suspended":
|
|
1842
1843
|
document.hidden || x++, k && x >= l ? m(vt("suspended")) : setTimeout(ye, h);
|
|
@@ -1846,12 +1847,12 @@ const L = Math, N = function() {
|
|
|
1846
1847
|
}
|
|
1847
1848
|
};
|
|
1848
1849
|
ye(), S = function() {
|
|
1849
|
-
k || (k = !0,
|
|
1850
|
+
k || (k = !0, U > 0 && q());
|
|
1850
1851
|
};
|
|
1851
1852
|
}),
|
|
1852
1853
|
S
|
|
1853
1854
|
];
|
|
1854
|
-
})(
|
|
1855
|
+
})(t), s = a[0], c = a[1], i = s.then(
|
|
1855
1856
|
function(u) {
|
|
1856
1857
|
return (function(l) {
|
|
1857
1858
|
for (var h = 0, v = 0; v < l.length; ++v) h += Math.abs(l[v]);
|
|
@@ -1868,24 +1869,24 @@ const L = Math, N = function() {
|
|
|
1868
1869
|
};
|
|
1869
1870
|
},
|
|
1870
1871
|
screenFrame: function() {
|
|
1871
|
-
const e = this,
|
|
1872
|
+
const e = this, n = er();
|
|
1872
1873
|
return function() {
|
|
1873
1874
|
return G(e, void 0, void 0, function() {
|
|
1874
|
-
let
|
|
1875
|
+
let t, r;
|
|
1875
1876
|
return W(this, function(o) {
|
|
1876
1877
|
switch (o.label) {
|
|
1877
1878
|
case 0:
|
|
1878
|
-
return [4,
|
|
1879
|
+
return [4, n()];
|
|
1879
1880
|
case 1:
|
|
1880
|
-
return
|
|
1881
|
+
return t = o.sent(), [
|
|
1881
1882
|
2,
|
|
1882
1883
|
[
|
|
1883
1884
|
(r = function(a) {
|
|
1884
1885
|
return a === null ? null : Ht(a, 10);
|
|
1885
|
-
})(
|
|
1886
|
-
r(
|
|
1887
|
-
r(
|
|
1888
|
-
r(
|
|
1886
|
+
})(t[0]),
|
|
1887
|
+
r(t[1]),
|
|
1888
|
+
r(t[2]),
|
|
1889
|
+
r(t[3])
|
|
1889
1890
|
]
|
|
1890
1891
|
];
|
|
1891
1892
|
}
|
|
@@ -1897,19 +1898,19 @@ const L = Math, N = function() {
|
|
|
1897
1898
|
return navigator.oscpu;
|
|
1898
1899
|
},
|
|
1899
1900
|
languages: function() {
|
|
1900
|
-
let e,
|
|
1901
|
-
if (r !== void 0 &&
|
|
1902
|
-
ze() &&
|
|
1901
|
+
let e, n = navigator, t = [], r = n.language || n.userLanguage || n.browserLanguage || n.systemLanguage;
|
|
1902
|
+
if (r !== void 0 && t.push([r]), Array.isArray(n.languages))
|
|
1903
|
+
ze() && j([
|
|
1903
1904
|
!("MediaSettingsRange" in (e = window)),
|
|
1904
1905
|
"RTCEncodedAudioFrame" in e,
|
|
1905
1906
|
"" + e.Intl == "[object Intl]",
|
|
1906
1907
|
"" + e.Reflect == "[object Reflect]"
|
|
1907
|
-
]) >= 3 ||
|
|
1908
|
-
else if (typeof
|
|
1909
|
-
const o =
|
|
1910
|
-
o &&
|
|
1908
|
+
]) >= 3 || t.push(n.languages);
|
|
1909
|
+
else if (typeof n.languages == "string") {
|
|
1910
|
+
const o = n.languages;
|
|
1911
|
+
o && t.push(o.split(","));
|
|
1911
1912
|
}
|
|
1912
|
-
return
|
|
1913
|
+
return t;
|
|
1913
1914
|
},
|
|
1914
1915
|
colorDepth: function() {
|
|
1915
1916
|
return window.screen.colorDepth;
|
|
@@ -1918,23 +1919,23 @@ const L = Math, N = function() {
|
|
|
1918
1919
|
return Z(X(navigator.deviceMemory), void 0);
|
|
1919
1920
|
},
|
|
1920
1921
|
screenResolution: function() {
|
|
1921
|
-
const e = screen,
|
|
1922
|
+
const e = screen, n = function(r) {
|
|
1922
1923
|
return Z(xe(r), null);
|
|
1923
|
-
},
|
|
1924
|
-
return
|
|
1924
|
+
}, t = [n(e.width), n(e.height)];
|
|
1925
|
+
return t.sort().reverse(), t;
|
|
1925
1926
|
},
|
|
1926
1927
|
hardwareConcurrency: function() {
|
|
1927
1928
|
return Z(xe(navigator.hardwareConcurrency), void 0);
|
|
1928
1929
|
},
|
|
1929
1930
|
timezone: function() {
|
|
1930
|
-
let e,
|
|
1931
|
-
if (
|
|
1932
|
-
const o = new
|
|
1931
|
+
let e, n = (e = window.Intl) === null || e === void 0 ? void 0 : e.DateTimeFormat;
|
|
1932
|
+
if (n) {
|
|
1933
|
+
const o = new n().resolvedOptions().timeZone;
|
|
1933
1934
|
if (o) return o;
|
|
1934
1935
|
}
|
|
1935
|
-
let
|
|
1936
|
-
X(new Date(
|
|
1937
|
-
X(new Date(
|
|
1936
|
+
let t, r = (t = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(
|
|
1937
|
+
X(new Date(t, 0, 1).getTimezoneOffset()),
|
|
1938
|
+
X(new Date(t, 6, 1).getTimezoneOffset())
|
|
1938
1939
|
));
|
|
1939
1940
|
return "UTC".concat(r >= 0 ? "+" : "").concat(Math.abs(r));
|
|
1940
1941
|
},
|
|
@@ -1970,39 +1971,39 @@ const L = Math, N = function() {
|
|
|
1970
1971
|
const e = navigator.platform;
|
|
1971
1972
|
return e === "MacIntel" && me() && !Je() ? (function() {
|
|
1972
1973
|
if (navigator.platform === "iPad") return !0;
|
|
1973
|
-
const
|
|
1974
|
-
return
|
|
1974
|
+
const n = screen, t = n.width / n.height;
|
|
1975
|
+
return j([
|
|
1975
1976
|
"MediaSource" in window,
|
|
1976
1977
|
!!Element.prototype.webkitRequestFullscreen,
|
|
1977
|
-
|
|
1978
|
+
t > 0.65 && t < 1.53
|
|
1978
1979
|
]) >= 2;
|
|
1979
1980
|
})() ? "iPad" : "iPhone" : e;
|
|
1980
1981
|
},
|
|
1981
1982
|
plugins: function() {
|
|
1982
1983
|
const e = navigator.plugins;
|
|
1983
1984
|
if (e) {
|
|
1984
|
-
for (var
|
|
1985
|
-
const a = e[
|
|
1985
|
+
for (var n = [], t = 0; t < e.length; ++t) {
|
|
1986
|
+
const a = e[t];
|
|
1986
1987
|
if (a) {
|
|
1987
1988
|
for (var r = [], o = 0; o < a.length; ++o) {
|
|
1988
1989
|
const s = a[o];
|
|
1989
1990
|
r.push({ type: s.type, suffixes: s.suffixes });
|
|
1990
1991
|
}
|
|
1991
|
-
|
|
1992
|
+
n.push({ name: a.name, description: a.description, mimeTypes: r });
|
|
1992
1993
|
}
|
|
1993
1994
|
}
|
|
1994
|
-
return
|
|
1995
|
+
return n;
|
|
1995
1996
|
}
|
|
1996
1997
|
},
|
|
1997
1998
|
canvas: function() {
|
|
1998
|
-
let e,
|
|
1999
|
+
let e, n, t = !1, r = (function() {
|
|
1999
2000
|
const s = document.createElement("canvas");
|
|
2000
2001
|
return s.width = 1, s.height = 1, [s, s.getContext("2d")];
|
|
2001
2002
|
})(), o = r[0], a = r[1];
|
|
2002
2003
|
if ((function(s, c) {
|
|
2003
2004
|
return !(!c || !s.toDataURL);
|
|
2004
2005
|
})(o, a)) {
|
|
2005
|
-
|
|
2006
|
+
t = (function(c) {
|
|
2006
2007
|
return c.rect(0, 0, 10, 10), c.rect(2, 2, 6, 6), !c.isPointInPath(5, 5, "evenodd");
|
|
2007
2008
|
})(a), (function(c, i) {
|
|
2008
2009
|
c.width = 240, c.height = 60, i.textBaseline = "alphabetic", i.fillStyle = "#f60", i.fillRect(100, 1, 62, 20), i.fillStyle = "#069", i.font = '11pt "Times New Roman"';
|
|
@@ -2012,7 +2013,7 @@ const L = Math, N = function() {
|
|
|
2012
2013
|
i.fillText(u, 2, 15), i.fillStyle = "rgba(102, 204, 0, 0.2)", i.font = "18pt Arial", i.fillText(u, 4, 45);
|
|
2013
2014
|
})(o, a);
|
|
2014
2015
|
const s = Ne(o);
|
|
2015
|
-
s !== Ne(o) ? e =
|
|
2016
|
+
s !== Ne(o) ? e = n = "unstable" : (n = s, (function(c, i) {
|
|
2016
2017
|
c.width = 122, c.height = 110, i.globalCompositeOperation = "multiply";
|
|
2017
2018
|
for (let u = 0, l = [
|
|
2018
2019
|
["#f2f", 40, 40],
|
|
@@ -2024,19 +2025,19 @@ const L = Math, N = function() {
|
|
|
2024
2025
|
}
|
|
2025
2026
|
i.fillStyle = "#f9c", i.arc(60, 60, 60, 0, 2 * Math.PI, !0), i.arc(60, 60, 20, 0, 2 * Math.PI, !0), i.fill("evenodd");
|
|
2026
2027
|
})(o, a), e = Ne(o));
|
|
2027
|
-
} else e =
|
|
2028
|
-
return { winding:
|
|
2028
|
+
} else e = n = "";
|
|
2029
|
+
return { winding: t, geometry: e, text: n };
|
|
2029
2030
|
},
|
|
2030
2031
|
touchSupport: function() {
|
|
2031
|
-
let e,
|
|
2032
|
-
|
|
2032
|
+
let e, n = navigator, t = 0;
|
|
2033
|
+
n.maxTouchPoints !== void 0 ? t = xe(n.maxTouchPoints) : n.msMaxTouchPoints !== void 0 && (t = n.msMaxTouchPoints);
|
|
2033
2034
|
try {
|
|
2034
2035
|
document.createEvent("TouchEvent"), e = !0;
|
|
2035
2036
|
} catch {
|
|
2036
2037
|
e = !1;
|
|
2037
2038
|
}
|
|
2038
2039
|
return {
|
|
2039
|
-
maxTouchPoints:
|
|
2040
|
+
maxTouchPoints: t,
|
|
2040
2041
|
touchEvent: e,
|
|
2041
2042
|
touchStart: "ontouchstart" in window
|
|
2042
2043
|
};
|
|
@@ -2045,7 +2046,7 @@ const L = Math, N = function() {
|
|
|
2045
2046
|
return navigator.vendor || "";
|
|
2046
2047
|
},
|
|
2047
2048
|
vendorFlavors: function() {
|
|
2048
|
-
for (var e = [],
|
|
2049
|
+
for (var e = [], n = 0, t = [
|
|
2049
2050
|
"chrome",
|
|
2050
2051
|
"safari",
|
|
2051
2052
|
"__crWeb",
|
|
@@ -2061,8 +2062,8 @@ const L = Math, N = function() {
|
|
|
2061
2062
|
"ucweb",
|
|
2062
2063
|
"UCShellJava",
|
|
2063
2064
|
"puffinDevice"
|
|
2064
|
-
];
|
|
2065
|
-
const r = n
|
|
2065
|
+
]; n < t.length; n++) {
|
|
2066
|
+
const r = t[n], o = window[r];
|
|
2066
2067
|
o && typeof o == "object" && e.push(r);
|
|
2067
2068
|
}
|
|
2068
2069
|
return e.sort();
|
|
@@ -2071,16 +2072,16 @@ const L = Math, N = function() {
|
|
|
2071
2072
|
const e = document;
|
|
2072
2073
|
try {
|
|
2073
2074
|
e.cookie = "cookietest=1; SameSite=Strict;";
|
|
2074
|
-
const
|
|
2075
|
-
return e.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",
|
|
2075
|
+
const n = e.cookie.indexOf("cookietest=") !== -1;
|
|
2076
|
+
return e.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", n;
|
|
2076
2077
|
} catch {
|
|
2077
2078
|
return !1;
|
|
2078
2079
|
}
|
|
2079
2080
|
},
|
|
2080
2081
|
colorGamut: function() {
|
|
2081
|
-
for (let e = 0,
|
|
2082
|
-
const
|
|
2083
|
-
if (matchMedia("(color-gamut: ".concat(
|
|
2082
|
+
for (let e = 0, n = ["rec2020", "p3", "srgb"]; e < n.length; e++) {
|
|
2083
|
+
const t = n[e];
|
|
2084
|
+
if (matchMedia("(color-gamut: ".concat(t, ")")).matches) return t;
|
|
2084
2085
|
}
|
|
2085
2086
|
},
|
|
2086
2087
|
invertedColors: function() {
|
|
@@ -2106,10 +2107,10 @@ const L = Math, N = function() {
|
|
|
2106
2107
|
return !!wt("high") || !wt("standard") && void 0;
|
|
2107
2108
|
},
|
|
2108
2109
|
math: function() {
|
|
2109
|
-
let e,
|
|
2110
|
+
let e, n = L.acos || N, t = L.acosh || N, r = L.asin || N, o = L.asinh || N, a = L.atanh || N, s = L.atan || N, c = L.sin || N, i = L.sinh || N, u = L.cos || N, l = L.cosh || N, h = L.tan || N, v = L.tanh || N, g = L.exp || N, S = L.expm1 || N, y = L.log1p || N;
|
|
2110
2111
|
return {
|
|
2111
|
-
acos:
|
|
2112
|
-
acosh:
|
|
2112
|
+
acos: n(0.12312423423423424),
|
|
2113
|
+
acosh: t(1e308),
|
|
2113
2114
|
acoshPf: (e = 1e154, L.log(e + L.sqrt(e * e - 1))),
|
|
2114
2115
|
asin: r(0.12312423423423424),
|
|
2115
2116
|
asinh: o(1),
|
|
@@ -2151,13 +2152,13 @@ const L = Math, N = function() {
|
|
|
2151
2152
|
};
|
|
2152
2153
|
},
|
|
2153
2154
|
videoCard: function() {
|
|
2154
|
-
let e,
|
|
2155
|
-
if (
|
|
2156
|
-
const r =
|
|
2155
|
+
let e, n = document.createElement("canvas"), t = (e = n.getContext("webgl")) !== null && e !== void 0 ? e : n.getContext("experimental-webgl");
|
|
2156
|
+
if (t && "getExtension" in t) {
|
|
2157
|
+
const r = t.getExtension("WEBGL_debug_renderer_info");
|
|
2157
2158
|
if (r)
|
|
2158
2159
|
return {
|
|
2159
|
-
vendor: (
|
|
2160
|
-
renderer: (
|
|
2160
|
+
vendor: (t.getParameter(r.UNMASKED_VENDOR_WEBGL) || "").toString(),
|
|
2161
|
+
renderer: (t.getParameter(r.UNMASKED_RENDERER_WEBGL) || "").toString()
|
|
2161
2162
|
};
|
|
2162
2163
|
}
|
|
2163
2164
|
},
|
|
@@ -2165,58 +2166,58 @@ const L = Math, N = function() {
|
|
|
2165
2166
|
return navigator.pdfViewerEnabled;
|
|
2166
2167
|
},
|
|
2167
2168
|
architecture: function() {
|
|
2168
|
-
const e = new Float32Array(1),
|
|
2169
|
-
return e[0] = 1 / 0, e[0] = e[0] - e[0],
|
|
2169
|
+
const e = new Float32Array(1), n = new Uint8Array(e.buffer);
|
|
2170
|
+
return e[0] = 1 / 0, e[0] = e[0] - e[0], n[3];
|
|
2170
2171
|
}
|
|
2171
2172
|
};
|
|
2172
2173
|
function rr(e) {
|
|
2173
|
-
const
|
|
2174
|
+
const n = (function(r) {
|
|
2174
2175
|
if (Xt()) return 0.4;
|
|
2175
2176
|
if (me()) return Je() ? 0.5 : 0.3;
|
|
2176
2177
|
const o = r.platform.value || "";
|
|
2177
2178
|
return /^Win/.test(o) ? 0.6 : /^Mac/.test(o) ? 0.5 : 0.7;
|
|
2178
|
-
})(e),
|
|
2179
|
+
})(e), t = (function(r) {
|
|
2179
2180
|
return Ht(0.99 + 0.01 * r, 1e-4);
|
|
2180
|
-
})(
|
|
2181
|
+
})(n);
|
|
2181
2182
|
return {
|
|
2182
|
-
score:
|
|
2183
|
+
score: n,
|
|
2183
2184
|
comment: "$ if upgrade to Pro: https://fpjs.dev/pro".replace(
|
|
2184
2185
|
/\$/g,
|
|
2185
|
-
"".concat(
|
|
2186
|
+
"".concat(t)
|
|
2186
2187
|
)
|
|
2187
2188
|
};
|
|
2188
2189
|
}
|
|
2189
2190
|
function or(e) {
|
|
2190
2191
|
return JSON.stringify(
|
|
2191
2192
|
e,
|
|
2192
|
-
function(
|
|
2193
|
-
return
|
|
2193
|
+
function(n, t) {
|
|
2194
|
+
return t instanceof Error ? _e(
|
|
2194
2195
|
{
|
|
2195
|
-
name: (ie =
|
|
2196
|
+
name: (ie = t).name,
|
|
2196
2197
|
message: ie.message,
|
|
2197
2198
|
stack: (Y = ie.stack) === null || Y === void 0 ? void 0 : Y.split(`
|
|
2198
2199
|
`)
|
|
2199
2200
|
},
|
|
2200
2201
|
ie
|
|
2201
|
-
) :
|
|
2202
|
+
) : t;
|
|
2202
2203
|
},
|
|
2203
2204
|
2
|
|
2204
2205
|
);
|
|
2205
2206
|
}
|
|
2206
2207
|
function ir(e) {
|
|
2207
2208
|
return Gn(
|
|
2208
|
-
(function(
|
|
2209
|
-
for (var
|
|
2210
|
-
const a = o[r], s =
|
|
2211
|
-
|
|
2209
|
+
(function(n) {
|
|
2210
|
+
for (var t = "", r = 0, o = Object.keys(n).sort(); r < o.length; r++) {
|
|
2211
|
+
const a = o[r], s = n[a], c = s.error ? "error" : JSON.stringify(s.value);
|
|
2212
|
+
t += "".concat(t ? "|" : "").concat(a.replace(/([:|\\])/g, "\\$1"), ":").concat(c);
|
|
2212
2213
|
}
|
|
2213
|
-
return
|
|
2214
|
+
return t;
|
|
2214
2215
|
})(e)
|
|
2215
2216
|
);
|
|
2216
2217
|
}
|
|
2217
2218
|
function ar(e) {
|
|
2218
|
-
return e === void 0 && (e = 50), (function(
|
|
2219
|
-
|
|
2219
|
+
return e === void 0 && (e = 50), (function(n, t) {
|
|
2220
|
+
t === void 0 && (t = 1 / 0);
|
|
2220
2221
|
const r = window.requestIdleCallback;
|
|
2221
2222
|
return r ? new Promise(function(o) {
|
|
2222
2223
|
return r.call(
|
|
@@ -2224,13 +2225,13 @@ function ar(e) {
|
|
|
2224
2225
|
function() {
|
|
2225
2226
|
return o();
|
|
2226
2227
|
},
|
|
2227
|
-
{ timeout:
|
|
2228
|
+
{ timeout: t }
|
|
2228
2229
|
);
|
|
2229
|
-
}) : Y(Math.min(
|
|
2230
|
+
}) : Y(Math.min(n, t));
|
|
2230
2231
|
})(e, 2 * e);
|
|
2231
2232
|
}
|
|
2232
|
-
function sr(e,
|
|
2233
|
-
const
|
|
2233
|
+
function sr(e, n) {
|
|
2234
|
+
const t = Date.now();
|
|
2234
2235
|
return {
|
|
2235
2236
|
get: function(r) {
|
|
2236
2237
|
return G(this, void 0, void 0, function() {
|
|
@@ -2253,10 +2254,10 @@ function sr(e, t) {
|
|
|
2253
2254
|
components: i,
|
|
2254
2255
|
version: "3.4.1"
|
|
2255
2256
|
};
|
|
2256
|
-
})(a), (
|
|
2257
|
+
})(a), (n || r?.debug) && console.log(
|
|
2257
2258
|
"Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version, `
|
|
2258
2259
|
userAgent: `).concat(navigator.userAgent, `
|
|
2259
|
-
timeBetweenLoadAndGet: `).concat(o -
|
|
2260
|
+
timeBetweenLoadAndGet: `).concat(o - t, `
|
|
2260
2261
|
visitorId: `).concat(s.visitorId, `
|
|
2261
2262
|
components: `).concat(or(a), "\n```")
|
|
2262
2263
|
), [2, s];
|
|
@@ -2267,12 +2268,12 @@ components: `).concat(or(a), "\n```")
|
|
|
2267
2268
|
};
|
|
2268
2269
|
}
|
|
2269
2270
|
function cr(e) {
|
|
2270
|
-
const
|
|
2271
|
-
return
|
|
2271
|
+
const n = e === void 0 ? {} : e, t = n.delayFallback, r = n.debug;
|
|
2272
|
+
return n.monitoring, G(this, void 0, void 0, function() {
|
|
2272
2273
|
return W(this, function(o) {
|
|
2273
2274
|
switch (o.label) {
|
|
2274
2275
|
case 0:
|
|
2275
|
-
return [4, ar(
|
|
2276
|
+
return [4, ar(t)];
|
|
2276
2277
|
case 1:
|
|
2277
2278
|
return o.sent(), [2, sr(zn(nr, { debug: r }, []), r)];
|
|
2278
2279
|
}
|
|
@@ -2280,29 +2281,29 @@ function cr(e) {
|
|
|
2280
2281
|
});
|
|
2281
2282
|
}
|
|
2282
2283
|
function nt() {
|
|
2283
|
-
const e = tt(Ye) || `s_${We()}`,
|
|
2284
|
-
return document.cookie = `${Ye}=${e};path=/;max-age=1800;expires=${
|
|
2284
|
+
const e = tt(Ye) || `s_${We()}`, n = new Date(R() + Rn);
|
|
2285
|
+
return document.cookie = `${Ye}=${e};path=/;max-age=1800;expires=${n.toUTCString()}`, e;
|
|
2285
2286
|
}
|
|
2286
2287
|
function ur() {
|
|
2287
2288
|
return tt(Ye) || nt();
|
|
2288
2289
|
}
|
|
2289
2290
|
nt();
|
|
2290
2291
|
function lr(e) {
|
|
2291
|
-
return
|
|
2292
|
+
return jt.test(e);
|
|
2292
2293
|
}
|
|
2293
2294
|
function dr(e) {
|
|
2294
|
-
return
|
|
2295
|
+
return Ut.test(e);
|
|
2295
2296
|
}
|
|
2296
|
-
const
|
|
2297
|
+
const jt = /((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/, Ut = /((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/, fr = [Ut, jt];
|
|
2297
2298
|
function hr(e) {
|
|
2298
|
-
let
|
|
2299
|
+
let n, t = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
|
|
2299
2300
|
function r() {
|
|
2300
|
-
(
|
|
2301
|
+
(n = new t({
|
|
2301
2302
|
iceServers: [{ urls: "stun:stun.l.google.com:19302" }]
|
|
2302
|
-
})).onicecandidate = (s) => a(s),
|
|
2303
|
+
})).onicecandidate = (s) => a(s), n.createDataChannel("fake_data_channel");
|
|
2303
2304
|
}
|
|
2304
2305
|
function o() {
|
|
2305
|
-
return
|
|
2306
|
+
return n.createOffer().then((s) => n.setLocalDescription(s));
|
|
2306
2307
|
}
|
|
2307
2308
|
function a(s) {
|
|
2308
2309
|
s && s.candidate && s.candidate.candidate && e(s && s.candidate && s.candidate.candidate);
|
|
@@ -2312,12 +2313,12 @@ function hr(e) {
|
|
|
2312
2313
|
r(), o();
|
|
2313
2314
|
},
|
|
2314
2315
|
stop: function() {
|
|
2315
|
-
if (
|
|
2316
|
+
if (n)
|
|
2316
2317
|
try {
|
|
2317
|
-
|
|
2318
|
+
n.close();
|
|
2318
2319
|
} finally {
|
|
2319
|
-
|
|
2320
|
-
},
|
|
2320
|
+
n.onicecandidate = () => {
|
|
2321
|
+
}, n = null;
|
|
2321
2322
|
}
|
|
2322
2323
|
},
|
|
2323
2324
|
createConnection: r,
|
|
@@ -2328,7 +2329,7 @@ function hr(e) {
|
|
|
2328
2329
|
function qe(e) {
|
|
2329
2330
|
if (e && e < 100)
|
|
2330
2331
|
throw new Error("Custom timeout cannot be under 100 milliseconds.");
|
|
2331
|
-
const
|
|
2332
|
+
const n = [], t = hr(function(o) {
|
|
2332
2333
|
const a = [];
|
|
2333
2334
|
for (const s of fr) {
|
|
2334
2335
|
const c = [], i = s.exec(o);
|
|
@@ -2339,42 +2340,42 @@ function qe(e) {
|
|
|
2339
2340
|
}
|
|
2340
2341
|
}
|
|
2341
2342
|
(function(s) {
|
|
2342
|
-
|
|
2343
|
+
n.includes(s) || n.push(r(s.flat(1 / 0)));
|
|
2343
2344
|
})(a.flat(1 / 0));
|
|
2344
2345
|
});
|
|
2345
2346
|
function r(o) {
|
|
2346
2347
|
return Array.from(new Set(o));
|
|
2347
2348
|
}
|
|
2348
2349
|
return new Promise(function(o, a) {
|
|
2349
|
-
|
|
2350
|
-
|
|
2350
|
+
t.start(), setTimeout(() => {
|
|
2351
|
+
n && n !== [] ? o(r(n.flat(1 / 0))) : a("No IP addresses were found."), t.stop();
|
|
2351
2352
|
}, e || 500);
|
|
2352
2353
|
});
|
|
2353
2354
|
}
|
|
2354
2355
|
function rt(e) {
|
|
2355
|
-
return new Promise(function(
|
|
2356
|
+
return new Promise(function(n, t) {
|
|
2356
2357
|
const r = [];
|
|
2357
2358
|
qe(e).then((o) => {
|
|
2358
2359
|
o.forEach((a) => {
|
|
2359
2360
|
a.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/) ? r.push({ ip: a, type: "private", IPv4: !0 }) : a.match(
|
|
2360
2361
|
/((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/
|
|
2361
2362
|
) ? r.push({ ip: a, type: "IPv6", IPv4: !1 }) : r.push({ ip: a, type: "public", IPv4: !0 });
|
|
2362
|
-
}),
|
|
2363
|
-
}).catch(
|
|
2363
|
+
}), n(r);
|
|
2364
|
+
}).catch(t);
|
|
2364
2365
|
});
|
|
2365
2366
|
}
|
|
2366
2367
|
function mr(e) {
|
|
2367
|
-
return rt(e).then((
|
|
2368
|
-
const
|
|
2369
|
-
for (let r = 0; r <
|
|
2370
|
-
return
|
|
2368
|
+
return rt(e).then((n) => {
|
|
2369
|
+
const t = n.filter((r) => r.IPv4);
|
|
2370
|
+
for (let r = 0; r < t.length; r++) t[r] = t[r].ip;
|
|
2371
|
+
return t || "";
|
|
2371
2372
|
});
|
|
2372
2373
|
}
|
|
2373
2374
|
function pr(e) {
|
|
2374
|
-
return rt(e).then((
|
|
2375
|
-
const
|
|
2376
|
-
for (let r = 0; r <
|
|
2377
|
-
return
|
|
2375
|
+
return rt(e).then((n) => {
|
|
2376
|
+
const t = n.filter((r) => r.type === "IPv6");
|
|
2377
|
+
for (let r = 0; r < t.length; r++) t[r] = t[r].ip;
|
|
2378
|
+
return t ? t.ip : "";
|
|
2378
2379
|
});
|
|
2379
2380
|
}
|
|
2380
2381
|
function Wt(e) {
|
|
@@ -2388,26 +2389,26 @@ function Wt(e) {
|
|
|
2388
2389
|
class $e {
|
|
2389
2390
|
static maxSize = 0.01 * 1024 * 1e3;
|
|
2390
2391
|
// 5Mb
|
|
2391
|
-
static getItem(
|
|
2392
|
-
const
|
|
2393
|
-
return
|
|
2392
|
+
static getItem(n) {
|
|
2393
|
+
const t = localStorage.getItem(n);
|
|
2394
|
+
return t ? JSON.parse(t) : null;
|
|
2394
2395
|
}
|
|
2395
|
-
static setItem(
|
|
2396
|
-
localStorage.setItem(
|
|
2396
|
+
static setItem(n, t) {
|
|
2397
|
+
localStorage.setItem(n, JSON.stringify(t));
|
|
2397
2398
|
}
|
|
2398
|
-
static removeItem(
|
|
2399
|
-
localStorage.removeItem(
|
|
2399
|
+
static removeItem(n) {
|
|
2400
|
+
localStorage.removeItem(n);
|
|
2400
2401
|
}
|
|
2401
2402
|
static getSize() {
|
|
2402
|
-
let
|
|
2403
|
-
for (let
|
|
2404
|
-
const r = localStorage.key(
|
|
2403
|
+
let n = 0;
|
|
2404
|
+
for (let t = 0; t < localStorage.length; t++) {
|
|
2405
|
+
const r = localStorage.key(t);
|
|
2405
2406
|
if (r) {
|
|
2406
2407
|
const o = localStorage.getItem(r);
|
|
2407
|
-
o && (
|
|
2408
|
+
o && (n += this.getBytes(o));
|
|
2408
2409
|
}
|
|
2409
2410
|
}
|
|
2410
|
-
return
|
|
2411
|
+
return n;
|
|
2411
2412
|
}
|
|
2412
2413
|
/**
|
|
2413
2414
|
* sendData专属存储
|
|
@@ -2417,19 +2418,19 @@ class $e {
|
|
|
2417
2418
|
*
|
|
2418
2419
|
* 注意:刷新页面测试会加入卸载事件,这在控制台是看不到的
|
|
2419
2420
|
*/
|
|
2420
|
-
static setSendDataItem(
|
|
2421
|
+
static setSendDataItem(n, t) {
|
|
2421
2422
|
if (this.getSize() >= this.maxSize) return !1;
|
|
2422
|
-
const r = this.getItem(
|
|
2423
|
+
const r = this.getItem(n) || {
|
|
2423
2424
|
baseInfo: {},
|
|
2424
2425
|
eventInfo: []
|
|
2425
2426
|
}, o = {
|
|
2426
|
-
baseInfo: Ie(r.baseInfo,
|
|
2427
|
-
eventInfo: r.eventInfo.concat(
|
|
2427
|
+
baseInfo: Ie(r.baseInfo, t.baseInfo),
|
|
2428
|
+
eventInfo: r.eventInfo.concat(t.eventInfo)
|
|
2428
2429
|
};
|
|
2429
|
-
return this.setItem(
|
|
2430
|
+
return this.setItem(n, o), !0;
|
|
2430
2431
|
}
|
|
2431
|
-
static getBytes(
|
|
2432
|
-
return new Blob([
|
|
2432
|
+
static getBytes(n) {
|
|
2433
|
+
return new Blob([n]).size;
|
|
2433
2434
|
}
|
|
2434
2435
|
}
|
|
2435
2436
|
class vr {
|
|
@@ -2446,15 +2447,15 @@ class vr {
|
|
|
2446
2447
|
*/
|
|
2447
2448
|
send() {
|
|
2448
2449
|
if (!this.events.length || !this.isServerAvailable) return;
|
|
2449
|
-
const
|
|
2450
|
+
const n = this.events.slice(0, d.value.cacheMaxLength);
|
|
2450
2451
|
this.events = this.events.slice(d.value.cacheMaxLength);
|
|
2451
|
-
const
|
|
2452
|
+
const t = R(), r = Pt(() => ({
|
|
2452
2453
|
baseInfo: {
|
|
2453
2454
|
...le.base?.value,
|
|
2454
|
-
sendTime:
|
|
2455
|
+
sendTime: t,
|
|
2455
2456
|
userUuid: d.value.userUuid
|
|
2456
2457
|
},
|
|
2457
|
-
eventInfo: Mt(
|
|
2458
|
+
eventInfo: Mt(n, (s) => (s.sendTime = t, s))
|
|
2458
2459
|
})), o = d.value.transformSendParams ? d.value.transformSendParams(r.value) : null;
|
|
2459
2460
|
if (d.value.localization) {
|
|
2460
2461
|
$e.setSendDataItem(
|
|
@@ -2477,10 +2478,10 @@ class vr {
|
|
|
2477
2478
|
}
|
|
2478
2479
|
handleServerError() {
|
|
2479
2480
|
if (this.isServerAvailable = !1, this.retryTimer && clearTimeout(this.retryTimer), d.value.checkRecoverInterval === -1) return;
|
|
2480
|
-
const
|
|
2481
|
+
const n = (d.value.checkRecoverInterval ?? 1) * 60 * 1e3;
|
|
2481
2482
|
this.retryTimer = setTimeout(() => {
|
|
2482
2483
|
this.testServerAvailable();
|
|
2483
|
-
},
|
|
2484
|
+
}, n);
|
|
2484
2485
|
}
|
|
2485
2486
|
testServerAvailable() {
|
|
2486
2487
|
st(d.value.dsn, { ping: 1 }, d.value.timeout).then(() => {
|
|
@@ -2493,11 +2494,11 @@ class vr {
|
|
|
2493
2494
|
* 发送本地事件列表
|
|
2494
2495
|
* @param e 需要发送的事件信息
|
|
2495
2496
|
*/
|
|
2496
|
-
sendLocal(
|
|
2497
|
-
const
|
|
2497
|
+
sendLocal(n) {
|
|
2498
|
+
const t = d.value.transformSendParams ? d.value.transformSendParams(n) : null, r = Ee(
|
|
2498
2499
|
d.value.beforeSendData,
|
|
2499
2500
|
!1,
|
|
2500
|
-
|
|
2501
|
+
t ?? n
|
|
2501
2502
|
);
|
|
2502
2503
|
Ce(r) || this.validateObject(r, "beforeSendData") && (ae("send events", r), this.executeSend(d.value.dsn, r));
|
|
2503
2504
|
}
|
|
@@ -2506,20 +2507,20 @@ class vr {
|
|
|
2506
2507
|
* @param e 需要发送的事件信息
|
|
2507
2508
|
* @param flush 是否立即发送
|
|
2508
2509
|
*/
|
|
2509
|
-
emit(
|
|
2510
|
-
if (!
|
|
2511
|
-
Te(
|
|
2510
|
+
emit(n, t = !1) {
|
|
2511
|
+
if (!n || !C.lineStatus.onLine || !t && !dn(d.value.tracesSampleRate)) return;
|
|
2512
|
+
Te(n) || (n = [n]);
|
|
2512
2513
|
const r = d.value.maxQueueLength ?? 200;
|
|
2513
2514
|
if (!this.isServerAvailable && this.events.length >= r) {
|
|
2514
|
-
this.events = this.events.slice(this.events.length - r +
|
|
2515
|
+
this.events = this.events.slice(this.events.length - r + n.length).concat(n);
|
|
2515
2516
|
return;
|
|
2516
2517
|
}
|
|
2517
2518
|
const o = Ee(
|
|
2518
2519
|
d.value.beforePushEventList,
|
|
2519
2520
|
!1,
|
|
2520
|
-
|
|
2521
|
+
n
|
|
2521
2522
|
);
|
|
2522
|
-
Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), le._initSuccess && (this.events.length >= d.value.cacheMaxLength ||
|
|
2523
|
+
Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), le._initSuccess && (this.events.length >= d.value.cacheMaxLength || t ? this.send() : this.timeoutID = setTimeout(
|
|
2523
2524
|
this.send.bind(this),
|
|
2524
2525
|
d.value.cacheWatingTime
|
|
2525
2526
|
)));
|
|
@@ -2529,22 +2530,22 @@ class vr {
|
|
|
2529
2530
|
* @param url 目标地址
|
|
2530
2531
|
* @param data 附带参数
|
|
2531
2532
|
*/
|
|
2532
|
-
executeSend(
|
|
2533
|
+
executeSend(n, t) {
|
|
2533
2534
|
let r = 1;
|
|
2534
|
-
return d.value.sendTypeByXmlBody ? r = 3 : p.navigator ? r = ct(
|
|
2535
|
+
return d.value.sendTypeByXmlBody ? r = 3 : p.navigator ? r = ct(t, 60) ? 3 : 1 : r = ct(t, 2) ? 3 : 2, new Promise((o) => {
|
|
2535
2536
|
switch (r) {
|
|
2536
2537
|
case 1:
|
|
2537
|
-
o({ sendType: "sendBeacon", success: hn(
|
|
2538
|
+
o({ sendType: "sendBeacon", success: hn(n, t) });
|
|
2538
2539
|
break;
|
|
2539
2540
|
case 2:
|
|
2540
|
-
mn(
|
|
2541
|
+
mn(n, t).then(() => {
|
|
2541
2542
|
o({ sendType: "image", success: !0 });
|
|
2542
2543
|
}).catch(() => {
|
|
2543
2544
|
o({ sendType: "image", success: !1 });
|
|
2544
2545
|
});
|
|
2545
2546
|
break;
|
|
2546
2547
|
case 3:
|
|
2547
|
-
st(
|
|
2548
|
+
st(n, t, d.value.timeout).then(() => {
|
|
2548
2549
|
o({ sendType: "xml", success: !0 });
|
|
2549
2550
|
}).catch(() => {
|
|
2550
2551
|
o({ sendType: "xml", success: !1 });
|
|
@@ -2557,12 +2558,12 @@ class vr {
|
|
|
2557
2558
|
* 验证选项的类型 - 只验证是否为 {} []
|
|
2558
2559
|
* 返回 false意思是取消放入队列 / 取消发送
|
|
2559
2560
|
*/
|
|
2560
|
-
validateObject(
|
|
2561
|
-
return
|
|
2562
|
-
`TypeError: ${
|
|
2563
|
-
|
|
2561
|
+
validateObject(n, t) {
|
|
2562
|
+
return n === !1 ? !1 : n ? ["object", "array"].includes(ue(n)) ? !0 : (se(
|
|
2563
|
+
`TypeError: ${t}期望返回 {} 或者 [] 类型,目前是${ue(
|
|
2564
|
+
n
|
|
2564
2565
|
)}类型`
|
|
2565
|
-
), !1) : (se(`NullError: ${
|
|
2566
|
+
), !1) : (se(`NullError: ${t}期望返回 {} 或者 [] 类型,目前无返回值`), !1);
|
|
2566
2567
|
}
|
|
2567
2568
|
/**
|
|
2568
2569
|
* 销毁定时器和队列
|
|
@@ -2590,12 +2591,12 @@ class br {
|
|
|
2590
2591
|
});
|
|
2591
2592
|
}
|
|
2592
2593
|
initDevice() {
|
|
2593
|
-
const { screen:
|
|
2594
|
+
const { screen: n } = Nt(), { clientWidth: t, clientHeight: r } = document.documentElement, { width: o, height: a, colorDepth: s, pixelDepth: c } = n;
|
|
2594
2595
|
let i = tt(dt);
|
|
2595
2596
|
i || (i = `t_${We()}`, document.cookie = `${dt}=${i};path=/;`), this.device = {
|
|
2596
2597
|
clientHeight: r,
|
|
2597
2598
|
// 网页可见区高度
|
|
2598
|
-
clientWidth:
|
|
2599
|
+
clientWidth: t,
|
|
2599
2600
|
// 网页可见区宽度
|
|
2600
2601
|
colorDepth: s,
|
|
2601
2602
|
// 显示屏幕调色板的比特深度
|
|
@@ -2617,8 +2618,8 @@ class br {
|
|
|
2617
2618
|
* 初始化 base 数据
|
|
2618
2619
|
*/
|
|
2619
2620
|
initBase() {
|
|
2620
|
-
const
|
|
2621
|
-
let
|
|
2621
|
+
const n = ur();
|
|
2622
|
+
let t = "";
|
|
2622
2623
|
this.base = Pt(() => ({
|
|
2623
2624
|
...this.device,
|
|
2624
2625
|
userUuid: d.value.userUuid,
|
|
@@ -2627,22 +2628,22 @@ class br {
|
|
|
2627
2628
|
appName: d.value.appName,
|
|
2628
2629
|
appCode: d.value.appCode,
|
|
2629
2630
|
pageId: this.pageId,
|
|
2630
|
-
sessionId:
|
|
2631
|
+
sessionId: n,
|
|
2631
2632
|
sdkVersion: An,
|
|
2632
|
-
ip:
|
|
2633
|
-
})), !
|
|
2634
|
-
this.base.value.ip = r[0],
|
|
2633
|
+
ip: t
|
|
2634
|
+
})), !Ue && Wt().then((r) => {
|
|
2635
|
+
this.base.value.ip = r[0], t = r[0];
|
|
2635
2636
|
});
|
|
2636
2637
|
}
|
|
2637
2638
|
/**
|
|
2638
2639
|
* 初始化sdk中给用户的唯一标识
|
|
2639
2640
|
*/
|
|
2640
2641
|
initSdkUserUuid() {
|
|
2641
|
-
return
|
|
2642
|
+
return Ue ? Promise.resolve().then(() => {
|
|
2642
2643
|
this.sdkUserUuid = "unit-test-id", d.value.sdkUserUuid = "unit-test-id";
|
|
2643
|
-
}) : cr({}).then((
|
|
2644
|
-
const
|
|
2645
|
-
this.sdkUserUuid =
|
|
2644
|
+
}) : cr({}).then((n) => n.get()).then((n) => {
|
|
2645
|
+
const t = n.visitorId;
|
|
2646
|
+
this.sdkUserUuid = t, d.value.sdkUserUuid = t;
|
|
2646
2647
|
});
|
|
2647
2648
|
}
|
|
2648
2649
|
}
|
|
@@ -2658,13 +2659,13 @@ class Er {
|
|
|
2658
2659
|
init() {
|
|
2659
2660
|
b.addEvent({
|
|
2660
2661
|
type: f.OFFLINE,
|
|
2661
|
-
callback: (
|
|
2662
|
-
|
|
2662
|
+
callback: (n) => {
|
|
2663
|
+
n.type === "offline" && (ae("网络断开"), this.onLine = !1);
|
|
2663
2664
|
}
|
|
2664
2665
|
}), b.addEvent({
|
|
2665
2666
|
type: f.ONLINE,
|
|
2666
|
-
callback: (
|
|
2667
|
-
|
|
2667
|
+
callback: (n) => {
|
|
2668
|
+
n.type === "online" && (ae("网络连接"), this.onLine = !0);
|
|
2668
2669
|
}
|
|
2669
2670
|
});
|
|
2670
2671
|
}
|
|
@@ -2684,9 +2685,9 @@ class Rt {
|
|
|
2684
2685
|
}
|
|
2685
2686
|
init() {
|
|
2686
2687
|
this.closeCallback = Qt({
|
|
2687
|
-
emit: (
|
|
2688
|
+
emit: (n, t) => {
|
|
2688
2689
|
const r = this.eventList[this.eventList.length - 1];
|
|
2689
|
-
r.eventList.push(
|
|
2690
|
+
r.eventList.push(n), t && (this.eventList.length > 0 && (this.eventList[this.eventList.length - 1].scope = r.scope + R()), this.eventList.length > wr && this.eventList.shift(), this.eventList.push({ scope: `${R()}-`, eventList: [] }));
|
|
2690
2691
|
},
|
|
2691
2692
|
recordCanvas: !0,
|
|
2692
2693
|
checkoutEveryNms: Lr
|
|
@@ -2698,8 +2699,8 @@ class Rt {
|
|
|
2698
2699
|
}
|
|
2699
2700
|
}
|
|
2700
2701
|
function Rr() {
|
|
2701
|
-
$t(d, (e,
|
|
2702
|
-
e.recordScreen !==
|
|
2702
|
+
$t(d, (e, n) => {
|
|
2703
|
+
e.recordScreen !== n.recordScreen && (e.recordScreen ? $ = new Rt() : ($?.close(), $ = void 0));
|
|
2703
2704
|
}), $ = d.value.recordScreen ? new Rt() : void 0;
|
|
2704
2705
|
}
|
|
2705
2706
|
function Ar() {
|
|
@@ -2707,16 +2708,16 @@ function Ar() {
|
|
|
2707
2708
|
}
|
|
2708
2709
|
function Ir(e) {
|
|
2709
2710
|
if (!e) return e;
|
|
2710
|
-
const
|
|
2711
|
+
const n = typeof e != "string" && typeof e != "number" ? JSON.stringify(e) : e, t = Ae.encode(n), r = xt.gzip(t), o = Array.from(r);
|
|
2711
2712
|
let a = "";
|
|
2712
2713
|
return o.forEach((s) => {
|
|
2713
2714
|
a += String.fromCharCode(s);
|
|
2714
2715
|
}), Ae.btoa(a);
|
|
2715
2716
|
}
|
|
2716
2717
|
function kr(e) {
|
|
2717
|
-
const
|
|
2718
|
+
const t = Ae.atob(e).split("").map(function(l) {
|
|
2718
2719
|
return l.charCodeAt(0);
|
|
2719
|
-
}), r = new Uint8Array(
|
|
2720
|
+
}), r = new Uint8Array(t), o = xt.ungzip(r);
|
|
2720
2721
|
let a = "";
|
|
2721
2722
|
const s = 8 * 1024;
|
|
2722
2723
|
let c;
|
|
@@ -2754,9 +2755,9 @@ class Pr {
|
|
|
2754
2755
|
);
|
|
2755
2756
|
}
|
|
2756
2757
|
proxyAddCacheErrorA() {
|
|
2757
|
-
let
|
|
2758
|
-
if (!
|
|
2759
|
-
const
|
|
2758
|
+
let n = this.cacheErrorA.length;
|
|
2759
|
+
if (!n) return;
|
|
2760
|
+
const t = Oe(this.cacheErrorA, ...De), r = t.filter((a) => a.length < Le), o = t.filter((a) => a.length >= Le);
|
|
2760
2761
|
if (r.length && T.emit(r.flat(1 / 0)), o.length) {
|
|
2761
2762
|
const a = [];
|
|
2762
2763
|
o.forEach((s) => {
|
|
@@ -2764,17 +2765,17 @@ class Pr {
|
|
|
2764
2765
|
c.batchError = !0, c.batchErrorLength = s.length, c.batchErrorLastHappenTime = s[s.length - 1].triggerTime, a.push(c);
|
|
2765
2766
|
}), this.cacheErrorB.push(...a), this.throttleProxyAddCacheErrorB();
|
|
2766
2767
|
}
|
|
2767
|
-
for (;
|
|
2768
|
+
for (; n--; )
|
|
2768
2769
|
this.cacheErrorA.shift();
|
|
2769
2770
|
}
|
|
2770
2771
|
proxyAddCacheErrorB() {
|
|
2771
|
-
let
|
|
2772
|
-
if (!
|
|
2773
|
-
const
|
|
2774
|
-
for (;
|
|
2772
|
+
let n = this.cacheErrorB.length;
|
|
2773
|
+
if (!n) return;
|
|
2774
|
+
const t = Oe(this.cacheErrorB, ...De);
|
|
2775
|
+
for (; n--; )
|
|
2775
2776
|
this.cacheErrorB.shift();
|
|
2776
2777
|
const r = [];
|
|
2777
|
-
|
|
2778
|
+
t.forEach((o) => {
|
|
2778
2779
|
const a = o[0];
|
|
2779
2780
|
o.length > 1 && (a.batchErrorLength = o.reduce(
|
|
2780
2781
|
(s, c) => s += c.batchErrorLength,
|
|
@@ -2787,7 +2788,7 @@ class Pr {
|
|
|
2787
2788
|
* 用户突然关闭页面时调用此方法集成错误
|
|
2788
2789
|
*/
|
|
2789
2790
|
sendAllCacheError() {
|
|
2790
|
-
const
|
|
2791
|
+
const n = this.cacheErrorA.concat(this.cacheErrorB), t = Oe(n, ...De), r = t.filter((a) => a.length < Le), o = t.filter((a) => a.length >= Le);
|
|
2791
2792
|
if (r.length && T.emit(r.flat(1 / 0), !0), o.length) {
|
|
2792
2793
|
const a = [];
|
|
2793
2794
|
o.forEach((s) => {
|
|
@@ -2796,8 +2797,8 @@ class Pr {
|
|
|
2796
2797
|
}), T.emit(a, !0);
|
|
2797
2798
|
}
|
|
2798
2799
|
}
|
|
2799
|
-
pushCacheErrorA(
|
|
2800
|
-
this.cacheErrorA.push(
|
|
2800
|
+
pushCacheErrorA(n) {
|
|
2801
|
+
this.cacheErrorA.push(n), this.throttleProxyAddCacheErrorA(), this.cacheErrorA.length >= 50 && (this.proxyAddCacheErrorA(), this.proxyAddCacheErrorB());
|
|
2801
2802
|
}
|
|
2802
2803
|
}
|
|
2803
2804
|
let ot;
|
|
@@ -2805,30 +2806,30 @@ function xr() {
|
|
|
2805
2806
|
ot = new Pr();
|
|
2806
2807
|
}
|
|
2807
2808
|
function Nr(e) {
|
|
2808
|
-
return e.map((
|
|
2809
|
-
if (
|
|
2810
|
-
if (
|
|
2811
|
-
if (typeof
|
|
2812
|
-
if (typeof
|
|
2813
|
-
if (typeof
|
|
2814
|
-
return `[Function: ${
|
|
2815
|
-
if (
|
|
2816
|
-
return `${
|
|
2817
|
-
` +
|
|
2818
|
-
if (typeof
|
|
2809
|
+
return e.map((t) => {
|
|
2810
|
+
if (t === null) return "null";
|
|
2811
|
+
if (t === void 0) return "undefined";
|
|
2812
|
+
if (typeof t == "string") return t;
|
|
2813
|
+
if (typeof t == "number" || typeof t == "boolean") return String(t);
|
|
2814
|
+
if (typeof t == "function")
|
|
2815
|
+
return `[Function: ${t.name || "anonymous"}]`;
|
|
2816
|
+
if (t instanceof Error)
|
|
2817
|
+
return `${t.name}: ${t.message}${t.stack ? `
|
|
2818
|
+
` + t.stack : ""}`;
|
|
2819
|
+
if (typeof t == "object")
|
|
2819
2820
|
try {
|
|
2820
|
-
return JSON.stringify(
|
|
2821
|
+
return JSON.stringify(t, null, 2);
|
|
2821
2822
|
} catch {
|
|
2822
|
-
return
|
|
2823
|
+
return t.toString();
|
|
2823
2824
|
}
|
|
2824
|
-
return String(
|
|
2825
|
+
return String(t);
|
|
2825
2826
|
}).join(" | ");
|
|
2826
2827
|
}
|
|
2827
2828
|
function At(e) {
|
|
2828
|
-
const { stack:
|
|
2829
|
-
if (
|
|
2830
|
-
const o = /^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/, a = /^\s*([^@]*)@(.+?):(\d+):(\d+)$/, s =
|
|
2831
|
-
new RegExp(`^[\\w\\s:]*${
|
|
2829
|
+
const { stack: n = "", message: t = "" } = e, r = { eventId: O.CODE, errMessage: t, errStack: n };
|
|
2830
|
+
if (n) {
|
|
2831
|
+
const o = /^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/, a = /^\s*([^@]*)@(.+?):(\d+):(\d+)$/, s = n.replace(
|
|
2832
|
+
new RegExp(`^[\\w\\s:]*${t}
|
|
2832
2833
|
`),
|
|
2833
2834
|
""
|
|
2834
2835
|
), i = Mt(
|
|
@@ -2858,10 +2859,10 @@ function At(e) {
|
|
|
2858
2859
|
}
|
|
2859
2860
|
function Qe(e) {
|
|
2860
2861
|
if (e instanceof Error) {
|
|
2861
|
-
const { message:
|
|
2862
|
+
const { message: n, stack: t, lineNumber: r, fileName: o, columnNumber: a } = e;
|
|
2862
2863
|
return o ? {
|
|
2863
|
-
errMessage:
|
|
2864
|
-
errStack:
|
|
2864
|
+
errMessage: n,
|
|
2865
|
+
errStack: t,
|
|
2865
2866
|
eventId: O.CODE,
|
|
2866
2867
|
line: r,
|
|
2867
2868
|
// 不稳定属性 - 在某些浏览器可能是undefined,被废弃了
|
|
@@ -2879,25 +2880,18 @@ function Fr(e) {
|
|
|
2879
2880
|
function It(e) {
|
|
2880
2881
|
if (Fr(e))
|
|
2881
2882
|
return { eventId: O.CODE, ...Qe(e.reason) };
|
|
2882
|
-
const { target:
|
|
2883
|
-
if (
|
|
2884
|
-
const
|
|
2885
|
-
initiatorType:
|
|
2883
|
+
const { target: n } = e;
|
|
2884
|
+
if (n instanceof HTMLElement && n.nodeType === 1) {
|
|
2885
|
+
const t = {
|
|
2886
|
+
initiatorType: n.nodeName.toLowerCase(),
|
|
2886
2887
|
eventId: O.RESOURCE,
|
|
2887
2888
|
requestUrl: ""
|
|
2888
2889
|
};
|
|
2889
|
-
|
|
2890
|
-
case "link":
|
|
2891
|
-
n.requestUrl = t.href;
|
|
2892
|
-
break;
|
|
2893
|
-
default:
|
|
2894
|
-
n.requestUrl = t.currentSrc || t.src;
|
|
2895
|
-
}
|
|
2896
|
-
return n;
|
|
2890
|
+
return n.nodeName.toLowerCase() === "link" ? t.requestUrl = n.href : t.requestUrl = n.currentSrc || n.src, t;
|
|
2897
2891
|
}
|
|
2898
2892
|
if (e.error) {
|
|
2899
|
-
const
|
|
2900
|
-
return
|
|
2893
|
+
const t = e.error;
|
|
2894
|
+
return t.fileName = t.filename || e.filename, t.columnNumber = t.colno || e.colno, t.lineNumber = t.lineno || e.lineno, { eventId: O.CODE, ...Qe(t) };
|
|
2901
2895
|
}
|
|
2902
2896
|
return {
|
|
2903
2897
|
eventId: O.CODE,
|
|
@@ -2909,23 +2903,23 @@ function It(e) {
|
|
|
2909
2903
|
}
|
|
2910
2904
|
function Xe(e) {
|
|
2911
2905
|
if (!d.value.ignoreErrors.length) return !1;
|
|
2912
|
-
let
|
|
2913
|
-
return
|
|
2906
|
+
let n = e.errMessage || e.message;
|
|
2907
|
+
return n ? (n = String(n), d.value.ignoreErrors.some((t) => et(t) ? t.test(n) ? (ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`), !0) : !1 : n === t ? (ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`), !0) : !1)) : !1;
|
|
2914
2908
|
}
|
|
2915
2909
|
function Mr() {
|
|
2916
2910
|
return JSON.parse(
|
|
2917
2911
|
JSON.stringify(Ar())
|
|
2918
|
-
).slice(-2).map((
|
|
2912
|
+
).slice(-2).map((n) => n.eventList).flat();
|
|
2919
2913
|
}
|
|
2920
|
-
function Re(e,
|
|
2921
|
-
const
|
|
2914
|
+
function Re(e, n = !1) {
|
|
2915
|
+
const t = {
|
|
2922
2916
|
...e,
|
|
2923
2917
|
eventType: V.ERROR,
|
|
2924
2918
|
recordscreen: d.value.recordScreen ? Ir(Mr()) : null,
|
|
2925
2919
|
triggerPageUrl: F(),
|
|
2926
2920
|
triggerTime: R()
|
|
2927
2921
|
};
|
|
2928
|
-
d.value.scopeError ? ot.pushCacheErrorA(
|
|
2922
|
+
d.value.scopeError ? ot.pushCacheErrorA(t) : T.emit(t, n);
|
|
2929
2923
|
}
|
|
2930
2924
|
function Vr() {
|
|
2931
2925
|
d.value.error.core && (d.value.scopeError && (xr(), b.addEvent({
|
|
@@ -2936,25 +2930,25 @@ function Vr() {
|
|
|
2936
2930
|
})), b.addEvent({
|
|
2937
2931
|
type: f.ERROR,
|
|
2938
2932
|
callback: (e) => {
|
|
2939
|
-
const
|
|
2940
|
-
Xe(
|
|
2933
|
+
const n = It(e);
|
|
2934
|
+
Xe(n) || Re(n);
|
|
2941
2935
|
}
|
|
2942
2936
|
}), b.addEvent({
|
|
2943
2937
|
type: f.UNHANDLEDREJECTION,
|
|
2944
2938
|
callback: (e) => {
|
|
2945
|
-
const
|
|
2946
|
-
Xe(
|
|
2939
|
+
const n = It(e);
|
|
2940
|
+
Xe(n) || Re(n);
|
|
2947
2941
|
}
|
|
2948
2942
|
}), b.addEvent({
|
|
2949
2943
|
type: f.CONSOLEERROR,
|
|
2950
2944
|
callback: (e) => {
|
|
2951
|
-
const
|
|
2952
|
-
Xe(
|
|
2945
|
+
const n = Qe(e);
|
|
2946
|
+
Xe(n) || Re({ eventId: O.CODE, ...n });
|
|
2953
2947
|
}
|
|
2954
2948
|
}));
|
|
2955
2949
|
}
|
|
2956
|
-
function it(e = {},
|
|
2957
|
-
Re(e,
|
|
2950
|
+
function it(e = {}, n = !1) {
|
|
2951
|
+
Re(e, n);
|
|
2958
2952
|
}
|
|
2959
2953
|
function Hr() {
|
|
2960
2954
|
b.removeEvents([
|
|
@@ -2963,22 +2957,22 @@ function Hr() {
|
|
|
2963
2957
|
f.CONSOLEERROR
|
|
2964
2958
|
]);
|
|
2965
2959
|
}
|
|
2966
|
-
function
|
|
2967
|
-
return e.find((
|
|
2960
|
+
function je(e, n) {
|
|
2961
|
+
return e.find((t) => t.hasAttribute && t.hasAttribute(n));
|
|
2968
2962
|
}
|
|
2969
2963
|
function kt(e) {
|
|
2970
2964
|
if (e.length > 0) {
|
|
2971
|
-
const
|
|
2965
|
+
const n = ["em", "b", "strong", "span", "img", "i", "code"];
|
|
2972
2966
|
return e.filter(
|
|
2973
|
-
({ tagName: r }) =>
|
|
2967
|
+
({ tagName: r }) => n.indexOf(r.toLowerCase()) >= 0
|
|
2974
2968
|
).length === e.length;
|
|
2975
2969
|
}
|
|
2976
2970
|
return !0;
|
|
2977
2971
|
}
|
|
2978
|
-
function Bt(e,
|
|
2979
|
-
if (!e) return
|
|
2980
|
-
const
|
|
2981
|
-
return !
|
|
2972
|
+
function Bt(e, n = "") {
|
|
2973
|
+
if (!e) return n;
|
|
2974
|
+
const t = e.parentElement, { id: r } = e, o = e.tagName.toLowerCase(), a = n ? `>${n}` : "";
|
|
2975
|
+
return !t || t === document.documentElement || t === document.body ? `${o}${a}` : r ? `#${r}${a}` : Bt(t, `${o}${a}`);
|
|
2982
2976
|
}
|
|
2983
2977
|
class Dr {
|
|
2984
2978
|
eventId = "";
|
|
@@ -2999,9 +2993,9 @@ class Dr {
|
|
|
2999
2993
|
// 被点击元素的层级
|
|
3000
2994
|
triggerTime = -1;
|
|
3001
2995
|
// 事件发生时间
|
|
3002
|
-
constructor(
|
|
3003
|
-
Object.keys(
|
|
3004
|
-
fe(
|
|
2996
|
+
constructor(n = {}) {
|
|
2997
|
+
Object.keys(n).forEach((t) => {
|
|
2998
|
+
fe(t, n) && (this[t] = n[t] || null);
|
|
3005
2999
|
});
|
|
3006
3000
|
}
|
|
3007
3001
|
}
|
|
@@ -3009,32 +3003,32 @@ function Xr() {
|
|
|
3009
3003
|
b.addEvent({
|
|
3010
3004
|
type: f.CLICK,
|
|
3011
3005
|
callback: (e) => {
|
|
3012
|
-
const
|
|
3006
|
+
const n = new Dr({
|
|
3013
3007
|
eventType: V.CLICK
|
|
3014
|
-
}),
|
|
3008
|
+
}), t = e.composedPath() ? e.composedPath() : e.target ? jr(e.target) : [], r = t.find(
|
|
3015
3009
|
(i) => i.hasAttribute && (i.hasAttribute("data-warden-container") || i.hasAttribute("data-warden-event-id") || i.hasAttribute("data-warden-title"))
|
|
3016
3010
|
);
|
|
3017
3011
|
if (!r) return;
|
|
3018
3012
|
const { scrollTop: o, scrollLeft: a } = document.documentElement, { top: s, left: c } = e.target.getBoundingClientRect();
|
|
3019
|
-
|
|
3013
|
+
n.x = c + a, n.y = s + o, n.triggerTime = R(), n.triggerPageUrl = F(), n.title = Ur(r), n.eventId = Zr(t), n.params = Yr(t), n.elementPath = Bt(r).slice(-128), T.emit(n);
|
|
3020
3014
|
}
|
|
3021
3015
|
});
|
|
3022
3016
|
}
|
|
3023
|
-
function
|
|
3017
|
+
function jr(e, n = { includeSelf: !0, order: "asc" }) {
|
|
3024
3018
|
if (!e) return [];
|
|
3025
|
-
const { includeSelf:
|
|
3026
|
-
let o =
|
|
3019
|
+
const { includeSelf: t, order: r } = n;
|
|
3020
|
+
let o = t ? e : e.parentElement, a = [];
|
|
3027
3021
|
for (; o; )
|
|
3028
3022
|
a = r === "asc" ? a.concat(o) : [o].concat(a), o = o.parentElement;
|
|
3029
3023
|
return a;
|
|
3030
3024
|
}
|
|
3031
|
-
function
|
|
3032
|
-
const
|
|
3033
|
-
if (
|
|
3034
|
-
let
|
|
3035
|
-
for (;
|
|
3036
|
-
|
|
3037
|
-
const r = Tt(
|
|
3025
|
+
function Ur(e) {
|
|
3026
|
+
const n = Tt(e);
|
|
3027
|
+
if (n) return n;
|
|
3028
|
+
let t = e.parentElement;
|
|
3029
|
+
for (; t && t !== document.body && !t.hasAttribute("data-warden-container"); )
|
|
3030
|
+
t = t.parentElement;
|
|
3031
|
+
const r = Tt(t);
|
|
3038
3032
|
if (r) return r;
|
|
3039
3033
|
const { tagName: o } = e;
|
|
3040
3034
|
return !e.hasChildNodes() || o.toLowerCase() === "svg" ? Wr(e) : Br(e);
|
|
@@ -3043,33 +3037,33 @@ function Tt(e) {
|
|
|
3043
3037
|
return e ? e.hasAttribute("data-warden-title") ? e.getAttribute("data-warden-title") : e.title : "";
|
|
3044
3038
|
}
|
|
3045
3039
|
function Wr(e) {
|
|
3046
|
-
const { tagName:
|
|
3047
|
-
if (
|
|
3048
|
-
if (
|
|
3040
|
+
const { tagName: n, textContent: t } = e;
|
|
3041
|
+
if (n === "IMG") return e.getAttribute("alt") || null;
|
|
3042
|
+
if (n === "svg") {
|
|
3049
3043
|
const r = [...Array(e.children)].find((o) => o.tagName === "use");
|
|
3050
3044
|
if (r) return r.getAttribute("xlink:href") || null;
|
|
3051
3045
|
}
|
|
3052
|
-
return
|
|
3046
|
+
return t;
|
|
3053
3047
|
}
|
|
3054
3048
|
function Br(e) {
|
|
3055
|
-
const { tagName:
|
|
3056
|
-
if (
|
|
3057
|
-
return kt([...Array.from(e.children)]) ?
|
|
3058
|
-
if (
|
|
3049
|
+
const { tagName: n, textContent: t } = e;
|
|
3050
|
+
if (n === "A")
|
|
3051
|
+
return kt([...Array.from(e.children)]) ? t : e.getAttribute("href") || null;
|
|
3052
|
+
if (n === "BUTTON") {
|
|
3059
3053
|
const o = e.getAttribute("name"), a = kt([...Array.from(e.children)]);
|
|
3060
|
-
return o || a ?
|
|
3054
|
+
return o || a ? t : e.getAttribute("href") || null;
|
|
3061
3055
|
}
|
|
3062
3056
|
const { length: r } = [...Array.from(e.children)].filter(
|
|
3063
3057
|
() => e.hasChildNodes()
|
|
3064
3058
|
);
|
|
3065
|
-
return r > 0 ? null :
|
|
3059
|
+
return r > 0 ? null : t;
|
|
3066
3060
|
}
|
|
3067
3061
|
function Zr(e = []) {
|
|
3068
|
-
const
|
|
3069
|
-
if (
|
|
3070
|
-
const
|
|
3071
|
-
if (
|
|
3072
|
-
const r =
|
|
3062
|
+
const n = je(e, "data-warden-event-id");
|
|
3063
|
+
if (n) return n.getAttribute("data-warden-event-id");
|
|
3064
|
+
const t = je(e, "title");
|
|
3065
|
+
if (t) return t.getAttribute("title");
|
|
3066
|
+
const r = je(e, "data-warden-container");
|
|
3073
3067
|
if (r) {
|
|
3074
3068
|
if (r.getAttribute("data-warden-event-id"))
|
|
3075
3069
|
return r.getAttribute("data-warden-event-id");
|
|
@@ -3081,13 +3075,13 @@ function Zr(e = []) {
|
|
|
3081
3075
|
return e[0].tagName.toLowerCase();
|
|
3082
3076
|
}
|
|
3083
3077
|
function Yr(e = []) {
|
|
3084
|
-
const
|
|
3085
|
-
let
|
|
3078
|
+
const n = /^data-warden-/;
|
|
3079
|
+
let t, r = -1;
|
|
3086
3080
|
for (let i = 0; i < e.length; i++) {
|
|
3087
3081
|
const u = e[i];
|
|
3088
|
-
if (
|
|
3089
|
-
(h) => h.nodeName.match(
|
|
3090
|
-
),
|
|
3082
|
+
if (t = (u && u.attributes && Array.from(u.attributes) || []).find(
|
|
3083
|
+
(h) => h.nodeName.match(n) ? h.nodeName.match(n) : h.nodeName.indexOf("data-warden-container") !== -1
|
|
3084
|
+
), t) {
|
|
3091
3085
|
r = i;
|
|
3092
3086
|
break;
|
|
3093
3087
|
}
|
|
@@ -3096,14 +3090,14 @@ function Yr(e = []) {
|
|
|
3096
3090
|
const o = e[r], a = Array.from(o.attributes) || [], s = {}, c = ["container", "title", "event-id"];
|
|
3097
3091
|
return a.forEach((i) => {
|
|
3098
3092
|
if (i.nodeName.indexOf("data-warden") < 0) return;
|
|
3099
|
-
const u = i.nodeName.replace(
|
|
3093
|
+
const u = i.nodeName.replace(n, "");
|
|
3100
3094
|
c.includes(u) || (s[u] = i.nodeValue);
|
|
3101
3095
|
}), s;
|
|
3102
3096
|
}
|
|
3103
3097
|
function Gr() {
|
|
3104
3098
|
d.value.event.core && Xr();
|
|
3105
3099
|
}
|
|
3106
|
-
function _r(e = {},
|
|
3100
|
+
function _r(e = {}, n = !1) {
|
|
3107
3101
|
T.emit(
|
|
3108
3102
|
{
|
|
3109
3103
|
...e,
|
|
@@ -3111,7 +3105,7 @@ function _r(e = {}, t = !1) {
|
|
|
3111
3105
|
triggerTime: R(),
|
|
3112
3106
|
triggerPageUrl: F()
|
|
3113
3107
|
},
|
|
3114
|
-
|
|
3108
|
+
n
|
|
3115
3109
|
);
|
|
3116
3110
|
}
|
|
3117
3111
|
function zr() {
|
|
@@ -3143,12 +3137,12 @@ const Q = {
|
|
|
3143
3137
|
workerStart: 0
|
|
3144
3138
|
};
|
|
3145
3139
|
function Ct(e) {
|
|
3146
|
-
const
|
|
3140
|
+
const n = ["img", "script", "link", "audio", "video", "css"], t = e.getEntriesByType(
|
|
3147
3141
|
"resource"
|
|
3148
3142
|
), r = [];
|
|
3149
|
-
return
|
|
3143
|
+
return t.forEach((o) => {
|
|
3150
3144
|
const { initiatorType: a = "" } = o;
|
|
3151
|
-
if (
|
|
3145
|
+
if (n.indexOf(a.toLowerCase()) < 0) return;
|
|
3152
3146
|
if (we.length) {
|
|
3153
3147
|
const c = we.findIndex(
|
|
3154
3148
|
(i) => i.src === o.name
|
|
@@ -3176,9 +3170,9 @@ function Ct(e) {
|
|
|
3176
3170
|
let pe = null, ve = null;
|
|
3177
3171
|
function qr() {
|
|
3178
3172
|
const e = ["img", "script", "link"];
|
|
3179
|
-
pe = new MutationObserver((
|
|
3180
|
-
for (let
|
|
3181
|
-
const r = R(), { addedNodes: o = [] } = t
|
|
3173
|
+
pe = new MutationObserver((n) => {
|
|
3174
|
+
for (let t = 0; t < n.length; t += 1) {
|
|
3175
|
+
const r = R(), { addedNodes: o = [] } = n[t];
|
|
3182
3176
|
o.forEach((a) => {
|
|
3183
3177
|
const { nodeName: s } = a;
|
|
3184
3178
|
e.indexOf(s.toLowerCase()) !== -1 && (D(a, f.LOAD, function() {
|
|
@@ -3217,35 +3211,35 @@ function qr() {
|
|
|
3217
3211
|
});
|
|
3218
3212
|
}
|
|
3219
3213
|
function $r() {
|
|
3220
|
-
const e = (
|
|
3221
|
-
const
|
|
3222
|
-
C.firstScreen ? C.firstScreen.push({ ...
|
|
3214
|
+
const e = (n) => {
|
|
3215
|
+
const t = { ...n, triggerPageUrl: F() };
|
|
3216
|
+
C.firstScreen ? C.firstScreen.push({ ...t }) : C.firstScreen = [{ ...t }], T.emit(
|
|
3223
3217
|
ce({
|
|
3224
|
-
...
|
|
3218
|
+
...t,
|
|
3225
3219
|
eventType: V.PERFORMANCE,
|
|
3226
3220
|
eventId: O.PAGE
|
|
3227
3221
|
})
|
|
3228
3222
|
);
|
|
3229
3223
|
};
|
|
3230
|
-
new PerformanceObserver((
|
|
3231
|
-
const r =
|
|
3232
|
-
r && (
|
|
3233
|
-
}).observe({ type: "paint", buffered: !0 }), new PerformanceObserver((
|
|
3234
|
-
const r =
|
|
3235
|
-
r && (
|
|
3224
|
+
new PerformanceObserver((n, t) => {
|
|
3225
|
+
const r = n.getEntriesByName("first-contentful-paint")[0];
|
|
3226
|
+
r && (t.disconnect(), e({ fcp: r.startTime }));
|
|
3227
|
+
}).observe({ type: "paint", buffered: !0 }), new PerformanceObserver((n, t) => {
|
|
3228
|
+
const r = n.getEntriesByType("largest-contentful-paint").at(-1);
|
|
3229
|
+
r && (t.disconnect(), e({ lcp: r.startTime }));
|
|
3236
3230
|
}).observe({ type: "largest-contentful-paint", buffered: !0 });
|
|
3237
3231
|
}
|
|
3238
3232
|
function Qr() {
|
|
3239
|
-
const e = {}, { performance:
|
|
3240
|
-
let
|
|
3233
|
+
const e = {}, { performance: n } = p;
|
|
3234
|
+
let t = n.timing;
|
|
3241
3235
|
if (e.fmp = 0, Q.getEntriesByType) {
|
|
3242
|
-
const o =
|
|
3236
|
+
const o = n.getEntriesByType("paint");
|
|
3243
3237
|
if (o.length && (e.fmp = o[o.length - 1].startTime), Q.PerformanceNavigationTiming) {
|
|
3244
|
-
const a =
|
|
3245
|
-
a && (
|
|
3238
|
+
const a = n.getEntriesByType("navigation")[0];
|
|
3239
|
+
a && (t = a);
|
|
3246
3240
|
}
|
|
3247
3241
|
}
|
|
3248
|
-
e.fmp && Q.PerformanceNavigationTiming && (e.fmp -=
|
|
3242
|
+
e.fmp && Q.PerformanceNavigationTiming && (e.fmp -= t.fetchStart), e.whiteScreenTime = t.responseEnd - t.fetchStart, e.tti = t.domInteractive - t.fetchStart, e.ready = t.domContentLoadedEventEnd - t.fetchStart, e.loadTime = t.loadEventStart - t.fetchStart, e.firstByte = t.responseStart - t.domainLookupStart, e.dns = t.domainLookupEnd - t.domainLookupStart, e.dnsCache = t.domainLookupStart - t.fetchStart, e.tcp = t.connectEnd - t.connectStart, e.ttfb = t.responseStart - t.requestStart, e.trans = t.responseEnd - t.responseStart, e.dom = t.domInteractive - t.responseEnd, e.res = t.loadEventStart - t.domContentLoadedEventEnd, e.ssllink = t.connectEnd - t.secureConnectionStart, e.redirect = t.redirectEnd - t.redirectStart, e.unloadTime = t.unloadEventEnd - t.unloadEventStart;
|
|
3249
3243
|
const r = { ...e, triggerPageUrl: F() };
|
|
3250
3244
|
C.firstScreen ? C.firstScreen.push({ ...r }) : C.firstScreen = [{ ...r }], T.emit(
|
|
3251
3245
|
ce({
|
|
@@ -3266,14 +3260,14 @@ function Kr() {
|
|
|
3266
3260
|
}
|
|
3267
3261
|
}));
|
|
3268
3262
|
}
|
|
3269
|
-
function at(e = {},
|
|
3270
|
-
const
|
|
3263
|
+
function at(e = {}, n = !1) {
|
|
3264
|
+
const t = {
|
|
3271
3265
|
...e,
|
|
3272
3266
|
triggerTime: R(),
|
|
3273
3267
|
triggerPageUrl: F(),
|
|
3274
3268
|
eventType: V.PERFORMANCE
|
|
3275
3269
|
};
|
|
3276
|
-
T.emit(ce(
|
|
3270
|
+
T.emit(ce(t), n);
|
|
3277
3271
|
}
|
|
3278
3272
|
function eo() {
|
|
3279
3273
|
pe && (pe.disconnect(), pe = null), ve && (ve.disconnect(), ve = null);
|
|
@@ -3281,8 +3275,8 @@ function eo() {
|
|
|
3281
3275
|
function to() {
|
|
3282
3276
|
b.addEvent({
|
|
3283
3277
|
type: f.FETCH,
|
|
3284
|
-
callback: async (e,
|
|
3285
|
-
const { method: a = "GET", body: s = {} } =
|
|
3278
|
+
callback: async (e, n = {}, t, r, o = {}) => {
|
|
3279
|
+
const { method: a = "GET", body: s = {} } = n, { url: c, status: i, statusText: u } = t, l = String(a).toLocaleLowerCase();
|
|
3286
3280
|
Zt(c) || (i === 200 || i === 304 ? d.value.performance.server && at({
|
|
3287
3281
|
eventId: O.SERVER,
|
|
3288
3282
|
requestUrl: c,
|
|
@@ -3317,9 +3311,9 @@ class no {
|
|
|
3317
3311
|
// get请求的参数
|
|
3318
3312
|
triggerTime = -1;
|
|
3319
3313
|
// 请求发生时间
|
|
3320
|
-
constructor(
|
|
3321
|
-
Object.keys(
|
|
3322
|
-
fe(
|
|
3314
|
+
constructor(n = {}) {
|
|
3315
|
+
Object.keys(n).forEach((t) => {
|
|
3316
|
+
fe(t, n) && (this[t] = n[t] || null);
|
|
3323
3317
|
});
|
|
3324
3318
|
}
|
|
3325
3319
|
}
|
|
@@ -3327,14 +3321,14 @@ function ro() {
|
|
|
3327
3321
|
const e = new no();
|
|
3328
3322
|
b.addEvent({
|
|
3329
3323
|
type: f.XHROPEN,
|
|
3330
|
-
callback: (
|
|
3331
|
-
e.requestMethod = String(
|
|
3324
|
+
callback: (n, t) => {
|
|
3325
|
+
e.requestMethod = String(n).toLocaleLowerCase(), e.requestUrl = t, e.requestParams = Be(t);
|
|
3332
3326
|
}
|
|
3333
3327
|
}), b.addEvent({
|
|
3334
3328
|
type: f.XHRSEND,
|
|
3335
|
-
callback: (
|
|
3336
|
-
D(
|
|
3337
|
-
const { readyState: r, status: o, responseURL: a, statusText: s } =
|
|
3329
|
+
callback: (n, t) => {
|
|
3330
|
+
D(n, f.READYSTATECHANGE, function() {
|
|
3331
|
+
const { readyState: r, status: o, responseURL: a, statusText: s } = n, c = n.responseType === "" || n.responseType === "text" ? n.responseText : "";
|
|
3338
3332
|
if (r === 4) {
|
|
3339
3333
|
const i = a || e.requestUrl;
|
|
3340
3334
|
if (Zt(i)) return;
|
|
@@ -3345,7 +3339,7 @@ function ro() {
|
|
|
3345
3339
|
requestType: "xhr",
|
|
3346
3340
|
responseStatus: o,
|
|
3347
3341
|
duration: R() - e.triggerTime,
|
|
3348
|
-
params: e.requestMethod === "post" ?
|
|
3342
|
+
params: e.requestMethod === "post" ? t : e.requestParams
|
|
3349
3343
|
}) : d.value.error.server && it({
|
|
3350
3344
|
eventId: O.SERVER,
|
|
3351
3345
|
errMessage: s || c,
|
|
@@ -3353,7 +3347,7 @@ function ro() {
|
|
|
3353
3347
|
requestMethod: e.requestMethod,
|
|
3354
3348
|
requestType: "xhr",
|
|
3355
3349
|
responseStatus: o,
|
|
3356
|
-
params: e.requestMethod === "post" ?
|
|
3350
|
+
params: e.requestMethod === "post" ? t : e.requestParams
|
|
3357
3351
|
});
|
|
3358
3352
|
}
|
|
3359
3353
|
}), e.triggerTime = R();
|
|
@@ -3361,7 +3355,7 @@ function ro() {
|
|
|
3361
3355
|
});
|
|
3362
3356
|
}
|
|
3363
3357
|
function Zt(e) {
|
|
3364
|
-
return !d.value.ignoreRequest.length || !e ? !1 : d.value.ignoreRequest.some((
|
|
3358
|
+
return !d.value.ignoreRequest.length || !e ? !1 : d.value.ignoreRequest.some((n) => et(n) ? !!n.test(e) : e === n);
|
|
3365
3359
|
}
|
|
3366
3360
|
function oo() {
|
|
3367
3361
|
!d.value.performance.server && !d.value.error.server || (ro(), to());
|
|
@@ -3376,31 +3370,31 @@ function io() {
|
|
|
3376
3370
|
let K = F();
|
|
3377
3371
|
function ao() {
|
|
3378
3372
|
if (!d.value.pv.core) return;
|
|
3379
|
-
let e = !1,
|
|
3373
|
+
let e = !1, n = !1;
|
|
3380
3374
|
he({ referer: document.referrer }), b.addEvent({
|
|
3381
3375
|
type: f.HISTORYPUSHSTATE,
|
|
3382
3376
|
callback: () => {
|
|
3383
|
-
|
|
3377
|
+
n || (e = !1, he({ action: "navigation" }));
|
|
3384
3378
|
}
|
|
3385
3379
|
}), b.addEvent({
|
|
3386
3380
|
type: f.HISTORYREPLACESTATE,
|
|
3387
3381
|
callback: () => {
|
|
3388
|
-
|
|
3389
|
-
|
|
3382
|
+
n = !0, e = !1, he({ action: "navigation" }), setTimeout(() => {
|
|
3383
|
+
n = !1;
|
|
3390
3384
|
}, 100);
|
|
3391
3385
|
}
|
|
3392
3386
|
}), b.addEvent({
|
|
3393
3387
|
type: f.HASHCHANGE,
|
|
3394
3388
|
callback: () => {
|
|
3395
|
-
|
|
3389
|
+
n || (e || he(), e = !1);
|
|
3396
3390
|
}
|
|
3397
3391
|
}), b.addEvent({
|
|
3398
3392
|
type: f.POPSTATE,
|
|
3399
3393
|
callback: () => {
|
|
3400
|
-
if (!
|
|
3394
|
+
if (!n) {
|
|
3401
3395
|
if (p.location.hash !== "") {
|
|
3402
|
-
const
|
|
3403
|
-
if (p.location.href.slice(0, p.location.href.indexOf("#")) ===
|
|
3396
|
+
const t = K.indexOf("#") > 0 ? K.slice(0, K.indexOf("#")) : K;
|
|
3397
|
+
if (p.location.href.slice(0, p.location.href.indexOf("#")) === t)
|
|
3404
3398
|
return;
|
|
3405
3399
|
}
|
|
3406
3400
|
e = !0, he();
|
|
@@ -3409,15 +3403,15 @@ function ao() {
|
|
|
3409
3403
|
}), b.addEvent({
|
|
3410
3404
|
type: f.BEFOREUNLOAD,
|
|
3411
3405
|
callback: () => {
|
|
3412
|
-
const
|
|
3413
|
-
Object.values(ge).length > 0 &&
|
|
3406
|
+
const t = R() - Ke;
|
|
3407
|
+
Object.values(ge).length > 0 && t > 100 && T.emit({ ...ge, durationTime: t }, !0);
|
|
3414
3408
|
}
|
|
3415
3409
|
});
|
|
3416
3410
|
}
|
|
3417
3411
|
let Ke = R(), ge = {};
|
|
3418
3412
|
function he(e = {}) {
|
|
3419
|
-
const { referer:
|
|
3420
|
-
let a =
|
|
3413
|
+
const { referer: n = K, action: t, params: r, title: o } = e;
|
|
3414
|
+
let a = t;
|
|
3421
3415
|
a || (a = In[performance.navigation.type] || ""), setTimeout(
|
|
3422
3416
|
() => {
|
|
3423
3417
|
K = F();
|
|
@@ -3425,7 +3419,7 @@ function he(e = {}) {
|
|
|
3425
3419
|
eventType: V.PV,
|
|
3426
3420
|
eventId: le.pageId,
|
|
3427
3421
|
triggerPageUrl: F(),
|
|
3428
|
-
referer:
|
|
3422
|
+
referer: n,
|
|
3429
3423
|
params: r,
|
|
3430
3424
|
title: o || document.title,
|
|
3431
3425
|
action: a,
|
|
@@ -3441,7 +3435,7 @@ function he(e = {}) {
|
|
|
3441
3435
|
o ? 0 : 17
|
|
3442
3436
|
);
|
|
3443
3437
|
}
|
|
3444
|
-
function so(e = {},
|
|
3438
|
+
function so(e = {}, n = !1) {
|
|
3445
3439
|
T.emit(
|
|
3446
3440
|
{
|
|
3447
3441
|
referer: K,
|
|
@@ -3452,7 +3446,7 @@ function so(e = {}, t = !1) {
|
|
|
3452
3446
|
triggerPageUrl: F(),
|
|
3453
3447
|
triggerTime: R()
|
|
3454
3448
|
},
|
|
3455
|
-
|
|
3449
|
+
n
|
|
3456
3450
|
);
|
|
3457
3451
|
}
|
|
3458
3452
|
function co() {
|
|
@@ -3477,10 +3471,10 @@ class uo {
|
|
|
3477
3471
|
* 针对 threshold 生成不同监听对象 (不允许同一个dom被两个监听对象监听)
|
|
3478
3472
|
* @param threshold 阈值
|
|
3479
3473
|
*/
|
|
3480
|
-
initObserver(
|
|
3474
|
+
initObserver(n) {
|
|
3481
3475
|
return new IntersectionObserver(
|
|
3482
|
-
(
|
|
3483
|
-
|
|
3476
|
+
(t) => {
|
|
3477
|
+
t.forEach((r) => {
|
|
3484
3478
|
if (r.isIntersecting) {
|
|
3485
3479
|
const o = this.targetMap.find(
|
|
3486
3480
|
(a) => a.target === r.target
|
|
@@ -3499,18 +3493,18 @@ class uo {
|
|
|
3499
3493
|
},
|
|
3500
3494
|
{
|
|
3501
3495
|
...this.options,
|
|
3502
|
-
threshold:
|
|
3496
|
+
threshold: n
|
|
3503
3497
|
}
|
|
3504
3498
|
);
|
|
3505
3499
|
}
|
|
3506
3500
|
/**
|
|
3507
3501
|
* 发送事件
|
|
3508
3502
|
*/
|
|
3509
|
-
sendEvent(
|
|
3503
|
+
sendEvent(n) {
|
|
3510
3504
|
T.emit({
|
|
3511
3505
|
eventType: V.INTERSECTION,
|
|
3512
3506
|
triggerPageUrl: F(),
|
|
3513
|
-
...
|
|
3507
|
+
...n
|
|
3514
3508
|
});
|
|
3515
3509
|
}
|
|
3516
3510
|
/**
|
|
@@ -3518,8 +3512,8 @@ class uo {
|
|
|
3518
3512
|
* 分为初始加载和过程中加载
|
|
3519
3513
|
* @param params 附带的额外参数
|
|
3520
3514
|
*/
|
|
3521
|
-
observe(
|
|
3522
|
-
Pe(
|
|
3515
|
+
observe(n) {
|
|
3516
|
+
Pe(n).forEach((r) => {
|
|
3523
3517
|
const o = Pe(r.target);
|
|
3524
3518
|
Object.prototype.hasOwnProperty.call(this.ioMap, r.threshold) || (this.ioMap[r.threshold] = this.initObserver(r.threshold || 0.5)), o.forEach((a) => {
|
|
3525
3519
|
this.targetMap.findIndex(
|
|
@@ -3537,8 +3531,8 @@ class uo {
|
|
|
3537
3531
|
/**
|
|
3538
3532
|
* 对元素停止观察
|
|
3539
3533
|
*/
|
|
3540
|
-
unobserve(
|
|
3541
|
-
Pe(
|
|
3534
|
+
unobserve(n) {
|
|
3535
|
+
Pe(n).forEach((r) => {
|
|
3542
3536
|
const o = this.targetMap.findIndex(
|
|
3543
3537
|
(s) => s.target === r
|
|
3544
3538
|
);
|
|
@@ -3551,8 +3545,8 @@ class uo {
|
|
|
3551
3545
|
* 对所有元素停止观察
|
|
3552
3546
|
*/
|
|
3553
3547
|
disconnect() {
|
|
3554
|
-
for (const
|
|
3555
|
-
Object.prototype.hasOwnProperty.call(this.ioMap,
|
|
3548
|
+
for (const n in this.ioMap)
|
|
3549
|
+
Object.prototype.hasOwnProperty.call(this.ioMap, n) && this.ioMap[n].disconnect();
|
|
3556
3550
|
this.targetMap = [], this.ioMap = {};
|
|
3557
3551
|
}
|
|
3558
3552
|
}
|
|
@@ -3597,21 +3591,21 @@ function So() {
|
|
|
3597
3591
|
if (P("getFirstScreen"))
|
|
3598
3592
|
return { ...C.firstScreen };
|
|
3599
3593
|
}
|
|
3600
|
-
function Lo(e = {},
|
|
3594
|
+
function Lo(e = {}, n = !1) {
|
|
3601
3595
|
if (P("traceError"))
|
|
3602
|
-
return it(e,
|
|
3596
|
+
return it(e, n);
|
|
3603
3597
|
}
|
|
3604
|
-
function wo(e = {},
|
|
3598
|
+
function wo(e = {}, n = !1) {
|
|
3605
3599
|
if (P("tracePerformance"))
|
|
3606
|
-
return at(e,
|
|
3600
|
+
return at(e, n);
|
|
3607
3601
|
}
|
|
3608
|
-
function Ro(e = {},
|
|
3602
|
+
function Ro(e = {}, n = !1) {
|
|
3609
3603
|
if (P("traceCustomEvent"))
|
|
3610
|
-
return _r(e,
|
|
3604
|
+
return _r(e, n);
|
|
3611
3605
|
}
|
|
3612
|
-
function Ao(e = {},
|
|
3606
|
+
function Ao(e = {}, n = !1) {
|
|
3613
3607
|
if (P("tracePageView"))
|
|
3614
|
-
return so(e,
|
|
3608
|
+
return so(e, n);
|
|
3615
3609
|
}
|
|
3616
3610
|
function Io() {
|
|
3617
3611
|
return Wt().then((e) => e[0]);
|
|
@@ -3636,7 +3630,7 @@ function Po(e) {
|
|
|
3636
3630
|
function xo() {
|
|
3637
3631
|
return Ze(d.value);
|
|
3638
3632
|
}
|
|
3639
|
-
const
|
|
3633
|
+
const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3640
3634
|
__proto__: null,
|
|
3641
3635
|
afterSendData: vo,
|
|
3642
3636
|
beforePushEventList: mo,
|
|
@@ -3665,10 +3659,9 @@ function No(e) {
|
|
|
3665
3659
|
function jo() {
|
|
3666
3660
|
zr(), Hr(), io(), eo(), fo(), Tr(), co(), Yn(), T && T.destroy(), p.__webTracingInit__ = !1;
|
|
3667
3661
|
}
|
|
3668
|
-
function
|
|
3669
|
-
No(
|
|
3662
|
+
function Uo(e, n) {
|
|
3663
|
+
No(n);
|
|
3670
3664
|
}
|
|
3671
|
-
const Wo = { install: Fo };
|
|
3672
3665
|
export {
|
|
3673
3666
|
V as SEDNEVENTTYPES,
|
|
3674
3667
|
O as SENDID,
|
|
@@ -3676,9 +3669,8 @@ export {
|
|
|
3676
3669
|
vo as afterSendData,
|
|
3677
3670
|
mo as beforePushEventList,
|
|
3678
3671
|
po as beforeSendData,
|
|
3679
|
-
Wo as default,
|
|
3680
3672
|
jo as destroyTracing,
|
|
3681
|
-
|
|
3673
|
+
Xo as exportMethods,
|
|
3682
3674
|
Eo as getBaseInfo,
|
|
3683
3675
|
So as getFirstScreen,
|
|
3684
3676
|
Io as getIPs,
|
|
@@ -3686,6 +3678,7 @@ export {
|
|
|
3686
3678
|
yo as getSDKUserUuid,
|
|
3687
3679
|
bo as getUserUuid,
|
|
3688
3680
|
No as init,
|
|
3681
|
+
Uo as install,
|
|
3689
3682
|
Co as intersectionDisconnect,
|
|
3690
3683
|
ko as intersectionObserver,
|
|
3691
3684
|
To as intersectionUnobserve,
|