@delta-comic/core 0.3.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { useGlobalVar as e } from "@delta-comic/utils";
2
2
  import { defineStore as t } from "pinia";
3
3
  import { reactive as n, shallowReactive as r, shallowRef as i } from "vue";
4
+ //#region lib/temp.ts
4
5
  var a = e(t("core:temp", (e) => {
5
6
  let t = r(/* @__PURE__ */ new Map());
6
7
  return {
@@ -11,22 +12,36 @@ var a = e(t("core:temp", (e) => {
11
12
  $hasRaw: e.action((e) => (e = `raw:${e}`, t.has(e)), "hasRaw"),
12
13
  $onlyGetRaw: e.action((e) => (e = `raw:${e}`, t.get(e)), "onlyGetRaw")
13
14
  };
14
- }), "store/temp");
15
- const o = () => a(window.$api.piniaInstance);
16
- function s(e, t) {
15
+ }), "store/temp"), o = () => a(window.$api.piniaInstance);
16
+ //#endregion
17
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
18
+ function s(e) {
19
+ return typeof e == "symbol" || e instanceof Symbol;
20
+ }
21
+ //#endregion
22
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/util/toNumber.mjs
23
+ function c(e) {
24
+ return s(e) ? NaN : Number(e);
25
+ }
26
+ //#endregion
27
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/math/random.mjs
28
+ function l(e, t) {
17
29
  if (t ?? (t = e, e = 0), e >= t) throw Error("Invalid input: The maximum value must be greater than the minimum value.");
18
30
  return Math.random() * (t - e) + e;
19
31
  }
20
- function c(e, t) {
21
- return Math.floor(s(e, t));
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/math/randomInt.mjs
34
+ function u(e, t) {
35
+ return Math.floor(l(e, t));
22
36
  }
23
- function l(e, t, n) {
24
- return n == null ? Math.min(e, t) : Math.min(Math.max(e, t), n);
37
+ //#endregion
38
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/math/clamp.mjs
39
+ function d(e, t, n) {
40
+ return n === void 0 && (n = t, t = void 0), n !== void 0 && (n = c(n), e = Math.min(e, Number.isNaN(n) ? 0 : n)), t !== void 0 && (t = c(t), e = Math.max(e, Number.isNaN(t) ? 0 : t)), e;
25
41
  }
26
- function u(e, t, n) {
27
- return Number.isNaN(t) && (t = 0), Number.isNaN(n) && (n = 0), l(e, t, n);
28
- }
29
- function d(...e) {
42
+ //#endregion
43
+ //#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/math/random.mjs
44
+ function f(...e) {
30
45
  let t = 0, n = 1, r = !1;
31
46
  switch (e.length) {
32
47
  case 1:
@@ -35,12 +50,14 @@ function d(...e) {
35
50
  case 2: typeof e[1] == "boolean" ? (n = e[0], r = e[1]) : (t = e[0], n = e[1]);
36
51
  case 3: typeof e[2] == "object" && e[2] != null && e[2][e[1]] === e[0] ? (t = 0, n = e[0], r = !1) : (t = e[0], n = e[1], r = e[2]);
37
52
  }
38
- return typeof t != "number" && (t = Number(t)), typeof n != "number" && (t = Number(n)), t ||= 0, n ||= 0, t > n && ([t, n] = [n, t]), t = u(t, -(2 ** 53 - 1), 2 ** 53 - 1), n = u(n, -(2 ** 53 - 1), 2 ** 53 - 1), t === n ? t : r ? s(t, n + 1) : c(t, n + 1);
53
+ return typeof t != "number" && (t = Number(t)), typeof n != "number" && (t = Number(n)), t ||= 0, n ||= 0, t > n && ([t, n] = [n, t]), t = d(t, -(2 ** 53 - 1), 2 ** 53 - 1), n = d(n, -(2 ** 53 - 1), 2 ** 53 - 1), t === n ? t : r ? l(t, n + 1) : u(t, n + 1);
39
54
  }
40
- var f = class {
55
+ //#endregion
56
+ //#region lib/ipc.ts
57
+ var p = class {
41
58
  static sharedFunctions = e(/* @__PURE__ */ new Map(), "utils/SharedFunction/sharedFunctions");
42
59
  static define(e, t, n) {
43
- return console.debug("[SharedFunction.define] defined new function", t, ":", n, "->", e), this.sharedFunctions.set(n, [...this.sharedFunctions.get(n) ?? [], {
60
+ return console.debug("[SharedFunction.define] defined new function", t, ":", n), this.sharedFunctions.set(n, [...this.sharedFunctions.get(n) ?? [], {
44
61
  fn: e,
45
62
  plugin: t
46
63
  }]), e;
@@ -56,9 +73,9 @@ var f = class {
56
73
  return Object.assign(n, r);
57
74
  }
58
75
  static callRandom(e, ...t) {
59
- let n = this.sharedFunctions.get(e) ?? [], r = d(0, n.length - 1), i = n[r];
76
+ let n = this.sharedFunctions.get(e) ?? [], r = f(0, n.length - 1), i = n[r];
60
77
  if (!i) throw Error(`[SharedFunction.callRandom] call ${e}, but not resigner any function.`);
61
- console.log(`[SharedFunction.callRandom] call index: ${r} in ${n.length}`, i);
78
+ console.log(`[SharedFunction.callRandom] call index: ${r} in ${n.length}`, i.plugin);
62
79
  let a = i.fn(...t), o = {
63
80
  result: a,
64
81
  ...i
@@ -80,24 +97,4250 @@ var f = class {
80
97
  })));
81
98
  return Object.assign(i, a);
82
99
  }
83
- }, p = e((() => {
100
+ }, m = e((() => {
84
101
  let e = i(!!document.fullscreenElement);
85
102
  return document.addEventListener("fullscreenchange", () => {
86
103
  e.value = !!document.fullscreenElement;
87
104
  }), e;
88
- })(), "core/isFc");
89
- const m = () => ({
90
- isFullscreen: p,
105
+ })(), "core/isFc"), ee = () => ({
106
+ isFullscreen: m,
91
107
  entry() {
92
- p.value = !0;
108
+ m.value = !0;
93
109
  },
94
110
  exit() {
95
- p.value = !1;
111
+ m.value = !1;
96
112
  },
97
113
  toggle() {
98
- p.value = !p.value;
114
+ m.value = !m.value;
115
+ }
116
+ }), h = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, g = globalThis, te = "10.45.0";
117
+ //#endregion
118
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/carrier.js
119
+ function _() {
120
+ return ne(g), g;
121
+ }
122
+ function ne(e) {
123
+ let t = e.__SENTRY__ = e.__SENTRY__ || {};
124
+ return t.version = t.version || "10.45.0", t[te] = t["10.45.0"] || {};
125
+ }
126
+ function v(e, t, n = g) {
127
+ let r = n.__SENTRY__ = n.__SENTRY__ || {}, i = r[te] = r["10.45.0"] || {};
128
+ return i[e] || (i[e] = t());
129
+ }
130
+ //#endregion
131
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js
132
+ var re = [
133
+ "debug",
134
+ "info",
135
+ "warn",
136
+ "error",
137
+ "log",
138
+ "assert",
139
+ "trace"
140
+ ], ie = "Sentry Logger ", ae = {};
141
+ function y(e) {
142
+ if (!("console" in g)) return e();
143
+ let t = g.console, n = {}, r = Object.keys(ae);
144
+ r.forEach((e) => {
145
+ let r = ae[e];
146
+ n[e] = t[e], t[e] = r;
147
+ });
148
+ try {
149
+ return e();
150
+ } finally {
151
+ r.forEach((e) => {
152
+ t[e] = n[e];
153
+ });
154
+ }
155
+ }
156
+ function oe() {
157
+ pe().enabled = !0;
158
+ }
159
+ function se() {
160
+ pe().enabled = !1;
161
+ }
162
+ function ce() {
163
+ return pe().enabled;
164
+ }
165
+ function le(...e) {
166
+ fe("log", ...e);
167
+ }
168
+ function ue(...e) {
169
+ fe("warn", ...e);
170
+ }
171
+ function de(...e) {
172
+ fe("error", ...e);
173
+ }
174
+ function fe(e, ...t) {
175
+ h && ce() && y(() => {
176
+ g.console[e](`${ie}[${e}]:`, ...t);
177
+ });
178
+ }
179
+ function pe() {
180
+ return h ? v("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
181
+ }
182
+ var b = {
183
+ enable: oe,
184
+ disable: se,
185
+ isEnabled: ce,
186
+ log: le,
187
+ warn: ue,
188
+ error: de
189
+ }, me = 50, he = /\(error: (.*)\)/, ge = /captureMessage|captureException/;
190
+ function _e(...e) {
191
+ let t = e.sort((e, t) => e[0] - t[0]).map((e) => e[1]);
192
+ return (e, n = 0, r = 0) => {
193
+ let i = [], a = e.split("\n");
194
+ for (let e = n; e < a.length; e++) {
195
+ let n = a[e];
196
+ n.length > 1024 && (n = n.slice(0, 1024));
197
+ let o = he.test(n) ? n.replace(he, "$1") : n;
198
+ if (!o.match(/\S*Error: /)) {
199
+ for (let e of t) {
200
+ let t = e(o);
201
+ if (t) {
202
+ i.push(t);
203
+ break;
204
+ }
205
+ }
206
+ if (i.length >= me + r) break;
207
+ }
208
+ }
209
+ return ye(i.slice(r));
210
+ };
211
+ }
212
+ function ve(e) {
213
+ return Array.isArray(e) ? _e(...e) : e;
214
+ }
215
+ function ye(e) {
216
+ if (!e.length) return [];
217
+ let t = Array.from(e);
218
+ return /sentryWrapped/.test(be(t).function || "") && t.pop(), t.reverse(), ge.test(be(t).function || "") && (t.pop(), ge.test(be(t).function || "") && t.pop()), t.slice(0, me).map((e) => ({
219
+ ...e,
220
+ filename: e.filename || be(t).filename,
221
+ function: e.function || "?"
222
+ }));
223
+ }
224
+ function be(e) {
225
+ return e[e.length - 1] || {};
226
+ }
227
+ var xe = "<anonymous>";
228
+ function x(e) {
229
+ try {
230
+ return !e || typeof e != "function" ? xe : e.name || xe;
231
+ } catch {
232
+ return xe;
233
+ }
234
+ }
235
+ function Se(e) {
236
+ let t = e.exception;
237
+ if (t) {
238
+ let e = [];
239
+ try {
240
+ return t.values.forEach((t) => {
241
+ t.stacktrace.frames && e.push(...t.stacktrace.frames);
242
+ }), e;
243
+ } catch {
244
+ return;
245
+ }
246
+ }
247
+ }
248
+ function Ce(e) {
249
+ return "__v_isVNode" in e && e.__v_isVNode ? "[VueVNode]" : "[VueViewModel]";
250
+ }
251
+ //#endregion
252
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
253
+ var we = {}, Te = {};
254
+ function S(e, t) {
255
+ we[e] = we[e] || [], we[e].push(t);
256
+ }
257
+ function C(e, t) {
258
+ if (!Te[e]) {
259
+ Te[e] = !0;
260
+ try {
261
+ t();
262
+ } catch (t) {
263
+ h && b.error(`Error while instrumenting ${e}`, t);
264
+ }
265
+ }
266
+ }
267
+ function w(e, t) {
268
+ let n = e && we[e];
269
+ if (n) for (let r of n) try {
270
+ r(t);
271
+ } catch (t) {
272
+ h && b.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${x(r)}\nError:`, t);
273
+ }
274
+ }
275
+ //#endregion
276
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
277
+ var Ee = null;
278
+ function De(e) {
279
+ let t = "error";
280
+ S(t, e), C(t, Oe);
281
+ }
282
+ function Oe() {
283
+ Ee = g.onerror, g.onerror = function(e, t, n, r, i) {
284
+ return w("error", {
285
+ column: r,
286
+ error: i,
287
+ line: n,
288
+ msg: e,
289
+ url: t
290
+ }), Ee ? Ee.apply(this, arguments) : !1;
291
+ }, g.onerror.__SENTRY_INSTRUMENTED__ = !0;
292
+ }
293
+ //#endregion
294
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
295
+ var ke = null;
296
+ function Ae(e) {
297
+ let t = "unhandledrejection";
298
+ S(t, e), C(t, je);
299
+ }
300
+ function je() {
301
+ ke = g.onunhandledrejection, g.onunhandledrejection = function(e) {
302
+ return w("unhandledrejection", e), ke ? ke.apply(this, arguments) : !0;
303
+ }, g.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
304
+ }
305
+ //#endregion
306
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/is.js
307
+ var Me = Object.prototype.toString;
308
+ function Ne(e) {
309
+ switch (Me.call(e)) {
310
+ case "[object Error]":
311
+ case "[object Exception]":
312
+ case "[object DOMException]":
313
+ case "[object WebAssembly.Exception]": return !0;
314
+ default: return D(e, Error);
315
+ }
316
+ }
317
+ function T(e, t) {
318
+ return Me.call(e) === `[object ${t}]`;
319
+ }
320
+ function Pe(e) {
321
+ return T(e, "ErrorEvent");
322
+ }
323
+ function Fe(e) {
324
+ return T(e, "DOMError");
325
+ }
326
+ function Ie(e) {
327
+ return T(e, "DOMException");
328
+ }
329
+ function E(e) {
330
+ return T(e, "String");
331
+ }
332
+ function Le(e) {
333
+ return typeof e == "object" && !!e && "__sentry_template_string__" in e && "__sentry_template_values__" in e;
334
+ }
335
+ function Re(e) {
336
+ return e === null || Le(e) || typeof e != "object" && typeof e != "function";
337
+ }
338
+ function ze(e) {
339
+ return T(e, "Object");
340
+ }
341
+ function Be(e) {
342
+ return typeof Event < "u" && D(e, Event);
343
+ }
344
+ function Ve(e) {
345
+ return typeof Element < "u" && D(e, Element);
346
+ }
347
+ function He(e) {
348
+ return T(e, "RegExp");
349
+ }
350
+ function Ue(e) {
351
+ return !!(e?.then && typeof e.then == "function");
352
+ }
353
+ function We(e) {
354
+ return ze(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
355
+ }
356
+ function D(e, t) {
357
+ try {
358
+ return e instanceof t;
359
+ } catch {
360
+ return !1;
361
+ }
362
+ }
363
+ function Ge(e) {
364
+ return !!(typeof e == "object" && e && (e.__isVue || e._isVue || e.__v_isVNode));
365
+ }
366
+ function Ke(e) {
367
+ return typeof Request < "u" && D(e, Request);
368
+ }
369
+ //#endregion
370
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/browser.js
371
+ var qe = g, Je = 80;
372
+ function Ye(e, t = {}) {
373
+ if (!e) return "<unknown>";
374
+ try {
375
+ let n = e, r = [], i = 0, a = 0, o, s = Array.isArray(t) ? t : t.keyAttrs, c = !Array.isArray(t) && t.maxStringLength || Je;
376
+ for (; n && i++ < 5 && (o = Xe(n, s), !(o === "html" || i > 1 && a + r.length * 3 + o.length >= c));) r.push(o), a += o.length, n = n.parentNode;
377
+ return r.reverse().join(" > ");
378
+ } catch {
379
+ return "<unknown>";
380
+ }
381
+ }
382
+ function Xe(e, t) {
383
+ let n = e, r = [];
384
+ if (!n?.tagName) return "";
385
+ if (qe.HTMLElement && n instanceof HTMLElement && n.dataset) {
386
+ if (n.dataset.sentryComponent) return n.dataset.sentryComponent;
387
+ if (n.dataset.sentryElement) return n.dataset.sentryElement;
388
+ }
389
+ r.push(n.tagName.toLowerCase());
390
+ let i = t?.length ? t.filter((e) => n.getAttribute(e)).map((e) => [e, n.getAttribute(e)]) : null;
391
+ if (i?.length) i.forEach((e) => {
392
+ r.push(`[${e[0]}="${e[1]}"]`);
393
+ });
394
+ else {
395
+ n.id && r.push(`#${n.id}`);
396
+ let e = n.className;
397
+ if (e && E(e)) {
398
+ let t = e.split(/\s+/);
399
+ for (let e of t) r.push(`.${e}`);
400
+ }
401
+ }
402
+ for (let e of [
403
+ "aria-label",
404
+ "type",
405
+ "name",
406
+ "title",
407
+ "alt"
408
+ ]) {
409
+ let t = n.getAttribute(e);
410
+ t && r.push(`[${e}="${t}"]`);
411
+ }
412
+ return r.join("");
413
+ }
414
+ function Ze() {
415
+ try {
416
+ return qe.document.location.href;
417
+ } catch {
418
+ return "";
419
+ }
420
+ }
421
+ function Qe(e) {
422
+ if (!qe.HTMLElement) return null;
423
+ let t = e;
424
+ for (let e = 0; e < 5; e++) {
425
+ if (!t) return null;
426
+ if (t instanceof HTMLElement) {
427
+ if (t.dataset.sentryComponent) return t.dataset.sentryComponent;
428
+ if (t.dataset.sentryElement) return t.dataset.sentryElement;
429
+ }
430
+ t = t.parentNode;
431
+ }
432
+ return null;
433
+ }
434
+ //#endregion
435
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/object.js
436
+ function O(e, t, n) {
437
+ if (!(t in e)) return;
438
+ let r = e[t];
439
+ if (typeof r != "function") return;
440
+ let i = n(r);
441
+ typeof i == "function" && $e(i, r);
442
+ try {
443
+ e[t] = i;
444
+ } catch {
445
+ h && b.log(`Failed to replace method "${t}" in object`, e);
446
+ }
447
+ }
448
+ function k(e, t, n) {
449
+ try {
450
+ Object.defineProperty(e, t, {
451
+ value: n,
452
+ writable: !0,
453
+ configurable: !0
454
+ });
455
+ } catch {
456
+ h && b.log(`Failed to add non-enumerable property "${t}" to object`, e);
457
+ }
458
+ }
459
+ function $e(e, t) {
460
+ try {
461
+ e.prototype = t.prototype = t.prototype || {}, k(e, "__sentry_original__", t);
462
+ } catch {}
463
+ }
464
+ function et(e) {
465
+ return e.__sentry_original__;
466
+ }
467
+ function tt(e) {
468
+ if (Ne(e)) return {
469
+ message: e.message,
470
+ name: e.name,
471
+ stack: e.stack,
472
+ ...rt(e)
473
+ };
474
+ if (Be(e)) {
475
+ let t = {
476
+ type: e.type,
477
+ target: nt(e.target),
478
+ currentTarget: nt(e.currentTarget),
479
+ ...rt(e)
480
+ };
481
+ return typeof CustomEvent < "u" && D(e, CustomEvent) && (t.detail = e.detail), t;
482
+ } else return e;
483
+ }
484
+ function nt(e) {
485
+ try {
486
+ return Ve(e) ? Ye(e) : Object.prototype.toString.call(e);
487
+ } catch {
488
+ return "<unknown>";
489
+ }
490
+ }
491
+ function rt(e) {
492
+ return typeof e == "object" && e ? Object.fromEntries(Object.entries(e)) : {};
493
+ }
494
+ function it(e) {
495
+ let t = Object.keys(tt(e));
496
+ return t.sort(), t[0] ? t.join(", ") : "[object has no keys]";
497
+ }
498
+ //#endregion
499
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
500
+ var A;
501
+ function at(e) {
502
+ if (A !== void 0) return A ? A(e) : e();
503
+ let t = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), n = g;
504
+ return t in n && typeof n[t] == "function" ? (A = n[t], A(e)) : (A = null, e());
505
+ }
506
+ function ot() {
507
+ return at(() => Math.random());
508
+ }
509
+ function st() {
510
+ return at(() => Date.now());
511
+ }
512
+ //#endregion
513
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/string.js
514
+ function ct(e, t = 0) {
515
+ return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`;
516
+ }
517
+ function lt(e, t) {
518
+ if (!Array.isArray(e)) return "";
519
+ let n = [];
520
+ for (let t = 0; t < e.length; t++) {
521
+ let r = e[t];
522
+ try {
523
+ Ge(r) ? n.push(Ce(r)) : n.push(String(r));
524
+ } catch {
525
+ n.push("[value cannot be serialized]");
526
+ }
527
+ }
528
+ return n.join(t);
529
+ }
530
+ function ut(e, t, n = !1) {
531
+ return E(e) ? He(t) ? t.test(e) : E(t) ? n ? e === t : e.includes(t) : !1 : !1;
532
+ }
533
+ function dt(e, t = [], n = !1) {
534
+ return t.some((t) => ut(e, t, n));
535
+ }
536
+ //#endregion
537
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/misc.js
538
+ function ft() {
539
+ let e = g;
540
+ return e.crypto || e.msCrypto;
541
+ }
542
+ var pt;
543
+ function mt() {
544
+ return ot() * 16;
545
+ }
546
+ function j(e = ft()) {
547
+ try {
548
+ if (e?.randomUUID) return at(() => e.randomUUID()).replace(/-/g, "");
549
+ } catch {}
550
+ return pt ||= "10000000100040008000100000000000", pt.replace(/[018]/g, (e) => (e ^ (mt() & 15) >> e / 4).toString(16));
551
+ }
552
+ function ht(e) {
553
+ return e.exception?.values?.[0];
554
+ }
555
+ function M(e) {
556
+ let { message: t, event_id: n } = e;
557
+ if (t) return t;
558
+ let r = ht(e);
559
+ return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
560
+ }
561
+ function gt(e, t, n) {
562
+ let r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {};
563
+ a.value ||= t || "", a.type ||= n || "Error";
564
+ }
565
+ function N(e, t) {
566
+ let n = ht(e);
567
+ if (!n) return;
568
+ let r = {
569
+ type: "generic",
570
+ handled: !0
571
+ }, i = n.mechanism;
572
+ if (n.mechanism = {
573
+ ...r,
574
+ ...i,
575
+ ...t
576
+ }, t && "data" in t) {
577
+ let e = {
578
+ ...i?.data,
579
+ ...t.data
580
+ };
581
+ n.mechanism.data = e;
582
+ }
583
+ }
584
+ function _t(e) {
585
+ if (vt(e)) return !0;
586
+ try {
587
+ k(e, "__sentry_captured__", !0);
588
+ } catch {}
589
+ return !1;
590
+ }
591
+ function vt(e) {
592
+ try {
593
+ return e.__sentry_captured__;
594
+ } catch {}
595
+ }
596
+ //#endregion
597
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/time.js
598
+ var yt = 1e3;
599
+ function bt() {
600
+ return st() / yt;
601
+ }
602
+ function xt() {
603
+ let { performance: e } = g;
604
+ if (!e?.now || !e.timeOrigin) return bt;
605
+ let t = e.timeOrigin;
606
+ return () => (t + at(() => e.now())) / yt;
607
+ }
608
+ var St;
609
+ function P() {
610
+ return (St ??= xt())();
611
+ }
612
+ //#endregion
613
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/session.js
614
+ function Ct(e) {
615
+ let t = P(), n = {
616
+ sid: j(),
617
+ init: !0,
618
+ timestamp: t,
619
+ started: t,
620
+ duration: 0,
621
+ status: "ok",
622
+ errors: 0,
623
+ ignoreDuration: !1,
624
+ toJSON: () => Tt(n)
625
+ };
626
+ return e && F(n, e), n;
627
+ }
628
+ function F(e, t = {}) {
629
+ if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || P(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : j()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration) e.duration = void 0;
630
+ else if (typeof t.duration == "number") e.duration = t.duration;
631
+ else {
632
+ let t = e.timestamp - e.started;
633
+ e.duration = t >= 0 ? t : 0;
634
+ }
635
+ t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status);
636
+ }
637
+ function wt(e, t) {
638
+ let n = {};
639
+ t ? n = { status: t } : e.status === "ok" && (n = { status: "exited" }), F(e, n);
640
+ }
641
+ function Tt(e) {
642
+ return {
643
+ sid: `${e.sid}`,
644
+ init: e.init,
645
+ started: (/* @__PURE__ */ new Date(e.started * 1e3)).toISOString(),
646
+ timestamp: (/* @__PURE__ */ new Date(e.timestamp * 1e3)).toISOString(),
647
+ status: e.status,
648
+ errors: e.errors,
649
+ did: typeof e.did == "number" || typeof e.did == "string" ? `${e.did}` : void 0,
650
+ duration: e.duration,
651
+ abnormal_mechanism: e.abnormal_mechanism,
652
+ attrs: {
653
+ release: e.release,
654
+ environment: e.environment,
655
+ ip_address: e.ipAddress,
656
+ user_agent: e.userAgent
657
+ }
658
+ };
659
+ }
660
+ //#endregion
661
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/merge.js
662
+ function Et(e, t, n = 2) {
663
+ if (!t || typeof t != "object" || n <= 0) return t;
664
+ if (e && Object.keys(t).length === 0) return e;
665
+ let r = { ...e };
666
+ for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = Et(r[e], t[e], n - 1));
667
+ return r;
668
+ }
669
+ //#endregion
670
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js
671
+ function Dt() {
672
+ return j();
673
+ }
674
+ function Ot() {
675
+ return j().substring(16);
676
+ }
677
+ //#endregion
678
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
679
+ var kt = "_sentrySpan";
680
+ function At(e, t) {
681
+ t ? k(e, kt, t) : delete e[kt];
682
+ }
683
+ function jt(e) {
684
+ return e[kt];
685
+ }
686
+ //#endregion
687
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/scope.js
688
+ var Mt = 100, I = class e {
689
+ constructor() {
690
+ this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = {
691
+ traceId: Dt(),
692
+ sampleRand: ot()
693
+ };
694
+ }
695
+ clone() {
696
+ let t = new e();
697
+ return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._attributes = { ...this._attributes }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, this._contexts.flags && (t._contexts.flags = { values: [...this._contexts.flags.values] }), t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, t._conversationId = this._conversationId, At(t, jt(this)), t;
698
+ }
699
+ setClient(e) {
700
+ this._client = e;
701
+ }
702
+ setLastEventId(e) {
703
+ this._lastEventId = e;
704
+ }
705
+ getClient() {
706
+ return this._client;
707
+ }
708
+ lastEventId() {
709
+ return this._lastEventId;
710
+ }
711
+ addScopeListener(e) {
712
+ this._scopeListeners.push(e);
713
+ }
714
+ addEventProcessor(e) {
715
+ return this._eventProcessors.push(e), this;
716
+ }
717
+ setUser(e) {
718
+ return this._user = e || {
719
+ email: void 0,
720
+ id: void 0,
721
+ ip_address: void 0,
722
+ username: void 0
723
+ }, this._session && F(this._session, { user: e }), this._notifyScopeListeners(), this;
724
+ }
725
+ getUser() {
726
+ return this._user;
727
+ }
728
+ setConversationId(e) {
729
+ return this._conversationId = e || void 0, this._notifyScopeListeners(), this;
730
+ }
731
+ setTags(e) {
732
+ return this._tags = {
733
+ ...this._tags,
734
+ ...e
735
+ }, this._notifyScopeListeners(), this;
736
+ }
737
+ setTag(e, t) {
738
+ return this.setTags({ [e]: t });
739
+ }
740
+ setAttributes(e) {
741
+ return this._attributes = {
742
+ ...this._attributes,
743
+ ...e
744
+ }, this._notifyScopeListeners(), this;
745
+ }
746
+ setAttribute(e, t) {
747
+ return this.setAttributes({ [e]: t });
748
+ }
749
+ removeAttribute(e) {
750
+ return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this;
99
751
  }
100
- });
101
- export { f as SharedFunction, m as useFullscreen, o as useTemp };
752
+ setExtras(e) {
753
+ return this._extra = {
754
+ ...this._extra,
755
+ ...e
756
+ }, this._notifyScopeListeners(), this;
757
+ }
758
+ setExtra(e, t) {
759
+ return this._extra = {
760
+ ...this._extra,
761
+ [e]: t
762
+ }, this._notifyScopeListeners(), this;
763
+ }
764
+ setFingerprint(e) {
765
+ return this._fingerprint = e, this._notifyScopeListeners(), this;
766
+ }
767
+ setLevel(e) {
768
+ return this._level = e, this._notifyScopeListeners(), this;
769
+ }
770
+ setTransactionName(e) {
771
+ return this._transactionName = e, this._notifyScopeListeners(), this;
772
+ }
773
+ setContext(e, t) {
774
+ return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this;
775
+ }
776
+ setSession(e) {
777
+ return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
778
+ }
779
+ getSession() {
780
+ return this._session;
781
+ }
782
+ update(t) {
783
+ if (!t) return this;
784
+ let n = typeof t == "function" ? t(this) : t, { tags: r, attributes: i, extra: a, user: o, contexts: s, level: c, fingerprint: l = [], propagationContext: u, conversationId: d } = (n instanceof e ? n.getScopeData() : ze(n) ? t : void 0) || {};
785
+ return this._tags = {
786
+ ...this._tags,
787
+ ...r
788
+ }, this._attributes = {
789
+ ...this._attributes,
790
+ ...i
791
+ }, this._extra = {
792
+ ...this._extra,
793
+ ...a
794
+ }, this._contexts = {
795
+ ...this._contexts,
796
+ ...s
797
+ }, o && Object.keys(o).length && (this._user = o), c && (this._level = c), l.length && (this._fingerprint = l), u && (this._propagationContext = u), d && (this._conversationId = d), this;
798
+ }
799
+ clear() {
800
+ return this._breadcrumbs = [], this._tags = {}, this._attributes = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._session = void 0, this._conversationId = void 0, At(this, void 0), this._attachments = [], this.setPropagationContext({
801
+ traceId: Dt(),
802
+ sampleRand: ot()
803
+ }), this._notifyScopeListeners(), this;
804
+ }
805
+ addBreadcrumb(e, t) {
806
+ let n = typeof t == "number" ? t : Mt;
807
+ if (n <= 0) return this;
808
+ let r = {
809
+ timestamp: bt(),
810
+ ...e,
811
+ message: e.message ? ct(e.message, 2048) : e.message
812
+ };
813
+ return this._breadcrumbs.push(r), this._breadcrumbs.length > n && (this._breadcrumbs = this._breadcrumbs.slice(-n), this._client?.recordDroppedEvent("buffer_overflow", "log_item")), this._notifyScopeListeners(), this;
814
+ }
815
+ getLastBreadcrumb() {
816
+ return this._breadcrumbs[this._breadcrumbs.length - 1];
817
+ }
818
+ clearBreadcrumbs() {
819
+ return this._breadcrumbs = [], this._notifyScopeListeners(), this;
820
+ }
821
+ addAttachment(e) {
822
+ return this._attachments.push(e), this;
823
+ }
824
+ clearAttachments() {
825
+ return this._attachments = [], this;
826
+ }
827
+ getScopeData() {
828
+ return {
829
+ breadcrumbs: this._breadcrumbs,
830
+ attachments: this._attachments,
831
+ contexts: this._contexts,
832
+ tags: this._tags,
833
+ attributes: this._attributes,
834
+ extra: this._extra,
835
+ user: this._user,
836
+ level: this._level,
837
+ fingerprint: this._fingerprint || [],
838
+ eventProcessors: this._eventProcessors,
839
+ propagationContext: this._propagationContext,
840
+ sdkProcessingMetadata: this._sdkProcessingMetadata,
841
+ transactionName: this._transactionName,
842
+ span: jt(this),
843
+ conversationId: this._conversationId
844
+ };
845
+ }
846
+ setSDKProcessingMetadata(e) {
847
+ return this._sdkProcessingMetadata = Et(this._sdkProcessingMetadata, e, 2), this;
848
+ }
849
+ setPropagationContext(e) {
850
+ return this._propagationContext = e, this;
851
+ }
852
+ getPropagationContext() {
853
+ return this._propagationContext;
854
+ }
855
+ captureException(e, t) {
856
+ let n = t?.event_id || j();
857
+ if (!this._client) return h && b.warn("No client configured on scope - will not capture exception!"), n;
858
+ let r = /* @__PURE__ */ Error("Sentry syntheticException");
859
+ return this._client.captureException(e, {
860
+ originalException: e,
861
+ syntheticException: r,
862
+ ...t,
863
+ event_id: n
864
+ }, this), n;
865
+ }
866
+ captureMessage(e, t, n) {
867
+ let r = n?.event_id || j();
868
+ if (!this._client) return h && b.warn("No client configured on scope - will not capture message!"), r;
869
+ let i = n?.syntheticException ?? Error(e);
870
+ return this._client.captureMessage(e, t, {
871
+ originalException: e,
872
+ syntheticException: i,
873
+ ...n,
874
+ event_id: r
875
+ }, this), r;
876
+ }
877
+ captureEvent(e, t) {
878
+ let n = e.event_id || t?.event_id || j();
879
+ return this._client ? (this._client.captureEvent(e, {
880
+ ...t,
881
+ event_id: n
882
+ }, this), n) : (h && b.warn("No client configured on scope - will not capture event!"), n);
883
+ }
884
+ _notifyScopeListeners() {
885
+ this._notifyingListeners ||= (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
886
+ e(this);
887
+ }), !1);
888
+ }
889
+ };
890
+ //#endregion
891
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/defaultScopes.js
892
+ function Nt() {
893
+ return v("defaultCurrentScope", () => new I());
894
+ }
895
+ function Pt() {
896
+ return v("defaultIsolationScope", () => new I());
897
+ }
898
+ //#endregion
899
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
900
+ var Ft = class {
901
+ constructor(e, t) {
902
+ let n;
903
+ n = e || new I();
904
+ let r;
905
+ r = t || new I(), this._stack = [{ scope: n }], this._isolationScope = r;
906
+ }
907
+ withScope(e) {
908
+ let t = this._pushScope(), n;
909
+ try {
910
+ n = e(t);
911
+ } catch (e) {
912
+ throw this._popScope(), e;
913
+ }
914
+ return Ue(n) ? n.then((e) => (this._popScope(), e), (e) => {
915
+ throw this._popScope(), e;
916
+ }) : (this._popScope(), n);
917
+ }
918
+ getClient() {
919
+ return this.getStackTop().client;
920
+ }
921
+ getScope() {
922
+ return this.getStackTop().scope;
923
+ }
924
+ getIsolationScope() {
925
+ return this._isolationScope;
926
+ }
927
+ getStackTop() {
928
+ return this._stack[this._stack.length - 1];
929
+ }
930
+ _pushScope() {
931
+ let e = this.getScope().clone();
932
+ return this._stack.push({
933
+ client: this.getClient(),
934
+ scope: e
935
+ }), e;
936
+ }
937
+ _popScope() {
938
+ return this._stack.length <= 1 ? !1 : !!this._stack.pop();
939
+ }
940
+ };
941
+ function L() {
942
+ let e = ne(_());
943
+ return e.stack = e.stack || new Ft(Nt(), Pt());
944
+ }
945
+ function It(e) {
946
+ return L().withScope(e);
947
+ }
948
+ function Lt(e, t) {
949
+ let n = L();
950
+ return n.withScope(() => (n.getStackTop().scope = e, t(e)));
951
+ }
952
+ function Rt(e) {
953
+ return L().withScope(() => e(L().getIsolationScope()));
954
+ }
955
+ function zt() {
956
+ return {
957
+ withIsolationScope: Rt,
958
+ withScope: It,
959
+ withSetScope: Lt,
960
+ withSetIsolationScope: (e, t) => Rt(t),
961
+ getCurrentScope: () => L().getScope(),
962
+ getIsolationScope: () => L().getIsolationScope()
963
+ };
964
+ }
965
+ //#endregion
966
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/asyncContext/index.js
967
+ function Bt(e) {
968
+ let t = ne(e);
969
+ return t.acs ? t.acs : zt();
970
+ }
971
+ //#endregion
972
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/currentScopes.js
973
+ function R() {
974
+ return Bt(_()).getCurrentScope();
975
+ }
976
+ function z() {
977
+ return Bt(_()).getIsolationScope();
978
+ }
979
+ function Vt() {
980
+ return v("globalScope", () => new I());
981
+ }
982
+ function Ht(...e) {
983
+ let t = Bt(_());
984
+ if (e.length === 2) {
985
+ let [n, r] = e;
986
+ return n ? t.withSetScope(n, r) : t.withScope(r);
987
+ }
988
+ return t.withScope(e[0]);
989
+ }
990
+ function B() {
991
+ return R().getClient();
992
+ }
993
+ function Ut(e) {
994
+ let { traceId: t, parentSpanId: n, propagationSpanId: r } = e.getPropagationContext(), i = {
995
+ trace_id: t,
996
+ span_id: r || Ot()
997
+ };
998
+ return n && (i.parent_span_id = n), i;
999
+ }
1000
+ //#endregion
1001
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/semanticAttributes.js
1002
+ var Wt = "sentry.source", Gt = "sentry.sample_rate", Kt = "sentry.op", qt = "sentry.origin", Jt = "sentry.measurement_unit", Yt = "sentry.measurement_value", Xt = "sentry.custom_span_name", Zt = "sentry.profile_id", Qt = "sentry.exclusive_time", $t = "gen_ai.conversation.id", en = "_sentryScope", tn = "_sentryIsolationScope";
1003
+ function nn(e) {
1004
+ try {
1005
+ let t = g.WeakRef;
1006
+ if (typeof t == "function") return new t(e);
1007
+ } catch {}
1008
+ return e;
1009
+ }
1010
+ function rn(e) {
1011
+ if (e) {
1012
+ if (typeof e == "object" && "deref" in e && typeof e.deref == "function") try {
1013
+ return e.deref();
1014
+ } catch {
1015
+ return;
1016
+ }
1017
+ return e;
1018
+ }
1019
+ }
1020
+ function an(e, t, n) {
1021
+ e && (k(e, tn, nn(n)), k(e, en, t));
1022
+ }
1023
+ function on(e) {
1024
+ let t = e;
1025
+ return {
1026
+ scope: t[en],
1027
+ isolationScope: rn(t[tn])
1028
+ };
1029
+ }
1030
+ function sn(e) {
1031
+ let t = cn(e);
1032
+ if (!t) return;
1033
+ let n = Object.entries(t).reduce((e, [t, n]) => {
1034
+ if (t.startsWith("sentry-")) {
1035
+ let r = t.slice(7);
1036
+ e[r] = n;
1037
+ }
1038
+ return e;
1039
+ }, {});
1040
+ if (Object.keys(n).length > 0) return n;
1041
+ }
1042
+ function cn(e) {
1043
+ if (!(!e || !E(e) && !Array.isArray(e))) return Array.isArray(e) ? e.reduce((e, t) => {
1044
+ let n = ln(t);
1045
+ return Object.entries(n).forEach(([t, n]) => {
1046
+ e[t] = n;
1047
+ }), e;
1048
+ }, {}) : ln(e);
1049
+ }
1050
+ function ln(e) {
1051
+ return e.split(",").map((e) => {
1052
+ let t = e.indexOf("=");
1053
+ return t === -1 ? [] : [e.slice(0, t), e.slice(t + 1)].map((e) => {
1054
+ try {
1055
+ return decodeURIComponent(e.trim());
1056
+ } catch {
1057
+ return;
1058
+ }
1059
+ });
1060
+ }).reduce((e, [t, n]) => (t && n && (e[t] = n), e), {});
1061
+ }
1062
+ //#endregion
1063
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/dsn.js
1064
+ var un = /^o(\d+)\./, dn = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;
1065
+ function fn(e) {
1066
+ return e === "http" || e === "https";
1067
+ }
1068
+ function V(e, t = !1) {
1069
+ let { host: n, path: r, pass: i, port: a, projectId: o, protocol: s, publicKey: c } = e;
1070
+ return `${s}://${c}${t && i ? `:${i}` : ""}@${n}${a ? `:${a}` : ""}/${r && `${r}/`}${o}`;
1071
+ }
1072
+ function pn(e) {
1073
+ let t = dn.exec(e);
1074
+ if (!t) {
1075
+ y(() => {
1076
+ console.error(`Invalid Sentry Dsn: ${e}`);
1077
+ });
1078
+ return;
1079
+ }
1080
+ let [n, r, i = "", a = "", o = "", s = ""] = t.slice(1), c = "", l = s, u = l.split("/");
1081
+ if (u.length > 1 && (c = u.slice(0, -1).join("/"), l = u.pop()), l) {
1082
+ let e = l.match(/^\d+/);
1083
+ e && (l = e[0]);
1084
+ }
1085
+ return mn({
1086
+ host: a,
1087
+ pass: i,
1088
+ path: c,
1089
+ projectId: l,
1090
+ port: o,
1091
+ protocol: n,
1092
+ publicKey: r
1093
+ });
1094
+ }
1095
+ function mn(e) {
1096
+ return {
1097
+ protocol: e.protocol,
1098
+ publicKey: e.publicKey || "",
1099
+ pass: e.pass || "",
1100
+ host: e.host,
1101
+ port: e.port || "",
1102
+ path: e.path || "",
1103
+ projectId: e.projectId
1104
+ };
1105
+ }
1106
+ function hn(e) {
1107
+ if (!h) return !0;
1108
+ let { port: t, projectId: n, protocol: r } = e;
1109
+ return [
1110
+ "protocol",
1111
+ "publicKey",
1112
+ "host",
1113
+ "projectId"
1114
+ ].find((t) => e[t] ? !1 : (b.error(`Invalid Sentry Dsn: ${t} missing`), !0)) ? !1 : n.match(/^\d+$/) ? fn(r) ? t && isNaN(parseInt(t, 10)) ? (b.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (b.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (b.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
1115
+ }
1116
+ function gn(e) {
1117
+ return e.match(un)?.[1];
1118
+ }
1119
+ function _n(e) {
1120
+ let t = e.getOptions(), { host: n } = e.getDsn() || {}, r;
1121
+ return t.orgId ? r = String(t.orgId) : n && (r = gn(n)), r;
1122
+ }
1123
+ function vn(e) {
1124
+ let t = typeof e == "string" ? pn(e) : mn(e);
1125
+ if (!(!t || !hn(t))) return t;
1126
+ }
1127
+ //#endregion
1128
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
1129
+ function yn(e) {
1130
+ if (typeof e == "boolean") return Number(e);
1131
+ let t = typeof e == "string" ? parseFloat(e) : e;
1132
+ if (!(typeof t != "number" || isNaN(t) || t < 0 || t > 1)) return t;
1133
+ }
1134
+ var bn = !1;
1135
+ function xn(e) {
1136
+ let { spanId: t, traceId: n } = e.spanContext(), { data: r, op: i, parent_span_id: a, status: o, origin: s, links: c } = U(e);
1137
+ return {
1138
+ parent_span_id: a,
1139
+ span_id: t,
1140
+ trace_id: n,
1141
+ data: r,
1142
+ op: i,
1143
+ status: o,
1144
+ origin: s,
1145
+ links: c
1146
+ };
1147
+ }
1148
+ function Sn(e) {
1149
+ let { spanId: t, traceId: n, isRemote: r } = e.spanContext(), i = r ? t : U(e).parent_span_id, a = on(e).scope;
1150
+ return {
1151
+ parent_span_id: i,
1152
+ span_id: r ? a?.getPropagationContext().propagationSpanId || Ot() : t,
1153
+ trace_id: n
1154
+ };
1155
+ }
1156
+ function Cn(e) {
1157
+ if (e && e.length > 0) return e.map(({ context: { spanId: e, traceId: t, traceFlags: n, ...r }, attributes: i }) => ({
1158
+ span_id: e,
1159
+ trace_id: t,
1160
+ sampled: n === 1,
1161
+ attributes: i,
1162
+ ...r
1163
+ }));
1164
+ }
1165
+ function H(e) {
1166
+ return typeof e == "number" ? wn(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? wn(e.getTime()) : P();
1167
+ }
1168
+ function wn(e) {
1169
+ return e > 9999999999 ? e / 1e3 : e;
1170
+ }
1171
+ function U(e) {
1172
+ if (En(e)) return e.getSpanJSON();
1173
+ let { spanId: t, traceId: n } = e.spanContext();
1174
+ if (Tn(e)) {
1175
+ let { attributes: r, startTime: i, name: a, endTime: o, status: s, links: c } = e;
1176
+ return {
1177
+ span_id: t,
1178
+ trace_id: n,
1179
+ data: r,
1180
+ description: a,
1181
+ parent_span_id: "parentSpanId" in e ? e.parentSpanId : "parentSpanContext" in e ? e.parentSpanContext?.spanId : void 0,
1182
+ start_timestamp: H(i),
1183
+ timestamp: H(o) || void 0,
1184
+ status: On(s),
1185
+ op: r[Kt],
1186
+ origin: r[qt],
1187
+ links: Cn(c)
1188
+ };
1189
+ }
1190
+ return {
1191
+ span_id: t,
1192
+ trace_id: n,
1193
+ start_timestamp: 0,
1194
+ data: {}
1195
+ };
1196
+ }
1197
+ function Tn(e) {
1198
+ let t = e;
1199
+ return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status;
1200
+ }
1201
+ function En(e) {
1202
+ return typeof e.getSpanJSON == "function";
1203
+ }
1204
+ function Dn(e) {
1205
+ let { traceFlags: t } = e.spanContext();
1206
+ return t === 1;
1207
+ }
1208
+ function On(e) {
1209
+ if (!(!e || e.code === 0)) return e.code === 1 ? "ok" : e.message || "internal_error";
1210
+ }
1211
+ var kn = "_sentryChildSpans", An = "_sentryRootSpan";
1212
+ function jn(e, t) {
1213
+ k(t, An, e[An] || e), e[kn] ? e[kn].add(t) : k(e, kn, new Set([t]));
1214
+ }
1215
+ function Mn(e) {
1216
+ let t = /* @__PURE__ */ new Set();
1217
+ function n(e) {
1218
+ if (!t.has(e) && Dn(e)) {
1219
+ t.add(e);
1220
+ let r = e[kn] ? Array.from(e[kn]) : [];
1221
+ for (let e of r) n(e);
1222
+ }
1223
+ }
1224
+ return n(e), Array.from(t);
1225
+ }
1226
+ function W(e) {
1227
+ return e[An] || e;
1228
+ }
1229
+ function Nn() {
1230
+ let e = Bt(_());
1231
+ return e.getActiveSpan ? e.getActiveSpan() : jt(R());
1232
+ }
1233
+ function Pn() {
1234
+ bn ||= (y(() => {
1235
+ console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.");
1236
+ }), !0);
1237
+ }
1238
+ //#endregion
1239
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
1240
+ function Fn(e) {
1241
+ if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__) return !1;
1242
+ let t = e || B()?.getOptions();
1243
+ return !!t && (t.tracesSampleRate != null || !!t.tracesSampler);
1244
+ }
1245
+ //#endregion
1246
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
1247
+ function In(e) {
1248
+ b.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
1249
+ }
1250
+ function Ln(e, t) {
1251
+ if (!t?.length || !e.description) return !1;
1252
+ for (let n of t) {
1253
+ if (zn(n)) {
1254
+ if (ut(e.description, n)) return h && In(e), !0;
1255
+ continue;
1256
+ }
1257
+ if (!n.name && !n.op) continue;
1258
+ let t = n.name ? ut(e.description, n.name) : !0, r = n.op ? e.op && ut(e.op, n.op) : !0;
1259
+ if (t && r) return h && In(e), !0;
1260
+ }
1261
+ return !1;
1262
+ }
1263
+ function Rn(e, t) {
1264
+ let n = t.parent_span_id, r = t.span_id;
1265
+ if (n) for (let t of e) t.parent_span_id === r && (t.parent_span_id = n);
1266
+ }
1267
+ function zn(e) {
1268
+ return typeof e == "string" || e instanceof RegExp;
1269
+ }
1270
+ //#endregion
1271
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/constants.js
1272
+ var Bn = "production", Vn = "_frozenDsc";
1273
+ function Hn(e, t) {
1274
+ k(e, Vn, t);
1275
+ }
1276
+ function Un(e, t) {
1277
+ let n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, i = {
1278
+ environment: n.environment || "production",
1279
+ release: n.release,
1280
+ public_key: r,
1281
+ trace_id: e,
1282
+ org_id: _n(t)
1283
+ };
1284
+ return t.emit("createDsc", i), i;
1285
+ }
1286
+ function Wn(e, t) {
1287
+ let n = t.getPropagationContext();
1288
+ return n.dsc || Un(n.traceId, e);
1289
+ }
1290
+ function Gn(e) {
1291
+ let t = B();
1292
+ if (!t) return {};
1293
+ let n = W(e), r = U(n), i = r.data, a = n.spanContext().traceState, o = a?.get("sentry.sample_rate") ?? i["sentry.sample_rate"] ?? i["sentry.previous_trace_sample_rate"];
1294
+ function s(e) {
1295
+ return (typeof o == "number" || typeof o == "string") && (e.sample_rate = `${o}`), e;
1296
+ }
1297
+ let c = n[Vn];
1298
+ if (c) return s(c);
1299
+ let l = a?.get("sentry.dsc"), u = l && sn(l);
1300
+ if (u) return s(u);
1301
+ let d = Un(e.spanContext().traceId, t), f = i[Wt], p = r.description;
1302
+ return f !== "url" && p && (d.transaction = p), Fn() && (d.sampled = String(Dn(n)), d.sample_rand = a?.get("sentry.sample_rand") ?? on(n).scope?.getPropagationContext().sampleRand.toString()), s(d), t.emit("createDsc", d, n), d;
1303
+ }
1304
+ //#endregion
1305
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js
1306
+ var Kn = class {
1307
+ constructor(e = {}) {
1308
+ this._traceId = e.traceId || Dt(), this._spanId = e.spanId || Ot();
1309
+ }
1310
+ spanContext() {
1311
+ return {
1312
+ spanId: this._spanId,
1313
+ traceId: this._traceId,
1314
+ traceFlags: 0
1315
+ };
1316
+ }
1317
+ end(e) {}
1318
+ setAttribute(e, t) {
1319
+ return this;
1320
+ }
1321
+ setAttributes(e) {
1322
+ return this;
1323
+ }
1324
+ setStatus(e) {
1325
+ return this;
1326
+ }
1327
+ updateName(e) {
1328
+ return this;
1329
+ }
1330
+ isRecording() {
1331
+ return !1;
1332
+ }
1333
+ addEvent(e, t, n) {
1334
+ return this;
1335
+ }
1336
+ addLink(e) {
1337
+ return this;
1338
+ }
1339
+ addLinks(e) {
1340
+ return this;
1341
+ }
1342
+ recordException(e, t) {}
1343
+ };
1344
+ //#endregion
1345
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/normalize.js
1346
+ function G(e, t = 100, n = Infinity) {
1347
+ try {
1348
+ return Jn("", e, t, n);
1349
+ } catch (e) {
1350
+ return { ERROR: `**non-serializable** (${e})` };
1351
+ }
1352
+ }
1353
+ function qn(e, t = 3, n = 100 * 1024) {
1354
+ let r = G(e, t);
1355
+ return Qn(r) > n ? qn(e, t - 1, n) : r;
1356
+ }
1357
+ function Jn(e, t, n = Infinity, r = Infinity, i = $n()) {
1358
+ let [a, o] = i;
1359
+ if (t == null || ["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t)) return t;
1360
+ let s = Yn(e, t);
1361
+ if (!s.startsWith("[object ")) return s;
1362
+ if (t.__sentry_skip_normalization__) return t;
1363
+ let c = typeof t.__sentry_override_normalization_depth__ == "number" ? t.__sentry_override_normalization_depth__ : n;
1364
+ if (c === 0) return s.replace("object ", "");
1365
+ if (a(t)) return "[Circular ~]";
1366
+ let l = t;
1367
+ if (l && typeof l.toJSON == "function") try {
1368
+ return Jn("", l.toJSON(), c - 1, r, i);
1369
+ } catch {}
1370
+ let u = Array.isArray(t) ? [] : {}, d = 0, f = tt(t);
1371
+ for (let e in f) {
1372
+ if (!Object.prototype.hasOwnProperty.call(f, e)) continue;
1373
+ if (d >= r) {
1374
+ u[e] = "[MaxProperties ~]";
1375
+ break;
1376
+ }
1377
+ let t = f[e];
1378
+ u[e] = Jn(e, t, c - 1, r, i), d++;
1379
+ }
1380
+ return o(t), u;
1381
+ }
1382
+ function Yn(e, t) {
1383
+ try {
1384
+ if (e === "domain" && t && typeof t == "object" && t._events) return "[Domain]";
1385
+ if (e === "domainEmitter") return "[DomainEmitter]";
1386
+ if (typeof global < "u" && t === global) return "[Global]";
1387
+ if (typeof window < "u" && t === window) return "[Window]";
1388
+ if (typeof document < "u" && t === document) return "[Document]";
1389
+ if (Ge(t)) return Ce(t);
1390
+ if (We(t)) return "[SyntheticEvent]";
1391
+ if (typeof t == "number" && !Number.isFinite(t)) return `[${t}]`;
1392
+ if (typeof t == "function") return `[Function: ${x(t)}]`;
1393
+ if (typeof t == "symbol") return `[${String(t)}]`;
1394
+ if (typeof t == "bigint") return `[BigInt: ${String(t)}]`;
1395
+ let n = Xn(t);
1396
+ return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
1397
+ } catch (e) {
1398
+ return `**non-serializable** (${e})`;
1399
+ }
1400
+ }
1401
+ function Xn(e) {
1402
+ let t = Object.getPrototypeOf(e);
1403
+ return t?.constructor ? t.constructor.name : "null prototype";
1404
+ }
1405
+ function Zn(e) {
1406
+ return ~-encodeURI(e).split(/%..|./).length;
1407
+ }
1408
+ function Qn(e) {
1409
+ return Zn(JSON.stringify(e));
1410
+ }
1411
+ function $n() {
1412
+ let e = /* @__PURE__ */ new WeakSet();
1413
+ function t(t) {
1414
+ return e.has(t) ? !0 : (e.add(t), !1);
1415
+ }
1416
+ function n(t) {
1417
+ e.delete(t);
1418
+ }
1419
+ return [t, n];
1420
+ }
1421
+ //#endregion
1422
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/envelope.js
1423
+ function K(e, t = []) {
1424
+ return [e, t];
1425
+ }
1426
+ function er(e, t) {
1427
+ let [n, r] = e;
1428
+ return [n, [...r, t]];
1429
+ }
1430
+ function tr(e, t) {
1431
+ let n = e[1];
1432
+ for (let e of n) {
1433
+ let n = e[0].type;
1434
+ if (t(e, n)) return !0;
1435
+ }
1436
+ return !1;
1437
+ }
1438
+ function nr(e, t) {
1439
+ return tr(e, (e, n) => t.includes(n));
1440
+ }
1441
+ function rr(e) {
1442
+ let t = ne(g);
1443
+ return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
1444
+ }
1445
+ function ir(e) {
1446
+ let [t, n] = e, r = JSON.stringify(t);
1447
+ function i(e) {
1448
+ typeof r == "string" ? r = typeof e == "string" ? r + e : [rr(r), e] : r.push(typeof e == "string" ? rr(e) : e);
1449
+ }
1450
+ for (let e of n) {
1451
+ let [t, n] = e;
1452
+ if (i(`\n${JSON.stringify(t)}\n`), typeof n == "string" || n instanceof Uint8Array) i(n);
1453
+ else {
1454
+ let e;
1455
+ try {
1456
+ e = JSON.stringify(n);
1457
+ } catch {
1458
+ e = JSON.stringify(G(n));
1459
+ }
1460
+ i(e);
1461
+ }
1462
+ }
1463
+ return typeof r == "string" ? r : ar(r);
1464
+ }
1465
+ function ar(e) {
1466
+ let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
1467
+ for (let t of e) n.set(t, r), r += t.length;
1468
+ return n;
1469
+ }
1470
+ function or(e) {
1471
+ return [{ type: "span" }, e];
1472
+ }
1473
+ function sr(e) {
1474
+ let t = typeof e.data == "string" ? rr(e.data) : e.data;
1475
+ return [{
1476
+ type: "attachment",
1477
+ length: t.length,
1478
+ filename: e.filename,
1479
+ content_type: e.contentType,
1480
+ attachment_type: e.attachmentType
1481
+ }, t];
1482
+ }
1483
+ var cr = {
1484
+ sessions: "session",
1485
+ event: "error",
1486
+ client_report: "internal",
1487
+ user_report: "default",
1488
+ profile_chunk: "profile",
1489
+ replay_event: "replay",
1490
+ replay_recording: "replay",
1491
+ check_in: "monitor",
1492
+ raw_security: "security",
1493
+ log: "log_item",
1494
+ trace_metric: "metric"
1495
+ };
1496
+ function lr(e) {
1497
+ return e in cr;
1498
+ }
1499
+ function ur(e) {
1500
+ return lr(e) ? cr[e] : e;
1501
+ }
1502
+ function dr(e) {
1503
+ if (!e?.sdk) return;
1504
+ let { name: t, version: n } = e.sdk;
1505
+ return {
1506
+ name: t,
1507
+ version: n
1508
+ };
1509
+ }
1510
+ function fr(e, t, n, r) {
1511
+ let i = e.sdkProcessingMetadata?.dynamicSamplingContext;
1512
+ return {
1513
+ event_id: e.event_id,
1514
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1515
+ ...t && { sdk: t },
1516
+ ...!!n && r && { dsn: V(r) },
1517
+ ...i && { trace: i }
1518
+ };
1519
+ }
1520
+ //#endregion
1521
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/envelope.js
1522
+ function pr(e, t) {
1523
+ if (!t) return e;
1524
+ let n = e.sdk || {};
1525
+ return e.sdk = {
1526
+ ...n,
1527
+ name: n.name || t.name,
1528
+ version: n.version || t.version,
1529
+ integrations: [...e.sdk?.integrations || [], ...t.integrations || []],
1530
+ packages: [...e.sdk?.packages || [], ...t.packages || []],
1531
+ settings: e.sdk?.settings || t.settings ? {
1532
+ ...e.sdk?.settings,
1533
+ ...t.settings
1534
+ } : void 0
1535
+ }, e;
1536
+ }
1537
+ function mr(e, t, n, r) {
1538
+ let i = dr(n);
1539
+ return K({
1540
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1541
+ ...i && { sdk: i },
1542
+ ...!!r && t && { dsn: V(t) }
1543
+ }, ["aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()]]);
1544
+ }
1545
+ function hr(e, t, n, r) {
1546
+ let i = dr(n), a = e.type && e.type !== "replay_event" ? e.type : "event";
1547
+ pr(e, n?.sdk);
1548
+ let o = fr(e, i, r, t);
1549
+ return delete e.sdkProcessingMetadata, K(o, [[{ type: a }, e]]);
1550
+ }
1551
+ function gr(e, t) {
1552
+ function n(e) {
1553
+ return !!e.trace_id && !!e.public_key;
1554
+ }
1555
+ let r = Gn(e[0]), i = t?.getDsn(), a = t?.getOptions().tunnel, o = {
1556
+ sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1557
+ ...n(r) && { trace: r },
1558
+ ...!!a && i && { dsn: V(i) }
1559
+ }, { beforeSendSpan: s, ignoreSpans: c } = t?.getOptions() || {}, l = c?.length ? e.filter((e) => !Ln(U(e), c)) : e, u = e.length - l.length;
1560
+ u && t?.recordDroppedEvent("before_send", "span", u);
1561
+ let d = s ? (e) => {
1562
+ let t = U(e);
1563
+ return s(t) || (Pn(), t);
1564
+ } : U, f = [];
1565
+ for (let e of l) {
1566
+ let t = d(e);
1567
+ t && f.push(or(t));
1568
+ }
1569
+ return K(o, f);
1570
+ }
1571
+ //#endregion
1572
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/logSpans.js
1573
+ function _r(e) {
1574
+ if (!h) return;
1575
+ let { description: t = "< unknown name >", op: n = "< unknown op >", parent_span_id: r } = U(e), { spanId: i } = e.spanContext(), a = Dn(e), o = W(e), s = o === e, c = `[Tracing] Starting ${a ? "sampled" : "unsampled"} ${s ? "root " : ""}span`, l = [
1576
+ `op: ${n}`,
1577
+ `name: ${t}`,
1578
+ `ID: ${i}`
1579
+ ];
1580
+ if (r && l.push(`parent ID: ${r}`), !s) {
1581
+ let { op: e, description: t } = U(o);
1582
+ l.push(`root ID: ${o.spanContext().spanId}`), e && l.push(`root op: ${e}`), t && l.push(`root description: ${t}`);
1583
+ }
1584
+ b.log(`${c}
1585
+ ${l.join("\n ")}`);
1586
+ }
1587
+ function vr(e) {
1588
+ if (!h) return;
1589
+ let { description: t = "< unknown name >", op: n = "< unknown op >" } = U(e), { spanId: r } = e.spanContext(), i = `[Tracing] Finishing "${n}" ${W(e) === e ? "root " : ""}span "${t}" with ID ${r}`;
1590
+ b.log(i);
1591
+ }
1592
+ //#endregion
1593
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/measurement.js
1594
+ function yr(e) {
1595
+ if (!e || e.length === 0) return;
1596
+ let t = {};
1597
+ return e.forEach((e) => {
1598
+ let n = e.attributes || {}, r = n[Jt], i = n[Yt];
1599
+ typeof r == "string" && typeof i == "number" && (t[e.name] = {
1600
+ value: i,
1601
+ unit: r
1602
+ });
1603
+ }), t;
1604
+ }
1605
+ //#endregion
1606
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js
1607
+ var br = 1e3, xr = class {
1608
+ constructor(e = {}) {
1609
+ this._traceId = e.traceId || Dt(), this._spanId = e.spanId || Ot(), this._startTime = e.startTimestamp || P(), this._links = e.links, this._attributes = {}, this.setAttributes({
1610
+ [qt]: "manual",
1611
+ [Kt]: e.op,
1612
+ ...e.attributes
1613
+ }), 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();
1614
+ }
1615
+ addLink(e) {
1616
+ return this._links ? this._links.push(e) : this._links = [e], this;
1617
+ }
1618
+ addLinks(e) {
1619
+ return this._links ? this._links.push(...e) : this._links = e, this;
1620
+ }
1621
+ recordException(e, t) {}
1622
+ spanContext() {
1623
+ let { _spanId: e, _traceId: t, _sampled: n } = this;
1624
+ return {
1625
+ spanId: e,
1626
+ traceId: t,
1627
+ traceFlags: n ? 1 : 0
1628
+ };
1629
+ }
1630
+ setAttribute(e, t) {
1631
+ return t === void 0 ? delete this._attributes[e] : this._attributes[e] = t, this;
1632
+ }
1633
+ setAttributes(e) {
1634
+ return Object.keys(e).forEach((t) => this.setAttribute(t, e[t])), this;
1635
+ }
1636
+ updateStartTime(e) {
1637
+ this._startTime = H(e);
1638
+ }
1639
+ setStatus(e) {
1640
+ return this._status = e, this;
1641
+ }
1642
+ updateName(e) {
1643
+ return this._name = e, this.setAttribute(Wt, "custom"), this;
1644
+ }
1645
+ end(e) {
1646
+ this._endTime || (this._endTime = H(e), vr(this), this._onSpanEnded());
1647
+ }
1648
+ getSpanJSON() {
1649
+ return {
1650
+ data: this._attributes,
1651
+ description: this._name,
1652
+ op: this._attributes[Kt],
1653
+ parent_span_id: this._parentSpanId,
1654
+ span_id: this._spanId,
1655
+ start_timestamp: this._startTime,
1656
+ status: On(this._status),
1657
+ timestamp: this._endTime,
1658
+ trace_id: this._traceId,
1659
+ origin: this._attributes[qt],
1660
+ profile_id: this._attributes[Zt],
1661
+ exclusive_time: this._attributes[Qt],
1662
+ measurements: yr(this._events),
1663
+ is_segment: this._isStandaloneSpan && W(this) === this || void 0,
1664
+ segment_id: this._isStandaloneSpan ? W(this).spanContext().spanId : void 0,
1665
+ links: Cn(this._links)
1666
+ };
1667
+ }
1668
+ isRecording() {
1669
+ return !this._endTime && !!this._sampled;
1670
+ }
1671
+ addEvent(e, t, n) {
1672
+ h && b.log("[Tracing] Adding an event to span:", e);
1673
+ let r = Sr(t) ? t : n || P(), i = Sr(t) ? {} : t || {}, a = {
1674
+ name: e,
1675
+ time: H(r),
1676
+ attributes: i
1677
+ };
1678
+ return this._events.push(a), this;
1679
+ }
1680
+ isStandaloneSpan() {
1681
+ return !!this._isStandaloneSpan;
1682
+ }
1683
+ _onSpanEnded() {
1684
+ let e = B();
1685
+ if (e && e.emit("spanEnd", this), !(this._isStandaloneSpan || this === W(this))) return;
1686
+ if (this._isStandaloneSpan) {
1687
+ this._sampled ? Tr(gr([this], e)) : (h && b.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."), e && e.recordDroppedEvent("sample_rate", "span"));
1688
+ return;
1689
+ }
1690
+ let t = this._convertSpanToTransaction();
1691
+ t && (on(this).scope || R()).captureEvent(t);
1692
+ }
1693
+ _convertSpanToTransaction() {
1694
+ if (!Cr(U(this))) return;
1695
+ this._name ||= (h && b.warn("Transaction has no name, falling back to `<unlabeled transaction>`."), "<unlabeled transaction>");
1696
+ let { scope: e, isolationScope: t } = on(this), n = e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;
1697
+ if (this._sampled !== !0) return;
1698
+ let r = Mn(this).filter((e) => e !== this && !wr(e)).map((e) => U(e)).filter(Cr), i = this._attributes[Wt];
1699
+ delete this._attributes[Xt], r.forEach((e) => {
1700
+ delete e.data[Xt];
1701
+ });
1702
+ let a = {
1703
+ contexts: { trace: xn(this) },
1704
+ spans: r.length > br ? r.sort((e, t) => e.start_timestamp - t.start_timestamp).slice(0, br) : r,
1705
+ start_timestamp: this._startTime,
1706
+ timestamp: this._endTime,
1707
+ transaction: this._name,
1708
+ type: "transaction",
1709
+ sdkProcessingMetadata: {
1710
+ capturedSpanScope: e,
1711
+ capturedSpanIsolationScope: t,
1712
+ dynamicSamplingContext: Gn(this)
1713
+ },
1714
+ request: n,
1715
+ ...i && { transaction_info: { source: i } }
1716
+ }, o = yr(this._events);
1717
+ return o && Object.keys(o).length && (h && b.log("[Measurements] Adding measurements to transaction event", JSON.stringify(o, void 0, 2)), a.measurements = o), a;
1718
+ }
1719
+ };
1720
+ function Sr(e) {
1721
+ return e && typeof e == "number" || e instanceof Date || Array.isArray(e);
1722
+ }
1723
+ function Cr(e) {
1724
+ return !!e.start_timestamp && !!e.timestamp && !!e.span_id && !!e.trace_id;
1725
+ }
1726
+ function wr(e) {
1727
+ return e instanceof xr && e.isStandaloneSpan();
1728
+ }
1729
+ function Tr(e) {
1730
+ let t = B();
1731
+ if (!t) return;
1732
+ let n = e[1];
1733
+ if (!n || n.length === 0) {
1734
+ t.recordDroppedEvent("before_send", "span");
1735
+ return;
1736
+ }
1737
+ t.sendEnvelope(e);
1738
+ }
1739
+ //#endregion
1740
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/sampling.js
1741
+ function Er(e, t, n) {
1742
+ if (!Fn(e)) return [!1];
1743
+ let r, i;
1744
+ typeof e.tracesSampler == "function" ? (i = e.tracesSampler({
1745
+ ...t,
1746
+ inheritOrSampleWith: (e) => typeof t.parentSampleRate == "number" ? t.parentSampleRate : typeof t.parentSampled == "boolean" ? Number(t.parentSampled) : e
1747
+ }), r = !0) : t.parentSampled === void 0 ? e.tracesSampleRate !== void 0 && (i = e.tracesSampleRate, r = !0) : i = t.parentSampled;
1748
+ let a = yn(i);
1749
+ if (a === void 0) return h && b.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`), [!1];
1750
+ if (!a) return h && b.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler == "function" ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0"}`), [
1751
+ !1,
1752
+ a,
1753
+ r
1754
+ ];
1755
+ let o = n < a;
1756
+ return o || h && b.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`), [
1757
+ o,
1758
+ a,
1759
+ r
1760
+ ];
1761
+ }
1762
+ //#endregion
1763
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/tracing/trace.js
1764
+ var Dr = "__SENTRY_SUPPRESS_TRACING__";
1765
+ function Or(e) {
1766
+ let t = Mr();
1767
+ if (t.startInactiveSpan) return t.startInactiveSpan(e);
1768
+ let n = jr(e), { forceTransaction: r, parentSpan: i } = e;
1769
+ return (e.scope ? (t) => Ht(e.scope, t) : i === void 0 ? (e) => e() : (e) => kr(i, e))(() => {
1770
+ let t = R(), a = Fr(t, i);
1771
+ return e.onlyIfParent && !a ? new Kn() : Ar({
1772
+ parentSpan: a,
1773
+ spanArguments: n,
1774
+ forceTransaction: r,
1775
+ scope: t
1776
+ });
1777
+ });
1778
+ }
1779
+ function kr(e, t) {
1780
+ let n = Mr();
1781
+ return n.withActiveSpan ? n.withActiveSpan(e, t) : Ht((n) => (At(n, e || void 0), t(n)));
1782
+ }
1783
+ function Ar({ parentSpan: e, spanArguments: t, forceTransaction: n, scope: r }) {
1784
+ if (!Fn()) {
1785
+ let r = new Kn();
1786
+ return (n || !e) && Hn(r, {
1787
+ sampled: "false",
1788
+ sample_rate: "0",
1789
+ transaction: t.name,
1790
+ ...Gn(r)
1791
+ }), r;
1792
+ }
1793
+ let i = z(), a;
1794
+ if (e && !n) a = Pr(e, r, t), jn(e, a);
1795
+ else if (e) {
1796
+ let n = Gn(e), { traceId: i, spanId: o } = e.spanContext(), s = Dn(e);
1797
+ a = Nr({
1798
+ traceId: i,
1799
+ parentSpanId: o,
1800
+ ...t
1801
+ }, r, s), Hn(a, n);
1802
+ } else {
1803
+ let { traceId: e, dsc: n, parentSpanId: o, sampled: s } = {
1804
+ ...i.getPropagationContext(),
1805
+ ...r.getPropagationContext()
1806
+ };
1807
+ a = Nr({
1808
+ traceId: e,
1809
+ parentSpanId: o,
1810
+ ...t
1811
+ }, r, s), n && Hn(a, n);
1812
+ }
1813
+ return _r(a), an(a, r, i), a;
1814
+ }
1815
+ function jr(e) {
1816
+ let t = {
1817
+ isStandalone: (e.experimental || {}).standalone,
1818
+ ...e
1819
+ };
1820
+ if (e.startTime) {
1821
+ let n = { ...t };
1822
+ return n.startTimestamp = H(e.startTime), delete n.startTime, n;
1823
+ }
1824
+ return t;
1825
+ }
1826
+ function Mr() {
1827
+ return Bt(_());
1828
+ }
1829
+ function Nr(e, t, n) {
1830
+ let r = B(), i = r?.getOptions() || {}, { name: a = "" } = e, o = {
1831
+ spanAttributes: { ...e.attributes },
1832
+ spanName: a,
1833
+ parentSampled: n
1834
+ };
1835
+ r?.emit("beforeSampling", o, { decision: !1 });
1836
+ let s = o.parentSampled ?? n, c = o.spanAttributes, l = t.getPropagationContext(), [u, d, f] = t.getScopeData().sdkProcessingMetadata[Dr] ? [!1] : Er(i, {
1837
+ name: a,
1838
+ parentSampled: s,
1839
+ attributes: c,
1840
+ parentSampleRate: yn(l.dsc?.sample_rate)
1841
+ }, l.sampleRand), p = new xr({
1842
+ ...e,
1843
+ attributes: {
1844
+ [Wt]: "custom",
1845
+ [Gt]: d !== void 0 && f ? d : void 0,
1846
+ ...c
1847
+ },
1848
+ sampled: u
1849
+ });
1850
+ return !u && r && (h && b.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."), r.recordDroppedEvent("sample_rate", "transaction")), r && r.emit("spanStart", p), p;
1851
+ }
1852
+ function Pr(e, t, n) {
1853
+ let { spanId: r, traceId: i } = e.spanContext(), a = t.getScopeData().sdkProcessingMetadata[Dr] ? !1 : Dn(e), o = a ? new xr({
1854
+ ...n,
1855
+ parentSpanId: r,
1856
+ traceId: i,
1857
+ sampled: a
1858
+ }) : new Kn({ traceId: i });
1859
+ jn(e, o);
1860
+ let s = B();
1861
+ return s && (s.emit("spanStart", o), n.endTimestamp && s.emit("spanEnd", o)), o;
1862
+ }
1863
+ function Fr(e, t) {
1864
+ if (t) return t;
1865
+ if (t === null) return;
1866
+ let n = jt(e);
1867
+ if (!n) return;
1868
+ let r = B();
1869
+ return (r ? r.getOptions() : {}).parentSpanIsAlwaysRootSpan ? W(n) : n;
1870
+ }
1871
+ //#endregion
1872
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
1873
+ var Ir = 0, Lr = 1, Rr = 2;
1874
+ function zr(e) {
1875
+ return new Vr((t) => {
1876
+ t(e);
1877
+ });
1878
+ }
1879
+ function Br(e) {
1880
+ return new Vr((t, n) => {
1881
+ n(e);
1882
+ });
1883
+ }
1884
+ var Vr = class e {
1885
+ constructor(e) {
1886
+ this._state = Ir, this._handlers = [], this._runExecutor(e);
1887
+ }
1888
+ then(t, n) {
1889
+ return new e((e, r) => {
1890
+ this._handlers.push([
1891
+ !1,
1892
+ (n) => {
1893
+ if (!t) e(n);
1894
+ else try {
1895
+ e(t(n));
1896
+ } catch (e) {
1897
+ r(e);
1898
+ }
1899
+ },
1900
+ (t) => {
1901
+ if (!n) r(t);
1902
+ else try {
1903
+ e(n(t));
1904
+ } catch (e) {
1905
+ r(e);
1906
+ }
1907
+ }
1908
+ ]), this._executeHandlers();
1909
+ });
1910
+ }
1911
+ catch(e) {
1912
+ return this.then((e) => e, e);
1913
+ }
1914
+ finally(t) {
1915
+ return new e((e, n) => {
1916
+ let r, i;
1917
+ return this.then((e) => {
1918
+ i = !1, r = e, t && t();
1919
+ }, (e) => {
1920
+ i = !0, r = e, t && t();
1921
+ }).then(() => {
1922
+ if (i) {
1923
+ n(r);
1924
+ return;
1925
+ }
1926
+ e(r);
1927
+ });
1928
+ });
1929
+ }
1930
+ _executeHandlers() {
1931
+ if (this._state === Ir) return;
1932
+ let e = this._handlers.slice();
1933
+ this._handlers = [], e.forEach((e) => {
1934
+ e[0] ||= (this._state === Lr && e[1](this._value), this._state === Rr && e[2](this._value), !0);
1935
+ });
1936
+ }
1937
+ _runExecutor(e) {
1938
+ let t = (e, t) => {
1939
+ if (this._state === Ir) {
1940
+ if (Ue(t)) {
1941
+ t.then(n, r);
1942
+ return;
1943
+ }
1944
+ this._state = e, this._value = t, this._executeHandlers();
1945
+ }
1946
+ }, n = (e) => {
1947
+ t(Lr, e);
1948
+ }, r = (e) => {
1949
+ t(Rr, e);
1950
+ };
1951
+ try {
1952
+ e(n, r);
1953
+ } catch (e) {
1954
+ r(e);
1955
+ }
1956
+ }
1957
+ };
1958
+ //#endregion
1959
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/eventProcessors.js
1960
+ function Hr(e, t, n, r = 0) {
1961
+ try {
1962
+ let i = Ur(t, n, e, r);
1963
+ return Ue(i) ? i : zr(i);
1964
+ } catch (e) {
1965
+ return Br(e);
1966
+ }
1967
+ }
1968
+ function Ur(e, t, n, r) {
1969
+ let i = n[r];
1970
+ if (!e || !i) return e;
1971
+ let a = i({ ...e }, t);
1972
+ return h && a === null && b.log(`Event processor "${i.id || "?"}" dropped event`), Ue(a) ? a.then((e) => Ur(e, t, n, r + 1)) : Ur(a, t, n, r + 1);
1973
+ }
1974
+ //#endregion
1975
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js
1976
+ var q, Wr, Gr, J;
1977
+ function Kr(e) {
1978
+ let t = g._sentryDebugIds, n = g._debugIds;
1979
+ if (!t && !n) return {};
1980
+ let r = t ? Object.keys(t) : [], i = n ? Object.keys(n) : [];
1981
+ if (J && r.length === Wr && i.length === Gr) return J;
1982
+ Wr = r.length, Gr = i.length, J = {}, q ||= {};
1983
+ let a = (t, n) => {
1984
+ for (let r of t) {
1985
+ let t = n[r], i = q?.[r];
1986
+ if (i && J && t) J[i[0]] = t, q && (q[r] = [i[0], t]);
1987
+ else if (t) {
1988
+ let n = e(r);
1989
+ for (let e = n.length - 1; e >= 0; e--) {
1990
+ let i = n[e]?.filename;
1991
+ if (i && J && q) {
1992
+ J[i] = t, q[r] = [i, t];
1993
+ break;
1994
+ }
1995
+ }
1996
+ }
1997
+ }
1998
+ };
1999
+ return t && a(r, t), n && a(i, n), J;
2000
+ }
2001
+ //#endregion
2002
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/scopeData.js
2003
+ function qr(e, t) {
2004
+ let { fingerprint: n, span: r, breadcrumbs: i, sdkProcessingMetadata: a } = t;
2005
+ Zr(e, t), r && ei(e, r), ti(e, n), Qr(e, i), $r(e, a);
2006
+ }
2007
+ function Jr(e, t) {
2008
+ let { extra: n, tags: r, attributes: i, user: a, contexts: o, level: s, sdkProcessingMetadata: c, breadcrumbs: l, fingerprint: u, eventProcessors: d, attachments: f, propagationContext: p, transactionName: m, span: ee } = t;
2009
+ Yr(e, "extra", n), Yr(e, "tags", r), Yr(e, "attributes", i), Yr(e, "user", a), Yr(e, "contexts", o), e.sdkProcessingMetadata = Et(e.sdkProcessingMetadata, c, 2), s && (e.level = s), m && (e.transactionName = m), ee && (e.span = ee), l.length && (e.breadcrumbs = [...e.breadcrumbs, ...l]), u.length && (e.fingerprint = [...e.fingerprint, ...u]), d.length && (e.eventProcessors = [...e.eventProcessors, ...d]), f.length && (e.attachments = [...e.attachments, ...f]), e.propagationContext = {
2010
+ ...e.propagationContext,
2011
+ ...p
2012
+ };
2013
+ }
2014
+ function Yr(e, t, n) {
2015
+ e[t] = Et(e[t], n, 1);
2016
+ }
2017
+ function Xr(e, t) {
2018
+ let n = Vt().getScopeData();
2019
+ return e && Jr(n, e.getScopeData()), t && Jr(n, t.getScopeData()), n;
2020
+ }
2021
+ function Zr(e, t) {
2022
+ let { extra: n, tags: r, user: i, contexts: a, level: o, transactionName: s } = t;
2023
+ Object.keys(n).length && (e.extra = {
2024
+ ...n,
2025
+ ...e.extra
2026
+ }), Object.keys(r).length && (e.tags = {
2027
+ ...r,
2028
+ ...e.tags
2029
+ }), Object.keys(i).length && (e.user = {
2030
+ ...i,
2031
+ ...e.user
2032
+ }), Object.keys(a).length && (e.contexts = {
2033
+ ...a,
2034
+ ...e.contexts
2035
+ }), o && (e.level = o), s && e.type !== "transaction" && (e.transaction = s);
2036
+ }
2037
+ function Qr(e, t) {
2038
+ let n = [...e.breadcrumbs || [], ...t];
2039
+ e.breadcrumbs = n.length ? n : void 0;
2040
+ }
2041
+ function $r(e, t) {
2042
+ e.sdkProcessingMetadata = {
2043
+ ...e.sdkProcessingMetadata,
2044
+ ...t
2045
+ };
2046
+ }
2047
+ function ei(e, t) {
2048
+ e.contexts = {
2049
+ trace: Sn(t),
2050
+ ...e.contexts
2051
+ }, e.sdkProcessingMetadata = {
2052
+ dynamicSamplingContext: Gn(t),
2053
+ ...e.sdkProcessingMetadata
2054
+ };
2055
+ let n = U(W(t)).description;
2056
+ n && !e.transaction && e.type === "transaction" && (e.transaction = n);
2057
+ }
2058
+ function ti(e, t) {
2059
+ e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint] : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint.length || delete e.fingerprint;
2060
+ }
2061
+ //#endregion
2062
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
2063
+ function ni(e, t, n, r, i, a) {
2064
+ let { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, c = {
2065
+ ...t,
2066
+ event_id: t.event_id || n.event_id || j(),
2067
+ timestamp: t.timestamp || bt()
2068
+ }, l = n.integrations || e.integrations.map((e) => e.name);
2069
+ ri(c, e), oi(c, l), i && i.emit("applyFrameMetadata", t), t.type === void 0 && ii(c, e.stackParser);
2070
+ let u = ci(r, n.captureContext);
2071
+ n.mechanism && N(c, n.mechanism);
2072
+ let d = i ? i.getEventProcessors() : [], f = Xr(a, u), p = [...n.attachments || [], ...f.attachments];
2073
+ p.length && (n.attachments = p), qr(c, f);
2074
+ let m = [...d, ...f.eventProcessors];
2075
+ return (n.data && n.data.__sentry__ === !0 ? zr(c) : Hr(m, c, n)).then((e) => (e && ai(e), typeof o == "number" && o > 0 ? si(e, o, s) : e));
2076
+ }
2077
+ function ri(e, t) {
2078
+ let { environment: n, release: r, dist: i, maxValueLength: a } = t;
2079
+ e.environment = e.environment || n || "production", !e.release && r && (e.release = r), !e.dist && i && (e.dist = i);
2080
+ let o = e.request;
2081
+ o?.url && a && (o.url = ct(o.url, a)), a && e.exception?.values?.forEach((e) => {
2082
+ e.value &&= ct(e.value, a);
2083
+ });
2084
+ }
2085
+ function ii(e, t) {
2086
+ let n = Kr(t);
2087
+ e.exception?.values?.forEach((e) => {
2088
+ e.stacktrace?.frames?.forEach((e) => {
2089
+ e.filename && (e.debug_id = n[e.filename]);
2090
+ });
2091
+ });
2092
+ }
2093
+ function ai(e) {
2094
+ let t = {};
2095
+ if (e.exception?.values?.forEach((e) => {
2096
+ e.stacktrace?.frames?.forEach((e) => {
2097
+ e.debug_id && (e.abs_path ? t[e.abs_path] = e.debug_id : e.filename && (t[e.filename] = e.debug_id), delete e.debug_id);
2098
+ });
2099
+ }), Object.keys(t).length === 0) return;
2100
+ e.debug_meta = e.debug_meta || {}, e.debug_meta.images = e.debug_meta.images || [];
2101
+ let n = e.debug_meta.images;
2102
+ Object.entries(t).forEach(([e, t]) => {
2103
+ n.push({
2104
+ type: "sourcemap",
2105
+ code_file: e,
2106
+ debug_id: t
2107
+ });
2108
+ });
2109
+ }
2110
+ function oi(e, t) {
2111
+ t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]);
2112
+ }
2113
+ function si(e, t, n) {
2114
+ if (!e) return null;
2115
+ let r = {
2116
+ ...e,
2117
+ ...e.breadcrumbs && { breadcrumbs: e.breadcrumbs.map((e) => ({
2118
+ ...e,
2119
+ ...e.data && { data: G(e.data, t, n) }
2120
+ })) },
2121
+ ...e.user && { user: G(e.user, t, n) },
2122
+ ...e.contexts && { contexts: G(e.contexts, t, n) },
2123
+ ...e.extra && { extra: G(e.extra, t, n) }
2124
+ };
2125
+ return e.contexts?.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = G(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e) => ({
2126
+ ...e,
2127
+ ...e.data && { data: G(e.data, t, n) }
2128
+ }))), e.contexts?.flags && r.contexts && (r.contexts.flags = G(e.contexts.flags, 3, n)), r;
2129
+ }
2130
+ function ci(e, t) {
2131
+ if (!t) return e;
2132
+ let n = e ? e.clone() : new I();
2133
+ return n.update(t), n;
2134
+ }
2135
+ function li(e) {
2136
+ if (e) return ui(e) || fi(e) ? { captureContext: e } : e;
2137
+ }
2138
+ function ui(e) {
2139
+ return e instanceof I || typeof e == "function";
2140
+ }
2141
+ var di = [
2142
+ "user",
2143
+ "level",
2144
+ "extra",
2145
+ "contexts",
2146
+ "tags",
2147
+ "fingerprint",
2148
+ "propagationContext"
2149
+ ];
2150
+ function fi(e) {
2151
+ return Object.keys(e).some((e) => di.includes(e));
2152
+ }
2153
+ //#endregion
2154
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/exports.js
2155
+ function pi(e, t) {
2156
+ return R().captureException(e, li(t));
2157
+ }
2158
+ function mi(e, t) {
2159
+ return R().captureEvent(e, t);
2160
+ }
2161
+ function hi(e) {
2162
+ let t = z(), { user: n } = Xr(t, R()), { userAgent: r } = g.navigator || {}, i = Ct({
2163
+ user: n,
2164
+ ...r && { userAgent: r },
2165
+ ...e
2166
+ }), a = t.getSession();
2167
+ return a?.status === "ok" && F(a, { status: "exited" }), gi(), t.setSession(i), i;
2168
+ }
2169
+ function gi() {
2170
+ let e = z(), t = R().getSession() || e.getSession();
2171
+ t && wt(t), _i(), e.setSession();
2172
+ }
2173
+ function _i() {
2174
+ let e = z(), t = B(), n = e.getSession();
2175
+ n && t && t.captureSession(n);
2176
+ }
2177
+ function vi(e = !1) {
2178
+ if (e) {
2179
+ gi();
2180
+ return;
2181
+ }
2182
+ _i();
2183
+ }
2184
+ //#endregion
2185
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/api.js
2186
+ var yi = "7";
2187
+ function bi(e) {
2188
+ let t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
2189
+ return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
2190
+ }
2191
+ function xi(e) {
2192
+ return `${bi(e)}${e.projectId}/envelope/`;
2193
+ }
2194
+ function Si(e, t) {
2195
+ let n = { sentry_version: yi };
2196
+ return e.publicKey && (n.sentry_key = e.publicKey), t && (n.sentry_client = `${t.name}/${t.version}`), new URLSearchParams(n).toString();
2197
+ }
2198
+ function Ci(e, t, n) {
2199
+ return t || `${xi(e)}?${Si(e, n)}`;
2200
+ }
2201
+ //#endregion
2202
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/integration.js
2203
+ var wi = [];
2204
+ function Ti(e) {
2205
+ let t = {};
2206
+ return e.forEach((e) => {
2207
+ let { name: n } = e, r = t[n];
2208
+ r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e);
2209
+ }), Object.values(t);
2210
+ }
2211
+ function Ei(e) {
2212
+ let t = e.defaultIntegrations || [], n = e.integrations;
2213
+ t.forEach((e) => {
2214
+ e.isDefaultInstance = !0;
2215
+ });
2216
+ let r;
2217
+ if (Array.isArray(n)) r = [...t, ...n];
2218
+ else if (typeof n == "function") {
2219
+ let e = n(t);
2220
+ r = Array.isArray(e) ? e : [e];
2221
+ } else r = t;
2222
+ return Ti(r);
2223
+ }
2224
+ function Di(e, t) {
2225
+ let n = {};
2226
+ return t.forEach((t) => {
2227
+ t && ki(e, t, n);
2228
+ }), n;
2229
+ }
2230
+ function Oi(e, t) {
2231
+ for (let n of t) n?.afterAllSetup && n.afterAllSetup(e);
2232
+ }
2233
+ function ki(e, t, n) {
2234
+ if (n[t.name]) {
2235
+ h && b.log(`Integration skipped because it was already installed: ${t.name}`);
2236
+ return;
2237
+ }
2238
+ if (n[t.name] = t, !wi.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), wi.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
2239
+ let n = t.preprocessEvent.bind(t);
2240
+ e.on("preprocessEvent", (t, r) => n(t, r, e));
2241
+ }
2242
+ if (typeof t.processEvent == "function") {
2243
+ let n = t.processEvent.bind(t), r = Object.assign((t, r) => n(t, r, e), { id: t.name });
2244
+ e.addEventProcessor(r);
2245
+ }
2246
+ h && b.log(`Integration installed: ${t.name}`);
2247
+ }
2248
+ function Y(e) {
2249
+ return e;
2250
+ }
2251
+ //#endregion
2252
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/logs/envelope.js
2253
+ function Ai(e) {
2254
+ return [{
2255
+ type: "log",
2256
+ item_count: e.length,
2257
+ content_type: "application/vnd.sentry.items.log+json"
2258
+ }, { items: e }];
2259
+ }
2260
+ function ji(e, t, n, r) {
2261
+ let i = {};
2262
+ return t?.sdk && (i.sdk = {
2263
+ name: t.sdk.name,
2264
+ version: t.sdk.version
2265
+ }), n && r && (i.dsn = V(r)), K(i, [Ai(e)]);
2266
+ }
2267
+ //#endregion
2268
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/logs/internal.js
2269
+ function Mi(e, t) {
2270
+ let n = t ?? Ni(e) ?? [];
2271
+ if (n.length === 0) return;
2272
+ let r = e.getOptions(), i = ji(n, r._metadata, r.tunnel, e.getDsn());
2273
+ Pi().set(e, []), e.emit("flushLogs"), e.sendEnvelope(i);
2274
+ }
2275
+ function Ni(e) {
2276
+ return Pi().get(e);
2277
+ }
2278
+ function Pi() {
2279
+ return v("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
2280
+ }
2281
+ //#endregion
2282
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
2283
+ function Fi(e) {
2284
+ return [{
2285
+ type: "trace_metric",
2286
+ item_count: e.length,
2287
+ content_type: "application/vnd.sentry.items.trace-metric+json"
2288
+ }, { items: e }];
2289
+ }
2290
+ function Ii(e, t, n, r) {
2291
+ let i = {};
2292
+ return t?.sdk && (i.sdk = {
2293
+ name: t.sdk.name,
2294
+ version: t.sdk.version
2295
+ }), n && r && (i.dsn = V(r)), K(i, [Fi(e)]);
2296
+ }
2297
+ //#endregion
2298
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/metrics/internal.js
2299
+ function Li(e, t) {
2300
+ let n = t ?? Ri(e) ?? [];
2301
+ if (n.length === 0) return;
2302
+ let r = e.getOptions(), i = Ii(n, r._metadata, r.tunnel, e.getDsn());
2303
+ zi().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(i);
2304
+ }
2305
+ function Ri(e) {
2306
+ return zi().get(e);
2307
+ }
2308
+ function zi() {
2309
+ return v("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
2310
+ }
2311
+ //#endregion
2312
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/timer.js
2313
+ function Bi(e) {
2314
+ return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
2315
+ }
2316
+ //#endregion
2317
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
2318
+ var Vi = Symbol.for("SentryBufferFullError");
2319
+ function Hi(e = 100) {
2320
+ let t = /* @__PURE__ */ new Set();
2321
+ function n() {
2322
+ return t.size < e;
2323
+ }
2324
+ function r(e) {
2325
+ t.delete(e);
2326
+ }
2327
+ function i(e) {
2328
+ if (!n()) return Br(Vi);
2329
+ let i = e();
2330
+ return t.add(i), i.then(() => r(i), () => r(i)), i;
2331
+ }
2332
+ function a(e) {
2333
+ if (!t.size) return zr(!0);
2334
+ let n = Promise.allSettled(Array.from(t)).then(() => !0);
2335
+ if (!e) return n;
2336
+ let r = [n, new Promise((t) => Bi(setTimeout(() => t(!1), e)))];
2337
+ return Promise.race(r);
2338
+ }
2339
+ return {
2340
+ get $() {
2341
+ return Array.from(t);
2342
+ },
2343
+ add: i,
2344
+ drain: a
2345
+ };
2346
+ }
2347
+ //#endregion
2348
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
2349
+ var Ui = 60 * 1e3;
2350
+ function Wi(e, t = st()) {
2351
+ let n = parseInt(`${e}`, 10);
2352
+ if (!isNaN(n)) return n * 1e3;
2353
+ let r = Date.parse(`${e}`);
2354
+ return isNaN(r) ? Ui : r - t;
2355
+ }
2356
+ function Gi(e, t) {
2357
+ return e[t] || e.all || 0;
2358
+ }
2359
+ function Ki(e, t, n = st()) {
2360
+ return Gi(e, t) > n;
2361
+ }
2362
+ function qi(e, { statusCode: t, headers: n }, r = st()) {
2363
+ let i = { ...e }, a = n?.["x-sentry-rate-limits"], o = n?.["retry-after"];
2364
+ if (a) for (let e of a.trim().split(",")) {
2365
+ let [t, n, , , a] = e.split(":", 5), o = parseInt(t, 10), s = (isNaN(o) ? 60 : o) * 1e3;
2366
+ if (!n) i.all = r + s;
2367
+ else for (let e of n.split(";")) e === "metric_bucket" ? (!a || a.split(";").includes("custom")) && (i[e] = r + s) : i[e] = r + s;
2368
+ }
2369
+ else o ? i.all = r + Wi(o, r) : t === 429 && (i.all = r + 60 * 1e3);
2370
+ return i;
2371
+ }
2372
+ function Ji(e, t, n = Hi(e.bufferSize || 64)) {
2373
+ let r = {}, i = (e) => n.drain(e);
2374
+ function a(i) {
2375
+ let a = [];
2376
+ if (tr(i, (t, n) => {
2377
+ let i = ur(n);
2378
+ Ki(r, i) ? e.recordDroppedEvent("ratelimit_backoff", i) : a.push(t);
2379
+ }), a.length === 0) return Promise.resolve({});
2380
+ let o = K(i[0], a), s = (t) => {
2381
+ if (nr(o, ["client_report"])) {
2382
+ h && b.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);
2383
+ return;
2384
+ }
2385
+ tr(o, (n, r) => {
2386
+ e.recordDroppedEvent(t, ur(r));
2387
+ });
2388
+ };
2389
+ return n.add(() => t({ body: ir(o) }).then((e) => e.statusCode === 413 ? (h && b.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."), s("send_error"), e) : (h && e.statusCode !== void 0 && (e.statusCode < 200 || e.statusCode >= 300) && b.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = qi(r, e), e), (e) => {
2390
+ throw s("network_error"), h && b.error("Encountered error running transport request:", e), e;
2391
+ })).then((e) => e, (e) => {
2392
+ if (e === Vi) return h && b.error("Skipped sending event because buffer is full."), s("queue_overflow"), Promise.resolve({});
2393
+ throw e;
2394
+ });
2395
+ }
2396
+ return {
2397
+ send: a,
2398
+ flush: i
2399
+ };
2400
+ }
2401
+ //#endregion
2402
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
2403
+ function Yi(e, t, n) {
2404
+ let r = [{ type: "client_report" }, {
2405
+ timestamp: n || bt(),
2406
+ discarded_events: e
2407
+ }];
2408
+ return K(t ? { dsn: t } : {}, [r]);
2409
+ }
2410
+ //#endregion
2411
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
2412
+ function Xi(e) {
2413
+ let t = [];
2414
+ e.message && t.push(e.message);
2415
+ try {
2416
+ let n = e.exception.values[e.exception.values.length - 1];
2417
+ n?.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`));
2418
+ } catch {}
2419
+ return t;
2420
+ }
2421
+ //#endregion
2422
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
2423
+ function Zi(e) {
2424
+ let { trace_id: t, parent_span_id: n, span_id: r, status: i, origin: a, data: o, op: s } = e.contexts?.trace ?? {};
2425
+ return {
2426
+ data: o ?? {},
2427
+ description: e.transaction,
2428
+ op: s,
2429
+ parent_span_id: n,
2430
+ span_id: r ?? "",
2431
+ start_timestamp: e.start_timestamp ?? 0,
2432
+ status: i,
2433
+ timestamp: e.timestamp,
2434
+ trace_id: t ?? "",
2435
+ origin: a,
2436
+ profile_id: o?.[Zt],
2437
+ exclusive_time: o?.[Qt],
2438
+ measurements: e.measurements,
2439
+ is_segment: !0
2440
+ };
2441
+ }
2442
+ function Qi(e) {
2443
+ return {
2444
+ type: "transaction",
2445
+ timestamp: e.timestamp,
2446
+ start_timestamp: e.start_timestamp,
2447
+ transaction: e.description,
2448
+ contexts: { trace: {
2449
+ trace_id: e.trace_id,
2450
+ span_id: e.span_id,
2451
+ parent_span_id: e.parent_span_id,
2452
+ op: e.op,
2453
+ status: e.status,
2454
+ origin: e.origin,
2455
+ data: {
2456
+ ...e.data,
2457
+ ...e.profile_id && { "sentry.profile_id": e.profile_id },
2458
+ ...e.exclusive_time && { "sentry.exclusive_time": e.exclusive_time }
2459
+ }
2460
+ } },
2461
+ measurements: e.measurements
2462
+ };
2463
+ }
2464
+ //#endregion
2465
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/client.js
2466
+ var $i = "Not capturing exception because it's already been captured.", ea = "Discarded session because of missing or non-string release", ta = Symbol.for("SentryInternalError"), na = Symbol.for("SentryDoNotSendEventError"), ra = 5e3;
2467
+ function ia(e) {
2468
+ return {
2469
+ message: e,
2470
+ [ta]: !0
2471
+ };
2472
+ }
2473
+ function aa(e) {
2474
+ return {
2475
+ message: e,
2476
+ [na]: !0
2477
+ };
2478
+ }
2479
+ function oa(e) {
2480
+ return !!e && typeof e == "object" && ta in e;
2481
+ }
2482
+ function sa(e) {
2483
+ return !!e && typeof e == "object" && na in e;
2484
+ }
2485
+ function ca(e, t, n, r, i) {
2486
+ let a = 0, o, s = !1;
2487
+ e.on(n, () => {
2488
+ a = 0, clearTimeout(o), s = !1;
2489
+ }), e.on(t, (t) => {
2490
+ a += r(t), a >= 8e5 ? i(e) : s || (s = !0, o = Bi(setTimeout(() => {
2491
+ i(e);
2492
+ }, ra)));
2493
+ }), e.on("flush", () => {
2494
+ i(e);
2495
+ });
2496
+ }
2497
+ var la = class {
2498
+ constructor(e) {
2499
+ if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Hi(e.transportOptions?.bufferSize ?? 64), e.dsn ? this._dsn = vn(e.dsn) : h && b.warn("No DSN provided, client will not send events."), this._dsn) {
2500
+ let t = Ci(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0);
2501
+ this._transport = e.transport({
2502
+ tunnel: this._options.tunnel,
2503
+ recordDroppedEvent: this.recordDroppedEvent.bind(this),
2504
+ ...e.transportOptions,
2505
+ url: t
2506
+ });
2507
+ }
2508
+ this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs, this._options.enableLogs && ca(this, "afterCaptureLog", "flushLogs", ga, Mi), (this._options.enableMetrics ?? this._options._experiments?.enableMetrics ?? !0) && ca(this, "afterCaptureMetric", "flushMetrics", ha, Li);
2509
+ }
2510
+ captureException(e, t, n) {
2511
+ let r = j();
2512
+ if (_t(e)) return h && b.log($i), r;
2513
+ let i = {
2514
+ event_id: r,
2515
+ ...t
2516
+ };
2517
+ return this._process(() => this.eventFromException(e, i).then((e) => this._captureEvent(e, i, n)).then((e) => e), "error"), i.event_id;
2518
+ }
2519
+ captureMessage(e, t, n, r) {
2520
+ let i = {
2521
+ event_id: j(),
2522
+ ...n
2523
+ }, a = Le(e) ? e : String(e), o = Re(e), s = o ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i);
2524
+ return this._process(() => s.then((e) => this._captureEvent(e, i, r)), o ? "unknown" : "error"), i.event_id;
2525
+ }
2526
+ captureEvent(e, t, n) {
2527
+ let r = j();
2528
+ if (t?.originalException && _t(t.originalException)) return h && b.log($i), r;
2529
+ let i = {
2530
+ event_id: r,
2531
+ ...t
2532
+ }, a = e.sdkProcessingMetadata || {}, o = a.capturedSpanScope, s = a.capturedSpanIsolationScope, c = ua(e.type);
2533
+ return this._process(() => this._captureEvent(e, i, o || n, s), c), i.event_id;
2534
+ }
2535
+ captureSession(e) {
2536
+ this.sendSession(e), F(e, { init: !1 });
2537
+ }
2538
+ getDsn() {
2539
+ return this._dsn;
2540
+ }
2541
+ getOptions() {
2542
+ return this._options;
2543
+ }
2544
+ getSdkMetadata() {
2545
+ return this._options._metadata;
2546
+ }
2547
+ getTransport() {
2548
+ return this._transport;
2549
+ }
2550
+ async flush(e) {
2551
+ let t = this._transport;
2552
+ if (!t) return !0;
2553
+ this.emit("flush");
2554
+ let n = await this._isClientDoneProcessing(e), r = await t.flush(e);
2555
+ return n && r;
2556
+ }
2557
+ async close(e) {
2558
+ Mi(this);
2559
+ let t = await this.flush(e);
2560
+ return this.getOptions().enabled = !1, this.emit("close"), t;
2561
+ }
2562
+ getEventProcessors() {
2563
+ return this._eventProcessors;
2564
+ }
2565
+ addEventProcessor(e) {
2566
+ this._eventProcessors.push(e);
2567
+ }
2568
+ init() {
2569
+ (this._isEnabled() || this._options.integrations.some(({ name: e }) => e.startsWith("Spotlight"))) && this._setupIntegrations();
2570
+ }
2571
+ getIntegrationByName(e) {
2572
+ return this._integrations[e];
2573
+ }
2574
+ addIntegration(e) {
2575
+ let t = this._integrations[e.name];
2576
+ ki(this, e, this._integrations), t || Oi(this, [e]);
2577
+ }
2578
+ sendEvent(e, t = {}) {
2579
+ this.emit("beforeSendEvent", e, t);
2580
+ let n = hr(e, this._dsn, this._options._metadata, this._options.tunnel);
2581
+ for (let e of t.attachments || []) n = er(n, sr(e));
2582
+ this.sendEnvelope(n).then((t) => this.emit("afterSendEvent", e, t));
2583
+ }
2584
+ sendSession(e) {
2585
+ let { release: t, environment: n = Bn } = this._options;
2586
+ if ("aggregates" in e) {
2587
+ let r = e.attrs || {};
2588
+ if (!r.release && !t) {
2589
+ h && b.warn(ea);
2590
+ return;
2591
+ }
2592
+ r.release = r.release || t, r.environment = r.environment || n, e.attrs = r;
2593
+ } else {
2594
+ if (!e.release && !t) {
2595
+ h && b.warn(ea);
2596
+ return;
2597
+ }
2598
+ e.release = e.release || t, e.environment = e.environment || n;
2599
+ }
2600
+ this.emit("beforeSendSession", e);
2601
+ let r = mr(e, this._dsn, this._options._metadata, this._options.tunnel);
2602
+ this.sendEnvelope(r);
2603
+ }
2604
+ recordDroppedEvent(e, t, n = 1) {
2605
+ if (this._options.sendClientReports) {
2606
+ let r = `${e}:${t}`;
2607
+ h && b.log(`Recording outcome: "${r}"${n > 1 ? ` (${n} times)` : ""}`), this._outcomes[r] = (this._outcomes[r] || 0) + n;
2608
+ }
2609
+ }
2610
+ on(e, t) {
2611
+ let n = this._hooks[e] = this._hooks[e] || /* @__PURE__ */ new Set(), r = (...e) => t(...e);
2612
+ return n.add(r), () => {
2613
+ n.delete(r);
2614
+ };
2615
+ }
2616
+ emit(e, ...t) {
2617
+ let n = this._hooks[e];
2618
+ n && n.forEach((e) => e(...t));
2619
+ }
2620
+ async sendEnvelope(e) {
2621
+ if (this.emit("beforeEnvelope", e), this._isEnabled() && this._transport) try {
2622
+ return await this._transport.send(e);
2623
+ } catch (e) {
2624
+ return h && b.error("Error while sending envelope:", e), {};
2625
+ }
2626
+ return h && b.error("Transport disabled"), {};
2627
+ }
2628
+ dispose() {}
2629
+ _setupIntegrations() {
2630
+ let { integrations: e } = this._options;
2631
+ this._integrations = Di(this, e), Oi(this, e);
2632
+ }
2633
+ _updateSessionFromEvent(e, t) {
2634
+ let n = t.level === "fatal", r = !1, i = t.exception?.values;
2635
+ if (i) {
2636
+ r = !0, n = !1;
2637
+ for (let e of i) if (e.mechanism?.handled === !1) {
2638
+ n = !0;
2639
+ break;
2640
+ }
2641
+ }
2642
+ let a = e.status === "ok";
2643
+ (a && e.errors === 0 || a && n) && (F(e, {
2644
+ ...n && { status: "crashed" },
2645
+ errors: e.errors || Number(r || n)
2646
+ }), this.captureSession(e));
2647
+ }
2648
+ async _isClientDoneProcessing(e) {
2649
+ let t = 0;
2650
+ for (; !e || t < e;) {
2651
+ if (await new Promise((e) => setTimeout(e, 1)), !this._numProcessing) return !0;
2652
+ t++;
2653
+ }
2654
+ return !1;
2655
+ }
2656
+ _isEnabled() {
2657
+ return this.getOptions().enabled !== !1 && this._transport !== void 0;
2658
+ }
2659
+ _prepareEvent(e, t, n, r) {
2660
+ let i = this.getOptions(), a = Object.keys(this._integrations);
2661
+ return !t.integrations && a?.length && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), ni(i, e, t, n, this, r).then((e) => e === null ? e : (this.emit("postprocessEvent", e, t), e.contexts = {
2662
+ trace: {
2663
+ ...e.contexts?.trace,
2664
+ ...Ut(n)
2665
+ },
2666
+ ...e.contexts
2667
+ }, e.sdkProcessingMetadata = {
2668
+ dynamicSamplingContext: Wn(this, n),
2669
+ ...e.sdkProcessingMetadata
2670
+ }, e));
2671
+ }
2672
+ _captureEvent(e, t = {}, n = R(), r = z()) {
2673
+ return h && pa(e) && b.log(`Captured error event \`${Xi(e)[0] || "<unknown>"}\``), this._processEvent(e, t, n, r).then((e) => e.event_id, (e) => {
2674
+ h && (sa(e) ? b.log(e.message) : oa(e) ? b.warn(e.message) : b.warn(e));
2675
+ });
2676
+ }
2677
+ _processEvent(e, t, n, r) {
2678
+ let i = this.getOptions(), { sampleRate: a } = i, o = ma(e), s = pa(e), c = `before send for type \`${e.type || "error"}\``, l = a === void 0 ? void 0 : yn(a);
2679
+ if (s && typeof l == "number" && ot() > l) return this.recordDroppedEvent("sample_rate", "error"), Br(aa(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
2680
+ let u = ua(e.type);
2681
+ return this._prepareEvent(e, t, n, r).then((e) => {
2682
+ if (e === null) throw this.recordDroppedEvent("event_processor", u), aa("An event processor returned `null`, will not send event.");
2683
+ return t.data?.__sentry__ === !0 ? e : da(fa(this, i, e, t), c);
2684
+ }).then((i) => {
2685
+ if (i === null) {
2686
+ if (this.recordDroppedEvent("before_send", u), o) {
2687
+ let t = 1 + (e.spans || []).length;
2688
+ this.recordDroppedEvent("before_send", "span", t);
2689
+ }
2690
+ throw aa(`${c} returned \`null\`, will not send event.`);
2691
+ }
2692
+ let a = n.getSession() || r.getSession();
2693
+ if (s && a && this._updateSessionFromEvent(a, i), o) {
2694
+ let e = (i.sdkProcessingMetadata?.spanCountBeforeProcessing || 0) - (i.spans ? i.spans.length : 0);
2695
+ e > 0 && this.recordDroppedEvent("before_send", "span", e);
2696
+ }
2697
+ let l = i.transaction_info;
2698
+ return o && l && i.transaction !== e.transaction && (i.transaction_info = {
2699
+ ...l,
2700
+ source: "custom"
2701
+ }), this.sendEvent(i, t), i;
2702
+ }).then(null, (e) => {
2703
+ throw sa(e) || oa(e) ? e : (this.captureException(e, {
2704
+ mechanism: {
2705
+ handled: !1,
2706
+ type: "internal"
2707
+ },
2708
+ data: { __sentry__: !0 },
2709
+ originalException: e
2710
+ }), ia(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`));
2711
+ });
2712
+ }
2713
+ _process(e, t) {
2714
+ this._numProcessing++, this._promiseBuffer.add(e).then((e) => (this._numProcessing--, e), (e) => (this._numProcessing--, e === Vi && this.recordDroppedEvent("queue_overflow", t), e));
2715
+ }
2716
+ _clearOutcomes() {
2717
+ let e = this._outcomes;
2718
+ return this._outcomes = {}, Object.entries(e).map(([e, t]) => {
2719
+ let [n, r] = e.split(":");
2720
+ return {
2721
+ reason: n,
2722
+ category: r,
2723
+ quantity: t
2724
+ };
2725
+ });
2726
+ }
2727
+ _flushOutcomes() {
2728
+ h && b.log("Flushing outcomes...");
2729
+ let e = this._clearOutcomes();
2730
+ if (e.length === 0) {
2731
+ h && b.log("No outcomes to send");
2732
+ return;
2733
+ }
2734
+ if (!this._dsn) {
2735
+ h && b.log("No dsn provided, will not send outcomes");
2736
+ return;
2737
+ }
2738
+ h && b.log("Sending outcomes:", e);
2739
+ let t = Yi(e, this._options.tunnel && V(this._dsn));
2740
+ this.sendEnvelope(t);
2741
+ }
2742
+ };
2743
+ function ua(e) {
2744
+ return e === "replay_event" ? "replay" : e || "error";
2745
+ }
2746
+ function da(e, t) {
2747
+ let n = `${t} must return \`null\` or a valid event.`;
2748
+ if (Ue(e)) return e.then((e) => {
2749
+ if (!ze(e) && e !== null) throw ia(n);
2750
+ return e;
2751
+ }, (e) => {
2752
+ throw ia(`${t} rejected with ${e}`);
2753
+ });
2754
+ if (!ze(e) && e !== null) throw ia(n);
2755
+ return e;
2756
+ }
2757
+ function fa(e, t, n, r) {
2758
+ let { beforeSend: i, beforeSendTransaction: a, beforeSendSpan: o, ignoreSpans: s } = t, c = n;
2759
+ if (pa(c) && i) return i(c, r);
2760
+ if (ma(c)) {
2761
+ if (o || s) {
2762
+ let t = Zi(c);
2763
+ if (s?.length && Ln(t, s)) return null;
2764
+ if (o) {
2765
+ let e = o(t);
2766
+ e ? c = Et(n, Qi(e)) : Pn();
2767
+ }
2768
+ if (c.spans) {
2769
+ let t = [], n = c.spans;
2770
+ for (let e of n) {
2771
+ if (s?.length && Ln(e, s)) {
2772
+ Rn(n, e);
2773
+ continue;
2774
+ }
2775
+ if (o) {
2776
+ let n = o(e);
2777
+ n ? t.push(n) : (Pn(), t.push(e));
2778
+ } else t.push(e);
2779
+ }
2780
+ let r = c.spans.length - t.length;
2781
+ r && e.recordDroppedEvent("before_send", "span", r), c.spans = t;
2782
+ }
2783
+ }
2784
+ if (a) {
2785
+ if (c.spans) {
2786
+ let e = c.spans.length;
2787
+ c.sdkProcessingMetadata = {
2788
+ ...n.sdkProcessingMetadata,
2789
+ spanCountBeforeProcessing: e
2790
+ };
2791
+ }
2792
+ return a(c, r);
2793
+ }
2794
+ }
2795
+ return c;
2796
+ }
2797
+ function pa(e) {
2798
+ return e.type === void 0;
2799
+ }
2800
+ function ma(e) {
2801
+ return e.type === "transaction";
2802
+ }
2803
+ function ha(e) {
2804
+ let t = 0;
2805
+ return e.name && (t += e.name.length * 2), t += 8, t + _a(e.attributes);
2806
+ }
2807
+ function ga(e) {
2808
+ let t = 0;
2809
+ return e.message && (t += e.message.length * 2), t + _a(e.attributes);
2810
+ }
2811
+ function _a(e) {
2812
+ if (!e) return 0;
2813
+ let t = 0;
2814
+ return Object.values(e).forEach((e) => {
2815
+ Array.isArray(e) ? t += e.length * va(e[0]) : Re(e) ? t += va(e) : t += 100;
2816
+ }), t;
2817
+ }
2818
+ function va(e) {
2819
+ return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
2820
+ }
2821
+ //#endregion
2822
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
2823
+ function ya(e) {
2824
+ return Ne(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
2825
+ }
2826
+ function ba(e) {
2827
+ return ya(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
2828
+ }
2829
+ //#endregion
2830
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/sdk.js
2831
+ function xa(e, t) {
2832
+ t.debug === !0 && (h ? b.enable() : y(() => {
2833
+ console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
2834
+ })), R().update(t.initialScope);
2835
+ let n = new e(t);
2836
+ return Sa(n), n.init(), n;
2837
+ }
2838
+ function Sa(e) {
2839
+ R().setClient(e);
2840
+ }
2841
+ //#endregion
2842
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/url.js
2843
+ function Ca(e) {
2844
+ if (!e) return {};
2845
+ let t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
2846
+ if (!t) return {};
2847
+ let n = t[6] || "", r = t[8] || "";
2848
+ return {
2849
+ host: t[4],
2850
+ path: t[5],
2851
+ protocol: t[2],
2852
+ search: n,
2853
+ hash: r,
2854
+ relative: t[5] + n + r
2855
+ };
2856
+ }
2857
+ function wa(e, t = !0) {
2858
+ if (e.startsWith("data:")) {
2859
+ let n = e.match(/^data:([^;,]+)/), r = n ? n[1] : "text/plain", i = e.includes(";base64,"), a = e.indexOf(","), o = "";
2860
+ if (t && a !== -1) {
2861
+ let t = e.slice(a + 1);
2862
+ o = t.length > 10 ? `${t.slice(0, 10)}... [truncated]` : t;
2863
+ }
2864
+ return `data:${r}${i ? ",base64" : ""}${o ? `,${o}` : ""}`;
2865
+ }
2866
+ return e;
2867
+ }
2868
+ //#endregion
2869
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
2870
+ function Ta(e) {
2871
+ "aggregates" in e ? e.attrs?.ip_address === void 0 && (e.attrs = {
2872
+ ...e.attrs,
2873
+ ip_address: "{{auto}}"
2874
+ }) : e.ipAddress === void 0 && (e.ipAddress = "{{auto}}");
2875
+ }
2876
+ //#endregion
2877
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
2878
+ function Ea(e, t, n = [t], r = "npm") {
2879
+ let i = (e._metadata = e._metadata || {}).sdk = e._metadata.sdk || {};
2880
+ i.name || (i.name = `sentry.javascript.${t}`, i.packages = n.map((e) => ({
2881
+ name: `${r}:@sentry/${e}`,
2882
+ version: te
2883
+ })), i.version = te);
2884
+ }
2885
+ //#endregion
2886
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
2887
+ var Da = 100;
2888
+ function X(e, t) {
2889
+ let n = B(), r = z();
2890
+ if (!n) return;
2891
+ let { beforeBreadcrumb: i = null, maxBreadcrumbs: a = Da } = n.getOptions();
2892
+ if (a <= 0) return;
2893
+ let o = {
2894
+ timestamp: bt(),
2895
+ ...e
2896
+ }, s = i ? y(() => i(o, t)) : o;
2897
+ s !== null && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a));
2898
+ }
2899
+ //#endregion
2900
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
2901
+ var Oa, ka = "FunctionToString", Aa = /* @__PURE__ */ new WeakMap(), ja = Y((() => ({
2902
+ name: ka,
2903
+ setupOnce() {
2904
+ Oa = Function.prototype.toString;
2905
+ try {
2906
+ Function.prototype.toString = function(...e) {
2907
+ let t = et(this), n = Aa.has(B()) && t !== void 0 ? t : this;
2908
+ return Oa.apply(n, e);
2909
+ };
2910
+ } catch {}
2911
+ },
2912
+ setup(e) {
2913
+ Aa.set(e, !0);
2914
+ }
2915
+ }))), Ma = [
2916
+ /^Script error\.?$/,
2917
+ /^Javascript error: Script error\.? on line 0$/,
2918
+ /^ResizeObserver loop completed with undelivered notifications.$/,
2919
+ /^Cannot redefine property: googletag$/,
2920
+ /^Can't find variable: gmo$/,
2921
+ /^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
2922
+ /can't redefine non-configurable property "solana"/,
2923
+ /vv\(\)\.getRestrictions is not a function/,
2924
+ /Can't find variable: _AutofillCallbackHandler/,
2925
+ /Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
2926
+ /^Java exception was raised during method invocation$/
2927
+ ], Na = "EventFilters", Pa = Y((e = {}) => {
2928
+ let t;
2929
+ return {
2930
+ name: Na,
2931
+ setup(n) {
2932
+ t = Ia(e, n.getOptions());
2933
+ },
2934
+ processEvent(n, r, i) {
2935
+ return t ||= Ia(e, i.getOptions()), La(n, t) ? null : n;
2936
+ }
2937
+ };
2938
+ }), Fa = Y(((e = {}) => ({
2939
+ ...Pa(e),
2940
+ name: "InboundFilters"
2941
+ })));
2942
+ function Ia(e = {}, t = {}) {
2943
+ return {
2944
+ allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
2945
+ denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
2946
+ ignoreErrors: [
2947
+ ...e.ignoreErrors || [],
2948
+ ...t.ignoreErrors || [],
2949
+ ...e.disableErrorDefaults ? [] : Ma
2950
+ ],
2951
+ ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []]
2952
+ };
2953
+ }
2954
+ function La(e, t) {
2955
+ if (!e.type) {
2956
+ if (Ra(e, t.ignoreErrors)) return h && b.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${M(e)}`), !0;
2957
+ if (Wa(e)) return h && b.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${M(e)}`), !0;
2958
+ if (Ba(e, t.denyUrls)) return h && b.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${M(e)}.\nUrl: ${Ua(e)}`), !0;
2959
+ if (!Va(e, t.allowUrls)) return h && b.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${M(e)}.\nUrl: ${Ua(e)}`), !0;
2960
+ } else if (e.type === "transaction" && za(e, t.ignoreTransactions)) return h && b.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${M(e)}`), !0;
2961
+ return !1;
2962
+ }
2963
+ function Ra(e, t) {
2964
+ return t?.length ? Xi(e).some((e) => dt(e, t)) : !1;
2965
+ }
2966
+ function za(e, t) {
2967
+ if (!t?.length) return !1;
2968
+ let n = e.transaction;
2969
+ return n ? dt(n, t) : !1;
2970
+ }
2971
+ function Ba(e, t) {
2972
+ if (!t?.length) return !1;
2973
+ let n = Ua(e);
2974
+ return n ? dt(n, t) : !1;
2975
+ }
2976
+ function Va(e, t) {
2977
+ if (!t?.length) return !0;
2978
+ let n = Ua(e);
2979
+ return n ? dt(n, t) : !0;
2980
+ }
2981
+ function Ha(e = []) {
2982
+ for (let t = e.length - 1; t >= 0; t--) {
2983
+ let n = e[t];
2984
+ if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]") return n.filename || null;
2985
+ }
2986
+ return null;
2987
+ }
2988
+ function Ua(e) {
2989
+ try {
2990
+ let t = [...e.exception?.values ?? []].reverse().find((e) => e.mechanism?.parent_id === void 0 && e.stacktrace?.frames?.length)?.stacktrace?.frames;
2991
+ return t ? Ha(t) : null;
2992
+ } catch {
2993
+ return h && b.error(`Cannot extract url for event ${M(e)}`), null;
2994
+ }
2995
+ }
2996
+ function Wa(e) {
2997
+ return e.exception?.values?.length ? !e.message && !e.exception.values.some((e) => e.stacktrace || e.type && e.type !== "Error" || e.value) : !1;
2998
+ }
2999
+ //#endregion
3000
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
3001
+ function Ga(e, t, n, r, i, a) {
3002
+ if (!i.exception?.values || !a || !D(a.originalException, Error)) return;
3003
+ let o = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
3004
+ o && (i.exception.values = Ka(e, t, r, a.originalException, n, i.exception.values, o, 0));
3005
+ }
3006
+ function Ka(e, t, n, r, i, a, o, s) {
3007
+ if (a.length >= n + 1) return a;
3008
+ let c = [...a];
3009
+ if (D(r[i], Error)) {
3010
+ Ja(o, s, r);
3011
+ let a = e(t, r[i]), l = c.length;
3012
+ Ya(a, i, l, s), c = Ka(e, t, n, r[i], i, [a, ...c], a, l);
3013
+ }
3014
+ return qa(r) && r.errors.forEach((a, l) => {
3015
+ if (D(a, Error)) {
3016
+ Ja(o, s, r);
3017
+ let u = e(t, a), d = c.length;
3018
+ Ya(u, `errors[${l}]`, d, s), c = Ka(e, t, n, a, i, [u, ...c], u, d);
3019
+ }
3020
+ }), c;
3021
+ }
3022
+ function qa(e) {
3023
+ return Array.isArray(e.errors);
3024
+ }
3025
+ function Ja(e, t, n) {
3026
+ e.mechanism = {
3027
+ handled: !0,
3028
+ type: "auto.core.linked_errors",
3029
+ ...qa(n) && { is_exception_group: !0 },
3030
+ ...e.mechanism,
3031
+ exception_id: t
3032
+ };
3033
+ }
3034
+ function Ya(e, t, n, r) {
3035
+ e.mechanism = {
3036
+ handled: !0,
3037
+ ...e.mechanism,
3038
+ type: "chained",
3039
+ source: t,
3040
+ exception_id: n,
3041
+ parent_id: r
3042
+ };
3043
+ }
3044
+ //#endregion
3045
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/instrument/console.js
3046
+ function Xa(e) {
3047
+ let t = "console";
3048
+ S(t, e), C(t, Za);
3049
+ }
3050
+ function Za() {
3051
+ "console" in g && re.forEach(function(e) {
3052
+ e in g.console && O(g.console, e, function(t) {
3053
+ return ae[e] = t, function(...t) {
3054
+ w("console", {
3055
+ args: t,
3056
+ level: e
3057
+ }), ae[e]?.apply(g.console, t);
3058
+ };
3059
+ });
3060
+ });
3061
+ }
3062
+ //#endregion
3063
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/severity.js
3064
+ function Qa(e) {
3065
+ return e === "warn" ? "warning" : [
3066
+ "fatal",
3067
+ "error",
3068
+ "warning",
3069
+ "log",
3070
+ "info",
3071
+ "debug"
3072
+ ].includes(e) ? e : "log";
3073
+ }
3074
+ //#endregion
3075
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
3076
+ var $a = "Dedupe", eo = Y((() => {
3077
+ let e;
3078
+ return {
3079
+ name: $a,
3080
+ processEvent(t) {
3081
+ if (t.type) return t;
3082
+ try {
3083
+ if (to(t, e)) return h && b.warn("Event dropped due to being a duplicate of previously captured event."), null;
3084
+ } catch {}
3085
+ return e = t;
3086
+ }
3087
+ };
3088
+ }));
3089
+ function to(e, t) {
3090
+ return t ? !!(no(e, t) || ro(e, t)) : !1;
3091
+ }
3092
+ function no(e, t) {
3093
+ let n = e.message, r = t.message;
3094
+ return !(!n && !r || n && !r || !n && r || n !== r || !ao(e, t) || !io(e, t));
3095
+ }
3096
+ function ro(e, t) {
3097
+ let n = oo(t), r = oo(e);
3098
+ return !(!n || !r || n.type !== r.type || n.value !== r.value || !ao(e, t) || !io(e, t));
3099
+ }
3100
+ function io(e, t) {
3101
+ let n = Se(e), r = Se(t);
3102
+ if (!n && !r) return !0;
3103
+ if (n && !r || !n && r || (n = n, r = r, r.length !== n.length)) return !1;
3104
+ for (let e = 0; e < r.length; e++) {
3105
+ let t = r[e], i = n[e];
3106
+ if (t.filename !== i.filename || t.lineno !== i.lineno || t.colno !== i.colno || t.function !== i.function) return !1;
3107
+ }
3108
+ return !0;
3109
+ }
3110
+ function ao(e, t) {
3111
+ let n = e.fingerprint, r = t.fingerprint;
3112
+ if (!n && !r) return !0;
3113
+ if (n && !r || !n && r) return !1;
3114
+ n = n, r = r;
3115
+ try {
3116
+ return n.join("") === r.join("");
3117
+ } catch {
3118
+ return !1;
3119
+ }
3120
+ }
3121
+ function oo(e) {
3122
+ return e.exception?.values?.[0];
3123
+ }
3124
+ //#endregion
3125
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
3126
+ var so = "ConversationId", co = Y((() => ({
3127
+ name: so,
3128
+ setup(e) {
3129
+ e.on("spanStart", (e) => {
3130
+ let t = R().getScopeData(), n = z().getScopeData(), r = t.conversationId || n.conversationId;
3131
+ r && e.setAttribute($t, r);
3132
+ });
3133
+ }
3134
+ })));
3135
+ //#endregion
3136
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
3137
+ function lo(e) {
3138
+ if (e !== void 0) {
3139
+ if (e >= 400 && e < 500) return "warning";
3140
+ if (e >= 500) return "error";
3141
+ }
3142
+ }
3143
+ //#endregion
3144
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/supports.js
3145
+ var uo = g;
3146
+ function fo() {
3147
+ return "history" in uo && !!uo.history;
3148
+ }
3149
+ function po() {
3150
+ if (!("fetch" in uo)) return !1;
3151
+ try {
3152
+ return new Headers(), new Request("data:,"), new Response(), !0;
3153
+ } catch {
3154
+ return !1;
3155
+ }
3156
+ }
3157
+ function mo(e) {
3158
+ return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
3159
+ }
3160
+ function ho() {
3161
+ if (typeof EdgeRuntime == "string") return !0;
3162
+ if (!po()) return !1;
3163
+ if (mo(uo.fetch)) return !0;
3164
+ let e = !1, t = uo.document;
3165
+ if (t && typeof t.createElement == "function") try {
3166
+ let n = t.createElement("iframe");
3167
+ n.hidden = !0, t.head.appendChild(n), n.contentWindow?.fetch && (e = mo(n.contentWindow.fetch)), t.head.removeChild(n);
3168
+ } catch (e) {
3169
+ h && b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e);
3170
+ }
3171
+ return e;
3172
+ }
3173
+ //#endregion
3174
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/instrument/fetch.js
3175
+ function go(e, t) {
3176
+ let n = "fetch";
3177
+ S(n, e), C(n, () => _o(void 0, t));
3178
+ }
3179
+ function _o(e, t = !1) {
3180
+ t && !ho() || O(g, "fetch", function(t) {
3181
+ return function(...n) {
3182
+ let r = /* @__PURE__ */ Error(), { method: i, url: a } = bo(n), o = {
3183
+ args: n,
3184
+ fetchData: {
3185
+ method: i,
3186
+ url: a
3187
+ },
3188
+ startTimestamp: P() * 1e3,
3189
+ virtualError: r,
3190
+ headers: xo(n)
3191
+ };
3192
+ return e || w("fetch", { ...o }), t.apply(g, n).then(async (t) => (e ? e(t) : w("fetch", {
3193
+ ...o,
3194
+ endTimestamp: P() * 1e3,
3195
+ response: t
3196
+ }), t), (e) => {
3197
+ w("fetch", {
3198
+ ...o,
3199
+ endTimestamp: P() * 1e3,
3200
+ error: e
3201
+ }), Ne(e) && e.stack === void 0 && (e.stack = r.stack, k(e, "framesToPop", 1));
3202
+ let t = B()?.getOptions().enhanceFetchErrorMessages ?? "always";
3203
+ if (t !== !1 && e instanceof TypeError && (e.message === "Failed to fetch" || e.message === "Load failed" || e.message === "NetworkError when attempting to fetch resource.")) try {
3204
+ let n = new URL(o.fetchData.url).host;
3205
+ t === "always" ? e.message = `${e.message} (${n})` : k(e, "__sentry_fetch_url_host__", n);
3206
+ } catch {}
3207
+ throw e;
3208
+ });
3209
+ };
3210
+ });
3211
+ }
3212
+ function vo(e, t) {
3213
+ return !!e && typeof e == "object" && !!e[t];
3214
+ }
3215
+ function yo(e) {
3216
+ return typeof e == "string" ? e : e ? vo(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
3217
+ }
3218
+ function bo(e) {
3219
+ if (e.length === 0) return {
3220
+ method: "GET",
3221
+ url: ""
3222
+ };
3223
+ if (e.length === 2) {
3224
+ let [t, n] = e;
3225
+ return {
3226
+ url: yo(t),
3227
+ method: vo(n, "method") ? String(n.method).toUpperCase() : Ke(t) && vo(t, "method") ? String(t.method).toUpperCase() : "GET"
3228
+ };
3229
+ }
3230
+ let t = e[0];
3231
+ return {
3232
+ url: yo(t),
3233
+ method: vo(t, "method") ? String(t.method).toUpperCase() : "GET"
3234
+ };
3235
+ }
3236
+ function xo(e) {
3237
+ let [t, n] = e;
3238
+ try {
3239
+ if (typeof n == "object" && n && "headers" in n && n.headers) return new Headers(n.headers);
3240
+ if (Ke(t)) return new Headers(t.headers);
3241
+ } catch {}
3242
+ }
3243
+ //#endregion
3244
+ //#region ../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/utils/env.js
3245
+ function So() {
3246
+ return "npm";
3247
+ }
3248
+ //#endregion
3249
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/helpers.js
3250
+ var Z = g, Co = 0;
3251
+ function wo() {
3252
+ return Co > 0;
3253
+ }
3254
+ function To() {
3255
+ Co++, setTimeout(() => {
3256
+ Co--;
3257
+ });
3258
+ }
3259
+ function Q(e, t = {}) {
3260
+ function n(e) {
3261
+ return typeof e == "function";
3262
+ }
3263
+ if (!n(e)) return e;
3264
+ try {
3265
+ let t = e.__sentry_wrapped__;
3266
+ if (t) return typeof t == "function" ? t : e;
3267
+ if (et(e)) return e;
3268
+ } catch {
3269
+ return e;
3270
+ }
3271
+ let r = function(...n) {
3272
+ try {
3273
+ let r = n.map((e) => Q(e, t));
3274
+ return e.apply(this, r);
3275
+ } catch (e) {
3276
+ throw To(), Ht((r) => {
3277
+ r.addEventProcessor((e) => (t.mechanism && (gt(e, void 0, void 0), N(e, t.mechanism)), e.extra = {
3278
+ ...e.extra,
3279
+ arguments: n
3280
+ }, e)), pi(e);
3281
+ }), e;
3282
+ }
3283
+ };
3284
+ try {
3285
+ for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
3286
+ } catch {}
3287
+ $e(r, e), k(e, "__sentry_wrapped__", r);
3288
+ try {
3289
+ Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { get() {
3290
+ return e.name;
3291
+ } });
3292
+ } catch {}
3293
+ return r;
3294
+ }
3295
+ function Eo() {
3296
+ let e = Ze(), { referrer: t } = Z.document || {}, { userAgent: n } = Z.navigator || {};
3297
+ return {
3298
+ url: e,
3299
+ headers: {
3300
+ ...t && { Referer: t },
3301
+ ...n && { "User-Agent": n }
3302
+ }
3303
+ };
3304
+ }
3305
+ //#endregion
3306
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js
3307
+ function Do(e, t) {
3308
+ let n = Ao(e, t), r = {
3309
+ type: Fo(t),
3310
+ value: Io(t)
3311
+ };
3312
+ return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
3313
+ }
3314
+ function Oo(e, t, n, r) {
3315
+ let i = B()?.getOptions().normalizeDepth, a = Uo(t), o = { __serialized__: qn(t, i) };
3316
+ if (a) return {
3317
+ exception: { values: [Do(e, a)] },
3318
+ extra: o
3319
+ };
3320
+ let s = {
3321
+ exception: { values: [{
3322
+ type: Be(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
3323
+ value: Vo(t, { isUnhandledRejection: r })
3324
+ }] },
3325
+ extra: o
3326
+ };
3327
+ if (n) {
3328
+ let t = Ao(e, n);
3329
+ t.length && (s.exception.values[0].stacktrace = { frames: t });
3330
+ }
3331
+ return s;
3332
+ }
3333
+ function ko(e, t) {
3334
+ return { exception: { values: [Do(e, t)] } };
3335
+ }
3336
+ function Ao(e, t) {
3337
+ let n = t.stacktrace || t.stack || "", r = Mo(t), i = No(t);
3338
+ try {
3339
+ return e(n, r, i);
3340
+ } catch {}
3341
+ return [];
3342
+ }
3343
+ var jo = /Minified React error #\d+;/i;
3344
+ function Mo(e) {
3345
+ return e && jo.test(e.message) ? 1 : 0;
3346
+ }
3347
+ function No(e) {
3348
+ return typeof e.framesToPop == "number" ? e.framesToPop : 0;
3349
+ }
3350
+ function Po(e) {
3351
+ return typeof WebAssembly < "u" && WebAssembly.Exception !== void 0 ? e instanceof WebAssembly.Exception : !1;
3352
+ }
3353
+ function Fo(e) {
3354
+ let t = e?.name;
3355
+ return !t && Po(e) ? e.message && Array.isArray(e.message) && e.message.length == 2 ? e.message[0] : "WebAssembly.Exception" : t;
3356
+ }
3357
+ function Io(e) {
3358
+ let t = e?.message;
3359
+ return Po(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? ba(t.error) : ba(e) : "No error message";
3360
+ }
3361
+ function Lo(e, t, n, r) {
3362
+ let i = zo(e, t, n?.syntheticException || void 0, r);
3363
+ return N(i), i.level = "error", n?.event_id && (i.event_id = n.event_id), zr(i);
3364
+ }
3365
+ function Ro(e, t, n = "info", r, i) {
3366
+ let a = Bo(e, t, r?.syntheticException || void 0, i);
3367
+ return a.level = n, r?.event_id && (a.event_id = r.event_id), zr(a);
3368
+ }
3369
+ function zo(e, t, n, r, i) {
3370
+ let a;
3371
+ if (Pe(t) && t.error) return ko(e, t.error);
3372
+ if (Fe(t) || Ie(t)) {
3373
+ let i = t;
3374
+ if ("stack" in t) a = ko(e, t);
3375
+ else {
3376
+ let t = i.name || (Fe(i) ? "DOMError" : "DOMException"), o = i.message ? `${t}: ${i.message}` : t;
3377
+ a = Bo(e, o, n, r), gt(a, o);
3378
+ }
3379
+ return "code" in i && (a.tags = {
3380
+ ...a.tags,
3381
+ "DOMException.code": `${i.code}`
3382
+ }), a;
3383
+ }
3384
+ return Ne(t) ? ko(e, t) : ze(t) || Be(t) ? (a = Oo(e, t, n, i), N(a, { synthetic: !0 }), a) : (a = Bo(e, t, n, r), gt(a, `${t}`, void 0), N(a, { synthetic: !0 }), a);
3385
+ }
3386
+ function Bo(e, t, n, r) {
3387
+ let i = {};
3388
+ if (r && n) {
3389
+ let r = Ao(e, n);
3390
+ r.length && (i.exception = { values: [{
3391
+ value: t,
3392
+ stacktrace: { frames: r }
3393
+ }] }), N(i, { synthetic: !0 });
3394
+ }
3395
+ if (Le(t)) {
3396
+ let { __sentry_template_string__: e, __sentry_template_values__: n } = t;
3397
+ return i.logentry = {
3398
+ message: e,
3399
+ params: n
3400
+ }, i;
3401
+ }
3402
+ return i.message = t, i;
3403
+ }
3404
+ function Vo(e, { isUnhandledRejection: t }) {
3405
+ let n = it(e), r = t ? "promise rejection" : "exception";
3406
+ return Pe(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : Be(e) ? `Event \`${Ho(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
3407
+ }
3408
+ function Ho(e) {
3409
+ try {
3410
+ let t = Object.getPrototypeOf(e);
3411
+ return t ? t.constructor.name : void 0;
3412
+ } catch {}
3413
+ }
3414
+ function Uo(e) {
3415
+ for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t)) {
3416
+ let n = e[t];
3417
+ if (n instanceof Error) return n;
3418
+ }
3419
+ }
3420
+ //#endregion
3421
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/client.js
3422
+ var Wo = class extends la {
3423
+ constructor(e) {
3424
+ let t = Go(e);
3425
+ Ea(t, "browser", ["browser"], Z.SENTRY_SDK_SOURCE || So()), t._metadata?.sdk && (t._metadata.sdk.settings = {
3426
+ infer_ip: t.sendDefaultPii ? "auto" : "never",
3427
+ ...t._metadata.sdk.settings
3428
+ }), super(t);
3429
+ let { sendDefaultPii: n, sendClientReports: r, enableLogs: i, _experiments: a, enableMetrics: o } = this._options, s = o ?? a?.enableMetrics ?? !0;
3430
+ Z.document && (r || i || s) && Z.document.addEventListener("visibilitychange", () => {
3431
+ Z.document.visibilityState === "hidden" && (r && this._flushOutcomes(), i && Mi(this), s && Li(this));
3432
+ }), n && this.on("beforeSendSession", Ta);
3433
+ }
3434
+ eventFromException(e, t) {
3435
+ return Lo(this._options.stackParser, e, t, this._options.attachStacktrace);
3436
+ }
3437
+ eventFromMessage(e, t = "info", n) {
3438
+ return Ro(this._options.stackParser, e, t, n, this._options.attachStacktrace);
3439
+ }
3440
+ _prepareEvent(e, t, n, r) {
3441
+ return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n, r);
3442
+ }
3443
+ };
3444
+ function Go(e) {
3445
+ return {
3446
+ release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : Z.SENTRY_RELEASE?.id,
3447
+ sendClientReports: !0,
3448
+ parentSpanIsAlwaysRootSpan: !0,
3449
+ ...e
3450
+ };
3451
+ }
3452
+ //#endregion
3453
+ //#region ../../node_modules/.pnpm/@sentry-internal+browser-utils@10.45.0/node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js
3454
+ var Ko = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, $ = g, qo = 1e3, Jo, Yo, Xo;
3455
+ function Zo(e) {
3456
+ S("dom", e), C("dom", Qo);
3457
+ }
3458
+ function Qo() {
3459
+ if (!$.document) return;
3460
+ let e = w.bind(null, "dom"), t = ts(e, !0);
3461
+ $.document.addEventListener("click", t, !1), $.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t) => {
3462
+ let n = $[t]?.prototype;
3463
+ n?.hasOwnProperty?.("addEventListener") && (O(n, "addEventListener", function(t) {
3464
+ return function(n, r, i) {
3465
+ if (n === "click" || n == "keypress") try {
3466
+ let r = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, a = r[n] = r[n] || { refCount: 0 };
3467
+ if (!a.handler) {
3468
+ let r = ts(e);
3469
+ a.handler = r, t.call(this, n, r, i);
3470
+ }
3471
+ a.refCount++;
3472
+ } catch {}
3473
+ return t.call(this, n, r, i);
3474
+ };
3475
+ }), O(n, "removeEventListener", function(e) {
3476
+ return function(t, n, r) {
3477
+ if (t === "click" || t == "keypress") try {
3478
+ let n = this.__sentry_instrumentation_handlers__ || {}, i = n[t];
3479
+ i && (i.refCount--, i.refCount <= 0 && (e.call(this, t, i.handler, r), i.handler = void 0, delete n[t]), Object.keys(n).length === 0 && delete this.__sentry_instrumentation_handlers__);
3480
+ } catch {}
3481
+ return e.call(this, t, n, r);
3482
+ };
3483
+ }));
3484
+ });
3485
+ }
3486
+ function $o(e) {
3487
+ if (e.type !== Yo) return !1;
3488
+ try {
3489
+ if (!e.target || e.target._sentryId !== Xo) return !1;
3490
+ } catch {}
3491
+ return !0;
3492
+ }
3493
+ function es(e, t) {
3494
+ return e === "keypress" ? t?.tagName ? !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) : !0 : !1;
3495
+ }
3496
+ function ts(e, t = !1) {
3497
+ return (n) => {
3498
+ if (!n || n._sentryCaptured) return;
3499
+ let r = ns(n);
3500
+ if (es(n.type, r)) return;
3501
+ k(n, "_sentryCaptured", !0), r && !r._sentryId && k(r, "_sentryId", j());
3502
+ let i = n.type === "keypress" ? "input" : n.type;
3503
+ $o(n) || (e({
3504
+ event: n,
3505
+ name: i,
3506
+ global: t
3507
+ }), Yo = n.type, Xo = r ? r._sentryId : void 0), clearTimeout(Jo), Jo = $.setTimeout(() => {
3508
+ Xo = void 0, Yo = void 0;
3509
+ }, qo);
3510
+ };
3511
+ }
3512
+ function ns(e) {
3513
+ try {
3514
+ return e.target;
3515
+ } catch {
3516
+ return null;
3517
+ }
3518
+ }
3519
+ //#endregion
3520
+ //#region ../../node_modules/.pnpm/@sentry-internal+browser-utils@10.45.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js
3521
+ var rs;
3522
+ function is(e) {
3523
+ let t = "history";
3524
+ S(t, e), C(t, as);
3525
+ }
3526
+ function as() {
3527
+ if ($.addEventListener("popstate", () => {
3528
+ let e = $.location.href, t = rs;
3529
+ rs = e, t !== e && w("history", {
3530
+ from: t,
3531
+ to: e
3532
+ });
3533
+ }), !fo()) return;
3534
+ function e(e) {
3535
+ return function(...t) {
3536
+ let n = t.length > 2 ? t[2] : void 0;
3537
+ if (n) {
3538
+ let r = rs, i = os(String(n));
3539
+ if (rs = i, r === i) return e.apply(this, t);
3540
+ w("history", {
3541
+ from: r,
3542
+ to: i
3543
+ });
3544
+ }
3545
+ return e.apply(this, t);
3546
+ };
3547
+ }
3548
+ O($.history, "pushState", e), O($.history, "replaceState", e);
3549
+ }
3550
+ function os(e) {
3551
+ try {
3552
+ return new URL(e, $.location.origin).toString();
3553
+ } catch {
3554
+ return e;
3555
+ }
3556
+ }
3557
+ //#endregion
3558
+ //#region ../../node_modules/.pnpm/@sentry-internal+browser-utils@10.45.0/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js
3559
+ var ss = {};
3560
+ function cs(e) {
3561
+ let t = ss[e];
3562
+ if (t) return t;
3563
+ let n = $[e];
3564
+ if (mo(n)) return ss[e] = n.bind($);
3565
+ let r = $.document;
3566
+ if (r && typeof r.createElement == "function") try {
3567
+ let t = r.createElement("iframe");
3568
+ t.hidden = !0, r.head.appendChild(t);
3569
+ let i = t.contentWindow;
3570
+ i?.[e] && (n = i[e]), r.head.removeChild(t);
3571
+ } catch (t) {
3572
+ Ko && b.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, t);
3573
+ }
3574
+ return n && (ss[e] = n.bind($));
3575
+ }
3576
+ function ls(e) {
3577
+ ss[e] = void 0;
3578
+ }
3579
+ //#endregion
3580
+ //#region ../../node_modules/.pnpm/@sentry-internal+browser-utils@10.45.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js
3581
+ var us = "__sentry_xhr_v3__";
3582
+ function ds(e) {
3583
+ S("xhr", e), C("xhr", fs);
3584
+ }
3585
+ function fs() {
3586
+ if (!$.XMLHttpRequest) return;
3587
+ let e = XMLHttpRequest.prototype;
3588
+ e.open = new Proxy(e.open, { apply(e, t, n) {
3589
+ let r = /* @__PURE__ */ Error(), i = P() * 1e3, a = E(n[0]) ? n[0].toUpperCase() : void 0, o = ps(n[1]);
3590
+ if (!a || !o) return e.apply(t, n);
3591
+ t[us] = {
3592
+ method: a,
3593
+ url: o,
3594
+ request_headers: {}
3595
+ }, a === "POST" && o.match(/sentry_key/) && (t.__sentry_own_request__ = !0);
3596
+ let s = () => {
3597
+ let e = t[us];
3598
+ if (e && t.readyState === 4) {
3599
+ try {
3600
+ e.status_code = t.status;
3601
+ } catch {}
3602
+ w("xhr", {
3603
+ endTimestamp: P() * 1e3,
3604
+ startTimestamp: i,
3605
+ xhr: t,
3606
+ virtualError: r
3607
+ });
3608
+ }
3609
+ };
3610
+ return "onreadystatechange" in t && typeof t.onreadystatechange == "function" ? t.onreadystatechange = new Proxy(t.onreadystatechange, { apply(e, t, n) {
3611
+ return s(), e.apply(t, n);
3612
+ } }) : t.addEventListener("readystatechange", s), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(e, t, n) {
3613
+ let [r, i] = n, a = t[us];
3614
+ return a && E(r) && E(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n);
3615
+ } }), e.apply(t, n);
3616
+ } }), e.send = new Proxy(e.send, { apply(e, t, n) {
3617
+ let r = t[us];
3618
+ return r ? (n[0] !== void 0 && (r.body = n[0]), w("xhr", {
3619
+ startTimestamp: P() * 1e3,
3620
+ xhr: t
3621
+ }), e.apply(t, n)) : e.apply(t, n);
3622
+ } });
3623
+ }
3624
+ function ps(e) {
3625
+ if (E(e)) return e;
3626
+ try {
3627
+ return e.toString();
3628
+ } catch {}
3629
+ }
3630
+ //#endregion
3631
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js
3632
+ var ms = 40;
3633
+ function hs(e, t = cs("fetch")) {
3634
+ let n = 0, r = 0;
3635
+ async function i(i) {
3636
+ let a = i.body.length;
3637
+ n += a, r++;
3638
+ let o = {
3639
+ body: i.body,
3640
+ method: "POST",
3641
+ referrerPolicy: "strict-origin",
3642
+ headers: e.headers,
3643
+ keepalive: n <= 6e4 && r < 15,
3644
+ ...e.fetchOptions
3645
+ };
3646
+ try {
3647
+ let n = await t(e.url, o);
3648
+ return {
3649
+ statusCode: n.status,
3650
+ headers: {
3651
+ "x-sentry-rate-limits": n.headers.get("X-Sentry-Rate-Limits"),
3652
+ "retry-after": n.headers.get("Retry-After")
3653
+ }
3654
+ };
3655
+ } catch (e) {
3656
+ throw ls("fetch"), e;
3657
+ } finally {
3658
+ n -= a, r--;
3659
+ }
3660
+ }
3661
+ return Ji(e, i, Hi(e.bufferSize || ms));
3662
+ }
3663
+ //#endregion
3664
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/debug-build.js
3665
+ var gs = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, _s = 30, vs = 50;
3666
+ function ys(e, t, n, r) {
3667
+ let i = {
3668
+ filename: e,
3669
+ function: t === "<anonymous>" ? "?" : t,
3670
+ in_app: !0
3671
+ };
3672
+ return n !== void 0 && (i.lineno = n), r !== void 0 && (i.colno = r), i;
3673
+ }
3674
+ var bs = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, xs = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Ss = /\((\S*)(?::(\d+))(?::(\d+))\)/, Cs = /at (.+?) ?\(data:(.+?),/, ws = [_s, (e) => {
3675
+ let t = e.match(Cs);
3676
+ if (t) return {
3677
+ filename: `<data:${t[2]}>`,
3678
+ function: t[1]
3679
+ };
3680
+ let n = bs.exec(e);
3681
+ if (n) {
3682
+ let [, e, t, r] = n;
3683
+ return ys(e, "?", +t, +r);
3684
+ }
3685
+ let r = xs.exec(e);
3686
+ if (r) {
3687
+ if (r[2]?.indexOf("eval") === 0) {
3688
+ let e = Ss.exec(r[2]);
3689
+ e && (r[2] = e[1], r[3] = e[2], r[4] = e[3]);
3690
+ }
3691
+ let [e, t] = Os(r[1] || "?", r[2]);
3692
+ return ys(t, e, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
3693
+ }
3694
+ }], Ts = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, Es = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, Ds = _e(ws, [vs, (e) => {
3695
+ let t = Ts.exec(e);
3696
+ if (t) {
3697
+ if (t[3] && t[3].indexOf(" > eval") > -1) {
3698
+ let e = Es.exec(t[3]);
3699
+ e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "");
3700
+ }
3701
+ let e = t[3], n = t[1] || "?";
3702
+ return [n, e] = Os(n, e), ys(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
3703
+ }
3704
+ }]), Os = (e, t) => {
3705
+ let n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
3706
+ return n || r ? [e.indexOf("@") === -1 ? "?" : e.split("@")[0], n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t];
3707
+ }, ks = 1024, As = "Breadcrumbs", js = Y(((e = {}) => {
3708
+ let t = {
3709
+ console: !0,
3710
+ dom: !0,
3711
+ fetch: !0,
3712
+ history: !0,
3713
+ sentry: !0,
3714
+ xhr: !0,
3715
+ ...e
3716
+ };
3717
+ return {
3718
+ name: As,
3719
+ setup(e) {
3720
+ t.console && Xa(Ps(e)), t.dom && Zo(Ns(e, t.dom)), t.xhr && ds(Fs(e)), t.fetch && go(Is(e)), t.history && is(Ls(e)), t.sentry && e.on("beforeSendEvent", Ms(e));
3721
+ }
3722
+ };
3723
+ }));
3724
+ function Ms(e) {
3725
+ return function(t) {
3726
+ B() === e && X({
3727
+ category: `sentry.${t.type === "transaction" ? "transaction" : "event"}`,
3728
+ event_id: t.event_id,
3729
+ level: t.level,
3730
+ message: M(t)
3731
+ }, { event: t });
3732
+ };
3733
+ }
3734
+ function Ns(e, t) {
3735
+ return function(n) {
3736
+ if (B() !== e) return;
3737
+ let r, i, a = typeof t == "object" ? t.serializeAttribute : void 0, o = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
3738
+ o && o > ks && (gs && b.warn(`\`dom.maxStringLength\` cannot exceed ${ks}, but a value of ${o} was configured. Sentry will use ${ks} instead.`), o = ks), typeof a == "string" && (a = [a]);
3739
+ try {
3740
+ let e = n.event, t = Rs(e) ? e.target : e;
3741
+ r = Ye(t, {
3742
+ keyAttrs: a,
3743
+ maxStringLength: o
3744
+ }), i = Qe(t);
3745
+ } catch {
3746
+ r = "<unknown>";
3747
+ }
3748
+ if (r.length === 0) return;
3749
+ let s = {
3750
+ category: `ui.${n.name}`,
3751
+ message: r
3752
+ };
3753
+ i && (s.data = { "ui.component_name": i }), X(s, {
3754
+ event: n.event,
3755
+ name: n.name,
3756
+ global: n.global
3757
+ });
3758
+ };
3759
+ }
3760
+ function Ps(e) {
3761
+ return function(t) {
3762
+ if (B() !== e) return;
3763
+ let n = {
3764
+ category: "console",
3765
+ data: {
3766
+ arguments: t.args,
3767
+ logger: "console"
3768
+ },
3769
+ level: Qa(t.level),
3770
+ message: lt(t.args, " ")
3771
+ };
3772
+ if (t.level === "assert") if (t.args[0] === !1) n.message = `Assertion failed: ${lt(t.args.slice(1), " ") || "console.assert"}`, n.data.arguments = t.args.slice(1);
3773
+ else return;
3774
+ X(n, {
3775
+ input: t.args,
3776
+ level: t.level
3777
+ });
3778
+ };
3779
+ }
3780
+ function Fs(e) {
3781
+ return function(t) {
3782
+ if (B() !== e) return;
3783
+ let { startTimestamp: n, endTimestamp: r } = t, i = t.xhr[us];
3784
+ if (!n || !r || !i) return;
3785
+ let { method: a, url: o, status_code: s, body: c } = i, l = {
3786
+ method: a,
3787
+ url: o,
3788
+ status_code: s
3789
+ }, u = {
3790
+ xhr: t.xhr,
3791
+ input: c,
3792
+ startTimestamp: n,
3793
+ endTimestamp: r
3794
+ }, d = {
3795
+ category: "xhr",
3796
+ data: l,
3797
+ type: "http",
3798
+ level: lo(s)
3799
+ };
3800
+ e.emit("beforeOutgoingRequestBreadcrumb", d, u), X(d, u);
3801
+ };
3802
+ }
3803
+ function Is(e) {
3804
+ return function(t) {
3805
+ if (B() !== e) return;
3806
+ let { startTimestamp: n, endTimestamp: r } = t;
3807
+ if (r && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST")) if (t.fetchData.method, t.fetchData.url, t.error) {
3808
+ let i = t.fetchData, a = {
3809
+ data: t.error,
3810
+ input: t.args,
3811
+ startTimestamp: n,
3812
+ endTimestamp: r
3813
+ }, o = {
3814
+ category: "fetch",
3815
+ data: i,
3816
+ level: "error",
3817
+ type: "http"
3818
+ };
3819
+ e.emit("beforeOutgoingRequestBreadcrumb", o, a), X(o, a);
3820
+ } else {
3821
+ let i = t.response, a = {
3822
+ ...t.fetchData,
3823
+ status_code: i?.status
3824
+ };
3825
+ t.fetchData.request_body_size, t.fetchData.response_body_size, i?.status;
3826
+ let o = {
3827
+ input: t.args,
3828
+ response: i,
3829
+ startTimestamp: n,
3830
+ endTimestamp: r
3831
+ }, s = {
3832
+ category: "fetch",
3833
+ data: a,
3834
+ type: "http",
3835
+ level: lo(a.status_code)
3836
+ };
3837
+ e.emit("beforeOutgoingRequestBreadcrumb", s, o), X(s, o);
3838
+ }
3839
+ };
3840
+ }
3841
+ function Ls(e) {
3842
+ return function(t) {
3843
+ if (B() !== e) return;
3844
+ let n = t.from, r = t.to, i = Ca(Z.location.href), a = n ? Ca(n) : void 0, o = Ca(r);
3845
+ a?.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), X({
3846
+ category: "navigation",
3847
+ data: {
3848
+ from: n,
3849
+ to: r
3850
+ }
3851
+ });
3852
+ };
3853
+ }
3854
+ function Rs(e) {
3855
+ return !!e && !!e.target;
3856
+ }
3857
+ //#endregion
3858
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js
3859
+ var zs = /* @__PURE__ */ "EventTarget.Window.Node.ApplicationCache.AudioTrackList.BroadcastChannel.ChannelMergerNode.CryptoOperation.EventSource.FileReader.HTMLUnknownElement.IDBDatabase.IDBRequest.IDBTransaction.KeyOperation.MediaController.MessagePort.ModalWindow.Notification.SVGElementInstance.Screen.SharedWorker.TextTrack.TextTrackCue.TextTrackList.WebSocket.WebSocketWorker.Worker.XMLHttpRequest.XMLHttpRequestEventTarget.XMLHttpRequestUpload".split("."), Bs = "BrowserApiErrors", Vs = Y(((e = {}) => {
3860
+ let t = {
3861
+ XMLHttpRequest: !0,
3862
+ eventTarget: !0,
3863
+ requestAnimationFrame: !0,
3864
+ setInterval: !0,
3865
+ setTimeout: !0,
3866
+ unregisterOriginalCallbacks: !1,
3867
+ ...e
3868
+ };
3869
+ return {
3870
+ name: Bs,
3871
+ setupOnce() {
3872
+ t.setTimeout && O(Z, "setTimeout", Hs), t.setInterval && O(Z, "setInterval", Hs), t.requestAnimationFrame && O(Z, "requestAnimationFrame", Us), t.XMLHttpRequest && "XMLHttpRequest" in Z && O(XMLHttpRequest.prototype, "send", Ws);
3873
+ let e = t.eventTarget;
3874
+ e && (Array.isArray(e) ? e : zs).forEach((e) => Gs(e, t));
3875
+ }
3876
+ };
3877
+ }));
3878
+ function Hs(e) {
3879
+ return function(...t) {
3880
+ let n = t[0];
3881
+ return t[0] = Q(n, { mechanism: {
3882
+ handled: !1,
3883
+ type: `auto.browser.browserapierrors.${x(e)}`
3884
+ } }), e.apply(this, t);
3885
+ };
3886
+ }
3887
+ function Us(e) {
3888
+ return function(t) {
3889
+ return e.apply(this, [Q(t, { mechanism: {
3890
+ data: { handler: x(e) },
3891
+ handled: !1,
3892
+ type: "auto.browser.browserapierrors.requestAnimationFrame"
3893
+ } })]);
3894
+ };
3895
+ }
3896
+ function Ws(e) {
3897
+ return function(...t) {
3898
+ let n = this;
3899
+ return [
3900
+ "onload",
3901
+ "onerror",
3902
+ "onprogress",
3903
+ "onreadystatechange"
3904
+ ].forEach((e) => {
3905
+ e in n && typeof n[e] == "function" && O(n, e, function(t) {
3906
+ let n = { mechanism: {
3907
+ data: { handler: x(t) },
3908
+ handled: !1,
3909
+ type: `auto.browser.browserapierrors.xhr.${e}`
3910
+ } }, r = et(t);
3911
+ return r && (n.mechanism.data.handler = x(r)), Q(t, n);
3912
+ });
3913
+ }), e.apply(this, t);
3914
+ };
3915
+ }
3916
+ function Gs(e, t) {
3917
+ let n = Z[e]?.prototype;
3918
+ n?.hasOwnProperty?.("addEventListener") && (O(n, "addEventListener", function(n) {
3919
+ return function(r, i, a) {
3920
+ try {
3921
+ Ks(i) && (i.handleEvent = Q(i.handleEvent, { mechanism: {
3922
+ data: {
3923
+ handler: x(i),
3924
+ target: e
3925
+ },
3926
+ handled: !1,
3927
+ type: "auto.browser.browserapierrors.handleEvent"
3928
+ } }));
3929
+ } catch {}
3930
+ return t.unregisterOriginalCallbacks && qs(this, r, i), n.apply(this, [
3931
+ r,
3932
+ Q(i, { mechanism: {
3933
+ data: {
3934
+ handler: x(i),
3935
+ target: e
3936
+ },
3937
+ handled: !1,
3938
+ type: "auto.browser.browserapierrors.addEventListener"
3939
+ } }),
3940
+ a
3941
+ ]);
3942
+ };
3943
+ }), O(n, "removeEventListener", function(e) {
3944
+ return function(t, n, r) {
3945
+ try {
3946
+ let i = n.__sentry_wrapped__;
3947
+ i && e.call(this, t, i, r);
3948
+ } catch {}
3949
+ return e.call(this, t, n, r);
3950
+ };
3951
+ }));
3952
+ }
3953
+ function Ks(e) {
3954
+ return typeof e.handleEvent == "function";
3955
+ }
3956
+ function qs(e, t, n) {
3957
+ e && typeof e == "object" && "removeEventListener" in e && typeof e.removeEventListener == "function" && e.removeEventListener(t, n);
3958
+ }
3959
+ //#endregion
3960
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js
3961
+ var Js = Y((e = {}) => {
3962
+ let t = e.lifecycle ?? "route";
3963
+ return {
3964
+ name: "BrowserSession",
3965
+ setupOnce() {
3966
+ if (Z.document === void 0) {
3967
+ gs && b.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
3968
+ return;
3969
+ }
3970
+ hi({ ignoreDuration: !0 }), vi();
3971
+ let e = z(), n = e.getUser();
3972
+ e.addScopeListener((e) => {
3973
+ let t = e.getUser();
3974
+ (n?.id !== t?.id || n?.ip_address !== t?.ip_address) && (vi(), n = t);
3975
+ }), t === "route" && is(({ from: e, to: t }) => {
3976
+ e !== t && (hi({ ignoreDuration: !0 }), vi());
3977
+ });
3978
+ }
3979
+ };
3980
+ }), Ys = "CultureContext", Xs = Y((() => ({
3981
+ name: Ys,
3982
+ preprocessEvent(e) {
3983
+ let t = Zs();
3984
+ t && (e.contexts = {
3985
+ ...e.contexts,
3986
+ culture: {
3987
+ ...t,
3988
+ ...e.contexts?.culture
3989
+ }
3990
+ });
3991
+ }
3992
+ })));
3993
+ function Zs() {
3994
+ try {
3995
+ let e = Z.Intl;
3996
+ if (!e) return;
3997
+ let t = e.DateTimeFormat().resolvedOptions();
3998
+ return {
3999
+ locale: t.locale,
4000
+ timezone: t.timeZone,
4001
+ calendar: t.calendar
4002
+ };
4003
+ } catch {
4004
+ return;
4005
+ }
4006
+ }
4007
+ //#endregion
4008
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js
4009
+ var Qs = "GlobalHandlers", $s = Y(((e = {}) => {
4010
+ let t = {
4011
+ onerror: !0,
4012
+ onunhandledrejection: !0,
4013
+ ...e
4014
+ };
4015
+ return {
4016
+ name: Qs,
4017
+ setupOnce() {
4018
+ Error.stackTraceLimit = 50;
4019
+ },
4020
+ setup(e) {
4021
+ t.onerror && (ec(e), ac("onerror")), t.onunhandledrejection && (tc(e), ac("onunhandledrejection"));
4022
+ }
4023
+ };
4024
+ }));
4025
+ function ec(e) {
4026
+ De((t) => {
4027
+ let { stackParser: n, attachStacktrace: r } = oc();
4028
+ if (B() !== e || wo()) return;
4029
+ let { msg: i, url: a, line: o, column: s, error: c } = t, l = ic(zo(n, c || i, void 0, r, !1), a, o, s);
4030
+ l.level = "error", mi(l, {
4031
+ originalException: c,
4032
+ mechanism: {
4033
+ handled: !1,
4034
+ type: "auto.browser.global_handlers.onerror"
4035
+ }
4036
+ });
4037
+ });
4038
+ }
4039
+ function tc(e) {
4040
+ Ae((t) => {
4041
+ let { stackParser: n, attachStacktrace: r } = oc();
4042
+ if (B() !== e || wo()) return;
4043
+ let i = nc(t), a = Re(i) ? rc(i) : zo(n, i, void 0, r, !0);
4044
+ a.level = "error", mi(a, {
4045
+ originalException: i,
4046
+ mechanism: {
4047
+ handled: !1,
4048
+ type: "auto.browser.global_handlers.onunhandledrejection"
4049
+ }
4050
+ });
4051
+ });
4052
+ }
4053
+ function nc(e) {
4054
+ if (Re(e)) return e;
4055
+ try {
4056
+ if ("reason" in e) return e.reason;
4057
+ if ("detail" in e && "reason" in e.detail) return e.detail.reason;
4058
+ } catch {}
4059
+ return e;
4060
+ }
4061
+ function rc(e) {
4062
+ return { exception: { values: [{
4063
+ type: "UnhandledRejection",
4064
+ value: `Non-Error promise rejection captured with value: ${String(e)}`
4065
+ }] } };
4066
+ }
4067
+ function ic(e, t, n, r) {
4068
+ let i = e.exception = e.exception || {}, a = i.values = i.values || [], o = a[0] = a[0] || {}, s = o.stacktrace = o.stacktrace || {}, c = s.frames = s.frames || [], l = r, u = n, d = sc(t) ?? Ze();
4069
+ return c.length === 0 && c.push({
4070
+ colno: l,
4071
+ filename: d,
4072
+ function: "?",
4073
+ in_app: !0,
4074
+ lineno: u
4075
+ }), e;
4076
+ }
4077
+ function ac(e) {
4078
+ gs && b.log(`Global Handler attached: ${e}`);
4079
+ }
4080
+ function oc() {
4081
+ return B()?.getOptions() || {
4082
+ stackParser: () => [],
4083
+ attachStacktrace: !1
4084
+ };
4085
+ }
4086
+ function sc(e) {
4087
+ if (!(!E(e) || e.length === 0)) return e.startsWith("data:") ? `<${wa(e, !1)}>` : e;
4088
+ }
4089
+ //#endregion
4090
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js
4091
+ var cc = Y(() => ({
4092
+ name: "HttpContext",
4093
+ preprocessEvent(e) {
4094
+ if (!Z.navigator && !Z.location && !Z.document) return;
4095
+ let t = Eo(), n = {
4096
+ ...t.headers,
4097
+ ...e.request?.headers
4098
+ };
4099
+ e.request = {
4100
+ ...t,
4101
+ ...e.request,
4102
+ headers: n
4103
+ };
4104
+ }
4105
+ })), lc = "cause", uc = 5, dc = "LinkedErrors", fc = Y(((e = {}) => {
4106
+ let t = e.limit || uc, n = e.key || lc;
4107
+ return {
4108
+ name: dc,
4109
+ preprocessEvent(e, r, i) {
4110
+ Ga(Do, i.getOptions().stackParser, n, t, e, r);
4111
+ }
4112
+ };
4113
+ }));
4114
+ //#endregion
4115
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js
4116
+ function pc() {
4117
+ return mc() ? (gs && y(() => {
4118
+ console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");
4119
+ }), !0) : !1;
4120
+ }
4121
+ function mc() {
4122
+ if (Z.window === void 0) return !1;
4123
+ let e = Z;
4124
+ if (e.nw || !(e.chrome || e.browser)?.runtime?.id) return !1;
4125
+ let t = Ze();
4126
+ return !(Z === Z.top && [
4127
+ "chrome-extension",
4128
+ "moz-extension",
4129
+ "ms-browser-extension",
4130
+ "safari-web-extension"
4131
+ ].some((e) => t.startsWith(`${e}://`)));
4132
+ }
4133
+ //#endregion
4134
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/sdk.js
4135
+ function hc(e) {
4136
+ return [
4137
+ Fa(),
4138
+ ja(),
4139
+ co(),
4140
+ Vs(),
4141
+ js(),
4142
+ $s(),
4143
+ fc(),
4144
+ eo(),
4145
+ cc(),
4146
+ Xs(),
4147
+ Js()
4148
+ ];
4149
+ }
4150
+ function gc(e = {}) {
4151
+ let t = !e.skipBrowserExtensionCheck && pc(), n = e.defaultIntegrations == null ? hc() : e.defaultIntegrations;
4152
+ return xa(Wo, {
4153
+ ...e,
4154
+ enabled: t ? !1 : e.enabled,
4155
+ stackParser: ve(e.stackParser || Ds),
4156
+ integrations: Ei({
4157
+ integrations: e.integrations,
4158
+ defaultIntegrations: n
4159
+ }),
4160
+ transport: e.transport || hs
4161
+ });
4162
+ }
4163
+ //#endregion
4164
+ //#region ../../node_modules/.pnpm/@sentry+vue@10.45.0_pinia@3.0.4_typescript@5.9.3_vue@3.5.30_typescript@5.9.3___vue@3.5.30_typescript@5.9.3_/node_modules/@sentry/vue/build/esm/constants.js
4165
+ var _c = ["activate", "mount"], vc = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, yc = /(?:^|[-_])(\w)/g, bc = (e) => e.replace(yc, (e) => e.toUpperCase()).replace(/[-_]/g, ""), xc = "<Root>", Sc = "<Anonymous>", Cc = (e, t) => e.repeat(t), wc = (e, t) => {
4166
+ if (!e) return Sc;
4167
+ if (e.$root === e) return xc;
4168
+ if (!e.$options) return Sc;
4169
+ let n = e.$options, r = n.name || n._componentTag || n.__name, i = n.__file;
4170
+ if (!r && i) {
4171
+ let e = i.match(/([^/\\]+)\.vue$/);
4172
+ e && (r = e[1]);
4173
+ }
4174
+ return (r ? `<${bc(r)}>` : Sc) + (i && t !== !1 ? ` at ${i}` : "");
4175
+ }, Tc = (e) => {
4176
+ if (e && (e._isVue || e.__isVue) && e.$parent) {
4177
+ let t = [], n = 0;
4178
+ for (; e;) {
4179
+ if (t.length > 0) {
4180
+ let r = t[t.length - 1];
4181
+ if (r.constructor === e.constructor) {
4182
+ n++, e = e.$parent;
4183
+ continue;
4184
+ } else n > 0 && (t[t.length - 1] = [r, n], n = 0);
4185
+ }
4186
+ t.push(e), e = e.$parent;
4187
+ }
4188
+ return `\n\nfound in\n\n${t.map((e, t) => `${(t === 0 ? "---> " : Cc(" ", 5 + t * 2)) + (Array.isArray(e) ? `${wc(e[0])}... (${e[1]} recursive calls)` : wc(e))}`).join("\n")}`;
4189
+ }
4190
+ return `\n\n(found in ${wc(e)})`;
4191
+ }, Ec = (e, t) => {
4192
+ let { errorHandler: n } = e.config;
4193
+ e.config.errorHandler = (r, i, a) => {
4194
+ let o = {
4195
+ componentName: wc(i, !1),
4196
+ lifecycleHook: a,
4197
+ trace: i ? Tc(i) : ""
4198
+ };
4199
+ if (t?.attachProps !== !1 && i && (i.$options?.propsData ? o.propsData = i.$options.propsData : i.$props && (o.propsData = i.$props)), setTimeout(() => {
4200
+ pi(r, {
4201
+ captureContext: { contexts: { vue: o } },
4202
+ mechanism: {
4203
+ handled: !!n,
4204
+ type: "auto.function.vue.error_handler"
4205
+ }
4206
+ });
4207
+ }), typeof n == "function" && e.config.errorHandler) n.call(e, r, i, a);
4208
+ else throw r;
4209
+ };
4210
+ }, Dc = "ui.vue", Oc = {
4211
+ activate: ["activated", "deactivated"],
4212
+ create: ["beforeCreate", "created"],
4213
+ unmount: ["beforeUnmount", "unmounted"],
4214
+ destroy: ["beforeDestroy", "destroyed"],
4215
+ mount: ["beforeMount", "mounted"],
4216
+ update: ["beforeUpdate", "updated"]
4217
+ };
4218
+ function kc(e, t, n) {
4219
+ e.$_sentryRootComponentSpanTimer && clearTimeout(e.$_sentryRootComponentSpanTimer), e.$_sentryRootComponentSpanTimer = setTimeout(() => {
4220
+ e.$root?.$_sentryRootComponentSpan && (e.$root.$_sentryRootComponentSpan.end(t), e.$root.$_sentryRootComponentSpan = void 0);
4221
+ }, n);
4222
+ }
4223
+ function Ac(e, t) {
4224
+ function n(e) {
4225
+ return e.replace(/^<([^\s]*)>(?: at [^\s]*)?$/, "$1");
4226
+ }
4227
+ return e.some((e) => n(t) === n(e));
4228
+ }
4229
+ var jc = (e = {}) => {
4230
+ let t = (e.hooks || []).concat(_c).filter((e, t, n) => n.indexOf(e) === t), n = {}, r = e.timeout || 2e3;
4231
+ for (let i of t) {
4232
+ let t = Oc[i];
4233
+ if (!t) {
4234
+ vc && b.warn(`Unknown hook: ${i}`);
4235
+ continue;
4236
+ }
4237
+ for (let a of t) n[a] = function() {
4238
+ let n = this.$root === this;
4239
+ n && (this.$_sentryRootComponentSpan = this.$_sentryRootComponentSpan || Or({
4240
+ name: "Application Render",
4241
+ op: `${Dc}.render`,
4242
+ attributes: { "sentry.origin": "auto.ui.vue" },
4243
+ onlyIfParent: !0
4244
+ }), kc(this, P(), r));
4245
+ let o = wc(this, !1);
4246
+ if (!(n || (Array.isArray(e.trackComponents) ? Ac(e.trackComponents, o) : e.trackComponents))) {
4247
+ kc(this, P(), r);
4248
+ return;
4249
+ }
4250
+ this.$_sentryComponentSpans = this.$_sentryComponentSpans || {};
4251
+ let s = a === t[0], c = this.$root?.$_sentryRootComponentSpan || Nn();
4252
+ if (s) {
4253
+ if (c) {
4254
+ let e = this.$_sentryComponentSpans[i];
4255
+ e && e.end(), this.$_sentryComponentSpans[i] = Or({
4256
+ name: `Vue ${o}`,
4257
+ op: `${Dc}.${i}`,
4258
+ attributes: { [qt]: "auto.ui.vue" },
4259
+ onlyIfParent: !0
4260
+ });
4261
+ }
4262
+ } else {
4263
+ let e = this.$_sentryComponentSpans[i];
4264
+ if (!e) return;
4265
+ e.end(), kc(this, P(), r);
4266
+ }
4267
+ };
4268
+ }
4269
+ return n;
4270
+ }, Mc = {
4271
+ Vue: g.Vue,
4272
+ attachProps: !0,
4273
+ attachErrorHandler: !0,
4274
+ tracingOptions: {
4275
+ hooks: _c,
4276
+ timeout: 2e3,
4277
+ trackComponents: !1
4278
+ }
4279
+ }, Nc = "Vue", Pc = Y((e = {}) => ({
4280
+ name: Nc,
4281
+ setup(t) {
4282
+ let n = {
4283
+ ...Mc,
4284
+ ...t.getOptions(),
4285
+ ...e
4286
+ };
4287
+ if (!n.Vue && !n.app) {
4288
+ y(() => {
4289
+ console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).");
4290
+ });
4291
+ return;
4292
+ }
4293
+ n.app ? (Array.isArray(n.app) ? n.app : [n.app]).forEach((e) => Fc(e, n)) : n.Vue && Fc(n.Vue, n);
4294
+ }
4295
+ })), Fc = (e, t) => {
4296
+ vc && e._instance?.isMounted === !0 && y(() => {
4297
+ console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.");
4298
+ }), t.attachErrorHandler && Ec(e, t), Fn(t) && e.mixin(jc(t.tracingOptions));
4299
+ };
4300
+ //#endregion
4301
+ //#region ../../node_modules/.pnpm/@sentry+vue@10.45.0_pinia@3.0.4_typescript@5.9.3_vue@3.5.30_typescript@5.9.3___vue@3.5.30_typescript@5.9.3_/node_modules/@sentry/vue/build/esm/sdk.js
4302
+ function Ic(e = {}) {
4303
+ let t = {
4304
+ defaultIntegrations: [...hc(e), Pc()],
4305
+ ...e
4306
+ };
4307
+ return Ea(t, "vue"), gc(t);
4308
+ }
4309
+ async function Lc(e, t = {}, n) {
4310
+ return window.__TAURI_INTERNALS__.invoke(e, t, n);
4311
+ }
4312
+ //#endregion
4313
+ //#region ../../node_modules/.pnpm/tauri-plugin-sentry-api@0.5.0/node_modules/tauri-plugin-sentry-api/dist/index.js
4314
+ var Rc = !1;
4315
+ function zc(e) {
4316
+ return Ji(e, async (e) => {
4317
+ if (Rc) return { statusCode: 200 };
4318
+ try {
4319
+ await Lc("plugin:sentry|envelope", { envelope: e.body });
4320
+ } catch (e) {
4321
+ console.error("Failed to send envelope to Rust:", e), Rc = !0;
4322
+ }
4323
+ return { statusCode: 200 };
4324
+ });
4325
+ }
4326
+ function Bc(e) {
4327
+ return Rc || typeof e.data?.url == "string" && (e.data.url.startsWith("ipc://") || e.data.url.match(/^https?:\/\/ipc\.localhost/)) || Lc("plugin:sentry|breadcrumb", { breadcrumb: e }).catch((e) => {
4328
+ console.error("Failed to send breadcrumb to Rust:", e), Rc = !0;
4329
+ }), null;
4330
+ }
4331
+ var Vc = {
4332
+ dsn: "https://123456@dummy.dsn/0",
4333
+ integrations: (e) => e.filter((e) => e.name !== "BrowserSession"),
4334
+ transport: zc,
4335
+ beforeBreadcrumb: Bc
4336
+ }, Hc = (e) => {
4337
+ Ic({
4338
+ ...Vc,
4339
+ app: e,
4340
+ sendDefaultPii: !0
4341
+ });
4342
+ };
4343
+ //#endregion
4344
+ export { p as SharedFunction, Hc as initSentry, ee as useFullscreen, o as useTemp };
102
4345
 
103
4346
  //# sourceMappingURL=index.js.map