@konnectio/core 4.0.61 → 4.0.62

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