@eka-care/ekascribe-ts-sdk 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { SessionStatus as vr, ScribeError as Ce, ScribeClient as wr, TransportMode as Oe } from "med-scribe-alliance-ts-sdk";
1
+ import { SessionStatus as vr, ScribeError as Oe, ScribeClient as kr, TransportMode as Ce } from "med-scribe-alliance-ts-sdk";
2
2
  import { createWorkerBlobUrl as nu, getWorkerUrl as ru } from "med-scribe-alliance-ts-sdk";
3
- const kr = 1e4;
3
+ const wr = 1e4;
4
4
  class Nr {
5
5
  constructor(t) {
6
- this.tokenRefreshPromise = null, this.accessToken = t.access_token, this.clientId = t.clientId, this.flavour = t.flavour, this.defaultTimeout = t.defaultTimeout ?? kr, this.onUnauthorized = t.onUnauthorized;
6
+ this.tokenRefreshPromise = null, this.accessToken = t.access_token, this.clientId = t.clientId, this.flavour = t.flavour, this.defaultTimeout = t.defaultTimeout ?? wr, this.onUnauthorized = t.onUnauthorized;
7
7
  }
8
8
  setAuthToken(t) {
9
9
  this.accessToken = t;
@@ -67,10 +67,10 @@ class $ extends Error {
67
67
  super(t), this.status = n, this.name = "TransportError";
68
68
  }
69
69
  }
70
- const Cr = 1e4;
71
- class Or {
70
+ const Or = 1e4;
71
+ class Cr {
72
72
  constructor(t, n) {
73
- this.tokenRefreshPromise = null, this.pendingRequests = /* @__PURE__ */ new Map(), this.accessToken = t.access_token, this.clientId = t.clientId, this.flavour = t.flavour, this.defaultTimeout = t.defaultTimeout ?? Cr, this.onUnauthorized = t.onUnauthorized, this.bridge = n, this.bridge.onResponse((r) => {
73
+ this.tokenRefreshPromise = null, this.pendingRequests = /* @__PURE__ */ new Map(), this.accessToken = t.access_token, this.clientId = t.clientId, this.flavour = t.flavour, this.defaultTimeout = t.defaultTimeout ?? Or, this.onUnauthorized = t.onUnauthorized, this.bridge = n, this.bridge.onResponse((r) => {
74
74
  const s = r;
75
75
  if (s?.type !== "response" || !s.correlationId) return;
76
76
  const o = this.pendingRequests.get(s.correlationId);
@@ -149,14 +149,14 @@ class Or {
149
149
  return `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
150
150
  }
151
151
  }
152
- const Ar = {
152
+ const Dr = {
153
153
  voiceV1: "https://api.dev.eka.care/voice/api/v1",
154
154
  voiceV2: "https://api.dev.eka.care/voice/api/v2",
155
155
  voiceV3: "https://api.dev.eka.care/voice/api/v3",
156
156
  cookV1: "https://deepthought-genai.dev.eka.care/api/v1",
157
157
  ekaHost: "https://api.dev.eka.care",
158
158
  parchiHost: "https://parchi.dev.eka.care"
159
- }, Dr = {
159
+ }, Ar = {
160
160
  voiceV1: "https://api.eka.care/voice/api/v1",
161
161
  voiceV2: "https://api.eka.care/voice/api/v2",
162
162
  voiceV3: "https://api.eka.care/voice/api/v3",
@@ -165,7 +165,7 @@ const Ar = {
165
165
  parchiHost: "https://parchi.eka.care"
166
166
  };
167
167
  function xr(e) {
168
- return e === "PROD" ? Dr : Ar;
168
+ return e === "PROD" ? Ar : Dr;
169
169
  }
170
170
  class Fr {
171
171
  constructor() {
@@ -198,11 +198,11 @@ class Fr {
198
198
  return !!n && n.size > 0;
199
199
  }
200
200
  }
201
- const _ = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = globalThis, q = "10.43.0";
202
- function Ct() {
203
- return Ot(E), E;
201
+ const m = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, E = globalThis, q = "10.43.0";
202
+ function Ot() {
203
+ return Ct(E), E;
204
204
  }
205
- function Ot(e) {
205
+ function Ct(e) {
206
206
  const t = e.__SENTRY__ = e.__SENTRY__ || {};
207
207
  return t.version = t.version || q, t[q] = t[q] || {};
208
208
  }
@@ -218,13 +218,13 @@ const $r = [
218
218
  "log",
219
219
  "assert",
220
220
  "trace"
221
- ], Pr = "Sentry Logger ", wt = {};
221
+ ], Mr = "Sentry Logger ", kt = {};
222
222
  function rt(e) {
223
223
  if (!("console" in E))
224
224
  return e();
225
- const t = E.console, n = {}, r = Object.keys(wt);
225
+ const t = E.console, n = {}, r = Object.keys(kt);
226
226
  r.forEach((s) => {
227
- const o = wt[s];
227
+ const o = kt[s];
228
228
  n[s] = t[s], t[s] = o;
229
229
  });
230
230
  try {
@@ -235,13 +235,13 @@ function rt(e) {
235
235
  });
236
236
  }
237
237
  }
238
- function Mr() {
238
+ function Pr() {
239
239
  he().enabled = !0;
240
240
  }
241
241
  function Ur() {
242
242
  he().enabled = !1;
243
243
  }
244
- function On() {
244
+ function Cn() {
245
245
  return he().enabled;
246
246
  }
247
247
  function Lr(...e) {
@@ -254,28 +254,28 @@ function Br(...e) {
254
254
  pe("error", ...e);
255
255
  }
256
256
  function pe(e, ...t) {
257
- _ && On() && rt(() => {
258
- E.console[e](`${Pr}[${e}]:`, ...t);
257
+ m && Cn() && rt(() => {
258
+ E.console[e](`${Mr}[${e}]:`, ...t);
259
259
  });
260
260
  }
261
261
  function he() {
262
- return _ ? nt("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
262
+ return m ? nt("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
263
263
  }
264
264
  const h = {
265
265
  /** Enable logging. */
266
- enable: Mr,
266
+ enable: Pr,
267
267
  /** Disable logging. */
268
268
  disable: Ur,
269
269
  /** Check if logging is enabled. */
270
- isEnabled: On,
270
+ isEnabled: Cn,
271
271
  /** Log a message. */
272
272
  log: Lr,
273
273
  /** Log a warning. */
274
274
  warn: Hr,
275
275
  /** Log an error. */
276
276
  error: Br
277
- }, An = 50, X = "?", Ae = /\(error: (.*)\)/, De = /captureMessage|captureException/;
278
- function Dn(...e) {
277
+ }, Dn = 50, X = "?", De = /\(error: (.*)\)/, Ae = /captureMessage|captureException/;
278
+ function An(...e) {
279
279
  const t = e.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
280
280
  return (n, r = 0, s = 0) => {
281
281
  const o = [], i = n.split(`
@@ -283,7 +283,7 @@ function Dn(...e) {
283
283
  for (let a = r; a < i.length; a++) {
284
284
  let c = i[a];
285
285
  c.length > 1024 && (c = c.slice(0, 1024));
286
- const u = Ae.test(c) ? c.replace(Ae, "$1") : c;
286
+ const u = De.test(c) ? c.replace(De, "$1") : c;
287
287
  if (!u.match(/\S*Error: /)) {
288
288
  for (const d of t) {
289
289
  const l = d(u);
@@ -292,7 +292,7 @@ function Dn(...e) {
292
292
  break;
293
293
  }
294
294
  }
295
- if (o.length >= An + s)
295
+ if (o.length >= Dn + s)
296
296
  break;
297
297
  }
298
298
  }
@@ -300,19 +300,19 @@ function Dn(...e) {
300
300
  };
301
301
  }
302
302
  function jr(e) {
303
- return Array.isArray(e) ? Dn(...e) : e;
303
+ return Array.isArray(e) ? An(...e) : e;
304
304
  }
305
305
  function Wr(e) {
306
306
  if (!e.length)
307
307
  return [];
308
308
  const t = Array.from(e);
309
- return /sentryWrapped/.test(mt(t).function || "") && t.pop(), t.reverse(), De.test(mt(t).function || "") && (t.pop(), De.test(mt(t).function || "") && t.pop()), t.slice(0, An).map((n) => ({
309
+ return /sentryWrapped/.test(_t(t).function || "") && t.pop(), t.reverse(), Ae.test(_t(t).function || "") && (t.pop(), Ae.test(_t(t).function || "") && t.pop()), t.slice(0, Dn).map((n) => ({
310
310
  ...n,
311
- filename: n.filename || mt(t).filename,
311
+ filename: n.filename || _t(t).filename,
312
312
  function: n.function || X
313
313
  }));
314
314
  }
315
- function mt(e) {
315
+ function _t(e) {
316
316
  return e[e.length - 1] || {};
317
317
  }
318
318
  const Ut = "<anonymous>";
@@ -349,18 +349,18 @@ function Y(e, t) {
349
349
  try {
350
350
  t();
351
351
  } catch (n) {
352
- _ && h.error(`Error while instrumenting ${e}`, n);
352
+ m && h.error(`Error while instrumenting ${e}`, n);
353
353
  }
354
354
  }
355
355
  }
356
- function A(e, t) {
356
+ function D(e, t) {
357
357
  const n = e && St[e];
358
358
  if (n)
359
359
  for (const r of n)
360
360
  try {
361
361
  r(t);
362
362
  } catch (s) {
363
- _ && h.error(
363
+ m && h.error(
364
364
  `Error while triggering instrumentation handler.
365
365
  Type: ${e}
366
366
  Name: ${H(r)}
@@ -376,7 +376,7 @@ function Vr(e) {
376
376
  }
377
377
  function Gr() {
378
378
  Lt = E.onerror, E.onerror = function(e, t, n, r, s) {
379
- return A("error", {
379
+ return D("error", {
380
380
  column: r,
381
381
  error: s,
382
382
  line: n,
@@ -392,11 +392,11 @@ function zr(e) {
392
392
  }
393
393
  function qr() {
394
394
  Ht = E.onunhandledrejection, E.onunhandledrejection = function(e) {
395
- return A("unhandledrejection", e), Ht ? Ht.apply(this, arguments) : !0;
395
+ return D("unhandledrejection", e), Ht ? Ht.apply(this, arguments) : !0;
396
396
  }, E.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
397
397
  }
398
398
  const Fn = Object.prototype.toString;
399
- function At(e) {
399
+ function Dt(e) {
400
400
  switch (Fn.call(e)) {
401
401
  case "[object Error]":
402
402
  case "[object Exception]":
@@ -419,14 +419,14 @@ function $e(e) {
419
419
  function Xr(e) {
420
420
  return st(e, "DOMException");
421
421
  }
422
- function P(e) {
422
+ function M(e) {
423
423
  return st(e, "String");
424
424
  }
425
- function _e(e) {
425
+ function me(e) {
426
426
  return typeof e == "object" && e !== null && "__sentry_template_string__" in e && "__sentry_template_values__" in e;
427
427
  }
428
- function Dt(e) {
429
- return e === null || _e(e) || typeof e != "object" && typeof e != "function";
428
+ function At(e) {
429
+ return e === null || me(e) || typeof e != "object" && typeof e != "function";
430
430
  }
431
431
  function ct(e) {
432
432
  return st(e, "Object");
@@ -453,13 +453,13 @@ function B(e, t) {
453
453
  return !1;
454
454
  }
455
455
  }
456
- function Pn(e) {
456
+ function Mn(e) {
457
457
  return !!(typeof e == "object" && e !== null && (e.__isVue || e._isVue || e.__v_isVNode));
458
458
  }
459
- function Mn(e) {
459
+ function Pn(e) {
460
460
  return typeof Request < "u" && B(e, Request);
461
461
  }
462
- const me = E, Zr = 80;
462
+ const _e = E, Zr = 80;
463
463
  function Un(e, t = {}) {
464
464
  if (!e)
465
465
  return "<unknown>";
@@ -481,7 +481,7 @@ function Qr(e, t) {
481
481
  const n = e, r = [];
482
482
  if (!n?.tagName)
483
483
  return "";
484
- if (me.HTMLElement && n instanceof HTMLElement && n.dataset) {
484
+ if (_e.HTMLElement && n instanceof HTMLElement && n.dataset) {
485
485
  if (n.dataset.sentryComponent)
486
486
  return n.dataset.sentryComponent;
487
487
  if (n.dataset.sentryElement)
@@ -496,7 +496,7 @@ function Qr(e, t) {
496
496
  else {
497
497
  n.id && r.push(`#${n.id}`);
498
498
  const i = n.className;
499
- if (i && P(i)) {
499
+ if (i && M(i)) {
500
500
  const a = i.split(/\s+/);
501
501
  for (const c of a)
502
502
  r.push(`.${c}`);
@@ -511,13 +511,13 @@ function Qr(e, t) {
511
511
  }
512
512
  function ge() {
513
513
  try {
514
- return me.document.location.href;
514
+ return _e.document.location.href;
515
515
  } catch {
516
516
  return "";
517
517
  }
518
518
  }
519
519
  function ts(e) {
520
- if (!me.HTMLElement)
520
+ if (!_e.HTMLElement)
521
521
  return null;
522
522
  let t = e;
523
523
  const n = 5;
@@ -534,7 +534,7 @@ function ts(e) {
534
534
  }
535
535
  return null;
536
536
  }
537
- function k(e, t, n) {
537
+ function w(e, t, n) {
538
538
  if (!(t in e))
539
539
  return;
540
540
  const r = e[t];
@@ -545,7 +545,7 @@ function k(e, t, n) {
545
545
  try {
546
546
  e[t] = s;
547
547
  } catch {
548
- _ && h.log(`Failed to replace method "${t}" in object`, e);
548
+ m && h.log(`Failed to replace method "${t}" in object`, e);
549
549
  }
550
550
  }
551
551
  function j(e, t, n) {
@@ -557,7 +557,7 @@ function j(e, t, n) {
557
557
  configurable: !0
558
558
  });
559
559
  } catch {
560
- _ && h.log(`Failed to add non-enumerable property "${t}" to object`, e);
560
+ m && h.log(`Failed to add non-enumerable property "${t}" to object`, e);
561
561
  }
562
562
  }
563
563
  function Ln(e, t) {
@@ -571,32 +571,32 @@ function ye(e) {
571
571
  return e.__sentry_original__;
572
572
  }
573
573
  function Hn(e) {
574
- if (At(e))
574
+ if (Dt(e))
575
575
  return {
576
576
  message: e.message,
577
577
  name: e.name,
578
578
  stack: e.stack,
579
- ...Me(e)
579
+ ...Pe(e)
580
580
  };
581
581
  if (xt(e)) {
582
582
  const t = {
583
583
  type: e.type,
584
- target: Pe(e.target),
585
- currentTarget: Pe(e.currentTarget),
586
- ...Me(e)
584
+ target: Me(e.target),
585
+ currentTarget: Me(e.currentTarget),
586
+ ...Pe(e)
587
587
  };
588
588
  return typeof CustomEvent < "u" && B(e, CustomEvent) && (t.detail = e.detail), t;
589
589
  } else
590
590
  return e;
591
591
  }
592
- function Pe(e) {
592
+ function Me(e) {
593
593
  try {
594
594
  return Kr(e) ? Un(e) : Object.prototype.toString.call(e);
595
595
  } catch {
596
596
  return "<unknown>";
597
597
  }
598
598
  }
599
- function Me(e) {
599
+ function Pe(e) {
600
600
  if (typeof e == "object" && e !== null) {
601
601
  const t = {};
602
602
  for (const n in e)
@@ -616,7 +616,7 @@ function Ft(e) {
616
616
  const t = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), n = E;
617
617
  return t in n && typeof n[t] == "function" ? (J = n[t], J(e)) : (J = null, e());
618
618
  }
619
- function kt() {
619
+ function wt() {
620
620
  return Ft(() => Math.random());
621
621
  }
622
622
  function $t() {
@@ -632,7 +632,7 @@ function Ue(e, t) {
632
632
  for (let r = 0; r < e.length; r++) {
633
633
  const s = e[r];
634
634
  try {
635
- Pn(s) ? n.push(xn(s)) : n.push(String(s));
635
+ Mn(s) ? n.push(xn(s)) : n.push(String(s));
636
636
  } catch {
637
637
  n.push("[value cannot be serialized]");
638
638
  }
@@ -640,9 +640,9 @@ function Ue(e, t) {
640
640
  return n.join(t);
641
641
  }
642
642
  function Tt(e, t, n = !1) {
643
- return P(e) ? Yr(t) ? t.test(e) : P(t) ? n ? e === t : e.includes(t) : !1 : !1;
643
+ return M(e) ? Yr(t) ? t.test(e) : M(t) ? n ? e === t : e.includes(t) : !1 : !1;
644
644
  }
645
- function Pt(e, t = [], n = !1) {
645
+ function Mt(e, t = [], n = !1) {
646
646
  return t.some((r) => Tt(e, r, n));
647
647
  }
648
648
  function ns() {
@@ -651,9 +651,9 @@ function ns() {
651
651
  }
652
652
  let Bt;
653
653
  function rs() {
654
- return kt() * 16;
654
+ return wt() * 16;
655
655
  }
656
- function C(e = ns()) {
656
+ function O(e = ns()) {
657
657
  try {
658
658
  if (e?.randomUUID)
659
659
  return Ft(() => e.randomUUID()).replace(/-/g, "");
@@ -718,12 +718,12 @@ function os() {
718
718
  return () => (t + Ft(() => e.now())) / jn;
719
719
  }
720
720
  let He;
721
- function M() {
721
+ function P() {
722
722
  return (He ?? (He = os()))();
723
723
  }
724
724
  function is(e) {
725
- const t = M(), n = {
726
- sid: C(),
725
+ const t = P(), n = {
726
+ sid: O(),
727
727
  init: !0,
728
728
  timestamp: t,
729
729
  started: t,
@@ -736,7 +736,7 @@ function is(e) {
736
736
  return e && Q(n, e), n;
737
737
  }
738
738
  function Q(e, t = {}) {
739
- if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || M(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : C()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration)
739
+ if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || P(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : O()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration)
740
740
  e.duration = void 0;
741
741
  else if (typeof t.duration == "number")
742
742
  e.duration = t.duration;
@@ -781,10 +781,10 @@ function pt(e, t, n = 2) {
781
781
  return r;
782
782
  }
783
783
  function Be() {
784
- return C();
784
+ return O();
785
785
  }
786
786
  function Wn() {
787
- return C().substring(16);
787
+ return O().substring(16);
788
788
  }
789
789
  const Jt = "_sentrySpan";
790
790
  function je(e, t) {
@@ -794,7 +794,7 @@ function We(e) {
794
794
  return e[Jt];
795
795
  }
796
796
  const us = 100;
797
- class D {
797
+ class A {
798
798
  /** Flag if notifying is happening. */
799
799
  /** Callback for client to receive scope changes. */
800
800
  /** Callback list that will be called during event processing. */
@@ -826,14 +826,14 @@ class D {
826
826
  constructor() {
827
827
  this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = {
828
828
  traceId: Be(),
829
- sampleRand: kt()
829
+ sampleRand: wt()
830
830
  };
831
831
  }
832
832
  /**
833
833
  * Clone all data from this scope into a new scope.
834
834
  */
835
835
  clone() {
836
- const t = new D();
836
+ const t = new A();
837
837
  return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._attributes = { ...this._attributes }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, this._contexts.flags && (t._contexts.flags = {
838
838
  values: [...this._contexts.flags.values]
839
839
  }), t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, t._conversationId = this._conversationId, je(t, We(this)), t;
@@ -1056,7 +1056,7 @@ class D {
1056
1056
  update(t) {
1057
1057
  if (!t)
1058
1058
  return this;
1059
- const n = typeof t == "function" ? t(this) : t, r = n instanceof D ? n.getScopeData() : ct(n) ? t : void 0, {
1059
+ const n = typeof t == "function" ? t(this) : t, r = n instanceof A ? n.getScopeData() : ct(n) ? t : void 0, {
1060
1060
  tags: s,
1061
1061
  attributes: o,
1062
1062
  extra: i,
@@ -1076,7 +1076,7 @@ class D {
1076
1076
  clear() {
1077
1077
  return this._breadcrumbs = [], this._tags = {}, this._attributes = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._session = void 0, this._conversationId = void 0, je(this, void 0), this._attachments = [], this.setPropagationContext({
1078
1078
  traceId: Be(),
1079
- sampleRand: kt()
1079
+ sampleRand: wt()
1080
1080
  }), this._notifyScopeListeners(), this;
1081
1081
  }
1082
1082
  /**
@@ -1165,9 +1165,9 @@ class D {
1165
1165
  * @returns {string} The id of the captured Sentry event.
1166
1166
  */
1167
1167
  captureException(t, n) {
1168
- const r = n?.event_id || C();
1168
+ const r = n?.event_id || O();
1169
1169
  if (!this._client)
1170
- return _ && h.warn("No client configured on scope - will not capture exception!"), r;
1170
+ return m && h.warn("No client configured on scope - will not capture exception!"), r;
1171
1171
  const s = new Error("Sentry syntheticException");
1172
1172
  return this._client.captureException(
1173
1173
  t,
@@ -1186,9 +1186,9 @@ class D {
1186
1186
  * @returns {string} The id of the captured message.
1187
1187
  */
1188
1188
  captureMessage(t, n, r) {
1189
- const s = r?.event_id || C();
1189
+ const s = r?.event_id || O();
1190
1190
  if (!this._client)
1191
- return _ && h.warn("No client configured on scope - will not capture message!"), s;
1191
+ return m && h.warn("No client configured on scope - will not capture message!"), s;
1192
1192
  const o = r?.syntheticException ?? new Error(t);
1193
1193
  return this._client.captureMessage(
1194
1194
  t,
@@ -1208,8 +1208,8 @@ class D {
1208
1208
  * @returns {string} The id of the captured event.
1209
1209
  */
1210
1210
  captureEvent(t, n) {
1211
- const r = t.event_id || n?.event_id || C();
1212
- return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (_ && h.warn("No client configured on scope - will not capture event!"), r);
1211
+ const r = t.event_id || n?.event_id || O();
1212
+ return this._client ? (this._client.captureEvent(t, { ...n, event_id: r }, this), r) : (m && h.warn("No client configured on scope - will not capture event!"), r);
1213
1213
  }
1214
1214
  /**
1215
1215
  * This will be called on every set call.
@@ -1221,17 +1221,17 @@ class D {
1221
1221
  }
1222
1222
  }
1223
1223
  function ds() {
1224
- return nt("defaultCurrentScope", () => new D());
1224
+ return nt("defaultCurrentScope", () => new A());
1225
1225
  }
1226
1226
  function ls() {
1227
- return nt("defaultIsolationScope", () => new D());
1227
+ return nt("defaultIsolationScope", () => new A());
1228
1228
  }
1229
1229
  class fs {
1230
1230
  constructor(t, n) {
1231
1231
  let r;
1232
- t ? r = t : r = new D();
1232
+ t ? r = t : r = new A();
1233
1233
  let s;
1234
- n ? s = n : s = new D(), this._stack = [{ scope: r }], this._isolationScope = s;
1234
+ n ? s = n : s = new A(), this._stack = [{ scope: r }], this._isolationScope = s;
1235
1235
  }
1236
1236
  /**
1237
1237
  * Fork a scope for the stack.
@@ -1293,7 +1293,7 @@ class fs {
1293
1293
  }
1294
1294
  }
1295
1295
  function tt() {
1296
- const e = Ct(), t = Ot(e);
1296
+ const e = Ot(), t = Ct(e);
1297
1297
  return t.stack = t.stack || new fs(ds(), ls());
1298
1298
  }
1299
1299
  function ps(e) {
@@ -1306,7 +1306,7 @@ function hs(e, t) {
1306
1306
  function Ve(e) {
1307
1307
  return tt().withScope(() => e(tt().getIsolationScope()));
1308
1308
  }
1309
- function _s() {
1309
+ function ms() {
1310
1310
  return {
1311
1311
  withIsolationScope: Ve,
1312
1312
  withScope: ps,
@@ -1317,22 +1317,22 @@ function _s() {
1317
1317
  };
1318
1318
  }
1319
1319
  function Ee(e) {
1320
- const t = Ot(e);
1321
- return t.acs ? t.acs : _s();
1320
+ const t = Ct(e);
1321
+ return t.acs ? t.acs : ms();
1322
1322
  }
1323
1323
  function x() {
1324
- const e = Ct();
1324
+ const e = Ot();
1325
1325
  return Ee(e).getCurrentScope();
1326
1326
  }
1327
1327
  function V() {
1328
- const e = Ct();
1328
+ const e = Ot();
1329
1329
  return Ee(e).getIsolationScope();
1330
1330
  }
1331
- function ms() {
1332
- return nt("globalScope", () => new D());
1331
+ function _s() {
1332
+ return nt("globalScope", () => new A());
1333
1333
  }
1334
1334
  function gs(...e) {
1335
- const t = Ct(), n = Ee(t);
1335
+ const t = Ot(), n = Ee(t);
1336
1336
  if (e.length === 2) {
1337
1337
  const [r, s] = e;
1338
1338
  return r ? n.withSetScope(r, s) : n.withScope(s);
@@ -1349,8 +1349,8 @@ function ys(e) {
1349
1349
  };
1350
1350
  return r && (o.parent_span_id = r), o;
1351
1351
  }
1352
- const Es = "sentry.source", Ss = "sentry.sample_rate", Ts = "sentry.previous_trace_sample_rate", bs = "sentry.op", Rs = "sentry.origin", Vn = "sentry.profile_id", Gn = "sentry.exclusive_time", Is = "gen_ai.conversation.id", vs = 0, ws = 1, ks = "_sentryScope", Ns = "_sentryIsolationScope";
1353
- function Cs(e) {
1352
+ const Es = "sentry.source", Ss = "sentry.sample_rate", Ts = "sentry.previous_trace_sample_rate", Rs = "sentry.op", bs = "sentry.origin", Vn = "sentry.profile_id", Gn = "sentry.exclusive_time", Is = "gen_ai.conversation.id", vs = 0, ks = 1, ws = "_sentryScope", Ns = "_sentryIsolationScope";
1353
+ function Os(e) {
1354
1354
  if (e) {
1355
1355
  if (typeof e == "object" && "deref" in e && typeof e.deref == "function")
1356
1356
  try {
@@ -1364,18 +1364,18 @@ function Cs(e) {
1364
1364
  function zn(e) {
1365
1365
  const t = e;
1366
1366
  return {
1367
- scope: t[ks],
1368
- isolationScope: Cs(t[Ns])
1367
+ scope: t[ws],
1368
+ isolationScope: Os(t[Ns])
1369
1369
  };
1370
1370
  }
1371
- const Os = "sentry-", As = /^sentry-/;
1372
- function Ds(e) {
1371
+ const Cs = "sentry-", Ds = /^sentry-/;
1372
+ function As(e) {
1373
1373
  const t = xs(e);
1374
1374
  if (!t)
1375
1375
  return;
1376
1376
  const n = Object.entries(t).reduce((r, [s, o]) => {
1377
- if (s.match(As)) {
1378
- const i = s.slice(Os.length);
1377
+ if (s.match(Ds)) {
1378
+ const i = s.slice(Cs.length);
1379
1379
  r[i] = o;
1380
1380
  }
1381
1381
  return r;
@@ -1384,7 +1384,7 @@ function Ds(e) {
1384
1384
  return n;
1385
1385
  }
1386
1386
  function xs(e) {
1387
- if (!(!e || !P(e) && !Array.isArray(e)))
1387
+ if (!(!e || !M(e) && !Array.isArray(e)))
1388
1388
  return Array.isArray(e) ? e.reduce((t, n) => {
1389
1389
  const r = Ge(n);
1390
1390
  return Object.entries(r).forEach(([s, o]) => {
@@ -1408,14 +1408,14 @@ function Ge(e) {
1408
1408
  }).reduce((t, [n, r]) => (n && r && (t[n] = r), t), {});
1409
1409
  }
1410
1410
  const Fs = /^o(\d+)\./, $s = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;
1411
- function Ps(e) {
1411
+ function Ms(e) {
1412
1412
  return e === "http" || e === "https";
1413
1413
  }
1414
1414
  function ht(e, t = !1) {
1415
1415
  const { host: n, path: r, pass: s, port: o, projectId: i, protocol: a, publicKey: c } = e;
1416
1416
  return `${a}://${c}${t && s ? `:${s}` : ""}@${n}${o ? `:${o}` : ""}/${r && `${r}/`}${i}`;
1417
1417
  }
1418
- function Ms(e) {
1418
+ function Ps(e) {
1419
1419
  const t = $s.exec(e);
1420
1420
  if (!t) {
1421
1421
  rt(() => {
@@ -1444,10 +1444,10 @@ function qn(e) {
1444
1444
  };
1445
1445
  }
1446
1446
  function Us(e) {
1447
- if (!_)
1447
+ if (!m)
1448
1448
  return !0;
1449
1449
  const { port: t, projectId: n, protocol: r } = e;
1450
- return ["protocol", "publicKey", "host", "projectId"].find((i) => e[i] ? !1 : (h.error(`Invalid Sentry Dsn: ${i} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Ps(r) ? t && isNaN(parseInt(t, 10)) ? (h.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
1450
+ return ["protocol", "publicKey", "host", "projectId"].find((i) => e[i] ? !1 : (h.error(`Invalid Sentry Dsn: ${i} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Ms(r) ? t && isNaN(parseInt(t, 10)) ? (h.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
1451
1451
  }
1452
1452
  function Ls(e) {
1453
1453
  return e.match(Fs)?.[1];
@@ -1458,7 +1458,7 @@ function Hs(e) {
1458
1458
  return t.orgId ? r = String(t.orgId) : n && (r = Ls(n)), r;
1459
1459
  }
1460
1460
  function Bs(e) {
1461
- const t = typeof e == "string" ? Ms(e) : qn(e);
1461
+ const t = typeof e == "string" ? Ps(e) : qn(e);
1462
1462
  if (!(!t || !Us(t)))
1463
1463
  return t;
1464
1464
  }
@@ -1490,7 +1490,7 @@ function Vs(e) {
1490
1490
  }));
1491
1491
  }
1492
1492
  function qe(e) {
1493
- return typeof e == "number" ? Xe(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Xe(e.getTime()) : M();
1493
+ return typeof e == "number" ? Xe(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? Xe(e.getTime()) : P();
1494
1494
  }
1495
1495
  function Xe(e) {
1496
1496
  return e > 9999999999 ? e / 1e3 : e;
@@ -1511,8 +1511,8 @@ function Se(e) {
1511
1511
  // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1512
1512
  timestamp: qe(i) || void 0,
1513
1513
  status: Xs(a),
1514
- op: r[bs],
1515
- origin: r[Rs],
1514
+ op: r[Rs],
1515
+ origin: r[bs],
1516
1516
  links: Vs(c)
1517
1517
  };
1518
1518
  }
@@ -1536,7 +1536,7 @@ function qs(e) {
1536
1536
  }
1537
1537
  function Xs(e) {
1538
1538
  if (!(!e || e.code === vs))
1539
- return e.code === ws ? "ok" : e.message || "internal_error";
1539
+ return e.code === ks ? "ok" : e.message || "internal_error";
1540
1540
  }
1541
1541
  const Ks = "_sentryRootSpan";
1542
1542
  function Kn(e) {
@@ -1565,14 +1565,14 @@ function Je(e, t) {
1565
1565
  for (const n of t) {
1566
1566
  if (Zs(n)) {
1567
1567
  if (Tt(e.description, n))
1568
- return _ && Ye(e), !0;
1568
+ return m && Ye(e), !0;
1569
1569
  continue;
1570
1570
  }
1571
1571
  if (!n.name && !n.op)
1572
1572
  continue;
1573
1573
  const r = n.name ? Tt(e.description, n.name) : !0, s = n.op ? e.op && Tt(e.op, n.op) : !0;
1574
1574
  if (r && s)
1575
- return _ && Ye(e), !0;
1575
+ return m && Ye(e), !0;
1576
1576
  }
1577
1577
  return !1;
1578
1578
  }
@@ -1611,7 +1611,7 @@ function eo(e) {
1611
1611
  const c = n[Qs];
1612
1612
  if (c)
1613
1613
  return a(c);
1614
- const u = o?.get("sentry.dsc"), d = u && Ds(u);
1614
+ const u = o?.get("sentry.dsc"), d = u && As(u);
1615
1615
  if (d)
1616
1616
  return a(d);
1617
1617
  const l = Yn(e.spanContext().traceId, t), p = s[Es], f = r.description;
@@ -1680,7 +1680,7 @@ function no(e, t) {
1680
1680
  return "[Window]";
1681
1681
  if (typeof document < "u" && t === document)
1682
1682
  return "[Document]";
1683
- if (Pn(t))
1683
+ if (Mn(t))
1684
1684
  return xn(t);
1685
1685
  if (Jr(t))
1686
1686
  return "[SyntheticEvent]";
@@ -1738,7 +1738,7 @@ function co(e, t) {
1738
1738
  return Qt(e, (n, r) => t.includes(r));
1739
1739
  }
1740
1740
  function te(e) {
1741
- const t = Ot(E);
1741
+ const t = Ct(E);
1742
1742
  return t.encodePolyfill ? t.encodePolyfill(e) : new TextEncoder().encode(e);
1743
1743
  }
1744
1744
  function uo(e) {
@@ -1826,7 +1826,7 @@ function ho(e, t, n, r) {
1826
1826
  }
1827
1827
  };
1828
1828
  }
1829
- function _o(e, t) {
1829
+ function mo(e, t) {
1830
1830
  if (!t)
1831
1831
  return e;
1832
1832
  const n = e.sdk || {};
@@ -1842,7 +1842,7 @@ function _o(e, t) {
1842
1842
  } : void 0
1843
1843
  }, e;
1844
1844
  }
1845
- function mo(e, t, n, r) {
1845
+ function _o(e, t, n, r) {
1846
1846
  const s = Zn(n), o = {
1847
1847
  sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1848
1848
  ...s && { sdk: s },
@@ -1852,17 +1852,17 @@ function mo(e, t, n, r) {
1852
1852
  }
1853
1853
  function go(e, t, n, r) {
1854
1854
  const s = Zn(n), o = e.type && e.type !== "replay_event" ? e.type : "event";
1855
- _o(e, n?.sdk);
1855
+ mo(e, n?.sdk);
1856
1856
  const i = ho(e, s, r, t);
1857
1857
  return delete e.sdkProcessingMetadata, ot(i, [[{ type: o }, e]]);
1858
1858
  }
1859
1859
  const jt = 0, Qe = 1, tn = 2;
1860
- function _t(e) {
1860
+ function mt(e) {
1861
1861
  return new ut((t) => {
1862
1862
  t(e);
1863
1863
  });
1864
1864
  }
1865
- function be(e) {
1865
+ function Re(e) {
1866
1866
  return new ut((t, n) => {
1867
1867
  n(e);
1868
1868
  });
@@ -1957,9 +1957,9 @@ class ut {
1957
1957
  function yo(e, t, n, r = 0) {
1958
1958
  try {
1959
1959
  const s = ee(t, n, e, r);
1960
- return lt(s) ? s : _t(s);
1960
+ return lt(s) ? s : mt(s);
1961
1961
  } catch (s) {
1962
- return be(s);
1962
+ return Re(s);
1963
1963
  }
1964
1964
  }
1965
1965
  function ee(e, t, n, r) {
@@ -1967,7 +1967,7 @@ function ee(e, t, n, r) {
1967
1967
  if (!e || !s)
1968
1968
  return e;
1969
1969
  const o = s({ ...e }, t);
1970
- return _ && o === null && h.log(`Event processor "${s.id || "?"}" dropped event`), lt(o) ? o.then((i) => ee(i, t, n, r + 1)) : ee(o, t, n, r + 1);
1970
+ return m && o === null && h.log(`Event processor "${s.id || "?"}" dropped event`), lt(o) ? o.then((i) => ee(i, t, n, r + 1)) : ee(o, t, n, r + 1);
1971
1971
  }
1972
1972
  let G, en, nn, U;
1973
1973
  function Eo(e) {
@@ -1999,7 +1999,7 @@ function Eo(e) {
1999
1999
  }
2000
2000
  function So(e, t) {
2001
2001
  const { fingerprint: n, span: r, breadcrumbs: s, sdkProcessingMetadata: o } = t;
2002
- To(e, t), r && Io(e, r), vo(e, n), bo(e, s), Ro(e, o);
2002
+ To(e, t), r && Io(e, r), vo(e, n), Ro(e, s), bo(e, o);
2003
2003
  }
2004
2004
  function rn(e, t) {
2005
2005
  const {
@@ -2016,26 +2016,26 @@ function rn(e, t) {
2016
2016
  attachments: p,
2017
2017
  propagationContext: f,
2018
2018
  transactionName: S,
2019
- span: R
2019
+ span: b
2020
2020
  } = t;
2021
- it(e, "extra", n), it(e, "tags", r), it(e, "attributes", s), it(e, "user", o), it(e, "contexts", i), e.sdkProcessingMetadata = pt(e.sdkProcessingMetadata, c, 2), a && (e.level = a), S && (e.transactionName = S), R && (e.span = R), u.length && (e.breadcrumbs = [...e.breadcrumbs, ...u]), d.length && (e.fingerprint = [...e.fingerprint, ...d]), l.length && (e.eventProcessors = [...e.eventProcessors, ...l]), p.length && (e.attachments = [...e.attachments, ...p]), e.propagationContext = { ...e.propagationContext, ...f };
2021
+ it(e, "extra", n), it(e, "tags", r), it(e, "attributes", s), it(e, "user", o), it(e, "contexts", i), e.sdkProcessingMetadata = pt(e.sdkProcessingMetadata, c, 2), a && (e.level = a), S && (e.transactionName = S), b && (e.span = b), u.length && (e.breadcrumbs = [...e.breadcrumbs, ...u]), d.length && (e.fingerprint = [...e.fingerprint, ...d]), l.length && (e.eventProcessors = [...e.eventProcessors, ...l]), p.length && (e.attachments = [...e.attachments, ...p]), e.propagationContext = { ...e.propagationContext, ...f };
2022
2022
  }
2023
2023
  function it(e, t, n) {
2024
2024
  e[t] = pt(e[t], n, 1);
2025
2025
  }
2026
2026
  function Qn(e, t) {
2027
- const n = ms().getScopeData();
2027
+ const n = _s().getScopeData();
2028
2028
  return e && rn(n, e.getScopeData()), t && rn(n, t.getScopeData()), n;
2029
2029
  }
2030
2030
  function To(e, t) {
2031
2031
  const { extra: n, tags: r, user: s, contexts: o, level: i, transactionName: a } = t;
2032
2032
  Object.keys(n).length && (e.extra = { ...n, ...e.extra }), Object.keys(r).length && (e.tags = { ...r, ...e.tags }), Object.keys(s).length && (e.user = { ...s, ...e.user }), Object.keys(o).length && (e.contexts = { ...o, ...e.contexts }), i && (e.level = i), a && e.type !== "transaction" && (e.transaction = a);
2033
2033
  }
2034
- function bo(e, t) {
2034
+ function Ro(e, t) {
2035
2035
  const n = [...e.breadcrumbs || [], ...t];
2036
2036
  e.breadcrumbs = n.length ? n : void 0;
2037
2037
  }
2038
- function Ro(e, t) {
2038
+ function bo(e, t) {
2039
2039
  e.sdkProcessingMetadata = {
2040
2040
  ...e.sdkProcessingMetadata,
2041
2041
  ...t
@@ -2055,14 +2055,14 @@ function Io(e, t) {
2055
2055
  function vo(e, t) {
2056
2056
  e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint] : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint.length || delete e.fingerprint;
2057
2057
  }
2058
- function wo(e, t, n, r, s, o) {
2058
+ function ko(e, t, n, r, s, o) {
2059
2059
  const { normalizeDepth: i = 3, normalizeMaxBreadth: a = 1e3 } = e, c = {
2060
2060
  ...t,
2061
- event_id: t.event_id || n.event_id || C(),
2061
+ event_id: t.event_id || n.event_id || O(),
2062
2062
  timestamp: t.timestamp || ft()
2063
2063
  }, u = n.integrations || e.integrations.map((N) => N.name);
2064
- ko(c, e), Oo(c, u), s && s.emit("applyFrameMetadata", t), t.type === void 0 && No(c, e.stackParser);
2065
- const d = Do(r, n.captureContext);
2064
+ wo(c, e), Co(c, u), s && s.emit("applyFrameMetadata", t), t.type === void 0 && No(c, e.stackParser);
2065
+ const d = Ao(r, n.captureContext);
2066
2066
  n.mechanism && Z(c, n.mechanism);
2067
2067
  const l = s ? s.getEventProcessors() : [], p = Qn(o, d), f = [...n.attachments || [], ...p.attachments];
2068
2068
  f.length && (n.attachments = f), So(c, p);
@@ -2071,9 +2071,9 @@ function wo(e, t, n, r, s, o) {
2071
2071
  // Run scope event processors _after_ all other processors
2072
2072
  ...p.eventProcessors
2073
2073
  ];
2074
- return (n.data && n.data.__sentry__ === !0 ? _t(c) : yo(S, c, n)).then((N) => (N && Co(N), typeof i == "number" && i > 0 ? Ao(N, i, a) : N));
2074
+ return (n.data && n.data.__sentry__ === !0 ? mt(c) : yo(S, c, n)).then((N) => (N && Oo(N), typeof i == "number" && i > 0 ? Do(N, i, a) : N));
2075
2075
  }
2076
- function ko(e, t) {
2076
+ function wo(e, t) {
2077
2077
  const { environment: n, release: r, dist: s, maxValueLength: o } = t;
2078
2078
  e.environment = e.environment || n || Te, !e.release && r && (e.release = r), !e.dist && s && (e.dist = s);
2079
2079
  const i = e.request;
@@ -2089,7 +2089,7 @@ function No(e, t) {
2089
2089
  });
2090
2090
  });
2091
2091
  }
2092
- function Co(e) {
2092
+ function Oo(e) {
2093
2093
  const t = {};
2094
2094
  if (e.exception?.values?.forEach((r) => {
2095
2095
  r.stacktrace?.frames?.forEach((s) => {
@@ -2107,10 +2107,10 @@ function Co(e) {
2107
2107
  });
2108
2108
  });
2109
2109
  }
2110
- function Oo(e, t) {
2110
+ function Co(e, t) {
2111
2111
  t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]);
2112
2112
  }
2113
- function Ao(e, t, n) {
2113
+ function Do(e, t, n) {
2114
2114
  if (!e)
2115
2115
  return null;
2116
2116
  const r = {
@@ -2140,20 +2140,20 @@ function Ao(e, t, n) {
2140
2140
  }
2141
2141
  }))), e.contexts?.flags && r.contexts && (r.contexts.flags = F(e.contexts.flags, 3, n)), r;
2142
2142
  }
2143
- function Do(e, t) {
2143
+ function Ao(e, t) {
2144
2144
  if (!t)
2145
2145
  return e;
2146
- const n = e ? e.clone() : new D();
2146
+ const n = e ? e.clone() : new A();
2147
2147
  return n.update(t), n;
2148
2148
  }
2149
2149
  function xo(e) {
2150
2150
  if (e)
2151
- return Fo(e) ? { captureContext: e } : Po(e) ? {
2151
+ return Fo(e) ? { captureContext: e } : Mo(e) ? {
2152
2152
  captureContext: e
2153
2153
  } : e;
2154
2154
  }
2155
2155
  function Fo(e) {
2156
- return e instanceof D || typeof e == "function";
2156
+ return e instanceof A || typeof e == "function";
2157
2157
  }
2158
2158
  const $o = [
2159
2159
  "user",
@@ -2164,13 +2164,13 @@ const $o = [
2164
2164
  "fingerprint",
2165
2165
  "propagationContext"
2166
2166
  ];
2167
- function Po(e) {
2167
+ function Mo(e) {
2168
2168
  return Object.keys(e).some((t) => $o.includes(t));
2169
2169
  }
2170
2170
  function tr(e, t) {
2171
2171
  return x().captureException(e, xo(t));
2172
2172
  }
2173
- function Mo(e, t) {
2173
+ function Po(e, t) {
2174
2174
  const n = typeof t == "string" ? t : void 0, r = typeof t != "string" ? { captureContext: t } : void 0;
2175
2175
  return x().captureMessage(e, n, r);
2176
2176
  }
@@ -2255,7 +2255,7 @@ function an(e, t) {
2255
2255
  }
2256
2256
  function sr(e, t, n) {
2257
2257
  if (n[t.name]) {
2258
- _ && h.log(`Integration skipped because it was already installed: ${t.name}`);
2258
+ m && h.log(`Integration skipped because it was already installed: ${t.name}`);
2259
2259
  return;
2260
2260
  }
2261
2261
  if (n[t.name] = t, !on.includes(t.name) && typeof t.setupOnce == "function" && (t.setupOnce(), on.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
@@ -2268,7 +2268,7 @@ function sr(e, t, n) {
2268
2268
  });
2269
2269
  e.addEventProcessor(s);
2270
2270
  }
2271
- _ && h.log(`Integration installed: ${t.name}`);
2271
+ m && h.log(`Integration installed: ${t.name}`);
2272
2272
  }
2273
2273
  function qo(e) {
2274
2274
  return [
@@ -2337,7 +2337,7 @@ function ar() {
2337
2337
  function cr(e) {
2338
2338
  return typeof e == "object" && typeof e.unref == "function" && e.unref(), e;
2339
2339
  }
2340
- const Re = Symbol.for("SentryBufferFullError");
2340
+ const be = Symbol.for("SentryBufferFullError");
2341
2341
  function Ie(e = 100) {
2342
2342
  const t = /* @__PURE__ */ new Set();
2343
2343
  function n() {
@@ -2348,7 +2348,7 @@ function Ie(e = 100) {
2348
2348
  }
2349
2349
  function s(i) {
2350
2350
  if (!n())
2351
- return be(Re);
2351
+ return Re(be);
2352
2352
  const a = i();
2353
2353
  return t.add(a), a.then(
2354
2354
  () => r(a),
@@ -2357,7 +2357,7 @@ function Ie(e = 100) {
2357
2357
  }
2358
2358
  function o(i) {
2359
2359
  if (!t.size)
2360
- return _t(!0);
2360
+ return mt(!0);
2361
2361
  const a = Promise.allSettled(Array.from(t)).then(() => !0);
2362
2362
  if (!i)
2363
2363
  return a;
@@ -2420,25 +2420,25 @@ function si(e, t, n = Ie(
2420
2420
  return Promise.resolve({});
2421
2421
  const c = ot(i[0], a), u = (l) => {
2422
2422
  if (co(c, ["client_report"])) {
2423
- _ && h.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);
2423
+ m && h.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);
2424
2424
  return;
2425
2425
  }
2426
2426
  Qt(c, (p, f) => {
2427
2427
  e.recordDroppedEvent(l, Ze(f));
2428
2428
  });
2429
2429
  }, d = () => t({ body: uo(c) }).then(
2430
- (l) => l.statusCode === 413 ? (_ && h.error(
2430
+ (l) => l.statusCode === 413 ? (m && h.error(
2431
2431
  "Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."
2432
- ), u("send_error"), l) : (_ && l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && h.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r = ri(r, l), l),
2432
+ ), u("send_error"), l) : (m && l.statusCode !== void 0 && (l.statusCode < 200 || l.statusCode >= 300) && h.warn(`Sentry responded with status code ${l.statusCode} to sent event.`), r = ri(r, l), l),
2433
2433
  (l) => {
2434
- throw u("network_error"), _ && h.error("Encountered error running transport request:", l), l;
2434
+ throw u("network_error"), m && h.error("Encountered error running transport request:", l), l;
2435
2435
  }
2436
2436
  );
2437
2437
  return n.add(d).then(
2438
2438
  (l) => l,
2439
2439
  (l) => {
2440
- if (l === Re)
2441
- return _ && h.error("Skipped sending event because buffer is full."), u("queue_overflow"), Promise.resolve({});
2440
+ if (l === be)
2441
+ return m && h.error("Skipped sending event because buffer is full."), u("queue_overflow"), Promise.resolve({});
2442
2442
  throw l;
2443
2443
  }
2444
2444
  );
@@ -2512,7 +2512,7 @@ function ai(e) {
2512
2512
  };
2513
2513
  }
2514
2514
  const cn = "Not capturing exception because it's already been captured.", un = "Discarded session because of missing or non-string release", lr = Symbol.for("SentryInternalError"), fr = Symbol.for("SentryDoNotSendEventError"), ci = 5e3;
2515
- function bt(e) {
2515
+ function Rt(e) {
2516
2516
  return {
2517
2517
  message: e,
2518
2518
  [lr]: !0
@@ -2557,7 +2557,7 @@ class ui {
2557
2557
  * @param options Options for the client.
2558
2558
  */
2559
2559
  constructor(t) {
2560
- if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Ie(t.transportOptions?.bufferSize ?? ur), t.dsn ? this._dsn = Bs(t.dsn) : _ && h.warn("No DSN provided, client will not send events."), this._dsn) {
2560
+ if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], this._promiseBuffer = Ie(t.transportOptions?.bufferSize ?? ur), t.dsn ? this._dsn = Bs(t.dsn) : m && h.warn("No DSN provided, client will not send events."), this._dsn) {
2561
2561
  const r = Wo(
2562
2562
  this._dsn,
2563
2563
  t.tunnel,
@@ -2584,9 +2584,9 @@ class ui {
2584
2584
  * Unlike `captureException` exported from every SDK, this method requires that you pass it the current scope.
2585
2585
  */
2586
2586
  captureException(t, n, r) {
2587
- const s = C();
2587
+ const s = O();
2588
2588
  if (Le(t))
2589
- return _ && h.log(cn), s;
2589
+ return m && h.log(cn), s;
2590
2590
  const o = {
2591
2591
  event_id: s,
2592
2592
  ...n
@@ -2603,9 +2603,9 @@ class ui {
2603
2603
  */
2604
2604
  captureMessage(t, n, r, s) {
2605
2605
  const o = {
2606
- event_id: C(),
2606
+ event_id: O(),
2607
2607
  ...r
2608
- }, i = _e(t) ? t : String(t), a = Dt(t), c = a ? this.eventFromMessage(i, n, o) : this.eventFromException(t, o);
2608
+ }, i = me(t) ? t : String(t), a = At(t), c = a ? this.eventFromMessage(i, n, o) : this.eventFromException(t, o);
2609
2609
  return this._process(
2610
2610
  () => c.then((u) => this._captureEvent(u, o, s)),
2611
2611
  a ? "unknown" : "error"
@@ -2617,9 +2617,9 @@ class ui {
2617
2617
  * Unlike `captureEvent` exported from every SDK, this method requires that you pass it the current scope.
2618
2618
  */
2619
2619
  captureEvent(t, n, r) {
2620
- const s = C();
2620
+ const s = O();
2621
2621
  if (n?.originalException && Le(n.originalException))
2622
- return _ && h.log(cn), s;
2622
+ return m && h.log(cn), s;
2623
2623
  const o = {
2624
2624
  event_id: s,
2625
2625
  ...n
@@ -2762,19 +2762,19 @@ class ui {
2762
2762
  if ("aggregates" in t) {
2763
2763
  const o = t.attrs || {};
2764
2764
  if (!o.release && !n) {
2765
- _ && h.warn(un);
2765
+ m && h.warn(un);
2766
2766
  return;
2767
2767
  }
2768
2768
  o.release = o.release || n, o.environment = o.environment || r, t.attrs = o;
2769
2769
  } else {
2770
2770
  if (!t.release && !n) {
2771
- _ && h.warn(un);
2771
+ m && h.warn(un);
2772
2772
  return;
2773
2773
  }
2774
2774
  t.release = t.release || n, t.environment = t.environment || r;
2775
2775
  }
2776
2776
  this.emit("beforeSendSession", t);
2777
- const s = mo(t, this._dsn, this._options._metadata, this._options.tunnel);
2777
+ const s = _o(t, this._dsn, this._options._metadata, this._options.tunnel);
2778
2778
  this.sendEnvelope(s);
2779
2779
  }
2780
2780
  /**
@@ -2783,7 +2783,7 @@ class ui {
2783
2783
  recordDroppedEvent(t, n, r = 1) {
2784
2784
  if (this._options.sendClientReports) {
2785
2785
  const s = `${t}:${n}`;
2786
- _ && h.log(`Recording outcome: "${s}"${r > 1 ? ` (${r} times)` : ""}`), this._outcomes[s] = (this._outcomes[s] || 0) + r;
2786
+ m && h.log(`Recording outcome: "${s}"${r > 1 ? ` (${r} times)` : ""}`), this._outcomes[s] = (this._outcomes[s] || 0) + r;
2787
2787
  }
2788
2788
  }
2789
2789
  /* eslint-disable @typescript-eslint/unified-signatures */
@@ -2818,9 +2818,9 @@ class ui {
2818
2818
  try {
2819
2819
  return await this._transport.send(t);
2820
2820
  } catch (n) {
2821
- return _ && h.error("Error while sending envelope:", n), {};
2821
+ return m && h.error("Error while sending envelope:", n), {};
2822
2822
  }
2823
- return _ && h.error("Transport disabled"), {};
2823
+ return m && h.error("Transport disabled"), {};
2824
2824
  }
2825
2825
  /**
2826
2826
  * Disposes of the client and releases all resources.
@@ -2893,7 +2893,7 @@ class ui {
2893
2893
  */
2894
2894
  _prepareEvent(t, n, r, s) {
2895
2895
  const o = this.getOptions(), i = Object.keys(this._integrations);
2896
- return !n.integrations && i?.length && (n.integrations = i), this.emit("preprocessEvent", t, n), t.type || s.setLastEventId(t.event_id || n.event_id), wo(o, t, n, r, this, s).then((a) => {
2896
+ return !n.integrations && i?.length && (n.integrations = i), this.emit("preprocessEvent", t, n), t.type || s.setLastEventId(t.event_id || n.event_id), ko(o, t, n, r, this, s).then((a) => {
2897
2897
  if (a === null)
2898
2898
  return a;
2899
2899
  this.emit("postprocessEvent", a, n), a.contexts = {
@@ -2914,10 +2914,10 @@ class ui {
2914
2914
  * @param scope
2915
2915
  */
2916
2916
  _captureEvent(t, n = {}, r = x(), s = V()) {
2917
- return _ && re(t) && h.log(`Captured error event \`${dr(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, s).then(
2917
+ return m && re(t) && h.log(`Captured error event \`${dr(t)[0] || "<unknown>"}\``), this._processEvent(t, n, r, s).then(
2918
2918
  (o) => o.event_id,
2919
2919
  (o) => {
2920
- _ && (ln(o) ? h.log(o.message) : dn(o) ? h.warn(o.message) : h.warn(o));
2920
+ m && (ln(o) ? h.log(o.message) : dn(o) ? h.warn(o.message) : h.warn(o));
2921
2921
  }
2922
2922
  );
2923
2923
  }
@@ -2936,8 +2936,8 @@ class ui {
2936
2936
  */
2937
2937
  _processEvent(t, n, r, s) {
2938
2938
  const o = this.getOptions(), { sampleRate: i } = o, a = pr(t), c = re(t), d = `before send for type \`${t.type || "error"}\``, l = typeof i > "u" ? void 0 : js(i);
2939
- if (c && typeof l == "number" && kt() > l)
2940
- return this.recordDroppedEvent("sample_rate", "error"), be(
2939
+ if (c && typeof l == "number" && wt() > l)
2940
+ return this.recordDroppedEvent("sample_rate", "error"), Re(
2941
2941
  Vt(
2942
2942
  `Discarding event because it's not included in the random sample (sampling rate = ${i})`
2943
2943
  )
@@ -2948,8 +2948,8 @@ class ui {
2948
2948
  throw this.recordDroppedEvent("event_processor", p), Vt("An event processor returned `null`, will not send event.");
2949
2949
  if (n.data && n.data.__sentry__ === !0)
2950
2950
  return f;
2951
- const R = li(this, o, f, n);
2952
- return di(R, d);
2951
+ const b = li(this, o, f, n);
2952
+ return di(b, d);
2953
2953
  }).then((f) => {
2954
2954
  if (f === null) {
2955
2955
  if (this.recordDroppedEvent("before_send", p), a) {
@@ -2960,15 +2960,15 @@ class ui {
2960
2960
  }
2961
2961
  const S = r.getSession() || s.getSession();
2962
2962
  if (c && S && this._updateSessionFromEvent(S, f), a) {
2963
- const O = f.sdkProcessingMetadata?.spanCountBeforeProcessing || 0, N = f.spans ? f.spans.length : 0, Ne = O - N;
2963
+ const C = f.sdkProcessingMetadata?.spanCountBeforeProcessing || 0, N = f.spans ? f.spans.length : 0, Ne = C - N;
2964
2964
  Ne > 0 && this.recordDroppedEvent("before_send", "span", Ne);
2965
2965
  }
2966
- const R = f.transaction_info;
2967
- if (a && R && f.transaction !== t.transaction) {
2968
- const O = "custom";
2966
+ const b = f.transaction_info;
2967
+ if (a && b && f.transaction !== t.transaction) {
2968
+ const C = "custom";
2969
2969
  f.transaction_info = {
2970
- ...R,
2971
- source: O
2970
+ ...b,
2971
+ source: C
2972
2972
  };
2973
2973
  }
2974
2974
  return this.sendEvent(f, n), f;
@@ -2982,7 +2982,7 @@ class ui {
2982
2982
  __sentry__: !0
2983
2983
  },
2984
2984
  originalException: f
2985
- }), bt(
2985
+ }), Rt(
2986
2986
  `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2987
2987
  Reason: ${f}`
2988
2988
  ));
@@ -2994,7 +2994,7 @@ Reason: ${f}`
2994
2994
  _process(t, n) {
2995
2995
  this._numProcessing++, this._promiseBuffer.add(t).then(
2996
2996
  (r) => (this._numProcessing--, r),
2997
- (r) => (this._numProcessing--, r === Re && this.recordDroppedEvent("queue_overflow", n), r)
2997
+ (r) => (this._numProcessing--, r === be && this.recordDroppedEvent("queue_overflow", n), r)
2998
2998
  );
2999
2999
  }
3000
3000
  /**
@@ -3015,17 +3015,17 @@ Reason: ${f}`
3015
3015
  * Sends client reports as an envelope.
3016
3016
  */
3017
3017
  _flushOutcomes() {
3018
- _ && h.log("Flushing outcomes...");
3018
+ m && h.log("Flushing outcomes...");
3019
3019
  const t = this._clearOutcomes();
3020
3020
  if (t.length === 0) {
3021
- _ && h.log("No outcomes to send");
3021
+ m && h.log("No outcomes to send");
3022
3022
  return;
3023
3023
  }
3024
3024
  if (!this._dsn) {
3025
- _ && h.log("No dsn provided, will not send outcomes");
3025
+ m && h.log("No dsn provided, will not send outcomes");
3026
3026
  return;
3027
3027
  }
3028
- _ && h.log("Sending outcomes:", t);
3028
+ m && h.log("Sending outcomes:", t);
3029
3029
  const n = oi(t, this._options.tunnel && ht(this._dsn));
3030
3030
  this.sendEnvelope(n);
3031
3031
  }
@@ -3042,15 +3042,15 @@ function di(e, t) {
3042
3042
  return e.then(
3043
3043
  (r) => {
3044
3044
  if (!ct(r) && r !== null)
3045
- throw bt(n);
3045
+ throw Rt(n);
3046
3046
  return r;
3047
3047
  },
3048
3048
  (r) => {
3049
- throw bt(`${t} rejected with ${r}`);
3049
+ throw Rt(`${t} rejected with ${r}`);
3050
3050
  }
3051
3051
  );
3052
3052
  if (!ct(e) && e !== null)
3053
- throw bt(n);
3053
+ throw Rt(n);
3054
3054
  return e;
3055
3055
  }
3056
3056
  function li(e, t, n, r) {
@@ -3116,26 +3116,26 @@ function hr(e) {
3116
3116
  return 0;
3117
3117
  let t = 0;
3118
3118
  return Object.values(e).forEach((n) => {
3119
- Array.isArray(n) ? t += n.length * hn(n[0]) : Dt(n) ? t += hn(n) : t += 100;
3119
+ Array.isArray(n) ? t += n.length * hn(n[0]) : At(n) ? t += hn(n) : t += 100;
3120
3120
  }), t;
3121
3121
  }
3122
3122
  function hn(e) {
3123
3123
  return typeof e == "string" ? e.length * 2 : typeof e == "number" ? 8 : typeof e == "boolean" ? 4 : 0;
3124
3124
  }
3125
3125
  function hi(e) {
3126
- return At(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
3126
+ return Dt(e) && "__sentry_fetch_url_host__" in e && typeof e.__sentry_fetch_url_host__ == "string";
3127
3127
  }
3128
- function _n(e) {
3128
+ function mn(e) {
3129
3129
  return hi(e) ? `${e.message} (${e.__sentry_fetch_url_host__})` : e.message;
3130
3130
  }
3131
- function _i(e, t) {
3132
- t.debug === !0 && (_ ? h.enable() : rt(() => {
3131
+ function mi(e, t) {
3132
+ t.debug === !0 && (m ? h.enable() : rt(() => {
3133
3133
  console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
3134
3134
  })), x().update(t.initialScope);
3135
3135
  const r = new e(t);
3136
- return mi(r), r.init(), r;
3136
+ return _i(r), r.init(), r;
3137
3137
  }
3138
- function mi(e) {
3138
+ function _i(e) {
3139
3139
  x().setClient(e);
3140
3140
  }
3141
3141
  function Gt(e) {
@@ -3189,15 +3189,15 @@ function W(e, t) {
3189
3189
  const a = { timestamp: ft(), ...e }, c = s ? rt(() => s(a, t)) : a;
3190
3190
  c !== null && (n.emit && n.emit("beforeAddBreadcrumb", c, t), r.addBreadcrumb(c, o));
3191
3191
  }
3192
- let mn;
3193
- const Ti = "FunctionToString", gn = /* @__PURE__ */ new WeakMap(), bi = (() => ({
3192
+ let _n;
3193
+ const Ti = "FunctionToString", gn = /* @__PURE__ */ new WeakMap(), Ri = (() => ({
3194
3194
  name: Ti,
3195
3195
  setupOnce() {
3196
- mn = Function.prototype.toString;
3196
+ _n = Function.prototype.toString;
3197
3197
  try {
3198
3198
  Function.prototype.toString = function(...e) {
3199
3199
  const t = ye(this), n = gn.has(I()) && t !== void 0 ? t : this;
3200
- return mn.apply(n, e);
3200
+ return _n.apply(n, e);
3201
3201
  };
3202
3202
  } catch {
3203
3203
  }
@@ -3205,7 +3205,7 @@ const Ti = "FunctionToString", gn = /* @__PURE__ */ new WeakMap(), bi = (() => (
3205
3205
  setup(e) {
3206
3206
  gn.set(e, !0);
3207
3207
  }
3208
- })), Ri = bi, Ii = [
3208
+ })), bi = Ri, Ii = [
3209
3209
  /^Script error\.?$/,
3210
3210
  /^Javascript error: Script error\.? on line 0$/,
3211
3211
  /^ResizeObserver loop completed with undelivered notifications.$/,
@@ -3226,7 +3226,7 @@ const Ti = "FunctionToString", gn = /* @__PURE__ */ new WeakMap(), bi = (() => (
3226
3226
  // unactionable error from CEFSharp, a .NET library that embeds chromium in .NET apps
3227
3227
  /^Java exception was raised during method invocation$/
3228
3228
  // error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065)
3229
- ], vi = "EventFilters", wi = (e = {}) => {
3229
+ ], vi = "EventFilters", ki = (e = {}) => {
3230
3230
  let t;
3231
3231
  return {
3232
3232
  name: vi,
@@ -3242,8 +3242,8 @@ const Ti = "FunctionToString", gn = /* @__PURE__ */ new WeakMap(), bi = (() => (
3242
3242
  return Ni(n, t) ? null : n;
3243
3243
  }
3244
3244
  };
3245
- }, ki = ((e = {}) => ({
3246
- ...wi(e),
3245
+ }, wi = ((e = {}) => ({
3246
+ ...ki(e),
3247
3247
  name: "InboundFilters"
3248
3248
  }));
3249
3249
  function yn(e = {}, t = {}) {
@@ -3260,34 +3260,34 @@ function yn(e = {}, t = {}) {
3260
3260
  }
3261
3261
  function Ni(e, t) {
3262
3262
  if (e.type) {
3263
- if (e.type === "transaction" && Oi(e, t.ignoreTransactions))
3264
- return _ && h.warn(
3263
+ if (e.type === "transaction" && Ci(e, t.ignoreTransactions))
3264
+ return m && h.warn(
3265
3265
  `Event dropped due to being matched by \`ignoreTransactions\` option.
3266
3266
  Event: ${z(e)}`
3267
3267
  ), !0;
3268
3268
  } else {
3269
- if (Ci(e, t.ignoreErrors))
3270
- return _ && h.warn(
3269
+ if (Oi(e, t.ignoreErrors))
3270
+ return m && h.warn(
3271
3271
  `Event dropped due to being matched by \`ignoreErrors\` option.
3272
3272
  Event: ${z(e)}`
3273
3273
  ), !0;
3274
3274
  if (Fi(e))
3275
- return _ && h.warn(
3275
+ return m && h.warn(
3276
3276
  `Event dropped due to not having an error message, error type or stacktrace.
3277
3277
  Event: ${z(
3278
3278
  e
3279
3279
  )}`
3280
3280
  ), !0;
3281
- if (Ai(e, t.denyUrls))
3282
- return _ && h.warn(
3281
+ if (Di(e, t.denyUrls))
3282
+ return m && h.warn(
3283
3283
  `Event dropped due to being matched by \`denyUrls\` option.
3284
3284
  Event: ${z(
3285
3285
  e
3286
3286
  )}.
3287
3287
  Url: ${Nt(e)}`
3288
3288
  ), !0;
3289
- if (!Di(e, t.allowUrls))
3290
- return _ && h.warn(
3289
+ if (!Ai(e, t.allowUrls))
3290
+ return m && h.warn(
3291
3291
  `Event dropped due to not being matched by \`allowUrls\` option.
3292
3292
  Event: ${z(
3293
3293
  e
@@ -3297,26 +3297,26 @@ Url: ${Nt(e)}`
3297
3297
  }
3298
3298
  return !1;
3299
3299
  }
3300
- function Ci(e, t) {
3301
- return t?.length ? dr(e).some((n) => Pt(n, t)) : !1;
3302
- }
3303
3300
  function Oi(e, t) {
3301
+ return t?.length ? dr(e).some((n) => Mt(n, t)) : !1;
3302
+ }
3303
+ function Ci(e, t) {
3304
3304
  if (!t?.length)
3305
3305
  return !1;
3306
3306
  const n = e.transaction;
3307
- return n ? Pt(n, t) : !1;
3307
+ return n ? Mt(n, t) : !1;
3308
3308
  }
3309
- function Ai(e, t) {
3309
+ function Di(e, t) {
3310
3310
  if (!t?.length)
3311
3311
  return !1;
3312
3312
  const n = Nt(e);
3313
- return n ? Pt(n, t) : !1;
3313
+ return n ? Mt(n, t) : !1;
3314
3314
  }
3315
- function Di(e, t) {
3315
+ function Ai(e, t) {
3316
3316
  if (!t?.length)
3317
3317
  return !0;
3318
3318
  const n = Nt(e);
3319
- return n ? Pt(n, t) : !0;
3319
+ return n ? Mt(n, t) : !0;
3320
3320
  }
3321
3321
  function xi(e = []) {
3322
3322
  for (let t = e.length - 1; t >= 0; t--) {
@@ -3331,7 +3331,7 @@ function Nt(e) {
3331
3331
  const n = [...e.exception?.values ?? []].reverse().find((r) => r.mechanism?.parent_id === void 0 && r.stacktrace?.frames?.length)?.stacktrace?.frames;
3332
3332
  return n ? xi(n) : null;
3333
3333
  } catch {
3334
- return _ && h.error(`Cannot extract url for event ${z(e)}`), null;
3334
+ return m && h.error(`Cannot extract url for event ${z(e)}`), null;
3335
3335
  }
3336
3336
  }
3337
3337
  function Fi(e) {
@@ -3374,7 +3374,7 @@ function se(e, t, n, r, s, o, i, a) {
3374
3374
  d
3375
3375
  );
3376
3376
  }
3377
- return _r(r) && r.errors.forEach((u, d) => {
3377
+ return mr(r) && r.errors.forEach((u, d) => {
3378
3378
  if (B(u, Error)) {
3379
3379
  En(i, a, r);
3380
3380
  const l = e(t, u), p = c.length;
@@ -3391,14 +3391,14 @@ function se(e, t, n, r, s, o, i, a) {
3391
3391
  }
3392
3392
  }), c;
3393
3393
  }
3394
- function _r(e) {
3394
+ function mr(e) {
3395
3395
  return Array.isArray(e.errors);
3396
3396
  }
3397
3397
  function En(e, t, n) {
3398
3398
  e.mechanism = {
3399
3399
  handled: !0,
3400
3400
  type: "auto.core.linked_errors",
3401
- ..._r(n) && { is_exception_group: !0 },
3401
+ ...mr(n) && { is_exception_group: !0 },
3402
3402
  ...e.mechanism,
3403
3403
  exception_id: t
3404
3404
  };
@@ -3413,15 +3413,15 @@ function Sn(e, t, n, r) {
3413
3413
  parent_id: r
3414
3414
  };
3415
3415
  }
3416
- function Pi(e) {
3416
+ function Mi(e) {
3417
3417
  const t = "console";
3418
- K(t, e), Y(t, Mi);
3418
+ K(t, e), Y(t, Pi);
3419
3419
  }
3420
- function Mi() {
3420
+ function Pi() {
3421
3421
  "console" in E && $r.forEach(function(e) {
3422
- e in E.console && k(E.console, e, function(t) {
3423
- return wt[e] = t, function(...n) {
3424
- A("console", { args: n, level: e }), wt[e]?.apply(E.console, n);
3422
+ e in E.console && w(E.console, e, function(t) {
3423
+ return kt[e] = t, function(...n) {
3424
+ D("console", { args: n, level: e }), kt[e]?.apply(E.console, n);
3425
3425
  };
3426
3426
  });
3427
3427
  });
@@ -3438,7 +3438,7 @@ const Li = "Dedupe", Hi = (() => {
3438
3438
  return t;
3439
3439
  try {
3440
3440
  if (ji(t, e))
3441
- return _ && h.warn("Event dropped due to being a duplicate of previously captured event."), null;
3441
+ return m && h.warn("Event dropped due to being a duplicate of previously captured event."), null;
3442
3442
  } catch {
3443
3443
  }
3444
3444
  return e = t;
@@ -3450,13 +3450,13 @@ function ji(e, t) {
3450
3450
  }
3451
3451
  function Wi(e, t) {
3452
3452
  const n = e.message, r = t.message;
3453
- return !(!n && !r || n && !r || !n && r || n !== r || !gr(e, t) || !mr(e, t));
3453
+ return !(!n && !r || n && !r || !n && r || n !== r || !gr(e, t) || !_r(e, t));
3454
3454
  }
3455
3455
  function Vi(e, t) {
3456
3456
  const n = Tn(t), r = Tn(e);
3457
- return !(!n || !r || n.type !== r.type || n.value !== r.value || !gr(e, t) || !mr(e, t));
3457
+ return !(!n || !r || n.type !== r.type || n.value !== r.value || !gr(e, t) || !_r(e, t));
3458
3458
  }
3459
- function mr(e, t) {
3459
+ function _r(e, t) {
3460
3460
  let n = xe(e), r = xe(t);
3461
3461
  if (!n && !r)
3462
3462
  return !0;
@@ -3528,7 +3528,7 @@ function Yi() {
3528
3528
  const n = t.createElement("iframe");
3529
3529
  n.hidden = !0, t.head.appendChild(n), n.contentWindow?.fetch && (e = oe(n.contentWindow.fetch)), t.head.removeChild(n);
3530
3530
  } catch (n) {
3531
- _ && h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
3531
+ m && h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", n);
3532
3532
  }
3533
3533
  return e;
3534
3534
  }
@@ -3537,7 +3537,7 @@ function Ji(e, t) {
3537
3537
  K(n, e), Y(n, () => Zi(void 0, t));
3538
3538
  }
3539
3539
  function Zi(e, t = !1) {
3540
- t && !Yi() || k(E, "fetch", function(n) {
3540
+ t && !Yi() || w(E, "fetch", function(n) {
3541
3541
  return function(...r) {
3542
3542
  const s = new Error(), { method: o, url: i } = Qi(r), a = {
3543
3543
  args: r,
@@ -3545,25 +3545,25 @@ function Zi(e, t = !1) {
3545
3545
  method: o,
3546
3546
  url: i
3547
3547
  },
3548
- startTimestamp: M() * 1e3,
3548
+ startTimestamp: P() * 1e3,
3549
3549
  // // Adding the error to be able to fingerprint the failed fetch event in HttpClient instrumentation
3550
3550
  virtualError: s,
3551
3551
  headers: ta(r)
3552
3552
  };
3553
- return A("fetch", {
3553
+ return D("fetch", {
3554
3554
  ...a
3555
3555
  }), n.apply(E, r).then(
3556
- async (c) => (A("fetch", {
3556
+ async (c) => (D("fetch", {
3557
3557
  ...a,
3558
- endTimestamp: M() * 1e3,
3558
+ endTimestamp: P() * 1e3,
3559
3559
  response: c
3560
3560
  }), c),
3561
3561
  (c) => {
3562
- A("fetch", {
3562
+ D("fetch", {
3563
3563
  ...a,
3564
- endTimestamp: M() * 1e3,
3564
+ endTimestamp: P() * 1e3,
3565
3565
  error: c
3566
- }), At(c) && c.stack === void 0 && (c.stack = s.stack, j(c, "framesToPop", 1));
3566
+ }), Dt(c) && c.stack === void 0 && (c.stack = s.stack, j(c, "framesToPop", 1));
3567
3567
  const d = I()?.getOptions().enhanceFetchErrorMessages ?? "always";
3568
3568
  if (d !== !1 && c instanceof TypeError && (c.message === "Failed to fetch" || c.message === "Load failed" || c.message === "NetworkError when attempting to fetch resource."))
3569
3569
  try {
@@ -3577,11 +3577,11 @@ function Zi(e, t = !1) {
3577
3577
  };
3578
3578
  });
3579
3579
  }
3580
- function Rt(e, t) {
3580
+ function bt(e, t) {
3581
3581
  return !!e && typeof e == "object" && !!e[t];
3582
3582
  }
3583
- function bn(e) {
3584
- return typeof e == "string" ? e : e ? Rt(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
3583
+ function Rn(e) {
3584
+ return typeof e == "string" ? e : e ? bt(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
3585
3585
  }
3586
3586
  function Qi(e) {
3587
3587
  if (e.length === 0)
@@ -3589,17 +3589,17 @@ function Qi(e) {
3589
3589
  if (e.length === 2) {
3590
3590
  const [n, r] = e;
3591
3591
  return {
3592
- url: bn(n),
3593
- method: Rt(r, "method") ? String(r.method).toUpperCase() : (
3592
+ url: Rn(n),
3593
+ method: bt(r, "method") ? String(r.method).toUpperCase() : (
3594
3594
  // Request object as first argument
3595
- Mn(n) && Rt(n, "method") ? String(n.method).toUpperCase() : "GET"
3595
+ Pn(n) && bt(n, "method") ? String(n.method).toUpperCase() : "GET"
3596
3596
  )
3597
3597
  };
3598
3598
  }
3599
3599
  const t = e[0];
3600
3600
  return {
3601
- url: bn(t),
3602
- method: Rt(t, "method") ? String(t.method).toUpperCase() : "GET"
3601
+ url: Rn(t),
3602
+ method: bt(t, "method") ? String(t.method).toUpperCase() : "GET"
3603
3603
  };
3604
3604
  }
3605
3605
  function ta(e) {
@@ -3607,7 +3607,7 @@ function ta(e) {
3607
3607
  try {
3608
3608
  if (typeof n == "object" && n !== null && "headers" in n && n.headers)
3609
3609
  return new Headers(n.headers);
3610
- if (Mn(t))
3610
+ if (Pn(t))
3611
3611
  return new Headers(t.headers);
3612
3612
  } catch {
3613
3613
  }
@@ -3615,7 +3615,7 @@ function ta(e) {
3615
3615
  function ea() {
3616
3616
  return "npm";
3617
3617
  }
3618
- const b = E;
3618
+ const R = E;
3619
3619
  let ie = 0;
3620
3620
  function Er() {
3621
3621
  return ie > 0;
@@ -3670,7 +3670,7 @@ function et(e, t = {}) {
3670
3670
  return r;
3671
3671
  }
3672
3672
  function ra() {
3673
- const e = ge(), { referrer: t } = b.document || {}, { userAgent: n } = b.navigator || {}, r = {
3673
+ const e = ge(), { referrer: t } = R.document || {}, { userAgent: n } = R.navigator || {}, r = {
3674
3674
  ...t && { Referer: t },
3675
3675
  ...n && { "User-Agent": n }
3676
3676
  };
@@ -3680,7 +3680,7 @@ function ra() {
3680
3680
  };
3681
3681
  }
3682
3682
  function ve(e, t) {
3683
- const n = we(e, t), r = {
3683
+ const n = ke(e, t), r = {
3684
3684
  type: ca(t),
3685
3685
  value: ua(t)
3686
3686
  };
@@ -3709,7 +3709,7 @@ function sa(e, t, n, r) {
3709
3709
  extra: a
3710
3710
  };
3711
3711
  if (n) {
3712
- const u = we(e, n);
3712
+ const u = ke(e, n);
3713
3713
  u.length && (c.exception.values[0].stacktrace = { frames: u });
3714
3714
  }
3715
3715
  return c;
@@ -3721,7 +3721,7 @@ function zt(e, t) {
3721
3721
  }
3722
3722
  };
3723
3723
  }
3724
- function we(e, t) {
3724
+ function ke(e, t) {
3725
3725
  const n = t.stacktrace || t.stack || "", r = ia(t), s = aa(t);
3726
3726
  try {
3727
3727
  return e(n, r, s);
@@ -3745,17 +3745,17 @@ function ca(e) {
3745
3745
  }
3746
3746
  function ua(e) {
3747
3747
  const t = e?.message;
3748
- return Sr(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? _n(t.error) : _n(e) : "No error message";
3748
+ return Sr(e) ? Array.isArray(e.message) && e.message.length == 2 ? e.message[1] : "wasm exception" : t ? t.error && typeof t.error.message == "string" ? mn(t.error) : mn(e) : "No error message";
3749
3749
  }
3750
3750
  function da(e, t, n, r) {
3751
- const s = n?.syntheticException || void 0, o = ke(e, t, s, r);
3752
- return Z(o), o.level = "error", n?.event_id && (o.event_id = n.event_id), _t(o);
3751
+ const s = n?.syntheticException || void 0, o = we(e, t, s, r);
3752
+ return Z(o), o.level = "error", n?.event_id && (o.event_id = n.event_id), mt(o);
3753
3753
  }
3754
3754
  function la(e, t, n = "info", r, s) {
3755
3755
  const o = r?.syntheticException || void 0, i = ae(e, t, o, s);
3756
- return i.level = n, r?.event_id && (i.event_id = r.event_id), _t(i);
3756
+ return i.level = n, r?.event_id && (i.event_id = r.event_id), mt(i);
3757
3757
  }
3758
- function ke(e, t, n, r, s) {
3758
+ function we(e, t, n, r, s) {
3759
3759
  let o;
3760
3760
  if ($n(t) && t.error)
3761
3761
  return zt(e, t.error);
@@ -3769,7 +3769,7 @@ function ke(e, t, n, r, s) {
3769
3769
  }
3770
3770
  return "code" in i && (o.tags = { ...o.tags, "DOMException.code": `${i.code}` }), o;
3771
3771
  }
3772
- return At(t) ? zt(e, t) : ct(t) || xt(t) ? (o = sa(e, t, n, s), Z(o, {
3772
+ return Dt(t) ? zt(e, t) : ct(t) || xt(t) ? (o = sa(e, t, n, s), Z(o, {
3773
3773
  synthetic: !0
3774
3774
  }), o) : (o = ae(e, t, n, r), Yt(o, `${t}`), Z(o, {
3775
3775
  synthetic: !0
@@ -3778,12 +3778,12 @@ function ke(e, t, n, r, s) {
3778
3778
  function ae(e, t, n, r) {
3779
3779
  const s = {};
3780
3780
  if (r && n) {
3781
- const o = we(e, n);
3781
+ const o = ke(e, n);
3782
3782
  o.length && (s.exception = {
3783
3783
  values: [{ value: t, stacktrace: { frames: o } }]
3784
3784
  }), Z(s, { synthetic: !0 });
3785
3785
  }
3786
- if (_e(t)) {
3786
+ if (me(t)) {
3787
3787
  const { __sentry_template_string__: o, __sentry_template_values__: i } = t;
3788
3788
  return s.logentry = {
3789
3789
  message: o,
@@ -3811,14 +3811,14 @@ function ha(e) {
3811
3811
  return n;
3812
3812
  }
3813
3813
  }
3814
- class _a extends ui {
3814
+ class ma extends ui {
3815
3815
  /**
3816
3816
  * Creates a new Browser SDK instance.
3817
3817
  *
3818
3818
  * @param options Configuration options for this SDK.
3819
3819
  */
3820
3820
  constructor(t) {
3821
- const n = ma(t), r = b.SENTRY_SDK_SOURCE || ea();
3821
+ const n = _a(t), r = R.SENTRY_SDK_SOURCE || ea();
3822
3822
  Ei(n, "browser", ["browser"], r), n._metadata?.sdk && (n._metadata.sdk.settings = {
3823
3823
  infer_ip: n.sendDefaultPii ? "auto" : "never",
3824
3824
  // purposefully allowing already passed settings to override the default
@@ -3831,8 +3831,8 @@ class _a extends ui {
3831
3831
  _experiments: a,
3832
3832
  enableMetrics: c
3833
3833
  } = this._options, u = c ?? a?.enableMetrics ?? !0;
3834
- b.document && (o || i || u) && b.document.addEventListener("visibilitychange", () => {
3835
- b.document.visibilityState === "hidden" && (o && this._flushOutcomes(), i && ne(this), u && ir(this));
3834
+ R.document && (o || i || u) && R.document.addEventListener("visibilitychange", () => {
3835
+ R.document.visibilityState === "hidden" && (o && this._flushOutcomes(), i && ne(this), u && ir(this));
3836
3836
  }), s && this.on("beforeSendSession", yi);
3837
3837
  }
3838
3838
  /**
@@ -3854,9 +3854,9 @@ class _a extends ui {
3854
3854
  return t.platform = t.platform || "javascript", super._prepareEvent(t, n, r, s);
3855
3855
  }
3856
3856
  }
3857
- function ma(e) {
3857
+ function _a(e) {
3858
3858
  return {
3859
- release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : b.SENTRY_RELEASE?.id,
3859
+ release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : R.SENTRY_RELEASE?.id,
3860
3860
  // This supports the variable that sentry-webpack-plugin injects
3861
3861
  sendClientReports: !0,
3862
3862
  // We default this to true, as it is the safer scenario
@@ -3865,17 +3865,17 @@ function ma(e) {
3865
3865
  };
3866
3866
  }
3867
3867
  const ga = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, v = E, ya = 1e3;
3868
- let Rn, ce, ue;
3868
+ let bn, ce, ue;
3869
3869
  function Ea(e) {
3870
3870
  K("dom", e), Y("dom", Sa);
3871
3871
  }
3872
3872
  function Sa() {
3873
3873
  if (!v.document)
3874
3874
  return;
3875
- const e = A.bind(null, "dom"), t = In(e, !0);
3875
+ const e = D.bind(null, "dom"), t = In(e, !0);
3876
3876
  v.document.addEventListener("click", t, !1), v.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((n) => {
3877
3877
  const s = v[n]?.prototype;
3878
- s?.hasOwnProperty?.("addEventListener") && (k(s, "addEventListener", function(o) {
3878
+ s?.hasOwnProperty?.("addEventListener") && (w(s, "addEventListener", function(o) {
3879
3879
  return function(i, a, c) {
3880
3880
  if (i === "click" || i == "keypress")
3881
3881
  try {
@@ -3889,7 +3889,7 @@ function Sa() {
3889
3889
  }
3890
3890
  return o.call(this, i, a, c);
3891
3891
  };
3892
- }), k(
3892
+ }), w(
3893
3893
  s,
3894
3894
  "removeEventListener",
3895
3895
  function(o) {
@@ -3916,24 +3916,24 @@ function Ta(e) {
3916
3916
  }
3917
3917
  return !0;
3918
3918
  }
3919
- function ba(e, t) {
3919
+ function Ra(e, t) {
3920
3920
  return e !== "keypress" ? !1 : t?.tagName ? !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) : !0;
3921
3921
  }
3922
3922
  function In(e, t = !1) {
3923
3923
  return (n) => {
3924
3924
  if (!n || n._sentryCaptured)
3925
3925
  return;
3926
- const r = Ra(n);
3927
- if (ba(n.type, r))
3926
+ const r = ba(n);
3927
+ if (Ra(n.type, r))
3928
3928
  return;
3929
- j(n, "_sentryCaptured", !0), r && !r._sentryId && j(r, "_sentryId", C());
3929
+ j(n, "_sentryCaptured", !0), r && !r._sentryId && j(r, "_sentryId", O());
3930
3930
  const s = n.type === "keypress" ? "input" : n.type;
3931
- Ta(n) || (e({ event: n, name: s, global: t }), ce = n.type, ue = r ? r._sentryId : void 0), clearTimeout(Rn), Rn = v.setTimeout(() => {
3931
+ Ta(n) || (e({ event: n, name: s, global: t }), ce = n.type, ue = r ? r._sentryId : void 0), clearTimeout(bn), bn = v.setTimeout(() => {
3932
3932
  ue = void 0, ce = void 0;
3933
3933
  }, ya);
3934
3934
  };
3935
3935
  }
3936
- function Ra(e) {
3936
+ function ba(e) {
3937
3937
  try {
3938
3938
  return e.target;
3939
3939
  } catch {
@@ -3950,7 +3950,7 @@ function Ia() {
3950
3950
  const t = v.location.href, n = gt;
3951
3951
  if (gt = t, n === t)
3952
3952
  return;
3953
- A("history", { from: n, to: t });
3953
+ D("history", { from: n, to: t });
3954
3954
  }), !Xi())
3955
3955
  return;
3956
3956
  function e(t) {
@@ -3960,12 +3960,12 @@ function Ia() {
3960
3960
  const s = gt, o = va(String(r));
3961
3961
  if (gt = o, s === o)
3962
3962
  return t.apply(this, n);
3963
- A("history", { from: s, to: o });
3963
+ D("history", { from: s, to: o });
3964
3964
  }
3965
3965
  return t.apply(this, n);
3966
3966
  };
3967
3967
  }
3968
- k(v.history, "pushState", e), k(v.history, "replaceState", e);
3968
+ w(v.history, "pushState", e), w(v.history, "replaceState", e);
3969
3969
  }
3970
3970
  function va(e) {
3971
3971
  try {
@@ -3975,7 +3975,7 @@ function va(e) {
3975
3975
  }
3976
3976
  }
3977
3977
  const It = {};
3978
- function wa(e) {
3978
+ function ka(e) {
3979
3979
  const t = It[e];
3980
3980
  if (t)
3981
3981
  return t;
@@ -3994,20 +3994,20 @@ function wa(e) {
3994
3994
  }
3995
3995
  return n && (It[e] = n.bind(v));
3996
3996
  }
3997
- function ka(e) {
3997
+ function wa(e) {
3998
3998
  It[e] = void 0;
3999
3999
  }
4000
4000
  const at = "__sentry_xhr_v3__";
4001
4001
  function Na(e) {
4002
- K("xhr", e), Y("xhr", Ca);
4002
+ K("xhr", e), Y("xhr", Oa);
4003
4003
  }
4004
- function Ca() {
4004
+ function Oa() {
4005
4005
  if (!v.XMLHttpRequest)
4006
4006
  return;
4007
4007
  const e = XMLHttpRequest.prototype;
4008
4008
  e.open = new Proxy(e.open, {
4009
4009
  apply(t, n, r) {
4010
- const s = new Error(), o = M() * 1e3, i = P(r[0]) ? r[0].toUpperCase() : void 0, a = Oa(r[1]);
4010
+ const s = new Error(), o = P() * 1e3, i = M(r[0]) ? r[0].toUpperCase() : void 0, a = Ca(r[1]);
4011
4011
  if (!i || !a)
4012
4012
  return t.apply(n, r);
4013
4013
  n[at] = {
@@ -4023,12 +4023,12 @@ function Ca() {
4023
4023
  } catch {
4024
4024
  }
4025
4025
  const d = {
4026
- endTimestamp: M() * 1e3,
4026
+ endTimestamp: P() * 1e3,
4027
4027
  startTimestamp: o,
4028
4028
  xhr: n,
4029
4029
  virtualError: s
4030
4030
  };
4031
- A("xhr", d);
4031
+ D("xhr", d);
4032
4032
  }
4033
4033
  };
4034
4034
  return "onreadystatechange" in n && typeof n.onreadystatechange == "function" ? n.onreadystatechange = new Proxy(n.onreadystatechange, {
@@ -4038,7 +4038,7 @@ function Ca() {
4038
4038
  }) : n.addEventListener("readystatechange", c), n.setRequestHeader = new Proxy(n.setRequestHeader, {
4039
4039
  apply(u, d, l) {
4040
4040
  const [p, f] = l, S = d[at];
4041
- return S && P(p) && P(f) && (S.request_headers[p.toLowerCase()] = f), u.apply(d, l);
4041
+ return S && M(p) && M(f) && (S.request_headers[p.toLowerCase()] = f), u.apply(d, l);
4042
4042
  }
4043
4043
  }), t.apply(n, r);
4044
4044
  }
@@ -4049,23 +4049,23 @@ function Ca() {
4049
4049
  return t.apply(n, r);
4050
4050
  r[0] !== void 0 && (s.body = r[0]);
4051
4051
  const o = {
4052
- startTimestamp: M() * 1e3,
4052
+ startTimestamp: P() * 1e3,
4053
4053
  xhr: n
4054
4054
  };
4055
- return A("xhr", o), t.apply(n, r);
4055
+ return D("xhr", o), t.apply(n, r);
4056
4056
  }
4057
4057
  });
4058
4058
  }
4059
- function Oa(e) {
4060
- if (P(e))
4059
+ function Ca(e) {
4060
+ if (M(e))
4061
4061
  return e;
4062
4062
  try {
4063
4063
  return e.toString();
4064
4064
  } catch {
4065
4065
  }
4066
4066
  }
4067
- const Aa = 40;
4068
- function Da(e, t = wa("fetch")) {
4067
+ const Da = 40;
4068
+ function Aa(e, t = ka("fetch")) {
4069
4069
  let n = 0, r = 0;
4070
4070
  async function s(o) {
4071
4071
  const i = o.body.length;
@@ -4099,7 +4099,7 @@ function Da(e, t = wa("fetch")) {
4099
4099
  }
4100
4100
  };
4101
4101
  } catch (c) {
4102
- throw ka("fetch"), c;
4102
+ throw wa("fetch"), c;
4103
4103
  } finally {
4104
4104
  n -= i, r--;
4105
4105
  }
@@ -4107,10 +4107,10 @@ function Da(e, t = wa("fetch")) {
4107
4107
  return si(
4108
4108
  e,
4109
4109
  s,
4110
- Ie(e.bufferSize || Aa)
4110
+ Ie(e.bufferSize || Da)
4111
4111
  );
4112
4112
  }
4113
- const Mt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, xa = 30, Fa = 50;
4113
+ const Pt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, xa = 30, Fa = 50;
4114
4114
  function de(e, t, n, r) {
4115
4115
  const s = {
4116
4116
  filename: e,
@@ -4120,7 +4120,7 @@ function de(e, t, n, r) {
4120
4120
  };
4121
4121
  return n !== void 0 && (s.lineno = n), r !== void 0 && (s.colno = r), s;
4122
4122
  }
4123
- const $a = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Pa = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Ma = /\((\S*)(?::(\d+))(?::(\d+))\)/, Ua = /at (.+?) ?\(data:(.+?),/, La = (e) => {
4123
+ const $a = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Ma = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, Pa = /\((\S*)(?::(\d+))(?::(\d+))\)/, Ua = /at (.+?) ?\(data:(.+?),/, La = (e) => {
4124
4124
  const t = e.match(Ua);
4125
4125
  if (t)
4126
4126
  return {
@@ -4132,13 +4132,13 @@ const $a = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Pa = /^\s*at (?:(.+?\)(?: \
4132
4132
  const [, s, o, i] = n;
4133
4133
  return de(s, X, +o, +i);
4134
4134
  }
4135
- const r = Pa.exec(e);
4135
+ const r = Ma.exec(e);
4136
4136
  if (r) {
4137
4137
  if (r[2] && r[2].indexOf("eval") === 0) {
4138
- const a = Ma.exec(r[2]);
4138
+ const a = Pa.exec(r[2]);
4139
4139
  a && (r[2] = a[1], r[3] = a[2], r[4] = a[3]);
4140
4140
  }
4141
- const [o, i] = br(r[1] || X, r[2]);
4141
+ const [o, i] = Rr(r[1] || X, r[2]);
4142
4142
  return de(i, o, r[3] ? +r[3] : void 0, r[4] ? +r[4] : void 0);
4143
4143
  }
4144
4144
  }, Ha = [xa, La], Ba = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, ja = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, Wa = (e) => {
@@ -4149,9 +4149,9 @@ const $a = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Pa = /^\s*at (?:(.+?\)(?: \
4149
4149
  o && (t[1] = t[1] || "eval", t[3] = o[1], t[4] = o[2], t[5] = "");
4150
4150
  }
4151
4151
  let r = t[3], s = t[1] || X;
4152
- return [s, r] = br(s, r), de(r, s, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
4152
+ return [s, r] = Rr(s, r), de(r, s, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
4153
4153
  }
4154
- }, Va = [Fa, Wa], Ga = [Ha, Va], za = Dn(...Ga), br = (e, t) => {
4154
+ }, Va = [Fa, Wa], Ga = [Ha, Va], za = An(...Ga), Rr = (e, t) => {
4155
4155
  const n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
4156
4156
  return n || r ? [
4157
4157
  e.indexOf("@") !== -1 ? e.split("@")[0] : X,
@@ -4170,7 +4170,7 @@ const $a = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Pa = /^\s*at (?:(.+?\)(?: \
4170
4170
  return {
4171
4171
  name: qa,
4172
4172
  setup(n) {
4173
- t.console && Pi(Za(n)), t.dom && Ea(Ja(n, t.dom)), t.xhr && Na(Qa(n)), t.fetch && Ji(tc(n)), t.history && Tr(ec(n)), t.sentry && n.on("beforeSendEvent", Ya(n));
4173
+ t.console && Mi(Za(n)), t.dom && Ea(Ja(n, t.dom)), t.xhr && Na(Qa(n)), t.fetch && Ji(tc(n)), t.history && Tr(ec(n)), t.sentry && n.on("beforeSendEvent", Ya(n));
4174
4174
  }
4175
4175
  };
4176
4176
  }), Ka = Xa;
@@ -4194,7 +4194,7 @@ function Ja(e, t) {
4194
4194
  if (I() !== e)
4195
4195
  return;
4196
4196
  let s, o, i = typeof t == "object" ? t.serializeAttribute : void 0, a = typeof t == "object" && typeof t.maxStringLength == "number" ? t.maxStringLength : void 0;
4197
- a && a > yt && (Mt && h.warn(
4197
+ a && a > yt && (Pt && h.warn(
4198
4198
  `\`dom.maxStringLength\` cannot exceed ${yt}, but a value of ${a} was configured. Sentry will use ${yt} instead.`
4199
4199
  ), a = yt), typeof i == "string" && (i = [i]);
4200
4200
  try {
@@ -4310,7 +4310,7 @@ function ec(e) {
4310
4310
  if (I() !== e)
4311
4311
  return;
4312
4312
  let r = n.from, s = n.to;
4313
- const o = Gt(b.location.href);
4313
+ const o = Gt(R.location.href);
4314
4314
  let i = r ? Gt(r) : void 0;
4315
4315
  const a = Gt(s);
4316
4316
  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), W({
@@ -4372,7 +4372,7 @@ const rc = [
4372
4372
  // TODO: This currently only works for the first client this is setup
4373
4373
  // We may want to adjust this to check for client etc.
4374
4374
  setupOnce() {
4375
- t.setTimeout && k(b, "setTimeout", vn), t.setInterval && k(b, "setInterval", vn), t.requestAnimationFrame && k(b, "requestAnimationFrame", ac), t.XMLHttpRequest && "XMLHttpRequest" in b && k(XMLHttpRequest.prototype, "send", cc);
4375
+ t.setTimeout && w(R, "setTimeout", vn), t.setInterval && w(R, "setInterval", vn), t.requestAnimationFrame && w(R, "requestAnimationFrame", ac), t.XMLHttpRequest && "XMLHttpRequest" in R && w(XMLHttpRequest.prototype, "send", cc);
4376
4376
  const n = t.eventTarget;
4377
4377
  n && (Array.isArray(n) ? n : rc).forEach((s) => uc(s, t));
4378
4378
  }
@@ -4408,7 +4408,7 @@ function cc(e) {
4408
4408
  return function(...t) {
4409
4409
  const n = this;
4410
4410
  return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((s) => {
4411
- s in n && typeof n[s] == "function" && k(n, s, function(o) {
4411
+ s in n && typeof n[s] == "function" && w(n, s, function(o) {
4412
4412
  const i = {
4413
4413
  mechanism: {
4414
4414
  data: {
@@ -4424,8 +4424,8 @@ function cc(e) {
4424
4424
  };
4425
4425
  }
4426
4426
  function uc(e, t) {
4427
- const r = b[e]?.prototype;
4428
- r?.hasOwnProperty?.("addEventListener") && (k(r, "addEventListener", function(s) {
4427
+ const r = R[e]?.prototype;
4428
+ r?.hasOwnProperty?.("addEventListener") && (w(r, "addEventListener", function(s) {
4429
4429
  return function(o, i, a) {
4430
4430
  try {
4431
4431
  dc(i) && (i.handleEvent = et(i.handleEvent, {
@@ -4455,7 +4455,7 @@ function uc(e, t) {
4455
4455
  a
4456
4456
  ]);
4457
4457
  };
4458
- }), k(r, "removeEventListener", function(s) {
4458
+ }), w(r, "removeEventListener", function(s) {
4459
4459
  return function(o, i, a) {
4460
4460
  try {
4461
4461
  const c = i.__sentry_wrapped__;
@@ -4477,8 +4477,8 @@ const fc = (e = {}) => {
4477
4477
  return {
4478
4478
  name: "BrowserSession",
4479
4479
  setupOnce() {
4480
- if (typeof b.document > "u") {
4481
- Mt && h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
4480
+ if (typeof R.document > "u") {
4481
+ Pt && h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
4482
4482
  return;
4483
4483
  }
4484
4484
  sn({ ignoreDuration: !0 }), Wt();
@@ -4495,16 +4495,16 @@ const fc = (e = {}) => {
4495
4495
  }, pc = "CultureContext", hc = (() => ({
4496
4496
  name: pc,
4497
4497
  preprocessEvent(e) {
4498
- const t = mc();
4498
+ const t = _c();
4499
4499
  t && (e.contexts = {
4500
4500
  ...e.contexts,
4501
4501
  culture: { ...t, ...e.contexts?.culture }
4502
4502
  });
4503
4503
  }
4504
- })), _c = hc;
4505
- function mc() {
4504
+ })), mc = hc;
4505
+ function _c() {
4506
4506
  try {
4507
- const e = b.Intl;
4507
+ const e = R.Intl;
4508
4508
  if (!e)
4509
4509
  return;
4510
4510
  const t = e.DateTimeFormat().resolvedOptions();
@@ -4529,17 +4529,17 @@ const gc = "GlobalHandlers", yc = ((e = {}) => {
4529
4529
  Error.stackTraceLimit = 50;
4530
4530
  },
4531
4531
  setup(n) {
4532
- t.onerror && (Sc(n), wn("onerror")), t.onunhandledrejection && (Tc(n), wn("onunhandledrejection"));
4532
+ t.onerror && (Sc(n), kn("onerror")), t.onunhandledrejection && (Tc(n), kn("onunhandledrejection"));
4533
4533
  }
4534
4534
  };
4535
4535
  }), Ec = yc;
4536
4536
  function Sc(e) {
4537
4537
  Vr((t) => {
4538
- const { stackParser: n, attachStacktrace: r } = Rr();
4538
+ const { stackParser: n, attachStacktrace: r } = br();
4539
4539
  if (I() !== e || Er())
4540
4540
  return;
4541
4541
  const { msg: s, url: o, line: i, column: a, error: c } = t, u = Ic(
4542
- ke(n, c || s, void 0, r, !1),
4542
+ we(n, c || s, void 0, r, !1),
4543
4543
  o,
4544
4544
  i,
4545
4545
  a
@@ -4555,10 +4555,10 @@ function Sc(e) {
4555
4555
  }
4556
4556
  function Tc(e) {
4557
4557
  zr((t) => {
4558
- const { stackParser: n, attachStacktrace: r } = Rr();
4558
+ const { stackParser: n, attachStacktrace: r } = br();
4559
4559
  if (I() !== e || Er())
4560
4560
  return;
4561
- const s = bc(t), o = Dt(s) ? Rc(s) : ke(n, s, void 0, r, !0);
4561
+ const s = Rc(t), o = At(s) ? bc(s) : we(n, s, void 0, r, !0);
4562
4562
  o.level = "error", er(o, {
4563
4563
  originalException: s,
4564
4564
  mechanism: {
@@ -4568,8 +4568,8 @@ function Tc(e) {
4568
4568
  });
4569
4569
  });
4570
4570
  }
4571
- function bc(e) {
4572
- if (Dt(e))
4571
+ function Rc(e) {
4572
+ if (At(e))
4573
4573
  return e;
4574
4574
  try {
4575
4575
  if ("reason" in e)
@@ -4580,7 +4580,7 @@ function bc(e) {
4580
4580
  }
4581
4581
  return e;
4582
4582
  }
4583
- function Rc(e) {
4583
+ function bc(e) {
4584
4584
  return {
4585
4585
  exception: {
4586
4586
  values: [
@@ -4603,23 +4603,23 @@ function Ic(e, t, n, r) {
4603
4603
  lineno: d
4604
4604
  }), e;
4605
4605
  }
4606
- function wn(e) {
4607
- Mt && h.log(`Global Handler attached: ${e}`);
4606
+ function kn(e) {
4607
+ Pt && h.log(`Global Handler attached: ${e}`);
4608
4608
  }
4609
- function Rr() {
4609
+ function br() {
4610
4610
  return I()?.getOptions() || {
4611
4611
  stackParser: () => [],
4612
4612
  attachStacktrace: !1
4613
4613
  };
4614
4614
  }
4615
4615
  function vc(e) {
4616
- if (!(!P(e) || e.length === 0))
4616
+ if (!(!M(e) || e.length === 0))
4617
4617
  return e.startsWith("data:") ? `<${gi(e, !1)}>` : e;
4618
4618
  }
4619
- const wc = () => ({
4619
+ const kc = () => ({
4620
4620
  name: "HttpContext",
4621
4621
  preprocessEvent(e) {
4622
- if (!b.navigator && !b.location && !b.document)
4622
+ if (!R.navigator && !R.location && !R.document)
4623
4623
  return;
4624
4624
  const t = ra(), n = {
4625
4625
  ...t.headers,
@@ -4631,10 +4631,10 @@ const wc = () => ({
4631
4631
  headers: n
4632
4632
  };
4633
4633
  }
4634
- }), kc = "cause", Nc = 5, Cc = "LinkedErrors", Oc = ((e = {}) => {
4635
- const t = e.limit || Nc, n = e.key || kc;
4634
+ }), wc = "cause", Nc = 5, Oc = "LinkedErrors", Cc = ((e = {}) => {
4635
+ const t = e.limit || Nc, n = e.key || wc;
4636
4636
  return {
4637
- name: Cc,
4637
+ name: Oc,
4638
4638
  preprocessEvent(r, s, o) {
4639
4639
  const i = o.getOptions();
4640
4640
  $i(
@@ -4648,42 +4648,42 @@ const wc = () => ({
4648
4648
  );
4649
4649
  }
4650
4650
  };
4651
- }), Ac = Oc;
4652
- function Dc() {
4653
- return xc() ? (Mt && rt(() => {
4651
+ }), Dc = Cc;
4652
+ function Ac() {
4653
+ return xc() ? (Pt && rt(() => {
4654
4654
  console.error(
4655
4655
  "[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/"
4656
4656
  );
4657
4657
  }), !0) : !1;
4658
4658
  }
4659
4659
  function xc() {
4660
- if (typeof b.window > "u")
4660
+ if (typeof R.window > "u")
4661
4661
  return !1;
4662
- const e = b;
4662
+ const e = R;
4663
4663
  if (e.nw || !(e.chrome || e.browser)?.runtime?.id)
4664
4664
  return !1;
4665
4665
  const n = ge(), r = ["chrome-extension", "moz-extension", "ms-browser-extension", "safari-web-extension"];
4666
- return !(b === b.top && r.some((o) => n.startsWith(`${o}://`)));
4666
+ return !(R === R.top && r.some((o) => n.startsWith(`${o}://`)));
4667
4667
  }
4668
4668
  function Fc(e) {
4669
4669
  return [
4670
4670
  // TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
4671
4671
  // eslint-disable-next-line deprecation/deprecation
4672
- ki(),
4673
- Ri(),
4672
+ wi(),
4673
+ bi(),
4674
4674
  qi(),
4675
4675
  ic(),
4676
4676
  Ka(),
4677
4677
  Ec(),
4678
- Ac(),
4678
+ Dc(),
4679
4679
  Bi(),
4680
- wc(),
4681
- _c(),
4680
+ kc(),
4681
+ mc(),
4682
4682
  fc()
4683
4683
  ];
4684
4684
  }
4685
4685
  function $c(e = {}) {
4686
- const t = !e.skipBrowserExtensionCheck && Dc();
4686
+ const t = !e.skipBrowserExtensionCheck && Ac();
4687
4687
  let n = e.defaultIntegrations == null ? Fc() : e.defaultIntegrations;
4688
4688
  const r = {
4689
4689
  ...e,
@@ -4693,18 +4693,18 @@ function $c(e = {}) {
4693
4693
  integrations: e.integrations,
4694
4694
  defaultIntegrations: n
4695
4695
  }),
4696
- transport: e.transport || Da
4696
+ transport: e.transport || Aa
4697
4697
  };
4698
- return _i(_a, r);
4698
+ return mi(ma, r);
4699
4699
  }
4700
- const Pc = "https://06451c8d861702902d2e6b2088fa9b62@o1128948.ingest.us.sentry.io/4509207135387648";
4701
- class Mc {
4700
+ const Mc = "https://06451c8d861702902d2e6b2088fa9b62@o1128948.ingest.us.sentry.io/4509207135387648";
4701
+ class Pc {
4702
4702
  constructor(t) {
4703
4703
  this.enabled = t;
4704
4704
  }
4705
4705
  init(t) {
4706
4706
  this.enabled && $c({
4707
- dsn: Pc,
4707
+ dsn: Mc,
4708
4708
  environment: t,
4709
4709
  defaultIntegrations: !1,
4710
4710
  tracesSampleRate: 0
@@ -4720,7 +4720,7 @@ class Mc {
4720
4720
  this.enabled && W({ category: t, message: n, data: r, level: "info", timestamp: Date.now() / 1e3 });
4721
4721
  }
4722
4722
  captureEvent(t, n) {
4723
- this.enabled && Mo(t, {
4723
+ this.enabled && Po(t, {
4724
4724
  level: "info",
4725
4725
  tags: { txn_id: this.txnId, flavour: this.flavour },
4726
4726
  extra: n,
@@ -4743,8 +4743,8 @@ const g = {
4743
4743
  UNAUTHORIZED: 401,
4744
4744
  FORBIDDEN: 403
4745
4745
  };
4746
- var Uc = /* @__PURE__ */ ((e) => (e.NOT_INITIALIZED = "na", e.INIT = "init", e.STOP = "stop", e.COMMIT = "commit", e))(Uc || {}), Lc = /* @__PURE__ */ ((e) => (e.START = "start", e.PAUSE = "pause", e.RESUME = "resume", e.STOP = "stop", e))(Lc || {}), Hc = /* @__PURE__ */ ((e) => (e.EKA_EMR_TEMPLATE = "eka_emr_template", e.CLINICAL_NOTE_TEMPLATE = "clinical_notes_template", e.TRANSCRIPT_TEMPLATE = "transcript_template", e.EKA_EMR_TO_FHIR_TEMPLATE = "eka_emr_to_fhir_template", e.NIC_TEMPLATE = "nic_template", e))(Hc || {}), Bc = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.FAILURE = "failure", e.PARTIAL_COMPLETE = "partial_complete", e.IN_PROGRESS = "in-progress", e))(Bc || {}), y = /* @__PURE__ */ ((e) => (e.MICROPHONE = "microphone", e.TXN_INIT_FAILED = "txn_init_failed", e.TXN_LIMIT_EXCEEDED = "txn_limit_exceeded", e.INTERNAL_SERVER_ERROR = "internal_server_error", e.TXN_STOP_FAILED = "txn_stop_failed", e.AUDIO_UPLOAD_FAILED = "audio_upload_failed", e.TXN_COMMIT_FAILED = "txn_commit_failed", e.INVALID_REQUEST = "invalid_request", e.VAD_NOT_INITIALIZED = "vad_not_initialized", e.NO_AUDIO_CAPTURE = "no_audio_capture", e.SPEECH_DETECTED = "speech_detected", e.TXN_STATUS_MISMATCH = "txn_status_mismatch", e.LONG_SILENCE = "long_silence", e.GET_PRESIGNED_URL_FAILED = "get_presigned_url_failed", e.UPLOAD_FULL_AUDIO = "upload_full_audio", e.FETCH_WRAPPER_RESPONSE = "fetch_wrapper_response", e.FETCH_WRAPPER_ERROR = "fetch_wrapper_error", e.NETWORK_ERROR = "network_error", e.UNKNOWN_ERROR = "unknown_error", e.UNAUTHORIZED = "unauthorized", e.FORBIDDEN = "forbidden", e))(y || {}), jc = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.IN_PROGRESS = "in-progress", e.FAILED = "failed", e.CANCELLED = "cancelled", e))(jc || {}), le = /* @__PURE__ */ ((e) => (e.UPLOAD_FILE_WITH_WORKER = "upload_file_with_worker", e.UPLOAD_FILE_WITH_WORKER_SUCCESS = "upload_file_with_worker_success", e.UPLOAD_FILE_WITH_WORKER_ERROR = "upload_file_with_worker_error", e.TEST_WORKER = "test_worker", e.CONFIGURE_AWS = "configure_aws", e.CONFIGURE_AWS_SUCCESS = "configure_aws_success", e.CONFIGURE_AWS_ERROR = "configure_aws_error", e.WAIT_FOR_ALL_UPLOADS = "wait_for_all_uploads", e.WAIT_FOR_ALL_UPLOADS_SUCCESS = "wait_for_all_uploads_success", e.WAIT_FOR_ALL_UPLOADS_ERROR = "wait_for_all_uploads_error", e.REQUEST_TOKEN_REFRESH = "request_token_refresh", e.TOKEN_REFRESH_SUCCESS = "token_refresh_success", e.TOKEN_REFRESH_ERROR = "token_refresh_error", e.RESET_UPLOAD_COUNTERS = "reset_upload_counters", e.TERMINATE_WORKER = "terminate_worker", e))(le || {}), Ir = /* @__PURE__ */ ((e) => (e.AWS_CONFIGURE_STATUS = "aws_configure_status", e.FILE_UPLOAD_STATUS = "file_upload_status", e.TRANSACTION_STATUS = "transaction_status", e.TEMPLATE_OPERATION_STATUS = "template_operation_status", e.AUTHENTICATION_STATUS = "authentication_status", e.NETWORK_STATUS = "network_status", e.STORAGE_STATUS = "storage_status", e))(Ir || {}), vt = /* @__PURE__ */ ((e) => (e.JSON = "json", e.TRANSCRIPT = "transcript", e.MARKDOWN = "markdown", e))(vt || {}), L = /* @__PURE__ */ ((e) => (e.INTERNET_CONNECTIVITY = "INTERNET_CONNECTIVITY", e.SYSTEM_INFO = "SYSTEM_INFO", e.MICROPHONE = "MICROPHONE", e.SHARED_WORKER = "SHARED_WORKER", e.NETWORK_API = "NETWORK_API", e))(L || {}), T = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.ERROR = "error", e.WARNING = "warning", e))(T || {});
4747
- function m(e, t) {
4746
+ var Uc = /* @__PURE__ */ ((e) => (e.NOT_INITIALIZED = "na", e.INIT = "init", e.STOP = "stop", e.COMMIT = "commit", e))(Uc || {}), Lc = /* @__PURE__ */ ((e) => (e.START = "start", e.PAUSE = "pause", e.RESUME = "resume", e.STOP = "stop", e))(Lc || {}), Hc = /* @__PURE__ */ ((e) => (e.EKA_EMR_TEMPLATE = "eka_emr_template", e.CLINICAL_NOTE_TEMPLATE = "clinical_notes_template", e.TRANSCRIPT_TEMPLATE = "transcript_template", e.EKA_EMR_TO_FHIR_TEMPLATE = "eka_emr_to_fhir_template", e.NIC_TEMPLATE = "nic_template", e))(Hc || {}), Bc = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.FAILURE = "failure", e.PARTIAL_COMPLETE = "partial_complete", e.IN_PROGRESS = "in-progress", e))(Bc || {}), y = /* @__PURE__ */ ((e) => (e.MICROPHONE = "microphone", e.TXN_INIT_FAILED = "txn_init_failed", e.TXN_LIMIT_EXCEEDED = "txn_limit_exceeded", e.INTERNAL_SERVER_ERROR = "internal_server_error", e.END_RECORDING_FAILED = "end_recording_failed", e.AUDIO_UPLOAD_FAILED = "audio_upload_failed", e.TXN_COMMIT_FAILED = "txn_commit_failed", e.TXN_STATUS_MISMATCH = "txn_status_mismatch", e.NETWORK_ERROR = "network_error", e.UNKNOWN_ERROR = "unknown_error", e.UNAUTHORIZED = "unauthorized", e.FORBIDDEN = "forbidden", e))(y || {}), jc = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.IN_PROGRESS = "in-progress", e.FAILED = "failed", e.CANCELLED = "cancelled", e))(jc || {}), le = /* @__PURE__ */ ((e) => (e.UPLOAD_FILE_WITH_WORKER = "upload_file_with_worker", e.UPLOAD_FILE_WITH_WORKER_SUCCESS = "upload_file_with_worker_success", e.UPLOAD_FILE_WITH_WORKER_ERROR = "upload_file_with_worker_error", e.TEST_WORKER = "test_worker", e.CONFIGURE_AWS = "configure_aws", e.CONFIGURE_AWS_SUCCESS = "configure_aws_success", e.CONFIGURE_AWS_ERROR = "configure_aws_error", e.WAIT_FOR_ALL_UPLOADS = "wait_for_all_uploads", e.WAIT_FOR_ALL_UPLOADS_SUCCESS = "wait_for_all_uploads_success", e.WAIT_FOR_ALL_UPLOADS_ERROR = "wait_for_all_uploads_error", e.REQUEST_TOKEN_REFRESH = "request_token_refresh", e.TOKEN_REFRESH_SUCCESS = "token_refresh_success", e.TOKEN_REFRESH_ERROR = "token_refresh_error", e.RESET_UPLOAD_COUNTERS = "reset_upload_counters", e.TERMINATE_WORKER = "terminate_worker", e))(le || {}), Ir = /* @__PURE__ */ ((e) => (e.AWS_CONFIGURE_STATUS = "aws_configure_status", e.FILE_UPLOAD_STATUS = "file_upload_status", e.TRANSACTION_STATUS = "transaction_status", e.TEMPLATE_OPERATION_STATUS = "template_operation_status", e.AUTHENTICATION_STATUS = "authentication_status", e.NETWORK_STATUS = "network_status", e.STORAGE_STATUS = "storage_status", e))(Ir || {}), vt = /* @__PURE__ */ ((e) => (e.JSON = "json", e.TRANSCRIPT = "transcript", e.MARKDOWN = "markdown", e))(vt || {}), L = /* @__PURE__ */ ((e) => (e.INTERNET_CONNECTIVITY = "INTERNET_CONNECTIVITY", e.SYSTEM_INFO = "SYSTEM_INFO", e.MICROPHONE = "MICROPHONE", e.SHARED_WORKER = "SHARED_WORKER", e.NETWORK_API = "NETWORK_API", e))(L || {}), T = /* @__PURE__ */ ((e) => (e.SUCCESS = "success", e.ERROR = "error", e.WARNING = "warning", e))(T || {});
4747
+ function _(e, t) {
4748
4748
  return e instanceof $ ? e.status === 401 ? {
4749
4749
  error_code: y.UNAUTHORIZED,
4750
4750
  status_code: g.UNAUTHORIZED,
@@ -4788,7 +4788,7 @@ class Wc {
4788
4788
  });
4789
4789
  return { ...t.data, status_code: t.status };
4790
4790
  } catch (t) {
4791
- return { status_code: m(t, "Failed to fetch templates,").status_code, items: [] };
4791
+ return { status_code: _(t, "Failed to fetch templates,").status_code, items: [] };
4792
4792
  }
4793
4793
  }
4794
4794
  async createTemplate({
@@ -4804,7 +4804,7 @@ class Wc {
4804
4804
  });
4805
4805
  return { ...s.data, status_code: s.status };
4806
4806
  } catch (s) {
4807
- const o = m(s, "Failed to create template,");
4807
+ const o = _(s, "Failed to create template,");
4808
4808
  return {
4809
4809
  status_code: o.status_code,
4810
4810
  message: o.message
@@ -4825,7 +4825,7 @@ class Wc {
4825
4825
  });
4826
4826
  return { ...o.data, status_code: o.status };
4827
4827
  } catch (o) {
4828
- const i = m(o, "Failed to update template,");
4828
+ const i = _(o, "Failed to update template,");
4829
4829
  return { status_code: i.status_code, msg: i.message };
4830
4830
  }
4831
4831
  }
@@ -4837,7 +4837,7 @@ class Wc {
4837
4837
  });
4838
4838
  return { ...n.data, status_code: n.status };
4839
4839
  } catch (n) {
4840
- const r = m(n, "Failed to delete template,");
4840
+ const r = _(n, "Failed to delete template,");
4841
4841
  return { status_code: r.status_code, msg: r.message };
4842
4842
  }
4843
4843
  }
@@ -4852,7 +4852,7 @@ class Wc {
4852
4852
  });
4853
4853
  return { ...n.data, status_code: n.status };
4854
4854
  } catch (n) {
4855
- const r = m(n, "Failed to AI generate template,");
4855
+ const r = _(n, "Failed to AI generate template,");
4856
4856
  return {
4857
4857
  status_code: r.status_code,
4858
4858
  message: r.message
@@ -4884,7 +4884,7 @@ class Wc {
4884
4884
  });
4885
4885
  return { ...o.data, status_code: o.status };
4886
4886
  } catch (o) {
4887
- const i = m(o, "Failed to convert transcription to template,");
4887
+ const i = _(o, "Failed to convert transcription to template,");
4888
4888
  return {
4889
4889
  status_code: i.status_code,
4890
4890
  message: i.message
@@ -4900,7 +4900,7 @@ class Wc {
4900
4900
  });
4901
4901
  return { ...t.data, status_code: t.status };
4902
4902
  } catch (t) {
4903
- return { status_code: m(t, "Failed to fetch template sections,").status_code, items: [] };
4903
+ return { status_code: _(t, "Failed to fetch template sections,").status_code, items: [] };
4904
4904
  }
4905
4905
  }
4906
4906
  async createTemplateSection({
@@ -4917,7 +4917,7 @@ class Wc {
4917
4917
  });
4918
4918
  return { ...o.data, status_code: o.status };
4919
4919
  } catch (o) {
4920
- const i = m(o, "Failed to create template section,");
4920
+ const i = _(o, "Failed to create template section,");
4921
4921
  return {
4922
4922
  status_code: i.status_code,
4923
4923
  msg: i.message,
@@ -4940,7 +4940,7 @@ class Wc {
4940
4940
  });
4941
4941
  return { ...i.data, status_code: i.status };
4942
4942
  } catch (i) {
4943
- const a = m(i, "Failed to update template section,");
4943
+ const a = _(i, "Failed to update template section,");
4944
4944
  return {
4945
4945
  status_code: a.status_code,
4946
4946
  msg: a.message,
@@ -4957,7 +4957,7 @@ class Wc {
4957
4957
  });
4958
4958
  return { ...n.data, status_code: n.status };
4959
4959
  } catch (n) {
4960
- const r = m(n, "Failed to delete template section,");
4960
+ const r = _(n, "Failed to delete template section,");
4961
4961
  return {
4962
4962
  status_code: r.status_code,
4963
4963
  msg: r.message
@@ -4973,7 +4973,7 @@ class Wc {
4973
4973
  });
4974
4974
  return { ...n.data, status_code: n.status };
4975
4975
  } catch (n) {
4976
- return { status_code: m(n, "Failed to fetch document,").status_code };
4976
+ return { status_code: _(n, "Failed to fetch document,").status_code };
4977
4977
  }
4978
4978
  }
4979
4979
  async createDocument({
@@ -4997,7 +4997,7 @@ class Wc {
4997
4997
  });
4998
4998
  return { ...i.data, status_code: i.status };
4999
4999
  } catch (i) {
5000
- const a = m(i, "Failed to create document,");
5000
+ const a = _(i, "Failed to create document,");
5001
5001
  return {
5002
5002
  status_code: a.status_code,
5003
5003
  message: a.message
@@ -5025,7 +5025,7 @@ class Wc {
5025
5025
  });
5026
5026
  return { ...i.data, status_code: i.status };
5027
5027
  } catch (i) {
5028
- const a = m(i, "Failed to update document,");
5028
+ const a = _(i, "Failed to update document,");
5029
5029
  return {
5030
5030
  status_code: a.status_code,
5031
5031
  message: a.message
@@ -5040,7 +5040,7 @@ class Wc {
5040
5040
  });
5041
5041
  return { ...n.data, status_code: n.status };
5042
5042
  } catch (n) {
5043
- const r = m(n, "Failed to delete document,");
5043
+ const r = _(n, "Failed to delete document,");
5044
5044
  return {
5045
5045
  status_code: r.status_code,
5046
5046
  message: r.message
@@ -5059,7 +5059,7 @@ class Wc {
5059
5059
  });
5060
5060
  return { ...r.data, status_code: r.status };
5061
5061
  } catch (r) {
5062
- const s = m(r, "Failed to publish document,");
5062
+ const s = _(r, "Failed to publish document,");
5063
5063
  return {
5064
5064
  status_code: s.status_code,
5065
5065
  message: s.message
@@ -5067,7 +5067,7 @@ class Wc {
5067
5067
  }
5068
5068
  }
5069
5069
  }
5070
- const kn = "https://cdn.eka.care/vagus/cmlf0ip4a00000td1dmth2wk3.png", Nn = "https://cdn.eka.care/vagus/cmlf0j9ea00010td1h3mi6zqk.png", qt = "3cm", Xt = "3.5cm";
5070
+ const wn = "https://cdn.eka.care/vagus/cmlf0ip4a00000td1dmth2wk3.png", Nn = "https://cdn.eka.care/vagus/cmlf0j9ea00010td1h3mi6zqk.png", qt = "3cm", Xt = "3.5cm";
5071
5071
  class Vc {
5072
5072
  constructor(t, n, r) {
5073
5073
  this.transport = t, this.hosts = n, this.allianceClient = r;
@@ -5088,7 +5088,7 @@ class Vc {
5088
5088
  message: `Past ${t} transactions fetched successfully.`
5089
5089
  };
5090
5090
  } catch (r) {
5091
- const s = m(r, "Failed to fetch transactions,");
5091
+ const s = _(r, "Failed to fetch transactions,");
5092
5092
  return { status_code: s.status_code, message: s.message };
5093
5093
  }
5094
5094
  }
@@ -5100,7 +5100,7 @@ class Vc {
5100
5100
  });
5101
5101
  return { ...n.data, status_code: n.status };
5102
5102
  } catch (n) {
5103
- const r = m(n, "Failed to delete transaction,");
5103
+ const r = _(n, "Failed to delete transaction,");
5104
5104
  return { status_code: r.status_code, message: r.message };
5105
5105
  }
5106
5106
  }
@@ -5118,7 +5118,7 @@ class Vc {
5118
5118
  });
5119
5119
  return { ...r.data, status_code: r.status };
5120
5120
  } catch (r) {
5121
- const s = m(r, "Failed to fetch session details,");
5121
+ const s = _(r, "Failed to fetch session details,");
5122
5122
  return {
5123
5123
  status_code: s.status_code,
5124
5124
  message: s.message
@@ -5133,7 +5133,7 @@ class Vc {
5133
5133
  });
5134
5134
  return { ...n.data, status_code: n.status };
5135
5135
  } catch (n) {
5136
- const r = m(n, "Failed to fetch suggested medications,");
5136
+ const r = _(n, "Failed to fetch suggested medications,");
5137
5137
  return {
5138
5138
  status_code: r.status_code,
5139
5139
  message: r.message
@@ -5152,7 +5152,7 @@ class Vc {
5152
5152
  });
5153
5153
  return { ...r.data, status_code: r.status };
5154
5154
  } catch (r) {
5155
- const s = m(r, "Failed to add session context,");
5155
+ const s = _(r, "Failed to add session context,");
5156
5156
  return {
5157
5157
  status_code: s.status_code,
5158
5158
  message: s.message
@@ -5171,7 +5171,7 @@ class Vc {
5171
5171
  });
5172
5172
  return { ...r.data, status_code: r.status };
5173
5173
  } catch (r) {
5174
- const s = m(r, "Failed to remove session context,");
5174
+ const s = _(r, "Failed to remove session context,");
5175
5175
  return {
5176
5176
  status_code: s.status_code,
5177
5177
  message: s.message
@@ -5192,7 +5192,7 @@ class Vc {
5192
5192
  });
5193
5193
  return { ...r.data, status_code: r.status };
5194
5194
  } catch (r) {
5195
- const s = m(r, "Failed to update result summary,");
5195
+ const s = _(r, "Failed to update result summary,");
5196
5196
  return {
5197
5197
  status_code: s.status_code,
5198
5198
  message: s.message
@@ -5208,7 +5208,7 @@ class Vc {
5208
5208
  });
5209
5209
  return { ...t.data, status_code: t.status };
5210
5210
  } catch (t) {
5211
- const n = m(t, "Failed to fetch configurations,");
5211
+ const n = _(t, "Failed to fetch configurations,");
5212
5212
  return { status_code: n.status_code, message: n.message };
5213
5213
  }
5214
5214
  }
@@ -5220,7 +5220,7 @@ class Vc {
5220
5220
  });
5221
5221
  return { ...t.data, status_code: t.status };
5222
5222
  } catch (t) {
5223
- const n = m(t, "Failed to fetch configurations,");
5223
+ const n = _(t, "Failed to fetch configurations,");
5224
5224
  return { status_code: n.status_code, message: n.message };
5225
5225
  }
5226
5226
  }
@@ -5233,7 +5233,7 @@ class Vc {
5233
5233
  });
5234
5234
  return { ...r.data, status_code: r.status };
5235
5235
  } catch (n) {
5236
- const r = m(n, "Failed to update config,");
5236
+ const r = _(n, "Failed to update config,");
5237
5237
  return {
5238
5238
  status_code: r.status_code,
5239
5239
  msg: r.message
@@ -5282,7 +5282,7 @@ class Vc {
5282
5282
  status_code: r.status
5283
5283
  };
5284
5284
  } catch (r) {
5285
- const s = m(r, "Failed to fetch doctor header/footer,");
5285
+ const s = _(r, "Failed to fetch doctor header/footer,");
5286
5286
  return {
5287
5287
  data: this.getDefaultHeaderFooterInfo(),
5288
5288
  status_code: s.status_code,
@@ -5317,7 +5317,7 @@ class Vc {
5317
5317
  status_code: n.status
5318
5318
  };
5319
5319
  } catch (n) {
5320
- const r = m(n, "Failed to fetch doctor clinics,");
5320
+ const r = _(n, "Failed to fetch doctor clinics,");
5321
5321
  return { data: null, status_code: r.status_code, message: r.message };
5322
5322
  }
5323
5323
  }
@@ -5344,7 +5344,7 @@ class Vc {
5344
5344
  clinic_id: null,
5345
5345
  doctor_id: null,
5346
5346
  type: null,
5347
- header_img: kn,
5347
+ header_img: wn,
5348
5348
  header_height: qt,
5349
5349
  header_top_margin: null,
5350
5350
  footer_img: Nn,
@@ -5366,7 +5366,7 @@ class Vc {
5366
5366
  clinic_id: t.clinicId || null,
5367
5367
  doctor_id: t.docid || null,
5368
5368
  type: t.type || null,
5369
- header_img: t.header_img || kn,
5369
+ header_img: t.header_img || wn,
5370
5370
  header_height: t.header_img && t.header_height || qt,
5371
5371
  header_top_margin: t.header_top_margin || null,
5372
5372
  footer_img: t.footer_img || Nn,
@@ -5558,7 +5558,7 @@ class Gc {
5558
5558
  txn_id: this.txnID,
5559
5559
  error: t.error.message
5560
5560
  }), {
5561
- error_code: y.TXN_STOP_FAILED,
5561
+ error_code: y.END_RECORDING_FAILED,
5562
5562
  status_code: t.error.httpStatus ?? g.INTERNAL_SERVER_ERROR,
5563
5563
  message: t.error.message || "Failed to end recording."
5564
5564
  });
@@ -5574,7 +5574,7 @@ class Gc {
5574
5574
  const r = t || this.txnID;
5575
5575
  return r ? this.allianceClient.getSessionStatus(r, n) : {
5576
5576
  success: !1,
5577
- error: new Ce(
5577
+ error: new Oe(
5578
5578
  "No session ID available. Call initTransaction() first or pass a sessionId.",
5579
5579
  y.TXN_STATUS_MISMATCH
5580
5580
  )
@@ -5605,7 +5605,7 @@ class Gc {
5605
5605
  if (!n)
5606
5606
  return {
5607
5607
  success: !1,
5608
- error: new Ce(
5608
+ error: new Oe(
5609
5609
  "No session ID available. Call initTransaction() first or pass a sessionId.",
5610
5610
  y.TXN_STATUS_MISMATCH
5611
5611
  )
@@ -5638,7 +5638,7 @@ class Gc {
5638
5638
  message: "Audio file uploaded successfully."
5639
5639
  };
5640
5640
  } catch (r) {
5641
- const s = m(r, "Audio upload failed:");
5641
+ const s = _(r, "Audio upload failed:");
5642
5642
  return {
5643
5643
  error_code: s.error_code,
5644
5644
  status_code: s.status_code,
@@ -5669,7 +5669,7 @@ class Gc {
5669
5669
  message: t.data.message || "Transaction committed successfully."
5670
5670
  };
5671
5671
  } catch (t) {
5672
- const n = m(t, "Failed to commit transaction,");
5672
+ const n = _(t, "Failed to commit transaction,");
5673
5673
  return {
5674
5674
  error_code: n.error_code,
5675
5675
  status_code: n.status_code,
@@ -5696,7 +5696,7 @@ class Gc {
5696
5696
  message: t.data.message || "Transaction stopped."
5697
5697
  };
5698
5698
  } catch (t) {
5699
- const n = m(t, "Failed to stop transaction,");
5699
+ const n = _(t, "Failed to stop transaction,");
5700
5700
  return {
5701
5701
  error_code: n.error_code,
5702
5702
  status_code: n.status_code,
@@ -5708,7 +5708,7 @@ class Gc {
5708
5708
  await this.allianceClient.reset(), this.txnID = "", this.storedSession = null;
5709
5709
  }
5710
5710
  }
5711
- const Cn = (e) => {
5711
+ const On = (e) => {
5712
5712
  try {
5713
5713
  return JSON.parse(e);
5714
5714
  } catch {
@@ -5728,12 +5728,12 @@ const Cn = (e) => {
5728
5728
  const n = zc(t);
5729
5729
  switch (e) {
5730
5730
  case vt.JSON:
5731
- return Cn(n);
5731
+ return On(n);
5732
5732
  case vt.TRANSCRIPT:
5733
5733
  case vt.MARKDOWN:
5734
5734
  return n;
5735
5735
  default:
5736
- return Cn(n);
5736
+ return On(n);
5737
5737
  }
5738
5738
  }, Et = (e) => e?.length ? e.map((t) => {
5739
5739
  const { value: n } = t;
@@ -5750,7 +5750,7 @@ class Xc {
5750
5750
  try {
5751
5751
  return await this.fetchV3Status(t);
5752
5752
  } catch (n) {
5753
- const r = m(n, "Failed to fetch output templates,");
5753
+ const r = _(n, "Failed to fetch output templates,");
5754
5754
  return { status_code: r.status_code, message: r.message };
5755
5755
  }
5756
5756
  }
@@ -5758,7 +5758,7 @@ class Xc {
5758
5758
  try {
5759
5759
  return await this.fetchV3Status(t, "transcript=true", 15e3);
5760
5760
  } catch (n) {
5761
- const r = m(n, "Failed to fetch output transcription,");
5761
+ const r = _(n, "Failed to fetch output transcription,");
5762
5762
  return { status_code: r.status_code, message: r.message };
5763
5763
  }
5764
5764
  }
@@ -5771,7 +5771,7 @@ class Xc {
5771
5771
  });
5772
5772
  return r.status >= 400 ? { success: !1, error: r.data?.error?.code ?? y.UNKNOWN_ERROR } : { success: !0, data: r.data };
5773
5773
  } catch (r) {
5774
- return { success: !1, error: m(r, "Failed to fetch chunk transcript,").error_code };
5774
+ return { success: !1, error: _(r, "Failed to fetch chunk transcript,").error_code };
5775
5775
  }
5776
5776
  }
5777
5777
  async pollSessionOutput(t) {
@@ -5808,29 +5808,29 @@ class Xc {
5808
5808
  return s && f.push(`template_id=${s}`), o && f.push(`document_id=${o}`), i && f.push("dlp=true"), f.join("&");
5809
5809
  }, p = async () => {
5810
5810
  try {
5811
- const f = l(), S = await this.fetchV3Status(n, f, 2e4), { status_code: R, response: O } = S;
5811
+ const f = l(), S = await this.fetchV3Status(n, f, 2e4), { status_code: b, response: C } = S;
5812
5812
  if (Date.now() >= u)
5813
5813
  return c(500, null, "Timeout while fetching analysis results.", "timeout");
5814
- if (R === 401 || R === 403)
5814
+ if (b === 401 || b === 403)
5815
5815
  return c(
5816
- R,
5817
- O ?? null,
5816
+ b,
5817
+ C ?? null,
5818
5818
  "Unauthorized or Forbidden",
5819
5819
  "failed"
5820
5820
  );
5821
- if (R === 202 || R === 400 || R >= 500) {
5822
- if (R === 202 && O && a?.({
5821
+ if (b === 202 || b === 400 || b >= 500) {
5822
+ if (b === 202 && C && a?.({
5823
5823
  txn_id: n,
5824
- response: O,
5825
- status_code: R,
5824
+ response: C,
5825
+ status_code: b,
5826
5826
  message: "Partial result received",
5827
5827
  poll_status: "in-progress"
5828
- }), R >= 400) {
5828
+ }), b >= 400) {
5829
5829
  if (d++, d >= 3)
5830
5830
  return c(
5831
- R,
5831
+ b,
5832
5832
  null,
5833
- O?.error?.message || "Backend error while fetching results.",
5833
+ C?.error?.message || "Backend error while fetching results.",
5834
5834
  "failed"
5835
5835
  );
5836
5836
  } else
@@ -5838,8 +5838,8 @@ class Xc {
5838
5838
  return await new Promise((N) => setTimeout(N, 1e3)), p();
5839
5839
  }
5840
5840
  return c(
5841
- R,
5842
- O ?? null,
5841
+ b,
5842
+ C ?? null,
5843
5843
  "Template results generated successfully.",
5844
5844
  "success"
5845
5845
  );
@@ -5864,7 +5864,7 @@ class Xc {
5864
5864
  status_code: o.status
5865
5865
  };
5866
5866
  } catch (s) {
5867
- const o = m(s, "Failed to fetch status,");
5867
+ const o = _(s, "Failed to fetch status,");
5868
5868
  return { status_code: o.status_code, message: o.message };
5869
5869
  }
5870
5870
  }
@@ -6203,21 +6203,21 @@ class Jc {
6203
6203
  };
6204
6204
  }
6205
6205
  }
6206
- const w = class w {
6206
+ const k = class k {
6207
6207
  constructor(t) {
6208
- this.config = t, this.hosts = xr(t.env), this.callbackRegistry = new Fr(), this.tracker = new Mc(t.enableTracking ?? !1);
6208
+ this.config = t, this.hosts = xr(t.env), this.callbackRegistry = new Fr(), this.tracker = new Pc(t.enableTracking ?? !1);
6209
6209
  const n = {
6210
6210
  access_token: t.access_token,
6211
6211
  clientId: t.clientId,
6212
6212
  flavour: t.flavour,
6213
6213
  onUnauthorized: () => this.handleUnauthorized()
6214
6214
  };
6215
- if (t.mode === "ipc" && t.ipcBridge ? this.transport = new Or(n, t.ipcBridge) : this.transport = new Nr(n), t.enableTracking && (this.tracker.init(t.env), t.flavour && this.tracker.setUser(t.flavour)), !t.allianceConfig?.baseUrl)
6215
+ if (t.mode === "ipc" && t.ipcBridge ? this.transport = new Cr(n, t.ipcBridge) : this.transport = new Nr(n), t.enableTracking && (this.tracker.init(t.env), t.flavour && this.tracker.setUser(t.flavour)), !t.allianceConfig?.baseUrl)
6216
6216
  throw new Error("[EkaScribe] allianceConfig.baseUrl is required.");
6217
- this.allianceClient = new wr({
6217
+ this.allianceClient = new kr({
6218
6218
  baseUrl: t.allianceConfig.baseUrl,
6219
6219
  accessToken: t.access_token,
6220
- mode: t.mode === "ipc" ? Oe.IPC : Oe.DIRECT,
6220
+ mode: t.mode === "ipc" ? Ce.IPC : Ce.DIRECT,
6221
6221
  ipcTransport: t.ipcBridge,
6222
6222
  useWorker: t.allianceConfig?.useWorker ?? "auto",
6223
6223
  workerScriptUrl: t.sharedWorkerUrl,
@@ -6240,18 +6240,18 @@ const w = class w {
6240
6240
  });
6241
6241
  }
6242
6242
  static getInstance(t) {
6243
- if (w.instance) {
6244
- const n = w.instance.config, r = t.env && n.env !== t.env, s = t.clientId && n.clientId !== t.clientId;
6243
+ if (k.instance) {
6244
+ const n = k.instance.config, r = t.env && n.env !== t.env, s = t.clientId && n.clientId !== t.clientId;
6245
6245
  if (r || s)
6246
6246
  console.warn(
6247
6247
  `[EkaScribe] Configuration changed${r ? ` (env: ${n.env} → ${t.env})` : ""}${s ? ` (clientId: ${n.clientId} → ${t.clientId})` : ""}. Resetting instance.`
6248
- ), w.instance.resetInstance().catch((o) => {
6248
+ ), k.instance.resetInstance().catch((o) => {
6249
6249
  console.error("[EkaScribe] Error during instance reset:", o);
6250
6250
  });
6251
6251
  else
6252
- return t.access_token && w.instance.updateAuthTokens({ access_token: t.access_token }), t.flavour && t.flavour !== n.flavour && (n.flavour = t.flavour, t.enableTracking && w.instance.tracker.setUser(t.flavour)), w.instance;
6252
+ return t.access_token && k.instance.updateAuthTokens({ access_token: t.access_token }), t.flavour && t.flavour !== n.flavour && (n.flavour = t.flavour, t.enableTracking && k.instance.tracker.setUser(t.flavour)), k.instance;
6253
6253
  }
6254
- return w.instance = new w(t), w.instance;
6254
+ return k.instance = new k(t), k.instance;
6255
6255
  }
6256
6256
  // ─── Recording ─────────────────────────────────────────────────────────────
6257
6257
  /** @deprecated Backward compatible */
@@ -6338,7 +6338,7 @@ const w = class w {
6338
6338
  }
6339
6339
  // ─── Lifecycle ─────────────────────────────────────────────────────────────
6340
6340
  async resetInstance() {
6341
- await this.recording.reset(), this.callbackRegistry.removeAll(), w.instance = null;
6341
+ await this.recording.reset(), this.callbackRegistry.removeAll(), k.instance = null;
6342
6342
  }
6343
6343
  // ─── Private ───────────────────────────────────────────────────────────────
6344
6344
  async handleUnauthorized() {
@@ -6351,8 +6351,8 @@ const w = class w {
6351
6351
  return s && this.updateAuthTokens({ access_token: s }), s;
6352
6352
  }
6353
6353
  };
6354
- w.instance = null;
6355
- let fe = w;
6354
+ k.instance = null;
6355
+ let fe = k;
6356
6356
  const Qc = (e) => fe.getInstance(e);
6357
6357
  export {
6358
6358
  Uc as API_STATUS,