1//#region ../node_modules/@sentry/core/build/esm/debug-build.js 2(function() { 3 try { 4 var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; 5 e.SENTRY_RELEASE = { id: "[email protected]" }; 6 var t = new e.Error().stack; 7 t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6cc47139-997d-4ab9-a8b8-660ed153472b", e._sentryDebugIdIdentifier = "sentry-dbid-6cc47139-997d-4ab9-a8b8-660ed153472b"); 8 } catch {} 9})(); 10var e = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, t = globalThis, n = "11.1.0"; 11//#endregion 12//#region ../node_modules/@sentry/core/build/esm/carrier.js 13function r() { 14 return i(t), t; 15} 16function i(e) { 17 let t = e.__SENTRY__ = e.__SENTRY__ || {}; 18 return t.version = t.version || "11.1.0", t[n] = t["11.1.0"] || {}; 19} 20function a(e, r, i = t) { 21 let a = i.__SENTRY__ = i.__SENTRY__ || {}, o = a[n] = a["11.1.0"] || {}; 22 return o[e] || (o[e] = r()); 23} 24//#endregion 25//#region ../node_modules/@sentry/core/build/esm/utils/debug-logger.js 26var o = [ 27 "debug", 28 "info", 29 "warn", 30 "error", 31 "log", 32 "assert", 33 "trace" 34], s = "Sentry Logger ", c = {}; 35function l(e) { 36 if (!("console" in t)) return e(); 37 let n = t.console, r = {}, i = Object.keys(c); 38 i.forEach((e) => { 39 let t = c[e]; 40 r[e] = n[e], n[e] = t; 41 }); 42 try { 43 return e(); 44 } finally { 45 i.forEach((e) => { 46 n[e] = r[e]; 47 }); 48 } 49} 50function u() { 51 _().enabled = !0; 52} 53function d() { 54 _().enabled = !1; 55} 56function f() { 57 return _().enabled; 58} 59function p(...e) { 60 g("log", ...e); 61} 62function m(...e) { 63 g("warn", ...e); 64} 65function h(...e) { 66 g("error", ...e); 67} 68function g(n, ...r) { 69 e && f() && l(() => { 70 t.console[n](`${s}[${n}]:`, ...r); 71 }); 72} 73function _() { 74 return e ? a("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 }; 75} 76var v = { 77 enable: u, 78 disable: d, 79 isEnabled: f, 80 log: p, 81 warn: m, 82 error: h 83}, ee = 50, te = /\(error: (.*)\)/, ne = /captureMessage|captureException/; 84function re(...e) { 85 let t = e.sort((e, t) => e[0] - t[0]).map((e) => e[1]); 86 return (e, n = 0, r = 0) => { 87 let i = [], a = e.split("\n"); 88 for (let e = n; e < a.length; e++) { 89 let n = a[e]; 90 n.length > 1024 && (n = n.slice(0, 1024)); 91 let o = te.test(n) ? n.replace(te, "$1") : n; 92 if (!o.includes("Error: ")) { 93 for (let e of t) { 94 let t = e(o); 95 if (t) { 96 i.push(t); 97 break; 98 } 99 } 100 if (i.length >= ee + r) break; 101 } 102 } 103 return ae(i.slice(r)); 104 }; 105} 106function ie(e) { 107 return Array.isArray(e) ? re(...e) : e; 108} 109function ae(e) { 110 if (!e.length) return []; 111 let t = Array.from(e); 112 return /sentryWrapped/.test(y(t).function || "") && t.pop(), t.reverse(), ne.test(y(t).function || "") && (t.pop(), ne.test(y(t).function || "") && t.pop()), t.slice(0, ee).map((e) => ({ 113 ...e, 114 filename: e.filename || y(t).filename, 115 function: e.function || "?" 116 })); 117} 118function y(e) { 119 return e[e.length - 1] || {}; 120} 121var b = "<anonymous>"; 122function oe(e) { 123 try { 124 return !e || typeof e != "function" ? b : e.name || b; 125 } catch { 126 return b; 127 } 128} 129function se(e) { 130 let t = e.exception; 131 if (t) { 132 let e = []; 133 try { 134 return t.values.forEach((t) => { 135 t.stacktrace.frames && e.push(...t.stacktrace.frames); 136 }), e; 137 } catch { 138 return; 139 } 140 } 141} 142//#endregion 143//#region ../node_modules/@sentry/core/build/esm/utils/is.js 144var ce = Object.prototype.toString; 145function le(e) { 146 switch (ce.call(e)) { 147 case "[object Error]":
148 case "[object Exception]": 149 case "[object DOMException]": 150 case "[object WebAssembly.Exception]": return !0; 151 default: return T(e, Error); 152 } 153} 154function x(e, t) { 155 return ce.call(e) === `[object ${t}]`; 156} 157function ue(e) { 158 return x(e, "ErrorEvent"); 159} 160function de(e) { 161 return x(e, "DOMError"); 162} 163function fe(e) { 164 return x(e, "DOMException"); 165} 166function S(e) { 167 return x(e, "String"); 168} 169function pe(e) { 170 return typeof e == "object" && !!e && "__sentry_template_string__" in e && "__sentry_template_values__" in e; 171} 172function C(e) { 173 return e === null || pe(e) || typeof e != "object" && typeof e != "function"; 174} 175function me(e) { 176 return x(e, "Object"); 177} 178function he(e) { 179 return typeof e == "object" && !!e; 180} 181function ge(e) { 182 return typeof Event < "u" && T(e, Event); 183} 184function _e(e) { 185 return x(e, "RegExp"); 186} 187function w(e) { 188 return !!(e?.then && typeof e.then == "function"); 189} 190function T(e, t) { 191 try { 192 return e instanceof t; 193 } catch { 194 return !1; 195 } 196} 197function ve(e) { 198 return typeof Request < "u" && T(e, Request); 199} 200//#endregion 201//#region ../node_modules/@sentry/core/build/esm/utils/object.js 202function ye(t, n, r) { 203 if (!(n in t)) return; 204 let i = t[n]; 205 if (typeof i != "function") return; 206 let a = r(i); 207 typeof a == "function" && be(a, i); 208 try { 209 t[n] = a; 210 } catch { 211 e && v.log(`Failed to replace method "${n}" in object`, t); 212 } 213} 214function E(t, n, r) { 215 try { 216 Object.defineProperty(t, n, { 217 value: r, 218 writable: !0, 219 configurable: !0 220 }); 221 } catch { 222 e && v.log(`Failed to add non-enumerable property "${String(n)}" to object`, t); 223 } 224} 225function be(e, t) { 226 try { 227 e.prototype = t.prototype = t.prototype || {}, E(e, "__sentry_original__", t); 228 } catch {} 229} 230function xe(e) { 231 return e.__sentry_original__; 232} 233function Se(e) { 234 if (le(e)) return { 235 message: e.message, 236 name: e.name, 237 stack: e.stack, 238 ...Ce(e) 239 }; 240 if (ge(e)) { 241 let { type: t, target: n, currentTarget: r, detail: i } = e; 242 return { 243 type: t, 244 target: n, 245 currentTarget: r, 246 ...i ? { detail: i } : {}, 247 ...Ce(e) 248 }; 249 } 250 return e; 251} 252function Ce(e) { 253 return he(e) ? Object.fromEntries(Object.entries(e)) : {}; 254} 255function we(e) { 256 let t = Object.keys(Se(e)); 257 return t.sort(), t[0] ? t.join(", ") : "[object has no keys]"; 258} 259//#endregion 260//#region ../node_modules/@sentry/core/build/esm/utils/randomSafeContext.js 261var D; 262function O(e) { 263 if (D !== void 0) return D ? D(e) : e(); 264 let n = /* @__PURE__ */ Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), r = t; 265 return n in r && typeof r[n] == "function" ? (D = r[n], D(e)) : (D = null, e()); 266} 267function k() { 268 return O(() => Math.random()); 269} 270function A() { 271 return O(() => Date.now()); 272} 273//#endregion 274//#region ../node_modules/@sentry/core/build/esm/utils/normalizationHints.js 275var Te = /* @__PURE__ */ Symbol.for("sentry.skipNormalization"), Ee = /* @__PURE__ */ Symbol.for("sentry.overrideNormalizationDepth"); 276function De(e) { 277 return !!e[Te]; 278} 279function Oe(e) { 280 let t = e[Ee]; 281 return typeof t == "number" ? t : void 0; 282} 283//#endregion 284//#region ../node_modules/@sentry/core/build/esm/utils/normalize.js 285var j; 286function ke(e) { 287 j = e; 288} 289function M(e, t = 100, n = Infinity) { 290 try { 291 return N("", e, t, n); 292 } catch (e) { 293 return { ERROR: `**non-serializable** (${e})` }; 294 } 295} 296function Ae(e, t = 3, n = 102400) { 297 let r = M(e, t); 298 return Pe(r) > n ? Ae(e, t - 1, n) : r; 299} 300function N(e, t, n = Infinity, r = Infinity, i = Fe()) { 301 let [a, o] = i; 302 if (t == null || ["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t)) return t; 303 let s = je(e, t); 304 if (!s.startsWith("[object ")) return s; 305 if (De(t)) return t; 306 let c = Oe(t), l = c === void 0 ? n : c; 307 if (l === 0) return s.replace("object ", ""); 308 if (a(t)) return "[Circular ~]"; 309 let u = t; 310 if (u && typeof u.toJSON == "function") try { 311 return N("", u.toJSON(), l - 1, r, i); 312 } catch {} 313 let d = Array.isArray(t) ? [] : {}, f = 0, p = Se(t); 314 for (let e in p) { 315 if (!Object.prototype.hasOwnProperty.call(p, e)) continue; 316 if (f >= r) { 317 d[e] = "[MaxProperties ~]"; 318 break; 319 } 320 let t = p[e]; 321 d[e] = N(e, t, l - 1, r, i), f++; 322 } 323 return o(t), d; 324} 325function je(e, t) { 326 try { 327 if (j) { 328 let e = j(t); 329 if (e) return e; 330 } 331 return typeof global < "u" && t === global ? "[Global]" : typeof t == "number" && !Number.isFinite(t) ? `[${t}]` : typeof t == "function" ? `[Function: ${oe(t)}]` : typeof t == "symbol" ? `[${String(t)}]` : typeof t == "bigint" ? `[BigInt: ${String(t)}]` : `[object ${Me(t)}]`; 332 } catch (e) { 333 return `**non-serializable** (${e})`; 334 } 335} 336function Me(e) { 337 let t = Object.getPrototypeOf(e); 338 return t?.constructor ? t.constructor.name : "null prototype"; 339} 340function Ne(e) { 341 return ~-encodeURI(e).split(/%..|./).length; 342} 343function Pe(e) { 344 return Ne(JSON.stringify(e)); 345} 346function Fe() { 347 let e = /* @__PURE__ */ new WeakSet(); 348 function t(t) { 349 return e.has(t) ? !0 : (e.add(t), !1); 350 } 351 function n(t) { 352 e.delete(t); 353 } 354 return [t, n]; 355} 356//#endregion 357//#region ../node_modules/@sentry/core/build/esm/utils/string.js 358function P(e, t = 0) { 359 return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`; 360} 361function Ie(e, t) { 362 if (!Array.isArray(e)) return ""; 363 let n = []; 364 for (let t = 0; t < e.length; t++) { 365 let r = e[t]; 366 C(r) ? n.push(String(r)) : r instanceof Error ? n.push(r.message ? `${r.name}: ${r.message}` : r.name) : n.push(je(void 0, r)); 367 } 368 return n.join(t); 369} 370function Le(e, t, n = !1) { 371 return S(e) ? _e(t) ? t.test(e) : S(t) ? n ? e === t : e.includes(t) : typeof t == "function" && t(e) : !1; 372} 373function Re(e, t = [], n = !1) { 374 for (let r of t) if (Le(e, r, n)) return !0; 375 return !1; 376} 377//#endregion 378//#region ../node_modules/@sentry/core/build/esm/utils/misc.js 379function ze() { 380 let e = t; 381 return e.crypto || e.msCrypto; 382} 383var Be; 384function Ve() { 385 return k() * 16; 386} 387function F(e = ze()) { 388 try { 389 if (e?.randomUUID) return O(() => e.randomUUID()).replace(/-/g, ""); 390 } catch {} 391 return Be ||= "10000000100040008000100000000000", Be.replace(/[018]/g, (e) => (e ^ (Ve() & 15) >> e / 4).toString(16)); 392} 393function He(e) { 394 return e.exception?.values?.[0]; 395} 396function Ue(e) { 397 let { message: t, event_id: n } = e; 398 if (t) return t; 399 let r = He(e); 400 return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"; 401} 402function We(e, t, n) { 403 let r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {}; 404 a.value ||= t || "", a.type ||= n || "Error"; 405} 406function Ge(e, t) { 407 let n = He(e); 408 n && qe(n, t); 409} 410function Ke(e, t) { 411 let n = e.exception?.values, r = n?.find((e) => e.mechanism?.exception_id === 0) ?? n?.[0]; 412 r && qe(r, t); 413} 414function qe(e, t) { 415 let n = { 416 type: "generic", 417 handled: !0 418 }, r = e.mechanism; 419 e.mechanism = { 420 ...n, 421 ...r, 422 ...t 423 }, t && "data" in t && (e.mechanism.data = { 424 ...r?.data, 425 ...t.data 426 }); 427} 428function Je(e) { 429 if (Ye(e)) return !0; 430 try { 431 E(e, "__sentry_captured__", !0); 432 } catch {} 433 return !1; 434} 435function Ye(e) { 436 try { 437 return e.__sentry_captured__; 438 } catch {} 439} 440//#endregion 441//#region ../node_modules/@sentry/core/build/esm/utils/time.js 442var Xe = 1e3; 443function I() { 444 return A() / Xe; 445} 446function Ze() { 447 let { performance: e } = t; 448 if (!e?.now || !e.timeOrigin) return I; 449 let n = e.timeOrigin; 450 return () => (n + O(() => e.now())) / Xe; 451} 452var Qe; 453function L() { 454 return (Qe ??= Ze())(); 455} 456//#endregion 457//#region ../node_modules/@sentry/core/build/esm/session.js 458function $e(e) { 459 let t = L(), n = { 460 sid: F(), 461 init: !0, 462 timestamp: t, 463 started: t, 464 duration: 0, 465 status: "ok", 466 errors: 0, 467 ignoreDuration: !1, 468 toJSON: () => tt(n) 469 }; 470 return e && R(n, e), n; 471} 472function R(e, t = {}) { 473 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 || L(), 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 : F()), 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; 474 else if (typeof t.duration == "number") e.duration = t.duration; 475 else { 476 let t = e.timestamp - e.started; 477 e.duration = t >= 0 ? t : 0; 478 } 479 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); 480} 481function et(e, t) { 482 let n = {}; 483 t ? n = { status: t } : e.status === "ok" && (n = { status: "exited" }), R(e, n); 484} 485function tt(e) { 486 return { 487 sid: `${e.sid}`, 488 init: e.init, 489 started: (/* @__PURE__ */ new Date(e.started * 1e3)).toISOString(), 490 timestamp: (/* @__PURE__ */ new Date(e.timestamp * 1e3)).toISOString(),
491 status: e.status, 492 errors: e.errors, 493 did: typeof e.did == "number" || typeof e.did == "string" ? `${e.did}` : void 0, 494 duration: e.duration, 495 abnormal_mechanism: e.abnormal_mechanism, 496 attrs: { 497 release: e.release, 498 environment: e.environment, 499 ip_address: e.ipAddress, 500 user_agent: e.userAgent 501 } 502 }; 503} 504//#endregion 505//#region ../node_modules/@sentry/core/build/esm/utils/merge.js 506function z(e, t, n = 2) { 507 if (!t || typeof t != "object" || n <= 0) return t; 508 if (e && Object.keys(t).length === 0) return e; 509 let r = { ...e }; 510 for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = z(r[e], t[e], n - 1)); 511 return r; 512} 513//#endregion 514//#region ../node_modules/@sentry/core/build/esm/utils/propagationContext.js 515function nt() { 516 return F(); 517} 518function rt() { 519 return F().substring(16); 520} 521//#endregion 522//#region ../node_modules/@sentry/core/build/esm/scope.js 523var it = 100, B = class t { 524 constructor() { 525 this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, E(this, "refs", {}), this._propagationContext = { 526 traceId: nt(), 527 sampleRand: k() 528 }; 529 } 530 clone() { 531 let e = new t(); 532 return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._attributes = { ...this._attributes }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, this._contexts.flags && (e._contexts.flags = { values: [...this._contexts.flags.values] }), e._user = this._user, e._level = this._level, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e._lastEventId = this._lastEventId, e._conversationId = this._conversationId, e.refs = { ...this.refs }, e; 533 } 534 setClient(e) { 535 this._client = e; 536 } 537 setLastEventId(e) { 538 this._lastEventId = e; 539 } 540 getClient() { 541 return this._client; 542 } 543 lastEventId() { 544 return this._lastEventId; 545 } 546 addScopeListener(e) { 547 this._scopeListeners.push(e); 548 } 549 addEventProcessor(e) { 550 return this._eventProcessors.push(e), this; 551 } 552 setUser(e) { 553 return this._user = e || { 554 email: void 0, 555 id: void 0, 556 ip_address: void 0, 557 username: void 0 558 }, this._session && R(this._session, { user: e }), this._notifyScopeListeners(), this; 559 } 560 getUser() { 561 return this._user; 562 } 563 setConversationId(e) { 564 return this._conversationId = e || void 0, this._notifyScopeListeners(), this; 565 } 566 setTags(e) { 567 return this._tags = { 568 ...this._tags, 569 ...e 570 }, this._notifyScopeListeners(), this; 571 } 572 setTag(e, t) { 573 return this.setTags({ [e]: t }); 574 } 575 setAttributes(e) { 576 return this._attributes = { 577 ...this._attributes, 578 ...e 579 }, this._notifyScopeListeners(), this; 580 } 581 setAttribute(e, t) { 582 return this.setAttributes({ [e]: t }); 583 } 584 removeAttribute(e) { 585 return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this; 586 } 587 setExtras(e) { 588 return this._extra = { 589 ...this._extra, 590 ...e 591 }, this._notifyScopeListeners(), this; 592 } 593 setExtra(e, t) { 594 return this._extra = { 595 ...this._extra, 596 [e]: t 597 }, this._notifyScopeListeners(), this; 598 } 599 setFingerprint(e) { 600 return this._fingerprint = e, this._notifyScopeListeners(), this; 601 } 602 setLevel(e) { 603 return this._level = e, this._notifyScopeListeners(), this; 604 } 605 setTransactionName(e) { 606 return this._transactionName = e, this._notifyScopeListeners(), this; 607 } 608 setContext(e, t) { 609 return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this; 610 } 611 setSession(e) { 612 return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this; 613 } 614 getSession() { 615 return this._session; 616 } 617 update(e) { 618 if (!e) return this; 619 let n = typeof e == "function" ? e(this) : e, { tags: r, attributes: i, extra: a, user: o, contexts: s, level: c, fingerprint: l = [], propagationContext: u, conversationId: d } = (n instanceof t ? n.getScopeData() : me(n) ? e : void 0) || {}; 620 return this._tags = { 621 ...this._tags, 622 ...r 623 }, this._attributes = { 624 ...this._attributes, 625 ...i 626 }, this._extra = { 627 ...this._extra, 628 ...a 629 }, this._contexts = { 630 ...this._contexts, 631 ...s 632 }, 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; 633 } 634 addBreadcrumb(e, t) { 635 let n = typeof t == "number" ? t : it; 636 if (n <= 0) return this; 637 let r = { 638 timestamp: I(), 639 ...e, 640 message: e.message ? P(e.message, 2048) : e.message 641 }; 642 return this._breadcrumbs.push(r), this._breadcrumbs.length > n && (this._breadcrumbs = this._breadcrumbs.slice(-n)), this._notifyScopeListeners(), this; 643 } 644 getLastBreadcrumb() { 645 return this._breadcrumbs[this._breadcrumbs.length - 1]; 646 } 647 clearBreadcrumbs() { 648 return this._breadcrumbs = [], this._notifyScopeListeners(), this; 649 } 650 addAttachment(e) { 651 return this._attachments.push(e), this; 652 } 653 clearAttachments() { 654 return this._attachments = [], this; 655 } 656 getScopeData() { 657 return { 658 breadcrumbs: this._breadcrumbs, 659 attachments: this._attachments, 660 contexts: this._contexts, 661 tags: this._tags, 662 attributes: this._attributes, 663 extra: this._extra, 664 user: this._user, 665 level: this._level, 666 fingerprint: this._fingerprint || [], 667 eventProcessors: this._eventProcessors, 668 propagationContext: this._propagationContext, 669 sdkProcessingMetadata: this._sdkProcessingMetadata, 670 transactionName: this._transactionName, 671 conversationId: this._conversationId 672 }; 673 } 674 setSDKProcessingMetadata(e) { 675 return this._sdkProcessingMetadata = z(this._sdkProcessingMetadata, e, 2), this; 676 } 677 setPropagationContext(e) { 678 return this._propagationContext = e, this; 679 } 680 getPropagationContext() { 681 return this._propagationContext; 682 } 683 captureException(t, n) { 684 let r = n?.event_id || F(); 685 if (!this._client) return e && v.warn("No client configured on scope - will not capture exception!"), r; 686 let i = /* @__PURE__ */ Error("Sentry syntheticException"); 687 return this._client.captureException(t, { 688 originalException: t, 689 syntheticException: i, 690 ...n, 691 event_id: r 692 }, this), r; 693 } 694 captureMessage(t, n, r) { 695 let i = r?.event_id || F(); 696 if (!this._client) return e && v.warn("No client configured on scope - will not capture message!"), i; 697 let a = r?.syntheticException ?? Error(t); 698 return this._client.captureMessage(t, n, { 699 originalException: t, 700 syntheticException: a, 701 ...r, 702 event_id: i 703 }, this), i; 704 } 705 captureEvent(t, n) { 706 let r = t.event_id || n?.event_id || F(); 707 return this._client ? (this._client.captureEvent(t, { 708 ...n, 709 event_id: r 710 }, this), r) : (e && v.warn("No client configured on scope - will not capture event!"), r); 711 } 712 _notifyScopeListeners() { 713 this._notifyingListeners ||= (this._notifyingListeners = !0, this._scopeListeners.forEac
713h((e) => { 714 e(this); 715 }), !1); 716 } 717}; 718//#endregion 719//#region ../node_modules/@sentry/core/build/esm/defaultScopes.js 720function at() { 721 return a("defaultCurrentScope", () => new B()); 722} 723function ot() { 724 return a("defaultIsolationScope", () => new B()); 725} 726//#endregion 727//#region ../node_modules/@sentry/core/build/esm/tracing/constants.js 728var st = "__SENTRY_SUPPRESS_TRACING__", ct = (e) => e instanceof Promise && !e[lt], lt = /* @__PURE__ */ Symbol("chained PromiseLike"), ut = (e, t, n) => { 729 let r = e.then((e) => (t(e), e), (e) => { 730 throw n(e), e; 731 }); 732 return ct(r) && ct(e) ? r : dt(e, r); 733}, dt = (e, t) => { 734 if (!t) return e; 735 let n = !1; 736 for (let r in e) { 737 if (r in t) continue; 738 n = !0; 739 let i = e[r]; 740 typeof i == "function" ? Object.defineProperty(t, r, { 741 value: (...t) => i.apply(e, t), 742 enumerable: !0, 743 configurable: !0, 744 writable: !0 745 }) : t[r] = i; 746 } 747 return n && Object.assign(t, { [lt]: !0 }), t; 748}, ft = class { 749 constructor(e, t) { 750 let n; 751 n = e || new B(); 752 let r; 753 r = t || new B(), this._stack = [{ scope: n }], this._isolationScope = r; 754 } 755 withScope(e) { 756 let t = this._pushScope(), n; 757 try { 758 n = e(t); 759 } catch (e) { 760 throw this._popScope(), e; 761 } 762 return w(n) ? ut(n, () => this._popScope(), () => this._popScope()) : (this._popScope(), n); 763 } 764 getClient() { 765 return this.getStackTop().client; 766 } 767 getScope() { 768 return this.getStackTop().scope; 769 } 770 getIsolationScope() { 771 return this._isolationScope; 772 } 773 getStackTop() { 774 return this._stack[this._stack.length - 1]; 775 } 776 _pushScope() { 777 let e = this.getScope().clone(); 778 return this._stack.push({ 779 client: this.getClient(), 780 scope: e 781 }), e; 782 } 783 _popScope() { 784 return this._stack.length <= 1 ? !1 : !!this._stack.pop(); 785 } 786}; 787function V() { 788 let e = i(r()); 789 return e.stack = e.stack || new ft(at(), ot()); 790} 791function pt(e) { 792 return V().withScope(e); 793} 794function mt(e, t) { 795 let n = V(); 796 return n.withScope(() => (n.getStackTop().scope = e, t(e))); 797} 798function ht(e) { 799 return V().withScope(() => e(V().getIsolationScope())); 800} 801function gt() { 802 return { 803 suppressTracing: _t, 804 withIsolationScope: ht, 805 withScope: pt, 806 withSetScope: mt, 807 withSetIsolationScope: (e, t) => ht(t), 808 getCurrentScope: () => V().getScope(), 809 getIsolationScope: () => V().getIsolationScope() 810 }; 811} 812function _t(e) { 813 return pt((t) => { 814 t.setSDKProcessingMetadata({ [st]: !0 }); 815 let n = e(); 816 return t.setSDKProcessingMetadata({ [st]: void 0 }), n; 817 }); 818} 819//#endregion 820//#region ../node_modules/@sentry/core/build/esm/asyncContext/index.js 821function H(e) { 822 let t = i(e); 823 return t.acs ? t.acs : gt(); 824} 825//#endregion 826//#region ../node_modules/@sentry/core/build/esm/attributes.js 827function vt(e) { 828 return typeof e == "object" && !!e && !Array.isArray(e) && Object.keys(e).includes("value"); 829} 830function yt(e, t) { 831 let { value: n, unit: r } = vt(e) ? e : { 832 value: e, 833 unit: void 0 834 }, i = xt(n), a = r && typeof r == "string" ? { unit: r } : {}; 835 if (i) return { 836 ...i, 837 ...a 838 }; 839 if (!t || t === "skip-undefined" && n === void 0) return; 840 let o = ""; 841 try { 842 o = JSON.stringify(n) ?? ""; 843 } catch {} 844 return { 845 value: o, 846 type: "string", 847 ...a 848 }; 849} 850function bt(e, t = !1) { 851 let n = {}; 852 for (let [r, i] of Object.entries(e ?? {})) { 853 let e = yt(i, t); 854 e && (n[r] = e); 855 } 856 return n; 857} 858function xt(e) { 859 if (Array.isArray(e)) return { 860 value: e, 861 type: "array" 862 }; 863 let t = typeof e == "string" ? "string" : typeof e == "boolean" ? "boolean" : typeof e == "number" && !Number.isNaN(e) ? Number.isInteger(e) ? "integer" : "double" : null; 864 if (t) return { 865 value: e, 866 type: t 867 }; 868} 869//#endregion 870//#region ../node_modules/@sentry/core/build/esm/currentScopes.js 871function St() { 872 return i(r()).externalPropagationContextProvider?.(); 873} 874function U() { 875 return H(r()).getCurrentScope(); 876} 877function W() { 878 return H(r()).getIsolationScope(); 879} 880function Ct() { 881 return a("globalScope", () => new B()); 882} 883function wt(...e) { 884 let t = H(r()); 885 if (e.length === 2) { 886 let [n, r] = e; 887 return n ? t.withSetScope(n, r) : t.withScope(r); 888 } 889 return t.withScope(e[0]); 890} 891function G() { 892 return U().getClient(); 893} 894function Tt(e) { 895 let t = St(); 896 if (t) return { 897 trace_id: t.traceId, 898 span_id: t.spanId 899 };
900 let { traceId: n, parentSpanId: r, propagationSpanId: i } = e.getPropagationContext(), a = { 901 trace_id: n, 902 span_id: i || rt() 903 }; 904 return r && (a.parent_span_id = r), a; 905} 906//#endregion 907//#region ../node_modules/@sentry/conventions/dist/attributes.mjs 908var Et = "http.request.header", Dt = "sentry.is_localhost", Ot = "sentry.op", kt = "sentry.segment.name.source", At = "url.full", jt = "user_agent.original", Mt = "sentry.op", Nt = "sentry.origin", Pt = "sentry.profile_id", Ft = "sentry.exclusive_time", It = "gen_ai.conversation.id", Lt = [ 909 "ok", 910 "deadline_exceeded", 911 "unauthenticated", 912 "permission_denied", 913 "not_found", 914 "resource_exhausted", 915 "invalid_argument", 916 "unimplemented", 917 "unavailable", 918 "internal_error", 919 "unknown_error", 920 "cancelled", 921 "already_exists", 922 "failed_precondition", 923 "aborted", 924 "out_of_range", 925 "data_loss" 926]; 927//#endregion 928//#region ../node_modules/@sentry/core/build/esm/tracing/spanstatus.js 929function Rt(e) { 930 return e !== "ok" && Lt.includes(e); 931} 932//#endregion 933//#region ../node_modules/@sentry/core/build/esm/utils/weakRef.js 934function zt(e) { 935 if (e) { 936 if (typeof e == "object" && "deref" in e && typeof e.deref == "function") try { 937 return e.deref(); 938 } catch { 939 return; 940 } 941 return e; 942 } 943} 944//#endregion 945//#region ../node_modules/@sentry/core/build/esm/tracing/utils.js 946var Bt = "_sentryScope", Vt = "_sentryIsolationScope"; 947function K(e) { 948 let t = e; 949 return { 950 scope: t[Bt], 951 isolationScope: zt(t[Vt]) 952 }; 953} 954function Ht(e) { 955 let t = Ut(e); 956 if (!t) return; 957 let n = Object.entries(t).reduce((e, [t, n]) => { 958 if (t.startsWith("sentry-")) { 959 let r = t.slice(7); 960 e[r] = n; 961 } 962 return e; 963 }, {}); 964 if (Object.keys(n).length > 0) return n; 965} 966function Ut(e) { 967 if (e && (S(e) || Array.isArray(e))) return Array.isArray(e) ? e.reduce((e, t) => { 968 let n = Wt(t); 969 return Object.entries(n).forEach(([t, n]) => { 970 e[t] = n; 971 }), e; 972 }, {}) : Wt(e); 973} 974function Wt(e) { 975 return e.split(",").map((e) => { 976 let t = e.indexOf("="); 977 return t === -1 ? [] : [e.slice(0, t), e.slice(t + 1)].map((e) => { 978 try { 979 return decodeURIComponent(e.trim()); 980 } catch { 981 return; 982 } 983 }); 984 }).reduce((e, [t, n]) => (t && n && (e[t] = n), e), {}); 985} 986//#endregion 987//#region ../node_modules/@sentry/core/build/esm/utils/dsn.js 988var Gt = /^o(\d+)\./, Kt = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/; 989function qt(e) { 990 return e === "http" || e === "https"; 991} 992function Jt(e, t = !1) { 993 let { host: n, path: r, pass: i, port: a, projectId: o, protocol: s, publicKey: c } = e; 994 return `${s}://${c}${t && i ? `:${i}` : ""}@${n}${a ? `:${a}` : ""}/${r && `${r}/`}${o}`; 995} 996function Yt(e) { 997 let t = Kt.exec(e); 998 if (!t) { 999 l(() => { 1000 console.error(`Invalid Sentry Dsn: ${e}`); 1001 }); 1002 return; 1003 } 1004 let [n, r, i = "", a = "", o = "", s = ""] = t.slice(1), c = "", u = s, d = u.split("/"); 1005 if (d.length > 1 && (c = d.slice(0, -1).join("/"), u = d.pop()), u) { 1006 let e = u.match(/^\d+/); 1007 e && (u = e[0]); 1008 } 1009 return Xt({ 1010 host: a, 1011 pass: i, 1012 path: c, 1013 projectId: u, 1014 port: o, 1015 protocol: n, 1016 publicKey: r 1017 }); 1018} 1019function Xt(e) { 1020 return { 1021 protocol: e.protocol, 1022 publicKey: e.publicKey || "", 1023 pass: e.pass || "", 1024 host: e.host, 1025 port: e.port || "", 1026 path: e.path || "", 1027 projectId: e.projectId 1028 }; 1029} 1030function Zt(t) { 1031 if (!e) return !0; 1032 let { port: n, projectId: r, protocol: i } = t; 1033 return [ 1034 "protocol", 1035 "publicKey", 1036 "host", 1037 "projectId" 1038 ].find((e) => !t[e] && (v.error(`Invalid Sentry Dsn: ${e} missing`), !0)) ? !1 : r.match(/^\d+$/) ? qt(i) ? n && isNaN(parseInt(n, 10)) ? (v.error(`Invalid Sentry Dsn: Invalid port ${n}`), !1) : !0 : (v.error(`Invalid Sentry Dsn: Invalid protocol ${i}`), !1) : (v.error(`Invalid Sentry Dsn: Invalid projectId ${r}`), !1); 1039} 1040function Qt(e) { 1041 return e.match(Gt)?.[1]; 1042} 1043function $t(e) { 1044 let t = e.getOptions(), { host: n } = e.getDsn() || {}, r; 1045 return t.orgId ? r = String(t.orgId) : n && (r = Qt(n)), r; 1046} 1047function en(e) { 1048 let t = typeof e == "string" ? Yt(e) : Xt(e); 1049 if (t && Zt(t)) return t; 1050} 1051//#endregion 1052//#region ../node_modules/@sentry/core/build/esm/utils/spanOnScope.js 1053var tn = "span"; 1054function nn(e) { 1055 return zt(e.refs[tn]); 1056} 1057function rn(e) { 1058 let { spanId: t, traceId: n, isRemote: r } = e.spanContext(), i = r ? t : q(e).parent_span_id, a = K(e).scope; 1059 return { 1060 parent_span_id: i, 1061 span_id: r ? a?.getPropagationContext().propagationSpanId || rt() : t, 1062 trace_id: n 1063 }; 1064} 1065function an(e) { 1066 if (e && e.length > 0) return e.map(({ context: { spanId: e, traceId: t, traceFlags: n, ...r }, attributes: i }) => ({ 1067 span_id: e, 1068 trace_id: t, 1069 sampled: n === 1, 1070 attributes: i, 1071 ...r 1072 })); 1073} 1074function on(e) { 1075 return typeof e == "number" ? sn(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? sn(e.getTime()) : L(); 1076} 1077function sn(e) { 1078 return e > 9999999999 ? e / 1e3 : e; 1079} 1080function q(e) { 1081 if (dn(e)) return e.getStaticSpanJSON(); 1082 let { spanId: t, traceId: n } = e.spanContext(); 1083 if (un(e)) { 1084 let { attributes: r, startTime: i, name: a, endTime: o, status: s, links: c } = e; 1085 return { 1086 span_id: t, 1087 trace_id: n, 1088 data: r, 1089 description: a, 1090 parent_span_id: cn(e), 1091 start_timestamp: on(i), 1092 timestamp: on(o) || void 0, 1093 status: pn(s), 1094 op: r[Mt], 1095 origin: r[Nt], 1096 links: an(c) 1097 }; 1098 } 1099 return { 1100 span_id: t, 1101 trace_id: n, 1102 start_timestamp: 0, 1103 status: "ok", 1104 data: {} 1105 }; 1106} 1107function cn(e) { 1108 return "parentSpanId" in e ? e.parentSpanId : "parentSpanContext" in e ? e.parentSpanContext?.spanId : void 0; 1109} 1110function ln(e) { 1111 return { 1112 ...e, 1113 end_timestamp: e.end_timestamp ?? e.start_timestamp, 1114 attributes: bt(e.attributes), 1115 links: e.links?.map((e) => ({ 1116 ...e, 1117 attributes: bt(e.attributes) 1118 })) 1119 }; 1120} 1121function un(e) { 1122 let t = e; 1123 return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status; 1124} 1125function dn(e) { 1126 return typeof e.getSpanJSON == "function"; 1127} 1128function fn(e) { 1129 let { traceFlags: t } = e.spanContext(); 1130 return t === 1; 1131} 1132function pn(e) { 1133 return !e || e.code === 0 || e.code === 1 ? "ok" : e.message && Rt(e.message) ? e.message : "
1133internal_error"; 1134} 1135var mn = "_sentryRootSpan", hn = gn; 1136function gn(e) { 1137 return e[mn] || e; 1138} 1139function _n(e) { 1140 let t = H(r()); 1141 return t.getActiveSpan ? t.getActiveSpan(e) : nn(e || U()); 1142} 1143//#endregion 1144//#region ../node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js 1145function vn(e) { 1146 if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__) return !1; 1147 let t = e || G()?.getOptions(); 1148 return !!t && (t.tracesSampleRate != null || !!t.tracesSampler); 1149} 1150//#endregion 1151//#region ../node_modules/@sentry/core/build/esm/constants.js 1152var yn = "production", bn = /* @__PURE__ */ Symbol.for("sentry.nonRecordingSpan"); 1153function xn(e) { 1154 return !!e && e[bn] === !0; 1155} 1156//#endregion 1157//#region ../node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js 1158var Sn = "_frozenDsc"; 1159function Cn(e, t) { 1160 let n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, i = { 1161 environment: n.environment || "production", 1162 release: n.release, 1163 public_key: r, 1164 trace_id: e, 1165 org_id: $t(t) 1166 }; 1167 return t.emit("createDsc", i), i; 1168} 1169function wn(e, t) { 1170 if (St()) return; 1171 let n = t.getPropagationContext(); 1172 return n.dsc || Cn(n.traceId, e); 1173} 1174function Tn(e) { 1175 let t = G(); 1176 if (!t) return {}; 1177 let n = hn(e), r = q(n), i = r.data, a = n.spanContext().traceState, o = a?.get("sentry.sample_rate") ?? i["sentry.sample_rate"] ?? i["sentry.previous_trace_sample_rate"]; 1178 function s(e) { 1179 return (typeof o == "number" || typeof o == "string") && (e.sample_rate = `${o}`), e; 1180 } 1181 let c = n[Sn]; 1182 if (c) return s(c); 1183 let l = xn(n), u = l && n.dropReason === "ignored"; 1184 if (l && (!vn(t.getOptions()) || u)) { 1185 let e = K(n).scope, r = e && wn(t, e); 1186 if (r) { 1187 let e = { ...r }; 1188 return u && (e.sampled = "false"), s(e); 1189 } 1190 } 1191 let d = a?.get("sentry.dsc"), f = d && Ht(d); 1192 if (f) return s(f); 1193 let p = Cn(e.spanContext().traceId, t), m = i[kt], h = r.description; 1194 return m !== "url" && h && (p.transaction = h), vn() && (p.sampled = String(fn(n)), p.sample_rand = a?.get("sentry.sample_rand") ?? K(n).scope?.getPropagationContext().sampleRand.toString()), s(p), t.emit("createDsc", p, n), p; 1195} 1196//#endregion 1197//#region ../node_modules/@sentry/core/build/esm/utils/scopeData.js 1198function En(e, t) { 1199 let { fingerprint: n, breadcrumbs: r, sdkProcessingMetadata: i } = t; 1200 kn(e, t), Nn(e, n), An(e, r), jn(e, i); 1201} 1202function Dn(e, t) { 1203 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 } = t; 1204 J(e, "extra", n), J(e, "tags", r), J(e, "attributes", i), J(e, "user", a), J(e, "contexts", o), e.sdkProcessingMetadata = z(e.sdkProcessingMetadata, c, 2), s && (e.level = s), m && (e.transactionName = m), 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 = { 1205 ...e.propagationContext, 1206 ...p 1207 }; 1208} 1209function J(e, t, n) { 1210 e[t] = z(e[t], n, 1); 1211} 1212function On(e, t) { 1213 let n = Ct().getScopeData(); 1214 return e && Dn(n, e.getScopeData()), t && Dn(n, t.getScopeData()), n; 1215} 1216function kn(e, t) { 1217 let { extra: n, tags: r, user: i, contexts: a, level: o, transactionName: s } = t; 1218 Object.keys(n).length && (e.extra = { 1219 ...n, 1220 ...e.extra 1221 }), Object.keys(r).length && (e.tags = { 1222 ...r, 1223 ...e.tags 1224 }), Object.keys(i).length && (e.user = { 1225 ...i, 1226 ...e.user 1227 }), Object.keys(a).length && (e.contexts = { 1228 ...a, 1229 ...e.contexts 1230 }), o && (e.level = o), s && e.type !== "transaction" && (e.transaction = s); 1231} 1232function An(e, t) { 1233 let n = [...e.breadcrumbs || [], ...t]; 1234 e.breadcrumbs = n.length ? n : void 0; 1235} 1236function jn(e, t) { 1237 e.sdkProcessingMetadata = { 1238 ...e.sdkProcessingMetadata, 1239 ...t 1240 }; 1241} 1242function Mn(e, t) { 1243 e.contexts = { 1244 trace: rn(t), 1245 ...e.contexts 1246 }, e.sdkProcessingMetadata = { 1247 dynamicSamplingContext: Tn(t), 1248 ...e.sdkProcessingMetadata 1249 }; 1250 let n = q(hn(t)).description; 1251 n && !e.transaction && e.type === "transaction" && (e.transaction = n); 1252} 1253function Nn(e, t) { 1254 e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint]
1254: [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint.length || delete e.fingerprint; 1255} 1256//#endregion 1257//#region ../node_modules/@sentry/core/build/esm/utils/safeCallback.js 1258function Pn(e, t, n) { 1259 let r; 1260 try { 1261 r = t(); 1262 } catch (t) { 1263 return Fn(e, t, n); 1264 } 1265 return w(r) ? r.then(void 0, (t) => Fn(e, t, n)) : r; 1266} 1267function Fn(t, n, r) { 1268 return e && v.error(t, n), r(n); 1269} 1270//#endregion 1271//#region ../node_modules/@sentry/core/build/esm/utils/envelope.js 1272function In(e, t = []) { 1273 return [e, t]; 1274} 1275function Ln(e, t) { 1276 let [n, r] = e; 1277 return [n, [...r, t]]; 1278} 1279function Rn(e, t) { 1280 let n = e[1]; 1281 for (let e of n) { 1282 let n = e[0].type; 1283 if (t(e, n)) return !0; 1284 } 1285 return !1; 1286} 1287function zn(e, t) { 1288 return Rn(e, (e, n) => t.includes(n)); 1289} 1290function Y(e) { 1291 let n = i(t); 1292 return n.encodePolyfill ? n.encodePolyfill(e) : new TextEncoder().encode(e); 1293} 1294function Bn(e) { 1295 let [t, n] = e, r = JSON.stringify(t); 1296 function i(e) { 1297 typeof r == "string" ? r = typeof e == "string" ? r + e : [Y(r), e] : r.push(typeof e == "string" ? Y(e) : e); 1298 } 1299 for (let e of n) { 1300 let [t, n] = e; 1301 if (i(` 1302${JSON.stringify(t)} 1303`), typeof n == "string" || n instanceof Uint8Array) i(n); 1304 else { 1305 let e; 1306 try { 1307 e = JSON.stringify(n); 1308 } catch { 1309 e = JSON.stringify(M(n)); 1310 } 1311 i(e); 1312 } 1313 } 1314 return typeof r == "string" ? r : Vn(r); 1315} 1316function Vn(e) { 1317 let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0; 1318 for (let t of e) n.set(t, r), r += t.length; 1319 return n; 1320} 1321function Hn(e) { 1322 let t = typeof e.data == "string" ? Y(e.data) : e.data; 1323 return [{ 1324 type: "attachment", 1325 length: t.length, 1326 filename: e.filename, 1327 content_type: e.contentType, 1328 attachment_type: e.attachmentType 1329 }, t]; 1330} 1331var Un = { 1332 sessions: "session", 1333 event: "error", 1334 client_report: "internal", 1335 user_report: "default", 1336 profile_chunk: "profile", 1337 replay_event: "replay", 1338 replay_recording: "replay", 1339 check_in: "monitor", 1340 raw_security: "security", 1341 log: "log_item", 1342 trace_metric: "metric" 1343}; 1344function Wn(e) { 1345 return e in Un; 1346} 1347function Gn(e) {
1348 return Wn(e) ? Un[e] : e; 1349} 1350function Kn(e) { 1351 if (!e?.sdk) return; 1352 let { name: t, version: n } = e.sdk; 1353 return { 1354 name: t, 1355 version: n 1356 }; 1357} 1358function qn(e, t, n, r) { 1359 let i = e.sdkProcessingMetadata?.dynamicSamplingContext; 1360 return { 1361 event_id: e.event_id, 1362 sent_at: new Date(A()).toISOString(), 1363 ...t && { sdk: t }, 1364 ...!!n && r && { dsn: Jt(r) }, 1365 ...i && { trace: i } 1366 }; 1367} 1368function Jn(e) { 1369 return e === "replay_event" ? "replay" : e || "error"; 1370} 1371//#endregion 1372//#region ../node_modules/@sentry/core/build/esm/utils/errorSpanAttribution.js 1373var Yn = /* @__PURE__ */ new WeakMap(); 1374function Xn(e) { 1375 return C(e) ? void 0 : e; 1376} 1377function Zn(e, t, n) { 1378 let r = Xn(t.originalException), i = r && Yn.get(r); 1379 if (!i) return; 1380 let a = e.contexts?.trace; 1381 (a?.trace_id ?? (n && Tt(n).trace_id)) === i.trace_id && (e.contexts = { 1382 ...e.contexts, 1383 trace: { 1384 ...a, 1385 ...i 1386 } 1387 }); 1388} 1389//#endregion 1390//#region ../node_modules/@sentry/core/build/esm/utils/syncpromise.js 1391var X = 0, Qn = 1, $n = 2; 1392function Z(e) { 1393 return new tr((t) => { 1394 t(e); 1395 }); 1396} 1397function er(e) { 1398 return new tr((t, n) => { 1399 n(e); 1400 }); 1401} 1402var tr = class e { 1403 constructor(e) { 1404 this._state = X, this._handlers = [], this._runExecutor(e); 1405 } 1406 then(t, n) { 1407 return new e((e, r) => { 1408 this._handlers.push([ 1409 !1, 1410 (n) => { 1411 if (!t) e(n); 1412 else try { 1413 e(t(n)); 1414 } catch (e) { 1415 r(e); 1416 } 1417 }, 1418 (t) => { 1419 if (!n) r(t); 1420 else try { 1421 e(n(t)); 1422 } catch (e) { 1423 r(e); 1424 } 1425 } 1426 ]), this._executeHandlers(); 1427 }); 1428 } 1429 catch(e) { 1430 return this.then((e) => e, e); 1431 } 1432 finally(t) { 1433 return new e((e, n) => { 1434 let r, i; 1435 return this.then((e) => { 1436 i = !1, r = e, t && t(); 1437 }, (e) => { 1438 i = !0, r = e, t && t(); 1439 }).then(() => { 1440 if (i) { 1441 n(r); 1442 return; 1443 } 1444 e(r); 1445 }); 1446 }); 1447 } 1448 _executeHandlers() { 1449 if (this._state === X) return; 1450 let e = this._handlers.slice(); 1451 this._handlers = [], e.forEach((e) => { 1452 e[0] ||= (this._state === Qn && e[1](this._value), this._state === $n && e[2](this._value), !0); 1453 }); 1454 } 1455 _runExecutor(e) { 1456 let t = (e, t) => { 1457 if (this._state === X) { 1458 if (w(t)) { 1459 t.then(n, r); 1460 return; 1461 } 1462 this._state = e, this._value = t, this._executeHandlers(); 1463 } 1464 }, n = (e) => { 1465 t(Qn, e); 1466 }, r = (e) => { 1467 t($n, e); 1468 }; 1469 try { 1470 e(n, r); 1471 } catch (e) { 1472 r(e); 1473 } 1474 } 1475}; 1476//#endregion 1477//#region ../node_modules/@sentry/core/build/esm/eventProcessors.js 1478function nr(e, t, n, r = 0, i) { 1479 try { 1480 let a = rr(t, n, e, r, i); 1481 return w(a) ? a : Z(a); 1482 } catch (e) { 1483 return er(e); 1484 } 1485} 1486function rr(t, n, r, i, a) { 1487 let o = r[i]; 1488 if (!t || !o) return t; 1489 let s = `Event processor "${o.id || "?"}"`, c = !1, l = Pn(e ? `${s} threw an error, dropping event:` : "", () => o({ ...t }, n), () => (c = !0, null)); 1490 return e && l === null && v.log(`${s} dropped event`), w(l) ? l.then((e) => e ? rr(e, n, r, i + 1, a) : (a?.(c ? "callback_error" : "event_processor"), null)) : l ? rr(l, n, r, i + 1, a) : (a?.(c ? "callback_error" : "event_processor"), null); 1491} 1492//#endregion 1493//#region ../node_modules/@sentry/core/build/esm/utils/debug-ids.js 1494var Q, ir, ar, $; 1495function or(e) { 1496 let n = t._sentryDebugIds, r = t._debugIds; 1497 if (!n && !r) return {}; 1498 let i = n ? Object.keys(n) : [], a = r ? Object.keys(r) : []; 1499 if ($ && i.length === ir && a.length === ar) return $; 1500 ir = i.length, ar = a.length, $ = {}, Q ||= {}; 1501 let o = (t, n) => { 1502 for (let r of t) { 1503 let t = n[r], i = Q?.[r]; 1504 if (i && $ && t) $[i[0]] = t, Q && (Q[r] = [i[0], t]); 1505 else if (t) { 1506 let n = e(r); 1507 for (let e = n.length - 1; e >= 0; e--) { 1508 let i = n[e]?.filename; 1509 if (i && $ && Q) { 1510 $[i] = t, Q[r] = [i, t]; 1511 break; 1512 } 1513 } 1514 } 1515 } 1516 }; 1517 return n && o(i, n), r && o(a, r), $; 1518} 1519//#endregion 1520//#region ../node_modules/@sentry/core/build/esm/utils/prepareEvent.js 1521function sr(e, t, n, r, i, a) { 1522 let { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, c = { 1523 ...t, 1524 event_id: t.event_id || n.event_id || F(), 1525 timestamp: t.timestamp || I() 1526 }, l = n.integrations || e.integrations.map((e) => e.name); 1527 cr(c, e), dr(c, l), i && i.emit("applyFrameMetadata", t), t.type === void 0 && lr(c, e.stackParser); 1528 let u = pr(r, n.captureContext); 1529 n.mechanism && Ke(c, n.mechanism); 1530 let d = i ? i.getEventProcessors() : [], f = On(a, u), p = [...n.attachments || [], ...f.attachments]; 1531 p.length && (n.attachments = p), En(c, f); 1532 let m = _n(u); 1533 m && Mn(c, m), Zn(c, n, u); 1534 let h = [...d, ...f.eventProcessors]; 1535 return (n.data && n.data.__sentry__ === !0 ? Z(c) : nr(h, c, n, 0, (e) => { 1536 i && (i.recordDroppedEvent(e, Jn(t.type)), t.type === "transaction" && i.recordDroppedEvent(e, "span", 1 + (t.spans || []).length)); 1537 })).then((e) => e ? (ur(e), typeof o == "number" && o > 0 ? fr(e, o, s) : e) : null); 1538} 1539function cr(e, t) { 1540 let { environment: n, release: r, dist: i, maxValueLength: a } = t; 1541 e.environment = e.environment || n || "production", !e.release && r && (e.release = r), !e.dist && i && (e.dist = i); 1542 let o = e.request; 1543 o?.url && a && (o.url = P(o.url, a)), a && e.exception?.values?.forEach((e) => { 1544 e.value &&= P(e.value, a); 1545 }); 1546} 1547function lr(e, t) { 1548 let n = or(t); 1549 e.exception?.values?.forEach((e) => { 1550 e.stacktrace?.frames?.forEach((e) => { 1551 e.filename && (e.debug_id = n[e.filename]); 1552 }); 1553 }); 1554} 1555function ur(e) { 1556 let t = {}; 1557 if (e.exception?.values?.forEach((e) => { 1558 e.stacktrace?.frames?.forEach((e) => { 1559 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); 1560 }); 1561 }), Object.keys(t).length === 0) return; 1562 e.debug_meta = e.debug_meta || {}, e.debug_meta.images = e.debug_meta.images || []; 1563 let n = e.debug_meta.images; 1564 Object.entries(t).forEach(([e, t]) => { 1565 n.push({ 1566 type: "sourcemap", 1567 code_file: e, 1568 debug_id: t 1569 }); 1570 }); 1571} 1572function dr(e, t) { 1573 t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]); 1574} 1575function fr(e, t, n) { 1576 if (!e) return null; 1577 let r = { 1578 ...e, 1579 ...e.breadcrumbs && { breadcrumbs: e.breadcrumbs.map((e) => ({ 1580 ...e, 1581 ...e.data && { data: M(e.data, t, n) } 1582 })) }, 1583 ...e.user && { user: M(e.user, t, n) }, 1584 ...e.contexts && { contexts: M(e.contexts, t, n) }, 1585 ...e.extra && { extra: M(e.extra, t, n) } 1586 }; 1587 return e.contexts?.trace && r.contexts && (r.contexts.trace = e.contexts.trace, e.contexts.trace.data && (r.contexts.trace.data = M(e.contexts.trace.data, t, n))), e.spans && (r.spans = e.spans.map((e) => ({ 1588 ...e, 1589 ...e.data && { data: M(e.data, t, n) } 1590 }))), e.contexts?.flags && r.contexts && (r.contexts.flags = M(e.contexts.flags, 3, n)), r; 1591} 1592function pr(e, t) { 1593 if (!t) return e; 1594 let n = e ? e.clone() : new B(); 1595 return n.update(t), n; 1596} 1597function mr(e) { 1598 if (e) return hr(e) || _r(e) ? { captureContext: e } : e; 1599} 1600function hr(e) { 1601 return e instanceof B || typeof e == "function"; 1602} 1603var gr = [ 1604 "user", 1605 "level", 1606 "extra", 1607 "contexts", 1608 "tags", 1609 "fingerprint", 1610 "propagationContext" 1611]; 1612function _r(e) { 1613 return Object.keys(e).some((e) => gr.includes(e)); 1614} 1615//#endregion 1616//#region ../node_modules/@sentry/core/build/esm/exports.js 1617function vr(e, t) { 1618 return U().captureException(e, mr(t)); 1619} 1620function yr(e, t) { 1621 return U().captureEvent(e, t); 1622} 1623function br(e, t) { 1624 W().setContext(e, t); 1625} 1626function xr(e, t) { 1627 W().setTag(e, t); 1628} 1629function Sr(e) { 1630 W().setUser(e); 1631} 1632function Cr() { 1633 return W().lastEventId(); 1634} 1635function wr(e) { 1636 let n = W(), { user: r } = On(n, U()), { userAgent: i } = t.navigator || {}, a = $e({ 1637 user: r, 1638 ...i && { userAgent: i }, 1639 ...e 1640 }), o = n.getSession(); 1641 return o?.status === "ok" && R(o, { status: "exited" }), Tr(), n.setSession(a), a; 1642} 1643function Tr() { 1644 let e = W(), t = U().getSession() || e.getSession(); 1645 t && et(t), Er(), e.setSession(); 1646} 1647function Er() { 1648 let e = W(), t = G(), n = e.getSession(); 1649 n && t && t.captureSession(n); 1650} 1651function Dr(e = !1) { 1652 if (e) { 1653 Tr(); 1654 return; 1655 } 1656 Er(); 1657} 1658//#endregion 1659export { Re as $, Ft as A, n as At, Tt as B, wn as C, oe as Ct, Jt as D, v as Dt, ln as E, l as Et, Dt as F, L as G, z as H, At as I, Je as J, Ge as K, G as L, jt as M, e as Mt, Ot as N, en as O, c as Ot, Et as P, Ie as Q, U as R, Pn as S, se as St, q as T, o as Tt, R as U, wt as V, I as W, F as X, Ue as Y, Le as Z, Gn as _, C as _t, br as a, we as at, Kn as b, w as bt, wr as c, be as ct, Z as d, le as dt, Ae as et, Ln as f, ue as ft, zn as g, me as gt, qn as h, pe as ht, Cr as i, E as it, Pt as j, t as jt, It as k, a as kt, sr as l, de as lt, In as m, he as mt, vr as n, A as nt, xr as o, ye as ot, Hn as p, ge as pt, We as q, Dr as r, k as rt, Sr as s, xe as st, yr as t, ke as tt, er as u, fe as ut, Rn as v, ve as vt, yn as w, ie as wt, Bn as x, re as xt, Jn as y, S as yt, W as z };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.