@konnectio/core 4.0.81 → 4.0.83

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.
Files changed (73) hide show
  1. package/dist/ActionField-BA-fYDFE.js +100 -0
  2. package/dist/ActionField-BA-fYDFE.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-cs1R6FqT.js +281 -0
  4. package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-b67PURkf.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js} +1156 -1171
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
  7. package/dist/{CheckoutWindow-CiImalcO.js → CheckoutWindow-BWvzwZp7.js} +153 -168
  8. package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
  9. package/dist/{ErrorMessage-noDYCPm1.js → ErrorMessage-Cznv1pOA.js} +20 -35
  10. package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
  11. package/dist/EventAvailabilityForm-CCIRdxiD.js +111 -0
  12. package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
  13. package/dist/Field-BvDQnKDq.js +43 -0
  14. package/dist/Field-BvDQnKDq.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DYwA6hiM.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js} +2302 -2317
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
  17. package/dist/TermsOfService-GFdUcU5a.js +29 -0
  18. package/dist/_-CApO2y_W.js +5 -0
  19. package/dist/_.vue_vue_type_style_index_0_lang-JXEPTW6b.js +25 -0
  20. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  21. package/dist/availability.js +55 -71
  22. package/dist/availability.js.br +0 -0
  23. package/dist/deep-link.js +21 -36
  24. package/dist/deep-link.js.br +0 -0
  25. package/dist/event.js +408 -424
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +73 -89
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +181 -197
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-DA27WKsi.js +119 -0
  32. package/dist/giftCard-DA27WKsi.js.br +0 -0
  33. package/dist/hotel.js +505 -520
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DD0W9fy2.js → masonry.plugin-C22IPiCy.js} +53 -68
  36. package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
  37. package/dist/{mitt-BeqJ2MFv.js → mitt-QLRlCcPH.js} +983 -998
  38. package/dist/mitt-QLRlCcPH.js.br +0 -0
  39. package/dist/polyfill.js +4686 -13780
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/{style-DcfCYaKA.js → style-CF23zZwv.js} +388 -403
  42. package/dist/style-CF23zZwv.js.br +0 -0
  43. package/dist/{_sentry-release-injection-file-DNUh2Gjq.js → vue.esm-bundler-BkY4vCIk.js} +1987 -2003
  44. package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
  45. package/package.json +1 -3
  46. package/dist/ActionField-CTdoYeCb.js +0 -115
  47. package/dist/ActionField-CTdoYeCb.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-goa9gs9v.js +0 -296
  49. package/dist/AvailabilitySkeleton-goa9gs9v.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-b67PURkf.js.br +0 -0
  51. package/dist/CheckoutWindow-CiImalcO.js.br +0 -0
  52. package/dist/ErrorMessage-noDYCPm1.js.br +0 -0
  53. package/dist/EventAvailabilityForm-9NeWNNcp.js +0 -126
  54. package/dist/EventAvailabilityForm-9NeWNNcp.js.br +0 -0
  55. package/dist/Field-BWYA1VPD.js +0 -58
  56. package/dist/Field-BWYA1VPD.js.br +0 -0
  57. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DYwA6hiM.js.br +0 -0
  58. package/dist/TermsOfService-Ck17xk9Q.js +0 -44
  59. package/dist/TermsOfService-Ck17xk9Q.js.br +0 -0
  60. package/dist/_-Cd2-tqPM.js +0 -20
  61. package/dist/_.vue_vue_type_style_index_0_lang-NE_Zq7Js.js +0 -40
  62. package/dist/_.vue_vue_type_style_index_0_lang-NE_Zq7Js.js.br +0 -0
  63. package/dist/_commonjsHelpers-wQPQJtsq.js +0 -25
  64. package/dist/_commonjsHelpers-wQPQJtsq.js.br +0 -0
  65. package/dist/_sentry-release-injection-file-DNUh2Gjq.js.br +0 -0
  66. package/dist/giftCard-DrwsQrjA.js +0 -134
  67. package/dist/giftCard-DrwsQrjA.js.br +0 -0
  68. package/dist/masonry.plugin-DD0W9fy2.js.br +0 -0
  69. package/dist/mitt-BeqJ2MFv.js.br +0 -0
  70. package/dist/sentry-Bmg62TCa.js +0 -26
  71. package/dist/style-DcfCYaKA.js.br +0 -0
  72. package/dist/tracing-nJlxVqd0.js +0 -2639
  73. package/dist/tracing-nJlxVqd0.js.br +0 -0
@@ -1,2639 +0,0 @@
1
- (function() {
2
- try {
3
- var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, e = new Error().stack;
4
- e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "e78f193f-821f-4623-a665-df25ab6a0292", t._sentryDebugIdIdentifier = "sentry-dbid-e78f193f-821f-4623-a665-df25ab6a0292");
5
- } catch {
6
- }
7
- })();
8
- {
9
- var K = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10
- K._sentryModuleMetadata = K._sentryModuleMetadata || {}, K._sentryModuleMetadata[new Error().stack] = Object.assign(
11
- {},
12
- K._sentryModuleMetadata[new Error().stack],
13
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
14
- );
15
- }
16
- const Kt = Object.prototype.toString;
17
- function ye(t) {
18
- switch (Kt.call(t)) {
19
- case "[object Error]":
20
- case "[object Exception]":
21
- case "[object DOMException]":
22
- return !0;
23
- default:
24
- return W(t, Error);
25
- }
26
- }
27
- function L(t, e) {
28
- return Kt.call(t) === `[object ${e}]`;
29
- }
30
- function mr(t) {
31
- return L(t, "ErrorEvent");
32
- }
33
- function Sr(t) {
34
- return L(t, "DOMError");
35
- }
36
- function yr(t) {
37
- return L(t, "DOMException");
38
- }
39
- function q(t) {
40
- return L(t, "String");
41
- }
42
- function Ee(t) {
43
- return typeof t == "object" && t !== null && "__sentry_template_string__" in t && "__sentry_template_values__" in t;
44
- }
45
- function Er(t) {
46
- return t === null || Ee(t) || typeof t != "object" && typeof t != "function";
47
- }
48
- function pt(t) {
49
- return L(t, "Object");
50
- }
51
- function be(t) {
52
- return typeof Event < "u" && W(t, Event);
53
- }
54
- function Te(t) {
55
- return typeof Element < "u" && W(t, Element);
56
- }
57
- function Ie(t) {
58
- return L(t, "RegExp");
59
- }
60
- function lt(t) {
61
- return !!(t && t.then && typeof t.then == "function");
62
- }
63
- function Ne(t) {
64
- return pt(t) && "nativeEvent" in t && "preventDefault" in t && "stopPropagation" in t;
65
- }
66
- function W(t, e) {
67
- try {
68
- return t instanceof e;
69
- } catch {
70
- return !1;
71
- }
72
- }
73
- function zt(t) {
74
- return !!(typeof t == "object" && t !== null && (t.__isVue || t._isVue));
75
- }
76
- function G(t, e = 0) {
77
- return typeof t != "string" || e === 0 || t.length <= e ? t : `${t.slice(0, e)}...`;
78
- }
79
- function br(t, e) {
80
- if (!Array.isArray(t))
81
- return "";
82
- const n = [];
83
- for (let r = 0; r < t.length; r++) {
84
- const s = t[r];
85
- try {
86
- zt(s) ? n.push("[VueViewModel]") : n.push(String(s));
87
- } catch {
88
- n.push("[value cannot be serialized]");
89
- }
90
- }
91
- return n.join(e);
92
- }
93
- function Ae(t, e, n = !1) {
94
- return q(t) ? Ie(e) ? e.test(t) : q(e) ? n ? t === e : t.includes(e) : !1 : !1;
95
- }
96
- function Tr(t, e = [], n = !1) {
97
- return e.some((r) => Ae(t, r, n));
98
- }
99
- const B = "8.25.0", h = globalThis;
100
- function _t(t, e, n) {
101
- const r = h, s = r.__SENTRY__ = r.__SENTRY__ || {}, i = s[B] = s[B] || {};
102
- return i[t] || (i[t] = e());
103
- }
104
- const w = h, Oe = 80;
105
- function Re(t, e = {}) {
106
- if (!t)
107
- return "<unknown>";
108
- try {
109
- let n = t;
110
- const r = 5, s = [];
111
- let i = 0, o = 0;
112
- const a = " > ", u = a.length;
113
- let c;
114
- const f = Array.isArray(e) ? e : e.keyAttrs, d = !Array.isArray(e) && e.maxStringLength || Oe;
115
- for (; n && i++ < r && (c = De(n, f), !(c === "html" || i > 1 && o + s.length * u + c.length >= d)); )
116
- s.push(c), o += c.length, n = n.parentNode;
117
- return s.reverse().join(a);
118
- } catch {
119
- return "<unknown>";
120
- }
121
- }
122
- function De(t, e) {
123
- const n = t, r = [];
124
- if (!n || !n.tagName)
125
- return "";
126
- if (w.HTMLElement && n instanceof HTMLElement && n.dataset) {
127
- if (n.dataset.sentryComponent)
128
- return n.dataset.sentryComponent;
129
- if (n.dataset.sentryElement)
130
- return n.dataset.sentryElement;
131
- }
132
- r.push(n.tagName.toLowerCase());
133
- const s = e && e.length ? e.filter((o) => n.getAttribute(o)).map((o) => [o, n.getAttribute(o)]) : null;
134
- if (s && s.length)
135
- s.forEach((o) => {
136
- r.push(`[${o[0]}="${o[1]}"]`);
137
- });
138
- else {
139
- n.id && r.push(`#${n.id}`);
140
- const o = n.className;
141
- if (o && q(o)) {
142
- const a = o.split(/\s+/);
143
- for (const u of a)
144
- r.push(`.${u}`);
145
- }
146
- }
147
- const i = ["aria-label", "type", "name", "title", "alt"];
148
- for (const o of i) {
149
- const a = n.getAttribute(o);
150
- a && r.push(`[${o}="${a}"]`);
151
- }
152
- return r.join("");
153
- }
154
- function Ir() {
155
- try {
156
- return w.document.location.href;
157
- } catch {
158
- return "";
159
- }
160
- }
161
- function Nr(t) {
162
- return w.document && w.document.querySelector ? w.document.querySelector(t) : null;
163
- }
164
- function Ar(t) {
165
- if (!w.HTMLElement)
166
- return null;
167
- let e = t;
168
- const n = 5;
169
- for (let r = 0; r < n; r++) {
170
- if (!e)
171
- return null;
172
- if (e instanceof HTMLElement) {
173
- if (e.dataset.sentryComponent)
174
- return e.dataset.sentryComponent;
175
- if (e.dataset.sentryElement)
176
- return e.dataset.sentryElement;
177
- }
178
- e = e.parentNode;
179
- }
180
- return null;
181
- }
182
- const X = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ke = "Sentry Logger ", At = [
183
- "debug",
184
- "info",
185
- "warn",
186
- "error",
187
- "log",
188
- "assert",
189
- "trace"
190
- ], Ot = {};
191
- function ht(t) {
192
- if (!("console" in h))
193
- return t();
194
- const e = h.console, n = {}, r = Object.keys(Ot);
195
- r.forEach((s) => {
196
- const i = Ot[s];
197
- n[s] = e[s], e[s] = i;
198
- });
199
- try {
200
- return t();
201
- } finally {
202
- r.forEach((s) => {
203
- e[s] = n[s];
204
- });
205
- }
206
- }
207
- function Ce() {
208
- let t = !1;
209
- const e = {
210
- enable: () => {
211
- t = !0;
212
- },
213
- disable: () => {
214
- t = !1;
215
- },
216
- isEnabled: () => t
217
- };
218
- return X ? At.forEach((n) => {
219
- e[n] = (...r) => {
220
- t && ht(() => {
221
- h.console[n](`${ke}[${n}]:`, ...r);
222
- });
223
- };
224
- }) : At.forEach((n) => {
225
- e[n] = () => {
226
- };
227
- }), e;
228
- }
229
- const p = Ce(), $e = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
230
- function we(t) {
231
- return t === "http" || t === "https";
232
- }
233
- function gt(t, e = !1) {
234
- const { host: n, path: r, pass: s, port: i, projectId: o, protocol: a, publicKey: u } = t;
235
- return `${a}://${u}${e && s ? `:${s}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${o}`;
236
- }
237
- function xe(t) {
238
- const e = $e.exec(t);
239
- if (!e) {
240
- ht(() => {
241
- console.error(`Invalid Sentry Dsn: ${t}`);
242
- });
243
- return;
244
- }
245
- const [n, r, s = "", i = "", o = "", a = ""] = e.slice(1);
246
- let u = "", c = a;
247
- const f = c.split("/");
248
- if (f.length > 1 && (u = f.slice(0, -1).join("/"), c = f.pop()), c) {
249
- const d = c.match(/^\d+/);
250
- d && (c = d[0]);
251
- }
252
- return qt({ host: i, pass: s, path: u, projectId: c, port: o, protocol: n, publicKey: r });
253
- }
254
- function qt(t) {
255
- return {
256
- protocol: t.protocol,
257
- publicKey: t.publicKey || "",
258
- pass: t.pass || "",
259
- host: t.host,
260
- port: t.port || "",
261
- path: t.path || "",
262
- projectId: t.projectId
263
- };
264
- }
265
- function Pe(t) {
266
- if (!X)
267
- return !0;
268
- const { port: e, projectId: n, protocol: r } = t;
269
- return ["protocol", "publicKey", "host", "projectId"].find((o) => t[o] ? !1 : (p.error(`Invalid Sentry Dsn: ${o} missing`), !0)) ? !1 : n.match(/^\d+$/) ? we(r) ? e && isNaN(parseInt(e, 10)) ? (p.error(`Invalid Sentry Dsn: Invalid port ${e}`), !1) : !0 : (p.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (p.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
270
- }
271
- function Or(t) {
272
- const e = typeof t == "string" ? xe(t) : qt(t);
273
- if (!(!e || !Pe(e)))
274
- return e;
275
- }
276
- function Rr(t, e, n) {
277
- if (!(e in t))
278
- return;
279
- const r = t[e], s = n(r);
280
- typeof s == "function" && Me(s, r), t[e] = s;
281
- }
282
- function D(t, e, n) {
283
- try {
284
- Object.defineProperty(t, e, {
285
- // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
286
- value: n,
287
- writable: !0,
288
- configurable: !0
289
- });
290
- } catch {
291
- X && p.log(`Failed to add non-enumerable property "${e}" to object`, t);
292
- }
293
- }
294
- function Me(t, e) {
295
- try {
296
- const n = e.prototype || {};
297
- t.prototype = e.prototype = n, D(t, "__sentry_original__", e);
298
- } catch {
299
- }
300
- }
301
- function Dr(t) {
302
- return t.__sentry_original__;
303
- }
304
- function kr(t) {
305
- return Object.keys(t).map((e) => `${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");
306
- }
307
- function Vt(t) {
308
- if (ye(t))
309
- return {
310
- message: t.message,
311
- name: t.name,
312
- stack: t.stack,
313
- ...Dt(t)
314
- };
315
- if (be(t)) {
316
- const e = {
317
- type: t.type,
318
- target: Rt(t.target),
319
- currentTarget: Rt(t.currentTarget),
320
- ...Dt(t)
321
- };
322
- return typeof CustomEvent < "u" && W(t, CustomEvent) && (e.detail = t.detail), e;
323
- } else
324
- return t;
325
- }
326
- function Rt(t) {
327
- try {
328
- return Te(t) ? Re(t) : Object.prototype.toString.call(t);
329
- } catch {
330
- return "<unknown>";
331
- }
332
- }
333
- function Dt(t) {
334
- if (typeof t == "object" && t !== null) {
335
- const e = {};
336
- for (const n in t)
337
- Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
338
- return e;
339
- } else
340
- return {};
341
- }
342
- function Cr(t, e = 40) {
343
- const n = Object.keys(Vt(t));
344
- n.sort();
345
- const r = n[0];
346
- if (!r)
347
- return "[object has no keys]";
348
- if (r.length >= e)
349
- return G(r, e);
350
- for (let s = n.length; s > 0; s--) {
351
- const i = n.slice(0, s).join(", ");
352
- if (!(i.length > e))
353
- return s === n.length ? i : G(i, e);
354
- }
355
- return "";
356
- }
357
- function m(t) {
358
- return nt(t, /* @__PURE__ */ new Map());
359
- }
360
- function nt(t, e) {
361
- if (Le(t)) {
362
- const n = e.get(t);
363
- if (n !== void 0)
364
- return n;
365
- const r = {};
366
- e.set(t, r);
367
- for (const s of Object.keys(t))
368
- typeof t[s] < "u" && (r[s] = nt(t[s], e));
369
- return r;
370
- }
371
- if (Array.isArray(t)) {
372
- const n = e.get(t);
373
- if (n !== void 0)
374
- return n;
375
- const r = [];
376
- return e.set(t, r), t.forEach((s) => {
377
- r.push(nt(s, e));
378
- }), r;
379
- }
380
- return t;
381
- }
382
- function Le(t) {
383
- if (!pt(t))
384
- return !1;
385
- try {
386
- const e = Object.getPrototypeOf(t).constructor.name;
387
- return !e || e === "Object";
388
- } catch {
389
- return !0;
390
- }
391
- }
392
- const Wt = 50, Ue = "?", kt = /\(error: (.*)\)/, Ct = /captureMessage|captureException/;
393
- function je(...t) {
394
- const e = t.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
395
- return (n, r = 0, s = 0) => {
396
- const i = [], o = n.split(`
397
- `);
398
- for (let a = r; a < o.length; a++) {
399
- const u = o[a];
400
- if (u.length > 1024)
401
- continue;
402
- const c = kt.test(u) ? u.replace(kt, "$1") : u;
403
- if (!c.match(/\S*Error: /)) {
404
- for (const f of e) {
405
- const d = f(c);
406
- if (d) {
407
- i.push(d);
408
- break;
409
- }
410
- }
411
- if (i.length >= Wt + s)
412
- break;
413
- }
414
- }
415
- return ve(i.slice(s));
416
- };
417
- }
418
- function $r(t) {
419
- return Array.isArray(t) ? je(...t) : t;
420
- }
421
- function ve(t) {
422
- if (!t.length)
423
- return [];
424
- const e = Array.from(t);
425
- return /sentryWrapped/.test(z(e).function || "") && e.pop(), e.reverse(), Ct.test(z(e).function || "") && (e.pop(), Ct.test(z(e).function || "") && e.pop()), e.slice(0, Wt).map((n) => ({
426
- ...n,
427
- filename: n.filename || z(e).filename,
428
- function: n.function || Ue
429
- }));
430
- }
431
- function z(t) {
432
- return t[t.length - 1] || {};
433
- }
434
- const tt = "<anonymous>";
435
- function Fe(t) {
436
- try {
437
- return !t || typeof t != "function" ? tt : t.name || tt;
438
- } catch {
439
- return tt;
440
- }
441
- }
442
- function wr(t) {
443
- const e = t.exception;
444
- if (e) {
445
- const n = [];
446
- try {
447
- return e.values.forEach((r) => {
448
- r.stacktrace.frames && n.push(...r.stacktrace.frames);
449
- }), n;
450
- } catch {
451
- return;
452
- }
453
- }
454
- }
455
- const Xt = 1e3;
456
- function mt() {
457
- return Date.now() / Xt;
458
- }
459
- function Ge() {
460
- const { performance: t } = h;
461
- if (!t || !t.now)
462
- return mt;
463
- const e = Date.now() - t.now(), n = t.timeOrigin == null ? e : t.timeOrigin;
464
- return () => (n + t.now()) / Xt;
465
- }
466
- const P = Ge(), xr = (() => {
467
- const { performance: t } = h;
468
- if (!t || !t.now)
469
- return;
470
- const e = 3600 * 1e3, n = t.now(), r = Date.now(), s = t.timeOrigin ? Math.abs(t.timeOrigin + n - r) : e, i = s < e, o = t.timing && t.timing.navigationStart, u = typeof o == "number" ? Math.abs(o + n - r) : e, c = u < e;
471
- return i || c ? s <= u ? t.timeOrigin : o : r;
472
- })();
473
- function Be() {
474
- const t = typeof WeakSet == "function", e = t ? /* @__PURE__ */ new WeakSet() : [];
475
- function n(s) {
476
- if (t)
477
- return e.has(s) ? !0 : (e.add(s), !1);
478
- for (let i = 0; i < e.length; i++)
479
- if (e[i] === s)
480
- return !0;
481
- return e.push(s), !1;
482
- }
483
- function r(s) {
484
- if (t)
485
- e.delete(s);
486
- else
487
- for (let i = 0; i < e.length; i++)
488
- if (e[i] === s) {
489
- e.splice(i, 1);
490
- break;
491
- }
492
- }
493
- return [n, r];
494
- }
495
- function _() {
496
- const t = h, e = t.crypto || t.msCrypto;
497
- let n = () => Math.random() * 16;
498
- try {
499
- if (e && e.randomUUID)
500
- return e.randomUUID().replace(/-/g, "");
501
- e && e.getRandomValues && (n = () => {
502
- const r = new Uint8Array(1);
503
- return e.getRandomValues(r), r[0];
504
- });
505
- } catch {
506
- }
507
- return ("10000000100040008000" + 1e11).replace(
508
- /[018]/g,
509
- (r) => (
510
- // eslint-disable-next-line no-bitwise
511
- (r ^ (n() & 15) >> r / 4).toString(16)
512
- )
513
- );
514
- }
515
- function Qt(t) {
516
- return t.exception && t.exception.values ? t.exception.values[0] : void 0;
517
- }
518
- function Pr(t) {
519
- const { message: e, event_id: n } = t;
520
- if (e)
521
- return e;
522
- const r = Qt(t);
523
- return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
524
- }
525
- function Mr(t, e, n) {
526
- const r = t.exception = t.exception || {}, s = r.values = r.values || [], i = s[0] = s[0] || {};
527
- i.value || (i.value = e || ""), i.type || (i.type = "Error");
528
- }
529
- function He(t, e) {
530
- const n = Qt(t);
531
- if (!n)
532
- return;
533
- const r = { type: "generic", handled: !0 }, s = n.mechanism;
534
- if (n.mechanism = { ...r, ...s, ...e }, e && "data" in e) {
535
- const i = { ...s && s.data, ...e.data };
536
- n.mechanism.data = i;
537
- }
538
- }
539
- function Lr(t) {
540
- if (t && t.__sentry_captured__)
541
- return !0;
542
- try {
543
- D(t, "__sentry_captured__", !0);
544
- } catch {
545
- }
546
- return !1;
547
- }
548
- function Ye(t) {
549
- return Array.isArray(t) ? t : [t];
550
- }
551
- function R(t, e = 100, n = 1 / 0) {
552
- try {
553
- return rt("", t, e, n);
554
- } catch (r) {
555
- return { ERROR: `**non-serializable** (${r})` };
556
- }
557
- }
558
- function Je(t, e = 3, n = 100 * 1024) {
559
- const r = R(t, e);
560
- return Ve(r) > n ? Je(t, e - 1, n) : r;
561
- }
562
- function rt(t, e, n = 1 / 0, r = 1 / 0, s = Be()) {
563
- const [i, o] = s;
564
- if (e == null || // this matches null and undefined -> eqeq not eqeqeq
565
- ["number", "boolean", "string"].includes(typeof e) && !Number.isNaN(e))
566
- return e;
567
- const a = Ke(t, e);
568
- if (!a.startsWith("[object "))
569
- return a;
570
- if (e.__sentry_skip_normalization__)
571
- return e;
572
- const u = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
573
- if (u === 0)
574
- return a.replace("object ", "");
575
- if (i(e))
576
- return "[Circular ~]";
577
- const c = e;
578
- if (c && typeof c.toJSON == "function")
579
- try {
580
- const g = c.toJSON();
581
- return rt("", g, u - 1, r, s);
582
- } catch {
583
- }
584
- const f = Array.isArray(e) ? [] : {};
585
- let d = 0;
586
- const l = Vt(e);
587
- for (const g in l) {
588
- if (!Object.prototype.hasOwnProperty.call(l, g))
589
- continue;
590
- if (d >= r) {
591
- f[g] = "[MaxProperties ~]";
592
- break;
593
- }
594
- const $ = l[g];
595
- f[g] = rt(g, $, u - 1, r, s), d++;
596
- }
597
- return o(e), f;
598
- }
599
- function Ke(t, e) {
600
- try {
601
- if (t === "domain" && e && typeof e == "object" && e._events)
602
- return "[Domain]";
603
- if (t === "domainEmitter")
604
- return "[DomainEmitter]";
605
- if (typeof global < "u" && e === global)
606
- return "[Global]";
607
- if (typeof window < "u" && e === window)
608
- return "[Window]";
609
- if (typeof document < "u" && e === document)
610
- return "[Document]";
611
- if (zt(e))
612
- return "[VueViewModel]";
613
- if (Ne(e))
614
- return "[SyntheticEvent]";
615
- if (typeof e == "number" && e !== e)
616
- return "[NaN]";
617
- if (typeof e == "function")
618
- return `[Function: ${Fe(e)}]`;
619
- if (typeof e == "symbol")
620
- return `[${String(e)}]`;
621
- if (typeof e == "bigint")
622
- return `[BigInt: ${String(e)}]`;
623
- const n = ze(e);
624
- return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
625
- } catch (n) {
626
- return `**non-serializable** (${n})`;
627
- }
628
- }
629
- function ze(t) {
630
- const e = Object.getPrototypeOf(t);
631
- return e ? e.constructor.name : "null prototype";
632
- }
633
- function qe(t) {
634
- return ~-encodeURI(t).split(/%..|./).length;
635
- }
636
- function Ve(t) {
637
- return qe(JSON.stringify(t));
638
- }
639
- var A;
640
- (function(t) {
641
- t[t.PENDING = 0] = "PENDING";
642
- const n = 1;
643
- t[t.RESOLVED = n] = "RESOLVED";
644
- const r = 2;
645
- t[t.REJECTED = r] = "REJECTED";
646
- })(A || (A = {}));
647
- function Ur(t) {
648
- return new T((e) => {
649
- e(t);
650
- });
651
- }
652
- function jr(t) {
653
- return new T((e, n) => {
654
- n(t);
655
- });
656
- }
657
- class T {
658
- constructor(e) {
659
- T.prototype.__init.call(this), T.prototype.__init2.call(this), T.prototype.__init3.call(this), T.prototype.__init4.call(this), this._state = A.PENDING, this._handlers = [];
660
- try {
661
- e(this._resolve, this._reject);
662
- } catch (n) {
663
- this._reject(n);
664
- }
665
- }
666
- /** JSDoc */
667
- then(e, n) {
668
- return new T((r, s) => {
669
- this._handlers.push([
670
- !1,
671
- (i) => {
672
- if (!e)
673
- r(i);
674
- else
675
- try {
676
- r(e(i));
677
- } catch (o) {
678
- s(o);
679
- }
680
- },
681
- (i) => {
682
- if (!n)
683
- s(i);
684
- else
685
- try {
686
- r(n(i));
687
- } catch (o) {
688
- s(o);
689
- }
690
- }
691
- ]), this._executeHandlers();
692
- });
693
- }
694
- /** JSDoc */
695
- catch(e) {
696
- return this.then((n) => n, e);
697
- }
698
- /** JSDoc */
699
- finally(e) {
700
- return new T((n, r) => {
701
- let s, i;
702
- return this.then(
703
- (o) => {
704
- i = !1, s = o, e && e();
705
- },
706
- (o) => {
707
- i = !0, s = o, e && e();
708
- }
709
- ).then(() => {
710
- if (i) {
711
- r(s);
712
- return;
713
- }
714
- n(s);
715
- });
716
- });
717
- }
718
- /** JSDoc */
719
- __init() {
720
- this._resolve = (e) => {
721
- this._setResult(A.RESOLVED, e);
722
- };
723
- }
724
- /** JSDoc */
725
- __init2() {
726
- this._reject = (e) => {
727
- this._setResult(A.REJECTED, e);
728
- };
729
- }
730
- /** JSDoc */
731
- __init3() {
732
- this._setResult = (e, n) => {
733
- if (this._state === A.PENDING) {
734
- if (lt(n)) {
735
- n.then(this._resolve, this._reject);
736
- return;
737
- }
738
- this._state = e, this._value = n, this._executeHandlers();
739
- }
740
- };
741
- }
742
- /** JSDoc */
743
- __init4() {
744
- this._executeHandlers = () => {
745
- if (this._state === A.PENDING)
746
- return;
747
- const e = this._handlers.slice();
748
- this._handlers = [], e.forEach((n) => {
749
- n[0] || (this._state === A.RESOLVED && n[1](this._value), this._state === A.REJECTED && n[2](this._value), n[0] = !0);
750
- });
751
- };
752
- }
753
- }
754
- const vr = "baggage", Zt = "sentry-", We = /^sentry-/, Xe = 8192;
755
- function te(t) {
756
- const e = Qe(t);
757
- if (!e)
758
- return;
759
- const n = Object.entries(e).reduce((r, [s, i]) => {
760
- if (s.match(We)) {
761
- const o = s.slice(Zt.length);
762
- r[o] = i;
763
- }
764
- return r;
765
- }, {});
766
- if (Object.keys(n).length > 0)
767
- return n;
768
- }
769
- function Fr(t) {
770
- if (!t)
771
- return;
772
- const e = Object.entries(t).reduce(
773
- (n, [r, s]) => (s && (n[`${Zt}${r}`] = s), n),
774
- {}
775
- );
776
- return Ze(e);
777
- }
778
- function Qe(t) {
779
- if (!(!t || !q(t) && !Array.isArray(t)))
780
- return Array.isArray(t) ? t.reduce((e, n) => {
781
- const r = $t(n);
782
- return Object.entries(r).forEach(([s, i]) => {
783
- e[s] = i;
784
- }), e;
785
- }, {}) : $t(t);
786
- }
787
- function $t(t) {
788
- return t.split(",").map((e) => e.split("=").map((n) => decodeURIComponent(n.trim()))).reduce((e, [n, r]) => (n && r && (e[n] = r), e), {});
789
- }
790
- function Ze(t) {
791
- if (Object.keys(t).length !== 0)
792
- return Object.entries(t).reduce((e, [n, r], s) => {
793
- const i = `${encodeURIComponent(n)}=${encodeURIComponent(r)}`, o = s === 0 ? i : `${e},${i}`;
794
- return o.length > Xe ? (X && p.warn(
795
- `Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`
796
- ), e) : o;
797
- }, "");
798
- }
799
- const tn = new RegExp(
800
- "^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
801
- // whitespace
802
- );
803
- function en(t) {
804
- if (!t)
805
- return;
806
- const e = t.match(tn);
807
- if (!e)
808
- return;
809
- let n;
810
- return e[3] === "1" ? n = !0 : e[3] === "0" && (n = !1), {
811
- traceId: e[1],
812
- parentSampled: n,
813
- parentSpanId: e[2]
814
- };
815
- }
816
- function Gr(t, e) {
817
- const n = en(t), r = te(e), { traceId: s, parentSpanId: i, parentSampled: o } = n || {};
818
- return n ? {
819
- traceId: s || _(),
820
- parentSpanId: i || _().substring(16),
821
- spanId: _().substring(16),
822
- sampled: o,
823
- dsc: r || {}
824
- // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it
825
- } : {
826
- traceId: s || _(),
827
- spanId: _().substring(16)
828
- };
829
- }
830
- function nn(t = _(), e = _().substring(16), n) {
831
- let r = "";
832
- return n !== void 0 && (r = n ? "-1" : "-0"), `${t}-${e}${r}`;
833
- }
834
- function St(t, e = []) {
835
- return [t, e];
836
- }
837
- function Br(t, e) {
838
- const [n, r] = t;
839
- return [n, [...r, e]];
840
- }
841
- function Hr(t, e) {
842
- const n = t[1];
843
- for (const r of n) {
844
- const s = r[0].type;
845
- if (e(r, s))
846
- return !0;
847
- }
848
- return !1;
849
- }
850
- function st(t) {
851
- return h.__SENTRY__ && h.__SENTRY__.encodePolyfill ? h.__SENTRY__.encodePolyfill(t) : new TextEncoder().encode(t);
852
- }
853
- function Yr(t) {
854
- const [e, n] = t;
855
- let r = JSON.stringify(e);
856
- function s(i) {
857
- typeof r == "string" ? r = typeof i == "string" ? r + i : [st(r), i] : r.push(typeof i == "string" ? st(i) : i);
858
- }
859
- for (const i of n) {
860
- const [o, a] = i;
861
- if (s(`
862
- ${JSON.stringify(o)}
863
- `), typeof a == "string" || a instanceof Uint8Array)
864
- s(a);
865
- else {
866
- let u;
867
- try {
868
- u = JSON.stringify(a);
869
- } catch {
870
- u = JSON.stringify(R(a));
871
- }
872
- s(u);
873
- }
874
- }
875
- return typeof r == "string" ? r : rn(r);
876
- }
877
- function rn(t) {
878
- const e = t.reduce((s, i) => s + i.length, 0), n = new Uint8Array(e);
879
- let r = 0;
880
- for (const s of t)
881
- n.set(s, r), r += s.length;
882
- return n;
883
- }
884
- function sn(t) {
885
- return [{
886
- type: "span"
887
- }, t];
888
- }
889
- function Jr(t) {
890
- const e = typeof t.data == "string" ? st(t.data) : t.data;
891
- return [
892
- m({
893
- type: "attachment",
894
- length: e.length,
895
- filename: t.filename,
896
- content_type: t.contentType,
897
- attachment_type: t.attachmentType
898
- }),
899
- e
900
- ];
901
- }
902
- const on = {
903
- session: "session",
904
- sessions: "session",
905
- attachment: "attachment",
906
- transaction: "transaction",
907
- event: "error",
908
- client_report: "internal",
909
- user_report: "default",
910
- profile: "profile",
911
- profile_chunk: "profile",
912
- replay_event: "replay",
913
- replay_recording: "replay",
914
- check_in: "monitor",
915
- feedback: "feedback",
916
- span: "span",
917
- statsd: "metric_bucket"
918
- };
919
- function Kr(t) {
920
- return on[t];
921
- }
922
- function ee(t) {
923
- if (!t || !t.sdk)
924
- return;
925
- const { name: e, version: n } = t.sdk;
926
- return { name: e, version: n };
927
- }
928
- function an(t, e, n, r) {
929
- const s = t.sdkProcessingMetadata && t.sdkProcessingMetadata.dynamicSamplingContext;
930
- return {
931
- event_id: t.event_id,
932
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
933
- ...e && { sdk: e },
934
- ...!!n && r && { dsn: gt(r) },
935
- ...s && {
936
- trace: m({ ...s })
937
- }
938
- };
939
- }
940
- function wt() {
941
- return {
942
- traceId: _(),
943
- spanId: _().substring(16)
944
- };
945
- }
946
- const y = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
947
- function U() {
948
- return yt(h), h;
949
- }
950
- function yt(t) {
951
- const e = t.__SENTRY__ = t.__SENTRY__ || {};
952
- return e.version = e.version || B, e[B] = e[B] || {};
953
- }
954
- function cn(t) {
955
- const e = P(), n = {
956
- sid: _(),
957
- init: !0,
958
- timestamp: e,
959
- started: e,
960
- duration: 0,
961
- status: "ok",
962
- errors: 0,
963
- ignoreDuration: !1,
964
- toJSON: () => fn(n)
965
- };
966
- return t && Q(n, t), n;
967
- }
968
- function Q(t, e = {}) {
969
- if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || P(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : _()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
970
- t.duration = void 0;
971
- else if (typeof e.duration == "number")
972
- t.duration = e.duration;
973
- else {
974
- const n = t.timestamp - t.started;
975
- t.duration = n >= 0 ? n : 0;
976
- }
977
- e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
978
- }
979
- function un(t, e) {
980
- let n = {};
981
- t.status === "ok" && (n = { status: "exited" }), Q(t, n);
982
- }
983
- function fn(t) {
984
- return m({
985
- sid: `${t.sid}`,
986
- init: t.init,
987
- // Make sure that sec is converted to ms for date constructor
988
- started: new Date(t.started * 1e3).toISOString(),
989
- timestamp: new Date(t.timestamp * 1e3).toISOString(),
990
- status: t.status,
991
- errors: t.errors,
992
- did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
993
- duration: t.duration,
994
- abnormal_mechanism: t.abnormal_mechanism,
995
- attrs: {
996
- release: t.release,
997
- environment: t.environment,
998
- ip_address: t.ipAddress,
999
- user_agent: t.userAgent
1000
- }
1001
- });
1002
- }
1003
- const it = "_sentrySpan";
1004
- function ot(t, e) {
1005
- e ? D(t, it, e) : delete t[it];
1006
- }
1007
- function V(t) {
1008
- return t[it];
1009
- }
1010
- const dn = 100;
1011
- class Et {
1012
- /** Flag if notifying is happening. */
1013
- /** Callback for client to receive scope changes. */
1014
- /** Callback list that will be called during event processing. */
1015
- /** Array of breadcrumbs. */
1016
- /** User */
1017
- /** Tags */
1018
- /** Extra */
1019
- /** Contexts */
1020
- /** Attachments */
1021
- /** Propagation Context for distributed tracing */
1022
- /**
1023
- * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1024
- * sent to Sentry
1025
- */
1026
- /** Fingerprint */
1027
- /** Severity */
1028
- /**
1029
- * Transaction Name
1030
- *
1031
- * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
1032
- * It's purpose is to assign a transaction to the scope that's added to non-transaction events.
1033
- */
1034
- /** Session */
1035
- /** Request Mode Session Status */
1036
- /** The client on this scope */
1037
- /** Contains the last event id of a captured event. */
1038
- // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1039
- constructor() {
1040
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = wt();
1041
- }
1042
- /**
1043
- * @inheritDoc
1044
- */
1045
- clone() {
1046
- const e = new Et();
1047
- return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, ot(e, V(this)), e;
1048
- }
1049
- /**
1050
- * @inheritDoc
1051
- */
1052
- setClient(e) {
1053
- this._client = e;
1054
- }
1055
- /**
1056
- * @inheritDoc
1057
- */
1058
- setLastEventId(e) {
1059
- this._lastEventId = e;
1060
- }
1061
- /**
1062
- * @inheritDoc
1063
- */
1064
- getClient() {
1065
- return this._client;
1066
- }
1067
- /**
1068
- * @inheritDoc
1069
- */
1070
- lastEventId() {
1071
- return this._lastEventId;
1072
- }
1073
- /**
1074
- * @inheritDoc
1075
- */
1076
- addScopeListener(e) {
1077
- this._scopeListeners.push(e);
1078
- }
1079
- /**
1080
- * @inheritDoc
1081
- */
1082
- addEventProcessor(e) {
1083
- return this._eventProcessors.push(e), this;
1084
- }
1085
- /**
1086
- * @inheritDoc
1087
- */
1088
- setUser(e) {
1089
- return this._user = e || {
1090
- email: void 0,
1091
- id: void 0,
1092
- ip_address: void 0,
1093
- username: void 0
1094
- }, this._session && Q(this._session, { user: e }), this._notifyScopeListeners(), this;
1095
- }
1096
- /**
1097
- * @inheritDoc
1098
- */
1099
- getUser() {
1100
- return this._user;
1101
- }
1102
- /**
1103
- * @inheritDoc
1104
- */
1105
- getRequestSession() {
1106
- return this._requestSession;
1107
- }
1108
- /**
1109
- * @inheritDoc
1110
- */
1111
- setRequestSession(e) {
1112
- return this._requestSession = e, this;
1113
- }
1114
- /**
1115
- * @inheritDoc
1116
- */
1117
- setTags(e) {
1118
- return this._tags = {
1119
- ...this._tags,
1120
- ...e
1121
- }, this._notifyScopeListeners(), this;
1122
- }
1123
- /**
1124
- * @inheritDoc
1125
- */
1126
- setTag(e, n) {
1127
- return this._tags = { ...this._tags, [e]: n }, this._notifyScopeListeners(), this;
1128
- }
1129
- /**
1130
- * @inheritDoc
1131
- */
1132
- setExtras(e) {
1133
- return this._extra = {
1134
- ...this._extra,
1135
- ...e
1136
- }, this._notifyScopeListeners(), this;
1137
- }
1138
- /**
1139
- * @inheritDoc
1140
- */
1141
- setExtra(e, n) {
1142
- return this._extra = { ...this._extra, [e]: n }, this._notifyScopeListeners(), this;
1143
- }
1144
- /**
1145
- * @inheritDoc
1146
- */
1147
- setFingerprint(e) {
1148
- return this._fingerprint = e, this._notifyScopeListeners(), this;
1149
- }
1150
- /**
1151
- * @inheritDoc
1152
- */
1153
- setLevel(e) {
1154
- return this._level = e, this._notifyScopeListeners(), this;
1155
- }
1156
- /**
1157
- * @inheritDoc
1158
- */
1159
- setTransactionName(e) {
1160
- return this._transactionName = e, this._notifyScopeListeners(), this;
1161
- }
1162
- /**
1163
- * @inheritDoc
1164
- */
1165
- setContext(e, n) {
1166
- return n === null ? delete this._contexts[e] : this._contexts[e] = n, this._notifyScopeListeners(), this;
1167
- }
1168
- /**
1169
- * @inheritDoc
1170
- */
1171
- setSession(e) {
1172
- return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
1173
- }
1174
- /**
1175
- * @inheritDoc
1176
- */
1177
- getSession() {
1178
- return this._session;
1179
- }
1180
- /**
1181
- * @inheritDoc
1182
- */
1183
- update(e) {
1184
- if (!e)
1185
- return this;
1186
- const n = typeof e == "function" ? e(this) : e, [r, s] = n instanceof k ? [n.getScopeData(), n.getRequestSession()] : pt(n) ? [e, e.requestSession] : [], { tags: i, extra: o, user: a, contexts: u, level: c, fingerprint: f = [], propagationContext: d } = r || {};
1187
- return this._tags = { ...this._tags, ...i }, this._extra = { ...this._extra, ...o }, this._contexts = { ...this._contexts, ...u }, a && Object.keys(a).length && (this._user = a), c && (this._level = c), f.length && (this._fingerprint = f), d && (this._propagationContext = d), s && (this._requestSession = s), this;
1188
- }
1189
- /**
1190
- * @inheritDoc
1191
- */
1192
- clear() {
1193
- return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, ot(this, void 0), this._attachments = [], this._propagationContext = wt(), this._notifyScopeListeners(), this;
1194
- }
1195
- /**
1196
- * @inheritDoc
1197
- */
1198
- addBreadcrumb(e, n) {
1199
- const r = typeof n == "number" ? n : dn;
1200
- if (r <= 0)
1201
- return this;
1202
- const s = {
1203
- timestamp: mt(),
1204
- ...e
1205
- }, i = this._breadcrumbs;
1206
- return i.push(s), this._breadcrumbs = i.length > r ? i.slice(-r) : i, this._notifyScopeListeners(), this;
1207
- }
1208
- /**
1209
- * @inheritDoc
1210
- */
1211
- getLastBreadcrumb() {
1212
- return this._breadcrumbs[this._breadcrumbs.length - 1];
1213
- }
1214
- /**
1215
- * @inheritDoc
1216
- */
1217
- clearBreadcrumbs() {
1218
- return this._breadcrumbs = [], this._notifyScopeListeners(), this;
1219
- }
1220
- /**
1221
- * @inheritDoc
1222
- */
1223
- addAttachment(e) {
1224
- return this._attachments.push(e), this;
1225
- }
1226
- /**
1227
- * @inheritDoc
1228
- */
1229
- clearAttachments() {
1230
- return this._attachments = [], this;
1231
- }
1232
- /** @inheritDoc */
1233
- getScopeData() {
1234
- return {
1235
- breadcrumbs: this._breadcrumbs,
1236
- attachments: this._attachments,
1237
- contexts: this._contexts,
1238
- tags: this._tags,
1239
- extra: this._extra,
1240
- user: this._user,
1241
- level: this._level,
1242
- fingerprint: this._fingerprint || [],
1243
- eventProcessors: this._eventProcessors,
1244
- propagationContext: this._propagationContext,
1245
- sdkProcessingMetadata: this._sdkProcessingMetadata,
1246
- transactionName: this._transactionName,
1247
- span: V(this)
1248
- };
1249
- }
1250
- /**
1251
- * @inheritDoc
1252
- */
1253
- setSDKProcessingMetadata(e) {
1254
- return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
1255
- }
1256
- /**
1257
- * @inheritDoc
1258
- */
1259
- setPropagationContext(e) {
1260
- return this._propagationContext = e, this;
1261
- }
1262
- /**
1263
- * @inheritDoc
1264
- */
1265
- getPropagationContext() {
1266
- return this._propagationContext;
1267
- }
1268
- /**
1269
- * @inheritDoc
1270
- */
1271
- captureException(e, n) {
1272
- const r = n && n.event_id ? n.event_id : _();
1273
- if (!this._client)
1274
- return p.warn("No client configured on scope - will not capture exception!"), r;
1275
- const s = new Error("Sentry syntheticException");
1276
- return this._client.captureException(
1277
- e,
1278
- {
1279
- originalException: e,
1280
- syntheticException: s,
1281
- ...n,
1282
- event_id: r
1283
- },
1284
- this
1285
- ), r;
1286
- }
1287
- /**
1288
- * @inheritDoc
1289
- */
1290
- captureMessage(e, n, r) {
1291
- const s = r && r.event_id ? r.event_id : _();
1292
- if (!this._client)
1293
- return p.warn("No client configured on scope - will not capture message!"), s;
1294
- const i = new Error(e);
1295
- return this._client.captureMessage(
1296
- e,
1297
- n,
1298
- {
1299
- originalException: e,
1300
- syntheticException: i,
1301
- ...r,
1302
- event_id: s
1303
- },
1304
- this
1305
- ), s;
1306
- }
1307
- /**
1308
- * @inheritDoc
1309
- */
1310
- captureEvent(e, n) {
1311
- const r = n && n.event_id ? n.event_id : _();
1312
- return this._client ? (this._client.captureEvent(e, { ...n, event_id: r }, this), r) : (p.warn("No client configured on scope - will not capture event!"), r);
1313
- }
1314
- /**
1315
- * This will be called on every set call.
1316
- */
1317
- _notifyScopeListeners() {
1318
- this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
1319
- e(this);
1320
- }), this._notifyingListeners = !1);
1321
- }
1322
- }
1323
- const k = Et;
1324
- function pn() {
1325
- return _t("defaultCurrentScope", () => new k());
1326
- }
1327
- function ln() {
1328
- return _t("defaultIsolationScope", () => new k());
1329
- }
1330
- class _n {
1331
- constructor(e, n) {
1332
- let r;
1333
- e ? r = e : r = new k();
1334
- let s;
1335
- n ? s = n : s = new k(), this._stack = [{ scope: r }], this._isolationScope = s;
1336
- }
1337
- /**
1338
- * Fork a scope for the stack.
1339
- */
1340
- withScope(e) {
1341
- const n = this._pushScope();
1342
- let r;
1343
- try {
1344
- r = e(n);
1345
- } catch (s) {
1346
- throw this._popScope(), s;
1347
- }
1348
- return lt(r) ? r.then(
1349
- (s) => (this._popScope(), s),
1350
- (s) => {
1351
- throw this._popScope(), s;
1352
- }
1353
- ) : (this._popScope(), r);
1354
- }
1355
- /**
1356
- * Get the client of the stack.
1357
- */
1358
- getClient() {
1359
- return this.getStackTop().client;
1360
- }
1361
- /**
1362
- * Returns the scope of the top stack.
1363
- */
1364
- getScope() {
1365
- return this.getStackTop().scope;
1366
- }
1367
- /**
1368
- * Get the isolation scope for the stack.
1369
- */
1370
- getIsolationScope() {
1371
- return this._isolationScope;
1372
- }
1373
- /**
1374
- * Returns the topmost scope layer in the order domain > local > process.
1375
- */
1376
- getStackTop() {
1377
- return this._stack[this._stack.length - 1];
1378
- }
1379
- /**
1380
- * Push a scope to the stack.
1381
- */
1382
- _pushScope() {
1383
- const e = this.getScope().clone();
1384
- return this._stack.push({
1385
- client: this.getClient(),
1386
- scope: e
1387
- }), e;
1388
- }
1389
- /**
1390
- * Pop a scope from the stack.
1391
- */
1392
- _popScope() {
1393
- return this._stack.length <= 1 ? !1 : !!this._stack.pop();
1394
- }
1395
- }
1396
- function M() {
1397
- const t = U(), e = yt(t);
1398
- return e.stack = e.stack || new _n(pn(), ln());
1399
- }
1400
- function hn(t) {
1401
- return M().withScope(t);
1402
- }
1403
- function gn(t, e) {
1404
- const n = M();
1405
- return n.withScope(() => (n.getStackTop().scope = t, e(t)));
1406
- }
1407
- function xt(t) {
1408
- return M().withScope(() => t(M().getIsolationScope()));
1409
- }
1410
- function mn() {
1411
- return {
1412
- withIsolationScope: xt,
1413
- withScope: hn,
1414
- withSetScope: gn,
1415
- withSetIsolationScope: (t, e) => xt(e),
1416
- getCurrentScope: () => M().getScope(),
1417
- getIsolationScope: () => M().getIsolationScope()
1418
- };
1419
- }
1420
- function J(t) {
1421
- const e = yt(t);
1422
- return e.acs ? e.acs : mn();
1423
- }
1424
- function I() {
1425
- const t = U();
1426
- return J(t).getCurrentScope();
1427
- }
1428
- function j() {
1429
- const t = U();
1430
- return J(t).getIsolationScope();
1431
- }
1432
- function Sn() {
1433
- return _t("globalScope", () => new k());
1434
- }
1435
- function ne(...t) {
1436
- const e = U(), n = J(e);
1437
- if (t.length === 2) {
1438
- const [r, s] = t;
1439
- return r ? n.withSetScope(r, s) : n.withScope(s);
1440
- }
1441
- return n.withScope(t[0]);
1442
- }
1443
- function N() {
1444
- return I().getClient();
1445
- }
1446
- const yn = "_sentryMetrics";
1447
- function at(t) {
1448
- const e = t[yn];
1449
- if (!e)
1450
- return;
1451
- const n = {};
1452
- for (const [, [r, s]] of e)
1453
- (n[r] || (n[r] = [])).push(m(s));
1454
- return n;
1455
- }
1456
- const bt = "sentry.source", re = "sentry.sample_rate", ct = "sentry.op", Y = "sentry.origin", zr = "sentry.idle_span_finish_reason", se = "sentry.measurement_unit", ie = "sentry.measurement_value", En = "sentry.profile_id", bn = "sentry.exclusive_time", Tn = 0, oe = 1, S = 2;
1457
- function In(t) {
1458
- if (t < 400 && t >= 100)
1459
- return { code: oe };
1460
- if (t >= 400 && t < 500)
1461
- switch (t) {
1462
- case 401:
1463
- return { code: S, message: "unauthenticated" };
1464
- case 403:
1465
- return { code: S, message: "permission_denied" };
1466
- case 404:
1467
- return { code: S, message: "not_found" };
1468
- case 409:
1469
- return { code: S, message: "already_exists" };
1470
- case 413:
1471
- return { code: S, message: "failed_precondition" };
1472
- case 429:
1473
- return { code: S, message: "resource_exhausted" };
1474
- case 499:
1475
- return { code: S, message: "cancelled" };
1476
- default:
1477
- return { code: S, message: "invalid_argument" };
1478
- }
1479
- if (t >= 500 && t < 600)
1480
- switch (t) {
1481
- case 501:
1482
- return { code: S, message: "unimplemented" };
1483
- case 503:
1484
- return { code: S, message: "unavailable" };
1485
- case 504:
1486
- return { code: S, message: "deadline_exceeded" };
1487
- default:
1488
- return { code: S, message: "internal_error" };
1489
- }
1490
- return { code: S, message: "unknown_error" };
1491
- }
1492
- function qr(t, e) {
1493
- t.setAttribute("http.response.status_code", e);
1494
- const n = In(e);
1495
- n.message !== "unknown_error" && t.setStatus(n);
1496
- }
1497
- const ae = 0, ce = 1;
1498
- function Nn(t) {
1499
- const { spanId: e, traceId: n } = t.spanContext(), { data: r, op: s, parent_span_id: i, status: o, origin: a } = E(t);
1500
- return m({
1501
- parent_span_id: i,
1502
- span_id: e,
1503
- trace_id: n,
1504
- data: r,
1505
- op: s,
1506
- status: o,
1507
- origin: a
1508
- });
1509
- }
1510
- function An(t) {
1511
- const { spanId: e, traceId: n } = t.spanContext(), { parent_span_id: r } = E(t);
1512
- return m({ parent_span_id: r, span_id: e, trace_id: n });
1513
- }
1514
- function Vr(t) {
1515
- const { traceId: e, spanId: n } = t.spanContext(), r = v(t);
1516
- return nn(e, n, r);
1517
- }
1518
- function x(t) {
1519
- return typeof t == "number" ? Pt(t) : Array.isArray(t) ? t[0] + t[1] / 1e9 : t instanceof Date ? Pt(t.getTime()) : P();
1520
- }
1521
- function Pt(t) {
1522
- return t > 9999999999 ? t / 1e3 : t;
1523
- }
1524
- function E(t) {
1525
- if (Rn(t))
1526
- return t.getSpanJSON();
1527
- try {
1528
- const { spanId: e, traceId: n } = t.spanContext();
1529
- if (On(t)) {
1530
- const { attributes: r, startTime: s, name: i, endTime: o, parentSpanId: a, status: u } = t;
1531
- return m({
1532
- span_id: e,
1533
- trace_id: n,
1534
- data: r,
1535
- description: i,
1536
- parent_span_id: a,
1537
- start_timestamp: x(s),
1538
- // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1539
- timestamp: x(o) || void 0,
1540
- status: ue(u),
1541
- op: r[ct],
1542
- origin: r[Y],
1543
- _metrics_summary: at(t)
1544
- });
1545
- }
1546
- return {
1547
- span_id: e,
1548
- trace_id: n
1549
- };
1550
- } catch {
1551
- return {};
1552
- }
1553
- }
1554
- function On(t) {
1555
- const e = t;
1556
- return !!e.attributes && !!e.startTime && !!e.name && !!e.endTime && !!e.status;
1557
- }
1558
- function Rn(t) {
1559
- return typeof t.getSpanJSON == "function";
1560
- }
1561
- function v(t) {
1562
- const { traceFlags: e } = t.spanContext();
1563
- return e === ce;
1564
- }
1565
- function ue(t) {
1566
- if (!(!t || t.code === Tn))
1567
- return t.code === oe ? "ok" : t.message || "unknown_error";
1568
- }
1569
- const C = "_sentryChildSpans", ut = "_sentryRootSpan";
1570
- function fe(t, e) {
1571
- const n = t[ut] || t;
1572
- D(e, ut, n), t[C] ? t[C].add(e) : D(t, C, /* @__PURE__ */ new Set([e]));
1573
- }
1574
- function Wr(t, e) {
1575
- t[C] && t[C].delete(e);
1576
- }
1577
- function Dn(t) {
1578
- const e = /* @__PURE__ */ new Set();
1579
- function n(r) {
1580
- if (!e.has(r) && v(r)) {
1581
- e.add(r);
1582
- const s = r[C] ? Array.from(r[C]) : [];
1583
- for (const i of s)
1584
- n(i);
1585
- }
1586
- }
1587
- return n(t), Array.from(e);
1588
- }
1589
- function O(t) {
1590
- return t[ut] || t;
1591
- }
1592
- function ft() {
1593
- const t = U(), e = J(t);
1594
- return e.getActiveSpan ? e.getActiveSpan() : V(I());
1595
- }
1596
- const de = "_sentryScope", pe = "_sentryIsolationScope";
1597
- function kn(t, e, n) {
1598
- t && (D(t, pe, n), D(t, de, e));
1599
- }
1600
- function Mt(t) {
1601
- return {
1602
- scope: t[de],
1603
- isolationScope: t[pe]
1604
- };
1605
- }
1606
- function le(t) {
1607
- if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__)
1608
- return !1;
1609
- const e = N(), n = t || e && e.getOptions();
1610
- return !!n && (n.enableTracing || "tracesSampleRate" in n || "tracesSampler" in n);
1611
- }
1612
- class Tt {
1613
- constructor(e = {}) {
1614
- this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16);
1615
- }
1616
- /** @inheritdoc */
1617
- spanContext() {
1618
- return {
1619
- spanId: this._spanId,
1620
- traceId: this._traceId,
1621
- traceFlags: ae
1622
- };
1623
- }
1624
- /** @inheritdoc */
1625
- // eslint-disable-next-line @typescript-eslint/no-empty-function
1626
- end(e) {
1627
- }
1628
- /** @inheritdoc */
1629
- setAttribute(e, n) {
1630
- return this;
1631
- }
1632
- /** @inheritdoc */
1633
- setAttributes(e) {
1634
- return this;
1635
- }
1636
- /** @inheritdoc */
1637
- setStatus(e) {
1638
- return this;
1639
- }
1640
- /** @inheritdoc */
1641
- updateName(e) {
1642
- return this;
1643
- }
1644
- /** @inheritdoc */
1645
- isRecording() {
1646
- return !1;
1647
- }
1648
- /** @inheritdoc */
1649
- addEvent(e, n, r) {
1650
- return this;
1651
- }
1652
- /**
1653
- * This should generally not be used,
1654
- * but we need it for being comliant with the OTEL Span interface.
1655
- *
1656
- * @hidden
1657
- * @internal
1658
- */
1659
- addLink(e) {
1660
- return this;
1661
- }
1662
- /**
1663
- * This should generally not be used,
1664
- * but we need it for being comliant with the OTEL Span interface.
1665
- *
1666
- * @hidden
1667
- * @internal
1668
- */
1669
- addLinks(e) {
1670
- return this;
1671
- }
1672
- /**
1673
- * This should generally not be used,
1674
- * but we need it for being comliant with the OTEL Span interface.
1675
- *
1676
- * @hidden
1677
- * @internal
1678
- */
1679
- recordException(e, n) {
1680
- }
1681
- }
1682
- const It = "production", _e = "_frozenDsc";
1683
- function Lt(t, e) {
1684
- D(t, _e, e);
1685
- }
1686
- function Cn(t, e) {
1687
- const n = e.getOptions(), { publicKey: r } = e.getDsn() || {}, s = m({
1688
- environment: n.environment || It,
1689
- release: n.release,
1690
- public_key: r,
1691
- trace_id: t
1692
- });
1693
- return e.emit("createDsc", s), s;
1694
- }
1695
- function Z(t) {
1696
- const e = N();
1697
- if (!e)
1698
- return {};
1699
- const n = Cn(E(t).trace_id || "", e), r = O(t), s = r[_e];
1700
- if (s)
1701
- return s;
1702
- const i = r.spanContext().traceState, o = i && i.get("sentry.dsc"), a = o && te(o);
1703
- if (a)
1704
- return a;
1705
- const u = E(r), c = u.data || {}, f = c[re];
1706
- f != null && (n.sample_rate = `${f}`);
1707
- const d = c[bt], l = u.description;
1708
- return d !== "url" && l && (n.transaction = l), n.sampled = String(v(r)), e.emit("createDsc", n, r), n;
1709
- }
1710
- function $n(t) {
1711
- if (!y) return;
1712
- const { description: e = "< unknown name >", op: n = "< unknown op >", parent_span_id: r } = E(t), { spanId: s } = t.spanContext(), i = v(t), o = O(t), a = o === t, u = `[Tracing] Starting ${i ? "sampled" : "unsampled"} ${a ? "root " : ""}span`, c = [`op: ${n}`, `name: ${e}`, `ID: ${s}`];
1713
- if (r && c.push(`parent ID: ${r}`), !a) {
1714
- const { op: f, description: d } = E(o);
1715
- c.push(`root ID: ${o.spanContext().spanId}`), f && c.push(`root op: ${f}`), d && c.push(`root description: ${d}`);
1716
- }
1717
- p.log(`${u}
1718
- ${c.join(`
1719
- `)}`);
1720
- }
1721
- function wn(t) {
1722
- if (!y) return;
1723
- const { description: e = "< unknown name >", op: n = "< unknown op >" } = E(t), { spanId: r } = t.spanContext(), i = O(t) === t, o = `[Tracing] Finishing "${n}" ${i ? "root " : ""}span "${e}" with ID ${r}`;
1724
- p.log(o);
1725
- }
1726
- function xn(t) {
1727
- if (typeof t == "boolean")
1728
- return Number(t);
1729
- const e = typeof t == "string" ? parseFloat(t) : t;
1730
- if (typeof e != "number" || isNaN(e) || e < 0 || e > 1) {
1731
- y && p.warn(
1732
- `[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(
1733
- t
1734
- )} of type ${JSON.stringify(typeof t)}.`
1735
- );
1736
- return;
1737
- }
1738
- return e;
1739
- }
1740
- function Pn(t, e) {
1741
- if (!le(t))
1742
- return [!1];
1743
- let n;
1744
- typeof t.tracesSampler == "function" ? n = t.tracesSampler(e) : e.parentSampled !== void 0 ? n = e.parentSampled : typeof t.tracesSampleRate < "u" ? n = t.tracesSampleRate : n = 1;
1745
- const r = xn(n);
1746
- return r === void 0 ? (y && p.warn("[Tracing] Discarding transaction because of invalid sample rate."), [!1]) : r ? Math.random() < r ? [!0, r] : (y && p.log(
1747
- `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(
1748
- n
1749
- )})`
1750
- ), [!1, r]) : (y && p.log(
1751
- `[Tracing] Discarding transaction because ${typeof t.tracesSampler == "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`
1752
- ), [!1, r]);
1753
- }
1754
- function Mn(t, e) {
1755
- return e && (t.sdk = t.sdk || {}, t.sdk.name = t.sdk.name || e.name, t.sdk.version = t.sdk.version || e.version, t.sdk.integrations = [...t.sdk.integrations || [], ...e.integrations || []], t.sdk.packages = [...t.sdk.packages || [], ...e.packages || []]), t;
1756
- }
1757
- function Xr(t, e, n, r) {
1758
- const s = ee(n), i = {
1759
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1760
- ...s && { sdk: s },
1761
- ...!!r && e && { dsn: gt(e) }
1762
- }, o = "aggregates" in t ? [{ type: "sessions" }, t] : [{ type: "session" }, t.toJSON()];
1763
- return St(i, [o]);
1764
- }
1765
- function Qr(t, e, n, r) {
1766
- const s = ee(n), i = t.type && t.type !== "replay_event" ? t.type : "event";
1767
- Mn(t, n && n.sdk);
1768
- const o = an(t, s, r, e);
1769
- return delete t.sdkProcessingMetadata, St(o, [[{ type: i }, t]]);
1770
- }
1771
- function Ln(t, e) {
1772
- function n(f) {
1773
- return !!f.trace_id && !!f.public_key;
1774
- }
1775
- const r = Z(t[0]), s = e && e.getDsn(), i = e && e.getOptions().tunnel, o = {
1776
- sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1777
- ...n(r) && { trace: r },
1778
- ...!!i && s && { dsn: gt(s) }
1779
- }, a = e && e.getOptions().beforeSendSpan, u = a ? (f) => a(E(f)) : (f) => E(f), c = [];
1780
- for (const f of t) {
1781
- const d = u(f);
1782
- d && c.push(sn(d));
1783
- }
1784
- return St(o, c);
1785
- }
1786
- function Zr(t, e, n) {
1787
- const r = ft(), s = r && O(r);
1788
- s && s.addEvent(t, {
1789
- [ie]: e,
1790
- [se]: n
1791
- });
1792
- }
1793
- function Ut(t) {
1794
- if (!t || t.length === 0)
1795
- return;
1796
- const e = {};
1797
- return t.forEach((n) => {
1798
- const r = n.attributes || {}, s = r[se], i = r[ie];
1799
- typeof s == "string" && typeof i == "number" && (e[n.name] = { value: i, unit: s });
1800
- }), e;
1801
- }
1802
- const jt = 1e3;
1803
- class Nt {
1804
- /** Epoch timestamp in seconds when the span started. */
1805
- /** Epoch timestamp in seconds when the span ended. */
1806
- /** Internal keeper of the status */
1807
- /** The timed events added to this span. */
1808
- /** if true, treat span as a standalone span (not part of a transaction) */
1809
- /**
1810
- * You should never call the constructor manually, always use `Sentry.startSpan()`
1811
- * or other span methods.
1812
- * @internal
1813
- * @hideconstructor
1814
- * @hidden
1815
- */
1816
- constructor(e = {}) {
1817
- this._traceId = e.traceId || _(), this._spanId = e.spanId || _().substring(16), this._startTime = e.startTimestamp || P(), this._attributes = {}, this.setAttributes({
1818
- [Y]: "manual",
1819
- [ct]: e.op,
1820
- ...e.attributes
1821
- }), this._name = e.name, e.parentSpanId && (this._parentSpanId = e.parentSpanId), "sampled" in e && (this._sampled = e.sampled), e.endTimestamp && (this._endTime = e.endTimestamp), this._events = [], this._isStandaloneSpan = e.isStandalone, this._endTime && this._onSpanEnded();
1822
- }
1823
- /**
1824
- * This should generally not be used,
1825
- * but it is needed for being compliant with the OTEL Span interface.
1826
- *
1827
- * @hidden
1828
- * @internal
1829
- */
1830
- addLink(e) {
1831
- return this;
1832
- }
1833
- /**
1834
- * This should generally not be used,
1835
- * but it is needed for being compliant with the OTEL Span interface.
1836
- *
1837
- * @hidden
1838
- * @internal
1839
- */
1840
- addLinks(e) {
1841
- return this;
1842
- }
1843
- /**
1844
- * This should generally not be used,
1845
- * but it is needed for being compliant with the OTEL Span interface.
1846
- *
1847
- * @hidden
1848
- * @internal
1849
- */
1850
- recordException(e, n) {
1851
- }
1852
- /** @inheritdoc */
1853
- spanContext() {
1854
- const { _spanId: e, _traceId: n, _sampled: r } = this;
1855
- return {
1856
- spanId: e,
1857
- traceId: n,
1858
- traceFlags: r ? ce : ae
1859
- };
1860
- }
1861
- /** @inheritdoc */
1862
- setAttribute(e, n) {
1863
- return n === void 0 ? delete this._attributes[e] : this._attributes[e] = n, this;
1864
- }
1865
- /** @inheritdoc */
1866
- setAttributes(e) {
1867
- return Object.keys(e).forEach((n) => this.setAttribute(n, e[n])), this;
1868
- }
1869
- /**
1870
- * This should generally not be used,
1871
- * but we need it for browser tracing where we want to adjust the start time afterwards.
1872
- * USE THIS WITH CAUTION!
1873
- *
1874
- * @hidden
1875
- * @internal
1876
- */
1877
- updateStartTime(e) {
1878
- this._startTime = x(e);
1879
- }
1880
- /**
1881
- * @inheritDoc
1882
- */
1883
- setStatus(e) {
1884
- return this._status = e, this;
1885
- }
1886
- /**
1887
- * @inheritDoc
1888
- */
1889
- updateName(e) {
1890
- return this._name = e, this;
1891
- }
1892
- /** @inheritdoc */
1893
- end(e) {
1894
- this._endTime || (this._endTime = x(e), wn(this), this._onSpanEnded());
1895
- }
1896
- /**
1897
- * Get JSON representation of this span.
1898
- *
1899
- * @hidden
1900
- * @internal This method is purely for internal purposes and should not be used outside
1901
- * of SDK code. If you need to get a JSON representation of a span,
1902
- * use `spanToJSON(span)` instead.
1903
- */
1904
- getSpanJSON() {
1905
- return m({
1906
- data: this._attributes,
1907
- description: this._name,
1908
- op: this._attributes[ct],
1909
- parent_span_id: this._parentSpanId,
1910
- span_id: this._spanId,
1911
- start_timestamp: this._startTime,
1912
- status: ue(this._status),
1913
- timestamp: this._endTime,
1914
- trace_id: this._traceId,
1915
- origin: this._attributes[Y],
1916
- _metrics_summary: at(this),
1917
- profile_id: this._attributes[En],
1918
- exclusive_time: this._attributes[bn],
1919
- measurements: Ut(this._events),
1920
- is_segment: this._isStandaloneSpan && O(this) === this || void 0,
1921
- segment_id: this._isStandaloneSpan ? O(this).spanContext().spanId : void 0
1922
- });
1923
- }
1924
- /** @inheritdoc */
1925
- isRecording() {
1926
- return !this._endTime && !!this._sampled;
1927
- }
1928
- /**
1929
- * @inheritdoc
1930
- */
1931
- addEvent(e, n, r) {
1932
- y && p.log("[Tracing] Adding an event to span:", e);
1933
- const s = vt(n) ? n : r || P(), i = vt(n) ? {} : n || {}, o = {
1934
- name: e,
1935
- time: x(s),
1936
- attributes: i
1937
- };
1938
- return this._events.push(o), this;
1939
- }
1940
- /**
1941
- * This method should generally not be used,
1942
- * but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.
1943
- * USE THIS WITH CAUTION!
1944
- * @internal
1945
- * @hidden
1946
- * @experimental
1947
- */
1948
- isStandaloneSpan() {
1949
- return !!this._isStandaloneSpan;
1950
- }
1951
- /** Emit `spanEnd` when the span is ended. */
1952
- _onSpanEnded() {
1953
- const e = N();
1954
- if (e && e.emit("spanEnd", this), !(this._isStandaloneSpan || this === O(this)))
1955
- return;
1956
- if (this._isStandaloneSpan) {
1957
- this._sampled ? jn(Ln([this], e)) : (y && p.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"));
1958
- return;
1959
- }
1960
- const r = this._convertSpanToTransaction();
1961
- r && (Mt(this).scope || I()).captureEvent(r);
1962
- }
1963
- /**
1964
- * Finish the transaction & prepare the event to send to Sentry.
1965
- */
1966
- _convertSpanToTransaction() {
1967
- if (!Ft(E(this)))
1968
- return;
1969
- this._name || (y && p.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), this._name = "<unlabeled transaction>");
1970
- const { scope: e, isolationScope: n } = Mt(this), s = (e || I()).getClient() || N();
1971
- if (this._sampled !== !0) {
1972
- y && p.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."), s && s.recordDroppedEvent("sample_rate", "transaction");
1973
- return;
1974
- }
1975
- const o = Dn(this).filter((d) => d !== this && !Un(d)).map((d) => E(d)).filter(Ft), a = this._attributes[bt], u = {
1976
- contexts: {
1977
- trace: Nn(this)
1978
- },
1979
- spans: (
1980
- // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here
1981
- // we do not use spans anymore after this point
1982
- o.length > jt ? o.sort((d, l) => d.start_timestamp - l.start_timestamp).slice(0, jt) : o
1983
- ),
1984
- start_timestamp: this._startTime,
1985
- timestamp: this._endTime,
1986
- transaction: this._name,
1987
- type: "transaction",
1988
- sdkProcessingMetadata: {
1989
- capturedSpanScope: e,
1990
- capturedSpanIsolationScope: n,
1991
- ...m({
1992
- dynamicSamplingContext: Z(this)
1993
- })
1994
- },
1995
- _metrics_summary: at(this),
1996
- ...a && {
1997
- transaction_info: {
1998
- source: a
1999
- }
2000
- }
2001
- }, c = Ut(this._events);
2002
- return c && Object.keys(c).length && (y && p.log(
2003
- "[Measurements] Adding measurements to transaction event",
2004
- JSON.stringify(c, void 0, 2)
2005
- ), u.measurements = c), u;
2006
- }
2007
- }
2008
- function vt(t) {
2009
- return t && typeof t == "number" || t instanceof Date || Array.isArray(t);
2010
- }
2011
- function Ft(t) {
2012
- return !!t.start_timestamp && !!t.timestamp && !!t.span_id && !!t.trace_id;
2013
- }
2014
- function Un(t) {
2015
- return t instanceof Nt && t.isStandaloneSpan();
2016
- }
2017
- function jn(t) {
2018
- const e = N();
2019
- if (!e)
2020
- return;
2021
- const n = t[1];
2022
- if (!n || n.length === 0) {
2023
- e.recordDroppedEvent("before_send", "span");
2024
- return;
2025
- }
2026
- const r = e.getTransport();
2027
- r && r.send(t).then(null, (s) => {
2028
- y && p.error("Error while sending span:", s);
2029
- });
2030
- }
2031
- const he = "__SENTRY_SUPPRESS_TRACING__";
2032
- function Gt(t) {
2033
- const e = ge();
2034
- if (e.startInactiveSpan)
2035
- return e.startInactiveSpan(t);
2036
- const n = Gn(t), { forceTransaction: r, parentSpan: s } = t;
2037
- return (t.scope ? (o) => ne(t.scope, o) : s !== void 0 ? (o) => vn(s, o) : (o) => o())(() => {
2038
- const o = I(), a = Hn(o);
2039
- return t.onlyIfParent && !a ? new Tt() : Fn({
2040
- parentSpan: a,
2041
- spanArguments: n,
2042
- forceTransaction: r,
2043
- scope: o
2044
- });
2045
- });
2046
- }
2047
- function vn(t, e) {
2048
- const n = ge();
2049
- return n.withActiveSpan ? n.withActiveSpan(t, e) : ne((r) => (ot(r, t || void 0), e(r)));
2050
- }
2051
- function Fn({
2052
- parentSpan: t,
2053
- spanArguments: e,
2054
- forceTransaction: n,
2055
- scope: r
2056
- }) {
2057
- if (!le())
2058
- return new Tt();
2059
- const s = j();
2060
- let i;
2061
- if (t && !n)
2062
- i = Bn(t, r, e), fe(t, i);
2063
- else if (t) {
2064
- const o = Z(t), { traceId: a, spanId: u } = t.spanContext(), c = v(t);
2065
- i = Bt(
2066
- {
2067
- traceId: a,
2068
- parentSpanId: u,
2069
- ...e
2070
- },
2071
- r,
2072
- c
2073
- ), Lt(i, o);
2074
- } else {
2075
- const {
2076
- traceId: o,
2077
- dsc: a,
2078
- parentSpanId: u,
2079
- sampled: c
2080
- } = {
2081
- ...s.getPropagationContext(),
2082
- ...r.getPropagationContext()
2083
- };
2084
- i = Bt(
2085
- {
2086
- traceId: o,
2087
- parentSpanId: u,
2088
- ...e
2089
- },
2090
- r,
2091
- c
2092
- ), a && Lt(i, a);
2093
- }
2094
- return $n(i), kn(i, r, s), i;
2095
- }
2096
- function Gn(t) {
2097
- const n = {
2098
- isStandalone: (t.experimental || {}).standalone,
2099
- ...t
2100
- };
2101
- if (t.startTime) {
2102
- const r = { ...n };
2103
- return r.startTimestamp = x(t.startTime), delete r.startTime, r;
2104
- }
2105
- return n;
2106
- }
2107
- function ge() {
2108
- const t = U();
2109
- return J(t);
2110
- }
2111
- function Bt(t, e, n) {
2112
- const r = N(), s = r && r.getOptions() || {}, { name: i = "", attributes: o } = t, [a, u] = e.getScopeData().sdkProcessingMetadata[he] ? [!1] : Pn(s, {
2113
- name: i,
2114
- parentSampled: n,
2115
- attributes: o,
2116
- transactionContext: {
2117
- name: i,
2118
- parentSampled: n
2119
- }
2120
- }), c = new Nt({
2121
- ...t,
2122
- attributes: {
2123
- [bt]: "custom",
2124
- ...t.attributes
2125
- },
2126
- sampled: a
2127
- });
2128
- return u !== void 0 && c.setAttribute(re, u), r && r.emit("spanStart", c), c;
2129
- }
2130
- function Bn(t, e, n) {
2131
- const { spanId: r, traceId: s } = t.spanContext(), i = e.getScopeData().sdkProcessingMetadata[he] ? !1 : v(t), o = i ? new Nt({
2132
- ...n,
2133
- parentSpanId: r,
2134
- traceId: s,
2135
- sampled: i
2136
- }) : new Tt({ traceId: s });
2137
- fe(t, o);
2138
- const a = N();
2139
- return a && (a.emit("spanStart", o), n.endTimestamp && a.emit("spanEnd", o)), o;
2140
- }
2141
- function Hn(t) {
2142
- const e = V(t);
2143
- if (!e)
2144
- return;
2145
- const n = N();
2146
- return (n ? n.getOptions() : {}).parentSpanIsAlwaysRootSpan ? O(e) : e;
2147
- }
2148
- function dt(t, e, n, r = 0) {
2149
- return new T((s, i) => {
2150
- const o = t[r];
2151
- if (e === null || typeof o != "function")
2152
- s(e);
2153
- else {
2154
- const a = o({ ...e }, n);
2155
- y && o.id && a === null && p.log(`Event processor "${o.id}" dropped event`), lt(a) ? a.then((u) => dt(t, u, n, r + 1).then(s)).then(null, i) : dt(t, a, n, r + 1).then(s).then(null, i);
2156
- }
2157
- });
2158
- }
2159
- function Yn(t, e) {
2160
- const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: i } = e;
2161
- Jn(t, e), r && qn(t, r), Vn(t, n), Kn(t, s), zn(t, i);
2162
- }
2163
- function Ht(t, e) {
2164
- const {
2165
- extra: n,
2166
- tags: r,
2167
- user: s,
2168
- contexts: i,
2169
- level: o,
2170
- sdkProcessingMetadata: a,
2171
- breadcrumbs: u,
2172
- fingerprint: c,
2173
- eventProcessors: f,
2174
- attachments: d,
2175
- propagationContext: l,
2176
- transactionName: g,
2177
- span: $
2178
- } = e;
2179
- F(t, "extra", n), F(t, "tags", r), F(t, "user", s), F(t, "contexts", i), F(t, "sdkProcessingMetadata", a), o && (t.level = o), g && (t.transactionName = g), $ && (t.span = $), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), c.length && (t.fingerprint = [...t.fingerprint, ...c]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), d.length && (t.attachments = [...t.attachments, ...d]), t.propagationContext = { ...t.propagationContext, ...l };
2180
- }
2181
- function F(t, e, n) {
2182
- if (n && Object.keys(n).length) {
2183
- t[e] = { ...t[e] };
2184
- for (const r in n)
2185
- Object.prototype.hasOwnProperty.call(n, r) && (t[e][r] = n[r]);
2186
- }
2187
- }
2188
- function Jn(t, e) {
2189
- const { extra: n, tags: r, user: s, contexts: i, level: o, transactionName: a } = e, u = m(n);
2190
- u && Object.keys(u).length && (t.extra = { ...u, ...t.extra });
2191
- const c = m(r);
2192
- c && Object.keys(c).length && (t.tags = { ...c, ...t.tags });
2193
- const f = m(s);
2194
- f && Object.keys(f).length && (t.user = { ...f, ...t.user });
2195
- const d = m(i);
2196
- d && Object.keys(d).length && (t.contexts = { ...d, ...t.contexts }), o && (t.level = o), a && t.type !== "transaction" && (t.transaction = a);
2197
- }
2198
- function Kn(t, e) {
2199
- const n = [...t.breadcrumbs || [], ...e];
2200
- t.breadcrumbs = n.length ? n : void 0;
2201
- }
2202
- function zn(t, e) {
2203
- t.sdkProcessingMetadata = {
2204
- ...t.sdkProcessingMetadata,
2205
- ...e
2206
- };
2207
- }
2208
- function qn(t, e) {
2209
- t.contexts = {
2210
- trace: An(e),
2211
- ...t.contexts
2212
- }, t.sdkProcessingMetadata = {
2213
- dynamicSamplingContext: Z(e),
2214
- ...t.sdkProcessingMetadata
2215
- };
2216
- const n = O(e), r = E(n).description;
2217
- r && !t.transaction && t.type === "transaction" && (t.transaction = r);
2218
- }
2219
- function Vn(t, e) {
2220
- t.fingerprint = t.fingerprint ? Ye(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
2221
- }
2222
- function ts(t, e, n, r, s, i) {
2223
- const { normalizeDepth: o = 3, normalizeMaxBreadth: a = 1e3 } = t, u = {
2224
- ...e,
2225
- event_id: e.event_id || n.event_id || _(),
2226
- timestamp: e.timestamp || mt()
2227
- }, c = n.integrations || t.integrations.map((b) => b.name);
2228
- Wn(u, t), Zn(u, c), s && s.emit("applyFrameMetadata", e), e.type === void 0 && Xn(u, t.stackParser);
2229
- const f = er(r, n.captureContext);
2230
- n.mechanism && He(u, n.mechanism);
2231
- const d = s ? s.getEventProcessors() : [], l = Sn().getScopeData();
2232
- if (i) {
2233
- const b = i.getScopeData();
2234
- Ht(l, b);
2235
- }
2236
- if (f) {
2237
- const b = f.getScopeData();
2238
- Ht(l, b);
2239
- }
2240
- const g = [...n.attachments || [], ...l.attachments];
2241
- g.length && (n.attachments = g), Yn(u, l);
2242
- const $ = [
2243
- ...d,
2244
- // Run scope event processors _after_ all other processors
2245
- ...l.eventProcessors
2246
- ];
2247
- return dt($, u, n).then((b) => (b && Qn(b), typeof o == "number" && o > 0 ? tr(b, o, a) : b));
2248
- }
2249
- function Wn(t, e) {
2250
- const { environment: n, release: r, dist: s, maxValueLength: i = 250 } = e;
2251
- "environment" in t || (t.environment = "environment" in e ? n : It), t.release === void 0 && r !== void 0 && (t.release = r), t.dist === void 0 && s !== void 0 && (t.dist = s), t.message && (t.message = G(t.message, i));
2252
- const o = t.exception && t.exception.values && t.exception.values[0];
2253
- o && o.value && (o.value = G(o.value, i));
2254
- const a = t.request;
2255
- a && a.url && (a.url = G(a.url, i));
2256
- }
2257
- const Yt = /* @__PURE__ */ new WeakMap();
2258
- function Xn(t, e) {
2259
- const n = h._sentryDebugIds;
2260
- if (!n)
2261
- return;
2262
- let r;
2263
- const s = Yt.get(e);
2264
- s ? r = s : (r = /* @__PURE__ */ new Map(), Yt.set(e, r));
2265
- const i = Object.entries(n).reduce(
2266
- (o, [a, u]) => {
2267
- let c;
2268
- const f = r.get(a);
2269
- f ? c = f : (c = e(a), r.set(a, c));
2270
- for (let d = c.length - 1; d >= 0; d--) {
2271
- const l = c[d];
2272
- if (l.filename) {
2273
- o[l.filename] = u;
2274
- break;
2275
- }
2276
- }
2277
- return o;
2278
- },
2279
- {}
2280
- );
2281
- try {
2282
- t.exception.values.forEach((o) => {
2283
- o.stacktrace.frames.forEach((a) => {
2284
- a.filename && (a.debug_id = i[a.filename]);
2285
- });
2286
- });
2287
- } catch {
2288
- }
2289
- }
2290
- function Qn(t) {
2291
- const e = {};
2292
- try {
2293
- t.exception.values.forEach((r) => {
2294
- r.stacktrace.frames.forEach((s) => {
2295
- s.debug_id && (s.abs_path ? e[s.abs_path] = s.debug_id : s.filename && (e[s.filename] = s.debug_id), delete s.debug_id);
2296
- });
2297
- });
2298
- } catch {
2299
- }
2300
- if (Object.keys(e).length === 0)
2301
- return;
2302
- t.debug_meta = t.debug_meta || {}, t.debug_meta.images = t.debug_meta.images || [];
2303
- const n = t.debug_meta.images;
2304
- Object.entries(e).forEach(([r, s]) => {
2305
- n.push({
2306
- type: "sourcemap",
2307
- code_file: r,
2308
- debug_id: s
2309
- });
2310
- });
2311
- }
2312
- function Zn(t, e) {
2313
- e.length > 0 && (t.sdk = t.sdk || {}, t.sdk.integrations = [...t.sdk.integrations || [], ...e]);
2314
- }
2315
- function tr(t, e, n) {
2316
- if (!t)
2317
- return null;
2318
- const r = {
2319
- ...t,
2320
- ...t.breadcrumbs && {
2321
- breadcrumbs: t.breadcrumbs.map((s) => ({
2322
- ...s,
2323
- ...s.data && {
2324
- data: R(s.data, e, n)
2325
- }
2326
- }))
2327
- },
2328
- ...t.user && {
2329
- user: R(t.user, e, n)
2330
- },
2331
- ...t.contexts && {
2332
- contexts: R(t.contexts, e, n)
2333
- },
2334
- ...t.extra && {
2335
- extra: R(t.extra, e, n)
2336
- }
2337
- };
2338
- return t.contexts && t.contexts.trace && r.contexts && (r.contexts.trace = t.contexts.trace, t.contexts.trace.data && (r.contexts.trace.data = R(t.contexts.trace.data, e, n))), t.spans && (r.spans = t.spans.map((s) => ({
2339
- ...s,
2340
- ...s.data && {
2341
- data: R(s.data, e, n)
2342
- }
2343
- }))), r;
2344
- }
2345
- function er(t, e) {
2346
- if (!e)
2347
- return t;
2348
- const n = t ? t.clone() : new k();
2349
- return n.update(e), n;
2350
- }
2351
- function nr(t) {
2352
- if (t)
2353
- return rr(t) ? { captureContext: t } : ir(t) ? {
2354
- captureContext: t
2355
- } : t;
2356
- }
2357
- function rr(t) {
2358
- return t instanceof k || typeof t == "function";
2359
- }
2360
- const sr = [
2361
- "user",
2362
- "level",
2363
- "extra",
2364
- "contexts",
2365
- "tags",
2366
- "fingerprint",
2367
- "requestSession",
2368
- "propagationContext"
2369
- ];
2370
- function ir(t) {
2371
- return Object.keys(t).some((e) => sr.includes(e));
2372
- }
2373
- function or(t, e) {
2374
- return I().captureException(t, nr(e));
2375
- }
2376
- function es(t, e) {
2377
- return I().captureEvent(t, e);
2378
- }
2379
- function ns(t, e) {
2380
- j().setContext(t, e);
2381
- }
2382
- function rs(t) {
2383
- j().addEventProcessor(t);
2384
- }
2385
- function ss(t) {
2386
- const e = N(), n = j(), r = I(), { release: s, environment: i = It } = e && e.getOptions() || {}, { userAgent: o } = h.navigator || {}, a = cn({
2387
- release: s,
2388
- environment: i,
2389
- user: r.getUser() || n.getUser(),
2390
- ...o && { userAgent: o },
2391
- ...t
2392
- }), u = n.getSession();
2393
- return u && u.status === "ok" && Q(u, { status: "exited" }), me(), n.setSession(a), r.setSession(a), a;
2394
- }
2395
- function me() {
2396
- const t = j(), e = I(), n = e.getSession() || t.getSession();
2397
- n && un(n), Se(), t.setSession(), e.setSession();
2398
- }
2399
- function Se() {
2400
- const t = j(), e = I(), n = N(), r = e.getSession() || t.getSession();
2401
- r && n && n.captureSession(r);
2402
- }
2403
- function is(t = !1) {
2404
- if (t) {
2405
- me();
2406
- return;
2407
- }
2408
- Se();
2409
- }
2410
- const ar = ["activate", "mount", "update"], cr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ur = /(?:^|[-_])(\w)/g, fr = (t) => t.replace(ur, (e) => e.toUpperCase()).replace(/[-_]/g, ""), dr = "<Root>", et = "<Anonymous>", pr = (t, e) => t.repeat(e), H = (t, e) => {
2411
- if (!t)
2412
- return et;
2413
- if (t.$root === t)
2414
- return dr;
2415
- if (!t.$options)
2416
- return et;
2417
- const n = t.$options;
2418
- let r = n.name || n._componentTag;
2419
- const s = n.__file;
2420
- if (!r && s) {
2421
- const i = s.match(/([^/\\]+)\.vue$/);
2422
- i && (r = i[1]);
2423
- }
2424
- return (r ? `<${fr(r)}>` : et) + (s && e !== !1 ? ` at ${s}` : "");
2425
- }, lr = (t) => {
2426
- if (t && (t._isVue || t.__isVue) && t.$parent) {
2427
- const e = [];
2428
- let n = 0;
2429
- for (; t; ) {
2430
- if (e.length > 0) {
2431
- const s = e[e.length - 1];
2432
- if (s.constructor === t.constructor) {
2433
- n++, t = t.$parent;
2434
- continue;
2435
- } else n > 0 && (e[e.length - 1] = [s, n], n = 0);
2436
- }
2437
- e.push(t), t = t.$parent;
2438
- }
2439
- return `
2440
-
2441
- found in
2442
-
2443
- ${e.map(
2444
- (s, i) => `${(i === 0 ? "---> " : pr(" ", 5 + i * 2)) + (Array.isArray(s) ? `${H(s[0])}... (${s[1]} recursive calls)` : H(s))}`
2445
- ).join(`
2446
- `)}`;
2447
- }
2448
- return `
2449
-
2450
- (found in ${H(t)})`;
2451
- }, os = (t, e) => {
2452
- const { errorHandler: n, warnHandler: r, silent: s } = t.config;
2453
- t.config.errorHandler = (i, o, a) => {
2454
- const u = H(o, !1), c = o ? lr(o) : "", f = {
2455
- componentName: u,
2456
- lifecycleHook: a,
2457
- trace: c
2458
- };
2459
- if (e.attachProps && o && (o.$options && o.$options.propsData ? f.propsData = o.$options.propsData : o.$props && (f.propsData = o.$props)), setTimeout(() => {
2460
- or(i, {
2461
- captureContext: { contexts: { vue: f } },
2462
- mechanism: { handled: !1 }
2463
- });
2464
- }), typeof n == "function" && n.call(t, i, o, a), e.logErrors) {
2465
- const d = typeof console < "u", l = `Error in ${a}: "${i && i.toString()}"`;
2466
- r ? r.call(null, l, o, c) : d && !s && ht(() => {
2467
- console.error(`[Vue warn]: ${l}${c}`);
2468
- });
2469
- }
2470
- };
2471
- }, Jt = "ui.vue", _r = {
2472
- activate: ["activated", "deactivated"],
2473
- create: ["beforeCreate", "created"],
2474
- // Vue 3
2475
- unmount: ["beforeUnmount", "unmounted"],
2476
- // Vue 2
2477
- destroy: ["beforeDestroy", "destroyed"],
2478
- mount: ["beforeMount", "mounted"],
2479
- update: ["beforeUpdate", "updated"]
2480
- };
2481
- function hr(t, e, n) {
2482
- t.$_sentryRootSpanTimer && clearTimeout(t.$_sentryRootSpanTimer), t.$_sentryRootSpanTimer = setTimeout(() => {
2483
- t.$root && t.$root.$_sentryRootSpan && (t.$root.$_sentryRootSpan.end(e), t.$root.$_sentryRootSpan = void 0);
2484
- }, n);
2485
- }
2486
- const as = (t) => {
2487
- const e = (t.hooks || []).concat(ar).filter((r, s, i) => i.indexOf(r) === s), n = {};
2488
- for (const r of e) {
2489
- const s = _r[r];
2490
- if (!s) {
2491
- cr && p.warn(`Unknown hook: ${r}`);
2492
- continue;
2493
- }
2494
- for (const i of s)
2495
- n[i] = function() {
2496
- const o = this.$root === this;
2497
- o && ft() && (this.$_sentryRootSpan = this.$_sentryRootSpan || Gt({
2498
- name: "Application Render",
2499
- op: `${Jt}.render`,
2500
- attributes: {
2501
- [Y]: "auto.ui.vue"
2502
- }
2503
- }));
2504
- const a = H(this, !1), u = Array.isArray(t.trackComponents) ? t.trackComponents.indexOf(a) > -1 : t.trackComponents;
2505
- if (!(!o && !u))
2506
- if (this.$_sentrySpans = this.$_sentrySpans || {}, i == s[0]) {
2507
- if (this.$root && this.$root.$_sentryRootSpan || ft()) {
2508
- const f = this.$_sentrySpans[r];
2509
- f && f.end(), this.$_sentrySpans[r] = Gt({
2510
- name: `Vue <${a}>`,
2511
- op: `${Jt}.${r}`,
2512
- attributes: {
2513
- [Y]: "auto.ui.vue"
2514
- }
2515
- });
2516
- }
2517
- } else {
2518
- const c = this.$_sentrySpans[r];
2519
- if (!c) return;
2520
- c.end(), hr(this, P(), t.timeout);
2521
- }
2522
- };
2523
- }
2524
- return n;
2525
- };
2526
- export {
2527
- Ee as $,
2528
- zr as A,
2529
- Wr as B,
2530
- At as C,
2531
- X as D,
2532
- Gt as E,
2533
- kr as F,
2534
- h as G,
2535
- Ye as H,
2536
- Or as I,
2537
- _ as J,
2538
- Lr as K,
2539
- Er as L,
2540
- Q as M,
2541
- Qr as N,
2542
- Br as O,
2543
- Jr as P,
2544
- Xr as Q,
2545
- ts as R,
2546
- T as S,
2547
- m as T,
2548
- Cn as U,
2549
- j as V,
2550
- xn as W,
2551
- gt as X,
2552
- lt as Y,
2553
- pt as Z,
2554
- ot as _,
2555
- os as a,
2556
- ht as a0,
2557
- Hr as a1,
2558
- Kr as a2,
2559
- Yr as a3,
2560
- B as a4,
2561
- Dr as a5,
2562
- Pr as a6,
2563
- Tr as a7,
2564
- wr as a8,
2565
- Y as a9,
2566
- ie as aA,
2567
- je as aB,
2568
- Ue as aC,
2569
- br as aD,
2570
- es as aE,
2571
- Ir as aF,
2572
- $r as aG,
2573
- ss as aH,
2574
- is as aI,
2575
- bt as aJ,
2576
- rs as aK,
2577
- ns as aL,
2578
- R as aM,
2579
- an as aN,
2580
- ee as aO,
2581
- Gr as aP,
2582
- v as aQ,
2583
- Nr as aR,
2584
- wt as aS,
2585
- cr as aT,
2586
- ar as aU,
2587
- ct as aa,
2588
- Vr as ab,
2589
- nn as ac,
2590
- Fr as ad,
2591
- Z as ae,
2592
- vr as af,
2593
- qr as ag,
2594
- Me as ah,
2595
- ne as ai,
2596
- Mr as aj,
2597
- He as ak,
2598
- or as al,
2599
- mr as am,
2600
- Sr as an,
2601
- yr as ao,
2602
- be as ap,
2603
- Je as aq,
2604
- Cr as ar,
2605
- vn as as,
2606
- xr as at,
2607
- Re as au,
2608
- Ar as av,
2609
- Zr as aw,
2610
- q as ax,
2611
- bn as ay,
2612
- se as az,
2613
- P as b,
2614
- as as c,
2615
- ye as d,
2616
- D as e,
2617
- Rr as f,
2618
- Fe as g,
2619
- Ur as h,
2620
- W as i,
2621
- St as j,
2622
- mt as k,
2623
- p as l,
2624
- ft as m,
2625
- O as n,
2626
- Ot as o,
2627
- y as p,
2628
- S as q,
2629
- jr as r,
2630
- N as s,
2631
- G as t,
2632
- le as u,
2633
- Tt as v,
2634
- I as w,
2635
- x,
2636
- Dn as y,
2637
- E as z
2638
- };
2639
- //# sourceMappingURL=tracing-nJlxVqd0.js.map