@getsupertab/supertab-js 3.62.0 → 3.63.0
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/dist/pkg/prod/{browser-ponyfill-D3YL7q5s.js → browser-ponyfill-BInwmdEs.js} +1 -1
- package/dist/pkg/prod/{index-YlXItIhH.js → index-DcJ4VvFK.js} +25381 -25377
- package/dist/pkg/prod/{sentry-DVkH9NYC.js → sentry-D1KSzuLN.js} +676 -681
- package/dist/pkg/prod/supertab.js +1 -1
- package/dist/pkg/prod/tailwind-DQ91VOPv.js +4 -0
- package/package.json +10 -11
- package/dist/pkg/prod/style-ChFYpYQG.js +0 -4
- package/dist/pkg/prod/tailwind-CtATFvk9.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const w = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = globalThis, Le = "10.
|
|
1
|
+
import { r as Xa, T as Ja, P as Qa, a as Za, V as ec } from "./index-DcJ4VvFK.js";
|
|
2
|
+
const w = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, N = globalThis, Le = "10.45.0";
|
|
3
3
|
function Tt() {
|
|
4
4
|
return _n(N), N;
|
|
5
5
|
}
|
|
@@ -11,7 +11,7 @@ function it(e, t, n = N) {
|
|
|
11
11
|
const r = n.__SENTRY__ = n.__SENTRY__ || {}, s = r[Le] = r[Le] || {};
|
|
12
12
|
return s[e] || (s[e] = t());
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const tc = [
|
|
15
15
|
"debug",
|
|
16
16
|
"info",
|
|
17
17
|
"warn",
|
|
@@ -19,7 +19,7 @@ const Za = [
|
|
|
19
19
|
"log",
|
|
20
20
|
"assert",
|
|
21
21
|
"trace"
|
|
22
|
-
],
|
|
22
|
+
], nc = "Sentry Logger ", tn = {};
|
|
23
23
|
function Fe(e) {
|
|
24
24
|
if (!("console" in N))
|
|
25
25
|
return e();
|
|
@@ -36,27 +36,27 @@ function Fe(e) {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function rc() {
|
|
40
40
|
Pr().enabled = !0;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function sc() {
|
|
43
43
|
Pr().enabled = !1;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function zi() {
|
|
46
46
|
return Pr().enabled;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ic(...e) {
|
|
49
49
|
Lr("log", ...e);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function oc(...e) {
|
|
52
52
|
Lr("warn", ...e);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ac(...e) {
|
|
55
55
|
Lr("error", ...e);
|
|
56
56
|
}
|
|
57
57
|
function Lr(e, ...t) {
|
|
58
|
-
w &&
|
|
59
|
-
N.console[e](`${
|
|
58
|
+
w && zi() && Fe(() => {
|
|
59
|
+
N.console[e](`${nc}[${e}]:`, ...t);
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
function Pr() {
|
|
@@ -64,19 +64,19 @@ function Pr() {
|
|
|
64
64
|
}
|
|
65
65
|
const S = {
|
|
66
66
|
/** Enable logging. */
|
|
67
|
-
enable:
|
|
67
|
+
enable: rc,
|
|
68
68
|
/** Disable logging. */
|
|
69
|
-
disable:
|
|
69
|
+
disable: sc,
|
|
70
70
|
/** Check if logging is enabled. */
|
|
71
|
-
isEnabled:
|
|
71
|
+
isEnabled: zi,
|
|
72
72
|
/** Log a message. */
|
|
73
|
-
log:
|
|
73
|
+
log: ic,
|
|
74
74
|
/** Log a warning. */
|
|
75
|
-
warn:
|
|
75
|
+
warn: oc,
|
|
76
76
|
/** Log an error. */
|
|
77
|
-
error:
|
|
78
|
-
},
|
|
79
|
-
function
|
|
77
|
+
error: ac
|
|
78
|
+
}, ji = 50, Pe = "?", Ss = /\(error: (.*)\)/, Es = /captureMessage|captureException/;
|
|
79
|
+
function qi(...e) {
|
|
80
80
|
const t = e.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
|
|
81
81
|
return (n, r = 0, s = 0) => {
|
|
82
82
|
const i = [], o = n.split(`
|
|
@@ -93,21 +93,21 @@ function ji(...e) {
|
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
if (i.length >=
|
|
96
|
+
if (i.length >= ji + s)
|
|
97
97
|
break;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
return
|
|
100
|
+
return uc(i.slice(s));
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
return Array.isArray(e) ?
|
|
103
|
+
function cc(e) {
|
|
104
|
+
return Array.isArray(e) ? qi(...e) : e;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function uc(e) {
|
|
107
107
|
if (!e.length)
|
|
108
108
|
return [];
|
|
109
109
|
const t = Array.from(e);
|
|
110
|
-
return /sentryWrapped/.test(Ut(t).function || "") && t.pop(), t.reverse(), Es.test(Ut(t).function || "") && (t.pop(), Es.test(Ut(t).function || "") && t.pop()), t.slice(0,
|
|
110
|
+
return /sentryWrapped/.test(Ut(t).function || "") && t.pop(), t.reverse(), Es.test(Ut(t).function || "") && (t.pop(), Es.test(Ut(t).function || "") && t.pop()), t.slice(0, ji).map((n) => ({
|
|
111
111
|
...n,
|
|
112
112
|
filename: n.filename || Ut(t).filename,
|
|
113
113
|
function: n.function || Pe
|
|
@@ -137,7 +137,7 @@ function bs(e) {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Vi(e) {
|
|
141
141
|
return "__v_isVNode" in e && e.__v_isVNode ? "[VueVNode]" : "[VueViewModel]";
|
|
142
142
|
}
|
|
143
143
|
const Yt = {}, vs = {};
|
|
@@ -171,11 +171,11 @@ Error:`,
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
let jn = null;
|
|
174
|
-
function
|
|
174
|
+
function lc(e) {
|
|
175
175
|
const t = "error";
|
|
176
|
-
Be(t, e), Ue(t,
|
|
176
|
+
Be(t, e), Ue(t, dc);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function dc() {
|
|
179
179
|
jn = N.onerror, N.onerror = function(e, t, n, r, s) {
|
|
180
180
|
return fe("error", {
|
|
181
181
|
column: r,
|
|
@@ -187,11 +187,11 @@ function uc() {
|
|
|
187
187
|
}, N.onerror.__SENTRY_INSTRUMENTED__ = !0;
|
|
188
188
|
}
|
|
189
189
|
let qn = null;
|
|
190
|
-
function
|
|
190
|
+
function fc(e) {
|
|
191
191
|
const t = "unhandledrejection";
|
|
192
|
-
Be(t, e), Ue(t,
|
|
192
|
+
Be(t, e), Ue(t, pc);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function pc() {
|
|
195
195
|
qn = N.onunhandledrejection, N.onunhandledrejection = function(e) {
|
|
196
196
|
return fe("unhandledrejection", e), qn ? qn.apply(this, arguments) : !0;
|
|
197
197
|
}, N.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
|
|
@@ -211,13 +211,13 @@ function yn(e) {
|
|
|
211
211
|
function ot(e, t) {
|
|
212
212
|
return Gi.call(e) === `[object ${t}]`;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Yi(e) {
|
|
215
215
|
return ot(e, "ErrorEvent");
|
|
216
216
|
}
|
|
217
217
|
function Is(e) {
|
|
218
218
|
return ot(e, "DOMError");
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function hc(e) {
|
|
221
221
|
return ot(e, "DOMException");
|
|
222
222
|
}
|
|
223
223
|
function Se(e) {
|
|
@@ -235,16 +235,16 @@ function _t(e) {
|
|
|
235
235
|
function En(e) {
|
|
236
236
|
return typeof Event < "u" && Ce(e, Event);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function mc(e) {
|
|
239
239
|
return typeof Element < "u" && Ce(e, Element);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function gc(e) {
|
|
242
242
|
return ot(e, "RegExp");
|
|
243
243
|
}
|
|
244
244
|
function Ct(e) {
|
|
245
245
|
return !!(e?.then && typeof e.then == "function");
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function _c(e) {
|
|
248
248
|
return _t(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
|
|
249
249
|
}
|
|
250
250
|
function Ce(e, t) {
|
|
@@ -254,13 +254,13 @@ function Ce(e, t) {
|
|
|
254
254
|
return !1;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ki(e) {
|
|
258
258
|
return !!(typeof e == "object" && e !== null && (e.__isVue || e._isVue || e.__v_isVNode));
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Xi(e) {
|
|
261
261
|
return typeof Request < "u" && Ce(e, Request);
|
|
262
262
|
}
|
|
263
|
-
const Br = N,
|
|
263
|
+
const Br = N, yc = 80;
|
|
264
264
|
function bn(e, t = {}) {
|
|
265
265
|
if (!e)
|
|
266
266
|
return "<unknown>";
|
|
@@ -270,15 +270,15 @@ function bn(e, t = {}) {
|
|
|
270
270
|
let i = 0, o = 0;
|
|
271
271
|
const c = " > ", a = c.length;
|
|
272
272
|
let u;
|
|
273
|
-
const d = Array.isArray(t) ? t : t.keyAttrs, l = !Array.isArray(t) && t.maxStringLength ||
|
|
274
|
-
for (; n && i++ < r && (u =
|
|
273
|
+
const d = Array.isArray(t) ? t : t.keyAttrs, l = !Array.isArray(t) && t.maxStringLength || yc;
|
|
274
|
+
for (; n && i++ < r && (u = Sc(n, d), !(u === "html" || i > 1 && o + s.length * a + u.length >= l)); )
|
|
275
275
|
s.push(u), o += u.length, n = n.parentNode;
|
|
276
276
|
return s.reverse().join(c);
|
|
277
277
|
} catch {
|
|
278
278
|
return "<unknown>";
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Sc(e, t) {
|
|
282
282
|
const n = e, r = [];
|
|
283
283
|
if (!n?.tagName)
|
|
284
284
|
return "";
|
|
@@ -289,24 +289,23 @@ function _c(e, t) {
|
|
|
289
289
|
return n.dataset.sentryElement;
|
|
290
290
|
}
|
|
291
291
|
r.push(n.tagName.toLowerCase());
|
|
292
|
-
const s = t?.length ? t.filter((
|
|
292
|
+
const s = t?.length ? t.filter((i) => n.getAttribute(i)).map((i) => [i, n.getAttribute(i)]) : null;
|
|
293
293
|
if (s?.length)
|
|
294
|
-
s.forEach((
|
|
295
|
-
r.push(`[${
|
|
294
|
+
s.forEach((i) => {
|
|
295
|
+
r.push(`[${i[0]}="${i[1]}"]`);
|
|
296
296
|
});
|
|
297
297
|
else {
|
|
298
298
|
n.id && r.push(`#${n.id}`);
|
|
299
|
-
const
|
|
300
|
-
if (
|
|
301
|
-
const
|
|
302
|
-
for (const
|
|
303
|
-
r.push(`.${
|
|
299
|
+
const i = n.className;
|
|
300
|
+
if (i && Se(i)) {
|
|
301
|
+
const o = i.split(/\s+/);
|
|
302
|
+
for (const c of o)
|
|
303
|
+
r.push(`.${c}`);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
const i
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
c && r.push(`[${o}="${c}"]`);
|
|
306
|
+
for (const i of ["aria-label", "type", "name", "title", "alt"]) {
|
|
307
|
+
const o = n.getAttribute(i);
|
|
308
|
+
o && r.push(`[${i}="${o}"]`);
|
|
310
309
|
}
|
|
311
310
|
return r.join("");
|
|
312
311
|
}
|
|
@@ -317,7 +316,7 @@ function vn() {
|
|
|
317
316
|
return "";
|
|
318
317
|
}
|
|
319
318
|
}
|
|
320
|
-
function
|
|
319
|
+
function Ec(e) {
|
|
321
320
|
if (!Br.HTMLElement)
|
|
322
321
|
return null;
|
|
323
322
|
let t = e;
|
|
@@ -342,7 +341,7 @@ function ne(e, t, n) {
|
|
|
342
341
|
if (typeof r != "function")
|
|
343
342
|
return;
|
|
344
343
|
const s = n(r);
|
|
345
|
-
typeof s == "function" &&
|
|
344
|
+
typeof s == "function" && Ji(s, r);
|
|
346
345
|
try {
|
|
347
346
|
e[t] = s;
|
|
348
347
|
} catch {
|
|
@@ -361,7 +360,7 @@ function Re(e, t, n) {
|
|
|
361
360
|
w && S.log(`Failed to add non-enumerable property "${t}" to object`, e);
|
|
362
361
|
}
|
|
363
362
|
}
|
|
364
|
-
function
|
|
363
|
+
function Ji(e, t) {
|
|
365
364
|
try {
|
|
366
365
|
const n = t.prototype || {};
|
|
367
366
|
e.prototype = t.prototype = n, Re(e, "__sentry_original__", t);
|
|
@@ -371,7 +370,7 @@ function Xi(e, t) {
|
|
|
371
370
|
function Ur(e) {
|
|
372
371
|
return e.__sentry_original__;
|
|
373
372
|
}
|
|
374
|
-
function
|
|
373
|
+
function Qi(e) {
|
|
375
374
|
if (yn(e))
|
|
376
375
|
return {
|
|
377
376
|
message: e.message,
|
|
@@ -392,22 +391,16 @@ function Ji(e) {
|
|
|
392
391
|
}
|
|
393
392
|
function ws(e) {
|
|
394
393
|
try {
|
|
395
|
-
return
|
|
394
|
+
return mc(e) ? bn(e) : Object.prototype.toString.call(e);
|
|
396
395
|
} catch {
|
|
397
396
|
return "<unknown>";
|
|
398
397
|
}
|
|
399
398
|
}
|
|
400
399
|
function ks(e) {
|
|
401
|
-
|
|
402
|
-
const t = {};
|
|
403
|
-
for (const n in e)
|
|
404
|
-
Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
405
|
-
return t;
|
|
406
|
-
} else
|
|
407
|
-
return {};
|
|
400
|
+
return typeof e == "object" && e !== null ? Object.fromEntries(Object.entries(e)) : {};
|
|
408
401
|
}
|
|
409
|
-
function
|
|
410
|
-
const t = Object.keys(
|
|
402
|
+
function bc(e) {
|
|
403
|
+
const t = Object.keys(Qi(e));
|
|
411
404
|
return t.sort(), t[0] ? t.join(", ") : "[object has no keys]";
|
|
412
405
|
}
|
|
413
406
|
let He;
|
|
@@ -433,7 +426,7 @@ function Ts(e, t) {
|
|
|
433
426
|
for (let r = 0; r < e.length; r++) {
|
|
434
427
|
const s = e[r];
|
|
435
428
|
try {
|
|
436
|
-
|
|
429
|
+
Ki(s) ? n.push(Vi(s)) : n.push(String(s));
|
|
437
430
|
} catch {
|
|
438
431
|
n.push("[value cannot be serialized]");
|
|
439
432
|
}
|
|
@@ -441,41 +434,41 @@ function Ts(e, t) {
|
|
|
441
434
|
return n.join(t);
|
|
442
435
|
}
|
|
443
436
|
function Kt(e, t, n = !1) {
|
|
444
|
-
return Se(e) ?
|
|
437
|
+
return Se(e) ? gc(t) ? t.test(e) : Se(t) ? n ? e === t : e.includes(t) : !1 : !1;
|
|
445
438
|
}
|
|
446
439
|
function Mt(e, t = [], n = !1) {
|
|
447
440
|
return t.some((r) => Kt(e, r, n));
|
|
448
441
|
}
|
|
449
|
-
function
|
|
442
|
+
function vc() {
|
|
450
443
|
const e = N;
|
|
451
444
|
return e.crypto || e.msCrypto;
|
|
452
445
|
}
|
|
453
|
-
let
|
|
454
|
-
function
|
|
446
|
+
let Vn;
|
|
447
|
+
function Ic() {
|
|
455
448
|
return nn() * 16;
|
|
456
449
|
}
|
|
457
|
-
function se(e =
|
|
450
|
+
function se(e = vc()) {
|
|
458
451
|
try {
|
|
459
452
|
if (e?.randomUUID)
|
|
460
453
|
return Rt(() => e.randomUUID()).replace(/-/g, "");
|
|
461
454
|
} catch {
|
|
462
455
|
}
|
|
463
|
-
return
|
|
456
|
+
return Vn || (Vn = "10000000100040008000" + 1e11), Vn.replace(
|
|
464
457
|
/[018]/g,
|
|
465
458
|
(t) => (
|
|
466
459
|
// eslint-disable-next-line no-bitwise
|
|
467
|
-
(t ^ (
|
|
460
|
+
(t ^ (Ic() & 15) >> t / 4).toString(16)
|
|
468
461
|
)
|
|
469
462
|
);
|
|
470
463
|
}
|
|
471
|
-
function
|
|
464
|
+
function Zi(e) {
|
|
472
465
|
return e.exception?.values?.[0];
|
|
473
466
|
}
|
|
474
467
|
function Ne(e) {
|
|
475
468
|
const { message: t, event_id: n } = e;
|
|
476
469
|
if (t)
|
|
477
470
|
return t;
|
|
478
|
-
const r =
|
|
471
|
+
const r = Zi(e);
|
|
479
472
|
return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
|
|
480
473
|
}
|
|
481
474
|
function cr(e, t, n) {
|
|
@@ -483,7 +476,7 @@ function cr(e, t, n) {
|
|
|
483
476
|
i.value || (i.value = t || ""), i.type || (i.type = "Error");
|
|
484
477
|
}
|
|
485
478
|
function Qe(e, t) {
|
|
486
|
-
const n =
|
|
479
|
+
const n = Zi(e);
|
|
487
480
|
if (!n)
|
|
488
481
|
return;
|
|
489
482
|
const r = { type: "generic", handled: !0 }, s = n.mechanism;
|
|
@@ -493,7 +486,7 @@ function Qe(e, t) {
|
|
|
493
486
|
}
|
|
494
487
|
}
|
|
495
488
|
function Cs(e) {
|
|
496
|
-
if (
|
|
489
|
+
if (wc(e))
|
|
497
490
|
return !0;
|
|
498
491
|
try {
|
|
499
492
|
Re(e, "__sentry_captured__", !0);
|
|
@@ -501,29 +494,29 @@ function Cs(e) {
|
|
|
501
494
|
}
|
|
502
495
|
return !1;
|
|
503
496
|
}
|
|
504
|
-
function
|
|
497
|
+
function wc(e) {
|
|
505
498
|
try {
|
|
506
499
|
return e.__sentry_captured__;
|
|
507
500
|
} catch {
|
|
508
501
|
}
|
|
509
502
|
}
|
|
510
|
-
const
|
|
503
|
+
const eo = 1e3;
|
|
511
504
|
function Ot() {
|
|
512
|
-
return xt() /
|
|
505
|
+
return xt() / eo;
|
|
513
506
|
}
|
|
514
|
-
function
|
|
507
|
+
function kc() {
|
|
515
508
|
const { performance: e } = N;
|
|
516
509
|
if (!e?.now || !e.timeOrigin)
|
|
517
510
|
return Ot;
|
|
518
511
|
const t = e.timeOrigin;
|
|
519
|
-
return () => (t + Rt(() => e.now())) /
|
|
512
|
+
return () => (t + Rt(() => e.now())) / eo;
|
|
520
513
|
}
|
|
521
514
|
let Rs;
|
|
522
515
|
function Ee() {
|
|
523
|
-
return (Rs ?? (Rs =
|
|
516
|
+
return (Rs ?? (Rs = kc()))();
|
|
524
517
|
}
|
|
525
|
-
let
|
|
526
|
-
function
|
|
518
|
+
let Gn = null;
|
|
519
|
+
function Tc() {
|
|
527
520
|
const { performance: e } = N;
|
|
528
521
|
if (!e?.now)
|
|
529
522
|
return;
|
|
@@ -533,10 +526,10 @@ function wc() {
|
|
|
533
526
|
const i = e.timing?.navigationStart;
|
|
534
527
|
return typeof i == "number" && Math.abs(i + n - r) < t ? i : r - n;
|
|
535
528
|
}
|
|
536
|
-
function
|
|
537
|
-
return
|
|
529
|
+
function Cc() {
|
|
530
|
+
return Gn === null && (Gn = Tc()), Gn;
|
|
538
531
|
}
|
|
539
|
-
function
|
|
532
|
+
function Rc(e) {
|
|
540
533
|
const t = Ee(), n = {
|
|
541
534
|
sid: se(),
|
|
542
535
|
init: !0,
|
|
@@ -546,7 +539,7 @@ function Tc(e) {
|
|
|
546
539
|
status: "ok",
|
|
547
540
|
errors: 0,
|
|
548
541
|
ignoreDuration: !1,
|
|
549
|
-
toJSON: () =>
|
|
542
|
+
toJSON: () => Mc(n)
|
|
550
543
|
};
|
|
551
544
|
return e && Ze(n, e), n;
|
|
552
545
|
}
|
|
@@ -561,11 +554,11 @@ function Ze(e, t = {}) {
|
|
|
561
554
|
}
|
|
562
555
|
t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status);
|
|
563
556
|
}
|
|
564
|
-
function
|
|
557
|
+
function xc(e, t) {
|
|
565
558
|
let n = {};
|
|
566
559
|
e.status === "ok" && (n = { status: "exited" }), Ze(e, n);
|
|
567
560
|
}
|
|
568
|
-
function
|
|
561
|
+
function Mc(e) {
|
|
569
562
|
return {
|
|
570
563
|
sid: `${e.sid}`,
|
|
571
564
|
init: e.init,
|
|
@@ -598,7 +591,7 @@ function At(e, t, n = 2) {
|
|
|
598
591
|
function xs() {
|
|
599
592
|
return se();
|
|
600
593
|
}
|
|
601
|
-
function
|
|
594
|
+
function to() {
|
|
602
595
|
return se().substring(16);
|
|
603
596
|
}
|
|
604
597
|
const ur = "_sentrySpan";
|
|
@@ -608,7 +601,7 @@ function Ms(e, t) {
|
|
|
608
601
|
function lr(e) {
|
|
609
602
|
return e[ur];
|
|
610
603
|
}
|
|
611
|
-
const
|
|
604
|
+
const Oc = 100;
|
|
612
605
|
class ge {
|
|
613
606
|
/** Flag if notifying is happening. */
|
|
614
607
|
/** Callback for client to receive scope changes. */
|
|
@@ -899,7 +892,7 @@ class ge {
|
|
|
899
892
|
* By default, the last 100 breadcrumbs are kept.
|
|
900
893
|
*/
|
|
901
894
|
addBreadcrumb(t, n) {
|
|
902
|
-
const r = typeof n == "number" ? n :
|
|
895
|
+
const r = typeof n == "number" ? n : Oc;
|
|
903
896
|
if (r <= 0)
|
|
904
897
|
return this;
|
|
905
898
|
const s = {
|
|
@@ -1035,13 +1028,13 @@ class ge {
|
|
|
1035
1028
|
}), this._notifyingListeners = !1);
|
|
1036
1029
|
}
|
|
1037
1030
|
}
|
|
1038
|
-
function
|
|
1031
|
+
function Ac() {
|
|
1039
1032
|
return it("defaultCurrentScope", () => new ge());
|
|
1040
1033
|
}
|
|
1041
|
-
function
|
|
1034
|
+
function Nc() {
|
|
1042
1035
|
return it("defaultIsolationScope", () => new ge());
|
|
1043
1036
|
}
|
|
1044
|
-
class
|
|
1037
|
+
class Dc {
|
|
1045
1038
|
constructor(t, n) {
|
|
1046
1039
|
let r;
|
|
1047
1040
|
t ? r = t : r = new ge();
|
|
@@ -1109,23 +1102,23 @@ class Ac {
|
|
|
1109
1102
|
}
|
|
1110
1103
|
function et() {
|
|
1111
1104
|
const e = Tt(), t = _n(e);
|
|
1112
|
-
return t.stack = t.stack || new Ac(
|
|
1105
|
+
return t.stack = t.stack || new Dc(Ac(), Nc());
|
|
1113
1106
|
}
|
|
1114
|
-
function
|
|
1107
|
+
function Lc(e) {
|
|
1115
1108
|
return et().withScope(e);
|
|
1116
1109
|
}
|
|
1117
|
-
function
|
|
1110
|
+
function Pc(e, t) {
|
|
1118
1111
|
const n = et();
|
|
1119
1112
|
return n.withScope(() => (n.getStackTop().scope = e, t(e)));
|
|
1120
1113
|
}
|
|
1121
1114
|
function Os(e) {
|
|
1122
1115
|
return et().withScope(() => e(et().getIsolationScope()));
|
|
1123
1116
|
}
|
|
1124
|
-
function
|
|
1117
|
+
function Fc() {
|
|
1125
1118
|
return {
|
|
1126
1119
|
withIsolationScope: Os,
|
|
1127
|
-
withScope:
|
|
1128
|
-
withSetScope:
|
|
1120
|
+
withScope: Lc,
|
|
1121
|
+
withSetScope: Pc,
|
|
1129
1122
|
withSetIsolationScope: (e, t) => Os(t),
|
|
1130
1123
|
getCurrentScope: () => et().getScope(),
|
|
1131
1124
|
getIsolationScope: () => et().getIsolationScope()
|
|
@@ -1133,7 +1126,7 @@ function Lc() {
|
|
|
1133
1126
|
}
|
|
1134
1127
|
function In(e) {
|
|
1135
1128
|
const t = _n(e);
|
|
1136
|
-
return t.acs ? t.acs :
|
|
1129
|
+
return t.acs ? t.acs : Fc();
|
|
1137
1130
|
}
|
|
1138
1131
|
function oe() {
|
|
1139
1132
|
const e = Tt();
|
|
@@ -1143,10 +1136,10 @@ function _e() {
|
|
|
1143
1136
|
const e = Tt();
|
|
1144
1137
|
return In(e).getIsolationScope();
|
|
1145
1138
|
}
|
|
1146
|
-
function
|
|
1139
|
+
function Bc() {
|
|
1147
1140
|
return it("globalScope", () => new ge());
|
|
1148
1141
|
}
|
|
1149
|
-
function
|
|
1142
|
+
function Uc(...e) {
|
|
1150
1143
|
const t = Tt(), n = In(t);
|
|
1151
1144
|
if (e.length === 2) {
|
|
1152
1145
|
const [r, s] = e;
|
|
@@ -1157,15 +1150,15 @@ function Fc(...e) {
|
|
|
1157
1150
|
function j() {
|
|
1158
1151
|
return oe().getClient();
|
|
1159
1152
|
}
|
|
1160
|
-
function
|
|
1153
|
+
function $c(e) {
|
|
1161
1154
|
const t = e.getPropagationContext(), { traceId: n, parentSpanId: r, propagationSpanId: s } = t, i = {
|
|
1162
1155
|
trace_id: n,
|
|
1163
|
-
span_id: s ||
|
|
1156
|
+
span_id: s || to()
|
|
1164
1157
|
};
|
|
1165
1158
|
return r && (i.parent_span_id = r), i;
|
|
1166
1159
|
}
|
|
1167
|
-
const
|
|
1168
|
-
function
|
|
1160
|
+
const no = "sentry.source", Hc = "sentry.sample_rate", Wc = "sentry.previous_trace_sample_rate", zc = "sentry.op", jc = "sentry.origin", ro = "sentry.profile_id", so = "sentry.exclusive_time", qc = "gen_ai.conversation.id", Vc = 0, Gc = 1, Yc = "_sentryScope", Kc = "_sentryIsolationScope";
|
|
1161
|
+
function Xc(e) {
|
|
1169
1162
|
if (e) {
|
|
1170
1163
|
if (typeof e == "object" && "deref" in e && typeof e.deref == "function")
|
|
1171
1164
|
try {
|
|
@@ -1176,21 +1169,21 @@ function Yc(e) {
|
|
|
1176
1169
|
return e;
|
|
1177
1170
|
}
|
|
1178
1171
|
}
|
|
1179
|
-
function
|
|
1172
|
+
function io(e) {
|
|
1180
1173
|
const t = e;
|
|
1181
1174
|
return {
|
|
1182
|
-
scope: t[
|
|
1183
|
-
isolationScope:
|
|
1175
|
+
scope: t[Yc],
|
|
1176
|
+
isolationScope: Xc(t[Kc])
|
|
1184
1177
|
};
|
|
1185
1178
|
}
|
|
1186
|
-
const
|
|
1179
|
+
const As = "sentry-";
|
|
1187
1180
|
function Jc(e) {
|
|
1188
1181
|
const t = Qc(e);
|
|
1189
1182
|
if (!t)
|
|
1190
1183
|
return;
|
|
1191
1184
|
const n = Object.entries(t).reduce((r, [s, i]) => {
|
|
1192
|
-
if (s.
|
|
1193
|
-
const o = s.slice(
|
|
1185
|
+
if (s.startsWith(As)) {
|
|
1186
|
+
const o = s.slice(As.length);
|
|
1194
1187
|
r[o] = i;
|
|
1195
1188
|
}
|
|
1196
1189
|
return r;
|
|
@@ -1201,13 +1194,13 @@ function Jc(e) {
|
|
|
1201
1194
|
function Qc(e) {
|
|
1202
1195
|
if (!(!e || !Se(e) && !Array.isArray(e)))
|
|
1203
1196
|
return Array.isArray(e) ? e.reduce((t, n) => {
|
|
1204
|
-
const r =
|
|
1197
|
+
const r = Ns(n);
|
|
1205
1198
|
return Object.entries(r).forEach(([s, i]) => {
|
|
1206
1199
|
t[s] = i;
|
|
1207
1200
|
}), t;
|
|
1208
|
-
}, {}) :
|
|
1201
|
+
}, {}) : Ns(e);
|
|
1209
1202
|
}
|
|
1210
|
-
function
|
|
1203
|
+
function Ns(e) {
|
|
1211
1204
|
return e.split(",").map((t) => {
|
|
1212
1205
|
const n = t.indexOf("=");
|
|
1213
1206
|
if (n === -1)
|
|
@@ -1245,9 +1238,9 @@ function nu(e) {
|
|
|
1245
1238
|
const l = u.match(/^\d+/);
|
|
1246
1239
|
l && (u = l[0]);
|
|
1247
1240
|
}
|
|
1248
|
-
return
|
|
1241
|
+
return oo({ host: i, pass: s, path: a, projectId: u, port: o, protocol: n, publicKey: r });
|
|
1249
1242
|
}
|
|
1250
|
-
function
|
|
1243
|
+
function oo(e) {
|
|
1251
1244
|
return {
|
|
1252
1245
|
protocol: e.protocol,
|
|
1253
1246
|
publicKey: e.publicKey || "",
|
|
@@ -1273,7 +1266,7 @@ function iu(e) {
|
|
|
1273
1266
|
return t.orgId ? r = String(t.orgId) : n && (r = su(n)), r;
|
|
1274
1267
|
}
|
|
1275
1268
|
function ou(e) {
|
|
1276
|
-
const t = typeof e == "string" ? nu(e) :
|
|
1269
|
+
const t = typeof e == "string" ? nu(e) : oo(e);
|
|
1277
1270
|
if (!(!t || !ru(t)))
|
|
1278
1271
|
return t;
|
|
1279
1272
|
}
|
|
@@ -1284,10 +1277,10 @@ function dr(e) {
|
|
|
1284
1277
|
if (!(typeof t != "number" || isNaN(t) || t < 0 || t > 1))
|
|
1285
1278
|
return t;
|
|
1286
1279
|
}
|
|
1287
|
-
const
|
|
1288
|
-
let
|
|
1280
|
+
const ao = 1;
|
|
1281
|
+
let Ds = !1;
|
|
1289
1282
|
function au(e) {
|
|
1290
|
-
const { spanId: t, traceId: n, isRemote: r } = e.spanContext(), s = r ? t : yt(e).parent_span_id, i =
|
|
1283
|
+
const { spanId: t, traceId: n, isRemote: r } = e.spanContext(), s = r ? t : yt(e).parent_span_id, i = io(e).scope, o = r ? i?.getPropagationContext().propagationSpanId || to() : t;
|
|
1291
1284
|
return {
|
|
1292
1285
|
parent_span_id: s,
|
|
1293
1286
|
span_id: o,
|
|
@@ -1299,15 +1292,15 @@ function cu(e) {
|
|
|
1299
1292
|
return e.map(({ context: { spanId: t, traceId: n, traceFlags: r, ...s }, attributes: i }) => ({
|
|
1300
1293
|
span_id: t,
|
|
1301
1294
|
trace_id: n,
|
|
1302
|
-
sampled: r ===
|
|
1295
|
+
sampled: r === ao,
|
|
1303
1296
|
attributes: i,
|
|
1304
1297
|
...s
|
|
1305
1298
|
}));
|
|
1306
1299
|
}
|
|
1307
|
-
function Ds(e) {
|
|
1308
|
-
return typeof e == "number" ? Ls(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Ls(e.getTime()) : Ee();
|
|
1309
|
-
}
|
|
1310
1300
|
function Ls(e) {
|
|
1301
|
+
return typeof e == "number" ? Ps(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Ps(e.getTime()) : Ee();
|
|
1302
|
+
}
|
|
1303
|
+
function Ps(e) {
|
|
1311
1304
|
return e > 9999999999 ? e / 1e3 : e;
|
|
1312
1305
|
}
|
|
1313
1306
|
function yt(e) {
|
|
@@ -1322,12 +1315,12 @@ function yt(e) {
|
|
|
1322
1315
|
data: r,
|
|
1323
1316
|
description: i,
|
|
1324
1317
|
parent_span_id: u,
|
|
1325
|
-
start_timestamp:
|
|
1318
|
+
start_timestamp: Ls(s),
|
|
1326
1319
|
// This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
|
|
1327
|
-
timestamp:
|
|
1320
|
+
timestamp: Ls(o) || void 0,
|
|
1328
1321
|
status: fu(c),
|
|
1329
|
-
op: r[
|
|
1330
|
-
origin: r[
|
|
1322
|
+
op: r[zc],
|
|
1323
|
+
origin: r[jc],
|
|
1331
1324
|
links: cu(a)
|
|
1332
1325
|
};
|
|
1333
1326
|
}
|
|
@@ -1347,26 +1340,26 @@ function lu(e) {
|
|
|
1347
1340
|
}
|
|
1348
1341
|
function du(e) {
|
|
1349
1342
|
const { traceFlags: t } = e.spanContext();
|
|
1350
|
-
return t ===
|
|
1343
|
+
return t === ao;
|
|
1351
1344
|
}
|
|
1352
1345
|
function fu(e) {
|
|
1353
|
-
if (!(!e || e.code ===
|
|
1354
|
-
return e.code ===
|
|
1346
|
+
if (!(!e || e.code === Vc))
|
|
1347
|
+
return e.code === Gc ? "ok" : e.message || "internal_error";
|
|
1355
1348
|
}
|
|
1356
1349
|
const pu = "_sentryRootSpan";
|
|
1357
1350
|
function $r(e) {
|
|
1358
1351
|
return e[pu] || e;
|
|
1359
1352
|
}
|
|
1360
|
-
function
|
|
1353
|
+
function co() {
|
|
1361
1354
|
const e = Tt(), t = In(e);
|
|
1362
1355
|
return t.getActiveSpan ? t.getActiveSpan() : lr(oe());
|
|
1363
1356
|
}
|
|
1364
|
-
function
|
|
1365
|
-
|
|
1357
|
+
function Fs() {
|
|
1358
|
+
Ds || (Fe(() => {
|
|
1366
1359
|
console.warn(
|
|
1367
1360
|
"[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`."
|
|
1368
1361
|
);
|
|
1369
|
-
}),
|
|
1362
|
+
}), Ds = !0);
|
|
1370
1363
|
}
|
|
1371
1364
|
function hu(e) {
|
|
1372
1365
|
if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__)
|
|
@@ -1375,23 +1368,23 @@ function hu(e) {
|
|
|
1375
1368
|
return !!t && // Note: This check is `!= null`, meaning "nullish". `0` is not "nullish", `undefined` and `null` are. (This comment was brought to you by 15 minutes of questioning life)
|
|
1376
1369
|
(t.tracesSampleRate != null || !!t.tracesSampler);
|
|
1377
1370
|
}
|
|
1378
|
-
function
|
|
1371
|
+
function Bs(e) {
|
|
1379
1372
|
S.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
|
|
1380
1373
|
}
|
|
1381
|
-
function
|
|
1374
|
+
function Us(e, t) {
|
|
1382
1375
|
if (!t?.length || !e.description)
|
|
1383
1376
|
return !1;
|
|
1384
1377
|
for (const n of t) {
|
|
1385
1378
|
if (gu(n)) {
|
|
1386
1379
|
if (Kt(e.description, n))
|
|
1387
|
-
return w &&
|
|
1380
|
+
return w && Bs(e), !0;
|
|
1388
1381
|
continue;
|
|
1389
1382
|
}
|
|
1390
1383
|
if (!n.name && !n.op)
|
|
1391
1384
|
continue;
|
|
1392
1385
|
const r = n.name ? Kt(e.description, n.name) : !0, s = n.op ? e.op && Kt(e.op, n.op) : !0;
|
|
1393
1386
|
if (r && s)
|
|
1394
|
-
return w &&
|
|
1387
|
+
return w && Bs(e), !0;
|
|
1395
1388
|
}
|
|
1396
1389
|
return !1;
|
|
1397
1390
|
}
|
|
@@ -1405,7 +1398,7 @@ function gu(e) {
|
|
|
1405
1398
|
return typeof e == "string" || e instanceof RegExp;
|
|
1406
1399
|
}
|
|
1407
1400
|
const Hr = "production", _u = "_frozenDsc";
|
|
1408
|
-
function
|
|
1401
|
+
function uo(e, t) {
|
|
1409
1402
|
const n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, s = {
|
|
1410
1403
|
environment: n.environment || Hr,
|
|
1411
1404
|
release: n.release,
|
|
@@ -1417,13 +1410,13 @@ function co(e, t) {
|
|
|
1417
1410
|
}
|
|
1418
1411
|
function yu(e, t) {
|
|
1419
1412
|
const n = t.getPropagationContext();
|
|
1420
|
-
return n.dsc ||
|
|
1413
|
+
return n.dsc || uo(n.traceId, e);
|
|
1421
1414
|
}
|
|
1422
|
-
function
|
|
1415
|
+
function lo(e) {
|
|
1423
1416
|
const t = j();
|
|
1424
1417
|
if (!t)
|
|
1425
1418
|
return {};
|
|
1426
|
-
const n = $r(e), r = yt(n), s = r.data, i = n.spanContext().traceState, o = i?.get("sentry.sample_rate") ?? s[
|
|
1419
|
+
const n = $r(e), r = yt(n), s = r.data, i = n.spanContext().traceState, o = i?.get("sentry.sample_rate") ?? s[Hc] ?? s[Wc];
|
|
1427
1420
|
function c(h) {
|
|
1428
1421
|
return (typeof o == "number" || typeof o == "string") && (h.sample_rate = `${o}`), h;
|
|
1429
1422
|
}
|
|
@@ -1433,11 +1426,11 @@ function uo(e) {
|
|
|
1433
1426
|
const u = i?.get("sentry.dsc"), d = u && Jc(u);
|
|
1434
1427
|
if (d)
|
|
1435
1428
|
return c(d);
|
|
1436
|
-
const l =
|
|
1429
|
+
const l = uo(e.spanContext().traceId, t), f = s[no], p = r.description;
|
|
1437
1430
|
return f !== "url" && p && (l.transaction = p), hu() && (l.sampled = String(du(n)), l.sample_rand = // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans
|
|
1438
1431
|
// The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span
|
|
1439
1432
|
i?.get("sentry.sample_rand") ?? // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)
|
|
1440
|
-
|
|
1433
|
+
io(n).scope?.getPropagationContext().sampleRand.toString()), c(l), t.emit("createDsc", l, n), l;
|
|
1441
1434
|
}
|
|
1442
1435
|
function de(e, t = 100, n = 1 / 0) {
|
|
1443
1436
|
try {
|
|
@@ -1446,9 +1439,9 @@ function de(e, t = 100, n = 1 / 0) {
|
|
|
1446
1439
|
return { ERROR: `**non-serializable** (${r})` };
|
|
1447
1440
|
}
|
|
1448
1441
|
}
|
|
1449
|
-
function
|
|
1442
|
+
function fo(e, t = 3, n = 100 * 1024) {
|
|
1450
1443
|
const r = de(e, t);
|
|
1451
|
-
return vu(r) > n ?
|
|
1444
|
+
return vu(r) > n ? fo(e, t - 1, n) : r;
|
|
1452
1445
|
}
|
|
1453
1446
|
function fr(e, t, n = 1 / 0, r = 1 / 0, s = Iu()) {
|
|
1454
1447
|
const [i, o] = s;
|
|
@@ -1474,7 +1467,7 @@ function fr(e, t, n = 1 / 0, r = 1 / 0, s = Iu()) {
|
|
|
1474
1467
|
}
|
|
1475
1468
|
const d = Array.isArray(t) ? [] : {};
|
|
1476
1469
|
let l = 0;
|
|
1477
|
-
const f =
|
|
1470
|
+
const f = Qi(t);
|
|
1478
1471
|
for (const p in f) {
|
|
1479
1472
|
if (!Object.prototype.hasOwnProperty.call(f, p))
|
|
1480
1473
|
continue;
|
|
@@ -1499,9 +1492,9 @@ function Su(e, t) {
|
|
|
1499
1492
|
return "[Window]";
|
|
1500
1493
|
if (typeof document < "u" && t === document)
|
|
1501
1494
|
return "[Document]";
|
|
1502
|
-
if (
|
|
1503
|
-
return
|
|
1504
|
-
if (
|
|
1495
|
+
if (Ki(t))
|
|
1496
|
+
return Vi(t);
|
|
1497
|
+
if (_c(t))
|
|
1505
1498
|
return "[SyntheticEvent]";
|
|
1506
1499
|
if (typeof t == "number" && !Number.isFinite(t))
|
|
1507
1500
|
return `[${t}]`;
|
|
@@ -1604,28 +1597,24 @@ function Ru(e) {
|
|
|
1604
1597
|
t
|
|
1605
1598
|
];
|
|
1606
1599
|
}
|
|
1607
|
-
const
|
|
1608
|
-
session: "session",
|
|
1600
|
+
const po = {
|
|
1609
1601
|
sessions: "session",
|
|
1610
|
-
attachment: "attachment",
|
|
1611
|
-
transaction: "transaction",
|
|
1612
1602
|
event: "error",
|
|
1613
1603
|
client_report: "internal",
|
|
1614
1604
|
user_report: "default",
|
|
1615
|
-
profile: "profile",
|
|
1616
1605
|
profile_chunk: "profile",
|
|
1617
1606
|
replay_event: "replay",
|
|
1618
1607
|
replay_recording: "replay",
|
|
1619
1608
|
check_in: "monitor",
|
|
1620
|
-
feedback: "feedback",
|
|
1621
|
-
span: "span",
|
|
1622
1609
|
raw_security: "security",
|
|
1623
1610
|
log: "log_item",
|
|
1624
|
-
metric: "metric",
|
|
1625
1611
|
trace_metric: "metric"
|
|
1626
1612
|
};
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1613
|
+
function xu(e) {
|
|
1614
|
+
return e in po;
|
|
1615
|
+
}
|
|
1616
|
+
function $s(e) {
|
|
1617
|
+
return xu(e) ? po[e] : e;
|
|
1629
1618
|
}
|
|
1630
1619
|
function Wr(e) {
|
|
1631
1620
|
if (!e?.sdk)
|
|
@@ -1633,7 +1622,7 @@ function Wr(e) {
|
|
|
1633
1622
|
const { name: t, version: n } = e.sdk;
|
|
1634
1623
|
return { name: t, version: n };
|
|
1635
1624
|
}
|
|
1636
|
-
function
|
|
1625
|
+
function ho(e, t, n, r) {
|
|
1637
1626
|
const s = e.sdkProcessingMetadata?.dynamicSamplingContext;
|
|
1638
1627
|
return {
|
|
1639
1628
|
event_id: e.event_id,
|
|
@@ -1672,10 +1661,10 @@ function Ou(e, t, n, r) {
|
|
|
1672
1661
|
function Au(e, t, n, r) {
|
|
1673
1662
|
const s = Wr(n), i = e.type && e.type !== "replay_event" ? e.type : "event";
|
|
1674
1663
|
Mu(e, n?.sdk);
|
|
1675
|
-
const o =
|
|
1664
|
+
const o = ho(e, s, r, t);
|
|
1676
1665
|
return delete e.sdkProcessingMetadata, $e(o, [[{ type: i }, e]]);
|
|
1677
1666
|
}
|
|
1678
|
-
const Yn = 0,
|
|
1667
|
+
const Yn = 0, Hs = 1, Ws = 2;
|
|
1679
1668
|
function Dt(e) {
|
|
1680
1669
|
return new St((t) => {
|
|
1681
1670
|
t(e);
|
|
@@ -1748,7 +1737,7 @@ class St {
|
|
|
1748
1737
|
return;
|
|
1749
1738
|
const t = this._handlers.slice();
|
|
1750
1739
|
this._handlers = [], t.forEach((n) => {
|
|
1751
|
-
n[0] || (this._state ===
|
|
1740
|
+
n[0] || (this._state === Hs && n[1](this._value), this._state === Ws && n[2](this._value), n[0] = !0);
|
|
1752
1741
|
});
|
|
1753
1742
|
}
|
|
1754
1743
|
/** Run the executor for the SyncPromise. */
|
|
@@ -1762,9 +1751,9 @@ class St {
|
|
|
1762
1751
|
this._state = i, this._value = o, this._executeHandlers();
|
|
1763
1752
|
}
|
|
1764
1753
|
}, r = (i) => {
|
|
1765
|
-
n($s, i);
|
|
1766
|
-
}, s = (i) => {
|
|
1767
1754
|
n(Hs, i);
|
|
1755
|
+
}, s = (i) => {
|
|
1756
|
+
n(Ws, i);
|
|
1768
1757
|
};
|
|
1769
1758
|
try {
|
|
1770
1759
|
t(r, s);
|
|
@@ -1788,15 +1777,15 @@ function mr(e, t, n, r) {
|
|
|
1788
1777
|
const i = s({ ...e }, t);
|
|
1789
1778
|
return w && i === null && S.log(`Event processor "${s.id || "?"}" dropped event`), Ct(i) ? i.then((o) => mr(o, t, n, r + 1)) : mr(i, t, n, r + 1);
|
|
1790
1779
|
}
|
|
1791
|
-
let Ae,
|
|
1780
|
+
let Ae, zs, js, Ie;
|
|
1792
1781
|
function Du(e) {
|
|
1793
1782
|
const t = N._sentryDebugIds, n = N._debugIds;
|
|
1794
1783
|
if (!t && !n)
|
|
1795
1784
|
return {};
|
|
1796
1785
|
const r = t ? Object.keys(t) : [], s = n ? Object.keys(n) : [];
|
|
1797
|
-
if (Ie && r.length ===
|
|
1786
|
+
if (Ie && r.length === zs && s.length === js)
|
|
1798
1787
|
return Ie;
|
|
1799
|
-
|
|
1788
|
+
zs = r.length, js = s.length, Ie = {}, Ae || (Ae = {});
|
|
1800
1789
|
const i = (o, c) => {
|
|
1801
1790
|
for (const a of o) {
|
|
1802
1791
|
const u = c[a], d = Ae?.[a];
|
|
@@ -1820,7 +1809,7 @@ function Lu(e, t) {
|
|
|
1820
1809
|
const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = t;
|
|
1821
1810
|
Pu(e, t), r && Uu(e, r), $u(e, n), Fu(e, s), Bu(e, i);
|
|
1822
1811
|
}
|
|
1823
|
-
function
|
|
1812
|
+
function qs(e, t) {
|
|
1824
1813
|
const {
|
|
1825
1814
|
extra: n,
|
|
1826
1815
|
tags: r,
|
|
@@ -1842,9 +1831,9 @@ function js(e, t) {
|
|
|
1842
1831
|
function dt(e, t, n) {
|
|
1843
1832
|
e[t] = At(e[t], n, 1);
|
|
1844
1833
|
}
|
|
1845
|
-
function
|
|
1846
|
-
const n =
|
|
1847
|
-
return e &&
|
|
1834
|
+
function mo(e, t) {
|
|
1835
|
+
const n = Bc().getScopeData();
|
|
1836
|
+
return e && qs(n, e.getScopeData()), t && qs(n, t.getScopeData()), n;
|
|
1848
1837
|
}
|
|
1849
1838
|
function Pu(e, t) {
|
|
1850
1839
|
const { extra: n, tags: r, user: s, contexts: i, level: o, transactionName: c } = t;
|
|
@@ -1865,7 +1854,7 @@ function Uu(e, t) {
|
|
|
1865
1854
|
trace: au(t),
|
|
1866
1855
|
...e.contexts
|
|
1867
1856
|
}, e.sdkProcessingMetadata = {
|
|
1868
|
-
dynamicSamplingContext:
|
|
1857
|
+
dynamicSamplingContext: lo(t),
|
|
1869
1858
|
...e.sdkProcessingMetadata
|
|
1870
1859
|
};
|
|
1871
1860
|
const n = $r(t), r = yt(n).description;
|
|
@@ -1874,16 +1863,16 @@ function Uu(e, t) {
|
|
|
1874
1863
|
function $u(e, t) {
|
|
1875
1864
|
e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint] : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint.length || delete e.fingerprint;
|
|
1876
1865
|
}
|
|
1877
|
-
function
|
|
1866
|
+
function go(e, t, n, r, s, i) {
|
|
1878
1867
|
const { normalizeDepth: o = 3, normalizeMaxBreadth: c = 1e3 } = e, a = {
|
|
1879
1868
|
...t,
|
|
1880
1869
|
event_id: t.event_id || n.event_id || se(),
|
|
1881
1870
|
timestamp: t.timestamp || Ot()
|
|
1882
1871
|
}, u = n.integrations || e.integrations.map((_) => _.name);
|
|
1883
1872
|
Hu(a, e), ju(a, u), s && s.emit("applyFrameMetadata", t), t.type === void 0 && Wu(a, e.stackParser);
|
|
1884
|
-
const d =
|
|
1873
|
+
const d = Vu(r, n.captureContext);
|
|
1885
1874
|
n.mechanism && Qe(a, n.mechanism);
|
|
1886
|
-
const l = s ? s.getEventProcessors() : [], f =
|
|
1875
|
+
const l = s ? s.getEventProcessors() : [], f = mo(i, d), p = [...n.attachments || [], ...f.attachments];
|
|
1887
1876
|
p.length && (n.attachments = p), Lu(a, f);
|
|
1888
1877
|
const h = [
|
|
1889
1878
|
...l,
|
|
@@ -1959,13 +1948,13 @@ function qu(e, t, n) {
|
|
|
1959
1948
|
}
|
|
1960
1949
|
}))), e.contexts?.flags && r.contexts && (r.contexts.flags = de(e.contexts.flags, 3, n)), r;
|
|
1961
1950
|
}
|
|
1962
|
-
function
|
|
1951
|
+
function Vu(e, t) {
|
|
1963
1952
|
if (!t)
|
|
1964
1953
|
return e;
|
|
1965
1954
|
const n = e ? e.clone() : new ge();
|
|
1966
1955
|
return n.update(t), n;
|
|
1967
1956
|
}
|
|
1968
|
-
function
|
|
1957
|
+
function Gu(e) {
|
|
1969
1958
|
if (e)
|
|
1970
1959
|
return Yu(e) ? { captureContext: e } : Xu(e) ? {
|
|
1971
1960
|
captureContext: e
|
|
@@ -1987,39 +1976,39 @@ function Xu(e) {
|
|
|
1987
1976
|
return Object.keys(e).some((t) => Ku.includes(t));
|
|
1988
1977
|
}
|
|
1989
1978
|
function jr(e, t) {
|
|
1990
|
-
return oe().captureException(e,
|
|
1979
|
+
return oe().captureException(e, Gu(t));
|
|
1991
1980
|
}
|
|
1992
|
-
function
|
|
1981
|
+
function _o(e, t) {
|
|
1993
1982
|
return oe().captureEvent(e, t);
|
|
1994
1983
|
}
|
|
1995
|
-
function
|
|
1984
|
+
function yo(e, t) {
|
|
1996
1985
|
_e().setContext(e, t);
|
|
1997
1986
|
}
|
|
1998
1987
|
function Ju(e) {
|
|
1999
1988
|
_e().addEventProcessor(e);
|
|
2000
1989
|
}
|
|
2001
|
-
function
|
|
2002
|
-
const t = _e(), { user: n } =
|
|
1990
|
+
function Vs(e) {
|
|
1991
|
+
const t = _e(), { user: n } = mo(t, oe()), { userAgent: r } = N.navigator || {}, s = Rc({
|
|
2003
1992
|
user: n,
|
|
2004
1993
|
...r && { userAgent: r },
|
|
2005
1994
|
...e
|
|
2006
1995
|
}), i = t.getSession();
|
|
2007
|
-
return i?.status === "ok" && Ze(i, { status: "exited" }),
|
|
1996
|
+
return i?.status === "ok" && Ze(i, { status: "exited" }), So(), t.setSession(s), s;
|
|
2008
1997
|
}
|
|
2009
|
-
function
|
|
1998
|
+
function So() {
|
|
2010
1999
|
const e = _e(), n = oe().getSession() || e.getSession();
|
|
2011
|
-
n &&
|
|
2000
|
+
n && xc(n), Eo(), e.setSession();
|
|
2012
2001
|
}
|
|
2013
|
-
function
|
|
2002
|
+
function Eo() {
|
|
2014
2003
|
const e = _e(), t = j(), n = e.getSession();
|
|
2015
2004
|
n && t && t.captureSession(n);
|
|
2016
2005
|
}
|
|
2017
2006
|
function Kn(e = !1) {
|
|
2018
2007
|
if (e) {
|
|
2019
|
-
|
|
2008
|
+
So();
|
|
2020
2009
|
return;
|
|
2021
2010
|
}
|
|
2022
|
-
|
|
2011
|
+
Eo();
|
|
2023
2012
|
}
|
|
2024
2013
|
const Qu = "7";
|
|
2025
2014
|
function Zu(e) {
|
|
@@ -2064,14 +2053,14 @@ function sl(e) {
|
|
|
2064
2053
|
function il(e, t) {
|
|
2065
2054
|
const n = {};
|
|
2066
2055
|
return t.forEach((r) => {
|
|
2067
|
-
r &&
|
|
2056
|
+
r && bo(e, r, n);
|
|
2068
2057
|
}), n;
|
|
2069
2058
|
}
|
|
2070
|
-
function
|
|
2059
|
+
function Ys(e, t) {
|
|
2071
2060
|
for (const n of t)
|
|
2072
2061
|
n?.afterAllSetup && n.afterAllSetup(e);
|
|
2073
2062
|
}
|
|
2074
|
-
function
|
|
2063
|
+
function bo(e, t, n) {
|
|
2075
2064
|
if (n[t.name]) {
|
|
2076
2065
|
w && S.log(`Integration skipped because it was already installed: ${t.name}`);
|
|
2077
2066
|
return;
|
|
@@ -2112,12 +2101,12 @@ function gr(e, t) {
|
|
|
2112
2101
|
if (n.length === 0)
|
|
2113
2102
|
return;
|
|
2114
2103
|
const r = e.getOptions(), s = al(n, r._metadata, r.tunnel, e.getDsn());
|
|
2115
|
-
|
|
2104
|
+
vo().set(e, []), e.emit("flushLogs"), e.sendEnvelope(s);
|
|
2116
2105
|
}
|
|
2117
2106
|
function cl(e) {
|
|
2118
|
-
return
|
|
2107
|
+
return vo().get(e);
|
|
2119
2108
|
}
|
|
2120
|
-
function
|
|
2109
|
+
function vo() {
|
|
2121
2110
|
return it("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
|
|
2122
2111
|
}
|
|
2123
2112
|
function ul(e) {
|
|
@@ -2139,24 +2128,24 @@ function ll(e, t, n, r) {
|
|
|
2139
2128
|
version: t.sdk.version
|
|
2140
2129
|
}), n && r && (s.dsn = Nt(r)), $e(s, [ul(e)]);
|
|
2141
2130
|
}
|
|
2142
|
-
function
|
|
2131
|
+
function Io(e, t) {
|
|
2143
2132
|
const n = t ?? dl(e) ?? [];
|
|
2144
2133
|
if (n.length === 0)
|
|
2145
2134
|
return;
|
|
2146
2135
|
const r = e.getOptions(), s = ll(n, r._metadata, r.tunnel, e.getDsn());
|
|
2147
|
-
|
|
2136
|
+
wo().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(s);
|
|
2148
2137
|
}
|
|
2149
2138
|
function dl(e) {
|
|
2150
|
-
return
|
|
2139
|
+
return wo().get(e);
|
|
2151
2140
|
}
|
|
2152
|
-
function
|
|
2141
|
+
function wo() {
|
|
2153
2142
|
return it("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
|
|
2154
2143
|
}
|
|
2155
|
-
function
|
|
2144
|
+
function ko(e) {
|
|
2156
2145
|
return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
|
|
2157
2146
|
}
|
|
2158
2147
|
const qr = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
|
|
2159
|
-
function
|
|
2148
|
+
function Vr(e = 100) {
|
|
2160
2149
|
const t = /* @__PURE__ */ new Set();
|
|
2161
2150
|
function n() {
|
|
2162
2151
|
return t.size < e;
|
|
@@ -2181,7 +2170,7 @@ function Gr(e = 100) {
|
|
|
2181
2170
|
return c;
|
|
2182
2171
|
const a = [
|
|
2183
2172
|
c,
|
|
2184
|
-
new Promise((u) =>
|
|
2173
|
+
new Promise((u) => ko(setTimeout(() => u(!1), o)))
|
|
2185
2174
|
];
|
|
2186
2175
|
return Promise.race(a);
|
|
2187
2176
|
}
|
|
@@ -2204,10 +2193,10 @@ function pl(e, t = xt()) {
|
|
|
2204
2193
|
function hl(e, t) {
|
|
2205
2194
|
return e[t] || e.all || 0;
|
|
2206
2195
|
}
|
|
2207
|
-
function
|
|
2196
|
+
function To(e, t, n = xt()) {
|
|
2208
2197
|
return hl(e, t) > n;
|
|
2209
2198
|
}
|
|
2210
|
-
function
|
|
2199
|
+
function Co(e, { statusCode: t, headers: n }, r = xt()) {
|
|
2211
2200
|
const s = {
|
|
2212
2201
|
...e
|
|
2213
2202
|
}, i = n?.["x-sentry-rate-limits"], o = n?.["retry-after"];
|
|
@@ -2223,17 +2212,17 @@ function ko(e, { statusCode: t, headers: n }, r = xt()) {
|
|
|
2223
2212
|
else o ? s.all = r + pl(o, r) : t === 429 && (s.all = r + 60 * 1e3);
|
|
2224
2213
|
return s;
|
|
2225
2214
|
}
|
|
2226
|
-
const
|
|
2227
|
-
function ml(e, t, n =
|
|
2228
|
-
e.bufferSize ||
|
|
2215
|
+
const Ro = 64;
|
|
2216
|
+
function ml(e, t, n = Vr(
|
|
2217
|
+
e.bufferSize || Ro
|
|
2229
2218
|
)) {
|
|
2230
2219
|
let r = {};
|
|
2231
2220
|
const s = (o) => n.drain(o);
|
|
2232
2221
|
function i(o) {
|
|
2233
2222
|
const c = [];
|
|
2234
2223
|
if (pr(o, (l, f) => {
|
|
2235
|
-
const p =
|
|
2236
|
-
|
|
2224
|
+
const p = $s(f);
|
|
2225
|
+
To(r, p) ? e.recordDroppedEvent("ratelimit_backoff", p) : c.push(l);
|
|
2237
2226
|
}), c.length === 0)
|
|
2238
2227
|
return Promise.resolve({});
|
|
2239
2228
|
const a = $e(o[0], c), u = (l) => {
|
|
@@ -2242,12 +2231,12 @@ function ml(e, t, n = Gr(
|
|
|
2242
2231
|
return;
|
|
2243
2232
|
}
|
|
2244
2233
|
pr(a, (f, p) => {
|
|
2245
|
-
e.recordDroppedEvent(l,
|
|
2234
|
+
e.recordDroppedEvent(l, $s(p));
|
|
2246
2235
|
});
|
|
2247
2236
|
}, d = () => t({ body: Tu(a) }).then(
|
|
2248
2237
|
(l) => l.statusCode === 413 ? (w && S.error(
|
|
2249
2238
|
"Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."
|
|
2250
|
-
), u("send_error"), l) : (w && l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && S.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r =
|
|
2239
|
+
), u("send_error"), l) : (w && l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && S.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r = Co(r, l), l),
|
|
2251
2240
|
(l) => {
|
|
2252
2241
|
throw u("network_error"), w && S.error("Encountered error running transport request:", l), l;
|
|
2253
2242
|
}
|
|
@@ -2276,7 +2265,7 @@ function gl(e, t, n) {
|
|
|
2276
2265
|
];
|
|
2277
2266
|
return $e(t ? { dsn: t } : {}, [r]);
|
|
2278
2267
|
}
|
|
2279
|
-
function
|
|
2268
|
+
function xo(e) {
|
|
2280
2269
|
const t = [];
|
|
2281
2270
|
e.message && t.push(e.message);
|
|
2282
2271
|
try {
|
|
@@ -2299,8 +2288,8 @@ function _l(e) {
|
|
|
2299
2288
|
timestamp: e.timestamp,
|
|
2300
2289
|
trace_id: t ?? "",
|
|
2301
2290
|
origin: i,
|
|
2302
|
-
profile_id: o?.[
|
|
2303
|
-
exclusive_time: o?.[
|
|
2291
|
+
profile_id: o?.[ro],
|
|
2292
|
+
exclusive_time: o?.[so],
|
|
2304
2293
|
measurements: e.measurements,
|
|
2305
2294
|
is_segment: !0
|
|
2306
2295
|
};
|
|
@@ -2321,39 +2310,39 @@ function yl(e) {
|
|
|
2321
2310
|
origin: e.origin,
|
|
2322
2311
|
data: {
|
|
2323
2312
|
...e.data,
|
|
2324
|
-
...e.profile_id && { [
|
|
2325
|
-
...e.exclusive_time && { [
|
|
2313
|
+
...e.profile_id && { [ro]: e.profile_id },
|
|
2314
|
+
...e.exclusive_time && { [so]: e.exclusive_time }
|
|
2326
2315
|
}
|
|
2327
2316
|
}
|
|
2328
2317
|
},
|
|
2329
2318
|
measurements: e.measurements
|
|
2330
2319
|
};
|
|
2331
2320
|
}
|
|
2332
|
-
const
|
|
2321
|
+
const Ks = "Not capturing exception because it's already been captured.", Xs = "Discarded session because of missing or non-string release", Mo = /* @__PURE__ */ Symbol.for("SentryInternalError"), Oo = /* @__PURE__ */ Symbol.for("SentryDoNotSendEventError"), Sl = 5e3;
|
|
2333
2322
|
function Xt(e) {
|
|
2334
2323
|
return {
|
|
2335
2324
|
message: e,
|
|
2336
|
-
[
|
|
2325
|
+
[Mo]: !0
|
|
2337
2326
|
};
|
|
2338
2327
|
}
|
|
2339
2328
|
function Xn(e) {
|
|
2340
2329
|
return {
|
|
2341
2330
|
message: e,
|
|
2342
|
-
[
|
|
2331
|
+
[Oo]: !0
|
|
2343
2332
|
};
|
|
2344
2333
|
}
|
|
2345
|
-
function Xs(e) {
|
|
2346
|
-
return !!e && typeof e == "object" && Ro in e;
|
|
2347
|
-
}
|
|
2348
2334
|
function Js(e) {
|
|
2349
|
-
return !!e && typeof e == "object" &&
|
|
2335
|
+
return !!e && typeof e == "object" && Mo in e;
|
|
2336
|
+
}
|
|
2337
|
+
function Qs(e) {
|
|
2338
|
+
return !!e && typeof e == "object" && Oo in e;
|
|
2350
2339
|
}
|
|
2351
|
-
function
|
|
2340
|
+
function Zs(e, t, n, r, s) {
|
|
2352
2341
|
let i = 0, o, c = !1;
|
|
2353
2342
|
e.on(n, () => {
|
|
2354
2343
|
i = 0, clearTimeout(o), c = !1;
|
|
2355
2344
|
}), e.on(t, (a) => {
|
|
2356
|
-
i += r(a), i >= 8e5 ? s(e) : c || (c = !0, o =
|
|
2345
|
+
i += r(a), i >= 8e5 ? s(e) : c || (c = !0, o = ko(
|
|
2357
2346
|
setTimeout(() => {
|
|
2358
2347
|
s(e);
|
|
2359
2348
|
}, Sl)
|
|
@@ -2375,7 +2364,7 @@ class El {
|
|
|
2375
2364
|
* @param options Options for the client.
|
|
2376
2365
|
*/
|
|
2377
2366
|
constructor(t) {
|
|
2378
|
-
if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer =
|
|
2367
|
+
if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Vr(t.transportOptions?.bufferSize ?? Ro), t.dsn ? this._dsn = ou(t.dsn) : w && S.warn("No DSN provided, client will not send events."), this._dsn) {
|
|
2379
2368
|
const r = nl(
|
|
2380
2369
|
this._dsn,
|
|
2381
2370
|
t.tunnel,
|
|
@@ -2388,12 +2377,12 @@ class El {
|
|
|
2388
2377
|
url: r
|
|
2389
2378
|
});
|
|
2390
2379
|
}
|
|
2391
|
-
this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs, this._options.enableLogs &&
|
|
2380
|
+
this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs, this._options.enableLogs && Zs(this, "afterCaptureLog", "flushLogs", wl, gr), (this._options.enableMetrics ?? this._options._experiments?.enableMetrics ?? !0) && Zs(
|
|
2392
2381
|
this,
|
|
2393
2382
|
"afterCaptureMetric",
|
|
2394
2383
|
"flushMetrics",
|
|
2395
2384
|
Il,
|
|
2396
|
-
|
|
2385
|
+
Io
|
|
2397
2386
|
);
|
|
2398
2387
|
}
|
|
2399
2388
|
/**
|
|
@@ -2404,7 +2393,7 @@ class El {
|
|
|
2404
2393
|
captureException(t, n, r) {
|
|
2405
2394
|
const s = se();
|
|
2406
2395
|
if (Cs(t))
|
|
2407
|
-
return w && S.log(
|
|
2396
|
+
return w && S.log(Ks), s;
|
|
2408
2397
|
const i = {
|
|
2409
2398
|
event_id: s,
|
|
2410
2399
|
...n
|
|
@@ -2437,11 +2426,11 @@ class El {
|
|
|
2437
2426
|
captureEvent(t, n, r) {
|
|
2438
2427
|
const s = se();
|
|
2439
2428
|
if (n?.originalException && Cs(n.originalException))
|
|
2440
|
-
return w && S.log(
|
|
2429
|
+
return w && S.log(Ks), s;
|
|
2441
2430
|
const i = {
|
|
2442
2431
|
event_id: s,
|
|
2443
2432
|
...n
|
|
2444
|
-
}, o = t.sdkProcessingMetadata || {}, c = o.capturedSpanScope, a = o.capturedSpanIsolationScope, u =
|
|
2433
|
+
}, o = t.sdkProcessingMetadata || {}, c = o.capturedSpanScope, a = o.capturedSpanIsolationScope, u = ei(t.type);
|
|
2445
2434
|
return this._process(
|
|
2446
2435
|
() => this._captureEvent(t, i, c || r, a),
|
|
2447
2436
|
u
|
|
@@ -2560,7 +2549,7 @@ class El {
|
|
|
2560
2549
|
*/
|
|
2561
2550
|
addIntegration(t) {
|
|
2562
2551
|
const n = this._integrations[t.name];
|
|
2563
|
-
|
|
2552
|
+
bo(this, t, this._integrations), n || Ys(this, [t]);
|
|
2564
2553
|
}
|
|
2565
2554
|
/**
|
|
2566
2555
|
* Send a fully prepared event to Sentry.
|
|
@@ -2580,13 +2569,13 @@ class El {
|
|
|
2580
2569
|
if ("aggregates" in t) {
|
|
2581
2570
|
const i = t.attrs || {};
|
|
2582
2571
|
if (!i.release && !n) {
|
|
2583
|
-
w && S.warn(
|
|
2572
|
+
w && S.warn(Xs);
|
|
2584
2573
|
return;
|
|
2585
2574
|
}
|
|
2586
2575
|
i.release = i.release || n, i.environment = i.environment || r, t.attrs = i;
|
|
2587
2576
|
} else {
|
|
2588
2577
|
if (!t.release && !n) {
|
|
2589
|
-
w && S.warn(
|
|
2578
|
+
w && S.warn(Xs);
|
|
2590
2579
|
return;
|
|
2591
2580
|
}
|
|
2592
2581
|
t.release = t.release || n, t.environment = t.environment || r;
|
|
@@ -2652,7 +2641,7 @@ class El {
|
|
|
2652
2641
|
/** Setup integrations for this client. */
|
|
2653
2642
|
_setupIntegrations() {
|
|
2654
2643
|
const { integrations: t } = this._options;
|
|
2655
|
-
this._integrations = il(this, t),
|
|
2644
|
+
this._integrations = il(this, t), Ys(this, t);
|
|
2656
2645
|
}
|
|
2657
2646
|
/** Updates existing session based on the provided event */
|
|
2658
2647
|
_updateSessionFromEvent(t, n) {
|
|
@@ -2711,11 +2700,11 @@ class El {
|
|
|
2711
2700
|
*/
|
|
2712
2701
|
_prepareEvent(t, n, r, s) {
|
|
2713
2702
|
const i = this.getOptions(), o = Object.keys(this._integrations);
|
|
2714
|
-
return !n.integrations && o?.length && (n.integrations = o), this.emit("preprocessEvent", t, n), t.type || s.setLastEventId(t.event_id || n.event_id),
|
|
2703
|
+
return !n.integrations && o?.length && (n.integrations = o), this.emit("preprocessEvent", t, n), t.type || s.setLastEventId(t.event_id || n.event_id), go(i, t, n, r, this, s).then((c) => {
|
|
2715
2704
|
if (c === null)
|
|
2716
2705
|
return c;
|
|
2717
2706
|
this.emit("postprocessEvent", c, n), c.contexts = {
|
|
2718
|
-
trace: { ...c.contexts?.trace,
|
|
2707
|
+
trace: { ...c.contexts?.trace, ...$c(r) },
|
|
2719
2708
|
...c.contexts
|
|
2720
2709
|
};
|
|
2721
2710
|
const a = yu(this, r);
|
|
@@ -2732,10 +2721,10 @@ class El {
|
|
|
2732
2721
|
* @param scope
|
|
2733
2722
|
*/
|
|
2734
2723
|
_captureEvent(t, n = {}, r = oe(), s = _e()) {
|
|
2735
|
-
return w && _r(t) && S.log(`Captured error event \`${
|
|
2724
|
+
return w && _r(t) && S.log(`Captured error event \`${xo(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, s).then(
|
|
2736
2725
|
(i) => i.event_id,
|
|
2737
2726
|
(i) => {
|
|
2738
|
-
w && (
|
|
2727
|
+
w && (Qs(i) ? S.log(i.message) : Js(i) ? S.warn(i.message) : S.warn(i));
|
|
2739
2728
|
}
|
|
2740
2729
|
);
|
|
2741
2730
|
}
|
|
@@ -2753,14 +2742,14 @@ class El {
|
|
|
2753
2742
|
* @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
|
|
2754
2743
|
*/
|
|
2755
2744
|
_processEvent(t, n, r, s) {
|
|
2756
|
-
const i = this.getOptions(), { sampleRate: o } = i, c =
|
|
2745
|
+
const i = this.getOptions(), { sampleRate: o } = i, c = Ao(t), a = _r(t), d = `before send for type \`${t.type || "error"}\``, l = typeof o > "u" ? void 0 : dr(o);
|
|
2757
2746
|
if (a && typeof l == "number" && nn() > l)
|
|
2758
2747
|
return this.recordDroppedEvent("sample_rate", "error"), zr(
|
|
2759
2748
|
Xn(
|
|
2760
2749
|
`Discarding event because it's not included in the random sample (sampling rate = ${o})`
|
|
2761
2750
|
)
|
|
2762
2751
|
);
|
|
2763
|
-
const f =
|
|
2752
|
+
const f = ei(t.type);
|
|
2764
2753
|
return this._prepareEvent(t, n, r, s).then((p) => {
|
|
2765
2754
|
if (p === null)
|
|
2766
2755
|
throw this.recordDroppedEvent("event_processor", f), Xn("An event processor returned `null`, will not send event.");
|
|
@@ -2791,7 +2780,7 @@ class El {
|
|
|
2791
2780
|
}
|
|
2792
2781
|
return this.sendEvent(p, n), p;
|
|
2793
2782
|
}).then(null, (p) => {
|
|
2794
|
-
throw
|
|
2783
|
+
throw Qs(p) || Js(p) ? p : (this.captureException(p, {
|
|
2795
2784
|
mechanism: {
|
|
2796
2785
|
handled: !1,
|
|
2797
2786
|
type: "internal"
|
|
@@ -2851,7 +2840,7 @@ Reason: ${p}`
|
|
|
2851
2840
|
* Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.
|
|
2852
2841
|
*/
|
|
2853
2842
|
}
|
|
2854
|
-
function
|
|
2843
|
+
function ei(e) {
|
|
2855
2844
|
return e === "replay_event" ? "replay" : e || "error";
|
|
2856
2845
|
}
|
|
2857
2846
|
function bl(e, t) {
|
|
@@ -2876,25 +2865,25 @@ function vl(e, t, n, r) {
|
|
|
2876
2865
|
let a = n;
|
|
2877
2866
|
if (_r(a) && s)
|
|
2878
2867
|
return s(a, r);
|
|
2879
|
-
if (
|
|
2868
|
+
if (Ao(a)) {
|
|
2880
2869
|
if (o || c) {
|
|
2881
2870
|
const u = _l(a);
|
|
2882
|
-
if (c?.length &&
|
|
2871
|
+
if (c?.length && Us(u, c))
|
|
2883
2872
|
return null;
|
|
2884
2873
|
if (o) {
|
|
2885
2874
|
const d = o(u);
|
|
2886
|
-
d ? a = At(n, yl(d)) :
|
|
2875
|
+
d ? a = At(n, yl(d)) : Fs();
|
|
2887
2876
|
}
|
|
2888
2877
|
if (a.spans) {
|
|
2889
2878
|
const d = [], l = a.spans;
|
|
2890
2879
|
for (const p of l) {
|
|
2891
|
-
if (c?.length &&
|
|
2880
|
+
if (c?.length && Us(p, c)) {
|
|
2892
2881
|
mu(l, p);
|
|
2893
2882
|
continue;
|
|
2894
2883
|
}
|
|
2895
2884
|
if (o) {
|
|
2896
2885
|
const h = o(p);
|
|
2897
|
-
h ? d.push(h) : (
|
|
2886
|
+
h ? d.push(h) : (Fs(), d.push(p));
|
|
2898
2887
|
} else
|
|
2899
2888
|
d.push(p);
|
|
2900
2889
|
}
|
|
@@ -2918,32 +2907,32 @@ function vl(e, t, n, r) {
|
|
|
2918
2907
|
function _r(e) {
|
|
2919
2908
|
return e.type === void 0;
|
|
2920
2909
|
}
|
|
2921
|
-
function
|
|
2910
|
+
function Ao(e) {
|
|
2922
2911
|
return e.type === "transaction";
|
|
2923
2912
|
}
|
|
2924
2913
|
function Il(e) {
|
|
2925
2914
|
let t = 0;
|
|
2926
|
-
return e.name && (t += e.name.length * 2), t += 8, t +
|
|
2915
|
+
return e.name && (t += e.name.length * 2), t += 8, t + No(e.attributes);
|
|
2927
2916
|
}
|
|
2928
2917
|
function wl(e) {
|
|
2929
2918
|
let t = 0;
|
|
2930
|
-
return e.message && (t += e.message.length * 2), t +
|
|
2919
|
+
return e.message && (t += e.message.length * 2), t + No(e.attributes);
|
|
2931
2920
|
}
|
|
2932
|
-
function
|
|
2921
|
+
function No(e) {
|
|
2933
2922
|
if (!e)
|
|
2934
2923
|
return 0;
|
|
2935
2924
|
let t = 0;
|
|
2936
2925
|
return Object.values(e).forEach((n) => {
|
|
2937
|
-
Array.isArray(n) ? t += n.length *
|
|
2926
|
+
Array.isArray(n) ? t += n.length * ti(n[0]) : Sn(n) ? t += ti(n) : t += 100;
|
|
2938
2927
|
}), t;
|
|
2939
2928
|
}
|
|
2940
|
-
function
|
|
2929
|
+
function ti(e) {
|
|
2941
2930
|
return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
|
|
2942
2931
|
}
|
|
2943
2932
|
function kl(e) {
|
|
2944
2933
|
return yn(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
|
|
2945
2934
|
}
|
|
2946
|
-
function
|
|
2935
|
+
function ni(e) {
|
|
2947
2936
|
return kl(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
|
|
2948
2937
|
}
|
|
2949
2938
|
function Tl(e, t) {
|
|
@@ -3009,13 +2998,13 @@ function Al(e, t) {
|
|
|
3009
2998
|
return Dl(e, n) || Nl(e, r);
|
|
3010
2999
|
}
|
|
3011
3000
|
function Nl(e, t) {
|
|
3012
|
-
return t ?
|
|
3001
|
+
return t ? ri(e) === ri(t) : !1;
|
|
3013
3002
|
}
|
|
3014
3003
|
function Dl(e, t) {
|
|
3015
3004
|
const n = Ml(e);
|
|
3016
3005
|
return !n || xl(n) ? !1 : t ? n.host.includes(t.host) && /(^|&|\?)sentry_key=/.test(n.search) : !1;
|
|
3017
3006
|
}
|
|
3018
|
-
function
|
|
3007
|
+
function ri(e) {
|
|
3019
3008
|
return e[e.length - 1] === "/" ? e.slice(0, -1) : e;
|
|
3020
3009
|
}
|
|
3021
3010
|
function Ll(e) {
|
|
@@ -3024,7 +3013,7 @@ function Ll(e) {
|
|
|
3024
3013
|
ip_address: "{{auto}}"
|
|
3025
3014
|
}) : e.ipAddress === void 0 && (e.ipAddress = "{{auto}}");
|
|
3026
3015
|
}
|
|
3027
|
-
function
|
|
3016
|
+
function Do(e, t, n = [t], r = "npm") {
|
|
3028
3017
|
const s = (e._metadata = e._metadata || {}).sdk = e._metadata.sdk || {};
|
|
3029
3018
|
s.name || (s.name = `sentry.javascript.${t}`, s.packages = n.map((i) => ({
|
|
3030
3019
|
name: `${r}:@sentry/${i}`,
|
|
@@ -3057,21 +3046,21 @@ function xe(e, t) {
|
|
|
3057
3046
|
const c = { timestamp: Ot(), ...e }, a = s ? Fe(() => s(c, t)) : c;
|
|
3058
3047
|
a !== null && (n.emit && n.emit("beforeAddBreadcrumb", a, t), r.addBreadcrumb(a, i));
|
|
3059
3048
|
}
|
|
3060
|
-
let
|
|
3061
|
-
const Bl = "FunctionToString",
|
|
3049
|
+
let si;
|
|
3050
|
+
const Bl = "FunctionToString", ii = /* @__PURE__ */ new WeakMap(), Ul = (() => ({
|
|
3062
3051
|
name: Bl,
|
|
3063
3052
|
setupOnce() {
|
|
3064
|
-
|
|
3053
|
+
si = Function.prototype.toString;
|
|
3065
3054
|
try {
|
|
3066
3055
|
Function.prototype.toString = function(...e) {
|
|
3067
|
-
const t = Ur(this), n =
|
|
3068
|
-
return
|
|
3056
|
+
const t = Ur(this), n = ii.has(j()) && t !== void 0 ? t : this;
|
|
3057
|
+
return si.apply(n, e);
|
|
3069
3058
|
};
|
|
3070
3059
|
} catch {
|
|
3071
3060
|
}
|
|
3072
3061
|
},
|
|
3073
3062
|
setup(e) {
|
|
3074
|
-
|
|
3063
|
+
ii.set(e, !0);
|
|
3075
3064
|
}
|
|
3076
3065
|
})), $l = Ul, Hl = [
|
|
3077
3066
|
/^Script error\.?$/,
|
|
@@ -3084,13 +3073,13 @@ const Bl = "FunctionToString", si = /* @__PURE__ */ new WeakMap(), Ul = (() => (
|
|
|
3084
3073
|
// Error from Google Search App https://issuetracker.google.com/issues/396043331
|
|
3085
3074
|
/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
|
|
3086
3075
|
// Random error that happens but not actionable or noticeable to end-users.
|
|
3087
|
-
|
|
3076
|
+
/can't redefine non-configurable property "solana"/,
|
|
3088
3077
|
// Probably a browser extension or custom browser (Brave) throwing this error
|
|
3089
|
-
|
|
3078
|
+
/vv\(\)\.getRestrictions is not a function/,
|
|
3090
3079
|
// Error thrown by GTM, seemingly not affecting end-users
|
|
3091
|
-
|
|
3080
|
+
/Can't find variable: _AutofillCallbackHandler/,
|
|
3092
3081
|
// Unactionable error in instagram webview https://developers.facebook.com/community/threads/320013549791141/
|
|
3093
|
-
|
|
3082
|
+
/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
|
|
3094
3083
|
// unactionable error from CEFSharp, a .NET library that embeds chromium in .NET apps
|
|
3095
3084
|
/^Java exception was raised during method invocation$/
|
|
3096
3085
|
// error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065)
|
|
@@ -3100,12 +3089,12 @@ const Bl = "FunctionToString", si = /* @__PURE__ */ new WeakMap(), Ul = (() => (
|
|
|
3100
3089
|
name: Wl,
|
|
3101
3090
|
setup(n) {
|
|
3102
3091
|
const r = n.getOptions();
|
|
3103
|
-
t =
|
|
3092
|
+
t = oi(e, r);
|
|
3104
3093
|
},
|
|
3105
3094
|
processEvent(n, r, s) {
|
|
3106
3095
|
if (!t) {
|
|
3107
3096
|
const i = s.getOptions();
|
|
3108
|
-
t =
|
|
3097
|
+
t = oi(e, i);
|
|
3109
3098
|
}
|
|
3110
3099
|
return ql(n, t) ? null : n;
|
|
3111
3100
|
}
|
|
@@ -3114,7 +3103,7 @@ const Bl = "FunctionToString", si = /* @__PURE__ */ new WeakMap(), Ul = (() => (
|
|
|
3114
3103
|
...zl(e),
|
|
3115
3104
|
name: "InboundFilters"
|
|
3116
3105
|
}));
|
|
3117
|
-
function
|
|
3106
|
+
function oi(e = {}, t = {}) {
|
|
3118
3107
|
return {
|
|
3119
3108
|
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
|
|
3120
3109
|
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
|
|
@@ -3128,13 +3117,13 @@ function ii(e = {}, t = {}) {
|
|
|
3128
3117
|
}
|
|
3129
3118
|
function ql(e, t) {
|
|
3130
3119
|
if (e.type) {
|
|
3131
|
-
if (e.type === "transaction" &&
|
|
3120
|
+
if (e.type === "transaction" && Gl(e, t.ignoreTransactions))
|
|
3132
3121
|
return w && S.warn(
|
|
3133
3122
|
`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
3134
3123
|
Event: ${Ne(e)}`
|
|
3135
3124
|
), !0;
|
|
3136
3125
|
} else {
|
|
3137
|
-
if (
|
|
3126
|
+
if (Vl(e, t.ignoreErrors))
|
|
3138
3127
|
return w && S.warn(
|
|
3139
3128
|
`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
3140
3129
|
Event: ${Ne(e)}`
|
|
@@ -3165,10 +3154,10 @@ Url: ${rn(e)}`
|
|
|
3165
3154
|
}
|
|
3166
3155
|
return !1;
|
|
3167
3156
|
}
|
|
3168
|
-
function Gl(e, t) {
|
|
3169
|
-
return t?.length ? Co(e).some((n) => Mt(n, t)) : !1;
|
|
3170
|
-
}
|
|
3171
3157
|
function Vl(e, t) {
|
|
3158
|
+
return t?.length ? xo(e).some((n) => Mt(n, t)) : !1;
|
|
3159
|
+
}
|
|
3160
|
+
function Gl(e, t) {
|
|
3172
3161
|
if (!t?.length)
|
|
3173
3162
|
return !1;
|
|
3174
3163
|
const n = e.transaction;
|
|
@@ -3229,9 +3218,9 @@ function yr(e, t, n, r, s, i, o, c) {
|
|
|
3229
3218
|
return i;
|
|
3230
3219
|
let a = [...i];
|
|
3231
3220
|
if (Ce(r[s], Error)) {
|
|
3232
|
-
|
|
3221
|
+
ai(o, c, r);
|
|
3233
3222
|
const u = e(t, r[s]), d = a.length;
|
|
3234
|
-
|
|
3223
|
+
ci(u, s, d, c), a = yr(
|
|
3235
3224
|
e,
|
|
3236
3225
|
t,
|
|
3237
3226
|
n,
|
|
@@ -3242,11 +3231,11 @@ function yr(e, t, n, r, s, i, o, c) {
|
|
|
3242
3231
|
d
|
|
3243
3232
|
);
|
|
3244
3233
|
}
|
|
3245
|
-
return
|
|
3234
|
+
return Lo(r) && r.errors.forEach((u, d) => {
|
|
3246
3235
|
if (Ce(u, Error)) {
|
|
3247
|
-
|
|
3236
|
+
ai(o, c, r);
|
|
3248
3237
|
const l = e(t, u), f = a.length;
|
|
3249
|
-
|
|
3238
|
+
ci(l, `errors[${d}]`, f, c), a = yr(
|
|
3250
3239
|
e,
|
|
3251
3240
|
t,
|
|
3252
3241
|
n,
|
|
@@ -3259,19 +3248,19 @@ function yr(e, t, n, r, s, i, o, c) {
|
|
|
3259
3248
|
}
|
|
3260
3249
|
}), a;
|
|
3261
3250
|
}
|
|
3262
|
-
function
|
|
3251
|
+
function Lo(e) {
|
|
3263
3252
|
return Array.isArray(e.errors);
|
|
3264
3253
|
}
|
|
3265
|
-
function
|
|
3254
|
+
function ai(e, t, n) {
|
|
3266
3255
|
e.mechanism = {
|
|
3267
3256
|
handled: !0,
|
|
3268
3257
|
type: "auto.core.linked_errors",
|
|
3269
|
-
...
|
|
3258
|
+
...Lo(n) && { is_exception_group: !0 },
|
|
3270
3259
|
...e.mechanism,
|
|
3271
3260
|
exception_id: t
|
|
3272
3261
|
};
|
|
3273
3262
|
}
|
|
3274
|
-
function
|
|
3263
|
+
function ci(e, t, n, r) {
|
|
3275
3264
|
e.mechanism = {
|
|
3276
3265
|
handled: !0,
|
|
3277
3266
|
...e.mechanism,
|
|
@@ -3286,7 +3275,7 @@ function Zl(e) {
|
|
|
3286
3275
|
Be(t, e), Ue(t, ed);
|
|
3287
3276
|
}
|
|
3288
3277
|
function ed() {
|
|
3289
|
-
"console" in N &&
|
|
3278
|
+
"console" in N && tc.forEach(function(e) {
|
|
3290
3279
|
e in N.console && ne(N.console, e, function(t) {
|
|
3291
3280
|
return tn[e] = t, function(...n) {
|
|
3292
3281
|
fe("console", { args: n, level: e }), tn[e]?.apply(N.console, n);
|
|
@@ -3294,7 +3283,7 @@ function ed() {
|
|
|
3294
3283
|
});
|
|
3295
3284
|
});
|
|
3296
3285
|
}
|
|
3297
|
-
function
|
|
3286
|
+
function Po(e) {
|
|
3298
3287
|
return e === "warn" ? "warning" : ["fatal", "error", "warning", "log", "info", "debug"].includes(e) ? e : "log";
|
|
3299
3288
|
}
|
|
3300
3289
|
const td = "Dedupe", nd = (() => {
|
|
@@ -3318,13 +3307,13 @@ function sd(e, t) {
|
|
|
3318
3307
|
}
|
|
3319
3308
|
function id(e, t) {
|
|
3320
3309
|
const n = e.message, r = t.message;
|
|
3321
|
-
return !(!n && !r || n && !r || !n && r || n !== r || !
|
|
3310
|
+
return !(!n && !r || n && !r || !n && r || n !== r || !Bo(e, t) || !Fo(e, t));
|
|
3322
3311
|
}
|
|
3323
3312
|
function od(e, t) {
|
|
3324
|
-
const n =
|
|
3325
|
-
return !(!n || !r || n.type !== r.type || n.value !== r.value || !
|
|
3313
|
+
const n = ui(t), r = ui(e);
|
|
3314
|
+
return !(!n || !r || n.type !== r.type || n.value !== r.value || !Bo(e, t) || !Fo(e, t));
|
|
3326
3315
|
}
|
|
3327
|
-
function
|
|
3316
|
+
function Fo(e, t) {
|
|
3328
3317
|
let n = bs(e), r = bs(t);
|
|
3329
3318
|
if (!n && !r)
|
|
3330
3319
|
return !0;
|
|
@@ -3337,7 +3326,7 @@ function Lo(e, t) {
|
|
|
3337
3326
|
}
|
|
3338
3327
|
return !0;
|
|
3339
3328
|
}
|
|
3340
|
-
function
|
|
3329
|
+
function Bo(e, t) {
|
|
3341
3330
|
let n = e.fingerprint, r = t.fingerprint;
|
|
3342
3331
|
if (!n && !r)
|
|
3343
3332
|
return !0;
|
|
@@ -3350,7 +3339,7 @@ function Po(e, t) {
|
|
|
3350
3339
|
return !1;
|
|
3351
3340
|
}
|
|
3352
3341
|
}
|
|
3353
|
-
function
|
|
3342
|
+
function ui(e) {
|
|
3354
3343
|
return e.exception?.values?.[0];
|
|
3355
3344
|
}
|
|
3356
3345
|
const ad = "ConversationId", cd = (() => ({
|
|
@@ -3358,11 +3347,11 @@ const ad = "ConversationId", cd = (() => ({
|
|
|
3358
3347
|
setup(e) {
|
|
3359
3348
|
e.on("spanStart", (t) => {
|
|
3360
3349
|
const n = oe().getScopeData(), r = _e().getScopeData(), s = n.conversationId || r.conversationId;
|
|
3361
|
-
s && t.setAttribute(
|
|
3350
|
+
s && t.setAttribute(qc, s);
|
|
3362
3351
|
});
|
|
3363
3352
|
}
|
|
3364
3353
|
})), ud = cd;
|
|
3365
|
-
function
|
|
3354
|
+
function Uo(e) {
|
|
3366
3355
|
if (e !== void 0)
|
|
3367
3356
|
return e >= 400 && e < 500 ? "warning" : e >= 500 ? "error" : void 0;
|
|
3368
3357
|
}
|
|
@@ -3448,7 +3437,7 @@ function hd(e, t = !1) {
|
|
|
3448
3437
|
function Jt(e, t) {
|
|
3449
3438
|
return !!e && typeof e == "object" && !!e[t];
|
|
3450
3439
|
}
|
|
3451
|
-
function
|
|
3440
|
+
function li(e) {
|
|
3452
3441
|
return typeof e == "string" ? e : e ? Jt(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
|
|
3453
3442
|
}
|
|
3454
3443
|
function md(e) {
|
|
@@ -3457,16 +3446,16 @@ function md(e) {
|
|
|
3457
3446
|
if (e.length === 2) {
|
|
3458
3447
|
const [n, r] = e;
|
|
3459
3448
|
return {
|
|
3460
|
-
url:
|
|
3449
|
+
url: li(n),
|
|
3461
3450
|
method: Jt(r, "method") ? String(r.method).toUpperCase() : (
|
|
3462
3451
|
// Request object as first argument
|
|
3463
|
-
|
|
3452
|
+
Xi(n) && Jt(n, "method") ? String(n.method).toUpperCase() : "GET"
|
|
3464
3453
|
)
|
|
3465
3454
|
};
|
|
3466
3455
|
}
|
|
3467
3456
|
const t = e[0];
|
|
3468
3457
|
return {
|
|
3469
|
-
url:
|
|
3458
|
+
url: li(t),
|
|
3470
3459
|
method: Jt(t, "method") ? String(t.method).toUpperCase() : "GET"
|
|
3471
3460
|
};
|
|
3472
3461
|
}
|
|
@@ -3475,7 +3464,7 @@ function gd(e) {
|
|
|
3475
3464
|
try {
|
|
3476
3465
|
if (typeof n == "object" && n !== null && "headers" in n && n.headers)
|
|
3477
3466
|
return new Headers(n.headers);
|
|
3478
|
-
if (
|
|
3467
|
+
if (Xi(t))
|
|
3479
3468
|
return new Headers(t.headers);
|
|
3480
3469
|
} catch {
|
|
3481
3470
|
}
|
|
@@ -3489,15 +3478,15 @@ function yd() {
|
|
|
3489
3478
|
function Sd() {
|
|
3490
3479
|
return !_d() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
|
|
3491
3480
|
}
|
|
3492
|
-
function
|
|
3481
|
+
function di() {
|
|
3493
3482
|
return typeof window < "u" && (!Sd() || Ed());
|
|
3494
3483
|
}
|
|
3495
3484
|
function Ed() {
|
|
3496
3485
|
return N.process?.type === "renderer";
|
|
3497
3486
|
}
|
|
3498
|
-
const
|
|
3487
|
+
const V = N;
|
|
3499
3488
|
let Er = 0;
|
|
3500
|
-
function
|
|
3489
|
+
function $o() {
|
|
3501
3490
|
return Er > 0;
|
|
3502
3491
|
}
|
|
3503
3492
|
function bd() {
|
|
@@ -3525,7 +3514,7 @@ function tt(e, t = {}) {
|
|
|
3525
3514
|
const i = s.map((o) => tt(o, t));
|
|
3526
3515
|
return e.apply(this, i);
|
|
3527
3516
|
} catch (i) {
|
|
3528
|
-
throw bd(),
|
|
3517
|
+
throw bd(), Uc((o) => {
|
|
3529
3518
|
o.addEventProcessor((c) => (t.mechanism && (cr(c, void 0), Qe(c, t.mechanism)), c.extra = {
|
|
3530
3519
|
...c.extra,
|
|
3531
3520
|
arguments: s
|
|
@@ -3538,7 +3527,7 @@ function tt(e, t = {}) {
|
|
|
3538
3527
|
Object.prototype.hasOwnProperty.call(e, s) && (r[s] = e[s]);
|
|
3539
3528
|
} catch {
|
|
3540
3529
|
}
|
|
3541
|
-
|
|
3530
|
+
Ji(r, e), Re(e, "__sentry_wrapped__", r);
|
|
3542
3531
|
try {
|
|
3543
3532
|
Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", {
|
|
3544
3533
|
get() {
|
|
@@ -3550,7 +3539,7 @@ function tt(e, t = {}) {
|
|
|
3550
3539
|
return r;
|
|
3551
3540
|
}
|
|
3552
3541
|
function vd() {
|
|
3553
|
-
const e = vn(), { referrer: t } =
|
|
3542
|
+
const e = vn(), { referrer: t } = V.document || {}, { userAgent: n } = V.navigator || {}, r = {
|
|
3554
3543
|
...t && { Referer: t },
|
|
3555
3544
|
...n && { "User-Agent": n }
|
|
3556
3545
|
};
|
|
@@ -3559,7 +3548,7 @@ function vd() {
|
|
|
3559
3548
|
headers: r
|
|
3560
3549
|
};
|
|
3561
3550
|
}
|
|
3562
|
-
function
|
|
3551
|
+
function Gr(e, t) {
|
|
3563
3552
|
const n = Yr(e, t), r = {
|
|
3564
3553
|
type: Cd(t),
|
|
3565
3554
|
value: Rd(t)
|
|
@@ -3568,12 +3557,12 @@ function Vr(e, t) {
|
|
|
3568
3557
|
}
|
|
3569
3558
|
function Id(e, t, n, r) {
|
|
3570
3559
|
const i = j()?.getOptions().normalizeDepth, o = Nd(t), c = {
|
|
3571
|
-
__serialized__:
|
|
3560
|
+
__serialized__: fo(t, i)
|
|
3572
3561
|
};
|
|
3573
3562
|
if (o)
|
|
3574
3563
|
return {
|
|
3575
3564
|
exception: {
|
|
3576
|
-
values: [
|
|
3565
|
+
values: [Gr(e, o)]
|
|
3577
3566
|
},
|
|
3578
3567
|
extra: c
|
|
3579
3568
|
};
|
|
@@ -3597,7 +3586,7 @@ function Id(e, t, n, r) {
|
|
|
3597
3586
|
function Qn(e, t) {
|
|
3598
3587
|
return {
|
|
3599
3588
|
exception: {
|
|
3600
|
-
values: [
|
|
3589
|
+
values: [Gr(e, t)]
|
|
3601
3590
|
}
|
|
3602
3591
|
};
|
|
3603
3592
|
}
|
|
@@ -3616,16 +3605,16 @@ function kd(e) {
|
|
|
3616
3605
|
function Td(e) {
|
|
3617
3606
|
return typeof e.framesToPop == "number" ? e.framesToPop : 0;
|
|
3618
3607
|
}
|
|
3619
|
-
function
|
|
3608
|
+
function Ho(e) {
|
|
3620
3609
|
return typeof WebAssembly < "u" && typeof WebAssembly.Exception < "u" ? e instanceof WebAssembly.Exception : !1;
|
|
3621
3610
|
}
|
|
3622
3611
|
function Cd(e) {
|
|
3623
3612
|
const t = e?.name;
|
|
3624
|
-
return !t &&
|
|
3613
|
+
return !t && Ho(e) ? e.message && Array.isArray(e.message) && e.message.length == 2 ? e.message[0] : "WebAssembly.Exception" : t;
|
|
3625
3614
|
}
|
|
3626
3615
|
function Rd(e) {
|
|
3627
3616
|
const t = e?.message;
|
|
3628
|
-
return
|
|
3617
|
+
return Ho(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? ni(t.error) : ni(e) : "No error message";
|
|
3629
3618
|
}
|
|
3630
3619
|
function xd(e, t, n, r) {
|
|
3631
3620
|
const s = n?.syntheticException || void 0, i = Kr(e, t, s, r);
|
|
@@ -3637,9 +3626,9 @@ function Md(e, t, n = "info", r, s) {
|
|
|
3637
3626
|
}
|
|
3638
3627
|
function Kr(e, t, n, r, s) {
|
|
3639
3628
|
let i;
|
|
3640
|
-
if (
|
|
3629
|
+
if (Yi(t) && t.error)
|
|
3641
3630
|
return Qn(e, t.error);
|
|
3642
|
-
if (Is(t) ||
|
|
3631
|
+
if (Is(t) || hc(t)) {
|
|
3643
3632
|
const o = t;
|
|
3644
3633
|
if ("stack" in t)
|
|
3645
3634
|
i = Qn(e, t);
|
|
@@ -3673,8 +3662,8 @@ function br(e, t, n, r) {
|
|
|
3673
3662
|
return s.message = t, s;
|
|
3674
3663
|
}
|
|
3675
3664
|
function Od(e, { isUnhandledRejection: t }) {
|
|
3676
|
-
const n =
|
|
3677
|
-
return
|
|
3665
|
+
const n = bc(e), r = t ? "promise rejection" : "exception";
|
|
3666
|
+
return Yi(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : En(e) ? `Event \`${Ad(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
|
|
3678
3667
|
}
|
|
3679
3668
|
function Ad(e) {
|
|
3680
3669
|
try {
|
|
@@ -3698,8 +3687,8 @@ class Dd extends El {
|
|
|
3698
3687
|
* @param options Configuration options for this SDK.
|
|
3699
3688
|
*/
|
|
3700
3689
|
constructor(t) {
|
|
3701
|
-
const n = Ld(t), r =
|
|
3702
|
-
|
|
3690
|
+
const n = Ld(t), r = V.SENTRY_SDK_SOURCE || yd();
|
|
3691
|
+
Do(n, "browser", ["browser"], r), n._metadata?.sdk && (n._metadata.sdk.settings = {
|
|
3703
3692
|
infer_ip: n.sendDefaultPii ? "auto" : "never",
|
|
3704
3693
|
// purposefully allowing already passed settings to override the default
|
|
3705
3694
|
...n._metadata.sdk.settings
|
|
@@ -3711,8 +3700,8 @@ class Dd extends El {
|
|
|
3711
3700
|
_experiments: c,
|
|
3712
3701
|
enableMetrics: a
|
|
3713
3702
|
} = this._options, u = a ?? c?.enableMetrics ?? !0;
|
|
3714
|
-
|
|
3715
|
-
|
|
3703
|
+
V.document && (i || o || u) && V.document.addEventListener("visibilitychange", () => {
|
|
3704
|
+
V.document.visibilityState === "hidden" && (i && this._flushOutcomes(), o && gr(this), u && Io(this));
|
|
3716
3705
|
}), s && this.on("beforeSendSession", Ll);
|
|
3717
3706
|
}
|
|
3718
3707
|
/**
|
|
@@ -3736,7 +3725,7 @@ class Dd extends El {
|
|
|
3736
3725
|
}
|
|
3737
3726
|
function Ld(e) {
|
|
3738
3727
|
return {
|
|
3739
|
-
release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ :
|
|
3728
|
+
release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : V.SENTRY_RELEASE?.id,
|
|
3740
3729
|
// This supports the variable that sentry-webpack-plugin injects
|
|
3741
3730
|
sendClientReports: !0,
|
|
3742
3731
|
// We default this to true, as it is the safer scenario
|
|
@@ -3749,7 +3738,7 @@ const bt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = N, Pd = (e, t)
|
|
|
3749
3738
|
return (o) => {
|
|
3750
3739
|
t.value >= 0 && (o || r) && (i = t.value - (s ?? 0), (i || s === void 0) && (s = t.value, t.delta = i, t.rating = Pd(t.value, n), e(t)));
|
|
3751
3740
|
};
|
|
3752
|
-
},
|
|
3741
|
+
}, Wo = (e = !0) => {
|
|
3753
3742
|
const t = L.performance?.getEntriesByType?.("navigation")[0];
|
|
3754
3743
|
if (
|
|
3755
3744
|
// sentry-specific change:
|
|
@@ -3757,7 +3746,7 @@ const bt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, L = N, Pd = (e, t)
|
|
|
3757
3746
|
!e || t && t.responseStart > 0 && t.responseStart < performance.now()
|
|
3758
3747
|
)
|
|
3759
3748
|
return t;
|
|
3760
|
-
}, kn = () =>
|
|
3749
|
+
}, kn = () => Wo()?.activationStart ?? 0;
|
|
3761
3750
|
function Xe(e, t, n) {
|
|
3762
3751
|
L.document && L.addEventListener(e, t, n);
|
|
3763
3752
|
}
|
|
@@ -3765,10 +3754,10 @@ function sn(e, t, n) {
|
|
|
3765
3754
|
L.document && L.removeEventListener(e, t, n);
|
|
3766
3755
|
}
|
|
3767
3756
|
let Je = -1;
|
|
3768
|
-
const
|
|
3757
|
+
const zo = /* @__PURE__ */ new Set(), Fd = () => L.document?.visibilityState === "hidden" && !L.document?.prerendering ? 0 : 1 / 0, Qt = (e) => {
|
|
3769
3758
|
if (Bd(e) && Je > -1) {
|
|
3770
3759
|
if (e.type === "visibilitychange" || e.type === "pagehide")
|
|
3771
|
-
for (const t of
|
|
3760
|
+
for (const t of zo)
|
|
3772
3761
|
t();
|
|
3773
3762
|
isFinite(Je) || (Je = e.type === "visibilitychange" ? e.timeStamp : 0, sn("prerenderingchange", Qt, !0));
|
|
3774
3763
|
}
|
|
@@ -3782,7 +3771,7 @@ const Ho = /* @__PURE__ */ new Set(), Fd = () => L.document?.visibilityState ===
|
|
|
3782
3771
|
return Je;
|
|
3783
3772
|
},
|
|
3784
3773
|
onHidden(e) {
|
|
3785
|
-
|
|
3774
|
+
zo.add(e);
|
|
3786
3775
|
}
|
|
3787
3776
|
};
|
|
3788
3777
|
};
|
|
@@ -3790,7 +3779,7 @@ function Bd(e) {
|
|
|
3790
3779
|
return e.type === "pagehide" || L.document?.visibilityState === "hidden";
|
|
3791
3780
|
}
|
|
3792
3781
|
const Ud = () => `v5-${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`, Cn = (e, t = -1) => {
|
|
3793
|
-
const n =
|
|
3782
|
+
const n = Wo();
|
|
3794
3783
|
let r = "navigate";
|
|
3795
3784
|
return n && (L.document?.prerendering || kn() > 0 ? r = "prerender" : L.document?.wasDiscarded ? r = "restore" : n.type && (r = n.type.replace(/_/g, "-"))), {
|
|
3796
3785
|
name: e,
|
|
@@ -3875,22 +3864,22 @@ const at = (e, t, n = {}) => {
|
|
|
3875
3864
|
})
|
|
3876
3865
|
);
|
|
3877
3866
|
};
|
|
3878
|
-
let
|
|
3867
|
+
let jo = 0, er = 1 / 0, $t = 0;
|
|
3879
3868
|
const jd = (e) => {
|
|
3880
3869
|
e.forEach((t) => {
|
|
3881
|
-
t.interactionId && (er = Math.min(er, t.interactionId), $t = Math.max($t, t.interactionId),
|
|
3870
|
+
t.interactionId && (er = Math.min(er, t.interactionId), $t = Math.max($t, t.interactionId), jo = $t ? ($t - er) / 7 + 1 : 0);
|
|
3882
3871
|
});
|
|
3883
3872
|
};
|
|
3884
3873
|
let vr;
|
|
3885
|
-
const
|
|
3874
|
+
const qo = () => vr ? jo : performance.interactionCount || 0, qd = () => {
|
|
3886
3875
|
"interactionCount" in performance || vr || (vr = at("event", jd, {
|
|
3887
3876
|
type: "event",
|
|
3888
3877
|
buffered: !0,
|
|
3889
3878
|
durationThreshold: 0
|
|
3890
3879
|
}));
|
|
3891
3880
|
}, tr = 10;
|
|
3892
|
-
let
|
|
3893
|
-
const
|
|
3881
|
+
let Vo = 0;
|
|
3882
|
+
const Vd = () => qo() - Vo;
|
|
3894
3883
|
class an {
|
|
3895
3884
|
constructor() {
|
|
3896
3885
|
an.prototype.__init.call(this), an.prototype.__init2.call(this);
|
|
@@ -3916,7 +3905,7 @@ class an {
|
|
|
3916
3905
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
3917
3906
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility, jsdoc/require-jsdoc
|
|
3918
3907
|
_resetInteractions() {
|
|
3919
|
-
|
|
3908
|
+
Vo = qo(), this._longestInteractionList.length = 0, this._longestInteractionMap.clear();
|
|
3920
3909
|
}
|
|
3921
3910
|
/**
|
|
3922
3911
|
* Returns the estimated p98 longest interaction based on the stored
|
|
@@ -3926,7 +3915,7 @@ class an {
|
|
|
3926
3915
|
_estimateP98LongestInteraction() {
|
|
3927
3916
|
const t = Math.min(
|
|
3928
3917
|
this._longestInteractionList.length - 1,
|
|
3929
|
-
Math.floor(
|
|
3918
|
+
Math.floor(Vd() / 50)
|
|
3930
3919
|
);
|
|
3931
3920
|
return this._longestInteractionList[t];
|
|
3932
3921
|
}
|
|
@@ -3956,12 +3945,12 @@ class an {
|
|
|
3956
3945
|
}
|
|
3957
3946
|
}
|
|
3958
3947
|
}
|
|
3959
|
-
const
|
|
3948
|
+
const Go = (e) => {
|
|
3960
3949
|
const t = L.requestIdleCallback || L.setTimeout;
|
|
3961
3950
|
L.document?.visibilityState === "hidden" ? e() : (e = Jr(e), Xe("visibilitychange", e, { once: !0, capture: !0 }), Xe("pagehide", e, { once: !0, capture: !0 }), t(() => {
|
|
3962
3951
|
e(), sn("visibilitychange", e, { capture: !0 }), sn("pagehide", e, { capture: !0 });
|
|
3963
3952
|
}));
|
|
3964
|
-
},
|
|
3953
|
+
}, Gd = [200, 500], Yd = 40, Kd = (e, t = {}) => {
|
|
3965
3954
|
if (!(globalThis.PerformanceEventTiming && "interactionId" in PerformanceEventTiming.prototype))
|
|
3966
3955
|
return;
|
|
3967
3956
|
const n = Tn();
|
|
@@ -3970,7 +3959,7 @@ const qo = (e) => {
|
|
|
3970
3959
|
const r = Cn("INP");
|
|
3971
3960
|
let s;
|
|
3972
3961
|
const i = Xr(t, an), o = (a) => {
|
|
3973
|
-
|
|
3962
|
+
Go(() => {
|
|
3974
3963
|
for (const d of a)
|
|
3975
3964
|
i._processEntry(d);
|
|
3976
3965
|
const u = i._estimateP98LongestInteraction();
|
|
@@ -3985,7 +3974,7 @@ const qo = (e) => {
|
|
|
3985
3974
|
// gained.
|
|
3986
3975
|
durationThreshold: t.durationThreshold ?? Yd
|
|
3987
3976
|
});
|
|
3988
|
-
s = wn(e, r,
|
|
3977
|
+
s = wn(e, r, Gd, t.reportAllChanges), c && (c.observe({ type: "first-input", buffered: !0 }), n.onHidden(() => {
|
|
3989
3978
|
o(c.takeRecords()), s(!0);
|
|
3990
3979
|
}));
|
|
3991
3980
|
});
|
|
@@ -4011,7 +4000,7 @@ const Jd = [2500, 4e3], Qd = (e, t = {}) => {
|
|
|
4011
4000
|
const a = Jr(() => {
|
|
4012
4001
|
o(c.takeRecords()), c.disconnect(), s(!0);
|
|
4013
4002
|
}), u = (d) => {
|
|
4014
|
-
d.isTrusted && (
|
|
4003
|
+
d.isTrusted && (Go(a), sn(d.type, u, {
|
|
4015
4004
|
capture: !0
|
|
4016
4005
|
}));
|
|
4017
4006
|
};
|
|
@@ -4022,18 +4011,18 @@ const Jd = [2500, 4e3], Qd = (e, t = {}) => {
|
|
|
4022
4011
|
}
|
|
4023
4012
|
});
|
|
4024
4013
|
}, pt = {}, cn = {};
|
|
4025
|
-
let
|
|
4014
|
+
let Yo, Ko, Xo;
|
|
4026
4015
|
function Zd(e, t = !1) {
|
|
4027
|
-
return Zr("cls", e, rf,
|
|
4016
|
+
return Zr("cls", e, rf, Yo, t);
|
|
4028
4017
|
}
|
|
4029
4018
|
function ef(e, t = !1) {
|
|
4030
|
-
return Zr("lcp", e, sf,
|
|
4019
|
+
return Zr("lcp", e, sf, Ko, t);
|
|
4031
4020
|
}
|
|
4032
4021
|
function tf(e) {
|
|
4033
|
-
return Zr("inp", e, of,
|
|
4022
|
+
return Zr("inp", e, of, Xo);
|
|
4034
4023
|
}
|
|
4035
4024
|
function nf(e, t) {
|
|
4036
|
-
return
|
|
4025
|
+
return Jo(e, t), cn[e] || (af(e), cn[e] = !0), Qo(e, t);
|
|
4037
4026
|
}
|
|
4038
4027
|
function Rn(e, t) {
|
|
4039
4028
|
const n = pt[e];
|
|
@@ -4056,7 +4045,7 @@ function rf() {
|
|
|
4056
4045
|
(e) => {
|
|
4057
4046
|
Rn("cls", {
|
|
4058
4047
|
metric: e
|
|
4059
|
-
}),
|
|
4048
|
+
}), Yo = e;
|
|
4060
4049
|
},
|
|
4061
4050
|
// We want the callback to be called whenever the CLS value updates.
|
|
4062
4051
|
// By default, the callback is only called when the tab goes to the background.
|
|
@@ -4068,7 +4057,7 @@ function sf() {
|
|
|
4068
4057
|
(e) => {
|
|
4069
4058
|
Rn("lcp", {
|
|
4070
4059
|
metric: e
|
|
4071
|
-
}),
|
|
4060
|
+
}), Ko = e;
|
|
4072
4061
|
},
|
|
4073
4062
|
// We want the callback to be called whenever the LCP value updates.
|
|
4074
4063
|
// By default, the callback is only called when the tab goes to the background.
|
|
@@ -4079,13 +4068,13 @@ function of() {
|
|
|
4079
4068
|
return Kd((e) => {
|
|
4080
4069
|
Rn("inp", {
|
|
4081
4070
|
metric: e
|
|
4082
|
-
}),
|
|
4071
|
+
}), Xo = e;
|
|
4083
4072
|
});
|
|
4084
4073
|
}
|
|
4085
4074
|
function Zr(e, t, n, r, s = !1) {
|
|
4086
|
-
|
|
4075
|
+
Jo(e, t);
|
|
4087
4076
|
let i;
|
|
4088
|
-
return cn[e] || (i = n(), cn[e] = !0), r && t({ metric: r }),
|
|
4077
|
+
return cn[e] || (i = n(), cn[e] = !0), r && t({ metric: r }), Qo(e, t, s ? i : void 0);
|
|
4089
4078
|
}
|
|
4090
4079
|
function af(e) {
|
|
4091
4080
|
const t = {};
|
|
@@ -4097,10 +4086,10 @@ function af(e) {
|
|
|
4097
4086
|
t
|
|
4098
4087
|
);
|
|
4099
4088
|
}
|
|
4100
|
-
function
|
|
4089
|
+
function Jo(e, t) {
|
|
4101
4090
|
pt[e] = pt[e] || [], pt[e].push(t);
|
|
4102
4091
|
}
|
|
4103
|
-
function
|
|
4092
|
+
function Qo(e, t, n) {
|
|
4104
4093
|
return () => {
|
|
4105
4094
|
n && n();
|
|
4106
4095
|
const r = pt[e];
|
|
@@ -4111,14 +4100,14 @@ function Xo(e, t, n) {
|
|
|
4111
4100
|
};
|
|
4112
4101
|
}
|
|
4113
4102
|
const cf = 1e3;
|
|
4114
|
-
let
|
|
4115
|
-
function
|
|
4103
|
+
let fi, Ir, wr;
|
|
4104
|
+
function Zo(e) {
|
|
4116
4105
|
Be("dom", e), Ue("dom", uf);
|
|
4117
4106
|
}
|
|
4118
4107
|
function uf() {
|
|
4119
4108
|
if (!L.document)
|
|
4120
4109
|
return;
|
|
4121
|
-
const e = fe.bind(null, "dom"), t =
|
|
4110
|
+
const e = fe.bind(null, "dom"), t = pi(e, !0);
|
|
4122
4111
|
L.document.addEventListener("click", t, !1), L.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((n) => {
|
|
4123
4112
|
const s = L[n]?.prototype;
|
|
4124
4113
|
s?.hasOwnProperty?.("addEventListener") && (ne(s, "addEventListener", function(i) {
|
|
@@ -4127,7 +4116,7 @@ function uf() {
|
|
|
4127
4116
|
try {
|
|
4128
4117
|
const u = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, d = u[o] = u[o] || { refCount: 0 };
|
|
4129
4118
|
if (!d.handler) {
|
|
4130
|
-
const l =
|
|
4119
|
+
const l = pi(e);
|
|
4131
4120
|
d.handler = l, i.call(this, o, l, a);
|
|
4132
4121
|
}
|
|
4133
4122
|
d.refCount++;
|
|
@@ -4165,7 +4154,7 @@ function lf(e) {
|
|
|
4165
4154
|
function df(e, t) {
|
|
4166
4155
|
return e !== "keypress" ? !1 : t?.tagName ? !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) : !0;
|
|
4167
4156
|
}
|
|
4168
|
-
function
|
|
4157
|
+
function pi(e, t = !1) {
|
|
4169
4158
|
return (n) => {
|
|
4170
4159
|
if (!n || n._sentryCaptured)
|
|
4171
4160
|
return;
|
|
@@ -4174,7 +4163,7 @@ function fi(e, t = !1) {
|
|
|
4174
4163
|
return;
|
|
4175
4164
|
Re(n, "_sentryCaptured", !0), r && !r._sentryId && Re(r, "_sentryId", se());
|
|
4176
4165
|
const s = n.type === "keypress" ? "input" : n.type;
|
|
4177
|
-
lf(n) || (e({ event: n, name: s, global: t }), Ir = n.type, wr = r ? r._sentryId : void 0), clearTimeout(
|
|
4166
|
+
lf(n) || (e({ event: n, name: s, global: t }), Ir = n.type, wr = r ? r._sentryId : void 0), clearTimeout(fi), fi = L.setTimeout(() => {
|
|
4178
4167
|
wr = void 0, Ir = void 0;
|
|
4179
4168
|
}, cf);
|
|
4180
4169
|
};
|
|
@@ -4221,7 +4210,7 @@ function hf(e) {
|
|
|
4221
4210
|
}
|
|
4222
4211
|
}
|
|
4223
4212
|
const Zt = {};
|
|
4224
|
-
function
|
|
4213
|
+
function ea(e) {
|
|
4225
4214
|
const t = Zt[e];
|
|
4226
4215
|
if (t)
|
|
4227
4216
|
return t;
|
|
@@ -4244,7 +4233,7 @@ function mf(e) {
|
|
|
4244
4233
|
Zt[e] = void 0;
|
|
4245
4234
|
}
|
|
4246
4235
|
function Lt(...e) {
|
|
4247
|
-
return
|
|
4236
|
+
return ea("setTimeout")(...e);
|
|
4248
4237
|
}
|
|
4249
4238
|
const qe = "__sentry_xhr_v3__";
|
|
4250
4239
|
function gf(e) {
|
|
@@ -4314,17 +4303,17 @@ function yf(e) {
|
|
|
4314
4303
|
}
|
|
4315
4304
|
}
|
|
4316
4305
|
const Sf = /* @__PURE__ */ Symbol.for("sentry__originalRequestBody");
|
|
4317
|
-
function
|
|
4306
|
+
function ta(e) {
|
|
4318
4307
|
return new URLSearchParams(e).toString();
|
|
4319
4308
|
}
|
|
4320
|
-
function
|
|
4309
|
+
function na(e, t = S) {
|
|
4321
4310
|
try {
|
|
4322
4311
|
if (typeof e == "string")
|
|
4323
4312
|
return [e];
|
|
4324
4313
|
if (e instanceof URLSearchParams)
|
|
4325
4314
|
return [e.toString()];
|
|
4326
4315
|
if (e instanceof FormData)
|
|
4327
|
-
return [
|
|
4316
|
+
return [ta(e)];
|
|
4328
4317
|
if (!e)
|
|
4329
4318
|
return [void 0];
|
|
4330
4319
|
} catch (n) {
|
|
@@ -4332,7 +4321,7 @@ function ea(e, t = S) {
|
|
|
4332
4321
|
}
|
|
4333
4322
|
return bt && t.log("Skipping network body because of body type", e), [void 0, "UNPARSEABLE_BODY_TYPE"];
|
|
4334
4323
|
}
|
|
4335
|
-
function
|
|
4324
|
+
function ra(e = []) {
|
|
4336
4325
|
if (e.length >= 2 && e[1] && typeof e[1] == "object" && "body" in e[1])
|
|
4337
4326
|
return e[1].body;
|
|
4338
4327
|
if (e.length >= 1 && e[0] instanceof Request) {
|
|
@@ -4354,7 +4343,7 @@ function Ef(e) {
|
|
|
4354
4343
|
}, {}) : {};
|
|
4355
4344
|
}
|
|
4356
4345
|
const bf = 40;
|
|
4357
|
-
function vf(e, t =
|
|
4346
|
+
function vf(e, t = ea("fetch")) {
|
|
4358
4347
|
let n = 0, r = 0;
|
|
4359
4348
|
async function s(i) {
|
|
4360
4349
|
const o = i.body.length;
|
|
@@ -4396,7 +4385,7 @@ function vf(e, t = Qo("fetch")) {
|
|
|
4396
4385
|
return ml(
|
|
4397
4386
|
e,
|
|
4398
4387
|
s,
|
|
4399
|
-
|
|
4388
|
+
Vr(e.bufferSize || bf)
|
|
4400
4389
|
);
|
|
4401
4390
|
}
|
|
4402
4391
|
const xn = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, If = 30, wf = 50;
|
|
@@ -4427,7 +4416,7 @@ const kf = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Tf = /^\s*at (?:(.+?\)(?: \
|
|
|
4427
4416
|
const c = Cf.exec(r[2]);
|
|
4428
4417
|
c && (r[2] = c[1], r[3] = c[2], r[4] = c[3]);
|
|
4429
4418
|
}
|
|
4430
|
-
const [i, o] =
|
|
4419
|
+
const [i, o] = sa(r[1] || Pe, r[2]);
|
|
4431
4420
|
return kr(o, i, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
|
|
4432
4421
|
}
|
|
4433
4422
|
}, Mf = [If, xf], Of = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Af = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, Nf = (e) => {
|
|
@@ -4438,9 +4427,9 @@ const kf = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Tf = /^\s*at (?:(.+?\)(?: \
|
|
|
4438
4427
|
i && (t[1] = t[1] || "eval", t[3] = i[1], t[4] = i[2], t[5] = "");
|
|
4439
4428
|
}
|
|
4440
4429
|
let r = t[3], s = t[1] || Pe;
|
|
4441
|
-
return [s, r] =
|
|
4430
|
+
return [s, r] = sa(s, r), kr(r, s, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
|
|
4442
4431
|
}
|
|
4443
|
-
}, Df = [wf, Nf], Lf = [Mf, Df], Pf =
|
|
4432
|
+
}, Df = [wf, Nf], Lf = [Mf, Df], Pf = qi(...Lf), sa = (e, t) => {
|
|
4444
4433
|
const n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
|
|
4445
4434
|
return n || r ? [
|
|
4446
4435
|
e.indexOf("@") !== -1 ? e.split("@")[0] : Pe,
|
|
@@ -4459,7 +4448,7 @@ const kf = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Tf = /^\s*at (?:(.+?\)(?: \
|
|
|
4459
4448
|
return {
|
|
4460
4449
|
name: Ff,
|
|
4461
4450
|
setup(n) {
|
|
4462
|
-
t.console && Zl(Wf(n)), t.dom &&
|
|
4451
|
+
t.console && Zl(Wf(n)), t.dom && Zo(Hf(n, t.dom)), t.xhr && gf(zf(n)), t.fetch && pd(jf(n)), t.history && es(qf(n)), t.sentry && n.on("beforeSendEvent", $f(n));
|
|
4463
4452
|
}
|
|
4464
4453
|
};
|
|
4465
4454
|
}), Uf = Bf;
|
|
@@ -4487,8 +4476,8 @@ function Hf(e, t) {
|
|
|
4487
4476
|
`\`dom.maxStringLength\` cannot exceed ${Wt}, but a value of ${c} was configured. Sentry will use ${Wt} instead.`
|
|
4488
4477
|
), c = Wt), typeof o == "string" && (o = [o]);
|
|
4489
4478
|
try {
|
|
4490
|
-
const u = r.event, d =
|
|
4491
|
-
s = bn(d, { keyAttrs: o, maxStringLength: c }), i =
|
|
4479
|
+
const u = r.event, d = Vf(u) ? u.target : u;
|
|
4480
|
+
s = bn(d, { keyAttrs: o, maxStringLength: c }), i = Ec(d);
|
|
4492
4481
|
} catch {
|
|
4493
4482
|
s = "<unknown>";
|
|
4494
4483
|
}
|
|
@@ -4515,7 +4504,7 @@ function Wf(e) {
|
|
|
4515
4504
|
arguments: n.args,
|
|
4516
4505
|
logger: "console"
|
|
4517
4506
|
},
|
|
4518
|
-
level:
|
|
4507
|
+
level: Po(n.level),
|
|
4519
4508
|
message: Ts(n.args, " ")
|
|
4520
4509
|
};
|
|
4521
4510
|
if (n.level === "assert")
|
|
@@ -4549,7 +4538,7 @@ function zf(e) {
|
|
|
4549
4538
|
category: "xhr",
|
|
4550
4539
|
data: d,
|
|
4551
4540
|
type: "http",
|
|
4552
|
-
level:
|
|
4541
|
+
level: Uo(a)
|
|
4553
4542
|
};
|
|
4554
4543
|
e.emit("beforeOutgoingRequestBreadcrumb", f, l), xe(f, l);
|
|
4555
4544
|
};
|
|
@@ -4588,7 +4577,7 @@ function jf(e) {
|
|
|
4588
4577
|
category: "fetch",
|
|
4589
4578
|
data: o,
|
|
4590
4579
|
type: "http",
|
|
4591
|
-
level:
|
|
4580
|
+
level: Uo(o.status_code)
|
|
4592
4581
|
};
|
|
4593
4582
|
e.emit("beforeOutgoingRequestBreadcrumb", a, c), xe(a, c);
|
|
4594
4583
|
}
|
|
@@ -4599,7 +4588,7 @@ function qf(e) {
|
|
|
4599
4588
|
if (j() !== e)
|
|
4600
4589
|
return;
|
|
4601
4590
|
let r = n.from, s = n.to;
|
|
4602
|
-
const i = Jn(
|
|
4591
|
+
const i = Jn(V.location.href);
|
|
4603
4592
|
let o = r ? Jn(r) : void 0;
|
|
4604
4593
|
const c = Jn(s);
|
|
4605
4594
|
o?.path || (o = i), i.protocol === c.protocol && i.host === c.host && (s = c.relative), i.protocol === o.protocol && i.host === o.host && (r = o.relative), xe({
|
|
@@ -4611,10 +4600,10 @@ function qf(e) {
|
|
|
4611
4600
|
});
|
|
4612
4601
|
};
|
|
4613
4602
|
}
|
|
4614
|
-
function
|
|
4603
|
+
function Vf(e) {
|
|
4615
4604
|
return !!e && !!e.target;
|
|
4616
4605
|
}
|
|
4617
|
-
const
|
|
4606
|
+
const Gf = [
|
|
4618
4607
|
"EventTarget",
|
|
4619
4608
|
"Window",
|
|
4620
4609
|
"Node",
|
|
@@ -4661,13 +4650,13 @@ const Vf = [
|
|
|
4661
4650
|
// TODO: This currently only works for the first client this is setup
|
|
4662
4651
|
// We may want to adjust this to check for client etc.
|
|
4663
4652
|
setupOnce() {
|
|
4664
|
-
t.setTimeout && ne(
|
|
4653
|
+
t.setTimeout && ne(V, "setTimeout", hi), t.setInterval && ne(V, "setInterval", hi), t.requestAnimationFrame && ne(V, "requestAnimationFrame", Jf), t.XMLHttpRequest && "XMLHttpRequest" in V && ne(XMLHttpRequest.prototype, "send", Qf);
|
|
4665
4654
|
const n = t.eventTarget;
|
|
4666
|
-
n && (Array.isArray(n) ? n :
|
|
4655
|
+
n && (Array.isArray(n) ? n : Gf).forEach((s) => Zf(s, t));
|
|
4667
4656
|
}
|
|
4668
4657
|
};
|
|
4669
4658
|
}), Xf = Kf;
|
|
4670
|
-
function
|
|
4659
|
+
function hi(e) {
|
|
4671
4660
|
return function(...t) {
|
|
4672
4661
|
const n = t[0];
|
|
4673
4662
|
return t[0] = tt(n, {
|
|
@@ -4713,7 +4702,7 @@ function Qf(e) {
|
|
|
4713
4702
|
};
|
|
4714
4703
|
}
|
|
4715
4704
|
function Zf(e, t) {
|
|
4716
|
-
const r =
|
|
4705
|
+
const r = V[e]?.prototype;
|
|
4717
4706
|
r?.hasOwnProperty?.("addEventListener") && (ne(r, "addEventListener", function(s) {
|
|
4718
4707
|
return function(i, o, c) {
|
|
4719
4708
|
try {
|
|
@@ -4766,18 +4755,18 @@ const np = (e = {}) => {
|
|
|
4766
4755
|
return {
|
|
4767
4756
|
name: "BrowserSession",
|
|
4768
4757
|
setupOnce() {
|
|
4769
|
-
if (typeof
|
|
4758
|
+
if (typeof V.document > "u") {
|
|
4770
4759
|
xn && S.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
|
|
4771
4760
|
return;
|
|
4772
4761
|
}
|
|
4773
|
-
|
|
4762
|
+
Vs({ ignoreDuration: !0 }), Kn();
|
|
4774
4763
|
const n = _e();
|
|
4775
4764
|
let r = n.getUser();
|
|
4776
4765
|
n.addScopeListener((s) => {
|
|
4777
4766
|
const i = s.getUser();
|
|
4778
4767
|
(r?.id !== i?.id || r?.ip_address !== i?.ip_address) && (Kn(), r = i);
|
|
4779
4768
|
}), t === "route" && es(({ from: s, to: i }) => {
|
|
4780
|
-
s !== i && (
|
|
4769
|
+
s !== i && (Vs({ ignoreDuration: !0 }), Kn());
|
|
4781
4770
|
});
|
|
4782
4771
|
}
|
|
4783
4772
|
};
|
|
@@ -4793,7 +4782,7 @@ const np = (e = {}) => {
|
|
|
4793
4782
|
})), ip = sp;
|
|
4794
4783
|
function op() {
|
|
4795
4784
|
try {
|
|
4796
|
-
const e =
|
|
4785
|
+
const e = V.Intl;
|
|
4797
4786
|
if (!e)
|
|
4798
4787
|
return;
|
|
4799
4788
|
const t = e.DateTimeFormat().resolvedOptions();
|
|
@@ -4818,14 +4807,14 @@ const ap = "GlobalHandlers", cp = ((e = {}) => {
|
|
|
4818
4807
|
Error.stackTraceLimit = 50;
|
|
4819
4808
|
},
|
|
4820
4809
|
setup(n) {
|
|
4821
|
-
t.onerror && (lp(n),
|
|
4810
|
+
t.onerror && (lp(n), mi("onerror")), t.onunhandledrejection && (dp(n), mi("onunhandledrejection"));
|
|
4822
4811
|
}
|
|
4823
4812
|
};
|
|
4824
4813
|
}), up = cp;
|
|
4825
4814
|
function lp(e) {
|
|
4826
|
-
|
|
4827
|
-
const { stackParser: n, attachStacktrace: r } =
|
|
4828
|
-
if (j() !== e ||
|
|
4815
|
+
lc((t) => {
|
|
4816
|
+
const { stackParser: n, attachStacktrace: r } = ia();
|
|
4817
|
+
if (j() !== e || $o())
|
|
4829
4818
|
return;
|
|
4830
4819
|
const { msg: s, url: i, line: o, column: c, error: a } = t, u = hp(
|
|
4831
4820
|
Kr(n, a || s, void 0, r, !1),
|
|
@@ -4833,7 +4822,7 @@ function lp(e) {
|
|
|
4833
4822
|
o,
|
|
4834
4823
|
c
|
|
4835
4824
|
);
|
|
4836
|
-
u.level = "error",
|
|
4825
|
+
u.level = "error", _o(u, {
|
|
4837
4826
|
originalException: a,
|
|
4838
4827
|
mechanism: {
|
|
4839
4828
|
handled: !1,
|
|
@@ -4843,12 +4832,12 @@ function lp(e) {
|
|
|
4843
4832
|
});
|
|
4844
4833
|
}
|
|
4845
4834
|
function dp(e) {
|
|
4846
|
-
|
|
4847
|
-
const { stackParser: n, attachStacktrace: r } =
|
|
4848
|
-
if (j() !== e ||
|
|
4835
|
+
fc((t) => {
|
|
4836
|
+
const { stackParser: n, attachStacktrace: r } = ia();
|
|
4837
|
+
if (j() !== e || $o())
|
|
4849
4838
|
return;
|
|
4850
4839
|
const s = fp(t), i = Sn(s) ? pp(s) : Kr(n, s, void 0, r, !0);
|
|
4851
|
-
i.level = "error",
|
|
4840
|
+
i.level = "error", _o(i, {
|
|
4852
4841
|
originalException: s,
|
|
4853
4842
|
mechanism: {
|
|
4854
4843
|
handled: !1,
|
|
@@ -4892,10 +4881,10 @@ function hp(e, t, n, r) {
|
|
|
4892
4881
|
lineno: d
|
|
4893
4882
|
}), e;
|
|
4894
4883
|
}
|
|
4895
|
-
function
|
|
4884
|
+
function mi(e) {
|
|
4896
4885
|
xn && S.log(`Global Handler attached: ${e}`);
|
|
4897
4886
|
}
|
|
4898
|
-
function
|
|
4887
|
+
function ia() {
|
|
4899
4888
|
return j()?.getOptions() || {
|
|
4900
4889
|
stackParser: () => [],
|
|
4901
4890
|
attachStacktrace: !1
|
|
@@ -4908,7 +4897,7 @@ function mp(e) {
|
|
|
4908
4897
|
const gp = () => ({
|
|
4909
4898
|
name: "HttpContext",
|
|
4910
4899
|
preprocessEvent(e) {
|
|
4911
|
-
if (!
|
|
4900
|
+
if (!V.navigator && !V.location && !V.document)
|
|
4912
4901
|
return;
|
|
4913
4902
|
const t = vd(), n = {
|
|
4914
4903
|
...t.headers,
|
|
@@ -4928,7 +4917,7 @@ const gp = () => ({
|
|
|
4928
4917
|
const o = i.getOptions();
|
|
4929
4918
|
Ql(
|
|
4930
4919
|
// This differs from the LinkedErrors integration in core by using a different exceptionFromError function
|
|
4931
|
-
|
|
4920
|
+
Gr,
|
|
4932
4921
|
o.stackParser,
|
|
4933
4922
|
n,
|
|
4934
4923
|
t,
|
|
@@ -4946,13 +4935,13 @@ function vp() {
|
|
|
4946
4935
|
}), !0) : !1;
|
|
4947
4936
|
}
|
|
4948
4937
|
function Ip() {
|
|
4949
|
-
if (typeof
|
|
4938
|
+
if (typeof V.window > "u")
|
|
4950
4939
|
return !1;
|
|
4951
|
-
const e =
|
|
4940
|
+
const e = V;
|
|
4952
4941
|
if (e.nw || !(e.chrome || e.browser)?.runtime?.id)
|
|
4953
4942
|
return !1;
|
|
4954
4943
|
const n = vn(), r = ["chrome-extension", "moz-extension", "ms-browser-extension", "safari-web-extension"];
|
|
4955
|
-
return !(
|
|
4944
|
+
return !(V === V.top && r.some((i) => n.startsWith(`${i}://`)));
|
|
4956
4945
|
}
|
|
4957
4946
|
function wp(e) {
|
|
4958
4947
|
return [
|
|
@@ -4977,7 +4966,7 @@ function kp(e = {}) {
|
|
|
4977
4966
|
const r = {
|
|
4978
4967
|
...e,
|
|
4979
4968
|
enabled: t ? !1 : e.enabled,
|
|
4980
|
-
stackParser:
|
|
4969
|
+
stackParser: cc(e.stackParser || Pf),
|
|
4981
4970
|
integrations: sl({
|
|
4982
4971
|
integrations: e.integrations,
|
|
4983
4972
|
defaultIntegrations: n
|
|
@@ -4986,8 +4975,8 @@ function kp(e = {}) {
|
|
|
4986
4975
|
};
|
|
4987
4976
|
return Tl(Dd, r);
|
|
4988
4977
|
}
|
|
4989
|
-
const H = N, ts = "sentryReplaySession", Tp = "replay_event", ns = "Unable to send Replay", Cp = 3e5, Rp = 9e5, xp = 5e3, Mp = 5500, Op = 6e4, Ap = 5e3, Np = 3,
|
|
4990
|
-
var Bp = Object.defineProperty, Up = (e, t, n) => t in e ? Bp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
4978
|
+
const H = N, ts = "sentryReplaySession", Tp = "replay_event", ns = "Unable to send Replay", Cp = 3e5, Rp = 9e5, xp = 5e3, Mp = 5500, Op = 6e4, Ap = 5e3, Np = 3, gi = 15e4, zt = 5e3, Dp = 3e3, Lp = 300, rs = 2e7, Pp = 4999, Fp = 5e4, _i = 36e5;
|
|
4979
|
+
var Bp = Object.defineProperty, Up = (e, t, n) => t in e ? Bp(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, yi = (e, t, n) => Up(e, typeof t != "symbol" ? t + "" : t, n), K = /* @__PURE__ */ ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(K || {});
|
|
4991
4980
|
function $p(e) {
|
|
4992
4981
|
return e.nodeType === e.ELEMENT_NODE;
|
|
4993
4982
|
}
|
|
@@ -5013,7 +5002,7 @@ function un(e) {
|
|
|
5013
5002
|
try {
|
|
5014
5003
|
const t = e.rules || e.cssRules;
|
|
5015
5004
|
return t ? Hp(
|
|
5016
|
-
Array.from(t,
|
|
5005
|
+
Array.from(t, oa).join("")
|
|
5017
5006
|
) : null;
|
|
5018
5007
|
} catch {
|
|
5019
5008
|
return null;
|
|
@@ -5027,7 +5016,7 @@ function zp(e) {
|
|
|
5027
5016
|
}
|
|
5028
5017
|
return `${e.selectorText} { ${t} }`;
|
|
5029
5018
|
}
|
|
5030
|
-
function
|
|
5019
|
+
function oa(e) {
|
|
5031
5020
|
let t;
|
|
5032
5021
|
if (qp(e))
|
|
5033
5022
|
try {
|
|
@@ -5037,7 +5026,7 @@ function sa(e) {
|
|
|
5037
5026
|
Wp(e);
|
|
5038
5027
|
} catch {
|
|
5039
5028
|
}
|
|
5040
|
-
else if (
|
|
5029
|
+
else if (Vp(e)) {
|
|
5041
5030
|
let n = e.cssText;
|
|
5042
5031
|
const r = e.selectorText.includes(":"), s = typeof e.style.all == "string" && e.style.all;
|
|
5043
5032
|
if (s && (n = zp(e)), r && (n = jp(n)), r || s)
|
|
@@ -5052,12 +5041,12 @@ function jp(e) {
|
|
|
5052
5041
|
function qp(e) {
|
|
5053
5042
|
return "styleSheet" in e;
|
|
5054
5043
|
}
|
|
5055
|
-
function
|
|
5044
|
+
function Vp(e) {
|
|
5056
5045
|
return "selectorText" in e;
|
|
5057
5046
|
}
|
|
5058
|
-
class
|
|
5047
|
+
class aa {
|
|
5059
5048
|
constructor() {
|
|
5060
|
-
|
|
5049
|
+
yi(this, "idNodeMap", /* @__PURE__ */ new Map()), yi(this, "nodeMetaMap", /* @__PURE__ */ new WeakMap());
|
|
5061
5050
|
}
|
|
5062
5051
|
getId(t) {
|
|
5063
5052
|
return t ? this.getMeta(t)?.id ?? -1 : -1;
|
|
@@ -5101,8 +5090,8 @@ class ia {
|
|
|
5101
5090
|
this.idNodeMap = /* @__PURE__ */ new Map(), this.nodeMetaMap = /* @__PURE__ */ new WeakMap();
|
|
5102
5091
|
}
|
|
5103
5092
|
}
|
|
5104
|
-
function
|
|
5105
|
-
return new
|
|
5093
|
+
function Gp() {
|
|
5094
|
+
return new aa();
|
|
5106
5095
|
}
|
|
5107
5096
|
function Mn({
|
|
5108
5097
|
maskInputOptions: e,
|
|
@@ -5127,14 +5116,14 @@ function nt(e) {
|
|
|
5127
5116
|
function Tr(e) {
|
|
5128
5117
|
return e.toUpperCase();
|
|
5129
5118
|
}
|
|
5130
|
-
const
|
|
5119
|
+
const Si = "__rrweb_original__";
|
|
5131
5120
|
function Yp(e) {
|
|
5132
5121
|
const t = e.getContext("2d");
|
|
5133
5122
|
if (!t) return !0;
|
|
5134
5123
|
const n = 50;
|
|
5135
5124
|
for (let r = 0; r < e.width; r += n)
|
|
5136
5125
|
for (let s = 0; s < e.height; s += n) {
|
|
5137
|
-
const i = t.getImageData, o =
|
|
5126
|
+
const i = t.getImageData, o = Si in i ? i[Si] : i;
|
|
5138
5127
|
if (new Uint32Array(
|
|
5139
5128
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
5140
5129
|
o.call(
|
|
@@ -5158,7 +5147,7 @@ function ss(e) {
|
|
|
5158
5147
|
function ln(e, t, n) {
|
|
5159
5148
|
return t === "INPUT" && (n === "radio" || n === "checkbox") ? e.getAttribute("value") || "" : e.value;
|
|
5160
5149
|
}
|
|
5161
|
-
function
|
|
5150
|
+
function ca(e, t) {
|
|
5162
5151
|
let n;
|
|
5163
5152
|
try {
|
|
5164
5153
|
n = new URL(e, t ?? window.location.href);
|
|
@@ -5168,9 +5157,9 @@ function oa(e, t) {
|
|
|
5168
5157
|
const r = /\.([0-9a-z]+)(?:$)/i;
|
|
5169
5158
|
return n.pathname.match(r)?.[1] ?? null;
|
|
5170
5159
|
}
|
|
5171
|
-
const
|
|
5172
|
-
function
|
|
5173
|
-
const t =
|
|
5160
|
+
const Ei = {};
|
|
5161
|
+
function ua(e) {
|
|
5162
|
+
const t = Ei[e];
|
|
5174
5163
|
if (t)
|
|
5175
5164
|
return t;
|
|
5176
5165
|
const n = window.document;
|
|
@@ -5184,17 +5173,17 @@ function aa(e) {
|
|
|
5184
5173
|
i[e]), n.head.removeChild(s);
|
|
5185
5174
|
} catch {
|
|
5186
5175
|
}
|
|
5187
|
-
return
|
|
5176
|
+
return Ei[e] = r.bind(
|
|
5188
5177
|
window
|
|
5189
5178
|
);
|
|
5190
5179
|
}
|
|
5191
5180
|
function Cr(...e) {
|
|
5192
|
-
return
|
|
5181
|
+
return ua("setTimeout")(...e);
|
|
5193
5182
|
}
|
|
5194
|
-
function
|
|
5195
|
-
return
|
|
5183
|
+
function la(...e) {
|
|
5184
|
+
return ua("clearTimeout")(...e);
|
|
5196
5185
|
}
|
|
5197
|
-
function
|
|
5186
|
+
function da(e) {
|
|
5198
5187
|
try {
|
|
5199
5188
|
return e.contentDocument;
|
|
5200
5189
|
} catch {
|
|
@@ -5215,7 +5204,7 @@ function Qp(e) {
|
|
|
5215
5204
|
let t = "";
|
|
5216
5205
|
return e.indexOf("//") > -1 ? t = e.split("/").slice(0, 3).join("/") : t = e.split("/")[0], t = t.split("?")[0], t;
|
|
5217
5206
|
}
|
|
5218
|
-
let We,
|
|
5207
|
+
let We, bi;
|
|
5219
5208
|
const Zp = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, eh = /^(?:[a-z+]+:)?\/\//i, th = /^www\..*/i, nh = /^(data:)([^,]*),(.*)/i;
|
|
5220
5209
|
function rh(e, t) {
|
|
5221
5210
|
if (!e || t.size === 0)
|
|
@@ -5272,10 +5261,10 @@ function oh(e, t) {
|
|
|
5272
5261
|
for (; r(ih), !(n >= t.length); ) {
|
|
5273
5262
|
let i = r(sh);
|
|
5274
5263
|
if (i.slice(-1) === ",")
|
|
5275
|
-
i =
|
|
5264
|
+
i = Ve(e, i.substring(0, i.length - 1)), s.push(i);
|
|
5276
5265
|
else {
|
|
5277
5266
|
let o = "";
|
|
5278
|
-
i =
|
|
5267
|
+
i = Ve(e, i);
|
|
5279
5268
|
let c = !1;
|
|
5280
5269
|
for (; ; ) {
|
|
5281
5270
|
const a = t.charAt(n);
|
|
@@ -5294,30 +5283,30 @@ function oh(e, t) {
|
|
|
5294
5283
|
}
|
|
5295
5284
|
return s.join(", ");
|
|
5296
5285
|
}
|
|
5297
|
-
const
|
|
5298
|
-
function
|
|
5286
|
+
const vi = /* @__PURE__ */ new WeakMap();
|
|
5287
|
+
function Ve(e, t) {
|
|
5299
5288
|
return !t || t.trim() === "" ? t : On(e, t);
|
|
5300
5289
|
}
|
|
5301
5290
|
function ah(e) {
|
|
5302
5291
|
return !!(e.tagName === "svg" || e.ownerSVGElement);
|
|
5303
5292
|
}
|
|
5304
5293
|
function On(e, t) {
|
|
5305
|
-
let n =
|
|
5306
|
-
if (n || (n = e.createElement("a"),
|
|
5294
|
+
let n = vi.get(e);
|
|
5295
|
+
if (n || (n = e.createElement("a"), vi.set(e, n)), !t)
|
|
5307
5296
|
t = "";
|
|
5308
5297
|
else if (t.startsWith("blob:") || t.startsWith("data:"))
|
|
5309
5298
|
return t;
|
|
5310
5299
|
return n.setAttribute("href", t), n.href;
|
|
5311
5300
|
}
|
|
5312
|
-
function
|
|
5301
|
+
function fa(e, t, n, r, s, i, o) {
|
|
5313
5302
|
if (!r)
|
|
5314
5303
|
return r;
|
|
5315
5304
|
if (n === "src" || n === "href" && !(t === "use" && r[0] === "#"))
|
|
5316
|
-
return
|
|
5305
|
+
return Ve(e, r);
|
|
5317
5306
|
if (n === "xlink:href" && r[0] !== "#")
|
|
5318
|
-
return
|
|
5307
|
+
return Ve(e, r);
|
|
5319
5308
|
if (n === "background" && (t === "table" || t === "td" || t === "th"))
|
|
5320
|
-
return
|
|
5309
|
+
return Ve(e, r);
|
|
5321
5310
|
if (n === "srcset")
|
|
5322
5311
|
return oh(e, r);
|
|
5323
5312
|
if (n === "style") {
|
|
@@ -5327,10 +5316,10 @@ function la(e, t, n, r, s, i, o) {
|
|
|
5327
5316
|
o
|
|
5328
5317
|
)), c;
|
|
5329
5318
|
} else if (t === "object" && n === "data")
|
|
5330
|
-
return
|
|
5319
|
+
return Ve(e, r);
|
|
5331
5320
|
return typeof i == "function" ? i(n, r, s) : r;
|
|
5332
5321
|
}
|
|
5333
|
-
function
|
|
5322
|
+
function pa(e, t, n) {
|
|
5334
5323
|
return (e === "video" || e === "audio") && t === "autoplay";
|
|
5335
5324
|
}
|
|
5336
5325
|
function ch(e, t, n, r) {
|
|
@@ -5363,7 +5352,7 @@ function uh(e, t) {
|
|
|
5363
5352
|
function De(e, t, n = 1 / 0, r = 0) {
|
|
5364
5353
|
return !e || e.nodeType !== e.ELEMENT_NODE || r > n ? -1 : t(e) ? r : De(e.parentNode, t, n, r + 1);
|
|
5365
5354
|
}
|
|
5366
|
-
function
|
|
5355
|
+
function Ge(e, t) {
|
|
5367
5356
|
return (n) => {
|
|
5368
5357
|
const r = n;
|
|
5369
5358
|
if (r === null) return !1;
|
|
@@ -5401,23 +5390,23 @@ function rt(e, t, n, r, s, i) {
|
|
|
5401
5390
|
if (i) {
|
|
5402
5391
|
if (a = De(
|
|
5403
5392
|
o,
|
|
5404
|
-
|
|
5393
|
+
Ge(r, s)
|
|
5405
5394
|
), a < 0)
|
|
5406
5395
|
return !0;
|
|
5407
5396
|
c = De(
|
|
5408
5397
|
o,
|
|
5409
|
-
|
|
5398
|
+
Ge(t, n),
|
|
5410
5399
|
a >= 0 ? a : 1 / 0
|
|
5411
5400
|
);
|
|
5412
5401
|
} else {
|
|
5413
5402
|
if (c = De(
|
|
5414
5403
|
o,
|
|
5415
|
-
|
|
5404
|
+
Ge(t, n)
|
|
5416
5405
|
), c < 0)
|
|
5417
5406
|
return !1;
|
|
5418
5407
|
a = De(
|
|
5419
5408
|
o,
|
|
5420
|
-
|
|
5409
|
+
Ge(r, s),
|
|
5421
5410
|
c >= 0 ? c : 1 / 0
|
|
5422
5411
|
);
|
|
5423
5412
|
}
|
|
@@ -5441,7 +5430,7 @@ function lh(e, t, n) {
|
|
|
5441
5430
|
s || (t(), s = !0);
|
|
5442
5431
|
}, n);
|
|
5443
5432
|
e.addEventListener("load", () => {
|
|
5444
|
-
|
|
5433
|
+
la(c), s = !0, t();
|
|
5445
5434
|
});
|
|
5446
5435
|
return;
|
|
5447
5436
|
}
|
|
@@ -5462,7 +5451,7 @@ function dh(e, t, n) {
|
|
|
5462
5451
|
r || (t(), r = !0);
|
|
5463
5452
|
}, n);
|
|
5464
5453
|
e.addEventListener("load", () => {
|
|
5465
|
-
|
|
5454
|
+
la(i), r = !0, t();
|
|
5466
5455
|
});
|
|
5467
5456
|
}
|
|
5468
5457
|
function fh(e, t) {
|
|
@@ -5658,7 +5647,7 @@ function mh(e, t) {
|
|
|
5658
5647
|
const M = e.attributes.length;
|
|
5659
5648
|
for (let y = 0; y < M; y++) {
|
|
5660
5649
|
const T = e.attributes[y];
|
|
5661
|
-
T.name && !
|
|
5650
|
+
T.name && !pa(x, T.name, T.value) && (g[T.name] = fa(
|
|
5662
5651
|
n,
|
|
5663
5652
|
x,
|
|
5664
5653
|
nt(T.name),
|
|
@@ -5681,7 +5670,7 @@ function mh(e, t) {
|
|
|
5681
5670
|
y && (g._cssText = dn(y, On(n)));
|
|
5682
5671
|
}
|
|
5683
5672
|
if (x === "input" || x === "textarea" || x === "select" || x === "option") {
|
|
5684
|
-
const y = e, T = ss(y), U = ln(y, Tr(x), T),
|
|
5673
|
+
const y = e, T = ss(y), U = ln(y, Tr(x), T), G = y.checked;
|
|
5685
5674
|
if (T !== "submit" && T !== "button" && U) {
|
|
5686
5675
|
const Y = rt(
|
|
5687
5676
|
y,
|
|
@@ -5702,7 +5691,7 @@ function mh(e, t) {
|
|
|
5702
5691
|
maskInputFn: u
|
|
5703
5692
|
});
|
|
5704
5693
|
}
|
|
5705
|
-
|
|
5694
|
+
G && (g.checked = G);
|
|
5706
5695
|
}
|
|
5707
5696
|
if (x === "option" && (e.selected && !c.select ? g.selected = !0 : delete g.selected), x === "canvas" && f) {
|
|
5708
5697
|
if (e.__context === "2d")
|
|
@@ -5724,17 +5713,17 @@ function mh(e, t) {
|
|
|
5724
5713
|
}
|
|
5725
5714
|
}
|
|
5726
5715
|
if (x === "img" && l) {
|
|
5727
|
-
We || (We = n.createElement("canvas"),
|
|
5728
|
-
const y = e, T = y.currentSrc || y.getAttribute("src") || "<unknown-src>", U = y.crossOrigin,
|
|
5729
|
-
y.removeEventListener("load",
|
|
5716
|
+
We || (We = n.createElement("canvas"), bi = We.getContext("2d"));
|
|
5717
|
+
const y = e, T = y.currentSrc || y.getAttribute("src") || "<unknown-src>", U = y.crossOrigin, G = () => {
|
|
5718
|
+
y.removeEventListener("load", G);
|
|
5730
5719
|
try {
|
|
5731
|
-
We.width = y.naturalWidth, We.height = y.naturalHeight,
|
|
5720
|
+
We.width = y.naturalWidth, We.height = y.naturalHeight, bi.drawImage(y, 0, 0), g.rr_dataURL = We.toDataURL(
|
|
5732
5721
|
d.type,
|
|
5733
5722
|
d.quality
|
|
5734
5723
|
);
|
|
5735
5724
|
} catch (Y) {
|
|
5736
5725
|
if (y.crossOrigin !== "anonymous") {
|
|
5737
|
-
y.crossOrigin = "anonymous", y.complete && y.naturalWidth !== 0 ?
|
|
5726
|
+
y.crossOrigin = "anonymous", y.complete && y.naturalWidth !== 0 ? G() : y.addEventListener("load", G);
|
|
5738
5727
|
return;
|
|
5739
5728
|
} else
|
|
5740
5729
|
console.warn(
|
|
@@ -5743,7 +5732,7 @@ function mh(e, t) {
|
|
|
5743
5732
|
}
|
|
5744
5733
|
y.crossOrigin === "anonymous" && (U ? g.crossOrigin = U : y.removeAttribute("crossorigin"));
|
|
5745
5734
|
};
|
|
5746
|
-
y.complete && y.naturalWidth !== 0 ?
|
|
5735
|
+
y.complete && y.naturalWidth !== 0 ? G() : y.addEventListener("load", G);
|
|
5747
5736
|
}
|
|
5748
5737
|
if ((x === "audio" || x === "video") && (g.rr_mediaState = e.paused ? "paused" : "played", g.rr_mediaCurrentTime = e.currentTime), h || (e.scrollLeft && (g.rr_scrollLeft = e.scrollLeft), e.scrollTop && (g.rr_scrollTop = e.scrollTop)), W) {
|
|
5749
5738
|
const { width: y, height: T } = e.getBoundingClientRect();
|
|
@@ -5753,7 +5742,7 @@ function mh(e, t) {
|
|
|
5753
5742
|
rr_height: `${T}px`
|
|
5754
5743
|
};
|
|
5755
5744
|
}
|
|
5756
|
-
x === "iframe" && !p(g.src) && (!W && !
|
|
5745
|
+
x === "iframe" && !p(g.src) && (!W && !da(e) && (g.rr_src = g.src), delete g.src);
|
|
5757
5746
|
let X;
|
|
5758
5747
|
try {
|
|
5759
5748
|
customElements.get(x) && (X = !0);
|
|
@@ -5780,7 +5769,7 @@ function gh(e, t) {
|
|
|
5780
5769
|
if (t.script && // script tag
|
|
5781
5770
|
(e.tagName === "script" || // (module)preload link
|
|
5782
5771
|
e.tagName === "link" && (e.attributes.rel === "preload" || e.attributes.rel === "modulepreload") || // prefetch link
|
|
5783
|
-
e.tagName === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" &&
|
|
5772
|
+
e.tagName === "link" && e.attributes.rel === "prefetch" && typeof e.attributes.href == "string" && ca(e.attributes.href) === "js"))
|
|
5784
5773
|
return !0;
|
|
5785
5774
|
if (t.headFavicon && (e.tagName === "link" && e.attributes.rel === "shortcut icon" || e.tagName === "meta" && ($(e.attributes.name).match(
|
|
5786
5775
|
/^msapplication-tile(image|color)$/
|
|
@@ -5833,7 +5822,7 @@ function Ye(e, t) {
|
|
|
5833
5822
|
onStylesheetLoad: y,
|
|
5834
5823
|
stylesheetLoadTimeout: T = 5e3,
|
|
5835
5824
|
keepIframeSrcFn: U = () => !1,
|
|
5836
|
-
newlyAddedElement:
|
|
5825
|
+
newlyAddedElement: G = !1,
|
|
5837
5826
|
ignoreCSSAttributes: Y
|
|
5838
5827
|
} = t;
|
|
5839
5828
|
let { preserveWhiteSpace: ae = !0 } = t;
|
|
@@ -5857,7 +5846,7 @@ function Ye(e, t) {
|
|
|
5857
5846
|
inlineImages: D,
|
|
5858
5847
|
recordCanvas: W,
|
|
5859
5848
|
keepIframeSrcFn: U,
|
|
5860
|
-
newlyAddedElement:
|
|
5849
|
+
newlyAddedElement: G,
|
|
5861
5850
|
ignoreCSSAttributes: Y
|
|
5862
5851
|
});
|
|
5863
5852
|
if (!Q)
|
|
@@ -5920,7 +5909,7 @@ function Ye(e, t) {
|
|
|
5920
5909
|
if (e.parentNode && ht(e.parentNode) && mt(e.parentNode) && (C.isShadow = !0), C.type === K.Element && C.tagName === "iframe" && !C.needBlock && lh(
|
|
5921
5910
|
e,
|
|
5922
5911
|
() => {
|
|
5923
|
-
const z =
|
|
5912
|
+
const z = da(e);
|
|
5924
5913
|
if (z && g) {
|
|
5925
5914
|
const pe = Ye(z, {
|
|
5926
5915
|
doc: z,
|
|
@@ -5971,7 +5960,7 @@ function Ye(e, t) {
|
|
|
5971
5960
|
};
|
|
5972
5961
|
z.isConnected && z.addEventListener("load", pe);
|
|
5973
5962
|
}
|
|
5974
|
-
return C.type === K.Element && C.tagName === "link" && typeof C.attributes.rel == "string" && (C.attributes.rel === "stylesheet" || C.attributes.rel === "preload" && typeof C.attributes.href == "string" &&
|
|
5963
|
+
return C.type === K.Element && C.tagName === "link" && typeof C.attributes.rel == "string" && (C.attributes.rel === "stylesheet" || C.attributes.rel === "preload" && typeof C.attributes.href == "string" && ca(C.attributes.href) === "css") && dh(
|
|
5975
5964
|
e,
|
|
5976
5965
|
() => {
|
|
5977
5966
|
if (y) {
|
|
@@ -6016,7 +6005,7 @@ function Ye(e, t) {
|
|
|
6016
6005
|
}
|
|
6017
6006
|
function _h(e, t) {
|
|
6018
6007
|
const {
|
|
6019
|
-
mirror: n = new
|
|
6008
|
+
mirror: n = new aa(),
|
|
6020
6009
|
blockClass: r = "rr-block",
|
|
6021
6010
|
blockSelector: s = null,
|
|
6022
6011
|
unblockSelector: i = null,
|
|
@@ -6115,7 +6104,7 @@ function te(e, t, n = document) {
|
|
|
6115
6104
|
const ze = `Please stop import mirror directly. Instead of that,\r
|
|
6116
6105
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
6117
6106
|
or you can use record.mirror to access the mirror instance during recording.`;
|
|
6118
|
-
let
|
|
6107
|
+
let Ii = {
|
|
6119
6108
|
map: {},
|
|
6120
6109
|
getId() {
|
|
6121
6110
|
return console.error(ze), -1;
|
|
@@ -6133,7 +6122,7 @@ let vi = {
|
|
|
6133
6122
|
console.error(ze);
|
|
6134
6123
|
}
|
|
6135
6124
|
};
|
|
6136
|
-
typeof window < "u" && window.Proxy && window.Reflect && (
|
|
6125
|
+
typeof window < "u" && window.Proxy && window.Reflect && (Ii = new Proxy(Ii, {
|
|
6137
6126
|
get(e, t, n) {
|
|
6138
6127
|
return t === "map" && console.error(ze), Reflect.get(e, t, n);
|
|
6139
6128
|
}
|
|
@@ -6149,7 +6138,7 @@ function wt(e, t, n = {}) {
|
|
|
6149
6138
|
}, c));
|
|
6150
6139
|
};
|
|
6151
6140
|
}
|
|
6152
|
-
function
|
|
6141
|
+
function ha(e, t, n, r, s = window) {
|
|
6153
6142
|
const i = s.Object.getOwnPropertyDescriptor(e, t);
|
|
6154
6143
|
return s.Object.defineProperty(
|
|
6155
6144
|
e,
|
|
@@ -6161,7 +6150,7 @@ function fa(e, t, n, r, s = window) {
|
|
|
6161
6150
|
}, 0), i && i.set && i.set.call(this, o);
|
|
6162
6151
|
}
|
|
6163
6152
|
}
|
|
6164
|
-
), () =>
|
|
6153
|
+
), () => ha(e, t, i || {}, !0);
|
|
6165
6154
|
}
|
|
6166
6155
|
function os(e, t, n) {
|
|
6167
6156
|
try {
|
|
@@ -6184,20 +6173,20 @@ function os(e, t, n) {
|
|
|
6184
6173
|
}
|
|
6185
6174
|
let fn = Date.now;
|
|
6186
6175
|
/* @__PURE__ */ /[1-9][0-9]{12}/.test(Date.now().toString()) || (fn = () => (/* @__PURE__ */ new Date()).getTime());
|
|
6187
|
-
function
|
|
6176
|
+
function ma(e) {
|
|
6188
6177
|
const t = e.document;
|
|
6189
6178
|
return {
|
|
6190
6179
|
left: t.scrollingElement ? t.scrollingElement.scrollLeft : e.pageXOffset !== void 0 ? e.pageXOffset : t?.documentElement.scrollLeft || t?.body?.parentElement?.scrollLeft || t?.body?.scrollLeft || 0,
|
|
6191
6180
|
top: t.scrollingElement ? t.scrollingElement.scrollTop : e.pageYOffset !== void 0 ? e.pageYOffset : t?.documentElement.scrollTop || t?.body?.parentElement?.scrollTop || t?.body?.scrollTop || 0
|
|
6192
6181
|
};
|
|
6193
6182
|
}
|
|
6194
|
-
function
|
|
6183
|
+
function ga() {
|
|
6195
6184
|
return window.innerHeight || document.documentElement && document.documentElement.clientHeight || document.body && document.body.clientHeight;
|
|
6196
6185
|
}
|
|
6197
|
-
function
|
|
6186
|
+
function _a() {
|
|
6198
6187
|
return window.innerWidth || document.documentElement && document.documentElement.clientWidth || document.body && document.body.clientWidth;
|
|
6199
6188
|
}
|
|
6200
|
-
function
|
|
6189
|
+
function ya(e) {
|
|
6201
6190
|
if (!e)
|
|
6202
6191
|
return null;
|
|
6203
6192
|
try {
|
|
@@ -6209,10 +6198,10 @@ function ga(e) {
|
|
|
6209
6198
|
function re(e, t, n, r, s) {
|
|
6210
6199
|
if (!e)
|
|
6211
6200
|
return !1;
|
|
6212
|
-
const i =
|
|
6201
|
+
const i = ya(e);
|
|
6213
6202
|
if (!i)
|
|
6214
6203
|
return !1;
|
|
6215
|
-
const o =
|
|
6204
|
+
const o = Ge(t, n);
|
|
6216
6205
|
if (!s) {
|
|
6217
6206
|
const u = r && i.matches(r);
|
|
6218
6207
|
return o(i) && !u;
|
|
@@ -6221,7 +6210,7 @@ function re(e, t, n, r, s) {
|
|
|
6221
6210
|
let a = -1;
|
|
6222
6211
|
return c < 0 ? !1 : (r && (a = De(
|
|
6223
6212
|
i,
|
|
6224
|
-
|
|
6213
|
+
Ge(null, r)
|
|
6225
6214
|
)), c > -1 && a < 0 ? !0 : c < a);
|
|
6226
6215
|
}
|
|
6227
6216
|
function yh(e, t) {
|
|
@@ -6230,11 +6219,11 @@ function yh(e, t) {
|
|
|
6230
6219
|
function nr(e, t) {
|
|
6231
6220
|
return t.getId(e) === It;
|
|
6232
6221
|
}
|
|
6233
|
-
function
|
|
6222
|
+
function Sa(e, t) {
|
|
6234
6223
|
if (ht(e))
|
|
6235
6224
|
return !1;
|
|
6236
6225
|
const n = t.getId(e);
|
|
6237
|
-
return t.has(n) ? e.parentNode && e.parentNode.nodeType === e.DOCUMENT_NODE ? !1 : e.parentNode ?
|
|
6226
|
+
return t.has(n) ? e.parentNode && e.parentNode.nodeType === e.DOCUMENT_NODE ? !1 : e.parentNode ? Sa(e.parentNode, t) : !0 : !0;
|
|
6238
6227
|
}
|
|
6239
6228
|
function Rr(e) {
|
|
6240
6229
|
return !!e.changedTouches;
|
|
@@ -6251,10 +6240,10 @@ function Sh(e = window) {
|
|
|
6251
6240
|
return !1;
|
|
6252
6241
|
});
|
|
6253
6242
|
}
|
|
6254
|
-
function
|
|
6243
|
+
function Ea(e, t) {
|
|
6255
6244
|
return !!(e.nodeName === "IFRAME" && t.getMeta(e));
|
|
6256
6245
|
}
|
|
6257
|
-
function
|
|
6246
|
+
function ba(e, t) {
|
|
6258
6247
|
return !!(e.nodeName === "LINK" && e.nodeType === e.ELEMENT_NODE && e.getAttribute && e.getAttribute("rel") === "stylesheet" && t.getMeta(e));
|
|
6259
6248
|
}
|
|
6260
6249
|
function xr(e) {
|
|
@@ -6288,13 +6277,13 @@ class Eh {
|
|
|
6288
6277
|
return this.id++;
|
|
6289
6278
|
}
|
|
6290
6279
|
}
|
|
6291
|
-
function
|
|
6280
|
+
function va(e) {
|
|
6292
6281
|
let t = null;
|
|
6293
6282
|
return e.getRootNode?.()?.nodeType === Node.DOCUMENT_FRAGMENT_NODE && e.getRootNode().host && (t = e.getRootNode().host), t;
|
|
6294
6283
|
}
|
|
6295
6284
|
function bh(e) {
|
|
6296
6285
|
let t = e, n;
|
|
6297
|
-
for (; n =
|
|
6286
|
+
for (; n = va(t); )
|
|
6298
6287
|
t = n;
|
|
6299
6288
|
return t;
|
|
6300
6289
|
}
|
|
@@ -6304,13 +6293,13 @@ function vh(e) {
|
|
|
6304
6293
|
const n = bh(e);
|
|
6305
6294
|
return t.contains(n);
|
|
6306
6295
|
}
|
|
6307
|
-
function
|
|
6296
|
+
function Ia(e) {
|
|
6308
6297
|
const t = e.ownerDocument;
|
|
6309
6298
|
return t ? t.contains(e) || vh(e) : !1;
|
|
6310
6299
|
}
|
|
6311
|
-
const
|
|
6300
|
+
const wi = {};
|
|
6312
6301
|
function as(e) {
|
|
6313
|
-
const t =
|
|
6302
|
+
const t = wi[e];
|
|
6314
6303
|
if (t)
|
|
6315
6304
|
return t;
|
|
6316
6305
|
const n = window.document;
|
|
@@ -6324,7 +6313,7 @@ function as(e) {
|
|
|
6324
6313
|
i[e]), n.head.removeChild(s);
|
|
6325
6314
|
} catch {
|
|
6326
6315
|
}
|
|
6327
|
-
return
|
|
6316
|
+
return wi[e] = r.bind(
|
|
6328
6317
|
window
|
|
6329
6318
|
);
|
|
6330
6319
|
}
|
|
@@ -6350,7 +6339,7 @@ function kh(e) {
|
|
|
6350
6339
|
} catch {
|
|
6351
6340
|
}
|
|
6352
6341
|
}
|
|
6353
|
-
function
|
|
6342
|
+
function ki(e) {
|
|
6354
6343
|
return "__ln" in e;
|
|
6355
6344
|
}
|
|
6356
6345
|
class Th {
|
|
@@ -6371,10 +6360,10 @@ class Th {
|
|
|
6371
6360
|
previous: null,
|
|
6372
6361
|
next: null
|
|
6373
6362
|
};
|
|
6374
|
-
if (t.__ln = n, t.previousSibling &&
|
|
6363
|
+
if (t.__ln = n, t.previousSibling && ki(t.previousSibling)) {
|
|
6375
6364
|
const r = t.previousSibling.__ln.next;
|
|
6376
6365
|
n.next = r, n.previous = t.previousSibling.__ln, t.previousSibling.__ln.next = n, r && (r.previous = n);
|
|
6377
|
-
} else if (t.nextSibling &&
|
|
6366
|
+
} else if (t.nextSibling && ki(t.nextSibling) && t.nextSibling.__ln.previous) {
|
|
6378
6367
|
const r = t.nextSibling.__ln.previous;
|
|
6379
6368
|
n.previous = r, n.next = t.nextSibling.__ln, t.nextSibling.__ln.previous = n, r && (r.next = n);
|
|
6380
6369
|
} else
|
|
@@ -6386,7 +6375,7 @@ class Th {
|
|
|
6386
6375
|
this.head && (n.previous ? (n.previous.next = n.next, n.next ? n.next.previous = n.previous : this.tail = n.previous) : (this.head = n.next, this.head ? this.head.previous = null : this.tail = null), t.__ln && delete t.__ln, this.length--);
|
|
6387
6376
|
}
|
|
6388
6377
|
}
|
|
6389
|
-
const
|
|
6378
|
+
const Ti = (e, t) => `${e}@${t}`;
|
|
6390
6379
|
class Ch {
|
|
6391
6380
|
constructor() {
|
|
6392
6381
|
this.frozen = !1, this.locked = !1, this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.mapRemoves = [], this.movedMap = {}, this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.processMutations = (t) => {
|
|
@@ -6400,9 +6389,9 @@ class Ch {
|
|
|
6400
6389
|
u = u && u.nextSibling, d = u && this.mirror.getId(u);
|
|
6401
6390
|
return d;
|
|
6402
6391
|
}, i = (a) => {
|
|
6403
|
-
if (!a.parentNode || !
|
|
6392
|
+
if (!a.parentNode || !Ia(a))
|
|
6404
6393
|
return;
|
|
6405
|
-
const u = ht(a.parentNode) ? this.mirror.getId(
|
|
6394
|
+
const u = ht(a.parentNode) ? this.mirror.getId(va(a)) : this.mirror.getId(a.parentNode), d = s(a);
|
|
6406
6395
|
if (u === -1 || d === -1)
|
|
6407
6396
|
return r.addNode(a);
|
|
6408
6397
|
const l = Ye(a, {
|
|
@@ -6428,13 +6417,13 @@ class Ch {
|
|
|
6428
6417
|
recordCanvas: this.recordCanvas,
|
|
6429
6418
|
inlineImages: this.inlineImages,
|
|
6430
6419
|
onSerialize: (f) => {
|
|
6431
|
-
|
|
6420
|
+
Ea(f, this.mirror) && !re(
|
|
6432
6421
|
f,
|
|
6433
6422
|
this.blockClass,
|
|
6434
6423
|
this.blockSelector,
|
|
6435
6424
|
this.unblockSelector,
|
|
6436
6425
|
!1
|
|
6437
|
-
) && this.iframeManager.addIframe(f),
|
|
6426
|
+
) && this.iframeManager.addIframe(f), ba(f, this.mirror) && this.stylesheetManager.trackLinkElement(
|
|
6438
6427
|
f
|
|
6439
6428
|
), xr(a) && this.shadowDomManager.addShadowRoot(a.shadowRoot, this.doc);
|
|
6440
6429
|
},
|
|
@@ -6479,9 +6468,9 @@ class Ch {
|
|
|
6479
6468
|
for (; this.mapRemoves.length; )
|
|
6480
6469
|
this.mirror.removeNodeFromMap(this.mapRemoves.shift());
|
|
6481
6470
|
for (const a of this.movedSet)
|
|
6482
|
-
|
|
6471
|
+
Ci(this.removes, a, this.mirror) && !this.movedSet.has(a.parentNode) || i(a);
|
|
6483
6472
|
for (const a of this.addedSet)
|
|
6484
|
-
!
|
|
6473
|
+
!Ri(this.droppedSet, a) && !Ci(this.removes, a, this.mirror) || Ri(this.movedSet, a) ? i(a) : this.droppedSet.add(a);
|
|
6485
6474
|
let o = null;
|
|
6486
6475
|
for (; r.length; ) {
|
|
6487
6476
|
let a = null;
|
|
@@ -6558,7 +6547,7 @@ class Ch {
|
|
|
6558
6547
|
this.unmaskTextClass,
|
|
6559
6548
|
this.unmaskTextSelector,
|
|
6560
6549
|
this.maskAllText
|
|
6561
|
-
) && n ? this.maskTextFn ? this.maskTextFn(n,
|
|
6550
|
+
) && n ? this.maskTextFn ? this.maskTextFn(n, ya(t.target)) : n.replace(/[\S]/g, "*") : n,
|
|
6562
6551
|
node: t.target
|
|
6563
6552
|
});
|
|
6564
6553
|
break;
|
|
@@ -6609,7 +6598,7 @@ class Ch {
|
|
|
6609
6598
|
attributes: {},
|
|
6610
6599
|
styleDiff: {},
|
|
6611
6600
|
_unchangedStyles: {}
|
|
6612
|
-
}, this.attributes.push(i), this.attributeMap.set(t.target, i)), r === "type" && n.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && n.setAttribute("data-rr-is-password", "true"), !
|
|
6601
|
+
}, this.attributes.push(i), this.attributeMap.set(t.target, i)), r === "type" && n.tagName === "INPUT" && (t.oldValue || "").toLowerCase() === "password" && n.setAttribute("data-rr-is-password", "true"), !pa(n.tagName, r) && (i.attributes[r] = fa(
|
|
6613
6602
|
this.doc,
|
|
6614
6603
|
nt(n.tagName),
|
|
6615
6604
|
nt(r),
|
|
@@ -6651,7 +6640,7 @@ class Ch {
|
|
|
6651
6640
|
this.blockSelector,
|
|
6652
6641
|
this.unblockSelector,
|
|
6653
6642
|
!1
|
|
6654
|
-
) || nr(n, this.mirror) || !yh(n, this.mirror) || (this.addedSet.has(n) ? (Mr(this.addedSet, n), this.droppedSet.add(n)) : this.addedSet.has(t.target) && r === -1 ||
|
|
6643
|
+
) || nr(n, this.mirror) || !yh(n, this.mirror) || (this.addedSet.has(n) ? (Mr(this.addedSet, n), this.droppedSet.add(n)) : this.addedSet.has(t.target) && r === -1 || Sa(t.target, this.mirror) || (this.movedSet.has(n) && this.movedMap[Ti(r, s)] ? Mr(this.movedSet, n) : this.removes.push({
|
|
6655
6644
|
parentId: s,
|
|
6656
6645
|
id: r,
|
|
6657
6646
|
isShadow: ht(t.target) && mt(t.target) ? !0 : void 0
|
|
@@ -6667,7 +6656,7 @@ class Ch {
|
|
|
6667
6656
|
return;
|
|
6668
6657
|
this.movedSet.add(t);
|
|
6669
6658
|
let r = null;
|
|
6670
|
-
n && this.mirror.hasNode(n) && (r = this.mirror.getId(n)), r && r !== -1 && (this.movedMap[
|
|
6659
|
+
n && this.mirror.hasNode(n) && (r = this.mirror.getId(n)), r && r !== -1 && (this.movedMap[Ti(this.mirror.getId(t), r)] = !0);
|
|
6671
6660
|
} else
|
|
6672
6661
|
this.addedSet.add(t), this.droppedSet.delete(t);
|
|
6673
6662
|
re(
|
|
@@ -6737,7 +6726,7 @@ class Ch {
|
|
|
6737
6726
|
function Mr(e, t) {
|
|
6738
6727
|
e.delete(t), t.childNodes?.forEach((n) => Mr(e, n));
|
|
6739
6728
|
}
|
|
6740
|
-
function
|
|
6729
|
+
function Ci(e, t, n) {
|
|
6741
6730
|
return e.length === 0 ? !1 : Rh(e, t, n);
|
|
6742
6731
|
}
|
|
6743
6732
|
function Rh(e, t, n) {
|
|
@@ -6750,12 +6739,12 @@ function Rh(e, t, n) {
|
|
|
6750
6739
|
}
|
|
6751
6740
|
return !1;
|
|
6752
6741
|
}
|
|
6753
|
-
function
|
|
6754
|
-
return e.size === 0 ? !1 :
|
|
6742
|
+
function Ri(e, t) {
|
|
6743
|
+
return e.size === 0 ? !1 : wa(e, t);
|
|
6755
6744
|
}
|
|
6756
|
-
function
|
|
6745
|
+
function wa(e, t) {
|
|
6757
6746
|
const { parentNode: n } = t;
|
|
6758
|
-
return n ? e.has(n) ? !0 :
|
|
6747
|
+
return n ? e.has(n) ? !0 : wa(e, n) : !1;
|
|
6759
6748
|
}
|
|
6760
6749
|
let gt;
|
|
6761
6750
|
function xh(e) {
|
|
@@ -6786,7 +6775,7 @@ function Pt(e) {
|
|
|
6786
6775
|
}
|
|
6787
6776
|
return e && e.target;
|
|
6788
6777
|
}
|
|
6789
|
-
function
|
|
6778
|
+
function ka(e, t) {
|
|
6790
6779
|
const n = new Ch();
|
|
6791
6780
|
Ke.push(n), n.init(e);
|
|
6792
6781
|
let r = window.MutationObserver || /**
|
|
@@ -6932,7 +6921,7 @@ function Ah({
|
|
|
6932
6921
|
a.forEach((l) => l());
|
|
6933
6922
|
});
|
|
6934
6923
|
}
|
|
6935
|
-
function
|
|
6924
|
+
function Ta({
|
|
6936
6925
|
scrollCb: e,
|
|
6937
6926
|
doc: t,
|
|
6938
6927
|
mirror: n,
|
|
@@ -6955,7 +6944,7 @@ function wa({
|
|
|
6955
6944
|
return;
|
|
6956
6945
|
const d = n.getId(u);
|
|
6957
6946
|
if (u === t && t.defaultView) {
|
|
6958
|
-
const l =
|
|
6947
|
+
const l = ma(t.defaultView);
|
|
6959
6948
|
e({
|
|
6960
6949
|
id: d,
|
|
6961
6950
|
x: l.left,
|
|
@@ -6978,7 +6967,7 @@ function Nh({ viewportResizeCb: e }, { win: t }) {
|
|
|
6978
6967
|
const s = A(
|
|
6979
6968
|
wt(
|
|
6980
6969
|
A(() => {
|
|
6981
|
-
const i =
|
|
6970
|
+
const i = ga(), o = _a();
|
|
6982
6971
|
(n !== i || r !== o) && (e({
|
|
6983
6972
|
width: Number(o),
|
|
6984
6973
|
height: Number(i)
|
|
@@ -6989,7 +6978,7 @@ function Nh({ viewportResizeCb: e }, { win: t }) {
|
|
|
6989
6978
|
);
|
|
6990
6979
|
return te("resize", s, t);
|
|
6991
6980
|
}
|
|
6992
|
-
const Dh = ["INPUT", "TEXTAREA", "SELECT"],
|
|
6981
|
+
const Dh = ["INPUT", "TEXTAREA", "SELECT"], xi = /* @__PURE__ */ new WeakMap();
|
|
6993
6982
|
function Lh({
|
|
6994
6983
|
inputCb: e,
|
|
6995
6984
|
doc: t,
|
|
@@ -7023,7 +7012,7 @@ function Lh({
|
|
|
7023
7012
|
if (T.classList.contains(o) || c && T.matches(c))
|
|
7024
7013
|
return;
|
|
7025
7014
|
const U = ss(M);
|
|
7026
|
-
let
|
|
7015
|
+
let G = ln(T, y, U), Y = !1;
|
|
7027
7016
|
const ae = Mn({
|
|
7028
7017
|
maskInputOptions: a,
|
|
7029
7018
|
tagName: y,
|
|
@@ -7036,14 +7025,14 @@ function Lh({
|
|
|
7036
7025
|
m,
|
|
7037
7026
|
ae
|
|
7038
7027
|
);
|
|
7039
|
-
(U === "radio" || U === "checkbox") && (Y = M.checked),
|
|
7028
|
+
(U === "radio" || U === "checkbox") && (Y = M.checked), G = vt({
|
|
7040
7029
|
isMasked: Q,
|
|
7041
7030
|
element: M,
|
|
7042
|
-
value:
|
|
7031
|
+
value: G,
|
|
7043
7032
|
maskInputFn: u
|
|
7044
7033
|
}), _(
|
|
7045
7034
|
M,
|
|
7046
|
-
l ? { text:
|
|
7035
|
+
l ? { text: G, isChecked: Y, userTriggered: X } : { text: G, isChecked: Y }
|
|
7047
7036
|
);
|
|
7048
7037
|
const Z = M.name;
|
|
7049
7038
|
U === "radio" && Z && Y && t.querySelectorAll(`input[type="radio"][name="${Z}"]`).forEach((C) => {
|
|
@@ -7063,9 +7052,9 @@ function Lh({
|
|
|
7063
7052
|
});
|
|
7064
7053
|
}
|
|
7065
7054
|
function _(g, M) {
|
|
7066
|
-
const X =
|
|
7055
|
+
const X = xi.get(g);
|
|
7067
7056
|
if (!X || X.text !== M.text || X.isChecked !== M.isChecked) {
|
|
7068
|
-
|
|
7057
|
+
xi.set(g, M);
|
|
7069
7058
|
const y = n.getId(g);
|
|
7070
7059
|
A(e)({
|
|
7071
7060
|
...M,
|
|
@@ -7094,7 +7083,7 @@ function Lh({
|
|
|
7094
7083
|
];
|
|
7095
7084
|
return W && W.set && B.push(
|
|
7096
7085
|
...x.map(
|
|
7097
|
-
(g) =>
|
|
7086
|
+
(g) => ha(
|
|
7098
7087
|
g[0],
|
|
7099
7088
|
g[1],
|
|
7100
7089
|
{
|
|
@@ -7272,7 +7261,7 @@ function Ph({ styleSheetRuleCb: e, mirror: t, stylesheetManager: n }, { win: r }
|
|
|
7272
7261
|
});
|
|
7273
7262
|
});
|
|
7274
7263
|
}
|
|
7275
|
-
function
|
|
7264
|
+
function Ca({
|
|
7276
7265
|
mirror: e,
|
|
7277
7266
|
stylesheetManager: t
|
|
7278
7267
|
}, n) {
|
|
@@ -7518,8 +7507,8 @@ function Wh(e, t = {}) {
|
|
|
7518
7507
|
return () => {
|
|
7519
7508
|
};
|
|
7520
7509
|
let r;
|
|
7521
|
-
e.recordDOM && (r =
|
|
7522
|
-
const s = Oh(e), i = Ah(e), o =
|
|
7510
|
+
e.recordDOM && (r = ka(e, e.doc));
|
|
7511
|
+
const s = Oh(e), i = Ah(e), o = Ta(e), c = Nh(e, {
|
|
7523
7512
|
win: n
|
|
7524
7513
|
}), a = Lh(e), u = Bh(e);
|
|
7525
7514
|
let d = () => {
|
|
@@ -7527,7 +7516,7 @@ function Wh(e, t = {}) {
|
|
|
7527
7516
|
}, f = () => {
|
|
7528
7517
|
}, p = () => {
|
|
7529
7518
|
};
|
|
7530
|
-
e.recordDOM && (d = Ph(e, { win: n }), l =
|
|
7519
|
+
e.recordDOM && (d = Ph(e, { win: n }), l = Ca(e, e.doc), f = Fh(e, {
|
|
7531
7520
|
win: n
|
|
7532
7521
|
}), e.collectFonts && (p = Uh(e)));
|
|
7533
7522
|
const h = $h(e), m = Hh(e), E = [];
|
|
@@ -7771,7 +7760,7 @@ class qh {
|
|
|
7771
7760
|
reset() {
|
|
7772
7761
|
}
|
|
7773
7762
|
}
|
|
7774
|
-
class
|
|
7763
|
+
class Vh {
|
|
7775
7764
|
constructor(t) {
|
|
7776
7765
|
this.shadowDoms = /* @__PURE__ */ new WeakSet(), this.restoreHandlers = [], this.mutationCb = t.mutationCb, this.scrollCb = t.scrollCb, this.bypassOptions = t.bypassOptions, this.mirror = t.mirror, this.init();
|
|
7777
7766
|
}
|
|
@@ -7781,7 +7770,7 @@ class Gh {
|
|
|
7781
7770
|
addShadowRoot(t, n) {
|
|
7782
7771
|
if (!mt(t) || this.shadowDoms.has(t)) return;
|
|
7783
7772
|
this.shadowDoms.add(t), this.bypassOptions.canvasManager.addShadowRoot(t);
|
|
7784
|
-
const r =
|
|
7773
|
+
const r = ka(
|
|
7785
7774
|
{
|
|
7786
7775
|
...this.bypassOptions,
|
|
7787
7776
|
doc: n,
|
|
@@ -7792,7 +7781,7 @@ class Gh {
|
|
|
7792
7781
|
t
|
|
7793
7782
|
);
|
|
7794
7783
|
this.restoreHandlers.push(() => r.disconnect()), this.restoreHandlers.push(
|
|
7795
|
-
|
|
7784
|
+
Ta({
|
|
7796
7785
|
...this.bypassOptions,
|
|
7797
7786
|
scrollCb: this.scrollCb,
|
|
7798
7787
|
// https://gist.github.com/praveenpuglia/0832da687ed5a5d7a0907046c9ef1813
|
|
@@ -7805,7 +7794,7 @@ class Gh {
|
|
|
7805
7794
|
t.adoptedStyleSheets,
|
|
7806
7795
|
this.mirror.getId(t.host)
|
|
7807
7796
|
), this.restoreHandlers.push(
|
|
7808
|
-
|
|
7797
|
+
Ca(
|
|
7809
7798
|
{
|
|
7810
7799
|
mirror: this.mirror,
|
|
7811
7800
|
stylesheetManager: this.bypassOptions.stylesheetManager
|
|
@@ -7837,7 +7826,7 @@ class Gh {
|
|
|
7837
7826
|
function(s) {
|
|
7838
7827
|
return function(i) {
|
|
7839
7828
|
const o = s.call(this, i);
|
|
7840
|
-
return this.shadowRoot &&
|
|
7829
|
+
return this.shadowRoot && Ia(this) && r.addShadowRoot(this.shadowRoot, n), o;
|
|
7841
7830
|
};
|
|
7842
7831
|
}
|
|
7843
7832
|
)
|
|
@@ -7852,10 +7841,10 @@ class Gh {
|
|
|
7852
7841
|
}), this.restoreHandlers = [], this.shadowDoms = /* @__PURE__ */ new WeakSet(), this.bypassOptions.canvasManager.resetShadowRoots();
|
|
7853
7842
|
}
|
|
7854
7843
|
}
|
|
7855
|
-
var
|
|
7856
|
-
for (var
|
|
7857
|
-
|
|
7858
|
-
class
|
|
7844
|
+
var Mi = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Gh = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
7845
|
+
for (var Vt = 0; Vt < Mi.length; Vt++)
|
|
7846
|
+
Gh[Mi.charCodeAt(Vt)] = Vt;
|
|
7847
|
+
class Oi {
|
|
7859
7848
|
reset() {
|
|
7860
7849
|
}
|
|
7861
7850
|
freeze() {
|
|
@@ -7906,7 +7895,7 @@ class Yh {
|
|
|
7906
7895
|
this.styleMirror.has(i) ? o = this.styleMirror.getId(i) : (o = this.styleMirror.add(i), s.push({
|
|
7907
7896
|
styleId: o,
|
|
7908
7897
|
rules: Array.from(i.rules || CSSRule, (c, a) => ({
|
|
7909
|
-
rule:
|
|
7898
|
+
rule: oa(c),
|
|
7910
7899
|
index: a
|
|
7911
7900
|
}))
|
|
7912
7901
|
})), r.styleIds.push(o);
|
|
@@ -7945,7 +7934,7 @@ try {
|
|
|
7945
7934
|
} catch (e) {
|
|
7946
7935
|
console.debug("Unable to override Array.from", e);
|
|
7947
7936
|
}
|
|
7948
|
-
const le =
|
|
7937
|
+
const le = Gp();
|
|
7949
7938
|
function be(e = {}) {
|
|
7950
7939
|
const {
|
|
7951
7940
|
emit: t,
|
|
@@ -7976,7 +7965,7 @@ function be(e = {}) {
|
|
|
7976
7965
|
recordDOM: y = !0,
|
|
7977
7966
|
recordCanvas: T = !1,
|
|
7978
7967
|
recordCrossOriginIframes: U = !1,
|
|
7979
|
-
recordAfter:
|
|
7968
|
+
recordAfter: G = e.recordAfter === "DOMContentLoaded" ? e.recordAfter : "load",
|
|
7980
7969
|
userTriggeredOnInput: Y = !1,
|
|
7981
7970
|
collectFonts: ae = !1,
|
|
7982
7971
|
inlineImages: Q = !1,
|
|
@@ -8079,13 +8068,13 @@ function be(e = {}) {
|
|
|
8079
8068
|
source: I.Scroll,
|
|
8080
8069
|
...P
|
|
8081
8070
|
}
|
|
8082
|
-
}),
|
|
8071
|
+
}), Ya = (P) => q({
|
|
8083
8072
|
type: R.IncrementalSnapshot,
|
|
8084
8073
|
data: {
|
|
8085
8074
|
source: I.CanvasMutation,
|
|
8086
8075
|
...P
|
|
8087
8076
|
}
|
|
8088
|
-
}),
|
|
8077
|
+
}), Ka = (P) => q({
|
|
8089
8078
|
type: R.IncrementalSnapshot,
|
|
8090
8079
|
data: {
|
|
8091
8080
|
source: I.AdoptedStyleSheet,
|
|
@@ -8093,7 +8082,7 @@ function be(e = {}) {
|
|
|
8093
8082
|
}
|
|
8094
8083
|
}), Me = new Yh({
|
|
8095
8084
|
mutationCb: ut,
|
|
8096
|
-
adoptedStyleSheetCb:
|
|
8085
|
+
adoptedStyleSheetCb: Ka
|
|
8097
8086
|
}), Oe = typeof __RRWEB_EXCLUDE_IFRAME__ == "boolean" && __RRWEB_EXCLUDE_IFRAME__ ? new zh() : new jh({
|
|
8098
8087
|
mirror: le,
|
|
8099
8088
|
mutationCb: ut,
|
|
@@ -8128,7 +8117,7 @@ function be(e = {}) {
|
|
|
8128
8117
|
dataURLOptions: M,
|
|
8129
8118
|
errorHandler: z
|
|
8130
8119
|
}
|
|
8131
|
-
), Bt = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ == "boolean" && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new qh() : new
|
|
8120
|
+
), Bt = typeof __RRWEB_EXCLUDE_SHADOW_DOM__ == "boolean" && __RRWEB_EXCLUDE_SHADOW_DOM__ ? new qh() : new Vh({
|
|
8132
8121
|
mutationCb: ut,
|
|
8133
8122
|
scrollCb: ys,
|
|
8134
8123
|
bypassOptions: {
|
|
@@ -8167,8 +8156,8 @@ function be(e = {}) {
|
|
|
8167
8156
|
type: R.Meta,
|
|
8168
8157
|
data: {
|
|
8169
8158
|
href: window.location.href,
|
|
8170
|
-
width:
|
|
8171
|
-
height:
|
|
8159
|
+
width: _a(),
|
|
8160
|
+
height: ga()
|
|
8172
8161
|
}
|
|
8173
8162
|
},
|
|
8174
8163
|
P
|
|
@@ -8193,7 +8182,7 @@ function be(e = {}) {
|
|
|
8193
8182
|
recordCanvas: T,
|
|
8194
8183
|
inlineImages: Q,
|
|
8195
8184
|
onSerialize: (O) => {
|
|
8196
|
-
|
|
8185
|
+
Ea(O, le) && Oe.addIframe(O), ba(O, le) && Me.trackLinkElement(O), xr(O) && Bt.addShadowRoot(O.shadowRoot, document);
|
|
8197
8186
|
},
|
|
8198
8187
|
onIframeLoad: (O, J) => {
|
|
8199
8188
|
Oe.attachIframe(O, J), O.contentWindow && Hn.addWindow(O.contentWindow), Bt.observeAttachShadow(O);
|
|
@@ -8228,7 +8217,7 @@ function be(e = {}) {
|
|
|
8228
8217
|
type: R.FullSnapshot,
|
|
8229
8218
|
data: {
|
|
8230
8219
|
node: ue,
|
|
8231
|
-
initialOffset:
|
|
8220
|
+
initialOffset: ma(window)
|
|
8232
8221
|
}
|
|
8233
8222
|
}), Ke.forEach((O) => O.unlock()), document.adoptedStyleSheets && document.adoptedStyleSheets.length > 0 && Me.adoptStyleSheets(
|
|
8234
8223
|
document.adoptedStyleSheets,
|
|
@@ -8291,7 +8280,7 @@ function be(e = {}) {
|
|
|
8291
8280
|
...F
|
|
8292
8281
|
}
|
|
8293
8282
|
}),
|
|
8294
|
-
canvasMutationCb:
|
|
8283
|
+
canvasMutationCb: Ya,
|
|
8295
8284
|
fontCb: (F) => q({
|
|
8296
8285
|
type: R.IncrementalSnapshot,
|
|
8297
8286
|
data: {
|
|
@@ -8378,7 +8367,7 @@ function be(e = {}) {
|
|
|
8378
8367
|
q({
|
|
8379
8368
|
type: R.DomContentLoaded,
|
|
8380
8369
|
data: {}
|
|
8381
|
-
}),
|
|
8370
|
+
}), G === "DOMContentLoaded" && O();
|
|
8382
8371
|
})
|
|
8383
8372
|
), P.push(
|
|
8384
8373
|
te(
|
|
@@ -8387,7 +8376,7 @@ function be(e = {}) {
|
|
|
8387
8376
|
q({
|
|
8388
8377
|
type: R.Load,
|
|
8389
8378
|
data: {}
|
|
8390
|
-
}),
|
|
8379
|
+
}), G === "load" && O();
|
|
8391
8380
|
},
|
|
8392
8381
|
window
|
|
8393
8382
|
)
|
|
@@ -8407,15 +8396,15 @@ be.mirror = le;
|
|
|
8407
8396
|
be.takeFullSnapshot = Xh;
|
|
8408
8397
|
function Jh(e, t) {
|
|
8409
8398
|
try {
|
|
8410
|
-
return e ? e(t) : new
|
|
8399
|
+
return e ? e(t) : new Oi();
|
|
8411
8400
|
} catch {
|
|
8412
|
-
return console.warn("Unable to initialize CanvasManager"), new
|
|
8401
|
+
return console.warn("Unable to initialize CanvasManager"), new Oi();
|
|
8413
8402
|
}
|
|
8414
8403
|
}
|
|
8415
|
-
var
|
|
8404
|
+
var Ai;
|
|
8416
8405
|
(function(e) {
|
|
8417
8406
|
e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
|
|
8418
|
-
})(
|
|
8407
|
+
})(Ai || (Ai = {}));
|
|
8419
8408
|
const Qh = 3, Zh = 5;
|
|
8420
8409
|
function us(e) {
|
|
8421
8410
|
return e > 9999999999 ? e : e * 1e3;
|
|
@@ -8437,14 +8426,14 @@ function Ft(e, t) {
|
|
|
8437
8426
|
}), t.category === "console")));
|
|
8438
8427
|
}
|
|
8439
8428
|
const em = "button,a";
|
|
8440
|
-
function
|
|
8429
|
+
function Ra(e) {
|
|
8441
8430
|
return e.closest(em) || e;
|
|
8442
8431
|
}
|
|
8443
|
-
function
|
|
8444
|
-
const t =
|
|
8445
|
-
return !t || !(t instanceof Element) ? t :
|
|
8432
|
+
function xa(e) {
|
|
8433
|
+
const t = Ma(e);
|
|
8434
|
+
return !t || !(t instanceof Element) ? t : Ra(t);
|
|
8446
8435
|
}
|
|
8447
|
-
function
|
|
8436
|
+
function Ma(e) {
|
|
8448
8437
|
return tm(e) ? e.target : e;
|
|
8449
8438
|
}
|
|
8450
8439
|
function tm(e) {
|
|
@@ -8489,7 +8478,7 @@ class om {
|
|
|
8489
8478
|
/** Register click detection handlers on mutation or scroll. */
|
|
8490
8479
|
addListeners() {
|
|
8491
8480
|
const t = nm(() => {
|
|
8492
|
-
this._lastMutation =
|
|
8481
|
+
this._lastMutation = Ni();
|
|
8493
8482
|
});
|
|
8494
8483
|
this._teardown = () => {
|
|
8495
8484
|
t(), this._clicks = [], this._lastMutation = 0, this._lastScroll = 0;
|
|
@@ -8522,7 +8511,7 @@ class om {
|
|
|
8522
8511
|
}
|
|
8523
8512
|
/** @inheritDoc */
|
|
8524
8513
|
registerClick(t) {
|
|
8525
|
-
const n =
|
|
8514
|
+
const n = Ra(t);
|
|
8526
8515
|
this._handleMultiClick(n);
|
|
8527
8516
|
}
|
|
8528
8517
|
/** Count multiple clicks on elements. */
|
|
@@ -8537,7 +8526,7 @@ class om {
|
|
|
8537
8526
|
}
|
|
8538
8527
|
/** Check the clicks that happened. */
|
|
8539
8528
|
_checkClicks() {
|
|
8540
|
-
const t = [], n =
|
|
8529
|
+
const t = [], n = Ni();
|
|
8541
8530
|
this._clicks.forEach((r) => {
|
|
8542
8531
|
!r.mutationAfter && this._lastMutation && (r.mutationAfter = r.timestamp <= this._lastMutation ? this._lastMutation - r.timestamp : void 0), !r.scrollAfter && this._lastScroll && (r.scrollAfter = r.timestamp <= this._lastScroll ? this._lastScroll - r.timestamp : void 0), r.timestamp + this._timeout <= n && t.push(r);
|
|
8543
8532
|
});
|
|
@@ -8599,7 +8588,7 @@ function cm(e, t) {
|
|
|
8599
8588
|
function um(e) {
|
|
8600
8589
|
return !!(e.data && typeof e.data.nodeId == "number" && e.timestamp);
|
|
8601
8590
|
}
|
|
8602
|
-
function
|
|
8591
|
+
function Ni() {
|
|
8603
8592
|
return Date.now() / 1e3;
|
|
8604
8593
|
}
|
|
8605
8594
|
function lm(e, t) {
|
|
@@ -8662,10 +8651,10 @@ const mm = (e) => (t) => {
|
|
|
8662
8651
|
r && e.clickDetector && s?.target && !s.altKey && !s.metaKey && !s.ctrlKey && !s.shiftKey && im(
|
|
8663
8652
|
e.clickDetector,
|
|
8664
8653
|
n,
|
|
8665
|
-
|
|
8654
|
+
xa(t.event)
|
|
8666
8655
|
), Ft(e, n);
|
|
8667
8656
|
};
|
|
8668
|
-
function
|
|
8657
|
+
function Oa(e, t) {
|
|
8669
8658
|
const n = be.mirror.getId(e), r = n && be.mirror.getNode(n), s = r && be.mirror.getMeta(r), i = s && ym(s) ? s : null;
|
|
8670
8659
|
return {
|
|
8671
8660
|
message: t,
|
|
@@ -8684,14 +8673,14 @@ function gm(e) {
|
|
|
8684
8673
|
const { target: t, message: n } = _m(e);
|
|
8685
8674
|
return me({
|
|
8686
8675
|
category: `ui.${e.name}`,
|
|
8687
|
-
...
|
|
8676
|
+
...Oa(t, n)
|
|
8688
8677
|
});
|
|
8689
8678
|
}
|
|
8690
8679
|
function _m(e) {
|
|
8691
8680
|
const t = e.name === "click";
|
|
8692
8681
|
let n, r = null;
|
|
8693
8682
|
try {
|
|
8694
|
-
r = t ?
|
|
8683
|
+
r = t ? xa(e.event) : Ma(e.event), n = bn(r, { maxStringLength: 200 }) || "<unknown>";
|
|
8695
8684
|
} catch {
|
|
8696
8685
|
n = "<unknown>";
|
|
8697
8686
|
}
|
|
@@ -8714,7 +8703,7 @@ function Em(e) {
|
|
|
8714
8703
|
const c = t || r || s, a = i.length === 1;
|
|
8715
8704
|
if (!c && a)
|
|
8716
8705
|
return null;
|
|
8717
|
-
const u = bn(o, { maxStringLength: 200 }) || "<unknown>", d =
|
|
8706
|
+
const u = bn(o, { maxStringLength: 200 }) || "<unknown>", d = Oa(o, u);
|
|
8718
8707
|
return me({
|
|
8719
8708
|
category: "ui.keyDown",
|
|
8720
8709
|
message: u,
|
|
@@ -8751,7 +8740,7 @@ function wm(e) {
|
|
|
8751
8740
|
return t ? t(e) : null;
|
|
8752
8741
|
}
|
|
8753
8742
|
function st(e) {
|
|
8754
|
-
return ((
|
|
8743
|
+
return ((Cc() || H.performance.timeOrigin) + e) / 1e3;
|
|
8755
8744
|
}
|
|
8756
8745
|
function km(e) {
|
|
8757
8746
|
const { duration: t, entryType: n, name: r, startTime: s } = e, i = st(s);
|
|
@@ -8891,7 +8880,7 @@ function Dm() {
|
|
|
8891
8880
|
const e = new Blob([Nm]);
|
|
8892
8881
|
return URL.createObjectURL(e);
|
|
8893
8882
|
}
|
|
8894
|
-
const
|
|
8883
|
+
const Di = ["log", "warn", "error"], en = "[Replay] ";
|
|
8895
8884
|
function ir(e, t = "info") {
|
|
8896
8885
|
xe(
|
|
8897
8886
|
{
|
|
@@ -8916,9 +8905,9 @@ function Lm() {
|
|
|
8916
8905
|
e = !!r.captureExceptions, t = !!r.traceInternals;
|
|
8917
8906
|
}
|
|
8918
8907
|
};
|
|
8919
|
-
return b ? (
|
|
8908
|
+
return b ? (Di.forEach((r) => {
|
|
8920
8909
|
n[r] = (...s) => {
|
|
8921
|
-
S[r](en, ...s), t && ir(s.join(""),
|
|
8910
|
+
S[r](en, ...s), t && ir(s.join(""), Po(r));
|
|
8922
8911
|
};
|
|
8923
8912
|
}), n.exception = (r, ...s) => {
|
|
8924
8913
|
s.length && n.error && n.error(...s), S.error(en, r), e ? jr(r, {
|
|
@@ -8929,7 +8918,7 @@ function Lm() {
|
|
|
8929
8918
|
}) : t && ir(r, "error");
|
|
8930
8919
|
}, n.infoTick = (...r) => {
|
|
8931
8920
|
S.log(en, ...r), t && setTimeout(() => ir(r[0]), 0);
|
|
8932
|
-
}) :
|
|
8921
|
+
}) : Di.forEach((r) => {
|
|
8933
8922
|
n[r] = () => {
|
|
8934
8923
|
};
|
|
8935
8924
|
}), n;
|
|
@@ -8940,7 +8929,7 @@ class fs extends Error {
|
|
|
8940
8929
|
super(`Event buffer exceeded maximum size of ${rs}.`);
|
|
8941
8930
|
}
|
|
8942
8931
|
}
|
|
8943
|
-
class
|
|
8932
|
+
class Aa {
|
|
8944
8933
|
/** All the events that are buffered to be sent. */
|
|
8945
8934
|
/** @inheritdoc */
|
|
8946
8935
|
/** @inheritdoc */
|
|
@@ -9112,7 +9101,7 @@ class Fm {
|
|
|
9112
9101
|
}
|
|
9113
9102
|
class Bm {
|
|
9114
9103
|
constructor(t) {
|
|
9115
|
-
this._fallback = new
|
|
9104
|
+
this._fallback = new Aa(), this._compression = new Fm(t), this._used = this._fallback, this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded();
|
|
9116
9105
|
}
|
|
9117
9106
|
/** @inheritdoc */
|
|
9118
9107
|
get waitForCheckout() {
|
|
@@ -9200,7 +9189,7 @@ function Um({
|
|
|
9200
9189
|
if (n)
|
|
9201
9190
|
return n;
|
|
9202
9191
|
}
|
|
9203
|
-
return b && v.log("Using simple buffer"), new
|
|
9192
|
+
return b && v.log("Using simple buffer"), new Aa();
|
|
9204
9193
|
}
|
|
9205
9194
|
function $m(e) {
|
|
9206
9195
|
try {
|
|
@@ -9234,7 +9223,7 @@ function zm() {
|
|
|
9234
9223
|
} catch {
|
|
9235
9224
|
}
|
|
9236
9225
|
}
|
|
9237
|
-
function
|
|
9226
|
+
function Na(e) {
|
|
9238
9227
|
return e === void 0 ? !1 : Math.random() < e;
|
|
9239
9228
|
}
|
|
9240
9229
|
function Nn(e) {
|
|
@@ -9244,7 +9233,7 @@ function Nn(e) {
|
|
|
9244
9233
|
} catch {
|
|
9245
9234
|
}
|
|
9246
9235
|
}
|
|
9247
|
-
function
|
|
9236
|
+
function Da(e) {
|
|
9248
9237
|
const t = Date.now(), n = e.id || se(), r = e.started || t, s = e.lastActivity || t, i = e.segmentId || 0, o = e.sampled, c = e.previousSessionId, a = e.dirty || !1;
|
|
9249
9238
|
return {
|
|
9250
9239
|
id: n,
|
|
@@ -9257,10 +9246,10 @@ function Aa(e) {
|
|
|
9257
9246
|
};
|
|
9258
9247
|
}
|
|
9259
9248
|
function jm(e, t) {
|
|
9260
|
-
return
|
|
9249
|
+
return Na(e) ? "session" : t ? "buffer" : !1;
|
|
9261
9250
|
}
|
|
9262
|
-
function
|
|
9263
|
-
const s = jm(e, t), i =
|
|
9251
|
+
function Li({ sessionSampleRate: e, allowBuffering: t, stickySession: n = !1 }, { previousSessionId: r } = {}) {
|
|
9252
|
+
const s = jm(e, t), i = Da({
|
|
9264
9253
|
sampled: s,
|
|
9265
9254
|
previousSessionId: r
|
|
9266
9255
|
});
|
|
@@ -9274,7 +9263,7 @@ function qm() {
|
|
|
9274
9263
|
if (!e)
|
|
9275
9264
|
return null;
|
|
9276
9265
|
const t = JSON.parse(e);
|
|
9277
|
-
return b && v.infoTick("Loading existing session"),
|
|
9266
|
+
return b && v.infoTick("Loading existing session"), Da(t);
|
|
9278
9267
|
} catch {
|
|
9279
9268
|
return null;
|
|
9280
9269
|
}
|
|
@@ -9282,7 +9271,7 @@ function qm() {
|
|
|
9282
9271
|
function Ar(e, t, n = +/* @__PURE__ */ new Date()) {
|
|
9283
9272
|
return e === null || t === void 0 || t < 0 ? !0 : t === 0 ? !1 : e + t <= n;
|
|
9284
9273
|
}
|
|
9285
|
-
function
|
|
9274
|
+
function La(e, {
|
|
9286
9275
|
maxReplayDuration: t,
|
|
9287
9276
|
sessionIdleExpire: n,
|
|
9288
9277
|
targetTime: r = Date.now()
|
|
@@ -9294,8 +9283,8 @@ function Na(e, {
|
|
|
9294
9283
|
Ar(e.lastActivity, n, r)
|
|
9295
9284
|
);
|
|
9296
9285
|
}
|
|
9297
|
-
function
|
|
9298
|
-
return !(!
|
|
9286
|
+
function Pa(e, { sessionIdleExpire: t, maxReplayDuration: n }) {
|
|
9287
|
+
return !(!La(e, { sessionIdleExpire: t, maxReplayDuration: n }) || e.sampled === "buffer" && e.segmentId === 0);
|
|
9299
9288
|
}
|
|
9300
9289
|
function or({
|
|
9301
9290
|
sessionIdleExpire: e,
|
|
@@ -9303,18 +9292,18 @@ function or({
|
|
|
9303
9292
|
previousSessionId: n
|
|
9304
9293
|
}, r) {
|
|
9305
9294
|
const s = r.stickySession && qm();
|
|
9306
|
-
return s ?
|
|
9295
|
+
return s ? Pa(s, { sessionIdleExpire: e, maxReplayDuration: t }) ? (b && v.infoTick("Session in sessionStorage is expired, creating new one..."), Li(r, { previousSessionId: s.id })) : s : (b && v.infoTick("Creating new session"), Li(r, { previousSessionId: n }));
|
|
9307
9296
|
}
|
|
9308
|
-
function
|
|
9297
|
+
function Vm(e) {
|
|
9309
9298
|
return e.type === R.Custom;
|
|
9310
9299
|
}
|
|
9311
9300
|
function hs(e, t, n) {
|
|
9312
|
-
return
|
|
9301
|
+
return Ba(e, t) ? (Fa(e, t, n), !0) : !1;
|
|
9313
9302
|
}
|
|
9314
|
-
function
|
|
9315
|
-
return
|
|
9303
|
+
function Gm(e, t, n) {
|
|
9304
|
+
return Ba(e, t) ? Fa(e, t, n) : Promise.resolve(null);
|
|
9316
9305
|
}
|
|
9317
|
-
async function
|
|
9306
|
+
async function Fa(e, t, n) {
|
|
9318
9307
|
const { eventBuffer: r } = e;
|
|
9319
9308
|
if (!r || r.waitForCheckout && !n)
|
|
9320
9309
|
return null;
|
|
@@ -9334,7 +9323,7 @@ async function La(e, t, n) {
|
|
|
9334
9323
|
e.handleException(i), await e.stop({ reason: c });
|
|
9335
9324
|
}
|
|
9336
9325
|
}
|
|
9337
|
-
function
|
|
9326
|
+
function Ba(e, t) {
|
|
9338
9327
|
if (!e.eventBuffer || e.isPaused() || !e.isEnabled())
|
|
9339
9328
|
return !1;
|
|
9340
9329
|
const n = us(t.timestamp);
|
|
@@ -9342,7 +9331,7 @@ function Pa(e, t) {
|
|
|
9342
9331
|
}
|
|
9343
9332
|
function Ym(e, t) {
|
|
9344
9333
|
try {
|
|
9345
|
-
if (typeof t == "function" &&
|
|
9334
|
+
if (typeof t == "function" && Vm(e))
|
|
9346
9335
|
return t(e);
|
|
9347
9336
|
} catch (n) {
|
|
9348
9337
|
return b && v.exception(n, "An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."), null;
|
|
@@ -9358,7 +9347,7 @@ function Nr(e) {
|
|
|
9358
9347
|
function Km(e) {
|
|
9359
9348
|
return e.type === "replay_event";
|
|
9360
9349
|
}
|
|
9361
|
-
function
|
|
9350
|
+
function Pi(e) {
|
|
9362
9351
|
return e.type === "feedback";
|
|
9363
9352
|
}
|
|
9364
9353
|
function Xm(e) {
|
|
@@ -9422,13 +9411,13 @@ function tg(e) {
|
|
|
9422
9411
|
t && t.on("beforeAddBreadcrumb", (n) => ng(e, n));
|
|
9423
9412
|
}
|
|
9424
9413
|
function ng(e, t) {
|
|
9425
|
-
if (!e.isEnabled() || !
|
|
9414
|
+
if (!e.isEnabled() || !Ua(t))
|
|
9426
9415
|
return;
|
|
9427
9416
|
const n = rg(t);
|
|
9428
9417
|
n && Ft(e, n);
|
|
9429
9418
|
}
|
|
9430
9419
|
function rg(e) {
|
|
9431
|
-
return !
|
|
9420
|
+
return !Ua(e) || [
|
|
9432
9421
|
// fetch & xhr are handled separately,in handleNetworkBreadcrumbs
|
|
9433
9422
|
"fetch",
|
|
9434
9423
|
"xhr",
|
|
@@ -9465,18 +9454,18 @@ function sg(e) {
|
|
|
9465
9454
|
}
|
|
9466
9455
|
});
|
|
9467
9456
|
}
|
|
9468
|
-
function
|
|
9457
|
+
function Ua(e) {
|
|
9469
9458
|
return !!e.category;
|
|
9470
9459
|
}
|
|
9471
9460
|
function ig(e, t) {
|
|
9472
9461
|
return e.type || !e.exception?.values?.length ? !1 : !!t.originalException?.__rrweb__;
|
|
9473
9462
|
}
|
|
9474
|
-
function
|
|
9463
|
+
function $a() {
|
|
9475
9464
|
const e = oe().getPropagationContext().dsc;
|
|
9476
9465
|
e && delete e.replay_id;
|
|
9477
|
-
const t =
|
|
9466
|
+
const t = co();
|
|
9478
9467
|
if (t) {
|
|
9479
|
-
const n =
|
|
9468
|
+
const n = lo(t);
|
|
9480
9469
|
delete n.replay_id;
|
|
9481
9470
|
}
|
|
9482
9471
|
}
|
|
@@ -9498,7 +9487,7 @@ function og(e, t) {
|
|
|
9498
9487
|
}), !1) : !0);
|
|
9499
9488
|
}
|
|
9500
9489
|
function ag(e, t) {
|
|
9501
|
-
return e.recordingMode !== "buffer" || t.message === ns || !t.exception || t.type ? !1 :
|
|
9490
|
+
return e.recordingMode !== "buffer" || t.message === ns || !t.exception || t.type ? !1 : Na(e.getOptions().errorSampleRate);
|
|
9502
9491
|
}
|
|
9503
9492
|
function cg(e) {
|
|
9504
9493
|
return Object.assign(
|
|
@@ -9507,11 +9496,11 @@ function cg(e) {
|
|
|
9507
9496
|
return t;
|
|
9508
9497
|
if (Km(t))
|
|
9509
9498
|
return delete t.breadcrumbs, t;
|
|
9510
|
-
if (!ms(t) && !Nr(t) && !
|
|
9499
|
+
if (!ms(t) && !Nr(t) && !Pi(t))
|
|
9511
9500
|
return t;
|
|
9512
9501
|
if (!e.checkAndHandleExpiredSession())
|
|
9513
|
-
return
|
|
9514
|
-
if (
|
|
9502
|
+
return $a(), t;
|
|
9503
|
+
if (Pi(t))
|
|
9515
9504
|
return e.flush(), t.contexts.feedback.replay_id = e.getSessionId(), og(e, t), t;
|
|
9516
9505
|
if (ig(t, n) && !e.getOptions()._experiments.captureExceptions)
|
|
9517
9506
|
return b && v.log("Ignoring error from rrweb internals", t), null;
|
|
@@ -9567,7 +9556,7 @@ function lg(e) {
|
|
|
9567
9556
|
function dg(e, t) {
|
|
9568
9557
|
return b && e.getOptions()._experiments.traceInternals ? !1 : Al(t, j());
|
|
9569
9558
|
}
|
|
9570
|
-
function
|
|
9559
|
+
function Ha(e, t) {
|
|
9571
9560
|
e.isEnabled() && t !== null && (dg(e, t.name) || e.addUpdate(() => (Dn(e, [t]), !0)));
|
|
9572
9561
|
}
|
|
9573
9562
|
function Ln(e) {
|
|
@@ -9580,7 +9569,7 @@ function Ln(e) {
|
|
|
9580
9569
|
if (e instanceof URLSearchParams)
|
|
9581
9570
|
return t.encode(e.toString()).length;
|
|
9582
9571
|
if (e instanceof FormData) {
|
|
9583
|
-
const n =
|
|
9572
|
+
const n = ta(e);
|
|
9584
9573
|
return t.encode(n).length;
|
|
9585
9574
|
}
|
|
9586
9575
|
if (e instanceof Blob)
|
|
@@ -9590,7 +9579,7 @@ function Ln(e) {
|
|
|
9590
9579
|
} catch {
|
|
9591
9580
|
}
|
|
9592
9581
|
}
|
|
9593
|
-
function
|
|
9582
|
+
function Wa(e) {
|
|
9594
9583
|
if (!e)
|
|
9595
9584
|
return;
|
|
9596
9585
|
const t = parseInt(e, 10);
|
|
@@ -9608,7 +9597,7 @@ function mn(e, t) {
|
|
|
9608
9597
|
const n = { ...e._meta }, r = n.warnings || [];
|
|
9609
9598
|
return n.warnings = [...r, t], e._meta = n, e;
|
|
9610
9599
|
}
|
|
9611
|
-
function
|
|
9600
|
+
function za(e, t) {
|
|
9612
9601
|
if (!t)
|
|
9613
9602
|
return null;
|
|
9614
9603
|
const { startTimestamp: n, endTimestamp: r, url: s, method: i, statusCode: o, request: c, response: a } = t;
|
|
@@ -9665,9 +9654,9 @@ function fg(e) {
|
|
|
9665
9654
|
return {
|
|
9666
9655
|
body: e
|
|
9667
9656
|
};
|
|
9668
|
-
const t = e.length >
|
|
9657
|
+
const t = e.length > gi, n = pg(e);
|
|
9669
9658
|
if (t) {
|
|
9670
|
-
const r = e.slice(0,
|
|
9659
|
+
const r = e.slice(0, gi);
|
|
9671
9660
|
return n ? {
|
|
9672
9661
|
body: r,
|
|
9673
9662
|
warnings: ["MAYBE_JSON_TRUNCATED"]
|
|
@@ -9706,14 +9695,14 @@ function hg(e, t = H.document.baseURI) {
|
|
|
9706
9695
|
}
|
|
9707
9696
|
async function mg(e, t, n) {
|
|
9708
9697
|
try {
|
|
9709
|
-
const r = await _g(e, t, n), s =
|
|
9710
|
-
|
|
9698
|
+
const r = await _g(e, t, n), s = za("resource.fetch", r);
|
|
9699
|
+
Ha(n.replay, s);
|
|
9711
9700
|
} catch (r) {
|
|
9712
9701
|
b && v.exception(r, "Failed to capture fetch breadcrumb");
|
|
9713
9702
|
}
|
|
9714
9703
|
}
|
|
9715
9704
|
function gg(e, t) {
|
|
9716
|
-
const { input: n, response: r } = t, s = n ?
|
|
9705
|
+
const { input: n, response: r } = t, s = n ? ra(n) : void 0, i = Ln(s), o = r ? Wa(r.headers.get("content-length")) : void 0;
|
|
9717
9706
|
i !== void 0 && (e.data.request_body_size = i), o !== void 0 && (e.data.response_body_size = o);
|
|
9718
9707
|
}
|
|
9719
9708
|
async function _g(e, t, n) {
|
|
@@ -9738,7 +9727,7 @@ function yg({ networkCaptureBodies: e, networkRequestHeaders: t }, n, r) {
|
|
|
9738
9727
|
const s = n ? vg(n, t) : {};
|
|
9739
9728
|
if (!e)
|
|
9740
9729
|
return Te(s, r, void 0);
|
|
9741
|
-
const i =
|
|
9730
|
+
const i = ra(n), [o, c] = na(i, v), a = Te(s, r, o);
|
|
9742
9731
|
return c ? mn(a, c) : a;
|
|
9743
9732
|
}
|
|
9744
9733
|
async function Sg(e, {
|
|
@@ -9747,7 +9736,7 @@ async function Sg(e, {
|
|
|
9747
9736
|
}, r, s) {
|
|
9748
9737
|
if (!e && s !== void 0)
|
|
9749
9738
|
return kt(s);
|
|
9750
|
-
const i = r ?
|
|
9739
|
+
const i = r ? ja(r.headers, n) : {};
|
|
9751
9740
|
if (!r || !t && s !== void 0)
|
|
9752
9741
|
return Te(i, s, void 0);
|
|
9753
9742
|
const [o, c] = await bg(r), a = Eg(o, {
|
|
@@ -9781,20 +9770,20 @@ async function bg(e) {
|
|
|
9781
9770
|
return n instanceof Error && n.message.indexOf("Timeout") > -1 ? (b && v.warn("Parsing text body from response timed out"), [void 0, "BODY_PARSE_TIMEOUT"]) : (b && v.exception(n, "Failed to get text body from response"), [void 0, "BODY_PARSE_ERROR"]);
|
|
9782
9771
|
}
|
|
9783
9772
|
}
|
|
9784
|
-
function
|
|
9773
|
+
function ja(e, t) {
|
|
9785
9774
|
const n = {};
|
|
9786
9775
|
return t.forEach((r) => {
|
|
9787
9776
|
e.get(r) && (n[r] = e.get(r));
|
|
9788
9777
|
}), n;
|
|
9789
9778
|
}
|
|
9790
9779
|
function vg(e, t) {
|
|
9791
|
-
return e.length === 1 && typeof e[0] != "string" ?
|
|
9780
|
+
return e.length === 1 && typeof e[0] != "string" ? Fi(e[0], t) : e.length === 2 ? Fi(e[1], t) : {};
|
|
9792
9781
|
}
|
|
9793
|
-
function
|
|
9782
|
+
function Fi(e, t) {
|
|
9794
9783
|
if (!e)
|
|
9795
9784
|
return {};
|
|
9796
9785
|
const n = e.headers;
|
|
9797
|
-
return n ? n instanceof Headers ?
|
|
9786
|
+
return n ? n instanceof Headers ? ja(n, t) : Array.isArray(n) ? {} : Dr(n, t) : {};
|
|
9798
9787
|
}
|
|
9799
9788
|
function Ig(e) {
|
|
9800
9789
|
try {
|
|
@@ -9817,8 +9806,8 @@ async function kg(e) {
|
|
|
9817
9806
|
}
|
|
9818
9807
|
async function Tg(e, t, n) {
|
|
9819
9808
|
try {
|
|
9820
|
-
const r = Rg(e, t, n), s =
|
|
9821
|
-
|
|
9809
|
+
const r = Rg(e, t, n), s = za("resource.xhr", r);
|
|
9810
|
+
Ha(n.replay, s);
|
|
9822
9811
|
} catch (r) {
|
|
9823
9812
|
b && v.exception(r, "Failed to capture xhr breadcrumb");
|
|
9824
9813
|
}
|
|
@@ -9827,7 +9816,7 @@ function Cg(e, t) {
|
|
|
9827
9816
|
const { xhr: n, input: r } = t;
|
|
9828
9817
|
if (!n)
|
|
9829
9818
|
return;
|
|
9830
|
-
const s = Ln(r), i = n.getResponseHeader("content-length") ?
|
|
9819
|
+
const s = Ln(r), i = n.getResponseHeader("content-length") ? Wa(n.getResponseHeader("content-length")) : Og(n.response, n.responseType);
|
|
9831
9820
|
s !== void 0 && (e.data.request_body_size = s), i !== void 0 && (e.data.response_body_size = i);
|
|
9832
9821
|
}
|
|
9833
9822
|
function Rg(e, t, n) {
|
|
@@ -9852,7 +9841,7 @@ function Rg(e, t, n) {
|
|
|
9852
9841
|
response: g
|
|
9853
9842
|
};
|
|
9854
9843
|
}
|
|
9855
|
-
const p = c[qe], h = p ? Dr(p.request_headers, n.networkRequestHeaders) : {}, m = Dr(Ef(c), n.networkResponseHeaders), [E, _] = n.networkCaptureBodies ?
|
|
9844
|
+
const p = c[qe], h = p ? Dr(p.request_headers, n.networkRequestHeaders) : {}, m = Dr(Ef(c), n.networkResponseHeaders), [E, _] = n.networkCaptureBodies ? na(o, v) : [void 0], [k, B] = n.networkCaptureBodies ? xg(c) : [void 0], D = Te(h, l, E), W = Te(m, f, k);
|
|
9856
9845
|
return {
|
|
9857
9846
|
startTimestamp: s,
|
|
9858
9847
|
endTimestamp: i,
|
|
@@ -9943,7 +9932,7 @@ function Fg(e) {
|
|
|
9943
9932
|
}
|
|
9944
9933
|
function Bg(e) {
|
|
9945
9934
|
const t = j();
|
|
9946
|
-
|
|
9935
|
+
Zo(mm(e)), es(lg(e)), tg(e), Ag(e);
|
|
9947
9936
|
const n = cg(e);
|
|
9948
9937
|
Ju(n), t && (t.on("beforeSendEvent", Zm(e)), t.on("afterSendEvent", Xm(e)), t.on("createDsc", (r) => {
|
|
9949
9938
|
const s = e.getSessionId();
|
|
@@ -9994,9 +9983,9 @@ function Hg(e, t, n) {
|
|
|
9994
9983
|
setTimeoutImpl: Lt
|
|
9995
9984
|
});
|
|
9996
9985
|
}
|
|
9997
|
-
const
|
|
9986
|
+
const Gt = N.navigator;
|
|
9998
9987
|
function Wg() {
|
|
9999
|
-
return /iPhone|iPad|iPod/i.test(
|
|
9988
|
+
return /iPhone|iPad|iPod/i.test(Gt?.userAgent ?? "") || /Macintosh/i.test(Gt?.userAgent ?? "") && Gt?.maxTouchPoints && Gt?.maxTouchPoints > 1 ? {
|
|
10000
9989
|
sampling: {
|
|
10001
9990
|
mousemove: !1
|
|
10002
9991
|
}
|
|
@@ -10051,7 +10040,7 @@ function jg(e) {
|
|
|
10051
10040
|
function qg(e, t) {
|
|
10052
10041
|
!t || e.session?.segmentId !== 0 || hs(e, jg(e), !1);
|
|
10053
10042
|
}
|
|
10054
|
-
function
|
|
10043
|
+
function Vg(e) {
|
|
10055
10044
|
if (!e)
|
|
10056
10045
|
return null;
|
|
10057
10046
|
try {
|
|
@@ -10060,9 +10049,9 @@ function Gg(e) {
|
|
|
10060
10049
|
return null;
|
|
10061
10050
|
}
|
|
10062
10051
|
}
|
|
10063
|
-
function
|
|
10052
|
+
function Gg(e, t, n, r) {
|
|
10064
10053
|
return $e(
|
|
10065
|
-
|
|
10054
|
+
ho(e, Wr(e), r, n),
|
|
10066
10055
|
[
|
|
10067
10056
|
[{ type: "replay_event" }, e],
|
|
10068
10057
|
[
|
|
@@ -10101,7 +10090,7 @@ async function Kg({
|
|
|
10101
10090
|
}) {
|
|
10102
10091
|
const s = typeof e._integrations == "object" && e._integrations !== null && !Array.isArray(e._integrations) ? Object.keys(e._integrations) : void 0, i = { event_id: n, integrations: s };
|
|
10103
10092
|
e.emit("preprocessEvent", r, i);
|
|
10104
|
-
const o = await
|
|
10093
|
+
const o = await go(
|
|
10105
10094
|
e.getOptions(),
|
|
10106
10095
|
r,
|
|
10107
10096
|
i,
|
|
@@ -10150,7 +10139,7 @@ async function Xg({
|
|
|
10150
10139
|
if (!E)
|
|
10151
10140
|
return l.recordDroppedEvent("event_processor", "replay"), b && v.log("An event processor returned `null`, will not send event."), Promise.resolve({});
|
|
10152
10141
|
delete E.sdkProcessingMetadata;
|
|
10153
|
-
const _ =
|
|
10142
|
+
const _ = Gg(E, o, h, l.getOptions().tunnel);
|
|
10154
10143
|
let k;
|
|
10155
10144
|
try {
|
|
10156
10145
|
k = await p.send(_);
|
|
@@ -10162,14 +10151,14 @@ async function Xg({
|
|
|
10162
10151
|
}
|
|
10163
10152
|
throw W;
|
|
10164
10153
|
}
|
|
10165
|
-
const B =
|
|
10166
|
-
if (
|
|
10154
|
+
const B = Co({}, k);
|
|
10155
|
+
if (To(B, "replay"))
|
|
10167
10156
|
throw new gs(B);
|
|
10168
10157
|
if (typeof k.statusCode == "number" && (k.statusCode < 200 || k.statusCode >= 300))
|
|
10169
|
-
throw new
|
|
10158
|
+
throw new qa(k.statusCode);
|
|
10170
10159
|
return k;
|
|
10171
10160
|
}
|
|
10172
|
-
class
|
|
10161
|
+
class qa extends Error {
|
|
10173
10162
|
constructor(t) {
|
|
10174
10163
|
super(`Transport returned status code ${t}`);
|
|
10175
10164
|
}
|
|
@@ -10179,12 +10168,12 @@ class gs extends Error {
|
|
|
10179
10168
|
super("Rate limit hit"), this.rateLimits = t;
|
|
10180
10169
|
}
|
|
10181
10170
|
}
|
|
10182
|
-
class
|
|
10171
|
+
class Bi extends Error {
|
|
10183
10172
|
constructor() {
|
|
10184
10173
|
super("Session is too long, not sending replay");
|
|
10185
10174
|
}
|
|
10186
10175
|
}
|
|
10187
|
-
async function
|
|
10176
|
+
async function Va(e, t = {
|
|
10188
10177
|
count: 0,
|
|
10189
10178
|
interval: Ap
|
|
10190
10179
|
}) {
|
|
@@ -10193,9 +10182,9 @@ async function ja(e, t = {
|
|
|
10193
10182
|
try {
|
|
10194
10183
|
return await Xg(e), !0;
|
|
10195
10184
|
} catch (s) {
|
|
10196
|
-
if (s instanceof
|
|
10185
|
+
if (s instanceof qa || s instanceof gs)
|
|
10197
10186
|
throw s;
|
|
10198
|
-
if (
|
|
10187
|
+
if (yo("Replays", {
|
|
10199
10188
|
_retryCount: t.count
|
|
10200
10189
|
}), r && r(s), t.count >= Np) {
|
|
10201
10190
|
const i = new Error(`${ns} - max retries exceeded`);
|
|
@@ -10208,7 +10197,7 @@ async function ja(e, t = {
|
|
|
10208
10197
|
return t.interval *= ++t.count, new Promise((i, o) => {
|
|
10209
10198
|
Lt(async () => {
|
|
10210
10199
|
try {
|
|
10211
|
-
await
|
|
10200
|
+
await Va(e, t), i(!0);
|
|
10212
10201
|
} catch (c) {
|
|
10213
10202
|
o(c);
|
|
10214
10203
|
}
|
|
@@ -10216,7 +10205,7 @@ async function ja(e, t = {
|
|
|
10216
10205
|
});
|
|
10217
10206
|
}
|
|
10218
10207
|
}
|
|
10219
|
-
const
|
|
10208
|
+
const Ga = "__THROTTLED", Jg = "__SKIPPED";
|
|
10220
10209
|
function Qg(e, t, n) {
|
|
10221
10210
|
const r = /* @__PURE__ */ new Map(), s = (c) => {
|
|
10222
10211
|
const a = c - n;
|
|
@@ -10229,7 +10218,7 @@ function Qg(e, t, n) {
|
|
|
10229
10218
|
const a = Math.floor(Date.now() / 1e3);
|
|
10230
10219
|
if (s(a), i() >= t) {
|
|
10231
10220
|
const d = o;
|
|
10232
|
-
return o = !0, d ? Jg :
|
|
10221
|
+
return o = !0, d ? Jg : Ga;
|
|
10233
10222
|
}
|
|
10234
10223
|
o = !1;
|
|
10235
10224
|
const u = r.get(a) || 0;
|
|
@@ -10306,7 +10295,7 @@ class Zg {
|
|
|
10306
10295
|
}, this._recordingOptions = n, this._options = t, this._debouncedFlush = Hg(() => this._flush(), this._options.flushMinDelay, {
|
|
10307
10296
|
maxWait: this._options.flushMaxDelay
|
|
10308
10297
|
}), this._throttledAddEvent = Qg(
|
|
10309
|
-
(o, c) =>
|
|
10298
|
+
(o, c) => Gm(this, o, c),
|
|
10310
10299
|
// Max 300 events...
|
|
10311
10300
|
300,
|
|
10312
10301
|
// ... per 5s
|
|
@@ -10496,7 +10485,7 @@ class Zg {
|
|
|
10496
10485
|
if (this._isEnabled) {
|
|
10497
10486
|
this._isEnabled = !1, this.recordingMode = "buffer";
|
|
10498
10487
|
try {
|
|
10499
|
-
b && v.log(`Stopping Replay${n ? ` triggered by ${n}` : ""}`),
|
|
10488
|
+
b && v.log(`Stopping Replay${n ? ` triggered by ${n}` : ""}`), $a(), this._removeListeners(), this.stopRecording(), this._debouncedFlush.cancel(), t && await this._flush({ force: !0 }), this.eventBuffer?.destroy(), this.eventBuffer = null, Wm(this);
|
|
10500
10489
|
} catch (r) {
|
|
10501
10490
|
this.handleException(r);
|
|
10502
10491
|
}
|
|
@@ -10634,7 +10623,7 @@ class Zg {
|
|
|
10634
10623
|
*/
|
|
10635
10624
|
throttledAddEvent(t, n) {
|
|
10636
10625
|
const r = this._throttledAddEvent(t, n);
|
|
10637
|
-
if (r ===
|
|
10626
|
+
if (r === Ga) {
|
|
10638
10627
|
const s = me({
|
|
10639
10628
|
category: "replay.throttled"
|
|
10640
10629
|
});
|
|
@@ -10655,7 +10644,7 @@ class Zg {
|
|
|
10655
10644
|
* This is only available if performance is enabled, and if an instrumented router is used.
|
|
10656
10645
|
*/
|
|
10657
10646
|
getCurrentRoute() {
|
|
10658
|
-
const t = this.lastActiveSpan ||
|
|
10647
|
+
const t = this.lastActiveSpan || co(), n = t && $r(t), s = (n && yt(n).data || {})[no];
|
|
10659
10648
|
if (!(!n || !s || !["route", "custom"].includes(s)))
|
|
10660
10649
|
return yt(n).description;
|
|
10661
10650
|
}
|
|
@@ -10695,7 +10684,7 @@ class Zg {
|
|
|
10695
10684
|
if (!this.session)
|
|
10696
10685
|
return !1;
|
|
10697
10686
|
const t = this.session;
|
|
10698
|
-
return
|
|
10687
|
+
return Pa(t, {
|
|
10699
10688
|
sessionIdleExpire: this.timeouts.sessionIdleExpire,
|
|
10700
10689
|
maxReplayDuration: this._options.maxReplayDuration
|
|
10701
10690
|
}) ? (this._refreshSession(t), !1) : !0;
|
|
@@ -10733,7 +10722,7 @@ class Zg {
|
|
|
10733
10722
|
* Tasks to run when we consider a page to be hidden (via blurring and/or visibility)
|
|
10734
10723
|
*/
|
|
10735
10724
|
_doChangeToBackgroundTasks(t) {
|
|
10736
|
-
!this.session ||
|
|
10725
|
+
!this.session || La(this.session, {
|
|
10737
10726
|
maxReplayDuration: this._options.maxReplayDuration,
|
|
10738
10727
|
sessionIdleExpire: this.timeouts.sessionIdleExpire
|
|
10739
10728
|
}) || (t && this._createCustomBreadcrumb(t), this.conditionalFlush());
|
|
@@ -10835,11 +10824,11 @@ class Zg {
|
|
|
10835
10824
|
this._updateInitialTimestampFromEventBuffer();
|
|
10836
10825
|
const n = Date.now();
|
|
10837
10826
|
if (n - this._context.initialTimestamp > this._options.maxReplayDuration + 3e4)
|
|
10838
|
-
throw new
|
|
10827
|
+
throw new Bi();
|
|
10839
10828
|
const r = this._popEventContext(), s = this.session.segmentId++;
|
|
10840
10829
|
this._maybeSaveSession();
|
|
10841
10830
|
const i = await this.eventBuffer.finish();
|
|
10842
|
-
await
|
|
10831
|
+
await Va({
|
|
10843
10832
|
replayId: t,
|
|
10844
10833
|
recordingData: i,
|
|
10845
10834
|
segmentId: s,
|
|
@@ -10853,7 +10842,7 @@ class Zg {
|
|
|
10853
10842
|
const r = j();
|
|
10854
10843
|
if (r) {
|
|
10855
10844
|
let s;
|
|
10856
|
-
n instanceof gs ? s = "ratelimit_backoff" : n instanceof
|
|
10845
|
+
n instanceof gs ? s = "ratelimit_backoff" : n instanceof Bi ? s = "invalid" : s = "send_error", r.recordDroppedEvent(s, "replay");
|
|
10857
10846
|
}
|
|
10858
10847
|
}
|
|
10859
10848
|
}
|
|
@@ -10901,7 +10890,7 @@ class Zg {
|
|
|
10901
10890
|
_onMutationHandler(t) {
|
|
10902
10891
|
const { ignoreMutations: n } = this._options._experiments;
|
|
10903
10892
|
if (n?.length && t.some((c) => {
|
|
10904
|
-
const a =
|
|
10893
|
+
const a = Vg(c.target), u = n.join(",");
|
|
10905
10894
|
return a?.matches(u);
|
|
10906
10895
|
}))
|
|
10907
10896
|
return !1;
|
|
@@ -10949,10 +10938,10 @@ function t_({
|
|
|
10949
10938
|
// type
|
|
10950
10939
|
t === "value" && e.tagName === "INPUT" && ["submit", "button"].includes(e.getAttribute("type") || "") ? i.replace(/[\S]/g, "*") : i;
|
|
10951
10940
|
}
|
|
10952
|
-
const
|
|
10953
|
-
let
|
|
10941
|
+
const Ui = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]', n_ = ["content-length", "content-type", "accept"], r_ = /* @__PURE__ */ Symbol.for("sentry__originalRequestBody");
|
|
10942
|
+
let $i = !1, Hi = !1;
|
|
10954
10943
|
function s_() {
|
|
10955
|
-
if (typeof Request > "u" ||
|
|
10944
|
+
if (typeof Request > "u" || Hi)
|
|
10956
10945
|
return;
|
|
10957
10946
|
const e = Request;
|
|
10958
10947
|
try {
|
|
@@ -10960,7 +10949,7 @@ function s_() {
|
|
|
10960
10949
|
const s = new e(n, r);
|
|
10961
10950
|
return r?.body != null && (s[r_] = r.body), s;
|
|
10962
10951
|
};
|
|
10963
|
-
t.prototype = e.prototype, N.Request = t,
|
|
10952
|
+
t.prototype = e.prototype, N.Request = t, Hi = !0;
|
|
10964
10953
|
} catch {
|
|
10965
10954
|
}
|
|
10966
10955
|
}
|
|
@@ -10983,7 +10972,7 @@ class o_ {
|
|
|
10983
10972
|
flushMinDelay: t = xp,
|
|
10984
10973
|
flushMaxDelay: n = Mp,
|
|
10985
10974
|
minReplayDuration: r = Pp,
|
|
10986
|
-
maxReplayDuration: s =
|
|
10975
|
+
maxReplayDuration: s = _i,
|
|
10987
10976
|
stickySession: i = !0,
|
|
10988
10977
|
useCompression: o = !0,
|
|
10989
10978
|
workerUrl: c,
|
|
@@ -11008,7 +10997,7 @@ class o_ {
|
|
|
11008
10997
|
ignore: y = [],
|
|
11009
10998
|
maskFn: T,
|
|
11010
10999
|
beforeAddRecordingEvent: U,
|
|
11011
|
-
beforeErrorSampling:
|
|
11000
|
+
beforeErrorSampling: G,
|
|
11012
11001
|
onError: Y,
|
|
11013
11002
|
attachRawBodyFromRequest: ae = !1
|
|
11014
11003
|
} = {}) {
|
|
@@ -11055,7 +11044,7 @@ class o_ {
|
|
|
11055
11044
|
flushMinDelay: t,
|
|
11056
11045
|
flushMaxDelay: n,
|
|
11057
11046
|
minReplayDuration: Math.min(r, Fp),
|
|
11058
|
-
maxReplayDuration: Math.min(s,
|
|
11047
|
+
maxReplayDuration: Math.min(s, _i),
|
|
11059
11048
|
stickySession: i,
|
|
11060
11049
|
useCompression: o,
|
|
11061
11050
|
workerUrl: c,
|
|
@@ -11069,30 +11058,30 @@ class o_ {
|
|
|
11069
11058
|
networkDetailAllowUrls: E,
|
|
11070
11059
|
networkDetailDenyUrls: _,
|
|
11071
11060
|
networkCaptureBodies: k,
|
|
11072
|
-
networkRequestHeaders:
|
|
11073
|
-
networkResponseHeaders:
|
|
11061
|
+
networkRequestHeaders: Wi(B),
|
|
11062
|
+
networkResponseHeaders: Wi(D),
|
|
11074
11063
|
beforeAddRecordingEvent: U,
|
|
11075
|
-
beforeErrorSampling:
|
|
11064
|
+
beforeErrorSampling: G,
|
|
11076
11065
|
onError: Y,
|
|
11077
11066
|
attachRawBodyFromRequest: ae,
|
|
11078
11067
|
_experiments: a
|
|
11079
|
-
}, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${
|
|
11068
|
+
}, this._initialOptions.blockAllMedia && (this._recordingOptions.blockSelector = this._recordingOptions.blockSelector ? `${this._recordingOptions.blockSelector},${Ui}` : Ui, this._recordingOptions.ignoreCSSAttributes = /* @__PURE__ */ new Set(["background-image"])), this._isInitialized && di())
|
|
11080
11069
|
throw new Error("Multiple Sentry Session Replay instances are not supported");
|
|
11081
11070
|
this._isInitialized = !0;
|
|
11082
11071
|
}
|
|
11083
11072
|
/** If replay has already been initialized */
|
|
11084
11073
|
get _isInitialized() {
|
|
11085
|
-
return
|
|
11074
|
+
return $i;
|
|
11086
11075
|
}
|
|
11087
11076
|
/** Update _isInitialized */
|
|
11088
11077
|
set _isInitialized(t) {
|
|
11089
|
-
|
|
11078
|
+
$i = t;
|
|
11090
11079
|
}
|
|
11091
11080
|
/**
|
|
11092
11081
|
* Setup and initialize replay container
|
|
11093
11082
|
*/
|
|
11094
11083
|
afterAllSetup(t) {
|
|
11095
|
-
!
|
|
11084
|
+
!di() || this._replay || (this._initialOptions.attachRawBodyFromRequest && s_(), this._setup(t), this._initialize(t));
|
|
11096
11085
|
}
|
|
11097
11086
|
/**
|
|
11098
11087
|
* Start a replay regardless of sampling rate. Calling this will always
|
|
@@ -11188,14 +11177,14 @@ function a_(e, t) {
|
|
|
11188
11177
|
);
|
|
11189
11178
|
}), s != null && (r.sessionSampleRate = s), i != null && (r.errorSampleRate = i), r;
|
|
11190
11179
|
}
|
|
11191
|
-
function
|
|
11180
|
+
function Wi(e) {
|
|
11192
11181
|
return [...n_, ...e.map((t) => t.toLowerCase())];
|
|
11193
11182
|
}
|
|
11194
11183
|
function c_(e) {
|
|
11195
11184
|
const t = {
|
|
11196
11185
|
...e
|
|
11197
11186
|
};
|
|
11198
|
-
return
|
|
11187
|
+
return Do(t, "react"), yo("react", { version: Xa.version }), kp(t);
|
|
11199
11188
|
}
|
|
11200
11189
|
const u_ = [
|
|
11201
11190
|
/supertab\.js$/,
|
|
@@ -11203,24 +11192,30 @@ const u_ = [
|
|
|
11203
11192
|
/monetization-provider\.js$/,
|
|
11204
11193
|
/googlefc\.js$/
|
|
11205
11194
|
];
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
release: `${Xa}@${Ja}`,
|
|
11209
|
-
environment: Ka,
|
|
11210
|
-
integrations: [i_()],
|
|
11211
|
-
beforeSend: (e) => e.exception?.values?.some((n) => {
|
|
11195
|
+
function l_(e) {
|
|
11196
|
+
return e.exception?.values?.some((n) => {
|
|
11212
11197
|
const r = n.stacktrace?.frames;
|
|
11213
|
-
return r?.length ?
|
|
11214
|
-
|
|
11215
|
-
|
|
11198
|
+
return r?.length ? ((n.mechanism?.type ?? "").startsWith(
|
|
11199
|
+
"auto.browser.browserapierrors"
|
|
11200
|
+
) ? r.slice(-1) : r.slice(-2)).some((c) => {
|
|
11201
|
+
const a = c.filename;
|
|
11202
|
+
return a && u_.some((u) => u.test(a));
|
|
11216
11203
|
}) : !1;
|
|
11217
|
-
}) ? e : null
|
|
11204
|
+
}) ? e : null;
|
|
11205
|
+
}
|
|
11206
|
+
c_({
|
|
11207
|
+
dsn: ec,
|
|
11208
|
+
release: `${Qa}@${Za}`,
|
|
11209
|
+
environment: Ja,
|
|
11210
|
+
integrations: [i_()],
|
|
11211
|
+
beforeSend: l_,
|
|
11218
11212
|
tracesSampleRate: 0,
|
|
11219
11213
|
profilesSampleRate: 0,
|
|
11220
11214
|
replaysSessionSampleRate: 0,
|
|
11221
11215
|
replaysOnErrorSampleRate: 1
|
|
11222
11216
|
});
|
|
11223
|
-
const
|
|
11217
|
+
const f_ = (e) => jr(e);
|
|
11224
11218
|
export {
|
|
11225
|
-
|
|
11219
|
+
f_ as captureException,
|
|
11220
|
+
l_ as filterSupertabErrors
|
|
11226
11221
|
};
|