@expofp/floorplan 3.0.0-alpha.13 → 3.0.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/browser/{Debug-2YRpxyzp.js → Debug-Pul6-ZdY.js} +2 -2
  2. package/dist/browser/{Demo-BhvcgT41.js → Demo-DN_Ej-P_.js} +3 -3
  3. package/dist/browser/{Free-Cf7Raqrc.js → Free-Dm2FRajw.js} +3 -3
  4. package/dist/browser/{Gallery-Dq_GR98t.js → Gallery-TLr-wfCG.js} +3 -3
  5. package/dist/browser/{GpsLoader-ChfXQOsy.js → GpsLoader-CeS0cp98.js} +3 -3
  6. package/dist/browser/{KioskStore-D241RDzb.js → KioskStore-Bvvm0aNQ.js} +3 -3
  7. package/dist/browser/{Mapbox-DFHRWdCq.js → Mapbox-DizBJSb0.js} +4 -4
  8. package/dist/browser/{SetKioskMode-2rlj74Xn.js → SetKioskMode-BecTBVRp.js} +4 -4
  9. package/dist/browser/{ShowKiosk-CrsnQU04.js → ShowKiosk-C-6DHz7T.js} +3 -3
  10. package/dist/browser/{ThreeComponent-ClnfXUj7.js → ThreeComponent-Brnrh22I.js} +4 -4
  11. package/dist/browser/{boolean-editor-D8wja-hk.js → boolean-editor-Duwgypgb.js} +3 -3
  12. package/dist/browser/bundle.json +29 -26
  13. package/dist/browser/{client-CkzDfd_U.js → client-D3Op9Jdd.js} +2 -2
  14. package/dist/browser/compat-helper.js +5 -0
  15. package/dist/browser/{data-m8n9ATTo.js → data-0pZ-ZMEi.js} +2 -2
  16. package/dist/browser/{debug-overlay-2jzTw6KL.js → debug-overlay-6c_tWF4O.js} +4 -4
  17. package/dist/browser/{debug-ui-YhK0Mf0Y.js → debug-ui-TGRI1j4k.js} +3 -3
  18. package/dist/browser/{fetch-retry.umd-dyC72RhE.js → fetch-retry.umd-BZ52tMyv.js} +1 -1
  19. package/dist/browser/{flex-Cdkjkshz.js → flex-OW_m-DBA.js} +2 -2
  20. package/dist/browser/{floorplan.ready-D6FqQD8c.js → floorplan.ready-D-VQ-QvS.js} +16 -16
  21. package/dist/browser/{index-DBHasqQ8.js → index-AJbTBu7z.js} +1 -1
  22. package/dist/browser/{index-BKeGOpor.js → index-B2YV6GNs.js} +4 -4
  23. package/dist/browser/{index-CEmjMySn.js → index-BUq8_R36.js} +1 -1
  24. package/dist/browser/{index-DSgSq67u.js → index-BuJlIIdP.js} +2 -2
  25. package/dist/browser/{index-D153Iyx8.js → index-D0SjrKD-.js} +2 -2
  26. package/dist/browser/{index-d52BKaOl.js → index-Vc2rrV4B.js} +3 -3
  27. package/dist/browser/{index-4ImEhZsQ.js → index-Zz9lJz5_.js} +662 -658
  28. package/dist/browser/index.js +1 -1
  29. package/dist/browser/{particles.min-7sD7ioDi.js → particles.min-BZTb0pvb.js} +1 -1
  30. package/dist/esm/load.d.ts +2 -0
  31. package/dist/esm/load.js +3 -3
  32. package/package.json +3 -3
@@ -22,24 +22,24 @@ function vo() {
22
22
  if (Gn) return Wt;
23
23
  Gn = 1;
24
24
  var t = 1e3, e = t * 60, n = e * 60, r = n * 24, s = r * 7, o = r * 365.25;
25
- Wt = function(f, l) {
26
- l = l || {};
27
- var p = typeof f;
28
- if (p === "string" && f.length > 0)
29
- return i(f);
30
- if (p === "number" && isFinite(f))
31
- return l.long ? c(f) : a(f);
25
+ Wt = function(l, f) {
26
+ f = f || {};
27
+ var p = typeof l;
28
+ if (p === "string" && l.length > 0)
29
+ return i(l);
30
+ if (p === "number" && isFinite(l))
31
+ return f.long ? a(l) : c(l);
32
32
  throw new Error(
33
- "val is not a non-empty string or a valid number. val=" + JSON.stringify(f)
33
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(l)
34
34
  );
35
35
  };
36
- function i(f) {
37
- if (f = String(f), !(f.length > 100)) {
38
- var l = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
39
- f
36
+ function i(l) {
37
+ if (l = String(l), !(l.length > 100)) {
38
+ var f = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
39
+ l
40
40
  );
41
- if (l) {
42
- var p = parseFloat(l[1]), g = (l[2] || "ms").toLowerCase();
41
+ if (f) {
42
+ var p = parseFloat(f[1]), g = (f[2] || "ms").toLowerCase();
43
43
  switch (g) {
44
44
  case "years":
45
45
  case "year":
@@ -85,17 +85,17 @@ function vo() {
85
85
  }
86
86
  }
87
87
  }
88
- function a(f) {
89
- var l = Math.abs(f);
90
- return l >= r ? Math.round(f / r) + "d" : l >= n ? Math.round(f / n) + "h" : l >= e ? Math.round(f / e) + "m" : l >= t ? Math.round(f / t) + "s" : f + "ms";
88
+ function c(l) {
89
+ var f = Math.abs(l);
90
+ return f >= r ? Math.round(l / r) + "d" : f >= n ? Math.round(l / n) + "h" : f >= e ? Math.round(l / e) + "m" : f >= t ? Math.round(l / t) + "s" : l + "ms";
91
91
  }
92
- function c(f) {
93
- var l = Math.abs(f);
94
- return l >= r ? u(f, l, r, "day") : l >= n ? u(f, l, n, "hour") : l >= e ? u(f, l, e, "minute") : l >= t ? u(f, l, t, "second") : f + " ms";
92
+ function a(l) {
93
+ var f = Math.abs(l);
94
+ return f >= r ? u(l, f, r, "day") : f >= n ? u(l, f, n, "hour") : f >= e ? u(l, f, e, "minute") : f >= t ? u(l, f, t, "second") : l + " ms";
95
95
  }
96
- function u(f, l, p, g) {
97
- var _ = l >= p * 1.5;
98
- return Math.round(f / p) + " " + g + (_ ? "s" : "");
96
+ function u(l, f, p, g) {
97
+ var _ = f >= p * 1.5;
98
+ return Math.round(l / p) + " " + g + (_ ? "s" : "");
99
99
  }
100
100
  return Wt;
101
101
  }
@@ -104,17 +104,17 @@ function wo() {
104
104
  if (Yn) return Vt;
105
105
  Yn = 1;
106
106
  function t(e) {
107
- r.debug = r, r.default = r, r.coerce = u, r.disable = a, r.enable = o, r.enabled = c, r.humanize = vo(), r.destroy = f, Object.keys(e).forEach((l) => {
108
- r[l] = e[l];
107
+ r.debug = r, r.default = r, r.coerce = u, r.disable = c, r.enable = o, r.enabled = a, r.humanize = vo(), r.destroy = l, Object.keys(e).forEach((f) => {
108
+ r[f] = e[f];
109
109
  }), r.names = [], r.skips = [], r.formatters = {};
110
- function n(l) {
110
+ function n(f) {
111
111
  let p = 0;
112
- for (let g = 0; g < l.length; g++)
113
- p = (p << 5) - p + l.charCodeAt(g), p |= 0;
112
+ for (let g = 0; g < f.length; g++)
113
+ p = (p << 5) - p + f.charCodeAt(g), p |= 0;
114
114
  return r.colors[Math.abs(p) % r.colors.length];
115
115
  }
116
116
  r.selectColor = n;
117
- function r(l) {
117
+ function r(f) {
118
118
  let p, g = null, _, m;
119
119
  function y(...v) {
120
120
  if (!y.enabled)
@@ -134,29 +134,29 @@ function wo() {
134
134
  return T;
135
135
  }), r.formatArgs.call(w, v), (w.log || r.log).apply(w, v);
136
136
  }
137
- return y.namespace = l, y.useColors = r.useColors(), y.color = r.selectColor(l), y.extend = s, y.destroy = r.destroy, Object.defineProperty(y, "enabled", {
137
+ return y.namespace = f, y.useColors = r.useColors(), y.color = r.selectColor(f), y.extend = s, y.destroy = r.destroy, Object.defineProperty(y, "enabled", {
138
138
  enumerable: !0,
139
139
  configurable: !1,
140
- get: () => g !== null ? g : (_ !== r.namespaces && (_ = r.namespaces, m = r.enabled(l)), m),
140
+ get: () => g !== null ? g : (_ !== r.namespaces && (_ = r.namespaces, m = r.enabled(f)), m),
141
141
  set: (v) => {
142
142
  g = v;
143
143
  }
144
144
  }), typeof r.init == "function" && r.init(y), y;
145
145
  }
146
- function s(l, p) {
147
- const g = r(this.namespace + (typeof p > "u" ? ":" : p) + l);
146
+ function s(f, p) {
147
+ const g = r(this.namespace + (typeof p > "u" ? ":" : p) + f);
148
148
  return g.log = this.log, g;
149
149
  }
150
- function o(l) {
151
- r.save(l), r.namespaces = l, r.names = [], r.skips = [];
152
- const p = (typeof l == "string" ? l : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
150
+ function o(f) {
151
+ r.save(f), r.namespaces = f, r.names = [], r.skips = [];
152
+ const p = (typeof f == "string" ? f : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
153
153
  for (const g of p)
154
154
  g[0] === "-" ? r.skips.push(g.slice(1)) : r.names.push(g);
155
155
  }
156
- function i(l, p) {
156
+ function i(f, p) {
157
157
  let g = 0, _ = 0, m = -1, y = 0;
158
- for (; g < l.length; )
159
- if (_ < p.length && (p[_] === l[g] || p[_] === "*"))
158
+ for (; g < f.length; )
159
+ if (_ < p.length && (p[_] === f[g] || p[_] === "*"))
160
160
  p[_] === "*" ? (m = _, y = g, _++) : (g++, _++);
161
161
  else if (m !== -1)
162
162
  _ = m + 1, y++, g = y;
@@ -166,26 +166,26 @@ function wo() {
166
166
  _++;
167
167
  return _ === p.length;
168
168
  }
169
- function a() {
170
- const l = [
169
+ function c() {
170
+ const f = [
171
171
  ...r.names,
172
172
  ...r.skips.map((p) => "-" + p)
173
173
  ].join(",");
174
- return r.enable(""), l;
174
+ return r.enable(""), f;
175
175
  }
176
- function c(l) {
176
+ function a(f) {
177
177
  for (const p of r.skips)
178
- if (i(l, p))
178
+ if (i(f, p))
179
179
  return !1;
180
180
  for (const p of r.names)
181
- if (i(l, p))
181
+ if (i(f, p))
182
182
  return !0;
183
183
  return !1;
184
184
  }
185
- function u(l) {
186
- return l instanceof Error ? l.stack || l.message : l;
185
+ function u(f) {
186
+ return f instanceof Error ? f.stack || f.message : f;
187
187
  }
188
- function f() {
188
+ function l() {
189
189
  console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
190
190
  }
191
191
  return r.enable(r.load()), r;
@@ -196,9 +196,9 @@ var qn;
196
196
  function Eo() {
197
197
  return qn || (qn = 1, (function(t, e) {
198
198
  e.formatArgs = r, e.save = s, e.load = o, e.useColors = n, e.storage = i(), e.destroy = /* @__PURE__ */ (() => {
199
- let c = !1;
199
+ let a = !1;
200
200
  return () => {
201
- c || (c = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
201
+ a || (a = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
202
202
  };
203
203
  })(), e.colors = [
204
204
  "#0000CC",
@@ -283,38 +283,38 @@ function Eo() {
283
283
  return !0;
284
284
  if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
285
285
  return !1;
286
- let c;
286
+ let a;
287
287
  return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
288
288
  typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
289
289
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
290
- typeof navigator < "u" && navigator.userAgent && (c = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(c[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
290
+ typeof navigator < "u" && navigator.userAgent && (a = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(a[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
291
291
  typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
292
292
  }
293
- function r(c) {
294
- if (c[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + c[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
293
+ function r(a) {
294
+ if (a[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + a[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
295
295
  return;
296
296
  const u = "color: " + this.color;
297
- c.splice(1, 0, u, "color: inherit");
298
- let f = 0, l = 0;
299
- c[0].replace(/%[a-zA-Z%]/g, (p) => {
300
- p !== "%%" && (f++, p === "%c" && (l = f));
301
- }), c.splice(l, 0, u);
297
+ a.splice(1, 0, u, "color: inherit");
298
+ let l = 0, f = 0;
299
+ a[0].replace(/%[a-zA-Z%]/g, (p) => {
300
+ p !== "%%" && (l++, p === "%c" && (f = l));
301
+ }), a.splice(f, 0, u);
302
302
  }
303
303
  e.log = console.debug || console.log || (() => {
304
304
  });
305
- function s(c) {
305
+ function s(a) {
306
306
  try {
307
- c ? e.storage.setItem("debug", c) : e.storage.removeItem("debug");
307
+ a ? e.storage.setItem("debug", a) : e.storage.removeItem("debug");
308
308
  } catch {
309
309
  }
310
310
  }
311
311
  function o() {
312
- let c;
312
+ let a;
313
313
  try {
314
- c = e.storage.getItem("debug") || e.storage.getItem("DEBUG");
314
+ a = e.storage.getItem("debug") || e.storage.getItem("DEBUG");
315
315
  } catch {
316
316
  }
317
- return !c && typeof process < "u" && "env" in process && (c = process.env.DEBUG), c;
317
+ return !a && typeof process < "u" && "env" in process && (a = process.env.DEBUG), a;
318
318
  }
319
319
  function i() {
320
320
  try {
@@ -323,10 +323,10 @@ function Eo() {
323
323
  }
324
324
  }
325
325
  t.exports = wo()(e);
326
- const { formatters: a } = t.exports;
327
- a.j = function(c) {
326
+ const { formatters: c } = t.exports;
327
+ c.j = function(a) {
328
328
  try {
329
- return JSON.stringify(c);
329
+ return JSON.stringify(a);
330
330
  } catch (u) {
331
331
  return "[UnexpectedJSONParseError]: " + u.message;
332
332
  }
@@ -369,8 +369,8 @@ let Co = class {
369
369
  const r = n.map((i) => {
370
370
  if (typeof i == "object") try {
371
371
  return JSON.stringify(i);
372
- } catch (a) {
373
- return a.message;
372
+ } catch (c) {
373
+ return c.message;
374
374
  }
375
375
  return i;
376
376
  }), s = e + " " + (/* @__PURE__ */ new Date()).toISOString() + " " + r.join("; ");
@@ -463,7 +463,7 @@ function gs(t) {
463
463
  }
464
464
  let ft;
465
465
  const To = async function(...e) {
466
- return ft || (typeof window < "u" && typeof document < "u" ? ft = window.fetch.bind(window) : ft = (await import("./fetch-retry.umd-dyC72RhE.js").then((s) => s.f)).default(globalThis.fetch)), ft(...e);
466
+ return ft || (typeof window < "u" && typeof document < "u" ? ft = window.fetch.bind(window) : ft = (await import("./fetch-retry.umd-BZ52tMyv.js").then((s) => s.f)).default(globalThis.fetch)), ft(...e);
467
467
  };
468
468
  async function Io(t) {
469
469
  var e;
@@ -536,7 +536,7 @@ function Lo() {
536
536
  r.rel = "icon", r.type = "image/png", r.href = n, document.head.appendChild(r);
537
537
  }), (!document.title || document.title === "Document") && (document.title = "Floor Plan by ExpoFP");
538
538
  }
539
- var Do = { version: "3.0.0-alpha.13", commit: "3e1cc52f", branch: "vite-main", built: "2026-03-31T13:25:40.510Z" };
539
+ var Do = { version: "3.0.0-alpha.14", commit: "1e46f53c", branch: "vite-main", built: "2026-04-01T14:40:20.632Z" };
540
540
  function Bo() {
541
541
  const t = Do;
542
542
  if (t) {
@@ -966,19 +966,19 @@ class h {
966
966
  /* eslint consistent-return: 1 */
967
967
  static compareVersions(e, n, r = !1) {
968
968
  const s = h.getVersionPrecision(e), o = h.getVersionPrecision(n);
969
- let i = Math.max(s, o), a = 0;
970
- const c = h.map([e, n], (u) => {
971
- const f = i - h.getVersionPrecision(u), l = u + new Array(f + 1).join(".0");
972
- return h.map(l.split("."), (p) => new Array(20 - p.length).join("0") + p).reverse();
969
+ let i = Math.max(s, o), c = 0;
970
+ const a = h.map([e, n], (u) => {
971
+ const l = i - h.getVersionPrecision(u), f = u + new Array(l + 1).join(".0");
972
+ return h.map(f.split("."), (p) => new Array(20 - p.length).join("0") + p).reverse();
973
973
  });
974
- for (r && (a = i - Math.min(s, o)), i -= 1; i >= a; ) {
975
- if (c[0][i] > c[1][i])
974
+ for (r && (c = i - Math.min(s, o)), i -= 1; i >= c; ) {
975
+ if (a[0][i] > a[1][i])
976
976
  return 1;
977
- if (c[0][i] === c[1][i]) {
978
- if (i === a)
977
+ if (a[0][i] === a[1][i]) {
978
+ if (i === c)
979
979
  return 0;
980
980
  i -= 1;
981
- } else if (c[0][i] < c[1][i])
981
+ } else if (a[0][i] < a[1][i])
982
982
  return -1;
983
983
  }
984
984
  }
@@ -1029,8 +1029,8 @@ class h {
1029
1029
  return Object.assign(e, ...n);
1030
1030
  for (s = 0, o = n.length; s < o; s += 1) {
1031
1031
  const i = n[s];
1032
- typeof i == "object" && i !== null && Object.keys(i).forEach((c) => {
1033
- r[c] = i[c];
1032
+ typeof i == "object" && i !== null && Object.keys(i).forEach((a) => {
1033
+ r[a] = i[a];
1034
1034
  });
1035
1035
  }
1036
1036
  return e;
@@ -2771,30 +2771,30 @@ class er {
2771
2771
  let r = 0;
2772
2772
  const s = {};
2773
2773
  let o = 0;
2774
- if (Object.keys(e).forEach((a) => {
2775
- const c = e[a];
2776
- typeof c == "string" ? (s[a] = c, o += 1) : typeof c == "object" && (n[a] = c, r += 1);
2774
+ if (Object.keys(e).forEach((c) => {
2775
+ const a = e[c];
2776
+ typeof a == "string" ? (s[c] = a, o += 1) : typeof a == "object" && (n[c] = a, r += 1);
2777
2777
  }), r > 0) {
2778
- const a = Object.keys(n), c = h.find(a, (f) => this.isOS(f));
2779
- if (c) {
2780
- const f = this.satisfies(n[c]);
2781
- if (f !== void 0)
2782
- return f;
2778
+ const c = Object.keys(n), a = h.find(c, (l) => this.isOS(l));
2779
+ if (a) {
2780
+ const l = this.satisfies(n[a]);
2781
+ if (l !== void 0)
2782
+ return l;
2783
2783
  }
2784
2784
  const u = h.find(
2785
- a,
2786
- (f) => this.isPlatform(f)
2785
+ c,
2786
+ (l) => this.isPlatform(l)
2787
2787
  );
2788
2788
  if (u) {
2789
- const f = this.satisfies(n[u]);
2790
- if (f !== void 0)
2791
- return f;
2789
+ const l = this.satisfies(n[u]);
2790
+ if (l !== void 0)
2791
+ return l;
2792
2792
  }
2793
2793
  }
2794
2794
  if (o > 0) {
2795
- const a = Object.keys(s), c = h.find(a, (u) => this.isBrowser(u, !0));
2796
- if (c !== void 0)
2797
- return this.compareVersion(s[c]);
2795
+ const c = Object.keys(s), a = h.find(c, (u) => this.isBrowser(u, !0));
2796
+ if (a !== void 0)
2797
+ return this.compareVersion(s[a]);
2798
2798
  }
2799
2799
  }
2800
2800
  /**
@@ -2956,29 +2956,29 @@ function ei() {
2956
2956
  var w = m;
2957
2957
  e(m.h, v), e(m.i, v), o(m);
2958
2958
  }
2959
- function a(m, y, v) {
2959
+ function c(m, y, v) {
2960
2960
  y = y || {}, v = v || window, this.family = m, this.style = y.style || "normal", this.weight = y.weight || "normal", this.stretch = y.stretch || "normal", this.context = v;
2961
2961
  }
2962
- var c = null, u = null, f = null, l = null;
2962
+ var a = null, u = null, l = null, f = null;
2963
2963
  function p(m) {
2964
2964
  return u === null && (g(m) && /Apple/.test(window.navigator.vendor) ? (m = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent), u = !!m && 603 > parseInt(m[1], 10)) : u = !1), u;
2965
2965
  }
2966
2966
  function g(m) {
2967
- return l === null && (l = !!m.document.fonts), l;
2967
+ return f === null && (f = !!m.document.fonts), f;
2968
2968
  }
2969
2969
  function _(m, y) {
2970
2970
  var v = m.style, w = m.weight;
2971
- if (f === null) {
2971
+ if (l === null) {
2972
2972
  var E = document.createElement("div");
2973
2973
  try {
2974
2974
  E.style.font = "condensed 100px sans-serif";
2975
2975
  } catch {
2976
2976
  }
2977
- f = E.style.font !== "";
2977
+ l = E.style.font !== "";
2978
2978
  }
2979
- return [v, w, f ? m.stretch : "", "100px", y].join(" ");
2979
+ return [v, w, l ? m.stretch : "", "100px", y].join(" ");
2980
2980
  }
2981
- a.prototype.load = function(m, y) {
2981
+ c.prototype.load = function(m, y) {
2982
2982
  var v = this, w = m || "BESbswy", E = 0, N = y || 3e3, L = (/* @__PURE__ */ new Date()).getTime();
2983
2983
  return new Promise(function(H, T) {
2984
2984
  if (g(v.context) && !p(v.context)) {
@@ -3000,7 +3000,7 @@ function ei() {
3000
3000
  } else n(function() {
3001
3001
  function Z() {
3002
3002
  var b;
3003
- (b = $ != -1 && j != -1 || $ != -1 && U != -1 || j != -1 && U != -1) && ((b = $ != j && $ != U && j != U) || (c === null && (b = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), c = !!b && (536 > parseInt(b[1], 10) || parseInt(b[1], 10) === 536 && 11 >= parseInt(b[2], 10))), b = c && ($ == ee && j == ee && U == ee || $ == Y && j == Y && U == Y || $ == fe && j == fe && U == fe)), b = !b), b && (d.parentNode !== null && d.parentNode.removeChild(d), clearTimeout(E), H(v));
3003
+ (b = $ != -1 && j != -1 || $ != -1 && U != -1 || j != -1 && U != -1) && ((b = $ != j && $ != U && j != U) || (a === null && (b = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), a = !!b && (536 > parseInt(b[1], 10) || parseInt(b[1], 10) === 536 && 11 >= parseInt(b[2], 10))), b = a && ($ == ee && j == ee && U == ee || $ == Y && j == Y && U == Y || $ == fe && j == fe && U == fe)), b = !b), b && (d.parentNode !== null && d.parentNode.removeChild(d), clearTimeout(E), H(v));
3004
3004
  }
3005
3005
  function V() {
3006
3006
  if ((/* @__PURE__ */ new Date()).getTime() - L >= N) d.parentNode !== null && d.parentNode.removeChild(d), T(Error("" + N + "ms timeout exceeded"));
@@ -3019,7 +3019,7 @@ function ei() {
3019
3019
  }), s(F, _(v, '"' + v.family + '",monospace'));
3020
3020
  });
3021
3021
  });
3022
- }, t.exports = a;
3022
+ }, t.exports = c;
3023
3023
  })();
3024
3024
  })(zt)), zt.exports;
3025
3025
  }
@@ -3326,14 +3326,14 @@ var yi = {
3326
3326
  s[o - 1] = arguments[o];
3327
3327
  if (this.observers[n]) {
3328
3328
  var i = [].concat(this.observers[n]);
3329
- i.forEach(function(c) {
3330
- c.apply(void 0, s);
3329
+ i.forEach(function(a) {
3330
+ a.apply(void 0, s);
3331
3331
  });
3332
3332
  }
3333
3333
  if (this.observers["*"]) {
3334
- var a = [].concat(this.observers["*"]);
3335
- a.forEach(function(c) {
3336
- c.apply(c, [n].concat(s));
3334
+ var c = [].concat(this.observers["*"]);
3335
+ c.forEach(function(a) {
3336
+ a.apply(a, [n].concat(s));
3337
3337
  });
3338
3338
  }
3339
3339
  }
@@ -3354,8 +3354,8 @@ function _i(t, e, n) {
3354
3354
  });
3355
3355
  }
3356
3356
  function xn(t, e, n) {
3357
- function r(a) {
3358
- return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
3357
+ function r(c) {
3358
+ return c && c.indexOf("###") > -1 ? c.replace(/###/g, ".") : c;
3359
3359
  }
3360
3360
  function s() {
3361
3361
  return !t || typeof t == "string";
@@ -3431,18 +3431,18 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3431
3431
  }, {
3432
3432
  key: "getResource",
3433
3433
  value: function(r, s, o) {
3434
- var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, c = [r, s];
3435
- return o && typeof o != "string" && (c = c.concat(o)), o && typeof o == "string" && (c = c.concat(a ? o.split(a) : o)), r.indexOf(".") > -1 && (c = r.split(".")), Rt(this.data, c);
3434
+ var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, c = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, a = [r, s];
3435
+ return o && typeof o != "string" && (a = a.concat(o)), o && typeof o == "string" && (a = a.concat(c ? o.split(c) : o)), r.indexOf(".") > -1 && (a = r.split(".")), Rt(this.data, a);
3436
3436
  }
3437
3437
  }, {
3438
3438
  key: "addResource",
3439
3439
  value: function(r, s, o, i) {
3440
- var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
3440
+ var c = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
3441
3441
  silent: !1
3442
- }, c = this.options.keySeparator;
3443
- c === void 0 && (c = ".");
3442
+ }, a = this.options.keySeparator;
3443
+ a === void 0 && (a = ".");
3444
3444
  var u = [r, s];
3445
- o && (u = u.concat(c ? o.split(c) : o)), r.indexOf(".") > -1 && (u = r.split("."), i = s, s = u[1]), this.addNamespaces(s), ir(this.data, u, i), a.silent || this.emit("added", r, s, o, i);
3445
+ o && (u = u.concat(a ? o.split(a) : o)), r.indexOf(".") > -1 && (u = r.split("."), i = s, s = u[1]), this.addNamespaces(s), ir(this.data, u, i), c.silent || this.emit("added", r, s, o, i);
3446
3446
  }
3447
3447
  }, {
3448
3448
  key: "addResources",
@@ -3450,21 +3450,21 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3450
3450
  var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
3451
3451
  silent: !1
3452
3452
  };
3453
- for (var a in o)
3454
- (typeof o[a] == "string" || Object.prototype.toString.apply(o[a]) === "[object Array]") && this.addResource(r, s, a, o[a], {
3453
+ for (var c in o)
3454
+ (typeof o[c] == "string" || Object.prototype.toString.apply(o[c]) === "[object Array]") && this.addResource(r, s, c, o[c], {
3455
3455
  silent: !0
3456
3456
  });
3457
3457
  i.silent || this.emit("added", r, s, o);
3458
3458
  }
3459
3459
  }, {
3460
3460
  key: "addResourceBundle",
3461
- value: function(r, s, o, i, a) {
3462
- var c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
3461
+ value: function(r, s, o, i, c) {
3462
+ var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
3463
3463
  silent: !1
3464
3464
  }, u = [r, s];
3465
3465
  r.indexOf(".") > -1 && (u = r.split("."), i = o, o = s, s = u[1]), this.addNamespaces(s);
3466
- var f = Rt(this.data, u) || {};
3467
- i ? bs(f, o, a) : f = J({}, f, o), ir(this.data, u, f), c.silent || this.emit("added", r, s, o);
3466
+ var l = Rt(this.data, u) || {};
3467
+ i ? bs(l, o, c) : l = J({}, l, o), ir(this.data, u, l), a.silent || this.emit("added", r, s, o);
3468
3468
  }
3469
3469
  }, {
3470
3470
  key: "removeResourceBundle",
@@ -3499,8 +3499,8 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3499
3499
  },
3500
3500
  handle: function(e, n, r, s, o) {
3501
3501
  var i = this;
3502
- return e.forEach(function(a) {
3503
- i.processors[a] && (n = i.processors[a].process(n, r, s, o));
3502
+ return e.forEach(function(c) {
3503
+ i.processors[c] && (n = i.processors[c].process(n, r, s, o));
3504
3504
  }), n;
3505
3505
  }
3506
3506
  }, cr = {}, ur = (function(t) {
@@ -3527,20 +3527,20 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3527
3527
  value: function(r, s) {
3528
3528
  var o = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
3529
3529
  o === void 0 && (o = ":");
3530
- var i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ns || this.options.defaultNS;
3530
+ var i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = s.ns || this.options.defaultNS;
3531
3531
  if (o && r.indexOf(o) > -1) {
3532
- var c = r.match(this.interpolator.nestingRegexp);
3533
- if (c && c.length > 0)
3532
+ var a = r.match(this.interpolator.nestingRegexp);
3533
+ if (a && a.length > 0)
3534
3534
  return {
3535
3535
  key: r,
3536
- namespaces: a
3536
+ namespaces: c
3537
3537
  };
3538
3538
  var u = r.split(o);
3539
- (o !== i || o === i && this.options.ns.indexOf(u[0]) > -1) && (a = u.shift()), r = u.join(i);
3539
+ (o !== i || o === i && this.options.ns.indexOf(u[0]) > -1) && (c = u.shift()), r = u.join(i);
3540
3540
  }
3541
- return typeof a == "string" && (a = [a]), {
3541
+ return typeof c == "string" && (c = [c]), {
3542
3542
  key: r,
3543
- namespaces: a
3543
+ namespaces: c
3544
3544
  };
3545
3545
  }
3546
3546
  }, {
@@ -3549,11 +3549,11 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3549
3549
  var i = this;
3550
3550
  if (ce(s) !== "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), s || (s = {}), r == null) return "";
3551
3551
  Array.isArray(r) || (r = [String(r)]);
3552
- var a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], s), u = c.key, f = c.namespaces, l = f[f.length - 1], p = s.lng || this.language, g = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
3552
+ var c = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = this.extractFromKey(r[r.length - 1], s), u = a.key, l = a.namespaces, f = l[l.length - 1], p = s.lng || this.language, g = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
3553
3553
  if (p && p.toLowerCase() === "cimode") {
3554
3554
  if (g) {
3555
3555
  var _ = s.nsSeparator || this.options.nsSeparator;
3556
- return l + _ + u;
3556
+ return f + _ + u;
3557
3557
  }
3558
3558
  return u;
3559
3559
  }
@@ -3561,14 +3561,14 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3561
3561
  if (H && y && T && N.indexOf(E) < 0 && !(typeof L == "string" && E === "[object Array]")) {
3562
3562
  if (!s.returnObjects && !this.options.returnObjects)
3563
3563
  return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, y, s) : "key '".concat(u, " (").concat(this.language, ")' returned an object instead of string.");
3564
- if (a) {
3564
+ if (c) {
3565
3565
  var oe = E === "[object Array]", Q = oe ? [] : {}, Z = oe ? w : v;
3566
3566
  for (var V in y)
3567
3567
  if (Object.prototype.hasOwnProperty.call(y, V)) {
3568
- var z = "".concat(Z).concat(a).concat(V);
3568
+ var z = "".concat(Z).concat(c).concat(V);
3569
3569
  Q[V] = this.translate(z, J({}, s, {
3570
3570
  joinArrays: !1,
3571
- ns: f
3571
+ ns: l
3572
3572
  })), Q[V] === z && (Q[V] = y[V]);
3573
3573
  }
3574
3574
  y = Q;
@@ -3580,7 +3580,7 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3580
3580
  !this.isValidLookup(y) && j && (G = !0, y = ee), this.isValidLookup(y) || (F = !0, y = u);
3581
3581
  var Y = j && ee !== y && this.options.updateMissing;
3582
3582
  if (F || G || Y) {
3583
- if (this.logger.log(Y ? "updateKey" : "missingKey", p, l, u, Y ? ee : y), a) {
3583
+ if (this.logger.log(Y ? "updateKey" : "missingKey", p, f, u, Y ? ee : y), c) {
3584
3584
  var fe = this.resolve(u, J({}, s, {
3585
3585
  keySeparator: !1
3586
3586
  }));
@@ -3592,7 +3592,7 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3592
3592
  d.push(b[k]);
3593
3593
  else this.options.saveMissingTo === "all" ? d = this.languageUtils.toResolveHierarchy(s.lng || this.language) : d.push(s.lng || this.language);
3594
3594
  var R = function(P, D, re) {
3595
- i.options.missingKeyHandler ? i.options.missingKeyHandler(P, l, D, Y ? re : y, Y, s) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(P, l, D, Y ? re : y, Y, s), i.emit("missingKey", P, l, D, y);
3595
+ i.options.missingKeyHandler ? i.options.missingKeyHandler(P, f, D, Y ? re : y, Y, s) : i.backendConnector && i.backendConnector.saveMissing && i.backendConnector.saveMissing(P, f, D, Y ? re : y, Y, s), i.emit("missingKey", P, f, D, y);
3596
3596
  };
3597
3597
  this.options.saveMissing && (this.options.saveMissingPlurals && $ ? d.forEach(function(A) {
3598
3598
  i.pluralResolver.getSuffixes(A).forEach(function(P) {
@@ -3600,14 +3600,14 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3600
3600
  });
3601
3601
  }) : R(d, u, ee));
3602
3602
  }
3603
- y = this.extendTranslation(y, r, s, m, o), F && y === u && this.options.appendNamespaceToMissingKey && (y = "".concat(l, ":").concat(u)), F && this.options.parseMissingKeyHandler && (y = this.options.parseMissingKeyHandler(y));
3603
+ y = this.extendTranslation(y, r, s, m, o), F && y === u && this.options.appendNamespaceToMissingKey && (y = "".concat(f, ":").concat(u)), F && this.options.parseMissingKeyHandler && (y = this.options.parseMissingKeyHandler(y));
3604
3604
  }
3605
3605
  return y;
3606
3606
  }
3607
3607
  }, {
3608
3608
  key: "extendTranslation",
3609
- value: function(r, s, o, i, a) {
3610
- var c = this;
3609
+ value: function(r, s, o, i, c) {
3610
+ var a = this;
3611
3611
  if (this.i18nFormat && this.i18nFormat.parse)
3612
3612
  r = this.i18nFormat.parse(r, o, i.usedLng, i.usedNS, i.usedKey, {
3613
3613
  resolved: i
@@ -3616,20 +3616,20 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3616
3616
  o.interpolation && this.interpolator.init(J({}, o, {
3617
3617
  interpolation: J({}, this.options.interpolation, o.interpolation)
3618
3618
  }));
3619
- var u = o.interpolation && o.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, f;
3619
+ var u = o.interpolation && o.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, l;
3620
3620
  if (u) {
3621
- var l = r.match(this.interpolator.nestingRegexp);
3622
- f = l && l.length;
3621
+ var f = r.match(this.interpolator.nestingRegexp);
3622
+ l = f && f.length;
3623
3623
  }
3624
3624
  var p = o.replace && typeof o.replace != "string" ? o.replace : o;
3625
3625
  if (this.options.interpolation.defaultVariables && (p = J({}, this.options.interpolation.defaultVariables, p)), r = this.interpolator.interpolate(r, p, o.lng || this.language, o), u) {
3626
3626
  var g = r.match(this.interpolator.nestingRegexp), _ = g && g.length;
3627
- f < _ && (o.nest = !1);
3627
+ l < _ && (o.nest = !1);
3628
3628
  }
3629
3629
  o.nest !== !1 && (r = this.interpolator.nest(r, function() {
3630
3630
  for (var v = arguments.length, w = new Array(v), E = 0; E < v; E++)
3631
3631
  w[E] = arguments[E];
3632
- return a && a[0] === w[0] && !o.context ? (c.logger.warn("It seems you are nesting recursively key: ".concat(w[0], " in key: ").concat(s[0])), null) : c.translate.apply(c, w.concat([s]));
3632
+ return c && c[0] === w[0] && !o.context ? (a.logger.warn("It seems you are nesting recursively key: ".concat(w[0], " in key: ").concat(s[0])), null) : a.translate.apply(a, w.concat([s]));
3633
3633
  }, o)), o.interpolation && this.interpolator.reset();
3634
3634
  }
3635
3635
  var m = o.postProcess || this.options.postProcess, y = typeof m == "string" ? [m] : m;
@@ -3640,16 +3640,16 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3640
3640
  }, {
3641
3641
  key: "resolve",
3642
3642
  value: function(r) {
3643
- var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, a, c, u, f;
3644
- return typeof r == "string" && (r = [r]), r.forEach(function(l) {
3643
+ var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i, c, a, u, l;
3644
+ return typeof r == "string" && (r = [r]), r.forEach(function(f) {
3645
3645
  if (!s.isValidLookup(i)) {
3646
- var p = s.extractFromKey(l, o), g = p.key;
3647
- a = g;
3646
+ var p = s.extractFromKey(f, o), g = p.key;
3647
+ c = g;
3648
3648
  var _ = p.namespaces;
3649
3649
  s.options.fallbackNS && (_ = _.concat(s.options.fallbackNS));
3650
3650
  var m = o.count !== void 0 && typeof o.count != "string", y = o.context !== void 0 && typeof o.context == "string" && o.context !== "", v = o.lngs ? o.lngs : s.languageUtils.toResolveHierarchy(o.lng || s.language, o.fallbackLng);
3651
3651
  _.forEach(function(w) {
3652
- s.isValidLookup(i) || (f = w, !cr["".concat(v[0], "-").concat(w)] && s.utils && s.utils.hasLoadedNamespace && !s.utils.hasLoadedNamespace(f) && (cr["".concat(v[0], "-").concat(w)] = !0, s.logger.warn('key "'.concat(a, '" for languages "').concat(v.join(", "), `" won't get resolved as namespace "`).concat(f, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach(function(E) {
3652
+ s.isValidLookup(i) || (l = w, !cr["".concat(v[0], "-").concat(w)] && s.utils && s.utils.hasLoadedNamespace && !s.utils.hasLoadedNamespace(l) && (cr["".concat(v[0], "-").concat(w)] = !0, s.logger.warn('key "'.concat(c, '" for languages "').concat(v.join(", "), `" won't get resolved as namespace "`).concat(l, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach(function(E) {
3653
3653
  if (!s.isValidLookup(i)) {
3654
3654
  u = E;
3655
3655
  var N = g, L = [N];
@@ -3660,17 +3660,17 @@ var Mt = typeof window < "u" && window.navigator && window.navigator.userAgent &
3660
3660
  m && (H = s.pluralResolver.getSuffix(E, o.count)), m && y && L.push(N + H), y && L.push(N += "".concat(s.options.contextSeparator).concat(o.context)), m && L.push(N += H);
3661
3661
  }
3662
3662
  for (var T; T = L.pop(); )
3663
- s.isValidLookup(i) || (c = T, i = s.getResource(E, w, T, o));
3663
+ s.isValidLookup(i) || (a = T, i = s.getResource(E, w, T, o));
3664
3664
  }
3665
3665
  }));
3666
3666
  });
3667
3667
  }
3668
3668
  }), {
3669
3669
  res: i,
3670
- usedKey: a,
3671
- exactUsedKey: c,
3670
+ usedKey: c,
3671
+ exactUsedKey: a,
3672
3672
  usedLng: u,
3673
- usedNS: f
3673
+ usedNS: l
3674
3674
  };
3675
3675
  }
3676
3676
  }, {
@@ -3752,8 +3752,8 @@ var Ci = (function() {
3752
3752
  if (!s) {
3753
3753
  var i = r.getLanguagePartFromCode(o);
3754
3754
  if (r.isSupportedCode(i)) return s = i;
3755
- s = r.options.supportedLngs.find(function(a) {
3756
- if (a.indexOf(i) === 0) return a;
3755
+ s = r.options.supportedLngs.find(function(c) {
3756
+ if (c.indexOf(i) === 0) return c;
3757
3757
  });
3758
3758
  }
3759
3759
  }), s || (s = this.getFallbackCodes(this.options.fallbackLng)[0]), s;
@@ -3770,11 +3770,11 @@ var Ci = (function() {
3770
3770
  }, {
3771
3771
  key: "toResolveHierarchy",
3772
3772
  value: function(n, r) {
3773
- var s = this, o = this.getFallbackCodes(r || this.options.fallbackLng || [], n), i = [], a = function(u) {
3773
+ var s = this, o = this.getFallbackCodes(r || this.options.fallbackLng || [], n), i = [], c = function(u) {
3774
3774
  u && (s.isSupportedCode(u) ? i.push(u) : s.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)));
3775
3775
  };
3776
- return typeof n == "string" && n.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(n)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(n)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(n))) : typeof n == "string" && a(this.formatLanguageCode(n)), o.forEach(function(c) {
3777
- i.indexOf(c) < 0 && a(s.formatLanguageCode(c));
3776
+ return typeof n == "string" && n.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && c(this.formatLanguageCode(n)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && c(this.getScriptPartFromCode(n)), this.options.load !== "currentOnly" && c(this.getLanguagePartFromCode(n))) : typeof n == "string" && c(this.formatLanguageCode(n)), o.forEach(function(a) {
3777
+ i.indexOf(a) < 0 && c(s.formatLanguageCode(a));
3778
3778
  }), i;
3779
3779
  }
3780
3780
  }]), t;
@@ -3990,12 +3990,12 @@ var Oi = (function() {
3990
3990
  value: function(n, r) {
3991
3991
  var s = this, o = this.getRule(n);
3992
3992
  if (o) {
3993
- var i = o.noAbs ? o.plurals(r) : o.plurals(Math.abs(r)), a = o.numbers[i];
3994
- this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 && (a === 2 ? a = "plural" : a === 1 && (a = ""));
3995
- var c = function() {
3996
- return s.options.prepend && a.toString() ? s.options.prepend + a.toString() : a.toString();
3993
+ var i = o.noAbs ? o.plurals(r) : o.plurals(Math.abs(r)), c = o.numbers[i];
3994
+ this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 && (c === 2 ? c = "plural" : c === 1 && (c = ""));
3995
+ var a = function() {
3996
+ return s.options.prepend && c.toString() ? s.options.prepend + c.toString() : c.toString();
3997
3997
  };
3998
- return this.options.compatibilityJSON === "v1" ? a === 1 ? "" : typeof a == "number" ? "_plural_".concat(a.toString()) : c() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 ? c() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
3998
+ return this.options.compatibilityJSON === "v1" ? c === 1 ? "" : typeof c == "number" ? "_plural_".concat(c.toString()) : a() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && o.numbers.length === 2 && o.numbers[0] === 1 ? a() : this.options.prepend && i.toString() ? this.options.prepend + i.toString() : i.toString();
3999
3999
  }
4000
4000
  return this.logger.warn("no plural rule found for: ".concat(n)), "";
4001
4001
  }
@@ -4035,43 +4035,43 @@ var Oi = (function() {
4035
4035
  }, {
4036
4036
  key: "interpolate",
4037
4037
  value: function(n, r, s, o) {
4038
- var i = this, a, c, u, f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
4039
- function l(y) {
4038
+ var i = this, c, a, u, l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
4039
+ function f(y) {
4040
4040
  return y.replace(/\$/g, "$$$$");
4041
4041
  }
4042
4042
  var p = function(v) {
4043
4043
  if (v.indexOf(i.formatSeparator) < 0) {
4044
- var w = ar(r, f, v);
4044
+ var w = ar(r, l, v);
4045
4045
  return i.alwaysFormat ? i.format(w, void 0, s) : w;
4046
4046
  }
4047
4047
  var E = v.split(i.formatSeparator), N = E.shift().trim(), L = E.join(i.formatSeparator).trim();
4048
- return i.format(ar(r, f, N), L, s, o);
4048
+ return i.format(ar(r, l, N), L, s, o);
4049
4049
  };
4050
4050
  this.resetRegExp();
4051
4051
  var g = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, _ = o && o.interpolation && o.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, m = [{
4052
4052
  regex: this.regexpUnescape,
4053
4053
  safeValue: function(v) {
4054
- return l(v);
4054
+ return f(v);
4055
4055
  }
4056
4056
  }, {
4057
4057
  regex: this.regexp,
4058
4058
  safeValue: function(v) {
4059
- return i.escapeValue ? l(i.escape(v)) : l(v);
4059
+ return i.escapeValue ? f(i.escape(v)) : f(v);
4060
4060
  }
4061
4061
  }];
4062
4062
  return m.forEach(function(y) {
4063
- for (u = 0; a = y.regex.exec(n); ) {
4064
- if (c = p(a[1].trim()), c === void 0)
4063
+ for (u = 0; c = y.regex.exec(n); ) {
4064
+ if (a = p(c[1].trim()), a === void 0)
4065
4065
  if (typeof g == "function") {
4066
- var v = g(n, a, o);
4067
- c = typeof v == "string" ? v : "";
4066
+ var v = g(n, c, o);
4067
+ a = typeof v == "string" ? v : "";
4068
4068
  } else if (_) {
4069
- c = a[0];
4069
+ a = c[0];
4070
4070
  continue;
4071
4071
  } else
4072
- i.logger.warn("missed to pass in variable ".concat(a[1], " for interpolating ").concat(n)), c = "";
4073
- else typeof c != "string" && !i.useRawValueToEscape && (c = or(c));
4074
- if (n = n.replace(a[0], y.safeValue(c)), y.regex.lastIndex = 0, u++, u >= i.maxReplaces)
4072
+ i.logger.warn("missed to pass in variable ".concat(c[1], " for interpolating ").concat(n)), a = "";
4073
+ else typeof a != "string" && !i.useRawValueToEscape && (a = or(a));
4074
+ if (n = n.replace(c[0], y.safeValue(a)), y.regex.lastIndex = 0, u++, u >= i.maxReplaces)
4075
4075
  break;
4076
4076
  }
4077
4077
  }), n;
@@ -4079,32 +4079,32 @@ var Oi = (function() {
4079
4079
  }, {
4080
4080
  key: "nest",
4081
4081
  value: function(n, r) {
4082
- var s = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, a, c = J({}, o);
4083
- c.applyPostProcessor = !1, delete c.defaultValue;
4082
+ var s = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, c, a = J({}, o);
4083
+ a.applyPostProcessor = !1, delete a.defaultValue;
4084
4084
  function u(g, _) {
4085
4085
  var m = this.nestingOptionsSeparator;
4086
4086
  if (g.indexOf(m) < 0) return g;
4087
4087
  var y = g.split(new RegExp("".concat(m, "[ ]*{"))), v = "{".concat(y[1]);
4088
- g = y[0], v = this.interpolate(v, c), v = v.replace(/'/g, '"');
4088
+ g = y[0], v = this.interpolate(v, a), v = v.replace(/'/g, '"');
4089
4089
  try {
4090
- c = JSON.parse(v), _ && (c = J({}, _, c));
4090
+ a = JSON.parse(v), _ && (a = J({}, _, a));
4091
4091
  } catch (w) {
4092
4092
  return this.logger.warn("failed parsing options string in nesting for key ".concat(g), w), "".concat(g).concat(m).concat(v);
4093
4093
  }
4094
- return delete c.defaultValue, g;
4094
+ return delete a.defaultValue, g;
4095
4095
  }
4096
4096
  for (; i = this.nestingRegexp.exec(n); ) {
4097
- var f = [], l = !1;
4097
+ var l = [], f = !1;
4098
4098
  if (i[0].includes(this.formatSeparator) && !/{.*}/.test(i[1])) {
4099
4099
  var p = i[1].split(this.formatSeparator).map(function(g) {
4100
4100
  return g.trim();
4101
4101
  });
4102
- i[1] = p.shift(), f = p, l = !0;
4102
+ i[1] = p.shift(), l = p, f = !0;
4103
4103
  }
4104
- if (a = r(u.call(this, i[1].trim(), c), c), a && i[0] === n && typeof a != "string") return a;
4105
- typeof a != "string" && (a = or(a)), a || (this.logger.warn("missed to resolve ".concat(i[1], " for nesting ").concat(n)), a = ""), l && (a = f.reduce(function(g, _) {
4104
+ if (c = r(u.call(this, i[1].trim(), a), a), c && i[0] === n && typeof c != "string") return c;
4105
+ typeof c != "string" && (c = or(c)), c || (this.logger.warn("missed to resolve ".concat(i[1], " for nesting ").concat(n)), c = ""), f && (c = l.reduce(function(g, _) {
4106
4106
  return s.format(g, _, o.lng, o);
4107
- }, a.trim())), n = n.replace(i[0], a), this.regexp.lastIndex = 0;
4107
+ }, c.trim())), n = n.replace(i[0], c), this.regexp.lastIndex = 0;
4108
4108
  }
4109
4109
  return n;
4110
4110
  }
@@ -4123,66 +4123,66 @@ var Fi = (function(t) {
4123
4123
  return be(e, [{
4124
4124
  key: "queueLoad",
4125
4125
  value: function(r, s, o, i) {
4126
- var a = this, c = [], u = [], f = [], l = [];
4126
+ var c = this, a = [], u = [], l = [], f = [];
4127
4127
  return r.forEach(function(p) {
4128
4128
  var g = !0;
4129
4129
  s.forEach(function(_) {
4130
4130
  var m = "".concat(p, "|").concat(_);
4131
- !o.reload && a.store.hasResourceBundle(p, _) ? a.state[m] = 2 : a.state[m] < 0 || (a.state[m] === 1 ? u.indexOf(m) < 0 && u.push(m) : (a.state[m] = 1, g = !1, u.indexOf(m) < 0 && u.push(m), c.indexOf(m) < 0 && c.push(m), l.indexOf(_) < 0 && l.push(_)));
4132
- }), g || f.push(p);
4133
- }), (c.length || u.length) && this.queue.push({
4131
+ !o.reload && c.store.hasResourceBundle(p, _) ? c.state[m] = 2 : c.state[m] < 0 || (c.state[m] === 1 ? u.indexOf(m) < 0 && u.push(m) : (c.state[m] = 1, g = !1, u.indexOf(m) < 0 && u.push(m), a.indexOf(m) < 0 && a.push(m), f.indexOf(_) < 0 && f.push(_)));
4132
+ }), g || l.push(p);
4133
+ }), (a.length || u.length) && this.queue.push({
4134
4134
  pending: u,
4135
4135
  loaded: {},
4136
4136
  errors: [],
4137
4137
  callback: i
4138
4138
  }), {
4139
- toLoad: c,
4139
+ toLoad: a,
4140
4140
  pending: u,
4141
- toLoadLanguages: f,
4142
- toLoadNamespaces: l
4141
+ toLoadLanguages: l,
4142
+ toLoadNamespaces: f
4143
4143
  };
4144
4144
  }
4145
4145
  }, {
4146
4146
  key: "loaded",
4147
4147
  value: function(r, s, o) {
4148
- var i = r.split("|"), a = i[0], c = i[1];
4149
- s && this.emit("failedLoading", a, c, s), o && this.store.addResourceBundle(a, c, o), this.state[r] = s ? -1 : 2;
4148
+ var i = r.split("|"), c = i[0], a = i[1];
4149
+ s && this.emit("failedLoading", c, a, s), o && this.store.addResourceBundle(c, a, o), this.state[r] = s ? -1 : 2;
4150
4150
  var u = {};
4151
- this.queue.forEach(function(f) {
4152
- vi(f.loaded, [a], c), Ii(f.pending, r), s && f.errors.push(s), f.pending.length === 0 && !f.done && (Object.keys(f.loaded).forEach(function(l) {
4153
- u[l] || (u[l] = []), f.loaded[l].length && f.loaded[l].forEach(function(p) {
4154
- u[l].indexOf(p) < 0 && u[l].push(p);
4151
+ this.queue.forEach(function(l) {
4152
+ vi(l.loaded, [c], a), Ii(l.pending, r), s && l.errors.push(s), l.pending.length === 0 && !l.done && (Object.keys(l.loaded).forEach(function(f) {
4153
+ u[f] || (u[f] = []), l.loaded[f].length && l.loaded[f].forEach(function(p) {
4154
+ u[f].indexOf(p) < 0 && u[f].push(p);
4155
4155
  });
4156
- }), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
4157
- }), this.emit("loaded", u), this.queue = this.queue.filter(function(f) {
4158
- return !f.done;
4156
+ }), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
4157
+ }), this.emit("loaded", u), this.queue = this.queue.filter(function(l) {
4158
+ return !l.done;
4159
4159
  });
4160
4160
  }
4161
4161
  }, {
4162
4162
  key: "read",
4163
4163
  value: function(r, s, o) {
4164
- var i = this, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, c = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, u = arguments.length > 5 ? arguments[5] : void 0;
4165
- return r.length ? this.backend[o](r, s, function(f, l) {
4166
- if (f && l && a < 5) {
4164
+ var i = this, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 350, u = arguments.length > 5 ? arguments[5] : void 0;
4165
+ return r.length ? this.backend[o](r, s, function(l, f) {
4166
+ if (l && f && c < 5) {
4167
4167
  setTimeout(function() {
4168
- i.read.call(i, r, s, o, a + 1, c * 2, u);
4169
- }, c);
4168
+ i.read.call(i, r, s, o, c + 1, a * 2, u);
4169
+ }, a);
4170
4170
  return;
4171
4171
  }
4172
- u(f, l);
4172
+ u(l, f);
4173
4173
  }) : u(null, {});
4174
4174
  }
4175
4175
  }, {
4176
4176
  key: "prepareLoading",
4177
4177
  value: function(r, s) {
4178
- var o = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = arguments.length > 3 ? arguments[3] : void 0;
4178
+ var o = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = arguments.length > 3 ? arguments[3] : void 0;
4179
4179
  if (!this.backend)
4180
- return this.logger.warn("No backend was added via i18next.use. Will not load resources."), a && a();
4180
+ return this.logger.warn("No backend was added via i18next.use. Will not load resources."), c && c();
4181
4181
  typeof r == "string" && (r = this.languageUtils.toResolveHierarchy(r)), typeof s == "string" && (s = [s]);
4182
- var c = this.queueLoad(r, s, i, a);
4183
- if (!c.toLoad.length)
4184
- return c.pending.length || a(), null;
4185
- c.toLoad.forEach(function(u) {
4182
+ var a = this.queueLoad(r, s, i, c);
4183
+ if (!a.toLoad.length)
4184
+ return a.pending.length || c(), null;
4185
+ a.toLoad.forEach(function(u) {
4186
4186
  o.loadOne(u);
4187
4187
  });
4188
4188
  }
@@ -4201,21 +4201,21 @@ var Fi = (function(t) {
4201
4201
  }, {
4202
4202
  key: "loadOne",
4203
4203
  value: function(r) {
4204
- var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = r.split("|"), a = i[0], c = i[1];
4205
- this.read(a, c, "read", void 0, void 0, function(u, f) {
4206
- u && s.logger.warn("".concat(o, "loading namespace ").concat(c, " for language ").concat(a, " failed"), u), !u && f && s.logger.log("".concat(o, "loaded namespace ").concat(c, " for language ").concat(a), f), s.loaded(r, u, f);
4204
+ var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", i = r.split("|"), c = i[0], a = i[1];
4205
+ this.read(c, a, "read", void 0, void 0, function(u, l) {
4206
+ u && s.logger.warn("".concat(o, "loading namespace ").concat(a, " for language ").concat(c, " failed"), u), !u && l && s.logger.log("".concat(o, "loaded namespace ").concat(a, " for language ").concat(c), l), s.loaded(r, u, l);
4207
4207
  });
4208
4208
  }
4209
4209
  }, {
4210
4210
  key: "saveMissing",
4211
- value: function(r, s, o, i, a) {
4212
- var c = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
4211
+ value: function(r, s, o, i, c) {
4212
+ var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
4213
4213
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(s)) {
4214
4214
  this.logger.warn('did not save key "'.concat(o, '" as the namespace "').concat(s, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
4215
4215
  return;
4216
4216
  }
4217
- o == null || o === "" || (this.backend && this.backend.create && this.backend.create(r, s, o, i, null, J({}, c, {
4218
- isUpdate: a
4217
+ o == null || o === "" || (this.backend && this.backend.create && this.backend.create(r, s, o, i, null, J({}, a, {
4218
+ isUpdate: c
4219
4219
  })), !(!r || !r[0]) && this.store.addResource(r[0], s, o, i));
4220
4220
  }
4221
4221
  }]), e;
@@ -4313,20 +4313,20 @@ var Ni = (function(t) {
4313
4313
  }
4314
4314
  if (!this.options.isClone) {
4315
4315
  this.modules.logger ? he.init(i(this.modules.logger), this.options) : he.init(null, this.options);
4316
- var a = new Ci(this.options);
4316
+ var c = new Ci(this.options);
4317
4317
  this.store = new Si(this.options.resources, this.options);
4318
- var c = this.services;
4319
- c.logger = he, c.resourceStore = this.store, c.languageUtils = a, c.pluralResolver = new Oi(a, {
4318
+ var a = this.services;
4319
+ a.logger = he, a.resourceStore = this.store, a.languageUtils = c, a.pluralResolver = new Oi(c, {
4320
4320
  prepend: this.options.pluralSeparator,
4321
4321
  compatibilityJSON: this.options.compatibilityJSON,
4322
4322
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
4323
- }), c.interpolator = new Ti(this.options), c.utils = {
4323
+ }), a.interpolator = new Ti(this.options), a.utils = {
4324
4324
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
4325
- }, c.backendConnector = new Fi(i(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", function(_) {
4325
+ }, a.backendConnector = new Fi(i(this.modules.backend), a.resourceStore, a, this.options), a.backendConnector.on("*", function(_) {
4326
4326
  for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0), v = 1; v < m; v++)
4327
4327
  y[v - 1] = arguments[v];
4328
4328
  r.emit.apply(r, [_].concat(y));
4329
- }), this.modules.languageDetector && (c.languageDetector = i(this.modules.languageDetector), c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = i(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new ur(this.services, this.options), this.translator.on("*", function(_) {
4329
+ }), this.modules.languageDetector && (a.languageDetector = i(this.modules.languageDetector), a.languageDetector.init(a, this.options.detection, this.options)), this.modules.i18nFormat && (a.i18nFormat = i(this.modules.i18nFormat), a.i18nFormat.init && a.i18nFormat.init(this)), this.translator = new ur(this.services, this.options), this.translator.on("*", function(_) {
4330
4330
  for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0), v = 1; v < m; v++)
4331
4331
  y[v - 1] = arguments[v];
4332
4332
  r.emit.apply(r, [_].concat(y));
@@ -4339,15 +4339,15 @@ var Ni = (function(t) {
4339
4339
  u.length > 0 && u[0] !== "dev" && (this.options.lng = u[0]);
4340
4340
  }
4341
4341
  !this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
4342
- var f = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
4343
- f.forEach(function(_) {
4342
+ var l = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
4343
+ l.forEach(function(_) {
4344
4344
  r[_] = function() {
4345
4345
  var m;
4346
4346
  return (m = r.store)[_].apply(m, arguments);
4347
4347
  };
4348
4348
  });
4349
- var l = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
4350
- l.forEach(function(_) {
4349
+ var f = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
4350
+ f.forEach(function(_) {
4351
4351
  r[_] = function() {
4352
4352
  var m;
4353
4353
  return (m = r.store)[_].apply(m, arguments), r;
@@ -4365,28 +4365,28 @@ var Ni = (function(t) {
4365
4365
  }, {
4366
4366
  key: "loadResources",
4367
4367
  value: function(r) {
4368
- var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mt, i = o, a = typeof r == "string" ? r : this.language;
4368
+ var s = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mt, i = o, c = typeof r == "string" ? r : this.language;
4369
4369
  if (typeof r == "function" && (i = r), !this.options.resources || this.options.partialBundledLanguages) {
4370
- if (a && a.toLowerCase() === "cimode") return i();
4371
- var c = [], u = function(p) {
4370
+ if (c && c.toLowerCase() === "cimode") return i();
4371
+ var a = [], u = function(p) {
4372
4372
  if (p) {
4373
4373
  var g = s.services.languageUtils.toResolveHierarchy(p);
4374
4374
  g.forEach(function(_) {
4375
- c.indexOf(_) < 0 && c.push(_);
4375
+ a.indexOf(_) < 0 && a.push(_);
4376
4376
  });
4377
4377
  }
4378
4378
  };
4379
- if (a)
4380
- u(a);
4379
+ if (c)
4380
+ u(c);
4381
4381
  else {
4382
- var f = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
4383
- f.forEach(function(l) {
4384
- return u(l);
4382
+ var l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
4383
+ l.forEach(function(f) {
4384
+ return u(f);
4385
4385
  });
4386
4386
  }
4387
- this.options.preload && this.options.preload.forEach(function(l) {
4388
- return u(l);
4389
- }), this.services.backendConnector.load(c, this.options.ns, i);
4387
+ this.options.preload && this.options.preload.forEach(function(f) {
4388
+ return u(f);
4389
+ }), this.services.backendConnector.load(a, this.options.ns, i);
4390
4390
  } else
4391
4391
  i(null);
4392
4392
  }
@@ -4394,8 +4394,8 @@ var Ni = (function(t) {
4394
4394
  key: "reloadResources",
4395
4395
  value: function(r, s, o) {
4396
4396
  var i = Xe();
4397
- return r || (r = this.languages), s || (s = this.options.ns), o || (o = mt), this.services.backendConnector.reload(r, s, function(a) {
4398
- i.resolve(), o(a);
4397
+ return r || (r = this.languages), s || (s = this.options.ns), o || (o = mt), this.services.backendConnector.reload(r, s, function(c) {
4398
+ i.resolve(), o(c);
4399
4399
  }), i;
4400
4400
  }
4401
4401
  }, {
@@ -4412,32 +4412,32 @@ var Ni = (function(t) {
4412
4412
  this.isLanguageChangingTo = r;
4413
4413
  var i = Xe();
4414
4414
  this.emit("languageChanging", r);
4415
- var a = function(f, l) {
4416
- l ? (o.language = l, o.languages = o.services.languageUtils.toResolveHierarchy(l), o.translator.changeLanguage(l), o.isLanguageChangingTo = void 0, o.emit("languageChanged", l), o.logger.log("languageChanged", l)) : o.isLanguageChangingTo = void 0, i.resolve(function() {
4415
+ var c = function(l, f) {
4416
+ f ? (o.language = f, o.languages = o.services.languageUtils.toResolveHierarchy(f), o.translator.changeLanguage(f), o.isLanguageChangingTo = void 0, o.emit("languageChanged", f), o.logger.log("languageChanged", f)) : o.isLanguageChangingTo = void 0, i.resolve(function() {
4417
4417
  return o.t.apply(o, arguments);
4418
- }), s && s(f, function() {
4418
+ }), s && s(l, function() {
4419
4419
  return o.t.apply(o, arguments);
4420
4420
  });
4421
- }, c = function(f) {
4422
- var l = typeof f == "string" ? f : o.services.languageUtils.getBestMatchFromCodes(f);
4423
- l && (o.language || (o.language = l, o.languages = o.services.languageUtils.toResolveHierarchy(l)), o.translator.language || o.translator.changeLanguage(l), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage(l)), o.loadResources(l, function(p) {
4424
- a(p, l);
4421
+ }, a = function(l) {
4422
+ var f = typeof l == "string" ? l : o.services.languageUtils.getBestMatchFromCodes(l);
4423
+ f && (o.language || (o.language = f, o.languages = o.services.languageUtils.toResolveHierarchy(f)), o.translator.language || o.translator.changeLanguage(f), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage(f)), o.loadResources(f, function(p) {
4424
+ c(p, f);
4425
4425
  });
4426
4426
  };
4427
- return !r && this.services.languageDetector && !this.services.languageDetector.async ? c(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(c) : c(r), i;
4427
+ return !r && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect(a) : a(r), i;
4428
4428
  }
4429
4429
  }, {
4430
4430
  key: "getFixedT",
4431
4431
  value: function(r, s) {
4432
- var o = this, i = function a(c, u) {
4433
- var f;
4432
+ var o = this, i = function c(a, u) {
4433
+ var l;
4434
4434
  if (ce(u) !== "object") {
4435
- for (var l = arguments.length, p = new Array(l > 2 ? l - 2 : 0), g = 2; g < l; g++)
4435
+ for (var f = arguments.length, p = new Array(f > 2 ? f - 2 : 0), g = 2; g < f; g++)
4436
4436
  p[g - 2] = arguments[g];
4437
- f = o.options.overloadTranslationOptionHandler([c, u].concat(p));
4437
+ l = o.options.overloadTranslationOptionHandler([a, u].concat(p));
4438
4438
  } else
4439
- f = J({}, u);
4440
- return f.lng = f.lng || a.lng, f.lngs = f.lngs || a.lngs, f.ns = f.ns || a.ns, o.t(c, f);
4439
+ l = J({}, u);
4440
+ return l.lng = l.lng || c.lng, l.lngs = l.lngs || c.lngs, l.ns = l.ns || c.ns, o.t(a, l);
4441
4441
  };
4442
4442
  return typeof r == "string" ? i.lng = r : i.lngs = r, i.ns = s, i;
4443
4443
  }
@@ -4466,26 +4466,26 @@ var Ni = (function(t) {
4466
4466
  return this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages), !1;
4467
4467
  if (!this.languages || !this.languages.length)
4468
4468
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
4469
- var i = this.languages[0], a = this.options ? this.options.fallbackLng : !1, c = this.languages[this.languages.length - 1];
4469
+ var i = this.languages[0], c = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
4470
4470
  if (i.toLowerCase() === "cimode") return !0;
4471
4471
  var u = function(p, g) {
4472
4472
  var _ = s.services.backendConnector.state["".concat(p, "|").concat(g)];
4473
4473
  return _ === -1 || _ === 2;
4474
4474
  };
4475
4475
  if (o.precheck) {
4476
- var f = o.precheck(this, u);
4477
- if (f !== void 0) return f;
4476
+ var l = o.precheck(this, u);
4477
+ if (l !== void 0) return l;
4478
4478
  }
4479
- return !!(this.hasResourceBundle(i, r) || !this.services.backendConnector.backend || u(i, r) && (!a || u(c, r)));
4479
+ return !!(this.hasResourceBundle(i, r) || !this.services.backendConnector.backend || u(i, r) && (!c || u(a, r)));
4480
4480
  }
4481
4481
  }, {
4482
4482
  key: "loadNamespaces",
4483
4483
  value: function(r, s) {
4484
4484
  var o = this, i = Xe();
4485
- return this.options.ns ? (typeof r == "string" && (r = [r]), r.forEach(function(a) {
4486
- o.options.ns.indexOf(a) < 0 && o.options.ns.push(a);
4487
- }), this.loadResources(function(a) {
4488
- i.resolve(), s && s(a);
4485
+ return this.options.ns ? (typeof r == "string" && (r = [r]), r.forEach(function(c) {
4486
+ o.options.ns.indexOf(c) < 0 && o.options.ns.push(c);
4487
+ }), this.loadResources(function(c) {
4488
+ i.resolve(), s && s(c);
4489
4489
  }), i) : (s && s(), Promise.resolve());
4490
4490
  }
4491
4491
  }, {
@@ -4493,11 +4493,11 @@ var Ni = (function(t) {
4493
4493
  value: function(r, s) {
4494
4494
  var o = Xe();
4495
4495
  typeof r == "string" && (r = [r]);
4496
- var i = this.options.preload || [], a = r.filter(function(c) {
4497
- return i.indexOf(c) < 0;
4496
+ var i = this.options.preload || [], c = r.filter(function(a) {
4497
+ return i.indexOf(a) < 0;
4498
4498
  });
4499
- return a.length ? (this.options.preload = i.concat(a), this.loadResources(function(c) {
4500
- o.resolve(), s && s(c);
4499
+ return c.length ? (this.options.preload = i.concat(c), this.loadResources(function(a) {
4500
+ o.resolve(), s && s(a);
4501
4501
  }), o) : (s && s(), Promise.resolve());
4502
4502
  }
4503
4503
  }, {
@@ -4518,18 +4518,18 @@ var Ni = (function(t) {
4518
4518
  value: function() {
4519
4519
  var r = this, s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mt, i = J({}, this.options, s, {
4520
4520
  isClone: !0
4521
- }), a = new e(i), c = ["store", "services", "language"];
4522
- return c.forEach(function(u) {
4523
- a[u] = r[u];
4524
- }), a.services = J({}, this.services), a.services.utils = {
4525
- hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
4526
- }, a.translator = new ur(a.services, a.options), a.translator.on("*", function(u) {
4527
- for (var f = arguments.length, l = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
4528
- l[p - 1] = arguments[p];
4529
- a.emit.apply(a, [u].concat(l));
4530
- }), a.init(i, o), a.translator.options = a.options, a.translator.backendConnector.services.utils = {
4531
- hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
4532
- }, a;
4521
+ }), c = new e(i), a = ["store", "services", "language"];
4522
+ return a.forEach(function(u) {
4523
+ c[u] = r[u];
4524
+ }), c.services = J({}, this.services), c.services.utils = {
4525
+ hasLoadedNamespace: c.hasLoadedNamespace.bind(c)
4526
+ }, c.translator = new ur(c.services, c.options), c.translator.on("*", function(u) {
4527
+ for (var l = arguments.length, f = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
4528
+ f[p - 1] = arguments[p];
4529
+ c.emit.apply(c, [u].concat(f));
4530
+ }), c.init(i, o), c.translator.options = c.options, c.translator.backendConnector.services.utils = {
4531
+ hasLoadedNamespace: c.hasLoadedNamespace.bind(c)
4532
+ }, c;
4533
4533
  }
4534
4534
  }]), e;
4535
4535
  })(Ce), $e = new Ni();
@@ -4710,15 +4710,15 @@ function Ss(...t) {
4710
4710
  return (n, r = 0, s = 0) => {
4711
4711
  const o = [], i = n.split(`
4712
4712
  `);
4713
- for (let a = r; a < i.length; a++) {
4714
- let c = i[a];
4715
- c.length > 1024 && (c = c.slice(0, 1024));
4716
- const u = dr.test(c) ? c.replace(dr, "$1") : c;
4713
+ for (let c = r; c < i.length; c++) {
4714
+ let a = i[c];
4715
+ a.length > 1024 && (a = a.slice(0, 1024));
4716
+ const u = dr.test(a) ? a.replace(dr, "$1") : a;
4717
4717
  if (!u.match(/\S*Error: /)) {
4718
- for (const f of e) {
4719
- const l = f(u);
4720
- if (l) {
4721
- o.push(l);
4718
+ for (const l of e) {
4719
+ const f = l(u);
4720
+ if (f) {
4721
+ o.push(f);
4722
4722
  break;
4723
4723
  }
4724
4724
  }
@@ -4897,12 +4897,12 @@ function Ts(t, e = {}) {
4897
4897
  let n = t;
4898
4898
  const r = 5, s = [];
4899
4899
  let o = 0, i = 0;
4900
- const a = " > ", c = a.length;
4900
+ const c = " > ", a = c.length;
4901
4901
  let u;
4902
- const f = Array.isArray(e) ? e : e.keyAttrs, l = !Array.isArray(e) && e.maxStringLength || ca;
4903
- for (; n && o++ < r && (u = ua(n, f), !(u === "html" || o > 1 && i + s.length * c + u.length >= l)); )
4902
+ const l = Array.isArray(e) ? e : e.keyAttrs, f = !Array.isArray(e) && e.maxStringLength || ca;
4903
+ for (; n && o++ < r && (u = ua(n, l), !(u === "html" || o > 1 && i + s.length * a + u.length >= f)); )
4904
4904
  s.push(u), i += u.length, n = n.parentNode;
4905
- return s.reverse().join(a);
4905
+ return s.reverse().join(c);
4906
4906
  } catch {
4907
4907
  return "<unknown>";
4908
4908
  }
@@ -4927,15 +4927,15 @@ function ua(t, e) {
4927
4927
  n.id && r.push(`#${n.id}`);
4928
4928
  const i = n.className;
4929
4929
  if (i && ge(i)) {
4930
- const a = i.split(/\s+/);
4931
- for (const c of a)
4932
- r.push(`.${c}`);
4930
+ const c = i.split(/\s+/);
4931
+ for (const a of c)
4932
+ r.push(`.${a}`);
4933
4933
  }
4934
4934
  }
4935
4935
  const o = ["aria-label", "type", "name", "title", "alt"];
4936
4936
  for (const i of o) {
4937
- const a = n.getAttribute(i);
4938
- a && r.push(`[${i}="${a}"]`);
4937
+ const c = n.getAttribute(i);
4938
+ c && r.push(`[${i}="${c}"]`);
4939
4939
  }
4940
4940
  return r.join("");
4941
4941
  }
@@ -5483,13 +5483,13 @@ class le {
5483
5483
  tags: s,
5484
5484
  attributes: o,
5485
5485
  extra: i,
5486
- user: a,
5487
- contexts: c,
5486
+ user: c,
5487
+ contexts: a,
5488
5488
  level: u,
5489
- fingerprint: f = [],
5490
- propagationContext: l
5489
+ fingerprint: l = [],
5490
+ propagationContext: f
5491
5491
  } = r || {};
5492
- return this._tags = { ...this._tags, ...s }, this._attributes = { ...this._attributes, ...o }, this._extra = { ...this._extra, ...i }, this._contexts = { ...this._contexts, ...c }, a && Object.keys(a).length && (this._user = a), u && (this._level = u), f.length && (this._fingerprint = f), l && (this._propagationContext = l), this;
5492
+ return this._tags = { ...this._tags, ...s }, this._attributes = { ...this._attributes, ...o }, this._extra = { ...this._extra, ...i }, this._contexts = { ...this._contexts, ...a }, c && Object.keys(c).length && (this._user = c), u && (this._level = u), l.length && (this._fingerprint = l), f && (this._propagationContext = f), this;
5493
5493
  }
5494
5494
  /**
5495
5495
  * Clears the current scope and resets its properties.
@@ -5835,8 +5835,8 @@ function za(t) {
5835
5835
  return t === "http" || t === "https";
5836
5836
  }
5837
5837
  function Ke(t, e = !1) {
5838
- const { host: n, path: r, pass: s, port: o, projectId: i, protocol: a, publicKey: c } = t;
5839
- return `${a}://${c}${e && s ? `:${s}` : ""}@${n}${o ? `:${o}` : ""}/${r && `${r}/`}${i}`;
5838
+ const { host: n, path: r, pass: s, port: o, projectId: i, protocol: c, publicKey: a } = t;
5839
+ return `${c}://${a}${e && s ? `:${s}` : ""}@${n}${o ? `:${o}` : ""}/${r && `${r}/`}${i}`;
5840
5840
  }
5841
5841
  function Ga(t) {
5842
5842
  const e = Va.exec(t);
@@ -5846,14 +5846,14 @@ function Ga(t) {
5846
5846
  });
5847
5847
  return;
5848
5848
  }
5849
- const [n, r, s = "", o = "", i = "", a = ""] = e.slice(1);
5850
- let c = "", u = a;
5851
- const f = u.split("/");
5852
- if (f.length > 1 && (c = f.slice(0, -1).join("/"), u = f.pop()), u) {
5853
- const l = u.match(/^\d+/);
5854
- l && (u = l[0]);
5849
+ const [n, r, s = "", o = "", i = "", c = ""] = e.slice(1);
5850
+ let a = "", u = c;
5851
+ const l = u.split("/");
5852
+ if (l.length > 1 && (a = l.slice(0, -1).join("/"), u = l.pop()), u) {
5853
+ const f = u.match(/^\d+/);
5854
+ f && (u = f[0]);
5855
5855
  }
5856
- return Bs({ host: o, pass: s, path: c, projectId: u, port: i, protocol: n, publicKey: r });
5856
+ return Bs({ host: o, pass: s, path: a, projectId: u, port: i, protocol: n, publicKey: r });
5857
5857
  }
5858
5858
  function Bs(t) {
5859
5859
  return {
@@ -5925,17 +5925,17 @@ function An(t) {
5925
5925
  return t.getSpanJSON();
5926
5926
  const { spanId: e, traceId: n } = t.spanContext();
5927
5927
  if (Za(t)) {
5928
- const { attributes: s, startTime: o, name: i, endTime: a, status: c, links: u } = t, f = "parentSpanId" in t ? t.parentSpanId : "parentSpanContext" in t ? (r = t.parentSpanContext) == null ? void 0 : r.spanId : void 0;
5928
+ const { attributes: s, startTime: o, name: i, endTime: c, status: a, links: u } = t, l = "parentSpanId" in t ? t.parentSpanId : "parentSpanContext" in t ? (r = t.parentSpanContext) == null ? void 0 : r.spanId : void 0;
5929
5929
  return {
5930
5930
  span_id: e,
5931
5931
  trace_id: n,
5932
5932
  data: s,
5933
5933
  description: i,
5934
- parent_span_id: f,
5934
+ parent_span_id: l,
5935
5935
  start_timestamp: Rr(o),
5936
5936
  // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
5937
- timestamp: Rr(a) || void 0,
5938
- status: nc(c),
5937
+ timestamp: Rr(c) || void 0,
5938
+ status: nc(a),
5939
5939
  op: s[Ma],
5940
5940
  origin: s[Na],
5941
5941
  links: Qa(u)
@@ -6032,22 +6032,22 @@ function uc(t) {
6032
6032
  if (!e)
6033
6033
  return {};
6034
6034
  const n = Us(t), r = An(n), s = r.data, o = n.spanContext().traceState, i = (m = (_ = o == null ? void 0 : o.get("sentry.sample_rate")) != null ? _ : s[Ia]) != null ? m : s[Fa];
6035
- function a(w) {
6035
+ function c(w) {
6036
6036
  return (typeof i == "number" || typeof i == "string") && (w.sample_rate = `${i}`), w;
6037
6037
  }
6038
- const c = n[ac];
6039
- if (c)
6040
- return a(c);
6041
- const u = o == null ? void 0 : o.get("sentry.dsc"), f = u && Ua(u);
6042
- if (f)
6043
- return a(f);
6044
- const l = Hs(t.spanContext().traceId, e), p = s[Ta], g = r.description;
6045
- return p !== "url" && g && (l.transaction = g), sc() && (l.sampled = String(tc(n)), l.sample_rand = // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans
6038
+ const a = n[ac];
6039
+ if (a)
6040
+ return c(a);
6041
+ const u = o == null ? void 0 : o.get("sentry.dsc"), l = u && Ua(u);
6042
+ if (l)
6043
+ return c(l);
6044
+ const f = Hs(t.spanContext().traceId, e), p = s[Ta], g = r.description;
6045
+ return p !== "url" && g && (f.transaction = g), sc() && (f.sampled = String(tc(n)), f.sample_rand = // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans
6046
6046
  // The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span
6047
6047
  (v = o == null ? void 0 : o.get("sentry.sample_rand")) != null ? v : (
6048
6048
  // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)
6049
6049
  (y = Ds(n).scope) == null ? void 0 : y.getPropagationContext().sampleRand.toString()
6050
- )), a(l), e.emit("createDsc", l, n), l;
6050
+ )), c(f), e.emit("createDsc", f, n), f;
6051
6051
  }
6052
6052
  function pe(t, e = 100, n = 1 / 0) {
6053
6053
  try {
@@ -6065,37 +6065,37 @@ function ln(t, e, n = 1 / 0, r = 1 / 0, s = hc()) {
6065
6065
  if (e == null || // this matches null and undefined -> eqeq not eqeqeq
6066
6066
  ["boolean", "string"].includes(typeof e) || typeof e == "number" && Number.isFinite(e))
6067
6067
  return e;
6068
- const a = lc(t, e);
6069
- if (!a.startsWith("[object "))
6070
- return a;
6068
+ const c = lc(t, e);
6069
+ if (!c.startsWith("[object "))
6070
+ return c;
6071
6071
  if (e.__sentry_skip_normalization__)
6072
6072
  return e;
6073
- const c = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
6074
- if (c === 0)
6075
- return a.replace("object ", "");
6073
+ const a = typeof e.__sentry_override_normalization_depth__ == "number" ? e.__sentry_override_normalization_depth__ : n;
6074
+ if (a === 0)
6075
+ return c.replace("object ", "");
6076
6076
  if (o(e))
6077
6077
  return "[Circular ~]";
6078
6078
  const u = e;
6079
6079
  if (u && typeof u.toJSON == "function")
6080
6080
  try {
6081
6081
  const g = u.toJSON();
6082
- return ln("", g, c - 1, r, s);
6082
+ return ln("", g, a - 1, r, s);
6083
6083
  } catch {
6084
6084
  }
6085
- const f = Array.isArray(e) ? [] : {};
6086
- let l = 0;
6085
+ const l = Array.isArray(e) ? [] : {};
6086
+ let f = 0;
6087
6087
  const p = Fs(e);
6088
6088
  for (const g in p) {
6089
6089
  if (!Object.prototype.hasOwnProperty.call(p, g))
6090
6090
  continue;
6091
- if (l >= r) {
6092
- f[g] = "[MaxProperties ~]";
6091
+ if (f >= r) {
6092
+ l[g] = "[MaxProperties ~]";
6093
6093
  break;
6094
6094
  }
6095
6095
  const _ = p[g];
6096
- f[g] = ln(g, _, c - 1, r, s), l++;
6096
+ l[g] = ln(g, _, a - 1, r, s), f++;
6097
6097
  }
6098
- return i(e), f;
6098
+ return i(e), l;
6099
6099
  }
6100
6100
  function lc(t, e) {
6101
6101
  try {
@@ -6177,19 +6177,19 @@ function yc(t) {
6177
6177
  typeof r == "string" ? r = typeof o == "string" ? r + o : [dn(r), o] : r.push(typeof o == "string" ? dn(o) : o);
6178
6178
  }
6179
6179
  for (const o of n) {
6180
- const [i, a] = o;
6180
+ const [i, c] = o;
6181
6181
  if (s(`
6182
6182
  ${JSON.stringify(i)}
6183
- `), typeof a == "string" || a instanceof Uint8Array)
6184
- s(a);
6183
+ `), typeof c == "string" || c instanceof Uint8Array)
6184
+ s(c);
6185
6185
  else {
6186
- let c;
6186
+ let a;
6187
6187
  try {
6188
- c = JSON.stringify(a);
6188
+ a = JSON.stringify(c);
6189
6189
  } catch {
6190
- c = JSON.stringify(pe(a));
6190
+ a = JSON.stringify(pe(c));
6191
6191
  }
6192
- s(c);
6192
+ s(a);
6193
6193
  }
6194
6194
  }
6195
6195
  return typeof r == "string" ? r : bc(r);
@@ -6409,17 +6409,17 @@ function kc(t) {
6409
6409
  if (we && r.length === Pr && s.length === Lr)
6410
6410
  return we;
6411
6411
  Pr = r.length, Lr = s.length, we = {}, de || (de = {});
6412
- const o = (i, a) => {
6413
- for (const c of i) {
6414
- const u = a[c], f = de == null ? void 0 : de[c];
6415
- if (f && we && u)
6416
- we[f[0]] = u, de && (de[c] = [f[0], u]);
6412
+ const o = (i, c) => {
6413
+ for (const a of i) {
6414
+ const u = c[a], l = de == null ? void 0 : de[a];
6415
+ if (l && we && u)
6416
+ we[l[0]] = u, de && (de[a] = [l[0], u]);
6417
6417
  else if (u) {
6418
- const l = t(c);
6419
- for (let p = l.length - 1; p >= 0; p--) {
6420
- const g = l[p], _ = g == null ? void 0 : g.filename;
6418
+ const f = t(a);
6419
+ for (let p = f.length - 1; p >= 0; p--) {
6420
+ const g = f[p], _ = g == null ? void 0 : g.filename;
6421
6421
  if (_ && we && de) {
6422
- we[_] = u, de[c] = [_, u];
6422
+ we[_] = u, de[a] = [_, u];
6423
6423
  break;
6424
6424
  }
6425
6425
  }
@@ -6439,17 +6439,17 @@ function Dr(t, e) {
6439
6439
  attributes: s,
6440
6440
  user: o,
6441
6441
  contexts: i,
6442
- level: a,
6443
- sdkProcessingMetadata: c,
6442
+ level: c,
6443
+ sdkProcessingMetadata: a,
6444
6444
  breadcrumbs: u,
6445
- fingerprint: f,
6446
- eventProcessors: l,
6445
+ fingerprint: l,
6446
+ eventProcessors: f,
6447
6447
  attachments: p,
6448
6448
  propagationContext: g,
6449
6449
  transactionName: _,
6450
6450
  span: m
6451
6451
  } = e;
6452
- Qe(t, "extra", n), Qe(t, "tags", r), Qe(t, "attributes", s), Qe(t, "user", o), Qe(t, "contexts", i), t.sdkProcessingMetadata = ut(t.sdkProcessingMetadata, c, 2), a && (t.level = a), _ && (t.transactionName = _), m && (t.span = m), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), f.length && (t.fingerprint = [...t.fingerprint, ...f]), l.length && (t.eventProcessors = [...t.eventProcessors, ...l]), p.length && (t.attachments = [...t.attachments, ...p]), t.propagationContext = { ...t.propagationContext, ...g };
6452
+ Qe(t, "extra", n), Qe(t, "tags", r), Qe(t, "attributes", s), Qe(t, "user", o), Qe(t, "contexts", i), t.sdkProcessingMetadata = ut(t.sdkProcessingMetadata, a, 2), c && (t.level = c), _ && (t.transactionName = _), m && (t.span = m), u.length && (t.breadcrumbs = [...t.breadcrumbs, ...u]), l.length && (t.fingerprint = [...t.fingerprint, ...l]), f.length && (t.eventProcessors = [...t.eventProcessors, ...f]), p.length && (t.attachments = [...t.attachments, ...p]), t.propagationContext = { ...t.propagationContext, ...g };
6453
6453
  }
6454
6454
  function Qe(t, e, n) {
6455
6455
  t[e] = ut(t[e], n, 1);
@@ -6459,8 +6459,8 @@ function Oc(t, e) {
6459
6459
  return t && Dr(n, t.getScopeData()), e && Dr(n, e.getScopeData()), n;
6460
6460
  }
6461
6461
  function Tc(t, e) {
6462
- const { extra: n, tags: r, user: s, contexts: o, level: i, transactionName: a } = e;
6463
- Object.keys(n).length && (t.extra = { ...n, ...t.extra }), Object.keys(r).length && (t.tags = { ...r, ...t.tags }), Object.keys(s).length && (t.user = { ...s, ...t.user }), Object.keys(o).length && (t.contexts = { ...o, ...t.contexts }), i && (t.level = i), a && t.type !== "transaction" && (t.transaction = a);
6462
+ const { extra: n, tags: r, user: s, contexts: o, level: i, transactionName: c } = e;
6463
+ Object.keys(n).length && (t.extra = { ...n, ...t.extra }), Object.keys(r).length && (t.tags = { ...r, ...t.tags }), Object.keys(s).length && (t.user = { ...s, ...t.user }), Object.keys(o).length && (t.contexts = { ...o, ...t.contexts }), i && (t.level = i), c && t.type !== "transaction" && (t.transaction = c);
6464
6464
  }
6465
6465
  function Ic(t, e) {
6466
6466
  const n = [...t.breadcrumbs || [], ...e];
@@ -6487,29 +6487,29 @@ function Nc(t, e) {
6487
6487
  t.fingerprint = t.fingerprint ? Array.isArray(t.fingerprint) ? t.fingerprint : [t.fingerprint] : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint.length || delete t.fingerprint;
6488
6488
  }
6489
6489
  function Ac(t, e, n, r, s, o) {
6490
- const { normalizeDepth: i = 3, normalizeMaxBreadth: a = 1e3 } = t, c = {
6490
+ const { normalizeDepth: i = 3, normalizeMaxBreadth: c = 1e3 } = t, a = {
6491
6491
  ...e,
6492
6492
  event_id: e.event_id || n.event_id || ie(),
6493
6493
  timestamp: e.timestamp || ct()
6494
6494
  }, u = n.integrations || t.integrations.map((y) => y.name);
6495
- Pc(c, t), Bc(c, u), s && s.emit("applyFrameMetadata", e), e.type === void 0 && Lc(c, t.stackParser);
6496
- const f = $c(r, n.captureContext);
6497
- n.mechanism && He(c, n.mechanism);
6498
- const l = s ? s.getEventProcessors() : [], p = Oc(o, f), g = [...n.attachments || [], ...p.attachments];
6499
- g.length && (n.attachments = g), Rc(c, p);
6495
+ Pc(a, t), Bc(a, u), s && s.emit("applyFrameMetadata", e), e.type === void 0 && Lc(a, t.stackParser);
6496
+ const l = $c(r, n.captureContext);
6497
+ n.mechanism && He(a, n.mechanism);
6498
+ const f = s ? s.getEventProcessors() : [], p = Oc(o, l), g = [...n.attachments || [], ...p.attachments];
6499
+ g.length && (n.attachments = g), Rc(a, p);
6500
6500
  const _ = [
6501
- ...l,
6501
+ ...f,
6502
6502
  // Run scope event processors _after_ all other processors
6503
6503
  ...p.eventProcessors
6504
6504
  ];
6505
- return xc(_, c, n).then((y) => (y && Dc(y), typeof i == "number" && i > 0 ? jc(y, i, a) : y));
6505
+ return xc(_, a, n).then((y) => (y && Dc(y), typeof i == "number" && i > 0 ? jc(y, i, c) : y));
6506
6506
  }
6507
6507
  function Pc(t, e) {
6508
- var a, c;
6508
+ var c, a;
6509
6509
  const { environment: n, release: r, dist: s, maxValueLength: o } = e;
6510
6510
  t.environment = t.environment || n || Pn, !t.release && r && (t.release = r), !t.dist && s && (t.dist = s);
6511
6511
  const i = t.request;
6512
- i != null && i.url && o && (i.url = an(i.url, o)), o && ((c = (a = t.exception) == null ? void 0 : a.values) == null || c.forEach((u) => {
6512
+ i != null && i.url && o && (i.url = an(i.url, o)), o && ((a = (c = t.exception) == null ? void 0 : c.values) == null || a.forEach((u) => {
6513
6513
  u.value && (u.value = an(u.value, o));
6514
6514
  }));
6515
6515
  }
@@ -6517,9 +6517,9 @@ function Lc(t, e) {
6517
6517
  var r, s;
6518
6518
  const n = kc(e);
6519
6519
  (s = (r = t.exception) == null ? void 0 : r.values) == null || s.forEach((o) => {
6520
- var i, a;
6521
- (a = (i = o.stacktrace) == null ? void 0 : i.frames) == null || a.forEach((c) => {
6522
- c.filename && (c.debug_id = n[c.filename]);
6520
+ var i, c;
6521
+ (c = (i = o.stacktrace) == null ? void 0 : i.frames) == null || c.forEach((a) => {
6522
+ a.filename && (a.debug_id = n[a.filename]);
6523
6523
  });
6524
6524
  });
6525
6525
  }
@@ -6527,9 +6527,9 @@ function Dc(t) {
6527
6527
  var r, s;
6528
6528
  const e = {};
6529
6529
  if ((s = (r = t.exception) == null ? void 0 : r.values) == null || s.forEach((o) => {
6530
- var i, a;
6531
- (a = (i = o.stacktrace) == null ? void 0 : i.frames) == null || a.forEach((c) => {
6532
- c.debug_id && (c.abs_path ? e[c.abs_path] = c.debug_id : c.filename && (e[c.filename] = c.debug_id), delete c.debug_id);
6530
+ var i, c;
6531
+ (c = (i = o.stacktrace) == null ? void 0 : i.frames) == null || c.forEach((a) => {
6532
+ a.debug_id && (a.abs_path ? e[a.abs_path] = a.debug_id : a.filename && (e[a.filename] = a.debug_id), delete a.debug_id);
6533
6533
  });
6534
6534
  }), Object.keys(e).length === 0)
6535
6535
  return;
@@ -6807,20 +6807,20 @@ function Bn(t = 100) {
6807
6807
  function s(i) {
6808
6808
  if (!n())
6809
6809
  return Ln(Dn);
6810
- const a = i();
6811
- return e.add(a), a.then(
6812
- () => r(a),
6813
- () => r(a)
6814
- ), a;
6810
+ const c = i();
6811
+ return e.add(c), c.then(
6812
+ () => r(c),
6813
+ () => r(c)
6814
+ ), c;
6815
6815
  }
6816
6816
  function o(i) {
6817
6817
  if (!e.size)
6818
6818
  return Ut(!0);
6819
- const a = Promise.allSettled(Array.from(e)).then(() => !0);
6819
+ const c = Promise.allSettled(Array.from(e)).then(() => !0);
6820
6820
  if (!i)
6821
- return a;
6822
- const c = [a, new Promise((u) => setTimeout(() => u(!1), i))];
6823
- return Promise.race(c);
6821
+ return c;
6822
+ const a = [c, new Promise((u) => setTimeout(() => u(!1), i))];
6823
+ return Promise.race(a);
6824
6824
  }
6825
6825
  return {
6826
6826
  get $() {
@@ -6849,13 +6849,13 @@ function lu(t, { statusCode: e, headers: n }, r = jt()) {
6849
6849
  ...t
6850
6850
  }, o = n == null ? void 0 : n["x-sentry-rate-limits"], i = n == null ? void 0 : n["retry-after"];
6851
6851
  if (o)
6852
- for (const a of o.trim().split(",")) {
6853
- const [c, u, , , f] = a.split(":", 5), l = parseInt(c, 10), p = (isNaN(l) ? 60 : l) * 1e3;
6852
+ for (const c of o.trim().split(",")) {
6853
+ const [a, u, , , l] = c.split(":", 5), f = parseInt(a, 10), p = (isNaN(f) ? 60 : f) * 1e3;
6854
6854
  if (!u)
6855
6855
  s.all = r + p;
6856
6856
  else
6857
6857
  for (const g of u.split(";"))
6858
- g === "metric_bucket" ? (!f || f.split(";").includes("custom")) && (s[g] = r + p) : s[g] = r + p;
6858
+ g === "metric_bucket" ? (!l || l.split(";").includes("custom")) && (s[g] = r + p) : s[g] = r + p;
6859
6859
  }
6860
6860
  else i ? s.all = r + au(i, r) : e === 429 && (s.all = r + 60 * 1e3);
6861
6861
  return s;
@@ -6867,32 +6867,32 @@ function fu(t, e, n = Bn(
6867
6867
  let r = {};
6868
6868
  const s = (i) => n.drain(i);
6869
6869
  function o(i) {
6870
- const a = [];
6871
- if (fn(i, (l, p) => {
6870
+ const c = [];
6871
+ if (fn(i, (f, p) => {
6872
6872
  const g = Mr(p);
6873
- uu(r, g) ? t.recordDroppedEvent("ratelimit_backoff", g) : a.push(l);
6874
- }), a.length === 0)
6873
+ uu(r, g) ? t.recordDroppedEvent("ratelimit_backoff", g) : c.push(f);
6874
+ }), c.length === 0)
6875
6875
  return Promise.resolve({});
6876
- const c = Je(i[0], a), u = (l) => {
6877
- if (mc(c, ["client_report"])) {
6878
- M && x.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);
6876
+ const a = Je(i[0], c), u = (f) => {
6877
+ if (mc(a, ["client_report"])) {
6878
+ M && x.warn(`Dropping client report. Will not send outcomes (reason: ${f}).`);
6879
6879
  return;
6880
6880
  }
6881
- fn(c, (p, g) => {
6882
- t.recordDroppedEvent(l, Mr(g));
6881
+ fn(a, (p, g) => {
6882
+ t.recordDroppedEvent(f, Mr(g));
6883
6883
  });
6884
- }, f = () => e({ body: yc(c) }).then(
6885
- (l) => (l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && M && x.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r = lu(r, l), l),
6886
- (l) => {
6887
- throw u("network_error"), M && x.error("Encountered error running transport request:", l), l;
6884
+ }, l = () => e({ body: yc(a) }).then(
6885
+ (f) => (f.statusCode !== void 0 && (f.statusCode < 200 || f.statusCode >= 300) && M && x.warn(`Sentry responded with status code ${f.statusCode} to sent event.`), r = lu(r, f), f),
6886
+ (f) => {
6887
+ throw u("network_error"), M && x.error("Encountered error running transport request:", f), f;
6888
6888
  }
6889
6889
  );
6890
- return n.add(f).then(
6891
- (l) => l,
6892
- (l) => {
6893
- if (l === Dn)
6890
+ return n.add(l).then(
6891
+ (f) => f,
6892
+ (f) => {
6893
+ if (f === Dn)
6894
6894
  return M && x.error("Skipped sending event because buffer is full."), u("queue_overflow"), Promise.resolve({});
6895
- throw l;
6895
+ throw f;
6896
6896
  }
6897
6897
  );
6898
6898
  }
@@ -6922,15 +6922,15 @@ function to(t) {
6922
6922
  return e;
6923
6923
  }
6924
6924
  function pu(t) {
6925
- var c, u, f;
6926
- const { trace_id: e, parent_span_id: n, span_id: r, status: s, origin: o, data: i, op: a } = (u = (c = t.contexts) == null ? void 0 : c.trace) != null ? u : {};
6925
+ var a, u, l;
6926
+ const { trace_id: e, parent_span_id: n, span_id: r, status: s, origin: o, data: i, op: c } = (u = (a = t.contexts) == null ? void 0 : a.trace) != null ? u : {};
6927
6927
  return {
6928
6928
  data: i != null ? i : {},
6929
6929
  description: t.transaction,
6930
- op: a,
6930
+ op: c,
6931
6931
  parent_span_id: n,
6932
6932
  span_id: r != null ? r : "",
6933
- start_timestamp: (f = t.start_timestamp) != null ? f : 0,
6933
+ start_timestamp: (l = t.start_timestamp) != null ? l : 0,
6934
6934
  status: s,
6935
6935
  timestamp: t.timestamp,
6936
6936
  trace_id: e != null ? e : "",
@@ -6985,11 +6985,11 @@ function Gr(t) {
6985
6985
  return !!t && typeof t == "object" && ro in t;
6986
6986
  }
6987
6987
  function Yr(t, e, n, r, s) {
6988
- let o = 0, i, a = !1;
6988
+ let o = 0, i, c = !1;
6989
6989
  t.on(n, () => {
6990
- o = 0, clearTimeout(i), a = !1;
6991
- }), t.on(e, (c) => {
6992
- o += r(c), o >= 8e5 ? s(t) : a || (a = !0, i = setTimeout(() => {
6990
+ o = 0, clearTimeout(i), c = !1;
6991
+ }), t.on(e, (a) => {
6992
+ o += r(a), o >= 8e5 ? s(t) : c || (c = !0, i = setTimeout(() => {
6993
6993
  s(t);
6994
6994
  }, gu));
6995
6995
  }), t.on("flush", () => {
@@ -7009,9 +7009,9 @@ class mu {
7009
7009
  * @param options Options for the client.
7010
7010
  */
7011
7011
  constructor(e) {
7012
- var r, s, o, i, a, c, u;
7012
+ var r, s, o, i, c, a, u;
7013
7013
  if (this._options = e, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Bn((s = (r = e.transportOptions) == null ? void 0 : r.bufferSize) != null ? s : eo), e.dsn ? this._dsn = js(e.dsn) : M && x.warn("No DSN provided, client will not send events."), this._dsn) {
7014
- const f = Jc(
7014
+ const l = Jc(
7015
7015
  this._dsn,
7016
7016
  e.tunnel,
7017
7017
  e._metadata ? e._metadata.sdk : void 0
@@ -7020,10 +7020,10 @@ class mu {
7020
7020
  tunnel: this._options.tunnel,
7021
7021
  recordDroppedEvent: this.recordDroppedEvent.bind(this),
7022
7022
  ...e.transportOptions,
7023
- url: f
7023
+ url: l
7024
7024
  });
7025
7025
  }
7026
- this._options.enableLogs = (i = this._options.enableLogs) != null ? i : (o = this._options._experiments) == null ? void 0 : o.enableLogs, this._options.enableLogs && Yr(this, "afterCaptureLog", "flushLogs", vu, Js), ((u = (c = this._options.enableMetrics) != null ? c : (a = this._options._experiments) == null ? void 0 : a.enableMetrics) == null || u) && Yr(
7026
+ this._options.enableLogs = (i = this._options.enableLogs) != null ? i : (o = this._options._experiments) == null ? void 0 : o.enableLogs, this._options.enableLogs && Yr(this, "afterCaptureLog", "flushLogs", vu, Js), ((u = (a = this._options.enableMetrics) != null ? a : (c = this._options._experiments) == null ? void 0 : c.enableMetrics) == null || u) && Yr(
7027
7027
  this,
7028
7028
  "afterCaptureMetric",
7029
7029
  "flushMetrics",
@@ -7058,10 +7058,10 @@ class mu {
7058
7058
  const o = {
7059
7059
  event_id: ie(),
7060
7060
  ...r
7061
- }, i = Tn(e) ? e : String(e), a = Lt(e), c = a ? this.eventFromMessage(i, n, o) : this.eventFromException(e, o);
7061
+ }, i = Tn(e) ? e : String(e), c = Lt(e), a = c ? this.eventFromMessage(i, n, o) : this.eventFromException(e, o);
7062
7062
  return this._process(
7063
- () => c.then((u) => this._captureEvent(u, o, s)),
7064
- a ? "unknown" : "error"
7063
+ () => a.then((u) => this._captureEvent(u, o, s)),
7064
+ c ? "unknown" : "error"
7065
7065
  ), o.event_id;
7066
7066
  }
7067
7067
  /**
@@ -7076,9 +7076,9 @@ class mu {
7076
7076
  const o = {
7077
7077
  event_id: s,
7078
7078
  ...n
7079
- }, i = e.sdkProcessingMetadata || {}, a = i.capturedSpanScope, c = i.capturedSpanIsolationScope, u = qr(e.type);
7079
+ }, i = e.sdkProcessingMetadata || {}, c = i.capturedSpanScope, a = i.capturedSpanIsolationScope, u = qr(e.type);
7080
7080
  return this._process(
7081
- () => this._captureEvent(e, o, a || r, c),
7081
+ () => this._captureEvent(e, o, c || r, a),
7082
7082
  u
7083
7083
  ), o.event_id;
7084
7084
  }
@@ -7282,13 +7282,13 @@ class mu {
7282
7282
  }
7283
7283
  /** Updates existing session based on the provided event */
7284
7284
  _updateSessionFromEvent(e, n) {
7285
- var c, u;
7285
+ var a, u;
7286
7286
  let r = n.level === "fatal", s = !1;
7287
- const o = (c = n.exception) == null ? void 0 : c.values;
7287
+ const o = (a = n.exception) == null ? void 0 : a.values;
7288
7288
  if (o) {
7289
7289
  s = !0, r = !1;
7290
- for (const f of o)
7291
- if (((u = f.mechanism) == null ? void 0 : u.handled) === !1) {
7290
+ for (const l of o)
7291
+ if (((u = l.mechanism) == null ? void 0 : u.handled) === !1) {
7292
7292
  r = !0;
7293
7293
  break;
7294
7294
  }
@@ -7338,18 +7338,18 @@ class mu {
7338
7338
  */
7339
7339
  _prepareEvent(e, n, r, s) {
7340
7340
  const o = this.getOptions(), i = Object.keys(this._integrations);
7341
- return !n.integrations && (i != null && i.length) && (n.integrations = i), this.emit("preprocessEvent", e, n), e.type || s.setLastEventId(e.event_id || n.event_id), Ac(o, e, n, r, this, s).then((a) => {
7342
- if (a === null)
7343
- return a;
7344
- this.emit("postprocessEvent", a, n), a.contexts = {
7341
+ return !n.integrations && (i != null && i.length) && (n.integrations = i), this.emit("preprocessEvent", e, n), e.type || s.setLastEventId(e.event_id || n.event_id), Ac(o, e, n, r, this, s).then((c) => {
7342
+ if (c === null)
7343
+ return c;
7344
+ this.emit("postprocessEvent", c, n), c.contexts = {
7345
7345
  trace: Oa(r),
7346
- ...a.contexts
7346
+ ...c.contexts
7347
7347
  };
7348
- const c = cc(this, r);
7349
- return a.sdkProcessingMetadata = {
7350
- dynamicSamplingContext: c,
7351
- ...a.sdkProcessingMetadata
7352
- }, a;
7348
+ const a = cc(this, r);
7349
+ return c.sdkProcessingMetadata = {
7350
+ dynamicSamplingContext: a,
7351
+ ...c.sdkProcessingMetadata
7352
+ }, c;
7353
7353
  });
7354
7354
  }
7355
7355
  /**
@@ -7380,8 +7380,8 @@ class mu {
7380
7380
  * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
7381
7381
  */
7382
7382
  _processEvent(e, n, r, s) {
7383
- const o = this.getOptions(), { sampleRate: i } = o, a = so(e), c = gn(e), f = `before send for type \`${e.type || "error"}\``, l = typeof i > "u" ? void 0 : Ja(i);
7384
- if (c && typeof l == "number" && Tt() > l)
7383
+ const o = this.getOptions(), { sampleRate: i } = o, c = so(e), a = gn(e), l = `before send for type \`${e.type || "error"}\``, f = typeof i > "u" ? void 0 : Ja(i);
7384
+ if (a && typeof f == "number" && Tt() > f)
7385
7385
  return this.recordDroppedEvent("sample_rate", "error"), Ln(
7386
7386
  Zt(
7387
7387
  `Discarding event because it's not included in the random sample (sampling rate = ${i})`
@@ -7394,23 +7394,23 @@ class mu {
7394
7394
  if (n.data && n.data.__sentry__ === !0)
7395
7395
  return g;
7396
7396
  const m = bu(this, o, g, n);
7397
- return yu(m, f);
7397
+ return yu(m, l);
7398
7398
  }).then((g) => {
7399
7399
  var y;
7400
7400
  if (g === null) {
7401
- if (this.recordDroppedEvent("before_send", p), a) {
7401
+ if (this.recordDroppedEvent("before_send", p), c) {
7402
7402
  const w = 1 + (e.spans || []).length;
7403
7403
  this.recordDroppedEvent("before_send", "span", w);
7404
7404
  }
7405
- throw Zt(`${f} returned \`null\`, will not send event.`);
7405
+ throw Zt(`${l} returned \`null\`, will not send event.`);
7406
7406
  }
7407
7407
  const _ = r.getSession() || s.getSession();
7408
- if (c && _ && this._updateSessionFromEvent(_, g), a) {
7408
+ if (a && _ && this._updateSessionFromEvent(_, g), c) {
7409
7409
  const v = ((y = g.sdkProcessingMetadata) == null ? void 0 : y.spanCountBeforeProcessing) || 0, w = g.spans ? g.spans.length : 0, E = v - w;
7410
7410
  E > 0 && this.recordDroppedEvent("before_send", "span", E);
7411
7411
  }
7412
7412
  const m = g.transaction_info;
7413
- if (a && m && g.transaction !== e.transaction) {
7413
+ if (c && m && g.transaction !== e.transaction) {
7414
7414
  const v = "custom";
7415
7415
  g.transaction_info = {
7416
7416
  ...m,
@@ -7500,48 +7500,48 @@ function yu(t, e) {
7500
7500
  return t;
7501
7501
  }
7502
7502
  function bu(t, e, n, r) {
7503
- const { beforeSend: s, beforeSendTransaction: o, beforeSendSpan: i, ignoreSpans: a } = e;
7504
- let c = n;
7505
- if (gn(c) && s)
7506
- return s(c, r);
7507
- if (so(c)) {
7508
- if (i || a) {
7509
- const u = pu(c);
7510
- if (a != null && a.length && Fr(u, a))
7503
+ const { beforeSend: s, beforeSendTransaction: o, beforeSendSpan: i, ignoreSpans: c } = e;
7504
+ let a = n;
7505
+ if (gn(a) && s)
7506
+ return s(a, r);
7507
+ if (so(a)) {
7508
+ if (i || c) {
7509
+ const u = pu(a);
7510
+ if (c != null && c.length && Fr(u, c))
7511
7511
  return null;
7512
7512
  if (i) {
7513
- const f = i(u);
7514
- f ? c = ut(n, hu(f)) : Tr();
7513
+ const l = i(u);
7514
+ l ? a = ut(n, hu(l)) : Tr();
7515
7515
  }
7516
- if (c.spans) {
7517
- const f = [], l = c.spans;
7518
- for (const g of l) {
7519
- if (a != null && a.length && Fr(g, a)) {
7520
- oc(l, g);
7516
+ if (a.spans) {
7517
+ const l = [], f = a.spans;
7518
+ for (const g of f) {
7519
+ if (c != null && c.length && Fr(g, c)) {
7520
+ oc(f, g);
7521
7521
  continue;
7522
7522
  }
7523
7523
  if (i) {
7524
7524
  const _ = i(g);
7525
- _ ? f.push(_) : (Tr(), f.push(g));
7525
+ _ ? l.push(_) : (Tr(), l.push(g));
7526
7526
  } else
7527
- f.push(g);
7527
+ l.push(g);
7528
7528
  }
7529
- const p = c.spans.length - f.length;
7530
- p && t.recordDroppedEvent("before_send", "span", p), c.spans = f;
7529
+ const p = a.spans.length - l.length;
7530
+ p && t.recordDroppedEvent("before_send", "span", p), a.spans = l;
7531
7531
  }
7532
7532
  }
7533
7533
  if (o) {
7534
- if (c.spans) {
7535
- const u = c.spans.length;
7536
- c.sdkProcessingMetadata = {
7534
+ if (a.spans) {
7535
+ const u = a.spans.length;
7536
+ a.sdkProcessingMetadata = {
7537
7537
  ...n.sdkProcessingMetadata,
7538
7538
  spanCountBeforeProcessing: u
7539
7539
  };
7540
7540
  }
7541
- return o(c, r);
7541
+ return o(a, r);
7542
7542
  }
7543
7543
  }
7544
- return c;
7544
+ return a;
7545
7545
  }
7546
7546
  function gn(t) {
7547
7547
  return t.type === void 0;
@@ -7625,8 +7625,8 @@ function Ne(t, e) {
7625
7625
  if (!n) return;
7626
7626
  const { beforeBreadcrumb: s = null, maxBreadcrumbs: o = xu } = n.getOptions();
7627
7627
  if (o <= 0) return;
7628
- const a = { timestamp: ct(), ...t }, c = s ? Ye(() => s(a, e)) : a;
7629
- c !== null && (n.emit && n.emit("beforeAddBreadcrumb", c, e), r.addBreadcrumb(c, o));
7628
+ const c = { timestamp: ct(), ...t }, a = s ? Ye(() => s(c, e)) : c;
7629
+ a !== null && (n.emit && n.emit("beforeAddBreadcrumb", a, e), r.addBreadcrumb(a, o));
7630
7630
  }
7631
7631
  let Xr;
7632
7632
  const ku = "FunctionToString", Qr = /* @__PURE__ */ new WeakMap(), Ru = (() => ({
@@ -7769,8 +7769,8 @@ function It(t) {
7769
7769
  var e, n, r;
7770
7770
  try {
7771
7771
  const s = [...(n = (e = t.exception) == null ? void 0 : e.values) != null ? n : []].reverse().find((i) => {
7772
- var a, c, u;
7773
- return ((a = i.mechanism) == null ? void 0 : a.parent_id) === void 0 && ((u = (c = i.stacktrace) == null ? void 0 : c.frames) == null ? void 0 : u.length);
7772
+ var c, a, u;
7773
+ return ((c = i.mechanism) == null ? void 0 : c.parent_id) === void 0 && ((u = (a = i.stacktrace) == null ? void 0 : a.frames) == null ? void 0 : u.length);
7774
7774
  }), o = (r = s == null ? void 0 : s.stacktrace) == null ? void 0 : r.frames;
7775
7775
  return o ? Bu(o) : null;
7776
7776
  } catch {
@@ -7786,8 +7786,8 @@ function ju(t) {
7786
7786
  ) : !1;
7787
7787
  }
7788
7788
  function $u(t, e, n, r, s, o) {
7789
- var a;
7790
- if (!((a = s.exception) != null && a.values) || !o || !ke(o.originalException, Error))
7789
+ var c;
7790
+ if (!((c = s.exception) != null && c.values) || !o || !ke(o.originalException, Error))
7791
7791
  return;
7792
7792
  const i = s.exception.values.length > 0 ? s.exception.values[s.exception.values.length - 1] : void 0;
7793
7793
  i && (s.exception.values = mn(
@@ -7801,40 +7801,40 @@ function $u(t, e, n, r, s, o) {
7801
7801
  0
7802
7802
  ));
7803
7803
  }
7804
- function mn(t, e, n, r, s, o, i, a) {
7804
+ function mn(t, e, n, r, s, o, i, c) {
7805
7805
  if (o.length >= n + 1)
7806
7806
  return o;
7807
- let c = [...o];
7807
+ let a = [...o];
7808
7808
  if (ke(r[s], Error)) {
7809
- es(i, a);
7810
- const u = t(e, r[s]), f = c.length;
7811
- ts(u, s, f, a), c = mn(
7809
+ es(i, c);
7810
+ const u = t(e, r[s]), l = a.length;
7811
+ ts(u, s, l, c), a = mn(
7812
7812
  t,
7813
7813
  e,
7814
7814
  n,
7815
7815
  r[s],
7816
7816
  s,
7817
- [u, ...c],
7817
+ [u, ...a],
7818
7818
  u,
7819
- f
7819
+ l
7820
7820
  );
7821
7821
  }
7822
- return Array.isArray(r.errors) && r.errors.forEach((u, f) => {
7822
+ return Array.isArray(r.errors) && r.errors.forEach((u, l) => {
7823
7823
  if (ke(u, Error)) {
7824
- es(i, a);
7825
- const l = t(e, u), p = c.length;
7826
- ts(l, `errors[${f}]`, p, a), c = mn(
7824
+ es(i, c);
7825
+ const f = t(e, u), p = a.length;
7826
+ ts(f, `errors[${l}]`, p, c), a = mn(
7827
7827
  t,
7828
7828
  e,
7829
7829
  n,
7830
7830
  u,
7831
7831
  s,
7832
- [l, ...c],
7833
- l,
7832
+ [f, ...a],
7833
+ f,
7834
7834
  p
7835
7835
  );
7836
7836
  }
7837
- }), c;
7837
+ }), a;
7838
7838
  }
7839
7839
  function es(t, e) {
7840
7840
  t.mechanism = {
@@ -7976,7 +7976,7 @@ function Zu(t, e) {
7976
7976
  function el(t, e = !1) {
7977
7977
  e && !Qu() || se(B, "fetch", function(n) {
7978
7978
  return function(...r) {
7979
- const s = new Error(), { method: o, url: i } = tl(r), a = {
7979
+ const s = new Error(), { method: o, url: i } = tl(r), c = {
7980
7980
  args: r,
7981
7981
  fetchData: {
7982
7982
  method: o,
@@ -7988,28 +7988,28 @@ function el(t, e = !1) {
7988
7988
  headers: nl(r)
7989
7989
  };
7990
7990
  return ue("fetch", {
7991
- ...a
7991
+ ...c
7992
7992
  }), n.apply(B, r).then(
7993
- async (c) => (ue("fetch", {
7994
- ...a,
7993
+ async (a) => (ue("fetch", {
7994
+ ...c,
7995
7995
  endTimestamp: me() * 1e3,
7996
- response: c
7997
- }), c),
7998
- (c) => {
7996
+ response: a
7997
+ }), a),
7998
+ (a) => {
7999
7999
  var p;
8000
8000
  ue("fetch", {
8001
- ...a,
8001
+ ...c,
8002
8002
  endTimestamp: me() * 1e3,
8003
- error: c
8004
- }), Pt(c) && c.stack === void 0 && (c.stack = s.stack, Re(c, "framesToPop", 1));
8005
- const u = X(), f = (p = u == null ? void 0 : u.getOptions().enhanceFetchErrorMessages) != null ? p : "always";
8006
- if (f !== !1 && c instanceof TypeError && (c.message === "Failed to fetch" || c.message === "Load failed" || c.message === "NetworkError when attempting to fetch resource."))
8003
+ error: a
8004
+ }), Pt(a) && a.stack === void 0 && (a.stack = s.stack, Re(a, "framesToPop", 1));
8005
+ const u = X(), l = (p = u == null ? void 0 : u.getOptions().enhanceFetchErrorMessages) != null ? p : "always";
8006
+ if (l !== !1 && a instanceof TypeError && (a.message === "Failed to fetch" || a.message === "Load failed" || a.message === "NetworkError when attempting to fetch resource."))
8007
8007
  try {
8008
- const _ = new URL(a.fetchData.url).host;
8009
- f === "always" ? c.message = `${c.message} (${_})` : Re(c, "__sentry_fetch_url_host__", _);
8008
+ const _ = new URL(c.fetchData.url).host;
8009
+ l === "always" ? a.message = `${a.message} (${_})` : Re(a, "__sentry_fetch_url_host__", _);
8010
8010
  } catch {
8011
8011
  }
8012
- throw c;
8012
+ throw a;
8013
8013
  }
8014
8014
  );
8015
8015
  };
@@ -8084,10 +8084,10 @@ function ze(t, e = {}) {
8084
8084
  return t.apply(this, o);
8085
8085
  } catch (o) {
8086
8086
  throw sl(), Ra((i) => {
8087
- i.addEventProcessor((a) => (e.mechanism && (cn(a, void 0), He(a, e.mechanism)), a.extra = {
8088
- ...a.extra,
8087
+ i.addEventProcessor((c) => (e.mechanism && (cn(c, void 0), He(c, e.mechanism)), c.extra = {
8088
+ ...c.extra,
8089
8089
  arguments: s
8090
- }, a)), hn(o);
8090
+ }, c)), hn(o);
8091
8091
  }), o;
8092
8092
  }
8093
8093
  };
@@ -8125,7 +8125,7 @@ function jn(t, e) {
8125
8125
  return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
8126
8126
  }
8127
8127
  function il(t, e, n, r) {
8128
- const s = X(), o = s == null ? void 0 : s.getOptions().normalizeDepth, i = ml(e), a = {
8128
+ const s = X(), o = s == null ? void 0 : s.getOptions().normalizeDepth, i = ml(e), c = {
8129
8129
  __serialized__: Ws(e, o)
8130
8130
  };
8131
8131
  if (i)
@@ -8133,9 +8133,9 @@ function il(t, e, n, r) {
8133
8133
  exception: {
8134
8134
  values: [jn(t, i)]
8135
8135
  },
8136
- extra: a
8136
+ extra: c
8137
8137
  };
8138
- const c = {
8138
+ const a = {
8139
8139
  exception: {
8140
8140
  values: [
8141
8141
  {
@@ -8144,13 +8144,13 @@ function il(t, e, n, r) {
8144
8144
  }
8145
8145
  ]
8146
8146
  },
8147
- extra: a
8147
+ extra: c
8148
8148
  };
8149
8149
  if (n) {
8150
8150
  const u = $n(t, n);
8151
- u.length && (c.exception.values[0].stacktrace = { frames: u });
8151
+ u.length && (a.exception.values[0].stacktrace = { frames: u });
8152
8152
  }
8153
- return c;
8153
+ return a;
8154
8154
  }
8155
8155
  function tn(t, e) {
8156
8156
  return {
@@ -8202,8 +8202,8 @@ function Un(t, e, n, r, s) {
8202
8202
  if ("stack" in e)
8203
8203
  o = tn(t, e);
8204
8204
  else {
8205
- const a = i.name || (mr(i) ? "DOMError" : "DOMException"), c = i.message ? `${a}: ${i.message}` : a;
8206
- o = _n(t, c, n, r), cn(o, c);
8205
+ const c = i.name || (mr(i) ? "DOMError" : "DOMException"), a = i.message ? `${c}: ${i.message}` : c;
8206
+ o = _n(t, a, n, r), cn(o, a);
8207
8207
  }
8208
8208
  return "code" in i && (o.tags = { ...o.tags, "DOMException.code": `${i.code}` }), o;
8209
8209
  }
@@ -8256,9 +8256,9 @@ class yl extends mu {
8256
8256
  * @param options Configuration options for this SDK.
8257
8257
  */
8258
8258
  constructor(e) {
8259
- var f, l;
8259
+ var l, f;
8260
8260
  const n = bl(e), r = W.SENTRY_SDK_SOURCE || rl();
8261
- io(n, "browser", ["browser"], r), (f = n._metadata) != null && f.sdk && (n._metadata.sdk.settings = {
8261
+ io(n, "browser", ["browser"], r), (l = n._metadata) != null && l.sdk && (n._metadata.sdk.settings = {
8262
8262
  infer_ip: n.sendDefaultPii ? "auto" : "never",
8263
8263
  // purposefully allowing already passed settings to override the default
8264
8264
  ...n._metadata.sdk.settings
@@ -8267,9 +8267,9 @@ class yl extends mu {
8267
8267
  sendDefaultPii: s,
8268
8268
  sendClientReports: o,
8269
8269
  enableLogs: i,
8270
- _experiments: a,
8271
- enableMetrics: c
8272
- } = this._options, u = (l = c != null ? c : a == null ? void 0 : a.enableMetrics) != null ? l : !0;
8270
+ _experiments: c,
8271
+ enableMetrics: a
8272
+ } = this._options, u = (f = a != null ? a : c == null ? void 0 : c.enableMetrics) != null ? f : !0;
8273
8273
  W.document && (o || i || u) && W.document.addEventListener("visibilitychange", () => {
8274
8274
  W.document.visibilityState === "hidden" && (o && this._flushOutcomes(), i && Js(this), u && Qs(this));
8275
8275
  }), s && this.on("beforeSendSession", Cu);
@@ -8316,32 +8316,32 @@ function El() {
8316
8316
  te.document.addEventListener("click", e, !1), te.document.addEventListener("keypress", e, !1), ["EventTarget", "Node"].forEach((n) => {
8317
8317
  var o, i;
8318
8318
  const s = (o = te[n]) == null ? void 0 : o.prototype;
8319
- (i = s == null ? void 0 : s.hasOwnProperty) != null && i.call(s, "addEventListener") && (se(s, "addEventListener", function(a) {
8320
- return function(c, u, f) {
8321
- if (c === "click" || c == "keypress")
8319
+ (i = s == null ? void 0 : s.hasOwnProperty) != null && i.call(s, "addEventListener") && (se(s, "addEventListener", function(c) {
8320
+ return function(a, u, l) {
8321
+ if (a === "click" || a == "keypress")
8322
8322
  try {
8323
- const l = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, p = l[c] = l[c] || { refCount: 0 };
8323
+ const f = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}, p = f[a] = f[a] || { refCount: 0 };
8324
8324
  if (!p.handler) {
8325
8325
  const g = os(t);
8326
- p.handler = g, a.call(this, c, g, f);
8326
+ p.handler = g, c.call(this, a, g, l);
8327
8327
  }
8328
8328
  p.refCount++;
8329
8329
  } catch {
8330
8330
  }
8331
- return a.call(this, c, u, f);
8331
+ return c.call(this, a, u, l);
8332
8332
  };
8333
8333
  }), se(
8334
8334
  s,
8335
8335
  "removeEventListener",
8336
- function(a) {
8337
- return function(c, u, f) {
8338
- if (c === "click" || c == "keypress")
8336
+ function(c) {
8337
+ return function(a, u, l) {
8338
+ if (a === "click" || a == "keypress")
8339
8339
  try {
8340
- const l = this.__sentry_instrumentation_handlers__ || {}, p = l[c];
8341
- p && (p.refCount--, p.refCount <= 0 && (a.call(this, c, p.handler, f), p.handler = void 0, delete l[c]), Object.keys(l).length === 0 && delete this.__sentry_instrumentation_handlers__);
8340
+ const f = this.__sentry_instrumentation_handlers__ || {}, p = f[a];
8341
+ p && (p.refCount--, p.refCount <= 0 && (c.call(this, a, p.handler, l), p.handler = void 0, delete f[a]), Object.keys(f).length === 0 && delete this.__sentry_instrumentation_handlers__);
8342
8342
  } catch {
8343
8343
  }
8344
- return a.call(this, c, u, f);
8344
+ return c.call(this, a, u, l);
8345
8345
  };
8346
8346
  }
8347
8347
  ));
@@ -8448,38 +8448,38 @@ function Fl() {
8448
8448
  const t = XMLHttpRequest.prototype;
8449
8449
  t.open = new Proxy(t.open, {
8450
8450
  apply(e, n, r) {
8451
- const s = new Error(), o = me() * 1e3, i = ge(r[0]) ? r[0].toUpperCase() : void 0, a = Ml(r[1]);
8452
- if (!i || !a)
8451
+ const s = new Error(), o = me() * 1e3, i = ge(r[0]) ? r[0].toUpperCase() : void 0, c = Ml(r[1]);
8452
+ if (!i || !c)
8453
8453
  return e.apply(n, r);
8454
8454
  n[et] = {
8455
8455
  method: i,
8456
- url: a,
8456
+ url: c,
8457
8457
  request_headers: {}
8458
- }, i === "POST" && a.match(/sentry_key/) && (n.__sentry_own_request__ = !0);
8459
- const c = () => {
8458
+ }, i === "POST" && c.match(/sentry_key/) && (n.__sentry_own_request__ = !0);
8459
+ const a = () => {
8460
8460
  const u = n[et];
8461
8461
  if (u && n.readyState === 4) {
8462
8462
  try {
8463
8463
  u.status_code = n.status;
8464
8464
  } catch {
8465
8465
  }
8466
- const f = {
8466
+ const l = {
8467
8467
  endTimestamp: me() * 1e3,
8468
8468
  startTimestamp: o,
8469
8469
  xhr: n,
8470
8470
  virtualError: s
8471
8471
  };
8472
- ue("xhr", f);
8472
+ ue("xhr", l);
8473
8473
  }
8474
8474
  };
8475
8475
  return "onreadystatechange" in n && typeof n.onreadystatechange == "function" ? n.onreadystatechange = new Proxy(n.onreadystatechange, {
8476
- apply(u, f, l) {
8477
- return c(), u.apply(f, l);
8476
+ apply(u, l, f) {
8477
+ return a(), u.apply(l, f);
8478
8478
  }
8479
- }) : n.addEventListener("readystatechange", c), n.setRequestHeader = new Proxy(n.setRequestHeader, {
8480
- apply(u, f, l) {
8481
- const [p, g] = l, _ = f[et];
8482
- return _ && ge(p) && ge(g) && (_.request_headers[p.toLowerCase()] = g), u.apply(f, l);
8479
+ }) : n.addEventListener("readystatechange", a), n.setRequestHeader = new Proxy(n.setRequestHeader, {
8480
+ apply(u, l, f) {
8481
+ const [p, g] = f, _ = l[et];
8482
+ return _ && ge(p) && ge(g) && (_.request_headers[p.toLowerCase()] = g), u.apply(l, f);
8483
8483
  }
8484
8484
  }), e.apply(n, r);
8485
8485
  }
@@ -8511,7 +8511,7 @@ function ho(t, e = Ol("fetch")) {
8511
8511
  async function s(o) {
8512
8512
  const i = o.body.length;
8513
8513
  n += i, r++;
8514
- const a = {
8514
+ const c = {
8515
8515
  body: o.body,
8516
8516
  method: "POST",
8517
8517
  referrerPolicy: "strict-origin",
@@ -8531,16 +8531,16 @@ function ho(t, e = Ol("fetch")) {
8531
8531
  ...t.fetchOptions
8532
8532
  };
8533
8533
  try {
8534
- const c = await e(t.url, a);
8534
+ const a = await e(t.url, c);
8535
8535
  return {
8536
- statusCode: c.status,
8536
+ statusCode: a.status,
8537
8537
  headers: {
8538
- "x-sentry-rate-limits": c.headers.get("X-Sentry-Rate-Limits"),
8539
- "retry-after": c.headers.get("Retry-After")
8538
+ "x-sentry-rate-limits": a.headers.get("X-Sentry-Rate-Limits"),
8539
+ "retry-after": a.headers.get("Retry-After")
8540
8540
  }
8541
8541
  };
8542
- } catch (c) {
8543
- throw Tl("fetch"), c;
8542
+ } catch (a) {
8543
+ throw Tl("fetch"), a;
8544
8544
  } finally {
8545
8545
  n -= i, r--;
8546
8546
  }
@@ -8576,8 +8576,8 @@ const Ll = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Dl = /^\s*at (?:(.+?\)(?: \
8576
8576
  const r = Dl.exec(t);
8577
8577
  if (r) {
8578
8578
  if (r[2] && r[2].indexOf("eval") === 0) {
8579
- const a = Bl.exec(r[2]);
8580
- a && (r[2] = a[1], r[3] = a[2], r[4] = a[3]);
8579
+ const c = Bl.exec(r[2]);
8580
+ c && (r[2] = c[1], r[3] = c[2], r[4] = c[3]);
8581
8581
  }
8582
8582
  const [o, i] = go(r[1] || Me, r[2]);
8583
8583
  return En(i, o, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
@@ -8634,23 +8634,23 @@ function Ql(t, e) {
8634
8634
  return function(r) {
8635
8635
  if (X() !== t)
8636
8636
  return;
8637
- let s, o, i = typeof e == "object" ? e.serializeAttribute : void 0, a = typeof e == "object" && typeof e.maxStringLength == "number" ? e.maxStringLength : void 0;
8638
- a && a > vt && (Ht && x.warn(
8639
- `\`dom.maxStringLength\` cannot exceed ${vt}, but a value of ${a} was configured. Sentry will use ${vt} instead.`
8640
- ), a = vt), typeof i == "string" && (i = [i]);
8637
+ let s, o, i = typeof e == "object" ? e.serializeAttribute : void 0, c = typeof e == "object" && typeof e.maxStringLength == "number" ? e.maxStringLength : void 0;
8638
+ c && c > vt && (Ht && x.warn(
8639
+ `\`dom.maxStringLength\` cannot exceed ${vt}, but a value of ${c} was configured. Sentry will use ${vt} instead.`
8640
+ ), c = vt), typeof i == "string" && (i = [i]);
8641
8641
  try {
8642
- const u = r.event, f = rf(u) ? u.target : u;
8643
- s = Ts(f, { keyAttrs: i, maxStringLength: a }), o = la(f);
8642
+ const u = r.event, l = rf(u) ? u.target : u;
8643
+ s = Ts(l, { keyAttrs: i, maxStringLength: c }), o = la(l);
8644
8644
  } catch {
8645
8645
  s = "<unknown>";
8646
8646
  }
8647
8647
  if (s.length === 0)
8648
8648
  return;
8649
- const c = {
8649
+ const a = {
8650
8650
  category: `ui.${r.name}`,
8651
8651
  message: s
8652
8652
  };
8653
- o && (c.data = { "ui.component_name": o }), Ne(c, {
8653
+ o && (a.data = { "ui.component_name": o }), Ne(a, {
8654
8654
  event: r.event,
8655
8655
  name: r.name,
8656
8656
  global: r.global
@@ -8688,22 +8688,22 @@ function ef(t) {
8688
8688
  const { startTimestamp: r, endTimestamp: s } = n, o = n.xhr[et];
8689
8689
  if (!r || !s || !o)
8690
8690
  return;
8691
- const { method: i, url: a, status_code: c, body: u } = o, f = {
8691
+ const { method: i, url: c, status_code: a, body: u } = o, l = {
8692
8692
  method: i,
8693
- url: a,
8694
- status_code: c
8695
- }, l = {
8693
+ url: c,
8694
+ status_code: a
8695
+ }, f = {
8696
8696
  xhr: n.xhr,
8697
8697
  input: u,
8698
8698
  startTimestamp: r,
8699
8699
  endTimestamp: s
8700
8700
  }, p = {
8701
8701
  category: "xhr",
8702
- data: f,
8702
+ data: l,
8703
8703
  type: "http",
8704
- level: uo(c)
8704
+ level: uo(a)
8705
8705
  };
8706
- t.emit("beforeOutgoingRequestBreadcrumb", p, l), Ne(p, l);
8706
+ t.emit("beforeOutgoingRequestBreadcrumb", p, f), Ne(p, f);
8707
8707
  };
8708
8708
  }
8709
8709
  function tf(t) {
@@ -8718,31 +8718,31 @@ function tf(t) {
8718
8718
  input: n.args,
8719
8719
  startTimestamp: r,
8720
8720
  endTimestamp: s
8721
- }, a = {
8721
+ }, c = {
8722
8722
  category: "fetch",
8723
8723
  data: o,
8724
8724
  level: "error",
8725
8725
  type: "http"
8726
8726
  };
8727
- t.emit("beforeOutgoingRequestBreadcrumb", a, i), Ne(a, i);
8727
+ t.emit("beforeOutgoingRequestBreadcrumb", c, i), Ne(c, i);
8728
8728
  } else {
8729
8729
  const o = n.response, i = {
8730
8730
  ...n.fetchData,
8731
8731
  status_code: o == null ? void 0 : o.status
8732
8732
  };
8733
8733
  n.fetchData.request_body_size, n.fetchData.response_body_size, o == null || o.status;
8734
- const a = {
8734
+ const c = {
8735
8735
  input: n.args,
8736
8736
  response: o,
8737
8737
  startTimestamp: r,
8738
8738
  endTimestamp: s
8739
- }, c = {
8739
+ }, a = {
8740
8740
  category: "fetch",
8741
8741
  data: i,
8742
8742
  type: "http",
8743
8743
  level: uo(i.status_code)
8744
8744
  };
8745
- t.emit("beforeOutgoingRequestBreadcrumb", c, a), Ne(c, a);
8745
+ t.emit("beforeOutgoingRequestBreadcrumb", a, c), Ne(a, c);
8746
8746
  }
8747
8747
  };
8748
8748
  }
@@ -8753,8 +8753,8 @@ function nf(t) {
8753
8753
  let r = n.from, s = n.to;
8754
8754
  const o = en(W.location.href);
8755
8755
  let i = r ? en(r) : void 0;
8756
- const a = en(s);
8757
- i != null && i.path || (i = o), o.protocol === a.protocol && o.host === a.host && (s = a.relative), o.protocol === i.protocol && o.host === i.host && (r = i.relative), Ne({
8756
+ const c = en(s);
8757
+ i != null && i.path || (i = o), o.protocol === c.protocol && o.host === c.host && (s = c.relative), o.protocol === i.protocol && o.host === i.host && (r = i.relative), Ne({
8758
8758
  category: "navigation",
8759
8759
  data: {
8760
8760
  from: r,
@@ -8858,8 +8858,8 @@ function lf(t) {
8858
8858
  handled: !1,
8859
8859
  type: `auto.browser.browserapierrors.xhr.${s}`
8860
8860
  }
8861
- }, a = Mn(o);
8862
- return a && (i.mechanism.data.handler = xe(a)), ze(o, i);
8861
+ }, c = Mn(o);
8862
+ return c && (i.mechanism.data.handler = xe(c)), ze(o, i);
8863
8863
  });
8864
8864
  }), t.apply(this, e);
8865
8865
  };
@@ -8868,12 +8868,12 @@ function ff(t, e) {
8868
8868
  var s, o;
8869
8869
  const r = (s = W[t]) == null ? void 0 : s.prototype;
8870
8870
  (o = r == null ? void 0 : r.hasOwnProperty) != null && o.call(r, "addEventListener") && (se(r, "addEventListener", function(i) {
8871
- return function(a, c, u) {
8871
+ return function(c, a, u) {
8872
8872
  try {
8873
- df(c) && (c.handleEvent = ze(c.handleEvent, {
8873
+ df(a) && (a.handleEvent = ze(a.handleEvent, {
8874
8874
  mechanism: {
8875
8875
  data: {
8876
- handler: xe(c),
8876
+ handler: xe(a),
8877
8877
  target: t
8878
8878
  },
8879
8879
  handled: !1,
@@ -8882,12 +8882,12 @@ function ff(t, e) {
8882
8882
  }));
8883
8883
  } catch {
8884
8884
  }
8885
- return e.unregisterOriginalCallbacks && pf(this, a, c), i.apply(this, [
8886
- a,
8887
- ze(c, {
8885
+ return e.unregisterOriginalCallbacks && pf(this, c, a), i.apply(this, [
8886
+ c,
8887
+ ze(a, {
8888
8888
  mechanism: {
8889
8889
  data: {
8890
- handler: xe(c),
8890
+ handler: xe(a),
8891
8891
  target: t
8892
8892
  },
8893
8893
  handled: !1,
@@ -8898,13 +8898,13 @@ function ff(t, e) {
8898
8898
  ]);
8899
8899
  };
8900
8900
  }), se(r, "removeEventListener", function(i) {
8901
- return function(a, c, u) {
8901
+ return function(c, a, u) {
8902
8902
  try {
8903
- const f = c.__sentry_wrapped__;
8904
- f && i.call(this, a, f, u);
8903
+ const l = a.__sentry_wrapped__;
8904
+ l && i.call(this, c, l, u);
8905
8905
  } catch {
8906
8906
  }
8907
- return i.call(this, a, c, u);
8907
+ return i.call(this, c, a, u);
8908
8908
  };
8909
8909
  }));
8910
8910
  }
@@ -8946,14 +8946,14 @@ function bf(t) {
8946
8946
  const { stackParser: n, attachStacktrace: r } = mo();
8947
8947
  if (X() !== t || lo())
8948
8948
  return;
8949
- const { msg: s, url: o, line: i, column: a, error: c } = e, u = Ef(
8950
- Un(n, c || s, void 0, r, !1),
8949
+ const { msg: s, url: o, line: i, column: c, error: a } = e, u = Ef(
8950
+ Un(n, a || s, void 0, r, !1),
8951
8951
  o,
8952
8952
  i,
8953
- a
8953
+ c
8954
8954
  );
8955
8955
  u.level = "error", zs(u, {
8956
- originalException: c,
8956
+ originalException: a,
8957
8957
  mechanism: {
8958
8958
  handled: !1,
8959
8959
  type: "auto.browser.global_handlers.onerror"
@@ -9003,13 +9003,13 @@ function wf(t) {
9003
9003
  }
9004
9004
  function Ef(t, e, n, r) {
9005
9005
  var p;
9006
- const s = t.exception = t.exception || {}, o = s.values = s.values || [], i = o[0] = o[0] || {}, a = i.stacktrace = i.stacktrace || {}, c = a.frames = a.frames || [], u = r, f = n, l = (p = Sf(e)) != null ? p : Fn();
9007
- return c.length === 0 && c.push({
9006
+ const s = t.exception = t.exception || {}, o = s.values = s.values || [], i = o[0] = o[0] || {}, c = i.stacktrace = i.stacktrace || {}, a = c.frames = c.frames || [], u = r, l = n, f = (p = Sf(e)) != null ? p : Fn();
9007
+ return a.length === 0 && a.push({
9008
9008
  colno: u,
9009
- filename: l,
9009
+ filename: f,
9010
9010
  function: Me,
9011
9011
  in_app: !0,
9012
- lineno: f
9012
+ lineno: l
9013
9013
  }), t;
9014
9014
  }
9015
9015
  function as(t) {
@@ -9120,7 +9120,7 @@ var cs;
9120
9120
  function Af() {
9121
9121
  if (cs) return I;
9122
9122
  cs = 1;
9123
- var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.consumer"), i = /* @__PURE__ */ Symbol.for("react.context"), a = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), l = /* @__PURE__ */ Symbol.for("react.activity"), p = Symbol.iterator;
9123
+ var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.consumer"), i = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), a = /* @__PURE__ */ Symbol.for("react.suspense"), u = /* @__PURE__ */ Symbol.for("react.memo"), l = /* @__PURE__ */ Symbol.for("react.lazy"), f = /* @__PURE__ */ Symbol.for("react.activity"), p = Symbol.iterator;
9124
9124
  function g(d) {
9125
9125
  return d === null || typeof d != "object" ? null : (d = p && d[p] || d["@@iterator"], typeof d == "function" ? d : null);
9126
9126
  }
@@ -9226,7 +9226,7 @@ function Af() {
9226
9226
  case e:
9227
9227
  D = !0;
9228
9228
  break;
9229
- case f:
9229
+ case l:
9230
9230
  return D = d._init, j(
9231
9231
  D(d._payload),
9232
9232
  b,
@@ -9347,7 +9347,7 @@ function Af() {
9347
9347
  return d;
9348
9348
  }
9349
9349
  };
9350
- return I.Activity = l, I.Children = fe, I.Component = v, I.Fragment = n, I.Profiler = s, I.PureComponent = E, I.StrictMode = r, I.Suspense = c, I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, I.__COMPILER_RUNTIME = {
9350
+ return I.Activity = f, I.Children = fe, I.Component = v, I.Fragment = n, I.Profiler = s, I.PureComponent = E, I.StrictMode = r, I.Suspense = a, I.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, I.__COMPILER_RUNTIME = {
9351
9351
  __proto__: null,
9352
9352
  c: function(d) {
9353
9353
  return T.H.useMemoCache(d);
@@ -9406,10 +9406,10 @@ function Af() {
9406
9406
  }, I.createRef = function() {
9407
9407
  return { current: null };
9408
9408
  }, I.forwardRef = function(d) {
9409
- return { $$typeof: a, render: d };
9409
+ return { $$typeof: c, render: d };
9410
9410
  }, I.isValidElement = V, I.lazy = function(d) {
9411
9411
  return {
9412
- $$typeof: f,
9412
+ $$typeof: l,
9413
9413
  _payload: { _status: -1, _result: d },
9414
9414
  _init: ee
9415
9415
  };
@@ -9596,31 +9596,31 @@ function ed(t) {
9596
9596
  throw new Error("No `createStore` function was provided");
9597
9597
  const s = n.createStore(n);
9598
9598
  let o = sn, i;
9599
- function a(l, p, g) {
9600
- return ds(l, ["client_report"]) ? !1 : n.shouldStore ? n.shouldStore(l, p, g) : !0;
9599
+ function c(f, p, g) {
9600
+ return ds(f, ["client_report"]) ? !1 : n.shouldStore ? n.shouldStore(f, p, g) : !0;
9601
9601
  }
9602
- function c(l) {
9602
+ function a(f) {
9603
9603
  i && clearTimeout(i), i = Jf(
9604
9604
  setTimeout(async () => {
9605
9605
  i = void 0;
9606
9606
  const p = await s.shift();
9607
- p && (e("Attempting to send previously queued event"), p[0].sent_at = (/* @__PURE__ */ new Date()).toISOString(), f(p, !0).catch((g) => {
9607
+ p && (e("Attempting to send previously queued event"), p[0].sent_at = (/* @__PURE__ */ new Date()).toISOString(), l(p, !0).catch((g) => {
9608
9608
  e("Failed to retry sending", g);
9609
9609
  }));
9610
- }, l)
9610
+ }, f)
9611
9611
  );
9612
9612
  }
9613
9613
  function u() {
9614
- i || (c(o), o = Math.min(o * 2, Zf));
9614
+ i || (a(o), o = Math.min(o * 2, Zf));
9615
9615
  }
9616
- async function f(l, p = !1) {
9616
+ async function l(f, p = !1) {
9617
9617
  var g, _;
9618
- if (!p && ds(l, ["replay_event", "replay_recording"]))
9619
- return await s.push(l), c(rn), {};
9618
+ if (!p && ds(f, ["replay_event", "replay_recording"]))
9619
+ return await s.push(f), a(rn), {};
9620
9620
  try {
9621
- if (n.shouldSend && await n.shouldSend(l) === !1)
9621
+ if (n.shouldSend && await n.shouldSend(f) === !1)
9622
9622
  throw new Error("Envelope not sent because `shouldSend` callback returned false");
9623
- const m = await r.send(l);
9623
+ const m = await r.send(f);
9624
9624
  let y = rn;
9625
9625
  if (m) {
9626
9626
  if ((g = m.headers) != null && g["retry-after"])
@@ -9630,20 +9630,20 @@ function ed(t) {
9630
9630
  else if ((m.statusCode || 0) >= 400)
9631
9631
  return m;
9632
9632
  }
9633
- return c(y), o = sn, m;
9633
+ return a(y), o = sn, m;
9634
9634
  } catch (m) {
9635
- if (await a(l, m, o))
9636
- return p ? await s.unshift(l) : await s.push(l), u(), e("Error sending. Event queued.", m), {};
9635
+ if (await c(f, m, o))
9636
+ return p ? await s.unshift(f) : await s.push(f), u(), e("Error sending. Event queued.", m), {};
9637
9637
  throw m;
9638
9638
  }
9639
9639
  }
9640
9640
  return n.flushAtStartup && u(), {
9641
- send: f,
9642
- flush: (l) => (l === void 0 && (o = sn, c(rn)), r.flush(l))
9641
+ send: l,
9642
+ flush: (f) => (f === void 0 && (o = sn, a(rn)), r.flush(f))
9643
9643
  };
9644
9644
  };
9645
9645
  }
9646
- const td = "production", nd = "3.0.0-alpha.13";
9646
+ const td = "production", nd = "3.0.0-alpha.14";
9647
9647
  function rd() {
9648
9648
  const t = "sentry_offline_queue";
9649
9649
  return {
@@ -9694,8 +9694,8 @@ function sd(t) {
9694
9694
  flushAtStartup: !0,
9695
9695
  // Attempt to send queued events on startup
9696
9696
  shouldStore: async (r, s) => {
9697
- var o, i, a;
9698
- return !!(!navigator.onLine || s && ((o = s.message) != null && o.includes("Failed to fetch") || (i = s.message) != null && i.includes("NetworkError") || (a = s.message) != null && a.includes("Network request failed")));
9697
+ var o, i, c;
9698
+ return !!(!navigator.onLine || s && ((o = s.message) != null && o.includes("Failed to fetch") || (i = s.message) != null && i.includes("NetworkError") || (c = s.message) != null && c.includes("Network request failed")));
9699
9699
  }
9700
9700
  }),
9701
9701
  // Performance Monitoring
@@ -9704,7 +9704,7 @@ function sd(t) {
9704
9704
  beforeSend(n, r) {
9705
9705
  var i;
9706
9706
  const s = [/loading chunk \d{1,2}\b/i, /zaloJS/i, /e\.target\.name/i, /ResizeObserver loop/i, /ChunkLoadError/i, /FloorPlan not ready/i, /NetworkError/i], o = n.message || ((i = r.originalException) == null ? void 0 : i.message) || "";
9707
- return s.some((a) => a.test(o)) ? null : n;
9707
+ return s.some((c) => c.test(o)) ? null : n;
9708
9708
  }
9709
9709
  }), t.eventId && Br("eventId", t.eventId), Br("isWebview", t.isWebview), Gc({
9710
9710
  ip_address: "{{auto}}"
@@ -9903,22 +9903,22 @@ class id {
9903
9903
  n.classList.remove(...s), n.classList.add("expofp-floorplan-default", ...s);
9904
9904
  const o = document.head || document.getElementsByTagName("head")[0], i = document.createElement("style");
9905
9905
  o.prepend(i), i.textContent = ".expofp-floorplan-default { width: 100%; height: 100%;}";
9906
- const a = document.createElement("div");
9907
- a.style.height = "100%", a.style.width = "100%", n.appendChild(a);
9908
- let c;
9906
+ const c = document.createElement("div");
9907
+ c.style.height = "100%", c.style.width = "100%", n.appendChild(c);
9908
+ let a;
9909
9909
  if (fr && (this.allowConsent = !0), e.allowConsent === void 0) {
9910
9910
  const E = new URL(window.location.href).searchParams.get("allowConsent");
9911
9911
  E && (this.allowConsent = E === "true");
9912
9912
  }
9913
- c = a;
9913
+ a = c;
9914
9914
  const u = document.createElement("div");
9915
- if (u.style.height = "100%", u.style.width = "100%", c.appendChild(u), this.renderTarget = u, n.getAttribute("data-data-url")) throw new Error("data-xxx attributes are removed, use options instead");
9916
- const f = e.legacyDataUrlBase;
9917
- window.__dataUrlBase = f, this.dataUrl = f, Se.log("Instantiating ExpoFP floorplan", e.element, r);
9918
- const l = f + "data.js", p = f + "wf.data.js", g = f + "fp.svg.js", _ = [
9915
+ if (u.style.height = "100%", u.style.width = "100%", a.appendChild(u), this.renderTarget = u, n.getAttribute("data-data-url")) throw new Error("data-xxx attributes are removed, use options instead");
9916
+ const l = e.legacyDataUrlBase;
9917
+ window.__dataUrlBase = l, this.dataUrl = l, Se.log("Instantiating ExpoFP floorplan", e.element, r);
9918
+ const f = l + "data.js", p = l + "wf.data.js", g = l + "fp.svg.js", _ = [
9919
9919
  // initOfflineManager(baseRuntimeUrl, [wfDataUrl, dataUrl, fpUrl]),
9920
9920
  gt(p),
9921
- gt(l),
9921
+ gt(f),
9922
9922
  gt(g)
9923
9923
  ];
9924
9924
  let m = 0;
@@ -9926,7 +9926,7 @@ class id {
9926
9926
  const E = window.__efpStyleElements;
9927
9927
  for (; m < E.length; ) {
9928
9928
  const N = E[m];
9929
- c.appendChild(N), m++;
9929
+ a.appendChild(N), m++;
9930
9930
  }
9931
9931
  }, window.addEventListener("__efpStyleLoad", this.efpStyleLoadHandler);
9932
9932
  const y = this;
@@ -10013,7 +10013,7 @@ class id {
10013
10013
  } catch (F) {
10014
10014
  console.error(F);
10015
10015
  }
10016
- const Q = [Gt(ae + "vendor/sanitize-css/sanitize.css", c), Gt(ae + "vendor/perfect-scrollbar/css/perfect-scrollbar.css", c), Gt(ae + "vendor/mapbox/mapbox-gl.css", c), Le("Oswald", ae + "fonts/oswald-v17-cyrillic_latin-300.woff", {
10016
+ const Q = [Gt(ae + "vendor/sanitize-css/sanitize.css", a), Gt(ae + "vendor/perfect-scrollbar/css/perfect-scrollbar.css", a), Gt(ae + "vendor/mapbox/mapbox-gl.css", a), Le("Oswald", ae + "fonts/oswald-v17-cyrillic_latin-300.woff", {
10017
10017
  weight: 300
10018
10018
  }), Le("Oswald", ae + "fonts/oswald-v17-cyrillic_latin-500.woff", {
10019
10019
  weight: 500
@@ -10031,9 +10031,9 @@ class id {
10031
10031
  default: Z
10032
10032
  } = await import(
10033
10033
  /* webpackChunkName: "floorplan" */
10034
- "./floorplan.ready-D6FqQD8c.js"
10034
+ "./floorplan.ready-D-VQ-QvS.js"
10035
10035
  ).then((F) => F.aF);
10036
- for (document.querySelectorAll(".expofp-floorplan-loader").forEach((F) => F.remove()); n.firstChild && n.firstChild !== a; )
10036
+ for (document.querySelectorAll(".expofp-floorplan-loader").forEach((F) => F.remove()); n.firstChild && n.firstChild !== c; )
10037
10037
  n.removeChild(n.firstChild);
10038
10038
  Object.setPrototypeOf(y, Z.prototype).init();
10039
10039
  })();
@@ -10048,33 +10048,37 @@ async function qd(t, e) {
10048
10048
  }, s = r.element;
10049
10049
  let o;
10050
10050
  if (typeof s == "string") {
10051
- const u = document.querySelector(s);
10052
- if (!u)
10051
+ const l = document.querySelector(s);
10052
+ if (!l)
10053
10053
  throw new Error(`Element not found for selector: ${s}`);
10054
- o = u;
10054
+ o = l;
10055
10055
  } else s ? o = s : (o = document.getElementById("floorplan"), o || (o = document.createElement("div"), ad(o), document.body.appendChild(o)));
10056
10056
  const i = o.style;
10057
10057
  i.width = i.width || "100vw", i.height = i.height || "100vh", i.position = i.position || "fixed", i.touchAction = i.touchAction || "none", i.background = i.background || "#fff", i.transition = i.transition || "background-color 2s ease", i.overflow = i.overflow || "hidden", requestAnimationFrame(() => {
10058
10058
  i.backgroundColor = "#ebebeb";
10059
10059
  });
10060
- const a = r.legacyDataUrlBase;
10061
- if (ps("legacyDataUrlBase", a), r.legacyDataVersion)
10060
+ const c = r.legacyDataUrlBase;
10061
+ if (ps("legacyDataUrlBase", c), r.legacyDataVersion)
10062
10062
  try {
10063
10063
  const {
10064
- version: u
10064
+ version: l
10065
10065
  } = await Zn(r.legacyDataVersion);
10066
- globalThis.__fpDataVersion = u;
10066
+ globalThis.__fpDataVersion = l;
10067
10067
  } catch {
10068
10068
  ps("Could not resolve version");
10069
10069
  }
10070
- const c = new id({
10070
+ const a = new id({
10071
10071
  ...r,
10072
10072
  element: o
10073
- });
10074
- return window.___fp = c, import("./index-d52BKaOl.js").then((u) => u.i).then(({
10075
- initDebug: u
10076
- }) => u()).catch(() => {
10077
- }), c;
10073
+ }), u = window.___fpResolve;
10074
+ return window.___fp = a, u && (a.ready.then(() => u(a)), delete window.___fpResolve), a.ready.then(() => window.dispatchEvent(new CustomEvent("expofp:ready", {
10075
+ detail: {
10076
+ floorplan: a
10077
+ }
10078
+ }))), import("./index-Vc2rrV4B.js").then((l) => l.i).then(({
10079
+ initDebug: l
10080
+ }) => l()).catch(() => {
10081
+ }), a;
10078
10082
  }
10079
10083
  function ad(t) {
10080
10084
  if (!document.adoptedStyleSheets) return;