@expofp/floorplan
Version:
Interactive floor plan library for expos and events
3,265 lines • 99.9 kB
JavaScript
(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.47.0" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6ff75ca9-e90b-4d20-a757-0da6b8ce2c00", e._sentryDebugIdIdentifier = "sentry-dbid-6ff75ca9-e90b-4d20-a757-0da6b8ce2c00");
} catch {}
})();
import { r as e } from "./rolldown-runtime-5rOLGCTp.js";
import { Ot as t, d as n, f as r, h as i, i as a, l as o, p as s } from "./i18n-DlquqKCP.js";
import { t as c } from "./react-XuvSZP7j.js";
import { o as l, r as u, t as d } from "./is-debug-IkNSAGo8.js";
import { $ as f, A as p, B as m, C as h, D as g, E as ee, F as _, G as v, H as y, I as b, J as x, K as S, L as C, M as w, N as te, O as ne, P as re, Q as ie, R as ae, S as oe, T as se, U as T, V as ce, W as le, X as ue, Y as de, Z as fe, _ as E, _t as pe, a as me, at as he, b as ge, bt as D, c as _e, ct as ve, d as ye, dt as O, et as be, f as xe, ft as Se, g as Ce, gt as we, h as Te, ht as k, it as Ee, j as A, k as De, l as Oe, lt as ke, m as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as j, r as Re, rt as ze, s as Be, st as M, t as Ve, tt as He, u as Ue, ut as We, v as Ge, vt as Ke, w as N, x as qe, xt as P, y as Je, yt as Ye, z as F } from "./exports-CnYQMV4a.js";
import { t as Xe } from "./is-webview-DA6FLdme.js";
import { t as Ze } from "./loadImage-iqS2KHgN.js";
//#region ../config/src/lib/apply-intents.ts
function Qe(e, t) {
let n = JSON.parse(JSON.stringify(t.args));
e[t.name](...n);
}
function $e(e, t) {
for (let n of t) try {
Qe(e, n);
} catch (e) {
console.error(`Intent ${n.name} failed:`, e);
}
}
//#endregion
//#region src/utils/event-title.ts
function et(e, t) {
let n = [e.title, e.subtitle].filter(Boolean);
if (n.length) return [...n, `Expo Floor Plan by ${t}`].join(" – ");
}
function tt(e, t) {
let [n] = e.split(".");
return `${n || e} – Expo Floor Plan by ${t}`;
}
//#endregion
//#region src/internal-settings.ts
var nt = /* @__PURE__ */ e(c());
function rt(e) {
var t;
let n = (t = e.mobileLocationProvider) == null ? void 0 : t.trim();
return Object.freeze({ mobileLocationProvider: n || null });
}
//#endregion
//#region src/tools/reset.ts
function it() {
I("floorplan"), I("__searchi"), I("__mobxGlobals"), I("__store"), I("__mobxInstanceCount"), I("__resett"), I("__expofpReady");
for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && I(e);
}
function I(e) {
at(e) ? delete window[e] : window[e] = void 0;
}
function at(e) {
let t = Object.getOwnPropertyDescriptor(window, e);
return t && t.configurable;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/handlers.js
var L = {}, ot = {};
function R(e, t) {
return L[e] = L[e] || [], L[e].push(t), () => {
let n = L[e];
if (n) {
let e = n.indexOf(t);
e !== -1 && n.splice(e, 1);
}
};
}
function z(e, t) {
if (!ot[e]) {
ot[e] = !0;
try {
t();
} catch (t) {
P && k.error(`Error while instrumenting ${e}`, t);
}
}
}
function B(e, t) {
let n = e && L[e];
if (n) for (let r of n) try {
r(t);
} catch (t) {
P && k.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${O(r)}
Error:`, t);
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalError.js
var st = null;
function ct(e) {
let t = "error";
R(t, e), z(t, lt);
}
function lt() {
st = D.onerror, D.onerror = function(e, t, n, r, i) {
return B("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}), st ? st.apply(this, arguments) : !1;
}, D.onerror.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js
var ut = null;
function dt(e) {
let t = "unhandledrejection";
R(t, e), z(t, ft);
}
function ft() {
ut = D.onunhandledrejection, D.onunhandledrejection = function(e) {
return B("unhandledrejection", e), !ut || ut.apply(this, arguments);
}, D.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js
function pt(e) {
if (typeof e == "boolean") return Number(e);
let t = typeof e == "string" ? parseFloat(e) : e;
if (!(typeof t != "number" || isNaN(t) || t < 0 || t > 1)) return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js
function mt(e) {
k.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`);
}
function ht(e, t) {
if (!(t != null && t.length)) return !1;
for (let n of t) {
if (vt(n)) {
if (e.description && C(e.description, n)) return P && mt(e), !0;
continue;
}
let t = !!n.attributes && Object.keys(n.attributes).length > 0;
if (!n.name && !n.op && !t) continue;
let r = !n.name || e.description && C(e.description, n.name), i = !n.op || e.op && C(e.op, n.op), a = !n.attributes || Object.entries(n.attributes).every(([t, n]) => {
var r;
return gt((r = e.attributes) == null ? void 0 : r[t], n);
});
if (r && i && a) return P && mt(e), !0;
}
return !1;
}
function gt(e, t) {
return typeof e == "string" && (typeof t == "string" || t instanceof RegExp) ? C(e, t) : Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t;
}
function _t(e, t) {
let n = t.parent_span_id, r = t.span_id;
if (n) for (let t of e) t.parent_span_id === r && (t.parent_span_id = n);
}
function vt(e) {
return typeof e == "string" || e instanceof RegExp;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/beforeSendSpan.js
function yt(e) {
return !!e && typeof e == "function" && "_streamed" in e && !!e._streamed;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/envelope.js
function V(e, t = []) {
return [e, t];
}
function bt(e, t) {
let [n, r] = e;
return [n, [...r, t]];
}
function xt(e, t) {
let n = e[1];
for (let e of n) {
let n = e[0].type;
if (t(e, n)) return !0;
}
return !1;
}
function St(e, t) {
return xt(e, (e, n) => t.includes(n));
}
function Ct(e) {
let t = Ke(D);
return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
}
function wt(e) {
let [t, n] = e, r = JSON.stringify(t);
function i(e) {
typeof r == "string" ? r = typeof e == "string" ? r + e : [Ct(r), e] : r.push(typeof e == "string" ? Ct(e) : e);
}
for (let e of n) {
let [t, n] = e;
if (i(`
${JSON.stringify(t)}
`), typeof n == "string" || n instanceof Uint8Array) i(n);
else {
let e;
try {
e = JSON.stringify(n);
} catch {
e = JSON.stringify(m(n));
}
i(e);
}
}
return typeof r == "string" ? r : Tt(r);
}
function Tt(e) {
let t = e.reduce((e, t) => e + t.length, 0), n = new Uint8Array(t), r = 0;
for (let t of e) n.set(t, r), r += t.length;
return n;
}
function Et(e) {
let t = typeof e.data == "string" ? Ct(e.data) : e.data;
return [{
type: "attachment",
length: t.length,
filename: e.filename,
content_type: e.contentType,
attachment_type: e.attachmentType
}, t];
}
var Dt = {
sessions: "session",
event: "error",
client_report: "internal",
user_report: "default",
profile_chunk: "profile",
replay_event: "replay",
replay_recording: "replay",
check_in: "monitor",
raw_security: "security",
log: "log_item",
trace_metric: "metric"
};
function Ot(e) {
return e in Dt;
}
function kt(e) {
return Ot(e) ? Dt[e] : e;
}
function At(e) {
if (!(e != null && e.sdk)) return;
let { name: t, version: n } = e.sdk;
return {
name: t,
version: n
};
}
function jt(e, t, n, r) {
var i;
let a = (i = e.sdkProcessingMetadata) == null ? void 0 : i.dynamicSamplingContext;
return {
event_id: e.event_id,
sent_at: new Date(T()).toISOString(),
...t && { sdk: t },
...!!n && r && { dsn: E(r) },
...a && { trace: a }
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/envelope.js
function Mt(e, t) {
var n, r, i, a;
if (!t) return e;
let o = e.sdk || {};
return e.sdk = {
...o,
name: o.name || t.name,
version: o.version || t.version,
integrations: [...((n = e.sdk) == null ? void 0 : n.integrations) || [], ...t.integrations || []],
packages: [...((r = e.sdk) == null ? void 0 : r.packages) || [], ...t.packages || []],
settings: (i = e.sdk) != null && i.settings || t.settings ? {
...(a = e.sdk) == null ? void 0 : a.settings,
...t.settings
} : void 0
}, e;
}
function Nt(e, t, n, r) {
let i = At(n);
return V({
sent_at: new Date(T()).toISOString(),
...i && { sdk: i },
...!!r && t && { dsn: E(t) }
}, ["aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()]]);
}
function Pt(e, t, n, r) {
let i = At(n), a = e.type && e.type !== "replay_event" ? e.type : "event";
Mt(e, n == null ? void 0 : n.sdk);
let o = jt(e, i, r, t);
return delete e.sdkProcessingMetadata, V(o, [[{ type: a }, e]]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/hasSpanStreamingEnabled.js
function Ft(e) {
return e.getOptions().traceLifecycle === "stream";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+conventions@0.16.0/node_modules/@sentry/conventions/dist/attributes.mjs
var It = "url.full";
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/captureSpan.js
function Lt(e, t) {
var n;
let r = (n = e.attributes) == null ? e.attributes = {} : n;
Object.entries(t).forEach(([e, t]) => {
t != null && !(e in r) && (r[e] = t);
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/timer.js
function Rt(e) {
return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
}
function zt(e) {
let t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
}
function Bt(e) {
return `${zt(e)}${e.projectId}/envelope/`;
}
function Vt(e, t) {
let n = { sentry_version: "7" };
return e.publicKey && (n.sentry_key = e.publicKey), t && (n.sentry_client = `${t.name}/${t.version}`), new URLSearchParams(n).toString();
}
function Ht(e, t, n) {
return t || `${Bt(e)}?${Vt(e, n)}`;
}
function Ut(e, t) {
let n = Ge(e);
if (!n) return "";
let r = `${zt(n)}embed/error-page/`, i = `dsn=${E(n)}`;
for (let e in t) if (e !== "dsn" && e !== "onClose") if (e === "user") {
let e = t.user;
if (!e) continue;
e.name && (i += `&name=${encodeURIComponent(e.name)}`), e.email && (i += `&email=${encodeURIComponent(e.email)}`);
} else i += `&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;
return `${r}?${i}`;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integration.js
var Wt = [];
function Gt(e) {
let t = {};
return e.forEach((e) => {
let { name: n } = e, r = t[n];
r && !r.isDefaultInstance && e.isDefaultInstance || (t[n] = e);
}), Object.values(t);
}
function Kt(e) {
let t = e.defaultIntegrations || [], n = e.integrations;
t.forEach((e) => {
e.isDefaultInstance = !0;
});
let r;
if (Array.isArray(n)) r = [...t, ...n];
else if (typeof n == "function") {
let e = n(t);
r = Array.isArray(e) ? e : [e];
} else r = t;
return Gt(r);
}
function qt(e, t) {
let n = {};
return t.forEach((t) => {
t != null && t.beforeSetup && t.beforeSetup(e);
}), t.forEach((t) => {
t && Yt(e, t, n);
}), n;
}
function Jt(e, t) {
for (let n of t) n != null && n.afterAllSetup && n.afterAllSetup(e);
}
function Yt(e, t, n) {
if (n[t.name]) {
P && k.log(`Integration skipped because it was already installed: ${t.name}`);
return;
}
if (n[t.name] = t, !Wt.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), Wt.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
let n = t.preprocessEvent.bind(t);
e.on("preprocessEvent", (t, r) => n(t, r, e));
}
if (typeof t.processEvent == "function") {
let n = t.processEvent.bind(t), r = Object.assign((t, r) => n(t, r, e), { id: t.name });
e.addEventProcessor(r);
}
["processSpan", "processSegmentSpan"].forEach((n) => {
let r = t[n];
typeof r == "function" && e.on(n, (n) => r.call(t, n, e));
}), P && k.log(`Integration installed: ${t.name}`);
}
function H(e) {
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/env.js
function Xt() {
return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
}
function Zt() {
return "npm";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/node.js
function Qt() {
return !Xt() && Object.prototype.toString.call(typeof process < "u" ? process : 0) === "[object process]";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/isBrowser.js
function $t() {
return typeof window < "u" && (!Qt() || en());
}
function en() {
let e = D.process;
return (e == null ? void 0 : e.type) === "renderer";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/envelope.js
function tn(e, t) {
let n = t ? "auto" : "never";
return [{
type: "log",
item_count: e.length,
content_type: "application/vnd.sentry.items.log+json"
}, {
version: 2,
...$t() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function nn(e, t, n, r, i) {
let a = {};
return t != null && t.sdk && (a.sdk = {
name: t.sdk.name,
version: t.sdk.version
}), n && r && (a.dsn = E(r)), V(a, [tn(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/logs/internal.js
function rn(e, t) {
var n;
let r = (n = t == null ? an(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = nn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
on().set(e, []), e.emit("flushLogs"), e.sendEnvelope(a);
}
function an(e) {
return on().get(e);
}
function on() {
return pe("clientToLogBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/envelope.js
function sn(e, t) {
let n = t ? "auto" : "never";
return [{
type: "trace_metric",
item_count: e.length,
content_type: "application/vnd.sentry.items.trace-metric+json"
}, {
version: 2,
...$t() && { ingest_settings: {
infer_ip: n,
infer_user_agent: n
} },
items: e
}];
}
function cn(e, t, n, r, i) {
let a = {};
return t != null && t.sdk && (a.sdk = {
name: t.sdk.name,
version: t.sdk.version
}), n && r && (a.dsn = E(r)), V(a, [sn(e, i)]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/metrics/internal.js
function ln(e, t) {
var n;
let r = (n = t == null ? un(e) : t) == null ? [] : n;
if (r.length === 0) return;
let i = e.getOptions(), a = cn(r, i._metadata, i.tunnel, e.getDsn(), e.getDataCollectionOptions().userInfo);
dn().set(e, []), e.emit("flushMetrics"), e.sendEnvelope(a);
}
function un(e) {
return dn().get(e);
}
function dn() {
return pe("clientToMetricBufferMap", () => /* @__PURE__ */ new WeakMap());
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/spanJsonToStreamedSpan.js
function fn(e) {
return Ce({
trace_id: e.trace_id,
span_id: e.span_id,
parent_span_id: e.parent_span_id,
name: e.description || "",
start_timestamp: e.start_timestamp,
end_timestamp: e.timestamp || e.start_timestamp,
status: !e.status || e.status === "ok" || e.status === "cancelled" ? "ok" : "error",
is_segment: !1,
attributes: { ...e.data },
links: e.links
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/tracing/spans/extractGenAiSpans.js
function pn(e, t) {
var n, r;
if (e.type !== "transaction" || !((n = e.spans) != null && n.length) || !((r = e.sdkProcessingMetadata) != null && r.hasGenAiSpans) || t.getOptions().streamGenAiSpans === !1 || Ft(t)) return;
let i = [], a = [];
for (let t of e.spans) {
var o;
(o = t.op) != null && o.startsWith("gen_ai.") ? i.push(fn(t)) : a.push(t);
}
if (i.length === 0) return;
e.spans = a;
let s = t.getDataCollectionOptions().userInfo ? "auto" : "never";
return [{
type: "span",
item_count: i.length,
content_type: "application/vnd.sentry.items.span.v2+json"
}, {
version: 2,
...$t() && { ingest_settings: {
infer_ip: s,
infer_user_agent: s
} },
items: i
}];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js
var mn = /* @__PURE__ */ Symbol.for("SentryBufferFullError");
function hn(e = 100) {
let t = /* @__PURE__ */ new Set();
function n() {
return t.size < e;
}
function r(e) {
t.delete(e);
}
function i(e) {
if (!n()) return Ue(mn);
let i = e();
return t.add(i), i.then(() => r(i), () => r(i)), i;
}
function a(e) {
if (!t.size) return ye(!0);
let n = Promise.allSettled(Array.from(t)).then(() => !0);
if (!e) return n;
let r = [n, new Promise((t) => Rt(setTimeout(() => t(!1), e)))];
return Promise.race(r);
}
return {
get $() {
return Array.from(t);
},
add: i,
drain: a
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js
var gn = 60 * 1e3;
function _n(e, t = T()) {
let n = parseInt(`${e}`, 10);
if (!isNaN(n)) return n * 1e3;
let r = Date.parse(`${e}`);
return isNaN(r) ? gn : r - t;
}
function vn(e, t) {
return e[t] || e.all || 0;
}
function yn(e, t, n = T()) {
return vn(e, t) > n;
}
function bn(e, { statusCode: t, headers: n }, r = T()) {
let i = { ...e }, a = n == null ? void 0 : n["x-sentry-rate-limits"], o = n == null ? void 0 : n["retry-after"];
if (a) for (let e of a.trim().split(",")) {
let [t, n, , , a] = e.split(":", 5), o = parseInt(t, 10), s = (isNaN(o) ? 60 : o) * 1e3;
if (!n) i.all = r + s;
else for (let e of n.split(";")) e === "metric_bucket" ? (!a || a.split(";").includes("custom")) && (i[e] = r + s) : i[e] = r + s;
}
else o ? i.all = r + _n(o, r) : t === 429 && (i.all = r + 60 * 1e3);
return i;
}
function xn(e, t, n = hn(e.bufferSize || 64)) {
let r = {}, i = (e) => n.drain(e);
function a(i) {
let a = [];
if (xt(i, (t, n) => {
let i = kt(n);
yn(r, i) ? e.recordDroppedEvent("ratelimit_backoff", i) : a.push(t);
}), a.length === 0) return Promise.resolve({});
let o = V(i[0], a), s = (t) => {
if (St(o, ["client_report"])) {
P && k.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);
return;
}
xt(o, (n, r) => {
e.recordDroppedEvent(t, kt(r));
});
};
return n.add(() => t({ body: wt(o) }).then((e) => e.statusCode === 413 ? (P && k.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."), s("send_error"), e) : (P && e.statusCode !== void 0 && (e.statusCode < 200 || e.statusCode >= 300) && k.warn(`Sentry responded with status code ${e.statusCode} to sent event.`), r = bn(r, e), e), (e) => {
throw s("network_error"), P && k.error("Encountered error running transport request:", e), e;
})).then((e) => e, (e) => {
if (e === mn) return P && k.error("Skipped sending event because buffer is full."), s("queue_overflow"), Promise.resolve({});
throw e;
});
}
return {
send: a,
flush: i
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/clientreport.js
function Sn(e, t, n) {
let r = [{ type: "client_report" }, {
timestamp: n || p(),
discarded_events: e
}];
return V(t ? { dsn: t } : {}, [r]);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js
function Cn(e) {
let t = [];
e.message && t.push(e.message);
try {
let n = e.exception.values[e.exception.values.length - 1];
n != null && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`));
} catch {}
return t;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js
function wn(e) {
var t, n, r;
let { trace_id: i, parent_span_id: a, span_id: o, status: s, origin: c, data: l, op: u } = (t = (n = e.contexts) == null ? void 0 : n.trace) == null ? {} : t;
return {
data: l == null ? {} : l,
description: e.transaction,
op: u,
parent_span_id: a,
span_id: o == null ? "" : o,
start_timestamp: (r = e.start_timestamp) == null ? 0 : r,
status: s,
timestamp: e.timestamp,
trace_id: i == null ? "" : i,
origin: c,
profile_id: l == null ? void 0 : l[qe],
exclusive_time: l == null ? void 0 : l[ge],
measurements: e.measurements,
is_segment: !0
};
}
function Tn(e) {
return {
type: "transaction",
timestamp: e.timestamp,
start_timestamp: e.start_timestamp,
transaction: e.description,
contexts: { trace: {
trace_id: e.trace_id,
span_id: e.span_id,
parent_span_id: e.parent_span_id,
op: e.op,
status: e.status,
origin: e.origin,
data: {
...e.data,
...e.profile_id && { "sentry.profile_id": e.profile_id },
...e.exclusive_time && { "sentry.exclusive_time": e.exclusive_time }
}
} },
measurements: e.measurements
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/filtering-snippets.js
var En = [
"forwarded",
"-ip",
"remote-",
"via",
"-user"
];
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/defaultPiiToCollectionOptions.js
function Dn(e) {
return e === !0 ? {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
urlQueryParams: !0,
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !0,
outputs: !0
},
databaseQueryData: !0,
stackFrameVariables: !0,
frameContextLines: 7
} : {
userInfo: !1,
cookies: { deny: En },
httpHeaders: {
request: { deny: En },
response: { deny: En }
},
httpBodies: [],
urlQueryParams: { deny: En },
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !1,
outputs: !1
},
databaseQueryData: !1,
stackFrameVariables: !0,
frameContextLines: 7
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/data-collection/resolveDataCollectionOptions.js
var On = {
userInfo: !0,
cookies: !0,
httpHeaders: {
request: !0,
response: !0
},
httpBodies: [
"incomingRequest",
"outgoingRequest",
"incomingResponse",
"outgoingResponse"
],
urlQueryParams: !0,
graphQL: {
document: !0,
variables: !0
},
genAI: {
inputs: !0,
outputs: !0
},
databaseQueryData: !0,
stackFrameVariables: !0,
frameContextLines: 5
};
function kn(e) {
var t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, ee, _, v, y, b;
let x = e.dataCollection == null ? Dn(e.sendDefaultPii) : On, S = (t = e.dataCollection) == null ? {} : t;
return {
userInfo: (n = S.userInfo) == null ? x.userInfo : n,
cookies: (r = S.cookies) == null ? x.cookies : r,
httpHeaders: {
request: (i = (a = S.httpHeaders) == null ? void 0 : a.request) == null ? x.httpHeaders.request : i,
response: (o = (s = S.httpHeaders) == null ? void 0 : s.response) == null ? x.httpHeaders.response : o
},
httpBodies: (c = S.httpBodies) == null ? x.httpBodies : c,
urlQueryParams: (l = (u = S.urlQueryParams) == null ? S.queryParams : u) == null ? x.urlQueryParams : l,
graphQL: {
document: (d = (f = S.graphQL) == null ? void 0 : f.document) == null ? x.graphQL.document : d,
variables: (p = (m = S.graphQL) == null ? void 0 : m.variables) == null ? x.graphQL.variables : p
},
genAI: {
inputs: (h = (g = S.genAI) == null ? void 0 : g.inputs) == null ? x.genAI.inputs : h,
outputs: (ee = (_ = S.genAI) == null ? void 0 : _.outputs) == null ? x.genAI.outputs : ee
},
databaseQueryData: (v = S.databaseQueryData) == null ? x.databaseQueryData : v,
stackFrameVariables: (y = S.stackFrameVariables) == null ? x.stackFrameVariables : y,
frameContextLines: (b = S.frameContextLines) == null ? x.frameContextLines : b
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/client.js
var An = "Not capturing exception because it's already been captured.", jn = "Discarded session because of missing or non-string release", Mn = /* @__PURE__ */ Symbol.for("SentryInternalError"), Nn = /* @__PURE__ */ Symbol.for("SentryDoNotSendEventError"), Pn = 5e3;
function Fn(e) {
return {
message: e,
[Mn]: !0
};
}
function In(e) {
return {
message: e,
[Nn]: !0
};
}
function Ln(e) {
return Ne(e) && Mn in e;
}
function Rn(e) {
return Ne(e) && Nn in e;
}
function zn(e, t, n, r, i) {
let a = 0, o, s = !1;
e.on(n, () => {
a = 0, clearTimeout(o), s = !1;
}), e.on(t, (t) => {
if (a += r(t), a >= 8e5) i(e);
else if (!s) {
var n;
let t = (n = e.getOptions()._flushInterval) == null ? Pn : n;
t > 0 && (s = !0, o = Rt(setTimeout(() => {
i(e);
}, t)));
}
}), e.on("flush", () => {
i(e);
});
}
var Bn = class {
constructor(e) {
var t, n, r, i, a, o, s;
if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = hn((t = (n = e.transportOptions) == null ? void 0 : n.bufferSize) == null ? 64 : t), this._dataCollection = kn(e), e.dsn ? this._dsn = Ge(e.dsn) : P && k.warn("No DSN provided, client will not send events."), this._dsn) {
let t = Ht(this._dsn, e.tunnel, e._metadata ? e._metadata.sdk : void 0);
this._transport = e.transport({
tunnel: this._options.tunnel,
recordDroppedEvent: this.recordDroppedEvent.bind(this),
...e.transportOptions,
url: t
});
}
this._options.enableLogs = (r = this._options.enableLogs) == null ? (i = this._options._experiments) == null ? void 0 : i.enableLogs : r, this._options.enableLogs && zn(this, "afterCaptureLog", "flushLogs", qn, rn), ((a = (o = this._options.enableMetrics) == null ? (s = this._options._experiments) == null ? void 0 : s.enableMetrics : o) == null || a) && zn(this, "afterCaptureMetric", "flushMetrics", Kn, ln);
}
captureException(e, t, n) {
let r = b();
if (re(e)) return P && k.log(An), r;
let i = {
event_id: r,
...t
};
return this._process(() => this.eventFromException(e, i).then((e) => this._captureEvent(e, i, n)).then((e) => e), "error"), i.event_id;
}
captureMessage(e, t, n, r) {
let i = {
event_id: b(),
...n
}, a = ze(e) ? e : String(e), o = he(e), s = o ? this.eventFromMessage(a, t, i) : this.eventFromException(e, i);
return this._process(() => s.then((e) => this._captureEvent(e, i, r)), o ? "unknown" : "error"), i.event_id;
}
captureEvent(e, t, n) {
let r = b();
if (t != null && t.originalException && re(t.originalException)) return P && k.log(An), r;
let i = {
event_id: r,
...t
}, a = e.sdkProcessingMetadata || {}, o = a.capturedSpanScope, s = a.capturedSpanIsolationScope, c = Vn(e.type);
return this._process(() => this._captureEvent(e, i, o || n, s), c), i.event_id;
}
captureSession(e) {
this.sendSession(e), De(e, { init: !1 });
}
getDsn() {
return this._dsn;
}
getOptions() {
return this._options;
}
getDataCollectionOptions() {
return this._dataCollection;
}
getSdkMetadata() {
return this._options._metadata;
}
getTransport() {
return this._transport;
}
async flush(e) {
let t = this._transport;
if (this.emit("flush"), !t) return !0;
let n = await this._isClientDoneProcessing(e), r = await t.flush(e);
return n && r;
}
async close(e) {
let t = await this.flush(e);
return this.getOptions().enabled = !1, this.emit("close"), t;
}
getEventProcessors() {
return this._eventProcessors;
}
addEventProcessor(e) {
this._eventProcessors.push(e);
}
init() {
(this._isEnabled() || this._options.integrations.some(({ name: e }) => e.startsWith("Spotlight"))) && this._setupIntegrations();
}
getIntegrationByName(e) {
return this._integrations[e];
}
getIntegrationNames() {
return Object.keys(this._integrations);
}
addIntegration(e) {
let t = this._integrations[e.name];
!t && e.beforeSetup && e.beforeSetup(this), Yt(this, e, this._integrations), t || Jt(this, [e]);
}
sendEvent(e, t = {}) {
this.emit("beforeSendEvent", e, t);
let n = pn(e, this), r = Pt(e, this._dsn, this._options._metadata, this._options.tunnel);
for (let e of t.attachments || []) r = bt(r, Et(e));
n && (r = bt(r, n)), this.sendEnvelope(r).then((t) => this.emit("afterSendEvent", e, t));
}
sendSession(e) {
let { release: t, environment: n = Ie } = this._options;
if ("aggregates" in e) {
let r = e.attrs || {};
if (!r.release && !t) {
P && k.warn(jn);
return;
}
r.release = r.release || t, r.environment = r.environment || n, e.attrs = r;
} else {
if (!e.release && !t) {
P && k.warn(jn);
return;
}
e.release = e.release || t, e.environment = e.environment || n;
}
this.emit("beforeSendSession", e);
let r = Nt(e, this._dsn, this._options._metadata, this._options.tunnel);
this.sendEnvelope(r);
}
recordDroppedEvent(e, t, n = 1) {
if (this._options.sendClientReports) {
let r = `${e}:${t}`;
P && k.log(`Recording outcome: "${r}"${n > 1 ? ` (${n} times)` : ""}`), this._outcomes[r] = (this._outcomes[r] || 0) + n;
}
}
on(e, t) {
let n = this._hooks[e] = this._hooks[e] || /* @__PURE__ */ new Set(), r = (...e) => t(...e);
return n.add(r), () => {
n.delete(r);
};
}
emit(e, ...t) {
let n = this._hooks[e];
n && n.forEach((e) => e(...t));
}
async sendEnvelope(e) {
if (this.emit("beforeEnvelope", e), this._isEnabled() && this._transport) try {
return await this._transport.send(e);
} catch (e) {
return P && k.error("Error while sending envelope:", e), {};
}
return P && k.error("Transport disabled"), {};
}
registerCleanup(e) {}
dispose() {}
_setupIntegrations() {
let { integrations: e } = this._options;
this._integrations = qt(this, e), Jt(this, e);
}
_updateSessionFromEvent(e, t) {
var n;
let r = t.level === "fatal", i = !1, a = (n = t.exception) == null ? void 0 : n.values;
if (a) {
i = !0, r = !1;
for (let e of a) {
var o;
if (((o = e.mechanism) == null ? void 0 : o.handled) === !1) {
r = !0;
break;
}
}
}
let s = e.status === "ok";
(s && e.errors === 0 || s && r) && (De(e, {
...r && { status: "crashed" },
errors: e.errors || Number(i || r)
}), this.captureSession(e));
}
async _isClientDoneProcessing(e) {
let t = 0;
for (; !e || t < e;) {
if (await new Promise((e) => setTimeout(e, 1)), !this._numProcessing) return !0;
t++;
}
return !1;
}
_isEnabled() {
return this.getOptions().enabled !== !1 && this._transport !== void 0;
}
_prepareEvent(e, t, n, r) {
let i = this.getOptions(), a = this.getIntegrationNames();
return !t.integrations && a.length && (t.integrations = a), this.emit("preprocessEvent", e, t), e.type || r.setLastEventId(e.event_id || t.event_id), Oe(i, e, t, n, this, r).then((e) => {
var r;
return e === null ? e : (this.emit("postprocessEvent", e, t), e.contexts = {
trace: {
...(r = e.contexts) == null ? void 0 : r.trace,
...ee(n)
},
...e.contexts
}, e.sdkProcessingMetadata = {
dynamicSamplingContext: xe(this, n),
...e.sdkProcessingMetadata
}, e);
});
}
_captureEvent(e, t = {}, n = N(), r = se()) {
return P && Wn(e) && k.log(`Captured error event \`${Cn(e)[0] || "<unknown>"}\``), this._processEvent(e, t, n, r).then((e) => e.event_id, (e) => {
P && (Rn(e) ? k.log(e.message) : Ln(e) ? k.warn(e.message) : k.warn(e));
});
}
_processEvent(e, t, n, r) {
let i = this.getOptions(), { sampleRate: a } = i, o = Gn(e), s = Wn(e), c = `before send for type \`${e.type || "error"}\``, l = a === void 0 ? void 0 : pt(a);
if (s && typeof l == "number" && le() > l) return this.recordDroppedEvent("sample_rate", "error"), Ue(In(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));
let u = Vn(e.type);
return this._prepareEvent(e, t, n, r).then((e) => {
var n;
if (e === null) throw this.recordDroppedEvent("event_processor", u), In("An event processor returned `null`, will not send event.");
return ((n = t.data) == null ? void 0 : n.__sentry__) === !0 ? e : Hn(Un(this, i, e, t), c);
}).then((i) => {
if (i === null) {
if (this.recordDroppedEvent("before_send", u), o) {
let t = 1 + (e.spans || []).length;
this.recordDroppedEvent("before_send", "span", t);
}
throw In(`${c} returned \`null\`, will not send event.`);
}
let a = n.getSession() || r.getSession();
if (s && a && this._updateSessionFromEvent(a, i), o) {
var l;
let e = (((l = i.sdkProcessingMetadata) == null ? void 0 : l.spanCountBeforeProcessing) || 0) - (i.spans ? i.spans.length : 0);
e > 0 && this.recordDroppedEvent("before_send", "span", e);
}
let d = i.transaction_info;
return o && d && i.transaction !== e.transaction && (i.transaction_info = {
...d,
source: "custom"
}), this.sendEvent(i, t), i;
}).then(null, (e) => {
throw Rn(e) || Ln(e) ? e : (this.captureException(e, {
mechanism: {
handled: !1,
type: "internal"
},
data: { __sentry__: !0 },
originalException: e
}), Fn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${e}`));
});
}
_process(e, t) {
this._numProcessing++, this._promiseBuffer.add(e).then((e) => (this._numProcessing--, e), (e) => (this._numProcessing--, e === mn && this.recordDroppedEvent("queue_overflow", t), e));
}
_clearOutcomes() {
let e = this._outcomes;
return this._outcomes = {}, Object.entries(e).map(([e, t]) => {
let [n, r] = e.split(":");
return {
reason: n,
category: r,
quantity: t
};
});
}
_flushOutcomes() {
P && k.log("Flushing outcomes...");
let e = this._clearOutcomes();
if (e.length === 0) {
P && k.log("No outcomes to send");
return;
}
if (!this._dsn) {
P && k.log("No dsn provided, will not send outcomes");
return;
}
P && k.log("Sending outcomes:", e);
let t = Sn(e, this._options.tunnel && E(this._dsn));
this.sendEnvelope(t);
}
};
function Vn(e) {
return e === "replay_event" ? "replay" : e || "error";
}
function Hn(e, t) {
let n = `${t} must return \`null\` or a valid event.`;
if (ve(e)) return e.then((e) => {
if (!Ee(e) && e !== null) throw Fn(n);
return e;
}, (e) => {
throw Fn(`${t} rejected with ${e}`);
});
if (!Ee(e) && e !== null) throw Fn(n);
return e;
}
function Un(e, t, n, r) {
let { beforeSend: i, beforeSendTransaction: a, ignoreSpans: o } = t, s = !yt(t.beforeSendSpan) && t.beforeSendSpan, c = n;
if (Wn(c) && i) return i(c, r);
if (Gn(c)) {
if (s || o) {
let t = wn(c);
if (o != null && o.length && ht({
description: t.description,
op: t.op,
attributes: t.data
}, o)) return null;
if (s) {
let e = s(t);
e ? c = ne(n, Tn(e)) : Ae();
}
if (c.spans) {
let t = [], n = c.spans;
for (let e of n) {
if (o != null && o.length && ht({
description: e.description,
op: e.op,
attributes: e.data
}, o)) {
_t(n, e);
continue;
}
if (s) {
let n = s(e);
n ? t.push(n) : (Ae(), t.push(e));
} else t.push(e);
}
let r = c.spans.length - t.length;
r && e.recordDroppedEvent("before_send", "span", r), c.spans = t;
}
}
if (a) {
if (c.spans) {
let e = c.spans.length;
c.sdkProcessingMetadata = {
...n.sdkProcessingMetadata,
spanCountBeforeProcessing: e
};
}
return a(c, r);
}
}
return c;
}
function Wn(e) {
return e.type === void 0;
}
function Gn(e) {
return e.type === "transaction";
}
function Kn(e) {
let t = 0;
return e.name && (t += e.name.length * 2), t += 8, t + Jn(e.attributes);
}
function qn(e) {
let t = 0;
return e.message && (t += e.message.length * 2), t + Jn(e.attributes);
}
function Jn(e) {
if (!e) return 0;
let t = 0;
return Object.values(e).forEach((e) => {
Array.isArray(e) ? t += e.length * Yn(e[0]) : he(e) ? t += Yn(e) : t += 100;
}), t;
}
function Yn(e) {
return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/sdk.js
function Xn(e, t) {
t.debug === !0 && (P ? k.enable() : je(() => {
console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
})), N().update(t.initialScope);
let n = new e(t);
return Zn(n), n.init(), n;
}
function Zn(e) {
N().setClient(e);
}
var Qn = 5e3, $n = 36e5;
function er(e) {
function t(...e) {
P && k.log("[Offline]:", ...e);
}
return (n) => {
let r = e(n);
if (!n.createStore) throw Error("No `createStore` function was provided");
let i = n.createStore(n), a = Qn, o;
function s(e, t, r) {
return St(e, ["client_report"]) ? !1 : !n.shouldStore || n.shouldStore(e, t, r);
}
function c(e) {
o && clearTimeout(o), o = Rt(setTimeout(async () => {
o = void 0;
let e = await i.shift();
e && (t("Attempting to send previously queued event"), e[0].sent_at = new Date(T()).toISOString(), u(e, !0).catch((e) => {
t("Failed to retry sending", e);
}));
}, e));
}
function l() {
o || (c(a), a = Math.min(a * 2, $n));
}
async function u(e, o = !1) {
if (!o && St(e, ["replay_event", "replay_recording"])) return await i.push(e), c(100), {};
try {
if (n.shouldSend && await n.shouldSend(e) === !1) throw Error("Envelope not sent because `shouldSend` callback returned false");
let t = await r.send(e), i = 100;
if (t) {
var u, d;
if ((u = t.headers) != null && u["retry-after"]) i = _n(t.headers["retry-after"]);
else if ((d = t.headers) != null && d["x-sentry-rate-limits"]) i = 6e4;
else if ((t.statusCode || 0) >= 400) return t;
}
return c(i), a = Qn, t;
} catch (n) {
if (await s(e, n, a)) return o ? await i.unshift(e) : await i.push(e), l(), t("Error sending. Event queued.", n), {};
throw n;
}
}
return n.flushAtStartup && l(), {
send: u,
flush: (e) => (e === void 0 && (a = Qn, c(100)), r.flush(e))
};
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/url.js
function tr(e) {
if (!e) return {};
let t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t) return {};
let n = t[6] || "", r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
search: n,
hash: r,
relative: t[5] + n + r
};
}
function nr(e, t = !0) {
if (e.startsWith("data:")) {
let n = e.match(/^data:([^;,]+)/), r = n ? n[1] : "text/plain", i = e.includes(";base64,"), a = e.indexOf(","), o = "";
if (t && a !== -1) {
let t = e.slice(a + 1);
o = t.length > 10 ? `${t.slice(0, 10)}... [truncated]` : t;
}
return `data:${r}${i ? ",base64" : ""}${o ? `,${o}` : ""}`;
}
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js
function rr(e) {
if ("aggregates" in e) {
var t;
((t = e.attrs) == null ? void 0 : t.ip_address) === void 0 && (e.attrs = {
...e.attrs,
ip_address: "{{auto}}"
});
} else e.ipAddress === void 0 && (e.ipAddress = "{{auto}}");
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js
function ir(e, t, n = [t], r = "npm") {
let i = (e._metadata = e._metadata || {}).sdk = e._metadata.sdk || {};
i.name || (i.name = `sentry.javascript.${t}`, i.packages = n.map((e) => ({
name: `${r}:@sentry/${e}`,
version: Ye
})), i.version = Ye);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/breadcrumbs.js
var ar = 100;
function U(e, t) {
let n = h(), r = se();
if (!n) return;
let { beforeBreadcrumb: i = null, maxBreadcrumbs: a = ar } = n.getOptions();
if (a <= 0) return;
let o = {
timestamp: p(),
...e
}, s = i ? je(() => i(o, t)) : o;
s !== null && (n.emit && n.emit("beforeAddBreadcrumb", s, t), r.addBreadcrumb(s, a));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js
var or = "FunctionToString", sr = /* @__PURE__ */ new WeakMap(), cr = H((() => ({
name: or,
setupOnce() {
let e = Function.prototype.toString;
try {
Function.prototype.toString = function(...t) {
var n;
let r = x(this), i;
try {
sr.has(h()) && r !== void 0 && (i = r);
} catch {}
return e.apply((n = i) == null ? this : n, t);
};
} catch {}
},
setup(e) {
sr.set(e, !0);
}
}))), lr = [
/^Script error\.?$/,
/^Javascript error: Script error\.? on line 0$/,
/^ResizeObserver loop completed with undelivered notifications.$/,
/^Cannot redefine property: googletag$/,
/^Can't find variable: gmo$/,
/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,
/can't redefine non-configurable property "solana"/,
/vv\(\)\.getRestrictions is not a function/,
/Can't find variable: _AutofillCallbackHandler/,
/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,
/^Java exception was raised during method invocation$/
], ur = "EventFilters", dr = H((e = {}) => {
let t;
return {
name: ur,
setup(n) {
t = pr(e, n.getOptions());
},
processEvent(n, r, i) {
return t || (t = pr(e, i.getOptions())), mr(n, t) ? null : n;
}
};
}), fr = H(((e = {}) => ({
...dr(e),
name: "InboundFilters"
})));
function pr(e = {}, t = {}) {
return {
allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
ignoreErrors: [
...e.ignoreErrors || [],
...t.ignoreErrors || [],
...e.disableErrorDefaults ? [] : lr
],
ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []]
};
}
function mr(e, t) {
if (!e.type) {
if (hr(e, t.ignoreErrors)) return P && k.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${_(e)}`), !0;
if (xr(e)) return P && k.warn(`Event dropped due to not having an error message, error type or stacktrace.
Event: ${_(e)}`), !0;
if (_r(e, t.denyUrls)) return P && k.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${_(e)}.
Url: ${br(e)}`), !0;
if (!vr(e, t.allowUrls)) return P && k.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${_(e)}.
Url: ${br(e)}`), !0;
} else if (e.type === "transaction" && gr(e, t.ignoreTransactions)) return P && k.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${_(e)}`), !0;
return !1;
}
function hr(e, t) {
return t != null && t.length ? Cn(e).some((e) => F(e, t)) : !1;
}
function gr(e, t) {
if (!(t != null && t.length)) return !1;
let n = e.transaction;
return n ? F(n, t) : !1;
}
function _r(e, t) {
if (!(t != null && t.length)) return !1;
let n = br(e);
return n ? F(n, t) : !1;
}
function vr(e, t) {
if (!(t != null && t.length)) return !0;
let n = br(e);
return !n || F(n, t);
}
function yr(e = []) {
for (let t = e.length - 1; t >= 0; t--) {
let n = e[t];
if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]") return n.filename || null;
}
return null;
}
function br(e) {
try {
var t, n, r;
let i = [...(t = (n = e.exception) == null ? void 0 : n.values) == null ? [] : t].reverse().find((e) => {
var t, n;
return ((t = e.mechanism) == null ? void 0 : t.parent_id) === void 0 && ((n = e.stacktrace) == null || (n = n.frames) == null ? void 0 : n.length);
}), a = i == null || (r = i.stacktrace) == null ? void 0 : r.frames;
return a ? yr(a) : null;
} catch {
return P && k.error(`Cannot extract url for event ${_(e)}`), null;
}
}
function xr(e) {
var t;
return !((t = e.exception) == null || (t = t.values) == null) && t.length ? !e.message && !e.exception.values.some((e) => e.stacktrace || e.type && e.type !== "Error" || e.value) : !1;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js
function Sr(e, t, n, r, i, a) {
var o;
if (!((o = i.exception) != null && o.values) || !a || !He(a.originalException, Error)) return;
let s = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
s && (i.exception.values = Cr(e, t, r, a.originalException, n, i.exception.values, s, 0));
}
function Cr(e, t, n, r, i, a, o, s) {
if (a.length >= n + 1) return a;
let c = [...a];
if (He(r[i], Error)) {
Tr(o, s, r);
let a = e(t, r[i]), l = c.length;
Er(a, i, l, s), c = Cr(e, t, n, r[i], i, [a, ...c], a, l);
}
return wr(r) && r.errors.forEach((a, l) => {
if (He(a, Error)) {
Tr(o, s, r);
let u = e(t, a), d = c.length;
Er(u, `errors[${l}]`, d, s), c = Cr(e, t, n, a, i, [u, ...c], u, d);
}
}), c;
}
function wr(e) {
return Array.isArray(e.errors);
}
function Tr(e, t, n) {
e.mechanism = {
handled: !0,
type: "auto.core.linked_errors",
...wr(n) && { is_exception_group: !0 },
...e.mechanism,
exception_id: t
};
}
function Er(e, t, n, r) {
e.mechanism = {
handled: !0,
...e.mechanism,
type: "chained",
source: t,
exception_id: n,
parent_id: r
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js
function Dr(e) {
return ie(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
}
function Or(e) {
return Dr(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/console.js
var kr = /* @__PURE__ */ new Set([]);
function Ar(e) {
let t = "console", n = R(t, e);
return z(t, Mr), n;
}
var jr = /* @__PURE__ */ new Set();
function Mr() {
"console" in D && Le.forEach(function(e) {
jr.has(e) || !(e in D.console) || (jr.add(e), j(D.console, e, function(t) {
return we[e] = t, function(...t) {
let n = t[0], r = we[e], i = kr.size && typeof n == "string" && F(n, kr);
i || B("console", {
args: t,
level: e
}), (!i || P && k.isEnabled()) && (r == null || r.apply(D.console, t));
};
}));
});
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/severity.js
function Nr(e) {
return e === "warn" ? "warning" : [
"fatal",
"error",
"warning",
"log",
"info",
"debug"
].includes(e) ? e : "log";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js
var Pr = "Dedupe", Fr = H((() => {
let e;
return {
name: Pr,
processEvent(t) {
if (t.type) return t;
try {
if (Ir(t, e)) return P && k.warn("Event dropped due to being a duplicate of previously captured event."), null;
} catch {}
return e = t;
}
};
}));
function Ir(e, t) {
return t ? !!(Lr(e, t) || Rr(e, t)) : !1;
}
function Lr(e, t) {
let n = e.message, r = t.message;
return !(!n && !r || n && !r || !n && r || n !== r || !Br(e, t) || !zr(e, t));
}
function Rr(e, t) {
let n = Vr(t), r = Vr(e);
return !(!n || !r || n.type !== r.type || n.value !== r.value || !Br(e, t) || !zr(e, t));
}
function zr(e, t) {
let n = We(e), r = We(t);
if (!n && !r) return !0;
if (n && !r || !n && r || (n = n, r = r, r.length !== n.length)) return !1;
for (let e = 0; e < r.length; e++) {
let t = r[e], i = n[e];
if (t.filename !== i.filename || t.lineno !== i.lineno || t.colno !== i.colno || t.function !== i.function) return !1;
}
return !0;
}
function Br(e, t) {
let n = e.fingerprint, r = t.fingerprint;
if (!n && !r) return !0;
if (n && !r || !n && r) return !1;
n = n, r = r;
try {
return n.join("") === r.join("");
} catch {
return !1;
}
}
function Vr(e) {
var t;
return (t = e.exception) == null || (t = t.values) == null ? void 0 : t[0];
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js
var Hr = "ConversationId", Ur = H((() => ({
name: Hr,
setup(e) {
e.on("spanStart", (e) => {
let t = N().getScopeData(), n = se().getScopeData(), r = t.conversationId || n.conversationId;
if (r) {
let { op: t, data: n, description: i } = Te(e);
if (!(t != null && t.startsWith("gen_ai.")) && !n["ai.operationId"] && !(i != null && i.startsWith("ai."))) return;
e.setAttribute(Je, r);
}
});
}
})));
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js
function Wr(e) {
if (e !== void 0) {
if (e >= 400 && e < 500) return "warning";
if (e >= 500) return "error";
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/supports.js
var W = D;
function Gr() {
return "history" in W && !!W.history;
}
function Kr() {
if (!("fetch" in W)) return !1;
try {
return new Headers(), new Request("data:,"), new Response(), !0;
} catch {
return !1;
}
}
function qr(e) {
return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
}
function Jr() {
if (typeof EdgeRuntime == "string") return !0;
if (!Kr()) return !1;
if (qr(W.fetch)) return !0;
let e = !1, t = W.document;
if (t && typeof t.createElement == "function") try {
var n;
let r = t.createElement("iframe");
r.hidden = !0, t.head.appendChild(r), (n = r.contentWindow) != null && n.fetch && (e = qr(r.contentWindow.fetch)), t.head.removeChild(r);
} catch (e) {
P && k.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e);
}
return e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/instrument/fetch.js
function Yr(e, t) {
let n = "fetch", r = R(n, e);
return z(n, () => Xr(void 0, t)), r;
}
function Xr(e, t = !1) {
t && !Jr() || j(D, "fetch", function(t) {
return function(...n) {
let r = /* @__PURE__ */ Error(), { method: i, url: a } = $r(n), o = {
args: n,
fetchData: {
method: i,
url: a
},
startTimestamp: A() * 1e3,
virtualError: r,
headers: ei(n)
};
return e || B("fetch", { ...o }), t.apply(D, n).then(async (t) => (e ? e(t) : B("fetch", {
...o,
endTimestamp: A() * 1e3,
response: t
}), t), (e) => {
var t;
B("fetch", {
...o,
endTimestamp: A() * 1e3,
error: e
}), ie(e) && e.stack === void 0 && (e.stack = r.stack, v(e, "framesToPop", 1));
let n = h(), i = (t = n == null ? void 0 : n.getOptions().enhanceFetchErrorMessages) == null ? "always" : t;
if (i !== !1 && e instanceof TypeError && (e.message === "Failed to fetch" || e.message === "Load failed" || e.message === "NetworkError when attempting to fetch resource.")) try {
let t = new URL(o.fetchData.url).host;
i === "always" ? e.message = `${e.message} (${t})` : v(e, "__sentry_fetch_url_host__", t);
} catch {}
throw e;
});
};
});
}
function Zr(e, t) {
return Ne(e) && !!e[t];
}
function Qr(e) {
return typeof e == "string" ? e : e ? Zr(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
}
function $r(e) {
if (e.length === 0) return {
method: "GET",
url: ""
};
if (e.length === 2) {
let [t, n] = e;
return {
url: Qr(t),
method: Zr(n, "method") ? String(n.method).toUpperCase() : Fe(t) && Zr(t, "method") ? String(t.method).toUpperCase() : "GET"
};
}
let t = e[0];
return {
url: Qr(t),
method: Zr(t, "method") ? String(t.method).toUpperCase() : "GET"
};
}
function ei(e) {
let [t, n] = e;
try {
if (typeof n == "object" && n && "headers" in n && n.headers) return new Headers(n.headers);
if (Fe(t)) return new Headers(t.headers);
} catch {}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+core@10.69.0/node_modules/@sentry/core/build/esm/utils/browser.js
var ti = D;
function ni() {
try {
return ti.document.location.href;
} catch {
return "";
}
}
function ri(e, t = 5) {
if (!ti.HTMLElement) return null;
let n = e;
for (let e = 0; e < t; e++) {
if (!n) return null;
if (n instanceof HTMLElement) {
if (n.dataset.sentryComponent) return n.dataset.sentryComponent;
if (n.dataset.sentryElement) return n.dataset.sentryElement;
}
n = n.parentNode;
}
return null;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/helpers.js
var G = D, ii = 0;
function ai() {
return ii > 0;
}
function oi() {
ii++, setTimeout(() => {
ii--;
});
}
function K(e, t = {}) {
function n(e) {
return typeof e == "function";
}
if (!n(e)) return e;
try {
if (Object.prototype.hasOwnProperty.call(e, "__sentry_wrapped__")) {
let t = e.__sentry_wrapped__;
return typeof t == "function" ? t : e;
}
if (x(e)) return e;
} catch {
return e;
}
let r = function(...n) {
D._sentryWrappedDepth = (D._sentryWrappedDepth || 0) + 1;
try {
let r = n.map((e) => K(e, t));
return e.apply(this, r);
} catch (e) {
throw oi(), g((r) => {
r.addEventProcessor((e) => (t.mechanism && (te(e, void 0, void 0), w(e, t.mechanism)), e.extra = {
...e.extra,
arguments: n
}, e)), Me(e);
}), e;
} finally {
D._sentryWrappedDepth = (D._sentryWrappedDepth || 0) - 1;
}
};
try {
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = e[t]);
} catch {}
de(r, e), v(e, "__sentry_wrapped__", r);
try {
Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", { get() {
return e.name;
} });
} catch {}
return r;
}
function si() {
let e = ni(), { referrer: t } = G.document || {}, { userAgent: n } = G.navigator || {};
return {
url: e,
headers: {
...t && { Referer: t },
...n && { "User-Agent": n }
}
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js
function ci(e, t) {
let n = di(e, t), r = {
type: gi(t),
value: _i(t)
};
return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
}
function li(e, t, n, r) {
let i = h(), a = i == null ? void 0 : i.getOptions().normalizeDepth, o = wi(t), s = { __serialized__: ce(t, a) };
if (o) return {
exception: { values: [ci(e, o)] },
extra: s
};
let c = {
exception: { values: [{
type: be(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
value: Si(t, { isUnhandledRejection: r })
}] },
extra: s
};
if (n) {
let t = di(e, n);
t.length && (c.exception.values[0].stacktrace = { frames: t });
}
return c;
}
function ui(e, t) {
return { exception: { values: [ci(e, t)] } };
}
function di(e, t) {
let n = t.stacktrace || t.stack || "", r = pi(t), i = mi(t);
try {
return e(n, r, i);
} catch {}
return [];
}
var fi = /Minified React error #\d+;/i;
function pi(e) {
return e && fi.test(e.message) ? 1 : 0;
}
function mi(e) {
return typeof e.framesToPop == "number" ? e.framesToPop : 0;
}
function hi(e) {
return typeof WebAssembly < "u" && WebAssembly.Exception !== void 0 && e instanceof WebAssembly.Exception;
}
function gi(e) {
let t = e == null ? void 0 : e.name;
return !t && hi(e) ? e.message && Array.isArray(e.message) && e.message.length == 2 ? e.message[0] : "WebAssembly.Exception" : t;
}
function _i(e) {
let t = e == null ? void 0 : e.message;
return hi(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? Or(t.error) : Or(e) : "No error message";
}
function vi(e, t, n, r) {
let i = bi(e, t, (n == null ? void 0 : n.syntheticException) || void 0, r);
return w(i), i.level = "error", n != null && n.event_id && (i.event_id = n.event_id), ye(i);
}
function yi(e, t, n = "info", r, i) {
let a = xi(e, t, (r == null ? void 0 : r.syntheticException) || void 0, i);
return a.level = n, r != null && r.event_id && (a.event_id = r.event_id), ye(a);
}
function bi(e, t, n, r, i) {
let a;
if (f(t) && t.error) return ui(e, t.error);
if (ue(t) || fe(t)) {
let i = t;
if ("stack" in t) {
var o;
a = ui(e, t);
let i = (o = a.exception) == null || (o = o.values) == null ? void 0 : o[0];
if (r && n && i && !i.stacktrace) {
let t = di(e, n);
t.length && (i.stacktrace = { frames: t }, w(a, { synthetic: !0 }));
}
} else {
let t = i.name || (ue(i) ? "DOMError" : "DOMException"), o = i.message ? `${t}: ${i.message}` : t;
a = xi(e, o, n, r), te(a, o);
}
return "code" in i && (a.tags = {
...a.tags,
"DOMException.code": `${i.code}`
}), a;
}
return ie(t) ? ui(e, t) : Ee(t) || be(t) ? (a = li(e, t, n, i), w(a, { synthetic: !0 }), a) : (a = xi(e, t, n, r), te(a, `${t}`, void 0), w(a, { synthetic: !0 }), a);
}
function xi(e, t, n, r) {
let i = {};
if (r && n) {
let r = di(e, n);
r.length && (i.exception = { values: [{
value: t,
stacktrace: { frames: r }
}] }), w(i, { synthetic: !0 });
}
if (ze(t)) {
let { __sentry_template_string__: e, __sentry_template_values__: n } = t;
return i.logentry = {
message: e,
params: n
}, i;
}
return i.message = t, i;
}
function Si(e, { isUnhandledRejection: t }) {
let n = S(e), r = t ? "promise rejection" : "exception";
return f(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : be(e) ? `Event \`${Ci(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
}
function Ci(e) {
try {
let t = Object.getPrototypeOf(e);
return t ? t.constructor.name : void 0;
} catch {}
}
function wi(e) {
return Object.values(e).find((e) => e instanceof Error);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/client.js
var Ti = class extends Bn {
constructor(e) {
var t;
let n = Ei(e);
ir(n, "browser", ["browser"], G.SENTRY_SDK_SOURCE || Zt()), super(n);
let { userInfo: r } = this.getDataCollectionOptions();
(t = n._metadata) != null && t.sdk && (n._metadata.sdk.settings = {
infer_ip: r ? "auto" : "never",
...n._metadata.sdk.settings
});
let { sendClientReports: i } = this._options;
G.document && G.document.addEventListener("visibilitychange", () => {
G.document.visibilityState === "hidden" && (i && this._flushOutcomes(), queueMicrotask(() => {
this.flush();
}));
}), r && this.on("beforeSendSession", rr);
}
eventFromException(e, t) {
return vi(this._options.stackParser, e, t, this._options.attachStacktrace);
}
eventFromMessage(e, t = "info", n) {
return yi(this._options.stackParser, e, t, n, this._options.attachStacktrace);
}
_prepareEvent(e, t, n, r) {
return e.platform = e.platform || "javascript", super._prepareEvent(e, t, n, r);
}
};
function Ei(e) {
var t;
return {
release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : (t = G.SENTRY_RELEASE) == null ? void 0 : t.id,
sendClientReports: !0,
parentSpanIsAlwaysRootSpan: !0,
...e
};
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/debug-build.js
var Di = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, q = D;
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/metrics/web-vitals/lib/globalListeners.js
function Oi(e, t, n) {
q.document && q.addEventListener(e, t, n);
}
function ki(e, t, n) {
q.document && q.removeEventListener(e, t, n);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/metrics/web-vitals/lib/runOnce.js
var Ai = (e) => {
let t = !1;
return () => {
t || (e(), t = !0);
};
}, ji = (e) => {
var t;
let n = q.requestIdleCallback || q.setTimeout;
((t = q.document) == null ? void 0 : t.visibilityState) === "hidden" ? e() : (e = Ai(e), Oi("visibilitychange", e, {
once: !0,
capture: !0
}), Oi("pagehide", e, {
once: !0,
capture: !0
}), n(() => {
e(), ki("visibilitychange", e, { capture: !0 }), ki("pagehide", e, { capture: !0 });
}));
}, Mi = 80, J = {};
try {
typeof Node < "u" && (J.parentNode = Object.getOwnPropertyDescriptor(Node.prototype, "parentNode").get), typeof Element < "u" && (J.tagName = Object.getOwnPropertyDescriptor(Element.prototype, "tagName").get, J.id = Object.getOwnPropertyDescriptor(Element.prototype, "id").get, J.className = Object.getOwnPropertyDescriptor(Element.prototype, "className").get, J.getAttribute = Element.prototype.getAttribute), typeof HTMLElement < "u" && (J.dataset = Object.getOwnPropertyDescriptor(HTMLElement.prototype, "dataset").get);
} catch {}
function Y(e, t, n) {
let r = J[t];
if (r) try {
return r.call(e, n);
} catch {}
let i = e[t];
return typeof i == "function" ? i.call(e, n) : i;
}
function Ni(e, t = {}) {
if (!e) return "<unknown>";
try {
let n = e, r = [], i = 0, a = 0, o, s = Array.isArray(t) ? t : t.keyAttrs, c = !Array.isArray(t) && t.maxStringLength || Mi;
for (; n && i++ < 5 && (o = Pi(n, s), !(o === "html" || i > 1 && a + r.length * 3 + o.length >= c));) r.push(o), a += o.length, n = Y(n, "parentNode");
return r.reverse().join(" > ");
} catch {
return "<unknown>";
}
}
function Pi(e, t) {
let n = [], r = Y(e, "tagName");
if (!r) return "";
if (typeof HTMLElement < "u" && e instanceof HTMLElement) {
let t = Y(e, "dataset");
if (t) {
if (t.sentryComponent) return t.sentryComponent;
if (t.sentryElement) return t.sentryElement;
}
}
n.push(r.toLowerCase());
let i = t != null && t.length ? t.filter((t) => Y(e, "getAttribute", t)).map((t) => [t, Y(e, "getAttribute", t)]) : null;
if (i != null && i.length) i.forEach((e) => {
n.push(`[${e[0]}="${e[1]}"]`);
});
else {
let t = Y(e, "id");
t && n.push(`#${t}`);
let r = Y(e, "className");
if (r && M(r)) {
let e = r.split(/\s+/);
for (let t of e) n.push(`.${t}`);
}
}
for (let t of [
"aria-label",
"type",
"name",
"title",
"alt"
]) {
let r = Y(e, "getAttribute", t);
r && n.push(`[${t}="${r}"]`);
}
return n.join("");
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/dom.js
var Fi = 1e3, Ii, Li, Ri;
function zi(e) {
R("dom", e), z("dom", Bi);
}
function Bi() {
if (!q.document) return;
let e = B.bind(null, "dom"), t = Ui(e, !0);
q.document.addEventListener("click", t, !1), q.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((t) => {
var n, r;
let i = (n = q[t]) == null ? void 0 : n.prototype;
!(i == null || (r = i.hasOwnProperty) == null) && r.call(i, "addEventListener") && (j(i, "addEventListener", function(t) {
return function(n, r, i) {
if (n === "click" || n == "keypress") try {
let r = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, a = r[n] = r[n] || { refCount: 0 };
if (!a.handler) {
let r = Ui(e);
a.handler = r, t.call(this, n, r, i);
}
a.refCount++;
} catch {}
return t.call(this, n, r, i);
};
}), j(i, "removeEventListener", function(e) {
return function(t, n, r) {
if (t === "click" || t == "keypress") try {
let n = this.__sentry_instrumentation_handlers__ || {}, i = n[t];
i && (i.refCount--, i.refCount <= 0 && (e.call(this, t, i.handler, r), i.handler = void 0, delete n[t]), Object.keys(n).length === 0 && delete this.__sentry_instrumentation_handlers__);
} catch {}
return e.call(this, t, n, r);
};
}));
});
}
function Vi(e) {
if (e.type !== Li) return !1;
try {
if (!e.target || e.target._sentryId !== Ri) return !1;
} catch {}
return !0;
}
function Hi(e, t) {
return e === "keypress" ? t != null && t.tagName ? !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) : !0 : !1;
}
function Ui(e, t = !1) {
return (n) => {
if (!n || n._sentryCaptured) return;
let r = Wi(n);
if (Hi(n.type, r)) return;
v(n, "_sentryCaptured", !0), r && !r._sentryId && v(r, "_sentryId", b());
let i = n.type === "keypress" ? "input" : n.type;
Vi(n) || (e({
event: n,
name: i,
global: t
}), Li = n.type, Ri = r ? r._sentryId : void 0), clearTimeout(Ii), Ii = q.setTimeout(() => {
Ri = void 0, Li = void 0;
}, Fi);
};
}
function Wi(e) {
try {
return e.target;
} catch {
return null;
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/history.js
var Gi;
function Ki(e) {
let t = "history";
R(t, e), z(t, qi);
}
function qi() {
if (q.addEventListener("popstate", () => {
let e = q.location.href, t = Gi;
Gi = e, t !== e && B("history", {
from: t,
to: e
});
}), !Gr()) return;
function e(e) {
return function(...t) {
let n = t.length > 2 ? t[2] : void 0;
if (n) {
let r = Gi, i = Ji(String(n));
if (Gi = i, r === i) return e.apply(this, t);
B("history", {
from: r,
to: i
});
}
return e.apply(this, t);
};
}
j(q.history, "pushState", e), j(q.history, "replaceState", e);
}
function Ji(e) {
try {
return new URL(e, q.location.origin).toString();
} catch {
return e;
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/getNativeImplementation.js
var Yi = {};
function Xi(e) {
let t = Yi[e];
if (t) return t;
let n = q[e];
if (qr(n)) return Yi[e] = n.bind(q);
let r = q.document;
if (r && typeof r.createElement == "function") try {
let t = r.createElement("iframe");
t.hidden = !0, r.head.appendChild(t);
let i = t.contentWindow;
i != null && i[e] && (n = i[e]), r.head.removeChild(t);
} catch (t) {
Di && k.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, t);
}
return n && (Yi[e] = n.bind(q));
}
function Zi(e) {
Yi[e] = void 0;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/instrument/xhr.js
var X = "__sentry_xhr_v3__";
function Qi(e) {
R("xhr", e), z("xhr", $i);
}
function $i() {
if (!q.XMLHttpRequest) return;
let e = XMLHttpRequest.prototype;
e.open = new Proxy(e.open, { apply(e, t, n) {
let r = /* @__PURE__ */ Error(), i = A() * 1e3, a = M(n[0]) ? n[0].toUpperCase() : void 0, o = ea(n[1]);
if (!a || !o) return e.apply(t, n);
t[X] = {
method: a,
url: o,
request_headers: {}
}, a === "POST" && o.match(/sentry_key/) && (t.__sentry_own_request__ = !0);
let s = () => {
let e = t[X];
if (e && t.readyState === 4) {
try {
e.status_code = t.status;
} catch {}
B("xhr", {
endTimestamp: A() * 1e3,
startTimestamp: i,
xhr: t,
virtualError: r
}), t.removeEventListener("readystatechange", s);
}
};
return "onreadystatechange" in t && typeof t.onreadystatechange == "function" ? t.onreadystatechange = new Proxy(t.onreadystatechange, { apply(e, t, n) {
return s(), e.apply(t, n);
} }) : t.addEventListener("readystatechange", s), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(e, t, n) {
let [r, i] = n, a = t[X];
return a && M(r) && M(i) && (a.request_headers[r.toLowerCase()] = i), e.apply(t, n);
} }), e.apply(t, n);
} }), e.send = new Proxy(e.send, { apply(e, t, n) {
let r = t[X];
return r ? (n[0] !== void 0 && (r.body = n[0]), B("xhr", {
startTimestamp: A() * 1e3,
xhr: t
}), e.apply(t, n)) : e.apply(t, n);
} });
}
function ea(e) {
if (M(e)) return e;
try {
return e.toString();
} catch {}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser-utils@10.69.0/node_modules/@sentry/browser-utils/build/esm/is.js
function ta(e) {
if (typeof Element > "u") return !1;
try {
return e instanceof Element;
} catch {
return !1;
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js
var na = 40;
function ra(e, t = Xi("fetch")) {
let n = 0, r = 0;
async function i(i) {
let a = i.body.length;
n += a, r++;
let o = {
body: i.body,
method: "POST",
referrerPolicy: "strict-origin",
headers: e.headers,
keepalive: n <= 6e4 && r < 15,
...e.fetchOptions
};
try {
let n = await t(e.url, o);
return {
statusCode: n.status,
headers: {
"x-sentry-rate-limits": n.headers.get("X-Sentry-Rate-Limits"),
"retry-after": n.headers.get("Retry-After")
}
};
} catch (e) {
throw Zi("fetch"), e;
} finally {
n -= a, r--;
}
}
return xn(e, i, hn(e.bufferSize || na));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/debug-build.js
var Z = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, ia = 30, aa = 50;
function oa(e, t, n, r) {
let i = {
filename: e,
function: t === "<anonymous>" ? "?" : t,
in_app: !0
};
return n !== void 0 && (i.lineno = n), r !== void 0 && (i.colno = r), i;
}
var sa = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, ca = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, la = /\((\S*)(?::(\d+))(?::(\d+))\)/, ua = /at (.+?) ?\(data:(.+?),/, da = [ia, (e) => {
let t = e.match(ua);
if (t) return {
filename: `<data:${t[2]}>`,
function: t[1]
};
let n = sa.exec(e);
if (n) {
let [, e, t, r] = n;
return oa(e, "?", +t, +r);
}
let r = ca.exec(e);
if (r) {
var i;
if (((i = r[2]) == null ? void 0 : i.indexOf("eval")) === 0) {
let e = la.exec(r[2]);
e && (r[2] = e[1], r[3] = e[2], r[4] = e[3]);
}
let [e, t] = ha(r[1] || "?", r[2]);
return oa(t, e, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
}
}], fa = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, pa = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, ma = ke(da, [aa, (e) => {
let t = fa.exec(e);
if (t) {
if (t[3] && t[3].indexOf(" > eval") > -1) {
let e = pa.exec(t[3]);
e && (t[1] = t[1] || "eval", t[3] = e[1], t[4] = e[2], t[5] = "");
}
let e = t[3], n = t[1] || "?";
return [n, e] = ha(n, e), oa(e, n, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
}
}]), ha = (e, t) => {
let n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
return n || r ? [e.indexOf("@") === -1 ? "?" : e.split("@")[0], n ? `safari-extension:${t}` : `safari-web-extension:${t}`] : [e, t];
}, ga = 1024, _a = "Breadcrumbs", va = H(((e = {}) => {
let t = {
console: !0,
dom: !0,
fetch: !0,
history: !0,
sentry: !0,
xhr: !0,
...e
};
return {
name: _a,
setup(e) {
t.console && Ar(xa(e)), t.dom && zi(ba(e, t.dom)), t.xhr && Qi(Sa(e)), t.fetch && Yr(Ca(e)), t.history && Ki(wa(e)), t.sentry && e.on("beforeSendEvent", ya(e));
}
};
}));
function ya(e) {
return function(t) {
h() === e && U({
category: `sentry.${t.type === "transaction" ? "transaction" : "event"}`,
event_id: t.event_id,
level: t.level,
message: _(t)
}, { event: t });
};
}
function ba(e, t) {
return function(n) {
if (h() !== e) return;
let r, i, a = typeof t == "object" ? t.serializeAttribute : void 0, o = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
o && o > ga && (Z && k.warn(`\`dom.maxStringLength\` cannot exceed ${ga}, but a value of ${o} was configured. Sentry will use ${ga} instead.`), o = ga), typeof a == "string" && (a = [a]);
try {
let e = n.event, t = Ta(e) ? e.target : e;
r = Ni(t, {
keyAttrs: a,
maxStringLength: o
}), i = ri(t);
} catch {
r = "<unknown>";
}
if (r.length === 0) return;
let s = {
category: `ui.${n.name}`,
message: r
};
i && (s.data = { "ui.component_name": i }), U(s, {
event: n.event,
name: n.name,
global: n.global
});
};
}
function xa(e) {
return function(t) {
if (h() !== e) return;
let n = {
category: "console",
data: {
arguments: t.args,
logger: "console"
},
level: Nr(t.level),
message: ae(t.args, " ")
};
if (t.level === "assert") if (t.args[0] === !1) n.message = `Assertion failed: ${ae(t.args.slice(1), " ") || "console.assert"}`, n.data.arguments = t.args.slice(1);
else return;
U(n, {
input: t.args,
level: t.level
});
};
}
function Sa(e) {
return function(t) {
if (h() !== e) return;
let { startTimestamp: n, endTimestamp: r } = t, i = t.xhr[X];
if (!n || !r || !i) return;
let { method: a, url: o, status_code: s, body: c } = i, l = {
method: a,
url: o,
status_code: s
}, u = {
xhr: t.xhr,
input: c,
startTimestamp: n,
endTimestamp: r
}, d = {
category: "xhr",
data: l,
type: "http",
level: Wr(s)
};
e.emit("beforeOutgoingRequestBreadcrumb", d, u), U(d, u);
};
}
function Ca(e) {
return function(t) {
if (h() !== e) return;
let { startTimestamp: n, endTimestamp: r } = t;
if (r && !(t.fetchData.url.match(/sentry_key/) && t.fetchData.method === "POST")) if (t.error) {
let i = {
data: t.error,
input: t.args,
startTimestamp: n,
endTimestamp: r
}, a = {
category: "fetch",
data: t.fetchData,
level: "error",
type: "http"
};
e.emit("beforeOutgoingRequestBreadcrumb", a, i), U(a, i);
} else {
let i = t.response, a = {
...t.fetchData,
status_code: i == null ? void 0 : i.status
}, o = {
input: t.args,
response: i,
startTimestamp: n,
endTimestamp: r
}, s = {
category: "fetch",
data: a,
type: "http",
level: Wr(a.status_code)
};
e.emit("beforeOutgoingRequestBreadcrumb", s, o), U(s, o);
}
};
}
function wa(e) {
return function(t) {
if (h() !== e) return;
let n = t.from, r = t.to, i = tr(G.location.href), a = n ? tr(n) : void 0, o = tr(r);
a != null && a.path || (a = i), i.protocol === o.protocol && i.host === o.host && (r = o.relative), i.protocol === a.protocol && i.host === a.host && (n = a.relative), U({
category: "navigation",
data: {
from: n,
to: r
}
});
};
}
function Ta(e) {
return !!e && !!e.target;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js
var Ea = "EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","), Da = "BrowserApiErrors", Oa = H(((e = {}) => {
let t = {
XMLHttpRequest: !0,
eventTarget: !0,
requestAnimationFrame: !0,
setInterval: !0,
setTimeout: !0,
unregisterOriginalCallbacks: !1,
...e
};
return {
name: Da,
setupOnce() {
t.setTimeout && j(G, "setTimeout", ka), t.setInterval && j(G, "setInterval", ka), t.requestAnimationFrame && j(G, "requestAnimationFrame", Aa), t.XMLHttpRequest && "XMLHttpRequest" in G && j(XMLHttpRequest.prototype, "send", ja);
let e = t.eventTarget;
e && (Array.isArray(e) ? e : Ea).forEach((e) => Ma(e, t));
}
};
}));
function ka(e) {
return function(...t) {
let n = t[0];
return t[0] = K(n, { mechanism: {
handled: !1,
type: `auto.browser.browserapierrors.${O(e)}`
} }), e.apply(this, t);
};
}
function Aa(e) {
return function(t) {
return e.apply(this, [K(t, { mechanism: {
data: { handler: O(e) },
handled: !1,
type: "auto.browser.browserapierrors.requestAnimationFrame"
} })]);
};
}
function ja(e) {
return function(...t) {
let n = this;
return [
"onload",
"onerror",
"onprogress",
"onreadystatechange"
].forEach((e) => {
e in n && typeof n[e] == "function" && j(n, e, function(t) {
let n = { mechanism: {
data: { handler: O(t) },
handled: !1,
type: `auto.browser.browserapierrors.xhr.${e}`
} }, r = x(t);
return r && (n.mechanism.data.handler = O(r)), K(t, n);
});
}), e.apply(this, t);
};
}
function Ma(e, t) {
var n, r;
let i = (n = G[e]) == null ? void 0 : n.prototype;
!(i == null || (r = i.hasOwnProperty) == null) && r.call(i, "addEventListener") && (j(i, "addEventListener", function(n) {
return function(r, i, a) {
try {
Na(i) && (i.handleEvent = K(i.handleEvent, { mechanism: {
data: {
handler: O(i),
target: e
},
handled: !1,
type: "auto.browser.browserapierrors.handleEvent"
} }));
} catch {}
return t.unregisterOriginalCallbacks && Pa(this, r, i), n.apply(this, [
r,
K(i, { mechanism: {
data: {
handler: O(i),
target: e
},
handled: !1,
type: "auto.browser.browserapierrors.addEventListener"
} }),
a
]);
};
}), j(i, "removeEventListener", function(e) {
return function(t, n, r) {
try {
if (Object.prototype.hasOwnProperty.call(n, "__sentry_wrapped__")) {
let i = n.__sentry_wrapped__;
i && e.call(this, t, i, r);
}
} catch {}
return e.call(this, t, n, r);
};
}));
}
function Na(e) {
return typeof e.handleEvent == "function";
}
function Pa(e, t, n) {
e && typeof e == "object" && "removeEventListener" in e && typeof e.removeEventListener == "function" && e.removeEventListener(t, n);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js
var Fa = H((e = {}) => {
var t;
let n = (t = e.lifecycle) == null ? "route" : t;
return {
name: "BrowserSession",
setupOnce() {
if (G.document === void 0) {
Z && k.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
return;
}
_e({ ignoreDuration: !0 });
let e = !1;
ji(() => {
e || (Re(), e = !0);
});
let t = se(), r = t.getUser();
t.addScopeListener((t) => {
let n = t.getUser();
((r == null ? void 0 : r.id) !== (n == null ? void 0 : n.id) || (r == null ? void 0 : r.ip_address) !== (n == null ? void 0 : n.ip_address)) && (r = n, e && Re());
}), n === "route" && Ki(({ from: t, to: n }) => {
t !== n && (_e({ ignoreDuration: !0 }), Re(), e = !0);
});
}
};
}), Ia = "CultureContext", La = H((() => ({
name: Ia,
preprocessEvent(e) {
let t = Ra();
if (t) {
var n;
e.contexts = {
...e.contexts,
culture: {
...t,
...(n = e.contexts) == null ? void 0 : n.culture
}
};
}
},
processSegmentSpan(e) {
let t = Ra();
t && Lt(e, {
"culture.locale": t.locale,
"culture.timezone": t.timezone,
"culture.calendar": t.calendar
});
}
})));
function Ra() {
try {
let e = G.Intl;
if (!e) return;
let t = e.DateTimeFormat().resolvedOptions();
return {
locale: t.locale,
timezone: t.timeZone,
calendar: t.calendar
};
} catch {
return;
}
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js
var za = "GlobalHandlers", Ba = H(((e = {}) => {
let t = {
onerror: !0,
onunhandledrejection: !0,
...e
};
return {
name: za,
setupOnce() {
Error.stackTraceLimit = 50;
},
setup(e) {
t.onerror && (Va(e), Ka("onerror")), t.onunhandledrejection && (Ha(e), Ka("onunhandledrejection"));
}
};
}));
function Va(e) {
ct((t) => {
let { stackParser: n, attachStacktrace: r } = qa();
if (h() !== e || ai()) return;
let { msg: i, url: a, line: o, column: s, error: c } = t, l = Ga(bi(n, c || i, void 0, r, !1), a, o, s);
l.level = "error", Ve(l, {
originalException: c,
mechanism: {
handled: !1,
type: "auto.browser.global_handlers.onerror"
}
});
});
}
function Ha(e) {
dt((t) => {
let { stackParser: n, attachStacktrace: r } = qa();
if (h() !== e || ai()) return;
let i = Ua(t), a = he(i) ? Wa(i) : bi(n, i, void 0, r, !0);
a.level = "error", Ve(a, {
originalException: i,
mechanism: {
handled: !1,
type: "auto.browser.global_handlers.onunhandledrejection"
}
});
});
}
function Ua(e) {
if (he(e)) return e;
try {
if ("reason" in e) return e.reason;
if ("detail" in e && "reason" in e.detail) return e.detail.reason;
} catch {}
return e;
}
function Wa(e) {
return { exception: { values: [{
type: "UnhandledRejection",
value: `Non-Error promise rejection captured with value: ${String(e)}`
}] } };
}
function Ga(e, t, n, r) {
let i = e.exception = e.exception || {}, a = i.values = i.values || [], o = a[0] = a[0] || {}, s = o.stacktrace = o.stacktrace || {}, c = s.frames = s.frames || [];
if (c.length === 0) {
var l;
c.push({
colno: r,
lineno: n,
filename: (l = Ja(t)) == null ? ni() : l,
function: "?",
in_app: !0
});
}
return e;
}
function Ka(e) {
Z && k.log(`Global Handler attached: ${e}`);
}
function qa() {
let e = h();
return (e == null ? void 0 : e.getOptions()) || {
stackParser: () => [],
attachStacktrace: !1
};
}
function Ja(e) {
if (!(!M(e) || e.length === 0)) return e.startsWith("data:") ? `<${nr(e, !1)}>` : e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js
var Ya = H(() => ({
name: "HttpContext",
preprocessEvent(e) {
var t;
if (!G.navigator && !G.location && !G.document) return;
let n = si(), r = {
...n.headers,
...(t = e.request) == null ? void 0 : t.headers
};
e.request = {
...n,
...e.request,
headers: r
};
},
processSegmentSpan(e) {
var t;
let n = (t = e.attributes) == null ? void 0 : t[oe];
if (!G.navigator && !G.location && !G.document) return;
let r = si();
Lt(e, {
[It]: n === "http.client" ? void 0 : r.url,
"http.request.header.user_agent": r.headers["User-Agent"],
"http.request.header.referer": r.headers.Referer
});
}
})), Xa = "cause", Za = 5, Qa = "LinkedErrors", $a = H(((e = {}) => {
let t = e.limit || Za, n = e.key || Xa;
return {
name: Qa,
preprocessEvent(e, r, i) {
Sr(ci, i.getOptions().stackParser, n, t, e, r);
}
};
})), eo = /^HTML(\w*)Element$/;
function to(e) {
if (typeof window < "u" && e === window) return "[Window]";
if (typeof document < "u" && e === document) return "[Document]";
if (ta(e)) {
let t = no(e);
if (eo.test(t)) return `[HTMLElement: ${Ni(e)}]`;
}
}
function no(e) {
let t = Object.getPrototypeOf(e);
return t != null && t.constructor ? t.constructor.name : "null prototype";
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js
function ro() {
return io() ? (Z && je(() => {
console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/");
}), !0) : !1;
}
function io() {
var e;
if (G.window === void 0) return !1;
let t = G;
if (t.nw) return !1;
let n = t.chrome || t.browser;
if (!(!(n == null || (e = n.runtime) == null) && e.id)) return !1;
let r = ni();
return !(G === G.top && /^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(r));
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+browser@10.69.0/node_modules/@sentry/browser/build/npm/esm/prod/sdk.js
function ao(e) {
return [
fr(),
cr(),
Ur(),
Oa(),
va(),
Ba(),
$a(),
Fr(),
Ya(),
La(),
Fa()
];
}
function oo(e = {}) {
let t = !e.skipBrowserExtensionCheck && ro(), n = e.defaultIntegrations == null ? ao() : e.defaultIntegrations, r = {
...e,
enabled: !t && e.enabled,
stackParser: Se(e.stackParser || ma),
integrations: Kt({
integrations: e.integrations,
defaultIntegrations: n
}),
transport: e.transport || ra
};
return y(to), Xn(Ti, r);
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/isSyntheticEvent.js
function so(e) {
return Ee(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
}
//#endregion
//#region ../../node_modules/.pnpm/@sentry+react@10.69.0_react@19.2.8/node_modules/@sentry/react/build/esm/sdk.js
function co(e) {
let t = { ...e };
ir(t, "react"), me("react", { version: nt.version });
let n = oo(t);
return y(lo), n;
}
function lo(e) {
return so(e) ? "[SyntheticEvent]" : to(e);
}
//#endregion
//#region src/tools/sentry.ts
var uo = "production", fo = "3.47.0";
function po() {
let e = "sentry_offline_queue";
return {
async push(t) {
try {
var n, r;
let i = JSON.parse(((n = localStorage) == null ? void 0 : n.getItem(e)) || "[]");
i.push({
envelope: t,
timestamp: Date.now()
}), i.length > 50 && i.shift(), (r = localStorage) == null || r.setItem(e, JSON.stringify(i));
} catch {}
},
async unshift(t) {
try {
var n, r;
let i = JSON.parse(((n = localStorage) == null ? void 0 : n.getItem(e)) || "[]");
i.unshift({
envelope: t,
timestamp: Date.now()
}), i.length > 50 && i.pop(), (r = localStorage) == null || r.setItem(e, JSON.stringify(i));
} catch {}
},
async shift() {
try {
var t;
let a = JSON.parse(((t = localStorage) == null ? void 0 : t.getItem(e)) || "[]");
if (a.length === 0) {
var n;
(n = localStorage) == null || n.removeItem(e);
return;
}
let o = a.shift();
if (a.length === 0) {
var r;
(r = localStorage) == null || r.removeItem(e);
} else {
var i;
(i = localStorage) == null || i.setItem(e, JSON.stringify(a));
}
return o == null ? void 0 : o.envelope;
} catch {
return;
}
}
};
}
function mo(e) {
let t = er(ra);
co({
dsn: "https://b2eafc5a038fa2c535099e431de219f2@o4510697102114816.ingest.us.sentry.io/4510697103097856",
release: fo,
environment: uo,
sendDefaultPii: !0,
transport: (e) => t({
...e,
createStore: () => po(),
flushAtStartup: !0,
shouldStore: async (e, t) => {
var n, r, i;
return !!(!navigator.onLine || t && ((n = t.message) != null && n.includes("Failed to fetch") || (r = t.message) != null && r.includes("NetworkError") || (i = t.message) != null && i.includes("Network request failed")));
}
}),
tracesSampleRate: .1,
ignoreErrors: [
/loading chunk \d{1,2}\b/i,
/zaloJS/i,
/e\.target\.name/i,
/ResizeObserver loop/i,
/ChunkLoadError/i,
/FloorPlan not ready/i,
/NetworkError/i,
/network error occurred/i,
/network request failed/i,
/failed to fetch/i,
/abort/i
],
beforeSend(e) {
return e;
}
}), e.eventId && Pe("eventId", e.eventId), Pe("isWebview", e.isWebview), Pe("source", "main"), Be({ ip_address: "{{auto}}" }), ho();
}
function ho() {
window.addEventListener("unhandledrejection", (e) => {
Me(e.reason, { contexts: { unhandledRejection: { promise: e.promise } } });
});
let e = window.onerror;
window.onerror = (t, n, r, i, a) => (a && Me(a, { contexts: { windowError: {
message: t,
source: n,
lineno: r,
colno: i
} } }), e && e.call(window, t, n, r, i, a), !1), window.addEventListener("online", () => {
var e;
let t = (e = window.__SENTRY__) == null || (e = e.hub) == null ? void 0 : e.getClient();
t && t.flush().catch(() => void 0);
});
}
//#endregion
//#region src/tools/style-registry.ts
var go;
function _o() {
let e = window.__efpStyleElements;
if (!(!e || e.length === 0)) {
go || (go = document.createDocumentFragment());
for (let t of e) go.appendChild(t);
}
}
//#endregion
//#region src/utils/heatmap-enabled.ts
function vo(e) {
return Object.keys(e).length > 0 && e.enabled !== !1;
}
//#endregion
//#region src/utils/is-localhost.ts
var { hostname: Q, protocol: yo } = window.location, bo = Q === "localhost" || Q === "127.0.0.1" || Q === "::1" || Q.startsWith("192.168.") || Q.startsWith("10.") || /^172\.(1[6-9]|2[0-9]|3[0-1])\./.test(Q) || Q.endsWith(".local") || yo === "file:" || Q === "";
//#endregion
//#region src/utils/loadCustomCss.ts
async function xo(e, t) {
if (e != null && e.customCss) {
let n = document.createElement("style");
if (n.textContent = e.customCss, document.head.append(n), typeof ShadowRoot < "u" && t instanceof ShadowRoot) {
let n = document.createElement("style");
n.textContent = e.customCss, t.append(n);
}
await r(e.customCss);
}
}
//#endregion
//#region src/utils/loadIcons.ts
async function So(e) {
try {
(await Promise.allSettled(Object.entries({
departure: "icons/departure.svg",
departure_inactive: "icons/departure_inactive.svg",
destination: "icons/destination.svg",
direction: "icons/direction.svg",
transition: "icons/transition.svg",
transition_up: "icons/transition_up.svg",
transition_down: "icons/transition_down.svg",
kiosk: "icons/kiosk.svg",
yah: "icons/yah.svg"
}).map(([e, t]) => Ze(i + t).then((t) => [e, t])))).filter((e) => e.status === "fulfilled").map((e) => e.value).forEach(([t, n]) => e.set(t, n));
} catch (e) {
console.warn(e);
}
}
//#endregion
//#region src/utils/use-shadow.ts
var Co, wo = typeof document < "u" && !!((Co = document.body) != null && Co.attachShadow) && o && localStorage.getItem("noShadowDom") !== "1" && window.FontFace !== void 0;
//#endregion
//#region src/floorplan.loader.ts
function $() {
throw Error("FloorPlan not ready");
}
var To = "FloorPlan destroyed before it finished loading", Eo = class {
get ready() {
return this._ready;
}
get previewMode() {
return t().previewMode || this.element.hasAttribute("data-preview-mode");
}
get allowConsent() {
return this.consent === "ask" ? void 0 : this.consent === "granted";
}
getInternalSettings() {
return rt(t());
}
selectBooth(e) {
$();
}
selectExhibitor(e) {
$();
}
selectRoute(e, t) {
$();
}
getOptimizedRoutes(e) {
$();
}
selectCurrentPosition(e, t, n) {
$();
}
setBookmarks(e) {
$();
}
setEntitiesBookmarks(e) {
$();
}
setEntitiesVisited(e) {
$();
}
setMarkers(e) {
$();
}
updateLayerVisibility(e, t) {
$();
}
getCenterCoordinates() {
$();
}
applyParameters(e) {
$();
}
exhibitorsList() {
$();
}
boothsList() {
$();
}
categoriesList() {
$();
}
selectCategory(e) {
$();
}
select(e) {
$();
}
showList(e) {
$();
}
showSessions(e) {
$();
}
selectTour(e) {
$();
}
openPlanner(e) {
$();
}
startBuildRoute() {
$();
}
getVisibility() {
$();
}
setVisibility(e) {
$();
}
findLocation() {
$();
}
zoomIn() {
$();
}
zoomOut() {
$();
}
zoomTo(e, t) {
$();
}
switchView() {
$();
}
setCamera(e) {
$();
}
getCamera() {
$();
}
fitBounds() {
$();
}
getBounds(e) {
$();
}
getBoothRect(e) {
$();
}
convertToGeo(e, t) {
$();
}
getGeoConfig() {
$();
}
destroy() {
if (!this.destroyed) {
this.destroyed = !0, this.rejectReady(/* @__PURE__ */ Error(To));
try {
this.releaseResources();
} finally {
u();
}
}
}
unstable_destroy() {
this.destroy();
}
releaseResources() {
for (window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), _o(); this.element.firstChild;) this.element.removeChild(this.element.firstChild);
delete this.element.__expofp, it();
}
highlightExhibitors(e) {
$();
}
highlightBooths(e) {
$();
}
onCurrentPositionChanged(e) {
$();
}
search(e) {
$();
}
getFloors() {
$();
}
onFloorActivated(e) {
$();
}
activateFloor(e) {
$();
}
showPathway(e, t) {
$();
}
showPathwayOnly(e, t) {
$();
}
hidePathways() {
$();
}
showSearch() {
$();
}
changeLanguage(e) {
$();
}
isGpsTrackingEnabled() {
$();
}
setGpsTrackingEnabled(e) {
$();
}
deselectCurrentPosition() {
$();
}
deselectRoute() {
$();
}
reset() {
$();
}
selectAccessibleRoute(e) {
$();
}
constructor(e, r) {
this.renderTarget = void 0, this._ready = void 0, this.element = void 0, this.eventId = void 0, this.noOverlay = void 0, this.offHistory = void 0, this.ignoreQuery = void 0, this.consent = void 0, this.onInit = void 0, this.disableRuntimeAlerts = void 0, this.viewerMode = void 0, this.maplibre = void 0, this.efpStyleLoadHandler = void 0, this.resolveReady = () => void 0, this.rejectReady = () => void 0, this.icons = /* @__PURE__ */ new Map(), this.enableRotation = !0, this.alwaysShowSidebar = !1, this.destroyed = !1, this.onBoothClick = void 0, this.onBookmarkClick = void 0, this.onVisitedClick = void 0, this.onCategoryClick = void 0, this.onFpConfigured = void 0, this.onDirection = void 0, this.onDetails = void 0, this.onExhibitorCustomButtonClick = void 0, this.onGetCoordsClick = void 0, this.onMarkerClick = void 0, this.onLeaveEvent = void 0;
let o = t();
this.noOverlay = !!o.noOverlay, this.offHistory = !!o.offHistory, this.ignoreQuery = o.ignoreQuery, this.consent = o.consent, this.consent === "ask" && (Xe ? this.consent = "granted" : bo && !d && (this.consent = "denied")), this.onBoothClick = e.onBoothClick, this.onBookmarkClick = e.onBookmarkClick, this.onVisitedClick = e.onVisitedClick, this.onCategoryClick = e.onCategoryClick, this.onDetails = e.onDetails, this.onExhibitorCustomButtonClick = e.onExhibitorCustomButtonClick, this.onGetCoordsClick = e.onGetCoordsClick, this.onMarkerClick = e.onMarkerClick, this.onFpConfigured = e.onFpConfigured, this.onDirection = e.onDirection, this.onInit = e.onInit, this.onCurrentPositionChanged = e.onCurrentPositionChanged, this.onFloorActivated = e.onFloorActivated, this.onLeaveEvent = e.onLeaveEvent, this.viewerMode = !!o.viewerMode, this.disableRuntimeAlerts = o.disableRuntimeAlerts, this.maplibre = o.maplibre, window.__efpMaplibre = o.maplibre, this._ready = new Promise((e, t) => {
this.resolveReady = e, this.rejectReady = t;
}), this._ready.catch(() => void 0), this.element = r;
let c = r;
if (c.__expofp) throw Error("Element already in use");
c.__expofp = this;
let u = o.expo;
mo({
eventId: u || "",
isWebview: Xe
}), this.eventId = u, window.__efpEvent = u, window.__efpElement = r;
let f = document.createElement("div");
f.style.height = "100%", f.style.width = "100%", r.appendChild(f);
let p;
if (wo) {
p = f.attachShadow({ mode: "open" });
let e = p, t = document;
e.createElement = (...e) => t.createElement(...e), e.createElementNS = (...e) => t.createElementNS(...e), e.createTextNode = (...e) => t.createTextNode(...e);
} else p = f;
let m = document.createElement("div");
m.style.height = "100%", m.style.width = "100%", p.appendChild(m), wo && Object.defineProperty(m, "ownerDocument", { value: p }), window.__efpShadowDOMStyleParent = wo ? p : void 0, this.renderTarget = m, l.log("Instantiating ExpoFP floorplan", r, u);
let h = 0;
this.efpStyleLoadHandler = function(e) {
var t;
let n = (t = window.__efpStyleElements) == null ? [] : t;
for (; h < n.length;) {
let e = n[h];
p.appendChild(e), h++;
}
}, window.addEventListener("__efpStyleLoad", this.efpStyleLoadHandler), this.efpStyleLoadHandler();
let g = this;
(async function() {
var e, r, o;
let c = t();
if (await a(), g.destroyed) return;
let u = new URLSearchParams(window.location.search), d, f;
if (c != null && c.trackerUrl) try {
d = new URL(c.trackerUrl), f = d.searchParams.get("expoId");
} catch (e) {
console.error(e);
}
let m = async (e) => {
var t;
if (!d || !f) return Promise.reject(/* @__PURE__ */ Error("trackerUrl or expoId is missing"));
let n = new URL(e.dataUrl, d.origin), r = await fetch(n.toString(), {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
expoId: f,
token: decodeURIComponent((t = u.get("t")) == null ? "" : t)
})
}), i = [];
r.ok && (i = (await r.json()).map(e.dataMapper)), window.__heatmapDataYah = { yah: i };
}, h = (e = c == null ? void 0 : c.heatmap) == null ? {} : e, ee = vo(h) || u.get("heatmap") === "true", _ = h.variant === "yah" || u.get("type") === "yah", v = h.kiosk === !0 || u.get("subtype") === "kiosk";
if (ee) try {
if (_) v ? await m({
dataUrl: "/api/kiosks/list/viewer",
dataMapper: (e) => ({
...e,
id: e.key,
name: `Kiosk ${e.key}`
})
}) : await m({
dataUrl: "/api/v1/you-are-here/qr-code/list/viewer",
dataMapper: (e, t) => ({
...e,
name: `QR Code #${t + 1}`
})
});
else {
var y, b;
if (!d || !f) throw Error("trackerUrl or expoId is missing");
let e = new URL("/api/fp-stats/get", d.origin);
e.searchParams.set("expoId", f), e.searchParams.set("type", "booview"), e.searchParams.set("t", decodeURIComponent((y = u.get("t")) == null ? "" : y));
let t = new URL("api/fp-stats/get", d.origin);
t.searchParams.set("expoId", f), t.searchParams.set("type", "exview"), t.searchParams.set("t", decodeURIComponent((b = u.get("t")) == null ? "" : b));
let [n, r] = await Promise.all([fetch(e.toString()), fetch(t.toString())]), [i, a] = await Promise.all([n.json(), r.json()]);
window.__heatmapData = {
booths: i,
exhibitors: a
};
}
} catch (e) {
console.error("Heatmap: Initialization error", e);
}
let x = [
n(i + "vendor/sanitize-css/sanitize.css", p),
n(i + "vendor/perfect-scrollbar/css/perfect-scrollbar.css", p),
s("Oswald", i + "fonts/oswald-v17-cyrillic_latin-300.woff", { weight: 300 }),
s("Oswald", i + "fonts/oswald-v17-cyrillic_latin-500.woff", { weight: 500 }),
s("Inter", i + "fonts/inter-400.woff2", { weight: 400 }),
s("Inter", i + "fonts/inter-500.woff2", { weight: 500 }),
s("Inter", i + "fonts/inter-600.woff2", { weight: 600 }),
s("efp-symbols", i + "fonts/efp-symbols.woff", { weight: 400 }),
xo(c, p),
So(g.icons)
];
if (await Promise.all(x), g.destroyed) return;
g.enableRotation = (r = c == null ? void 0 : c.enableRotation) != null && r, g.alwaysShowSidebar = (o = c == null ? void 0 : c.alwaysShowSidebar) != null && o, l.log("Data loaded");
let { createLivePlan: S } = await import(
/* webpackChunkName: "floorplan" */
"./create-live-plan-D17jzmnD.js"
), { default: C } = await import(
/* webpackChunkName: "floorplan" */
"./floorplan.ready-BOnFLVHj.js"
);
g.destroyed || (S(), Object.setPrototypeOf(g, C.prototype).init());
})();
}
};
//#endregion
export { Ut as a, $e as c, G as i, vo as n, et as o, Z as r, tt as s, Eo as t };