UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

1,526 lines (1,525 loc) 43.9 kB
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/debug-build.js (function() { try { var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; e.SENTRY_RELEASE = { id: "3.20.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0c28160c-e266-4881-905c-8232faf4c773", e._sentryDebugIdIdentifier = "sentry-dbid-0c28160c-e266-4881-905c-8232faf4c773"); } catch {} })(); var e = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, t = globalThis, n = "10.69.0"; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/carrier.js function r() { return i(t), t; } function i(e) { let t = e.__SENTRY__ = e.__SENTRY__ || {}; return t.version = t.version || "10.69.0", t[n] = t["10.69.0"] || {}; } function a(e, r, i = t) { let a = i.__SENTRY__ = i.__SENTRY__ || {}, o = a[n] = a["10.69.0"] || {}; return o[e] || (o[e] = r()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js var o = [ "debug", "info", "warn", "error", "log", "assert", "trace" ], s = "Sentry Logger ", c = {}; function l(e) { if (!("console" in t)) return e(); let n = t.console, r = {}, i = Object.keys(c); i.forEach((e) => { let t = c[e]; r[e] = n[e], n[e] = t; }); try { return e(); } finally { i.forEach((e) => { n[e] = r[e]; }); } } function u() { _().enabled = !0; } function d() { _().enabled = !1; } function f() { return _().enabled; } function p(...e) { g("log", ...e); } function m(...e) { g("warn", ...e); } function h(...e) { g("error", ...e); } function g(n, ...r) { e && f() && l(() => { t.console[n](`${s}[${n}]:`, ...r); }); } function _() { return e ? a("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 }; } var v = { enable: u, disable: d, isEnabled: f, log: p, warn: m, error: h }, y = 50, b = /\(error: (.*)\)/, ee = /captureMessage|captureException/; function te(...e) { let t = e.sort((e, t) => e[0] - t[0]).map((e) => e[1]); return (e, n = 0, r = 0) => { let i = [], a = e.split("\n"); for (let e = n; e < a.length; e++) { let n = a[e]; n.length > 1024 && (n = n.slice(0, 1024)); let o = b.test(n) ? n.replace(b, "$1") : n; if (!o.includes("Error: ")) { for (let e of t) { let t = e(o); if (t) { i.push(t); break; } } if (i.length >= y + r) break; } } return re(i.slice(r)); }; } function ne(e) { return Array.isArray(e) ? te(...e) : e; } function re(e) { if (!e.length) return []; let t = Array.from(e); return /sentryWrapped/.test(x(t).function || "") && t.pop(), t.reverse(), ee.test(x(t).function || "") && (t.pop(), ee.test(x(t).function || "") && t.pop()), t.slice(0, y).map((e) => ({ ...e, filename: e.filename || x(t).filename, function: e.function || "?" })); } function x(e) { return e[e.length - 1] || {}; } var S = "<anonymous>"; function ie(e) { try { return !e || typeof e != "function" ? S : e.name || S; } catch { return S; } } function ae(e) { let t = e.exception; if (t) { let e = []; try { return t.values.forEach((t) => { t.stacktrace.frames && e.push(...t.stacktrace.frames); }), e; } catch { return; } } } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/is.js var oe = Object.prototype.toString; function se(e) { switch (oe.call(e)) { case "[object Error]": case "[object Exception]": case "[object DOMException]": case "[object WebAssembly.Exception]": return !0; default: return E(e, Error); } } function C(e, t) { return oe.call(e) === `[object ${t}]`; } function ce(e) { return C(e, "ErrorEvent"); } function le(e) { return C(e, "DOMError"); } function ue(e) { return C(e, "DOMException"); } function w(e) { return C(e, "String"); } function de(e) { return typeof e == "object" && !!e && "__sentry_template_string__" in e && "__sentry_template_values__" in e; } function fe(e) { return e === null || de(e) || typeof e != "object" && typeof e != "function"; } function pe(e) { return C(e, "Object"); } function me(e) { return typeof e == "object" && !!e; } function he(e) { return typeof Event < "u" && E(e, Event); } function ge(e) { return C(e, "RegExp"); } function T(e) { return !!(e != null && e.then && typeof e.then == "function"); } function E(e, t) { try { return e instanceof t; } catch { return !1; } } function _e(e) { return typeof Request < "u" && E(e, Request); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/object.js function ve(t, n, r) { if (!(n in t)) return; let i = t[n]; if (typeof i != "function") return; let a = r(i); typeof a == "function" && ye(a, i); try { t[n] = a; } catch { e && v.log(`Failed to replace method "${n}" in object`, t); } } function D(t, n, r) { try { Object.defineProperty(t, n, { value: r, writable: !0, configurable: !0 }); } catch { e && v.log(`Failed to add non-enumerable property "${String(n)}" to object`, t); } } function ye(e, t) { try { e.prototype = t.prototype = t.prototype || {}, D(e, "__sentry_original__", t); } catch {} } function be(e) { return e.__sentry_original__; } function xe(e) { if (se(e)) return { message: e.message, name: e.name, stack: e.stack, ...Se(e) }; if (he(e)) { let { type: t, target: n, currentTarget: r, detail: i } = e; return { type: t, target: n, currentTarget: r, ...i ? { detail: i } : {}, ...Se(e) }; } return e; } function Se(e) { return me(e) ? Object.fromEntries(Object.entries(e)) : {}; } function Ce(e) { let t = Object.keys(xe(e)); return t.sort(), t[0] ? t.join(", ") : "[object has no keys]"; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js var O; function k(e) { if (O !== void 0) return O ? O(e) : e(); let n = /* @__PURE__ */ Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), r = t; return n in r && typeof r[n] == "function" ? (O = r[n], O(e)) : (O = null, e()); } function A() { return k(() => Math.random()); } function we() { return k(() => Date.now()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/normalizationHints.js var Te = /* @__PURE__ */ Symbol.for("sentry.skipNormalization"), Ee = /* @__PURE__ */ Symbol.for("sentry.overrideNormalizationDepth"); function De(e) { return !!e[Te]; } function Oe(e) { let t = e[Ee]; return typeof t == "number" ? t : void 0; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/normalize.js var j; function ke(e) { j = e; } function M(e, t = 100, n = Infinity) { try { return je("", e, t, n); } catch (e) { return { ERROR: `**non-serializable** (${e})` }; } } function Ae(e, t = 3, n = 100 * 1024) { let r = M(e, t); return Fe(r) > n ? Ae(e, t - 1, n) : r; } function je(e, t, n = Infinity, r = Infinity, i = Ie()) { let [a, o] = i; if (t == null || ["boolean", "string"].includes(typeof t) || typeof t == "number" && Number.isFinite(t)) return t; let s = Me(e, t); if (!s.startsWith("[object ")) return s; if (De(t)) return t; let c = Oe(t), l = c === void 0 ? n : c; if (l === 0) return s.replace("object ", ""); if (a(t)) return "[Circular ~]"; let u = t; if (u && typeof u.toJSON == "function") try { return je("", u.toJSON(), l - 1, r, i); } catch {} let d = Array.isArray(t) ? [] : {}, f = 0, p = xe(t); for (let e in p) { if (!Object.prototype.hasOwnProperty.call(p, e)) continue; if (f >= r) { d[e] = "[MaxProperties ~]"; break; } let t = p[e]; d[e] = je(e, t, l - 1, r, i), f++; } return o(t), d; } function Me(e, t) { try { if (j) { let e = j(t); if (e) return e; } return typeof global < "u" && t === global ? "[Global]" : typeof t == "number" && !Number.isFinite(t) ? `[${t}]` : typeof t == "function" ? `[Function: ${ie(t)}]` : typeof t == "symbol" ? `[${String(t)}]` : typeof t == "bigint" ? `[BigInt: ${String(t)}]` : `[object ${Ne(t)}]`; } catch (e) { return `**non-serializable** (${e})`; } } function Ne(e) { let t = Object.getPrototypeOf(e); return t != null && t.constructor ? t.constructor.name : "null prototype"; } function Pe(e) { return ~-encodeURI(e).split(/%..|./).length; } function Fe(e) { return Pe(JSON.stringify(e)); } function Ie() { let e = /* @__PURE__ */ new WeakSet(); function t(t) { return e.has(t) ? !0 : (e.add(t), !1); } function n(t) { e.delete(t); } return [t, n]; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/string.js function N(e, t = 0) { return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`; } function Le(e, t) { if (!Array.isArray(e)) return ""; let n = []; for (let t = 0; t < e.length; t++) { let r = e[t]; fe(r) ? n.push(String(r)) : r instanceof Error ? n.push(r.message ? `${r.name}: ${r.message}` : r.name) : n.push(Me(void 0, r)); } return n.join(t); } function Re(e, t, n = !1) { return w(e) ? ge(t) ? t.test(e) : w(t) ? n ? e === t : e.includes(t) : typeof t == "function" && t(e) : !1; } function ze(e, t = [], n = !1) { for (let r of t) if (Re(e, r, n)) return !0; return !1; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/misc.js function Be() { let e = t; return e.crypto || e.msCrypto; } var P; function Ve() { return A() * 16; } function F(e = Be()) { try { if (e != null && e.randomUUID) return k(() => e.randomUUID()).replace(/-/g, ""); } catch {} return P || (P = "10000000100040008000100000000000"), P.replace(/[018]/g, (e) => (e ^ (Ve() & 15) >> e / 4).toString(16)); } function He(e) { var t; return (t = e.exception) == null || (t = t.values) == null ? void 0 : t[0]; } function Ue(e) { let { message: t, event_id: n } = e; if (t) return t; let r = He(e); return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>"; } function We(e, t, n) { let r = e.exception = e.exception || {}, i = r.values = r.values || [], a = i[0] = i[0] || {}; a.value || (a.value = t || ""), a.type || (a.type = n || "Error"); } function Ge(e, t) { let n = He(e); if (!n) return; let r = { type: "generic", handled: !0 }, i = n.mechanism; if (n.mechanism = { ...r, ...i, ...t }, t && "data" in t) { let e = { ...i == null ? void 0 : i.data, ...t.data }; n.mechanism.data = e; } } function Ke(e) { if (qe(e)) return !0; try { D(e, "__sentry_captured__", !0); } catch {} return !1; } function qe(e) { try { return e.__sentry_captured__; } catch {} } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/time.js var Je = 1e3; function I() { return we() / Je; } function Ye() { let { performance: e } = t; if (!(e != null && e.now) || !e.timeOrigin) return I; let n = e.timeOrigin; return () => (n + k(() => e.now())) / Je; } var Xe; function L() { var e; return ((e = Xe) == null ? Xe = Ye() : e)(); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/session.js function Ze(e) { let t = L(), n = { sid: F(), init: !0, timestamp: t, started: t, duration: 0, status: "ok", errors: 0, ignoreDuration: !1, toJSON: () => $e(n) }; return e && R(n, e), n; } function R(e, t = {}) { 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; else if (typeof t.duration == "number") e.duration = t.duration; else { let t = e.timestamp - e.started; e.duration = t >= 0 ? t : 0; } 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); } function Qe(e, t) { let n = {}; t ? n = { status: t } : e.status === "ok" && (n = { status: "exited" }), R(e, n); } function $e(e) { return { sid: `${e.sid}`, init: e.init, started: (/* @__PURE__ */ new Date(e.started * 1e3)).toISOString(), timestamp: (/* @__PURE__ */ new Date(e.timestamp * 1e3)).toISOString(), status: e.status, errors: e.errors, did: typeof e.did == "number" || typeof e.did == "string" ? `${e.did}` : void 0, duration: e.duration, abnormal_mechanism: e.abnormal_mechanism, attrs: { release: e.release, environment: e.environment, ip_address: e.ipAddress, user_agent: e.userAgent } }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/merge.js function z(e, t, n = 2) { if (!t || typeof t != "object" || n <= 0) return t; if (e && Object.keys(t).length === 0) return e; let r = { ...e }; for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = z(r[e], t[e], n - 1)); return r; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/propagationContext.js function et() { return F(); } function tt() { return F().substring(16); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/weakRef.js function nt(e) { try { let n = t.WeakRef; if (typeof n == "function") return new n(e); } catch {} return e; } function rt(e) { if (e) { if (typeof e == "object" && "deref" in e && typeof e.deref == "function") try { return e.deref(); } catch { return; } return e; } } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js var B = "_sentrySpan"; function it(e, t) { t ? D(e, B, nt(t)) : delete e[B]; } function at(e) { return rt(e[B]); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/scope.js var ot = 100, V = class t { constructor() { 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 = { traceId: et(), sampleRand: A() }; } clone() { let e = new t(); 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, it(e, at(this)), e; } setClient(e) { this._client = e; } setLastEventId(e) { this._lastEventId = e; } getClient() { return this._client; } lastEventId() { return this._lastEventId; } addScopeListener(e) { this._scopeListeners.push(e); } addEventProcessor(e) { return this._eventProcessors.push(e), this; } setUser(e) { return this._user = e || { email: void 0, id: void 0, ip_address: void 0, username: void 0 }, this._session && R(this._session, { user: e }), this._notifyScopeListeners(), this; } getUser() { return this._user; } setConversationId(e) { return this._conversationId = e || void 0, this._notifyScopeListeners(), this; } setTags(e) { return this._tags = { ...this._tags, ...e }, this._notifyScopeListeners(), this; } setTag(e, t) { return this.setTags({ [e]: t }); } setAttributes(e) { return this._attributes = { ...this._attributes, ...e }, this._notifyScopeListeners(), this; } setAttribute(e, t) { return this.setAttributes({ [e]: t }); } removeAttribute(e) { return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this; } setExtras(e) { return this._extra = { ...this._extra, ...e }, this._notifyScopeListeners(), this; } setExtra(e, t) { return this._extra = { ...this._extra, [e]: t }, this._notifyScopeListeners(), this; } setFingerprint(e) { return this._fingerprint = e, this._notifyScopeListeners(), this; } setLevel(e) { return this._level = e, this._notifyScopeListeners(), this; } setTransactionName(e) { return this._transactionName = e, this._notifyScopeListeners(), this; } setContext(e, t) { return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this; } setSession(e) { return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this; } getSession() { return this._session; } update(e) { if (!e) return this; 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() : pe(n) ? e : void 0) || {}; return this._tags = { ...this._tags, ...r }, this._attributes = { ...this._attributes, ...i }, this._extra = { ...this._extra, ...a }, this._contexts = { ...this._contexts, ...s }, 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; } clear() { 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, it(this, void 0), this._attachments = [], this.setPropagationContext({ traceId: et(), sampleRand: A() }), this._notifyScopeListeners(), this; } addBreadcrumb(e, t) { let n = typeof t == "number" ? t : ot; if (n <= 0) return this; let r = { timestamp: I(), ...e, message: e.message ? N(e.message, 2048) : e.message }; if (this._breadcrumbs.push(r), this._breadcrumbs.length > n) { var i; this._breadcrumbs = this._breadcrumbs.slice(-n), (i = this._client) == null || i.recordDroppedEvent("buffer_overflow", "log_item"); } return this._notifyScopeListeners(), this; } getLastBreadcrumb() { return this._breadcrumbs[this._breadcrumbs.length - 1]; } clearBreadcrumbs() { return this._breadcrumbs = [], this._notifyScopeListeners(), this; } addAttachment(e) { return this._attachments.push(e), this; } clearAttachments() { return this._attachments = [], this; } getScopeData() { return { breadcrumbs: this._breadcrumbs, attachments: this._attachments, contexts: this._contexts, tags: this._tags, attributes: this._attributes, extra: this._extra, user: this._user, level: this._level, fingerprint: this._fingerprint || [], eventProcessors: this._eventProcessors, propagationContext: this._propagationContext, sdkProcessingMetadata: this._sdkProcessingMetadata, transactionName: this._transactionName, span: at(this), conversationId: this._conversationId }; } setSDKProcessingMetadata(e) { return this._sdkProcessingMetadata = z(this._sdkProcessingMetadata, e, 2), this; } setPropagationContext(e) { return this._propagationContext = e, this; } getPropagationContext() { return this._propagationContext; } captureException(t, n) { let r = (n == null ? void 0 : n.event_id) || F(); if (!this._client) return e && v.warn("No client configured on scope - will not capture exception!"), r; let i = /* @__PURE__ */ Error("Sentry syntheticException"); return this._client.captureException(t, { originalException: t, syntheticException: i, ...n, event_id: r }, this), r; } captureMessage(t, n, r) { var i; let a = (r == null ? void 0 : r.event_id) || F(); if (!this._client) return e && v.warn("No client configured on scope - will not capture message!"), a; let o = (i = r == null ? void 0 : r.syntheticException) == null ? Error(t) : i; return this._client.captureMessage(t, n, { originalException: t, syntheticException: o, ...r, event_id: a }, this), a; } captureEvent(t, n) { let r = t.event_id || (n == null ? void 0 : n.event_id) || F(); return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (e && v.warn("No client configured on scope - will not capture event!"), r); } _notifyScopeListeners() { this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => { e(this); }), this._notifyingListeners = !1); } }; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/defaultScopes.js function st() { return a("defaultCurrentScope", () => new V()); } function ct() { return a("defaultIsolationScope", () => new V()); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/chain-and-copy-promiselike.js var lt = (e) => e instanceof Promise && !e[ut], ut = /* @__PURE__ */ Symbol("chained PromiseLike"), dt = (e, t, n) => { let r = e.then((e) => (t(e), e), (e) => { throw n(e), e; }); return lt(r) && lt(e) ? r : ft(e, r); }, ft = (e, t) => { if (!t) return e; let n = !1; for (let r in e) { if (r in t) continue; n = !0; let i = e[r]; typeof i == "function" ? Object.defineProperty(t, r, { value: (...t) => i.apply(e, t), enumerable: !0, configurable: !0, writable: !0 }) : t[r] = i; } return n && Object.assign(t, { [ut]: !0 }), t; }, pt = class { constructor(e, t) { let n; n = e || new V(); let r; r = t || new V(), this._stack = [{ scope: n }], this._isolationScope = r; } withScope(e) { let t = this._pushScope(), n; try { n = e(t); } catch (e) { throw this._popScope(), e; } return T(n) ? dt(n, () => this._popScope(), () => this._popScope()) : (this._popScope(), n); } getClient() { return this.getStackTop().client; } getScope() { return this.getStackTop().scope; } getIsolationScope() { return this._isolationScope; } getStackTop() { return this._stack[this._stack.length - 1]; } _pushScope() { let e = this.getScope().clone(); return this._stack.push({ client: this.getClient(), scope: e }), e; } _popScope() { return this._stack.length <= 1 ? !1 : !!this._stack.pop(); } }; function H() { let e = i(r()); return e.stack = e.stack || new pt(st(), ct()); } function mt(e) { return H().withScope(e); } function ht(e, t) { let n = H(); return n.withScope(() => (n.getStackTop().scope = e, t(e))); } function gt(e) { return H().withScope(() => e(H().getIsolationScope())); } function _t() { return { withIsolationScope: gt, withScope: mt, withSetScope: ht, withSetIsolationScope: (e, t) => gt(t), getCurrentScope: () => H().getScope(), getIsolationScope: () => H().getIsolationScope() }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/asyncContext/index.js function U(e) { let t = i(e); return t.acs ? t.acs : _t(); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/attributes.js function vt(e) { return typeof e == "object" && !!e && !Array.isArray(e) && Object.keys(e).includes("value"); } function yt(e, t) { let { value: n, unit: r } = vt(e) ? e : { value: e, unit: void 0 }, i = xt(n), a = r && typeof r == "string" ? { unit: r } : {}; if (i) return { ...i, ...a }; if (!t || t === "skip-undefined" && n === void 0) return; let o = ""; try { var s; o = (s = JSON.stringify(n)) == null ? "" : s; } catch {} return { value: o, type: "string", ...a }; } function bt(e, t = !1) { let n = {}; for (let [r, i] of Object.entries(e == null ? {} : e)) { let e = yt(i, t); e && (n[r] = e); } return n; } function xt(e) { if (Array.isArray(e)) return { value: e, type: "array" }; let t = typeof e == "string" ? "string" : typeof e == "boolean" ? "boolean" : typeof e == "number" && !Number.isNaN(e) ? Number.isInteger(e) ? "integer" : "double" : null; if (t) return { value: e, type: t }; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/currentScopes.js var St; function Ct() { return St == null ? void 0 : St(); } function W() { return U(r()).getCurrentScope(); } function G() { return U(r()).getIsolationScope(); } function wt() { return a("globalScope", () => new V()); } function Tt(...e) { let t = U(r()); if (e.length === 2) { let [n, r] = e; return n ? t.withSetScope(n, r) : t.withScope(r); } return t.withScope(e[0]); } function K() { return W().getClient(); } function Et(e) { let t = Ct(); if (t) return { trace_id: t.traceId, span_id: t.spanId }; let { traceId: n, parentSpanId: r, propagationSpanId: i } = e.getPropagationContext(), a = { trace_id: n, span_id: i || tt() }; return r && (a.parent_span_id = r), a; } var Dt = "sentry.previous_trace_sample_rate", Ot = "sentry.op", kt = "sentry.origin", At = "sentry.profile_id", jt = "sentry.exclusive_time", Mt = "gen_ai.conversation.id", Nt = "_sentryScope", Pt = "_sentryIsolationScope"; function q(e) { let t = e; return { scope: t[Nt], isolationScope: rt(t[Pt]) }; } function Ft(e) { let t = It(e); if (!t) return; let n = Object.entries(t).reduce((e, [t, n]) => { if (t.startsWith("sentry-")) { let r = t.slice(7); e[r] = n; } return e; }, {}); if (Object.keys(n).length > 0) return n; } function It(e) { if (!(!e || !w(e) && !Array.isArray(e))) return Array.isArray(e) ? e.reduce((e, t) => { let n = Lt(t); return Object.entries(n).forEach(([t, n]) => { e[t] = n; }), e; }, {}) : Lt(e); } function Lt(e) { return e.split(",").map((e) => { let t = e.indexOf("="); return t === -1 ? [] : [e.slice(0, t), e.slice(t + 1)].map((e) => { try { return decodeURIComponent(e.trim()); } catch { return; } }); }).reduce((e, [t, n]) => (t && n && (e[t] = n), e), {}); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/dsn.js var Rt = /^o(\d+)\./, zt = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/; function Bt(e) { return e === "http" || e === "https"; } function Vt(e, t = !1) { let { host: n, path: r, pass: i, port: a, projectId: o, protocol: s, publicKey: c } = e; return `${s}://${c}${t && i ? `:${i}` : ""}@${n}${a ? `:${a}` : ""}/${r && `${r}/`}${o}`; } function Ht(e) { let t = zt.exec(e); if (!t) { l(() => { console.error(`Invalid Sentry Dsn: ${e}`); }); return; } let [n, r, i = "", a = "", o = "", s = ""] = t.slice(1), c = "", u = s, d = u.split("/"); if (d.length > 1 && (c = d.slice(0, -1).join("/"), u = d.pop()), u) { let e = u.match(/^\d+/); e && (u = e[0]); } return Ut({ host: a, pass: i, path: c, projectId: u, port: o, protocol: n, publicKey: r }); } function Ut(e) { return { protocol: e.protocol, publicKey: e.publicKey || "", pass: e.pass || "", host: e.host, port: e.port || "", path: e.path || "", projectId: e.projectId }; } function Wt(t) { if (!e) return !0; let { port: n, projectId: r, protocol: i } = t; return [ "protocol", "publicKey", "host", "projectId" ].find((e) => t[e] ? !1 : (v.error(`Invalid Sentry Dsn: ${e} missing`), !0)) ? !1 : r.match(/^\d+$/) ? Bt(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); } function Gt(e) { let t = e.match(Rt); return t == null ? void 0 : t[1]; } function Kt(e) { let t = e.getOptions(), { host: n } = e.getDsn() || {}, r; return t.orgId ? r = String(t.orgId) : n && (r = Gt(n)), r; } function qt(e) { let t = typeof e == "string" ? Ht(e) : Ut(e); if (!(!t || !Wt(t))) return t; } var Jt = !1; function Yt(e) { let { spanId: t, traceId: n, isRemote: r } = e.spanContext(), i = r ? t : J(e).parent_span_id, a = q(e).scope; return { parent_span_id: i, span_id: r ? (a == null ? void 0 : a.getPropagationContext().propagationSpanId) || tt() : t, trace_id: n }; } function Xt(e) { if (e && e.length > 0) return e.map(({ context: { spanId: e, traceId: t, traceFlags: n, ...r }, attributes: i }) => ({ span_id: e, trace_id: t, sampled: n === 1, attributes: i, ...r })); } function Zt(e) { return typeof e == "number" ? Qt(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Qt(e.getTime()) : L(); } function Qt(e) { return e > 9999999999 ? e / 1e3 : e; } function J(e) { if (nn(e)) return e.getSpanJSON(); let { spanId: t, traceId: n } = e.spanContext(); if (tn(e)) { let { attributes: r, startTime: i, name: a, endTime: o, status: s, links: c } = e; return { span_id: t, trace_id: n, data: r, description: a, parent_span_id: $t(e), start_timestamp: Zt(i), timestamp: Zt(o) || void 0, status: an(s), op: r[Ot], origin: r[kt], links: Xt(c) }; } return { span_id: t, trace_id: n, start_timestamp: 0, data: {} }; } function $t(e) { var t; return "parentSpanId" in e ? e.parentSpanId : "parentSpanContext" in e ? (t = e.parentSpanContext) == null ? void 0 : t.spanId : void 0; } function en(e) { var t; return { ...e, attributes: bt(e.attributes), links: (t = e.links) == null ? void 0 : t.map((e) => ({ ...e, attributes: bt(e.attributes) })) }; } function tn(e) { let t = e; return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status; } function nn(e) { return typeof e.getSpanJSON == "function"; } function rn(e) { let { traceFlags: t } = e.spanContext(); return t === 1; } function an(e) { if (!(!e || e.code === 0)) return e.code === 1 ? "ok" : e.message || "internal_error"; } var on = "_sentryRootSpan", sn = cn; function cn(e) { return e[on] || e; } function ln() { Jt || (l(() => { console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`."); }), Jt = !0); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js function un(e) { var t; if (typeof __SENTRY_TRACING__ == "boolean" && !__SENTRY_TRACING__) return !1; let n = e || ((t = K()) == null ? void 0 : t.getOptions()); return !!n && (n.tracesSampleRate != null || !!n.tracesSampler); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/sentryNonRecordingSpan.js var dn = /* @__PURE__ */ Symbol.for("sentry.nonRecordingSpan"); function fn(e) { return !!e && e[dn] === !0; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/constants.js var pn = "production", mn = "_frozenDsc"; function hn(e, t) { let n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, i = { environment: n.environment || "production", release: n.release, public_key: r, trace_id: e, org_id: Kt(t) }; return t.emit("createDsc", i), i; } function gn(e, t) { let n = t.getPropagationContext(); return n.dsc || hn(n.traceId, e); } function _n(e) { var t, n, r; let i = K(); if (!i) return {}; let a = sn(e), o = J(a), s = o.data, c = a.spanContext().traceState, l = (t = (n = c == null ? void 0 : c.get("sentry.sample_rate")) == null ? s["sentry.sample_rate"] : n) == null ? s[Dt] : t; function u(e) { return (typeof l == "number" || typeof l == "string") && (e.sample_rate = `${l}`), e; } let d = a[mn]; if (d) return u(d); let f = fn(a), p = f && a.dropReason === "ignored"; if (f && (!un(i.getOptions()) || p)) { let e = q(a).scope; if (e) { let t = { ...gn(i, e) }; return p && (t.sampled = "false"), u(t); } } let m = c == null ? void 0 : c.get("sentry.dsc"), h = m && Ft(m); if (h) return u(h); let g = hn(e.spanContext().traceId, i), _ = (r = s["sentry.source"]) == null ? s["sentry.segment.name.source"] : r, v = o.description; if (_ !== "url" && v && (g.transaction = v), un()) { var y, b; g.sampled = String(rn(a)), g.sample_rand = (y = c == null ? void 0 : c.get("sentry.sample_rand")) == null ? (b = q(a).scope) == null ? void 0 : b.getPropagationContext().sampleRand.toString() : y; } return u(g), i.emit("createDsc", g, a), g; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/scopeData.js function vn(e, t) { let { fingerprint: n, span: r, breadcrumbs: i, sdkProcessingMetadata: a } = t; xn(e, t), r && wn(e, r), Tn(e, n), Sn(e, i), Cn(e, a); } function yn(e, t) { 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: h } = t; Y(e, "extra", n), Y(e, "tags", r), Y(e, "attributes", i), Y(e, "user", a), Y(e, "contexts", o), e.sdkProcessingMetadata = z(e.sdkProcessingMetadata, c, 2), s && (e.level = s), m && (e.transactionName = m), h && (e.span = h), 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 = { ...e.propagationContext, ...p }; } function Y(e, t, n) { e[t] = z(e[t], n, 1); } function bn(e, t) { let n = wt().getScopeData(); return e && yn(n, e.getScopeData()), t && yn(n, t.getScopeData()), n; } function xn(e, t) { let { extra: n, tags: r, user: i, contexts: a, level: o, transactionName: s } = t; Object.keys(n).length && (e.extra = { ...n, ...e.extra }), Object.keys(r).length && (e.tags = { ...r, ...e.tags }), Object.keys(i).length && (e.user = { ...i, ...e.user }), Object.keys(a).length && (e.contexts = { ...a, ...e.contexts }), o && (e.level = o), s && e.type !== "transaction" && (e.transaction = s); } function Sn(e, t) { let n = [...e.breadcrumbs || [], ...t]; e.breadcrumbs = n.length ? n : void 0; } function Cn(e, t) { e.sdkProcessingMetadata = { ...e.sdkProcessingMetadata, ...t }; } function wn(e, t) { e.contexts = { trace: Yt(t), ...e.contexts }, e.sdkProcessingMetadata = { dynamicSamplingContext: _n(t), ...e.sdkProcessingMetadata }; let n = J(sn(t)).description; n && !e.transaction && e.type === "transaction" && (e.transaction = n); } function Tn(e, t) { 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; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js var X = 0, En = 1, Dn = 2; function Z(e) { return new kn((t) => { t(e); }); } function On(e) { return new kn((t, n) => { n(e); }); } var kn = class e { constructor(e) { this._state = X, this._handlers = [], this._runExecutor(e); } then(t, n) { return new e((e, r) => { this._handlers.push([ !1, (n) => { if (!t) e(n); else try { e(t(n)); } catch (e) { r(e); } }, (t) => { if (!n) r(t); else try { e(n(t)); } catch (e) { r(e); } } ]), this._executeHandlers(); }); } catch(e) { return this.then((e) => e, e); } finally(t) { return new e((e, n) => { let r, i; return this.then((e) => { i = !1, r = e, t && t(); }, (e) => { i = !0, r = e, t && t(); }).then(() => { if (i) { n(r); return; } e(r); }); }); } _executeHandlers() { if (this._state === X) return; let e = this._handlers.slice(); this._handlers = [], e.forEach((e) => { e[0] || (this._state === En && e[1](this._value), this._state === Dn && e[2](this._value), e[0] = !0); }); } _runExecutor(e) { let t = (e, t) => { if (this._state === X) { if (T(t)) { t.then(n, r); return; } this._state = e, this._value = t, this._executeHandlers(); } }, n = (e) => { t(En, e); }, r = (e) => { t(Dn, e); }; try { e(n, r); } catch (e) { r(e); } } }; //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/eventProcessors.js function An(e, t, n, r = 0) { try { let i = jn(t, n, e, r); return T(i) ? i : Z(i); } catch (e) { return On(e); } } function jn(t, n, r, i) { let a = r[i]; if (!t || !a) return t; let o = a({ ...t }, n); return e && o === null && v.log(`Event processor "${a.id || "?"}" dropped event`), T(o) ? o.then((e) => jn(e, n, r, i + 1)) : jn(o, n, r, i + 1); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js var Q, Mn, Nn, $; function Pn(e) { let n = t._sentryDebugIds, r = t._debugIds; if (!n && !r) return {}; let i = n ? Object.keys(n) : [], a = r ? Object.keys(r) : []; if ($ && i.length === Mn && a.length === Nn) return $; Mn = i.length, Nn = a.length, $ = {}, Q || (Q = {}); let o = (t, n) => { for (let r of t) { let t = n[r], i = Q == null ? void 0 : Q[r]; if (i && $ && t) $[i[0]] = t, Q && (Q[r] = [i[0], t]); else if (t) { let n = e(r); for (let e = n.length - 1; e >= 0; e--) { let i = n[e], a = i == null ? void 0 : i.filename; if (a && $ && Q) { $[a] = t, Q[r] = [a, t]; break; } } } } }; return n && o(i, n), r && o(a, r), $; } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js function Fn(e, t, n, r, i, a) { let { normalizeDepth: o = 3, normalizeMaxBreadth: s = 1e3 } = e, c = { ...t, event_id: t.event_id || n.event_id || F(), timestamp: t.timestamp || I() }, l = n.integrations || e.integrations.map((e) => e.name); In(c, e), zn(c, l), i && i.emit("applyFrameMetadata", t), t.type === void 0 && Ln(c, e.stackParser); let u = Vn(r, n.captureContext); n.mechanism && Ge(c, n.mechanism); let d = i ? i.getEventProcessors() : [], f = bn(a, u), p = [...n.attachments || [], ...f.attachments]; p.length && (n.attachments = p), vn(c, f); let m = [...d, ...f.eventProcessors]; return (n.data && n.data.__sentry__ === !0 ? Z(c) : An(m, c, n)).then((e) => (e && Rn(e), typeof o == "number" && o > 0 ? Bn(e, o, s) : e)); } function In(e, t) { let { environment: n, release: r, dist: i, maxValueLength: a } = t; e.environment = e.environment || n || "production", !e.release && r && (e.release = r), !e.dist && i && (e.dist = i); let o = e.request; if (o != null && o.url && a && (o.url = N(o.url, a)), a) { var s; (s = e.exception) == null || (s = s.values) == null || s.forEach((e) => { e.value && (e.value = N(e.value, a)); }); } } function Ln(e, t) { var n; let r = Pn(t); (n = e.exception) == null || (n = n.values) == null || n.forEach((e) => { var t; (t = e.stacktrace) == null || (t = t.frames) == null || t.forEach((e) => { e.filename && (e.debug_id = r[e.filename]); }); }); } function Rn(e) { var t; let n = {}; if ((t = e.exception) == null || (t = t.values) == null || t.forEach((e) => { var t; (t = e.stacktrace) == null || (t = t.frames) == null || t.forEach((e) => { e.debug_id && (e.abs_path ? n[e.abs_path] = e.debug_id : e.filename && (n[e.filename] = e.debug_id), delete e.debug_id); }); }), Object.keys(n).length === 0) return; e.debug_meta = e.debug_meta || {}, e.debug_meta.images = e.debug_meta.images || []; let r = e.debug_meta.images; Object.entries(n).forEach(([e, t]) => { r.push({ type: "sourcemap", code_file: e, debug_id: t }); }); } function zn(e, t) { t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]); } function Bn(e, t, n) { var r, i; if (!e) return null; let a = { ...e, ...e.breadcrumbs && { breadcrumbs: e.breadcrumbs.map((e) => ({ ...e, ...e.data && { data: M(e.data, t, n) } })) }, ...e.user && { user: M(e.user, t, n) }, ...e.contexts && { contexts: M(e.contexts, t, n) }, ...e.extra && { extra: M(e.extra, t, n) } }; return (r = e.contexts) != null && r.trace && a.contexts && (a.contexts.trace = e.contexts.trace, e.contexts.trace.data && (a.contexts.trace.data = M(e.contexts.trace.data, t, n))), e.spans && (a.spans = e.spans.map((e) => ({ ...e, ...e.data && { data: M(e.data, t, n) } }))), (i = e.contexts) != null && i.flags && a.contexts && (a.contexts.flags = M(e.contexts.flags, 3, n)), a; } function Vn(e, t) { if (!t) return e; let n = e ? e.clone() : new V(); return n.update(t), n; } function Hn(e) { if (e) return Un(e) || Gn(e) ? { captureContext: e } : e; } function Un(e) { return e instanceof V || typeof e == "function"; } var Wn = [ "user", "level", "extra", "contexts", "tags", "fingerprint", "propagationContext" ]; function Gn(e) { return Object.keys(e).some((e) => Wn.includes(e)); } //#endregion //#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/exports.js function Kn(e, t) { return W().captureException(e, Hn(t)); } function qn(e, t) { return W().captureEvent(e, t); } function Jn(e, t) { G().setContext(e, t); } function Yn(e, t) { G().setTag(e, t); } function Xn(e) { G().setUser(e); } function Zn() { return G().lastEventId(); } function Qn(e) { let n = G(), { user: r } = bn(n, W()), { userAgent: i } = t.navigator || {}, a = Ze({ user: r, ...i && { userAgent: i }, ...e }), o = n.getSession(); return (o == null ? void 0 : o.status) === "ok" && R(o, { status: "exited" }), $n(), n.setSession(a), a; } function $n() { let e = G(), t = W().getSession() || e.getSession(); t && Qe(t), er(), e.setSession(); } function er() { let e = G(), t = K(), n = e.getSession(); n && t && t.captureSession(n); } function tr(e = !1) { if (e) { $n(); return; } er(); } //#endregion export { ce as $, I as A, M as B, K as C, Tt as D, Et as E, Ue as F, D as G, ke as H, F as I, be as J, Ce as K, Re as L, Ge as M, We as N, z as O, Ke as P, se as Q, Le as R, Ot as S, G as T, we as U, Ae as V, A as W, le as X, ye as Y, ue as Z, Vt as _, a as _t, Jn as a, fe as at, jt as b, t as bt, Qn as c, T as ct, Z as d, ie as dt, he as et, gn as f, ne as ft, en as g, c as gt, J as h, v as ht, Zn as i, pe as it, L as j, R as k, Fn as l, te as lt, ln as m, l as mt, Kn as n, me as nt, Yn as o, _e as ot, pn as p, o as pt, ve as q, tr as r, de as rt, Xn as s, w as st, qn as t, E as tt, On as u, ae as ut, qt as v, i as vt, W as w, At as x, e as xt, Mt as y, n as yt, ze as z };