@launchdarkly/observability 0.2.2 → 0.3.0

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.
@@ -14,19 +14,19 @@ var Ou = Object.defineProperty, Au = (e, t, r) => t in e ? Ou(e, t, { enumerable
14
14
  }, u = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(o, a);
15
15
  u((r = r.apply(e, t)).next());
16
16
  });
17
- const Li = /* @__PURE__ */ Object.create(null), $t = (e, t, ...r) => {
17
+ const Ni = /* @__PURE__ */ Object.create(null), $t = (e, t, ...r) => {
18
18
  const n = `[@launchdarkly plugins]: (${e}): `;
19
- console[t].apply(console, [n, ...r]), Nu(n, ...r);
19
+ console[t].apply(console, [n, ...r]), Lu(n, ...r);
20
20
  }, Re = (e, t, r, ...n) => {
21
- Li[`${e}-${t}`] || (Li[`${e}-${t}`] = !0, $t(e, r, ...n));
22
- }, Nu = (e, ...t) => xu(void 0, null, function* () {
21
+ Ni[`${e}-${t}`] || (Ni[`${e}-${t}`] = !0, $t(e, r, ...n));
22
+ }, Lu = (e, ...t) => xu(void 0, null, function* () {
23
23
  try {
24
24
  const { LDObserve: r } = yield Promise.resolve().then(() => Dl);
25
25
  r.recordLog(`${e}${t}`, "warn");
26
26
  } catch {
27
27
  }
28
28
  });
29
- class Lu {
29
+ class Nu {
30
30
  constructor(t, r) {
31
31
  mt(this, "debug"), mt(this, "name"), this.debug = t, this.name = r;
32
32
  }
@@ -43,7 +43,7 @@ class Lu {
43
43
  }
44
44
  class da {
45
45
  constructor() {
46
- mt(this, "_sdk"), mt(this, "_isLoaded", !1), mt(this, "_callBuffer", []), mt(this, "_capacity", 1e5), mt(this, "_droppedEvents", 0), mt(this, "_exceededCapacity", !1), mt(this, "_logger", new Lu());
46
+ mt(this, "_sdk"), mt(this, "_isLoaded", !1), mt(this, "_callBuffer", []), mt(this, "_capacity", 1e5), mt(this, "_droppedEvents", 0), mt(this, "_exceededCapacity", !1), mt(this, "_logger", new Nu());
47
47
  }
48
48
  _bufferCall(t, r) {
49
49
  if (this._isLoaded)
@@ -82,7 +82,7 @@ class da {
82
82
  this._callBuffer = [];
83
83
  }
84
84
  }
85
- var Cu = Object.defineProperty, Ru = Object.defineProperties, Pu = Object.getOwnPropertyDescriptors, gr = Object.getOwnPropertySymbols, va = Object.prototype.hasOwnProperty, ma = Object.prototype.propertyIsEnumerable, Cn = (e, t, r) => t in e ? Cu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, N = (e, t) => {
85
+ var Cu = Object.defineProperty, Ru = Object.defineProperties, Pu = Object.getOwnPropertyDescriptors, gr = Object.getOwnPropertySymbols, va = Object.prototype.hasOwnProperty, ma = Object.prototype.propertyIsEnumerable, Cn = (e, t, r) => t in e ? Cu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, L = (e, t) => {
86
86
  for (var r in t || (t = {}))
87
87
  va.call(t, r) && Cn(e, r, t[r]);
88
88
  if (gr)
@@ -163,14 +163,14 @@ function ya(e, t) {
163
163
  const r = e.locationOffset.column - 1, n = "".padStart(r) + e.body, i = t.line - 1, o = e.locationOffset.line - 1, a = t.line + o, u = t.line === 1 ? r : 0, c = t.column + u, s = `${e.name}:${a}:${c}
164
164
  `, l = n.split(/\r\n|[\n\r]/g), p = l[i];
165
165
  if (p.length > 120) {
166
- const f = Math.floor(c / 80), v = c % 80, m = [];
166
+ const f = Math.floor(c / 80), m = c % 80, v = [];
167
167
  for (let y = 0; y < p.length; y += 80)
168
- m.push(p.slice(y, y + 80));
168
+ v.push(p.slice(y, y + 80));
169
169
  return s + Ci([
170
- [`${a} |`, m[0]],
171
- ...m.slice(1, f + 1).map((y) => ["|", y]),
172
- ["|", "^".padStart(v)],
173
- ["|", m[f + 1]]
170
+ [`${a} |`, v[0]],
171
+ ...v.slice(1, f + 1).map((y) => ["|", y]),
172
+ ["|", "^".padStart(m)],
173
+ ["|", v[f + 1]]
174
174
  ]);
175
175
  }
176
176
  return s + Ci([
@@ -243,13 +243,13 @@ let ju = class ga extends Error {
243
243
  Array.isArray(a) ? a : a ? [a] : void 0
244
244
  );
245
245
  const f = Ri(
246
- (n = this.nodes) === null || n === void 0 ? void 0 : n.map((m) => m.loc).filter((m) => m != null)
246
+ (n = this.nodes) === null || n === void 0 ? void 0 : n.map((v) => v.loc).filter((v) => v != null)
247
247
  );
248
- this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((m) => m.start), this.locations = c && u ? c.map((m) => Rn(u, m)) : f?.map((m) => Rn(m.source, m.start));
249
- const v = ku(
248
+ this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((v) => v.start), this.locations = c && u ? c.map((v) => Rn(u, v)) : f?.map((v) => Rn(v.source, v.start));
249
+ const m = ku(
250
250
  l?.extensions
251
251
  ) ? l?.extensions : void 0;
252
- this.extensions = (o = p ?? v) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
252
+ this.extensions = (o = p ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
253
253
  message: {
254
254
  writable: !0,
255
255
  enumerable: !0
@@ -509,7 +509,7 @@ function Gu(e) {
509
509
  return t;
510
510
  }
511
511
  function qu(e, t) {
512
- const r = e.replace(/"""/g, '\\"""'), n = r.split(/\r\n|[\n\r]/g), i = n.length === 1, o = n.length > 1 && n.slice(1).every((v) => v.length === 0 || In(v.charCodeAt(0))), a = r.endsWith('\\"""'), u = e.endsWith('"') && !a, c = e.endsWith("\\"), s = u || c, l = (
512
+ const r = e.replace(/"""/g, '\\"""'), n = r.split(/\r\n|[\n\r]/g), i = n.length === 1, o = n.length > 1 && n.slice(1).every((m) => m.length === 0 || In(m.charCodeAt(0))), a = r.endsWith('\\"""'), u = e.endsWith('"') && !a, c = e.endsWith("\\"), s = u || c, l = (
513
513
  // add leading and trailing new lines only if it improves readability
514
514
  !i || e.length > 70 || s || o || a
515
515
  );
@@ -592,7 +592,7 @@ function Bt(e, t) {
592
592
  }
593
593
  return "U+" + r.toString(16).toUpperCase().padStart(4, "0");
594
594
  }
595
- function j(e, t, r, n, i) {
595
+ function B(e, t, r, n, i) {
596
596
  const o = e.line, a = 1 + r - e.lineStart;
597
597
  return new _a(t, r, n, o, a, i);
598
598
  }
@@ -617,35 +617,35 @@ function Ku(e, t) {
617
617
  case 35:
618
618
  return Wu(e, i);
619
619
  case 33:
620
- return j(e, d.BANG, i, i + 1);
620
+ return B(e, d.BANG, i, i + 1);
621
621
  case 36:
622
- return j(e, d.DOLLAR, i, i + 1);
622
+ return B(e, d.DOLLAR, i, i + 1);
623
623
  case 38:
624
- return j(e, d.AMP, i, i + 1);
624
+ return B(e, d.AMP, i, i + 1);
625
625
  case 40:
626
- return j(e, d.PAREN_L, i, i + 1);
626
+ return B(e, d.PAREN_L, i, i + 1);
627
627
  case 41:
628
- return j(e, d.PAREN_R, i, i + 1);
628
+ return B(e, d.PAREN_R, i, i + 1);
629
629
  case 46:
630
630
  if (r.charCodeAt(i + 1) === 46 && r.charCodeAt(i + 2) === 46)
631
- return j(e, d.SPREAD, i, i + 3);
631
+ return B(e, d.SPREAD, i, i + 3);
632
632
  break;
633
633
  case 58:
634
- return j(e, d.COLON, i, i + 1);
634
+ return B(e, d.COLON, i, i + 1);
635
635
  case 61:
636
- return j(e, d.EQUALS, i, i + 1);
636
+ return B(e, d.EQUALS, i, i + 1);
637
637
  case 64:
638
- return j(e, d.AT, i, i + 1);
638
+ return B(e, d.AT, i, i + 1);
639
639
  case 91:
640
- return j(e, d.BRACKET_L, i, i + 1);
640
+ return B(e, d.BRACKET_L, i, i + 1);
641
641
  case 93:
642
- return j(e, d.BRACKET_R, i, i + 1);
642
+ return B(e, d.BRACKET_R, i, i + 1);
643
643
  case 123:
644
- return j(e, d.BRACE_L, i, i + 1);
644
+ return B(e, d.BRACE_L, i, i + 1);
645
645
  case 124:
646
- return j(e, d.PIPE, i, i + 1);
646
+ return B(e, d.PIPE, i, i + 1);
647
647
  case 125:
648
- return j(e, d.BRACE_R, i, i + 1);
648
+ return B(e, d.BRACE_R, i, i + 1);
649
649
  case 34:
650
650
  return r.charCodeAt(i + 1) === 34 && r.charCodeAt(i + 2) === 34 ? ec(e, i) : Ju(e, i);
651
651
  }
@@ -659,7 +659,7 @@ function Ku(e, t) {
659
659
  o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : pe(o) || kr(r, i) ? `Unexpected character: ${Bt(e, i)}.` : `Invalid character: ${Bt(e, i)}.`
660
660
  );
661
661
  }
662
- return j(e, d.EOF, n, n);
662
+ return B(e, d.EOF, n, n);
663
663
  }
664
664
  function Wu(e, t) {
665
665
  const r = e.source.body, n = r.length;
@@ -675,7 +675,7 @@ function Wu(e, t) {
675
675
  else
676
676
  break;
677
677
  }
678
- return j(
678
+ return B(
679
679
  e,
680
680
  d.COMMENT,
681
681
  t,
@@ -707,7 +707,7 @@ function Yu(e, t, r) {
707
707
  i
708
708
  )}.`
709
709
  );
710
- return j(
710
+ return B(
711
711
  e,
712
712
  a ? d.FLOAT : d.INT,
713
713
  t,
@@ -737,7 +737,7 @@ function Ju(e, t) {
737
737
  for (; i < n; ) {
738
738
  const u = r.charCodeAt(i);
739
739
  if (u === 34)
740
- return a += r.slice(o, i), j(e, d.STRING, t, i + 1, a);
740
+ return a += r.slice(o, i), B(e, d.STRING, t, i + 1, a);
741
741
  if (u === 92) {
742
742
  a += r.slice(o, i);
743
743
  const c = r.charCodeAt(i + 1) === 117 ? r.charCodeAt(i + 2) === 123 ? Qu(e, i) : Zu(e, i) : tc(e, i);
@@ -876,7 +876,7 @@ function ec(e, t) {
876
876
  const s = r.charCodeAt(o);
877
877
  if (s === 34 && r.charCodeAt(o + 1) === 34 && r.charCodeAt(o + 2) === 34) {
878
878
  u += r.slice(a, o), c.push(u);
879
- const l = j(
879
+ const l = B(
880
880
  e,
881
881
  d.BLOCK_STRING,
882
882
  t,
@@ -921,7 +921,7 @@ function rc(e, t) {
921
921
  else
922
922
  break;
923
923
  }
924
- return j(
924
+ return B(
925
925
  e,
926
926
  d.NAME,
927
927
  t,
@@ -2327,29 +2327,29 @@ const vc = [
2327
2327
  ], mc = Object.freeze({});
2328
2328
  function yc(e, t, r = ba) {
2329
2329
  const n = /* @__PURE__ */ new Map();
2330
- for (const T of Object.values(w))
2331
- n.set(T, gc(t, T));
2330
+ for (const b of Object.values(w))
2331
+ n.set(b, gc(t, b));
2332
2332
  let i, o = Array.isArray(e), a = [e], u = -1, c = [], s = e, l, p;
2333
- const f = [], v = [];
2333
+ const f = [], m = [];
2334
2334
  do {
2335
2335
  u++;
2336
- const T = u === a.length, P = T && c.length !== 0;
2337
- if (T) {
2338
- if (l = v.length === 0 ? void 0 : f[f.length - 1], s = p, p = v.pop(), P)
2336
+ const b = u === a.length, C = b && c.length !== 0;
2337
+ if (b) {
2338
+ if (l = m.length === 0 ? void 0 : f[f.length - 1], s = p, p = m.pop(), C)
2339
2339
  if (o) {
2340
2340
  s = s.slice();
2341
- let M = 0;
2341
+ let D = 0;
2342
2342
  for (const [F, k] of c) {
2343
- const G = F - M;
2344
- k === null ? (s.splice(G, 1), M++) : s[G] = k;
2343
+ const G = F - D;
2344
+ k === null ? (s.splice(G, 1), D++) : s[G] = k;
2345
2345
  }
2346
2346
  } else {
2347
2347
  s = Object.defineProperties(
2348
2348
  {},
2349
2349
  Object.getOwnPropertyDescriptors(s)
2350
2350
  );
2351
- for (const [M, F] of c)
2352
- s[M] = F;
2351
+ for (const [D, F] of c)
2352
+ s[D] = F;
2353
2353
  }
2354
2354
  u = i.index, a = i.keys, c = i.edits, o = i.inArray, i = i.prev;
2355
2355
  } else if (p) {
@@ -2357,27 +2357,27 @@ function yc(e, t, r = ba) {
2357
2357
  continue;
2358
2358
  f.push(l);
2359
2359
  }
2360
- let B;
2360
+ let U;
2361
2361
  if (!Array.isArray(s)) {
2362
- var m, y;
2362
+ var v, y;
2363
2363
  Pi(s) || ur(!1, `Invalid AST Node: ${oi(s)}.`);
2364
- const M = T ? (m = n.get(s.kind)) === null || m === void 0 ? void 0 : m.leave : (y = n.get(s.kind)) === null || y === void 0 ? void 0 : y.enter;
2365
- if (B = M?.call(t, s, l, p, f, v), B === mc)
2364
+ const D = b ? (v = n.get(s.kind)) === null || v === void 0 ? void 0 : v.leave : (y = n.get(s.kind)) === null || y === void 0 ? void 0 : y.enter;
2365
+ if (U = D?.call(t, s, l, p, f, m), U === mc)
2366
2366
  break;
2367
- if (B === !1) {
2368
- if (!T) {
2367
+ if (U === !1) {
2368
+ if (!b) {
2369
2369
  f.pop();
2370
2370
  continue;
2371
2371
  }
2372
- } else if (B !== void 0 && (c.push([l, B]), !T))
2373
- if (Pi(B))
2374
- s = B;
2372
+ } else if (U !== void 0 && (c.push([l, U]), !b))
2373
+ if (Pi(U))
2374
+ s = U;
2375
2375
  else {
2376
2376
  f.pop();
2377
2377
  continue;
2378
2378
  }
2379
2379
  }
2380
- if (B === void 0 && P && c.push([l, s]), T)
2380
+ if (U === void 0 && C && c.push([l, s]), b)
2381
2381
  f.pop();
2382
2382
  else {
2383
2383
  var _;
@@ -2387,7 +2387,7 @@ function yc(e, t, r = ba) {
2387
2387
  keys: a,
2388
2388
  edits: c,
2389
2389
  prev: i
2390
- }, o = Array.isArray(s), a = o ? s : (_ = r[s.kind]) !== null && _ !== void 0 ? _ : [], u = -1, c = [], p && v.push(p), p = s;
2390
+ }, o = Array.isArray(s), a = o ? s : (_ = r[s.kind]) !== null && _ !== void 0 ? _ : [], u = -1, c = [], p && m.push(p), p = s;
2391
2391
  }
2392
2392
  } while (i !== void 0);
2393
2393
  return c.length !== 0 ? c[c.length - 1][1] : e;
@@ -2414,17 +2414,17 @@ const bc = 80, Ec = {
2414
2414
  },
2415
2415
  // Document
2416
2416
  Document: {
2417
- leave: (e) => b(e.definitions, `
2417
+ leave: (e) => E(e.definitions, `
2418
2418
 
2419
2419
  `)
2420
2420
  },
2421
2421
  OperationDefinition: {
2422
2422
  leave(e) {
2423
- const t = x("(", b(e.variableDefinitions, ", "), ")"), r = b(
2423
+ const t = x("(", E(e.variableDefinitions, ", "), ")"), r = E(
2424
2424
  [
2425
2425
  e.operation,
2426
- b([e.name, t]),
2427
- b(e.directives, " ")
2426
+ E([e.name, t]),
2427
+ E(e.directives, " ")
2428
2428
  ],
2429
2429
  " "
2430
2430
  );
@@ -2432,7 +2432,7 @@ const bc = 80, Ec = {
2432
2432
  }
2433
2433
  },
2434
2434
  VariableDefinition: {
2435
- leave: ({ variable: e, type: t, defaultValue: r, directives: n }) => e + ": " + t + x(" = ", r) + x(" ", b(n, " "))
2435
+ leave: ({ variable: e, type: t, defaultValue: r, directives: n }) => e + ": " + t + x(" = ", r) + x(" ", E(n, " "))
2436
2436
  },
2437
2437
  SelectionSet: {
2438
2438
  leave: ({ selections: e }) => ct(e)
@@ -2440,11 +2440,11 @@ const bc = 80, Ec = {
2440
2440
  Field: {
2441
2441
  leave({ alias: e, name: t, arguments: r, directives: n, selectionSet: i }) {
2442
2442
  const o = x("", e, ": ") + t;
2443
- let a = o + x("(", b(r, ", "), ")");
2443
+ let a = o + x("(", E(r, ", "), ")");
2444
2444
  return a.length > bc && (a = o + x(`(
2445
- `, cr(b(r, `
2445
+ `, cr(E(r, `
2446
2446
  `)), `
2447
- )`)), b([a, b(n, " "), i], " ");
2447
+ )`)), E([a, E(n, " "), i], " ");
2448
2448
  }
2449
2449
  },
2450
2450
  Argument: {
@@ -2452,14 +2452,14 @@ const bc = 80, Ec = {
2452
2452
  },
2453
2453
  // Fragments
2454
2454
  FragmentSpread: {
2455
- leave: ({ name: e, directives: t }) => "..." + e + x(" ", b(t, " "))
2455
+ leave: ({ name: e, directives: t }) => "..." + e + x(" ", E(t, " "))
2456
2456
  },
2457
2457
  InlineFragment: {
2458
- leave: ({ typeCondition: e, directives: t, selectionSet: r }) => b(
2458
+ leave: ({ typeCondition: e, directives: t, selectionSet: r }) => E(
2459
2459
  [
2460
2460
  "...",
2461
2461
  x("on ", e),
2462
- b(t, " "),
2462
+ E(t, " "),
2463
2463
  r
2464
2464
  ],
2465
2465
  " "
@@ -2468,7 +2468,7 @@ const bc = 80, Ec = {
2468
2468
  FragmentDefinition: {
2469
2469
  leave: ({ name: e, typeCondition: t, variableDefinitions: r, directives: n, selectionSet: i }) => (
2470
2470
  // or removed in the future.
2471
- `fragment ${e}${x("(", b(r, ", "), ")")} on ${t} ${x("", b(n, " "), " ")}` + i
2471
+ `fragment ${e}${x("(", E(r, ", "), ")")} on ${t} ${x("", E(n, " "), " ")}` + i
2472
2472
  )
2473
2473
  },
2474
2474
  // Value
@@ -2491,17 +2491,17 @@ const bc = 80, Ec = {
2491
2491
  leave: ({ value: e }) => e
2492
2492
  },
2493
2493
  ListValue: {
2494
- leave: ({ values: e }) => "[" + b(e, ", ") + "]"
2494
+ leave: ({ values: e }) => "[" + E(e, ", ") + "]"
2495
2495
  },
2496
2496
  ObjectValue: {
2497
- leave: ({ fields: e }) => "{" + b(e, ", ") + "}"
2497
+ leave: ({ fields: e }) => "{" + E(e, ", ") + "}"
2498
2498
  },
2499
2499
  ObjectField: {
2500
2500
  leave: ({ name: e, value: t }) => e + ": " + t
2501
2501
  },
2502
2502
  // Directive
2503
2503
  Directive: {
2504
- leave: ({ name: e, arguments: t }) => "@" + e + x("(", b(t, ", "), ")")
2504
+ leave: ({ name: e, arguments: t }) => "@" + e + x("(", E(t, ", "), ")")
2505
2505
  },
2506
2506
  // Type
2507
2507
  NamedType: {
@@ -2516,23 +2516,23 @@ const bc = 80, Ec = {
2516
2516
  // Type System Definitions
2517
2517
  SchemaDefinition: {
2518
2518
  leave: ({ description: e, directives: t, operationTypes: r }) => x("", e, `
2519
- `) + b(["schema", b(t, " "), ct(r)], " ")
2519
+ `) + E(["schema", E(t, " "), ct(r)], " ")
2520
2520
  },
2521
2521
  OperationTypeDefinition: {
2522
2522
  leave: ({ operation: e, type: t }) => e + ": " + t
2523
2523
  },
2524
2524
  ScalarTypeDefinition: {
2525
2525
  leave: ({ description: e, name: t, directives: r }) => x("", e, `
2526
- `) + b(["scalar", t, b(r, " ")], " ")
2526
+ `) + E(["scalar", t, E(r, " ")], " ")
2527
2527
  },
2528
2528
  ObjectTypeDefinition: {
2529
2529
  leave: ({ description: e, name: t, interfaces: r, directives: n, fields: i }) => x("", e, `
2530
- `) + b(
2530
+ `) + E(
2531
2531
  [
2532
2532
  "type",
2533
2533
  t,
2534
- x("implements ", b(r, " & ")),
2535
- b(n, " "),
2534
+ x("implements ", E(r, " & ")),
2535
+ E(n, " "),
2536
2536
  ct(i)
2537
2537
  ],
2538
2538
  " "
@@ -2541,25 +2541,25 @@ const bc = 80, Ec = {
2541
2541
  FieldDefinition: {
2542
2542
  leave: ({ description: e, name: t, arguments: r, type: n, directives: i }) => x("", e, `
2543
2543
  `) + t + (ki(r) ? x(`(
2544
- `, cr(b(r, `
2544
+ `, cr(E(r, `
2545
2545
  `)), `
2546
- )`) : x("(", b(r, ", "), ")")) + ": " + n + x(" ", b(i, " "))
2546
+ )`) : x("(", E(r, ", "), ")")) + ": " + n + x(" ", E(i, " "))
2547
2547
  },
2548
2548
  InputValueDefinition: {
2549
2549
  leave: ({ description: e, name: t, type: r, defaultValue: n, directives: i }) => x("", e, `
2550
- `) + b(
2551
- [t + ": " + r, x("= ", n), b(i, " ")],
2550
+ `) + E(
2551
+ [t + ": " + r, x("= ", n), E(i, " ")],
2552
2552
  " "
2553
2553
  )
2554
2554
  },
2555
2555
  InterfaceTypeDefinition: {
2556
2556
  leave: ({ description: e, name: t, interfaces: r, directives: n, fields: i }) => x("", e, `
2557
- `) + b(
2557
+ `) + E(
2558
2558
  [
2559
2559
  "interface",
2560
2560
  t,
2561
- x("implements ", b(r, " & ")),
2562
- b(n, " "),
2561
+ x("implements ", E(r, " & ")),
2562
+ E(n, " "),
2563
2563
  ct(i)
2564
2564
  ],
2565
2565
  " "
@@ -2567,88 +2567,88 @@ const bc = 80, Ec = {
2567
2567
  },
2568
2568
  UnionTypeDefinition: {
2569
2569
  leave: ({ description: e, name: t, directives: r, types: n }) => x("", e, `
2570
- `) + b(
2571
- ["union", t, b(r, " "), x("= ", b(n, " | "))],
2570
+ `) + E(
2571
+ ["union", t, E(r, " "), x("= ", E(n, " | "))],
2572
2572
  " "
2573
2573
  )
2574
2574
  },
2575
2575
  EnumTypeDefinition: {
2576
2576
  leave: ({ description: e, name: t, directives: r, values: n }) => x("", e, `
2577
- `) + b(["enum", t, b(r, " "), ct(n)], " ")
2577
+ `) + E(["enum", t, E(r, " "), ct(n)], " ")
2578
2578
  },
2579
2579
  EnumValueDefinition: {
2580
2580
  leave: ({ description: e, name: t, directives: r }) => x("", e, `
2581
- `) + b([t, b(r, " ")], " ")
2581
+ `) + E([t, E(r, " ")], " ")
2582
2582
  },
2583
2583
  InputObjectTypeDefinition: {
2584
2584
  leave: ({ description: e, name: t, directives: r, fields: n }) => x("", e, `
2585
- `) + b(["input", t, b(r, " "), ct(n)], " ")
2585
+ `) + E(["input", t, E(r, " "), ct(n)], " ")
2586
2586
  },
2587
2587
  DirectiveDefinition: {
2588
2588
  leave: ({ description: e, name: t, arguments: r, repeatable: n, locations: i }) => x("", e, `
2589
2589
  `) + "directive @" + t + (ki(r) ? x(`(
2590
- `, cr(b(r, `
2590
+ `, cr(E(r, `
2591
2591
  `)), `
2592
- )`) : x("(", b(r, ", "), ")")) + (n ? " repeatable" : "") + " on " + b(i, " | ")
2592
+ )`) : x("(", E(r, ", "), ")")) + (n ? " repeatable" : "") + " on " + E(i, " | ")
2593
2593
  },
2594
2594
  SchemaExtension: {
2595
- leave: ({ directives: e, operationTypes: t }) => b(
2596
- ["extend schema", b(e, " "), ct(t)],
2595
+ leave: ({ directives: e, operationTypes: t }) => E(
2596
+ ["extend schema", E(e, " "), ct(t)],
2597
2597
  " "
2598
2598
  )
2599
2599
  },
2600
2600
  ScalarTypeExtension: {
2601
- leave: ({ name: e, directives: t }) => b(["extend scalar", e, b(t, " ")], " ")
2601
+ leave: ({ name: e, directives: t }) => E(["extend scalar", e, E(t, " ")], " ")
2602
2602
  },
2603
2603
  ObjectTypeExtension: {
2604
- leave: ({ name: e, interfaces: t, directives: r, fields: n }) => b(
2604
+ leave: ({ name: e, interfaces: t, directives: r, fields: n }) => E(
2605
2605
  [
2606
2606
  "extend type",
2607
2607
  e,
2608
- x("implements ", b(t, " & ")),
2609
- b(r, " "),
2608
+ x("implements ", E(t, " & ")),
2609
+ E(r, " "),
2610
2610
  ct(n)
2611
2611
  ],
2612
2612
  " "
2613
2613
  )
2614
2614
  },
2615
2615
  InterfaceTypeExtension: {
2616
- leave: ({ name: e, interfaces: t, directives: r, fields: n }) => b(
2616
+ leave: ({ name: e, interfaces: t, directives: r, fields: n }) => E(
2617
2617
  [
2618
2618
  "extend interface",
2619
2619
  e,
2620
- x("implements ", b(t, " & ")),
2621
- b(r, " "),
2620
+ x("implements ", E(t, " & ")),
2621
+ E(r, " "),
2622
2622
  ct(n)
2623
2623
  ],
2624
2624
  " "
2625
2625
  )
2626
2626
  },
2627
2627
  UnionTypeExtension: {
2628
- leave: ({ name: e, directives: t, types: r }) => b(
2628
+ leave: ({ name: e, directives: t, types: r }) => E(
2629
2629
  [
2630
2630
  "extend union",
2631
2631
  e,
2632
- b(t, " "),
2633
- x("= ", b(r, " | "))
2632
+ E(t, " "),
2633
+ x("= ", E(r, " | "))
2634
2634
  ],
2635
2635
  " "
2636
2636
  )
2637
2637
  },
2638
2638
  EnumTypeExtension: {
2639
- leave: ({ name: e, directives: t, values: r }) => b(["extend enum", e, b(t, " "), ct(r)], " ")
2639
+ leave: ({ name: e, directives: t, values: r }) => E(["extend enum", e, E(t, " "), ct(r)], " ")
2640
2640
  },
2641
2641
  InputObjectTypeExtension: {
2642
- leave: ({ name: e, directives: t, fields: r }) => b(["extend input", e, b(t, " "), ct(r)], " ")
2642
+ leave: ({ name: e, directives: t, fields: r }) => E(["extend input", e, E(t, " "), ct(r)], " ")
2643
2643
  }
2644
2644
  };
2645
- function b(e, t = "") {
2645
+ function E(e, t = "") {
2646
2646
  var r;
2647
2647
  return (r = e?.filter((n) => n).join(t)) !== null && r !== void 0 ? r : "";
2648
2648
  }
2649
2649
  function ct(e) {
2650
2650
  return x(`{
2651
- `, cr(b(e, `
2651
+ `, cr(E(e, `
2652
2652
  `)), `
2653
2653
  }`);
2654
2654
  }
@@ -2701,7 +2701,7 @@ const si = JSON, Tc = (e) => e.toUpperCase(), wc = (e) => {
2701
2701
  const t = Mi(e);
2702
2702
  return { query: _c(e), operationName: t };
2703
2703
  };
2704
- let Na = class lr extends Error {
2704
+ let La = class lr extends Error {
2705
2705
  constructor(t, r) {
2706
2706
  const n = `${lr.extractMessage(t)}: ${JSON.stringify({
2707
2707
  response: t,
@@ -2766,7 +2766,7 @@ var kn = { exports: {} };
2766
2766
  function f(h) {
2767
2767
  return typeof h != "string" && (h = String(h)), h;
2768
2768
  }
2769
- function v(h) {
2769
+ function m(h) {
2770
2770
  var g = {
2771
2771
  next: function() {
2772
2772
  var A = h.shift();
@@ -2777,8 +2777,8 @@ var kn = { exports: {} };
2777
2777
  return g;
2778
2778
  }), g;
2779
2779
  }
2780
- function m(h) {
2781
- this.map = {}, h instanceof m ? h.forEach(function(g, A) {
2780
+ function v(h) {
2781
+ this.map = {}, h instanceof v ? h.forEach(function(g, A) {
2782
2782
  this.append(A, g);
2783
2783
  }, this) : Array.isArray(h) ? h.forEach(function(g) {
2784
2784
  this.append(g[0], g[1]);
@@ -2786,37 +2786,37 @@ var kn = { exports: {} };
2786
2786
  this.append(g, h[g]);
2787
2787
  }, this);
2788
2788
  }
2789
- m.prototype.append = function(h, g) {
2789
+ v.prototype.append = function(h, g) {
2790
2790
  h = p(h), g = f(g);
2791
2791
  var A = this.map[h];
2792
2792
  this.map[h] = A ? A + ", " + g : g;
2793
- }, m.prototype.delete = function(h) {
2793
+ }, v.prototype.delete = function(h) {
2794
2794
  delete this.map[p(h)];
2795
- }, m.prototype.get = function(h) {
2795
+ }, v.prototype.get = function(h) {
2796
2796
  return h = p(h), this.has(h) ? this.map[h] : null;
2797
- }, m.prototype.has = function(h) {
2797
+ }, v.prototype.has = function(h) {
2798
2798
  return this.map.hasOwnProperty(p(h));
2799
- }, m.prototype.set = function(h, g) {
2799
+ }, v.prototype.set = function(h, g) {
2800
2800
  this.map[p(h)] = f(g);
2801
- }, m.prototype.forEach = function(h, g) {
2801
+ }, v.prototype.forEach = function(h, g) {
2802
2802
  for (var A in this.map)
2803
2803
  this.map.hasOwnProperty(A) && h.call(g, this.map[A], A, this);
2804
- }, m.prototype.keys = function() {
2804
+ }, v.prototype.keys = function() {
2805
2805
  var h = [];
2806
2806
  return this.forEach(function(g, A) {
2807
2807
  h.push(A);
2808
- }), v(h);
2809
- }, m.prototype.values = function() {
2808
+ }), m(h);
2809
+ }, v.prototype.values = function() {
2810
2810
  var h = [];
2811
2811
  return this.forEach(function(g) {
2812
2812
  h.push(g);
2813
- }), v(h);
2814
- }, m.prototype.entries = function() {
2813
+ }), m(h);
2814
+ }, v.prototype.entries = function() {
2815
2815
  var h = [];
2816
2816
  return this.forEach(function(g, A) {
2817
2817
  h.push([A, g]);
2818
- }), v(h);
2819
- }, u.iterable && (m.prototype[Symbol.iterator] = m.prototype.entries);
2818
+ }), m(h);
2819
+ }, u.iterable && (v.prototype[Symbol.iterator] = v.prototype.entries);
2820
2820
  function y(h) {
2821
2821
  if (h.bodyUsed)
2822
2822
  return Promise.reject(new TypeError("Already read"));
@@ -2831,20 +2831,20 @@ var kn = { exports: {} };
2831
2831
  };
2832
2832
  });
2833
2833
  }
2834
- function T(h) {
2834
+ function b(h) {
2835
2835
  var g = new FileReader(), A = _(g);
2836
2836
  return g.readAsArrayBuffer(h), A;
2837
2837
  }
2838
- function P(h) {
2838
+ function C(h) {
2839
2839
  var g = new FileReader(), A = _(g);
2840
2840
  return g.readAsText(h), A;
2841
2841
  }
2842
- function B(h) {
2842
+ function U(h) {
2843
2843
  for (var g = new Uint8Array(h), A = new Array(g.length), X = 0; X < g.length; X++)
2844
2844
  A[X] = String.fromCharCode(g[X]);
2845
2845
  return A.join("");
2846
2846
  }
2847
- function M(h) {
2847
+ function D(h) {
2848
2848
  if (h.slice)
2849
2849
  return h.slice(0);
2850
2850
  var g = new Uint8Array(h.byteLength);
@@ -2852,7 +2852,7 @@ var kn = { exports: {} };
2852
2852
  }
2853
2853
  function F() {
2854
2854
  return this.bodyUsed = !1, this._initBody = function(h) {
2855
- this._bodyInit = h, h ? typeof h == "string" ? this._bodyText = h : u.blob && Blob.prototype.isPrototypeOf(h) ? this._bodyBlob = h : u.formData && FormData.prototype.isPrototypeOf(h) ? this._bodyFormData = h : u.searchParams && URLSearchParams.prototype.isPrototypeOf(h) ? this._bodyText = h.toString() : u.arrayBuffer && u.blob && c(h) ? (this._bodyArrayBuffer = M(h.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(h) || l(h)) ? this._bodyArrayBuffer = M(h) : this._bodyText = h = Object.prototype.toString.call(h) : this._bodyText = "", this.headers.get("content-type") || (typeof h == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(h) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2855
+ this._bodyInit = h, h ? typeof h == "string" ? this._bodyText = h : u.blob && Blob.prototype.isPrototypeOf(h) ? this._bodyBlob = h : u.formData && FormData.prototype.isPrototypeOf(h) ? this._bodyFormData = h : u.searchParams && URLSearchParams.prototype.isPrototypeOf(h) ? this._bodyText = h.toString() : u.arrayBuffer && u.blob && c(h) ? (this._bodyArrayBuffer = D(h.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(h) || l(h)) ? this._bodyArrayBuffer = D(h) : this._bodyText = h = Object.prototype.toString.call(h) : this._bodyText = "", this.headers.get("content-type") || (typeof h == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(h) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2856
2856
  }, u.blob && (this.blob = function() {
2857
2857
  var h = y(this);
2858
2858
  if (h)
@@ -2865,15 +2865,15 @@ var kn = { exports: {} };
2865
2865
  throw new Error("could not read FormData body as blob");
2866
2866
  return Promise.resolve(new Blob([this._bodyText]));
2867
2867
  }, this.arrayBuffer = function() {
2868
- return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(T);
2868
+ return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b);
2869
2869
  }), this.text = function() {
2870
2870
  var h = y(this);
2871
2871
  if (h)
2872
2872
  return h;
2873
2873
  if (this._bodyBlob)
2874
- return P(this._bodyBlob);
2874
+ return C(this._bodyBlob);
2875
2875
  if (this._bodyArrayBuffer)
2876
- return Promise.resolve(B(this._bodyArrayBuffer));
2876
+ return Promise.resolve(U(this._bodyArrayBuffer));
2877
2877
  if (this._bodyFormData)
2878
2878
  throw new Error("could not read FormData body as text");
2879
2879
  return Promise.resolve(this._bodyText);
@@ -2888,50 +2888,50 @@ var kn = { exports: {} };
2888
2888
  var g = h.toUpperCase();
2889
2889
  return k.indexOf(g) > -1 ? g : h;
2890
2890
  }
2891
- function U(h, g) {
2891
+ function $(h, g) {
2892
2892
  g = g || {};
2893
2893
  var A = g.body;
2894
- if (h instanceof U) {
2894
+ if (h instanceof $) {
2895
2895
  if (h.bodyUsed)
2896
2896
  throw new TypeError("Already read");
2897
- this.url = h.url, this.credentials = h.credentials, g.headers || (this.headers = new m(h.headers)), this.method = h.method, this.mode = h.mode, this.signal = h.signal, !A && h._bodyInit != null && (A = h._bodyInit, h.bodyUsed = !0);
2897
+ this.url = h.url, this.credentials = h.credentials, g.headers || (this.headers = new v(h.headers)), this.method = h.method, this.mode = h.mode, this.signal = h.signal, !A && h._bodyInit != null && (A = h._bodyInit, h.bodyUsed = !0);
2898
2898
  } else
2899
2899
  this.url = String(h);
2900
- if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new m(g.headers)), this.method = G(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && A)
2900
+ if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new v(g.headers)), this.method = G(g.method || this.method || "GET"), this.mode = g.mode || this.mode || null, this.signal = g.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && A)
2901
2901
  throw new TypeError("Body not allowed for GET or HEAD requests");
2902
2902
  this._initBody(A);
2903
2903
  }
2904
- U.prototype.clone = function() {
2905
- return new U(this, { body: this._bodyInit });
2904
+ $.prototype.clone = function() {
2905
+ return new $(this, { body: this._bodyInit });
2906
2906
  };
2907
2907
  function vt(h) {
2908
2908
  var g = new FormData();
2909
2909
  return h.trim().split("&").forEach(function(A) {
2910
2910
  if (A) {
2911
- var X = A.split("="), q = X.shift().replace(/\+/g, " "), R = X.join("=").replace(/\+/g, " ");
2912
- g.append(decodeURIComponent(q), decodeURIComponent(R));
2911
+ var X = A.split("="), q = X.shift().replace(/\+/g, " "), P = X.join("=").replace(/\+/g, " ");
2912
+ g.append(decodeURIComponent(q), decodeURIComponent(P));
2913
2913
  }
2914
2914
  }), g;
2915
2915
  }
2916
2916
  function ut(h) {
2917
- var g = new m(), A = h.replace(/\r?\n[\t ]+/g, " ");
2917
+ var g = new v(), A = h.replace(/\r?\n[\t ]+/g, " ");
2918
2918
  return A.split(/\r?\n/).forEach(function(X) {
2919
- var q = X.split(":"), R = q.shift().trim();
2920
- if (R) {
2919
+ var q = X.split(":"), P = q.shift().trim();
2920
+ if (P) {
2921
2921
  var ze = q.join(":").trim();
2922
- g.append(R, ze);
2922
+ g.append(P, ze);
2923
2923
  }
2924
2924
  }), g;
2925
2925
  }
2926
- F.call(U.prototype);
2926
+ F.call($.prototype);
2927
2927
  function K(h, g) {
2928
- g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new m(g.headers), this.url = g.url || "", this._initBody(h);
2928
+ g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new v(g.headers), this.url = g.url || "", this._initBody(h);
2929
2929
  }
2930
2930
  F.call(K.prototype), K.prototype.clone = function() {
2931
2931
  return new K(this._bodyInit, {
2932
2932
  status: this.status,
2933
2933
  statusText: this.statusText,
2934
- headers: new m(this.headers),
2934
+ headers: new v(this.headers),
2935
2935
  url: this.url
2936
2936
  });
2937
2937
  }, K.error = function() {
@@ -2955,36 +2955,36 @@ var kn = { exports: {} };
2955
2955
  }
2956
2956
  function he(h, g) {
2957
2957
  return new Promise(function(A, X) {
2958
- var q = new U(h, g);
2958
+ var q = new $(h, g);
2959
2959
  if (q.signal && q.signal.aborted)
2960
2960
  return X(new a.DOMException("Aborted", "AbortError"));
2961
- var R = new XMLHttpRequest();
2961
+ var P = new XMLHttpRequest();
2962
2962
  function ze() {
2963
- R.abort();
2963
+ P.abort();
2964
2964
  }
2965
- R.onload = function() {
2965
+ P.onload = function() {
2966
2966
  var de = {
2967
- status: R.status,
2968
- statusText: R.statusText,
2969
- headers: ut(R.getAllResponseHeaders() || "")
2967
+ status: P.status,
2968
+ statusText: P.statusText,
2969
+ headers: ut(P.getAllResponseHeaders() || "")
2970
2970
  };
2971
- de.url = "responseURL" in R ? R.responseURL : de.headers.get("X-Request-URL");
2972
- var zr = "response" in R ? R.response : R.responseText;
2971
+ de.url = "responseURL" in P ? P.responseURL : de.headers.get("X-Request-URL");
2972
+ var zr = "response" in P ? P.response : P.responseText;
2973
2973
  A(new K(zr, de));
2974
- }, R.onerror = function() {
2974
+ }, P.onerror = function() {
2975
2975
  X(new TypeError("Network request failed"));
2976
- }, R.ontimeout = function() {
2976
+ }, P.ontimeout = function() {
2977
2977
  X(new TypeError("Network request failed"));
2978
- }, R.onabort = function() {
2978
+ }, P.onabort = function() {
2979
2979
  X(new a.DOMException("Aborted", "AbortError"));
2980
- }, R.open(q.method, q.url, !0), q.credentials === "include" ? R.withCredentials = !0 : q.credentials === "omit" && (R.withCredentials = !1), "responseType" in R && u.blob && (R.responseType = "blob"), q.headers.forEach(function(de, zr) {
2981
- R.setRequestHeader(zr, de);
2982
- }), q.signal && (q.signal.addEventListener("abort", ze), R.onreadystatechange = function() {
2983
- R.readyState === 4 && q.signal.removeEventListener("abort", ze);
2984
- }), R.send(typeof q._bodyInit > "u" ? null : q._bodyInit);
2980
+ }, P.open(q.method, q.url, !0), q.credentials === "include" ? P.withCredentials = !0 : q.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && u.blob && (P.responseType = "blob"), q.headers.forEach(function(de, zr) {
2981
+ P.setRequestHeader(zr, de);
2982
+ }), q.signal && (q.signal.addEventListener("abort", ze), P.onreadystatechange = function() {
2983
+ P.readyState === 4 && q.signal.removeEventListener("abort", ze);
2984
+ }), P.send(typeof q._bodyInit > "u" ? null : q._bodyInit);
2985
2985
  });
2986
2986
  }
2987
- return he.polyfill = !0, o.fetch || (o.fetch = he, o.Headers = m, o.Request = U, o.Response = K), a.Headers = m, a.Request = U, a.Response = K, a.fetch = he, Object.defineProperty(a, "__esModule", { value: !0 }), a;
2987
+ return he.polyfill = !0, o.fetch || (o.fetch = he, o.Headers = v, o.Request = $, o.Response = K), a.Headers = v, a.Request = $, a.Response = K, a.fetch = he, Object.defineProperty(a, "__esModule", { value: !0 }), a;
2988
2988
  })({});
2989
2989
  })(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
2990
2990
  var i = n;
@@ -2999,7 +2999,7 @@ const pr = /* @__PURE__ */ ci(_r), xc = /* @__PURE__ */ Iu({
2999
2999
  return e && (typeof Headers < "u" && e instanceof Headers || xc && _r.Headers && e instanceof _r.Headers ? t = wc(e) : Array.isArray(e) ? e.forEach(([r, n]) => {
3000
3000
  r && n !== void 0 && (t[r] = n);
3001
3001
  }) : t = e), t;
3002
- }, Di = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Nc = (e) => {
3002
+ }, Di = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), Lc = (e) => {
3003
3003
  if (!Array.isArray(e.query)) {
3004
3004
  const n = e, i = [`query=${encodeURIComponent(Di(n.query))}`];
3005
3005
  return e.variables && i.push(`variables=${encodeURIComponent(n.jsonSerializer.stringify(n.variables))}`), n.operationName && i.push(`operationName=${encodeURIComponent(n.operationName)}`), i.join("&");
@@ -3011,59 +3011,59 @@ const pr = /* @__PURE__ */ ci(_r), xc = /* @__PURE__ */ Iu({
3011
3011
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[o]) : void 0
3012
3012
  }), n), []);
3013
3013
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`;
3014
- }, Lc = (e) => (t) => se(void 0, null, function* () {
3014
+ }, Nc = (e) => (t) => se(void 0, null, function* () {
3015
3015
  var r;
3016
- const { url: n, query: i, variables: o, operationName: a, fetch: u, fetchOptions: c, middleware: s } = t, l = N({}, t.headers);
3016
+ const { url: n, query: i, variables: o, operationName: a, fetch: u, fetchOptions: c, middleware: s } = t, l = L({}, t.headers);
3017
3017
  let p = "", f;
3018
- e === "POST" ? (f = Rc(i, o, a, c.jsonSerializer), typeof f == "string" && (l["Content-Type"] = "application/json")) : p = Nc({
3018
+ e === "POST" ? (f = Rc(i, o, a, c.jsonSerializer), typeof f == "string" && (l["Content-Type"] = "application/json")) : p = Lc({
3019
3019
  query: i,
3020
3020
  variables: o,
3021
3021
  operationName: a,
3022
3022
  jsonSerializer: (r = c.jsonSerializer) != null ? r : si
3023
3023
  });
3024
- const v = N({
3024
+ const m = L({
3025
3025
  method: e,
3026
3026
  headers: l,
3027
3027
  body: f
3028
3028
  }, c);
3029
- let m = n, y = v;
3029
+ let v = n, y = m;
3030
3030
  if (s) {
3031
- const _ = yield Promise.resolve(s(oe(N({}, v), { url: n, operationName: a, variables: o }))), { url: T } = _, P = Oe(_, ["url"]);
3032
- m = T, y = P;
3031
+ const _ = yield Promise.resolve(s(oe(L({}, m), { url: n, operationName: a, variables: o }))), { url: b } = _, C = Oe(_, ["url"]);
3032
+ v = b, y = C;
3033
3033
  }
3034
- return p && (m = `${m}?${p}`), yield u(m, y);
3034
+ return p && (v = `${v}?${p}`), yield u(v, y);
3035
3035
  });
3036
3036
  let Cc = class {
3037
3037
  constructor(t, r = {}) {
3038
3038
  this.url = t, this.requestConfig = r, this.rawRequest = (...n) => se(this, null, function* () {
3039
- const [i, o, a] = n, u = Oc(i, o, a), c = this.requestConfig, { headers: s, fetch: l = pr, method: p = "POST", requestMiddleware: f, responseMiddleware: v } = c, m = Oe(c, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3040
- u.signal !== void 0 && (m.signal = u.signal);
3039
+ const [i, o, a] = n, u = Oc(i, o, a), c = this.requestConfig, { headers: s, fetch: l = pr, method: p = "POST", requestMiddleware: f, responseMiddleware: m } = c, v = Oe(c, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3040
+ u.signal !== void 0 && (v.signal = u.signal);
3041
3041
  const { operationName: _ } = Kr(u.query);
3042
3042
  return Wr({
3043
3043
  url: y,
3044
3044
  query: u.query,
3045
3045
  variables: u.variables,
3046
- headers: N(N({}, Jt(Yr(s))), Jt(u.requestHeaders)),
3046
+ headers: L(L({}, Jt(Yr(s))), Jt(u.requestHeaders)),
3047
3047
  operationName: _,
3048
3048
  fetch: l,
3049
3049
  method: p,
3050
- fetchOptions: m,
3050
+ fetchOptions: v,
3051
3051
  middleware: f
3052
- }).then((T) => (v && v(T), T)).catch((T) => {
3053
- throw v && v(T), T;
3052
+ }).then((b) => (m && m(b), b)).catch((b) => {
3053
+ throw m && m(b), b;
3054
3054
  });
3055
3055
  });
3056
3056
  }
3057
3057
  request(t, ...r) {
3058
3058
  return se(this, null, function* () {
3059
- const [n, i] = r, o = Sc(t, n, i), a = this.requestConfig, { headers: u, fetch: c = pr, method: s = "POST", requestMiddleware: l, responseMiddleware: p } = a, f = Oe(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: v } = this;
3059
+ const [n, i] = r, o = Sc(t, n, i), a = this.requestConfig, { headers: u, fetch: c = pr, method: s = "POST", requestMiddleware: l, responseMiddleware: p } = a, f = Oe(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: m } = this;
3060
3060
  o.signal !== void 0 && (f.signal = o.signal);
3061
- const { query: m, operationName: y } = Kr(o.document);
3061
+ const { query: v, operationName: y } = Kr(o.document);
3062
3062
  return Wr({
3063
- url: v,
3064
- query: m,
3063
+ url: m,
3064
+ query: v,
3065
3065
  variables: o.variables,
3066
- headers: N(N({}, Jt(Yr(u))), Jt(o.requestHeaders)),
3066
+ headers: L(L({}, Jt(Yr(u))), Jt(o.requestHeaders)),
3067
3067
  operationName: y,
3068
3068
  fetch: c,
3069
3069
  method: s,
@@ -3085,7 +3085,7 @@ let Cc = class {
3085
3085
  query: c,
3086
3086
  // @ts-expect-error TODO reconcile batch variables into system.
3087
3087
  variables: s,
3088
- headers: N(N({}, Jt(Yr(a))), Jt(i.requestHeaders)),
3088
+ headers: L(L({}, Jt(Yr(a))), Jt(i.requestHeaders)),
3089
3089
  operationName: void 0,
3090
3090
  fetch: (n = this.requestConfig.fetch) != null ? n : pr,
3091
3091
  method: this.requestConfig.method || "POST",
@@ -3114,10 +3114,10 @@ let Cc = class {
3114
3114
  };
3115
3115
  const Wr = (e) => se(void 0, null, function* () {
3116
3116
  var t, r;
3117
- const { query: n, variables: i, fetchOptions: o } = e, a = Lc(Tc((t = e.method) != null ? t : "post")), u = Array.isArray(e.query), c = yield a(e), s = yield Pc(c, (r = o.jsonSerializer) != null ? r : si), l = Array.isArray(s) ? !s.some(({ data: f }) => !f) : !!s.data, p = Array.isArray(s) || !s.errors || Array.isArray(s.errors) && !s.errors.length || o.errorPolicy === "all" || o.errorPolicy === "ignore";
3117
+ const { query: n, variables: i, fetchOptions: o } = e, a = Nc(Tc((t = e.method) != null ? t : "post")), u = Array.isArray(e.query), c = yield a(e), s = yield Pc(c, (r = o.jsonSerializer) != null ? r : si), l = Array.isArray(s) ? !s.some(({ data: f }) => !f) : !!s.data, p = Array.isArray(s) || !s.errors || Array.isArray(s.errors) && !s.errors.length || o.errorPolicy === "all" || o.errorPolicy === "ignore";
3118
3118
  if (c.ok && p && l) {
3119
- const f = s, v = Oe(f, ["errors"]), m = o.errorPolicy === "ignore" ? v : s;
3120
- return oe(N({}, u ? { data: m } : m), {
3119
+ const f = s, m = Oe(f, ["errors"]), v = o.errorPolicy === "ignore" ? m : s;
3120
+ return oe(L({}, u ? { data: v } : v), {
3121
3121
  headers: c.headers,
3122
3122
  status: c.status
3123
3123
  });
@@ -3125,9 +3125,9 @@ const Wr = (e) => se(void 0, null, function* () {
3125
3125
  const f = typeof s == "string" ? {
3126
3126
  error: s
3127
3127
  } : s;
3128
- throw new Na(
3128
+ throw new La(
3129
3129
  // @ts-expect-error TODO
3130
- oe(N({}, f), { status: c.status, headers: c.headers }),
3130
+ oe(L({}, f), { status: c.status, headers: c.headers }),
3131
3131
  { query: n, variables: i }
3132
3132
  );
3133
3133
  }
@@ -3174,7 +3174,7 @@ var br = function() {
3174
3174
  }
3175
3175
  return e;
3176
3176
  }, br.apply(this, arguments);
3177
- }, fr = /* @__PURE__ */ new Map(), Dn = /* @__PURE__ */ new Map(), La = !0, Er = !1;
3177
+ }, fr = /* @__PURE__ */ new Map(), Dn = /* @__PURE__ */ new Map(), Na = !0, Er = !1;
3178
3178
  function Ca(e) {
3179
3179
  return e.replace(/[\s,]+/g, " ").trim();
3180
3180
  }
@@ -3186,7 +3186,7 @@ function Mc(e) {
3186
3186
  return e.definitions.forEach(function(n) {
3187
3187
  if (n.kind === "FragmentDefinition") {
3188
3188
  var i = n.name.value, o = kc(n.loc), a = Dn.get(i);
3189
- a && !a.has(o) ? La && console.warn("Warning: fragment with name " + i + ` already exists.
3189
+ a && !a.has(o) ? Na && console.warn("Warning: fragment with name " + i + ` already exists.
3190
3190
  graphql-tag enforces all fragment names across your application to be unique; read more about
3191
3191
  this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || Dn.set(i, a = /* @__PURE__ */ new Set()), a.add(o), t.has(o) || (t.add(o), r.push(n));
3192
3192
  } else
@@ -3230,7 +3230,7 @@ function $c() {
3230
3230
  fr.clear(), Dn.clear();
3231
3231
  }
3232
3232
  function jc() {
3233
- La = !1;
3233
+ Na = !1;
3234
3234
  }
3235
3235
  function Bc() {
3236
3236
  Er = !0;
@@ -3482,7 +3482,7 @@ function Qc(e, t = Jc) {
3482
3482
  (i) => e.request(
3483
3483
  Vc,
3484
3484
  r,
3485
- N(N({}, n), i)
3485
+ L(L({}, n), i)
3486
3486
  ),
3487
3487
  "PushPayload",
3488
3488
  "mutation",
@@ -3494,7 +3494,7 @@ function Qc(e, t = Jc) {
3494
3494
  (i) => e.request(
3495
3495
  Hc,
3496
3496
  r,
3497
- N(N({}, n), i)
3497
+ L(L({}, n), i)
3498
3498
  ),
3499
3499
  "PushPayloadCompressed",
3500
3500
  "mutation",
@@ -3506,7 +3506,7 @@ function Qc(e, t = Jc) {
3506
3506
  (i) => e.request(
3507
3507
  Gc,
3508
3508
  r,
3509
- N(N({}, n), i)
3509
+ L(L({}, n), i)
3510
3510
  ),
3511
3511
  "identifySession",
3512
3512
  "mutation",
@@ -3518,7 +3518,7 @@ function Qc(e, t = Jc) {
3518
3518
  (i) => e.request(
3519
3519
  qc,
3520
3520
  r,
3521
- N(N({}, n), i)
3521
+ L(L({}, n), i)
3522
3522
  ),
3523
3523
  "addSessionProperties",
3524
3524
  "mutation",
@@ -3530,7 +3530,7 @@ function Qc(e, t = Jc) {
3530
3530
  (i) => e.request(
3531
3531
  zc,
3532
3532
  r,
3533
- N(N({}, n), i)
3533
+ L(L({}, n), i)
3534
3534
  ),
3535
3535
  "pushMetrics",
3536
3536
  "mutation",
@@ -3542,7 +3542,7 @@ function Qc(e, t = Jc) {
3542
3542
  (i) => e.request(
3543
3543
  Xc,
3544
3544
  r,
3545
- N(N({}, n), i)
3545
+ L(L({}, n), i)
3546
3546
  ),
3547
3547
  "addSessionFeedback",
3548
3548
  "mutation",
@@ -3554,7 +3554,7 @@ function Qc(e, t = Jc) {
3554
3554
  (i) => e.request(
3555
3555
  Kc,
3556
3556
  r,
3557
- N(N({}, n), i)
3557
+ L(L({}, n), i)
3558
3558
  ),
3559
3559
  "initializeSession",
3560
3560
  "mutation",
@@ -3563,7 +3563,7 @@ function Qc(e, t = Jc) {
3563
3563
  },
3564
3564
  Ignore(r, n) {
3565
3565
  return t(
3566
- (i) => e.request(Wc, r, N(N({}, n), i)),
3566
+ (i) => e.request(Wc, r, L(L({}, n), i)),
3567
3567
  "Ignore",
3568
3568
  "query",
3569
3569
  r
@@ -3574,7 +3574,7 @@ function Qc(e, t = Jc) {
3574
3574
  (i) => e.request(
3575
3575
  Yc,
3576
3576
  r,
3577
- N(N({}, n), i)
3577
+ L(L({}, n), i)
3578
3578
  ),
3579
3579
  "GetSamplingConfig",
3580
3580
  "query",
@@ -3894,7 +3894,7 @@ const pi = 10, fi = 1e3, hi = 500, ll = [ja.BillingQuotaExceeded.toString()], pl
3894
3894
  try {
3895
3895
  return yield t();
3896
3896
  } catch (a) {
3897
- if (a instanceof Na && !pl(a))
3897
+ if (a instanceof La && !pl(a))
3898
3898
  throw a;
3899
3899
  if (o < pi)
3900
3900
  return yield new Promise(
@@ -3936,7 +3936,7 @@ function Bi(e) {
3936
3936
  function Fi(e) {
3937
3937
  return Ha(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
3938
3938
  [t]: Va(e[t].key)
3939
- })).reduce((t, r) => N(N({}, t), r), {}) : e.key;
3939
+ })).reduce((t, r) => L(L({}, t), r), {}) : e.key;
3940
3940
  }
3941
3941
  let xl = class {
3942
3942
  constructor(t, r) {
@@ -3954,7 +3954,7 @@ let xl = class {
3954
3954
  var n;
3955
3955
  r.category !== et.WebVital && r.name !== Fa || r.name !== "Jank" && this.client.track(
3956
3956
  `${Ol}:${r.name.toLowerCase()}`,
3957
- oe(N({}, (n = r.tags) == null ? void 0 : n.map((i) => ({ [i.name]: i.value })).reduce((i, o) => N(N({}, i), o), {})), {
3957
+ oe(L({}, (n = r.tags) == null ? void 0 : n.map((i) => ({ [i.name]: i.value })).reduce((i, o) => L(L({}, i), o), {})), {
3958
3958
  category: r.category,
3959
3959
  group: r.group,
3960
3960
  sessionID: t
@@ -3965,7 +3965,7 @@ let xl = class {
3965
3965
  identify(t, r, n = {}, i) {
3966
3966
  }
3967
3967
  error(t, r) {
3968
- this.client.track(Sl, oe(N({}, r), {
3968
+ this.client.track(Sl, oe(L({}, r), {
3969
3969
  sessionID: t
3970
3970
  }));
3971
3971
  }
@@ -3973,12 +3973,12 @@ let xl = class {
3973
3973
  const n = r.event;
3974
3974
  this.client.track(
3975
3975
  n ? `${ji}:${n}` : ji,
3976
- oe(N({}, r), {
3976
+ oe(L({}, r), {
3977
3977
  sessionID: t
3978
3978
  })
3979
3979
  );
3980
3980
  }
3981
- }, Nl = class extends da {
3981
+ }, Ll = class extends da {
3982
3982
  constructor(t, r) {
3983
3983
  super(), Pe(this, "client"), this.client = new xl(t, r);
3984
3984
  }
@@ -4013,8 +4013,8 @@ let xl = class {
4013
4013
  return this._bufferCall("track", [t, r]);
4014
4014
  }
4015
4015
  };
4016
- const Ll = "9.18.15", Cl = {
4017
- version: Ll
4016
+ const Nl = "9.18.16", Cl = {
4017
+ version: Nl
4018
4018
  }, Rl = Cl.version;
4019
4019
  function Pl(e) {
4020
4020
  if (e.id.length)
@@ -4136,7 +4136,7 @@ var Ul = Object.defineProperty, $l = Object.defineProperties, jl = Object.getOwn
4136
4136
  for (var r of Hi(t))
4137
4137
  Fl.call(t, r) && Vn(e, r, t[r]);
4138
4138
  return e;
4139
- }, Z = (e, t) => $l(e, jl(t)), D = (e, t, r) => Vn(e, typeof t != "symbol" ? t + "" : t, r), Ur = (e, t, r) => new Promise((n, i) => {
4139
+ }, Z = (e, t) => $l(e, jl(t)), M = (e, t, r) => Vn(e, typeof t != "symbol" ? t + "" : t, r), Ur = (e, t, r) => new Promise((n, i) => {
4140
4140
  var o = (c) => {
4141
4141
  try {
4142
4142
  u(r.next(c));
@@ -4195,19 +4195,19 @@ function Vl() {
4195
4195
  throw new TypeError("Eval Origin must be an Object or StackFrame");
4196
4196
  },
4197
4197
  toString: function() {
4198
- var y = this.getFileName() || "", _ = this.getLineNumber() || "", T = this.getColumnNumber() || "", P = this.getFunctionName() || "";
4199
- return this.getIsEval() ? y ? "[eval] (" + y + ":" + _ + ":" + T + ")" : "[eval]:" + _ + ":" + T : P ? P + " (" + y + ":" + _ + ":" + T + ")" : y + ":" + _ + ":" + T;
4198
+ var y = this.getFileName() || "", _ = this.getLineNumber() || "", b = this.getColumnNumber() || "", C = this.getFunctionName() || "";
4199
+ return this.getIsEval() ? y ? "[eval] (" + y + ":" + _ + ":" + b + ")" : "[eval]:" + _ + ":" + b : C ? C + " (" + y + ":" + _ + ":" + b + ")" : y + ":" + _ + ":" + b;
4200
4200
  }
4201
4201
  }, p.fromString = function(y) {
4202
- var _ = y.indexOf("("), T = y.lastIndexOf(")"), P = y.substring(0, _), B = y.substring(_ + 1, T).split(","), M = y.substring(T + 1);
4203
- if (M.indexOf("@") === 0)
4204
- var F = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(M, ""), k = F[1], G = F[2], U = F[3];
4202
+ var _ = y.indexOf("("), b = y.lastIndexOf(")"), C = y.substring(0, _), U = y.substring(_ + 1, b).split(","), D = y.substring(b + 1);
4203
+ if (D.indexOf("@") === 0)
4204
+ var F = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(D, ""), k = F[1], G = F[2], $ = F[3];
4205
4205
  return new p({
4206
- functionName: P,
4207
- args: B || void 0,
4206
+ functionName: C,
4207
+ args: U || void 0,
4208
4208
  fileName: k,
4209
4209
  lineNumber: G || void 0,
4210
- columnNumber: U || void 0
4210
+ columnNumber: $ || void 0
4211
4211
  });
4212
4212
  };
4213
4213
  for (var f = 0; f < o.length; f++)
@@ -4216,20 +4216,20 @@ function Vl() {
4216
4216
  this[y] = !!_;
4217
4217
  };
4218
4218
  }(o[f]);
4219
- for (var v = 0; v < a.length; v++)
4220
- p.prototype["get" + n(a[v])] = i(a[v]), p.prototype["set" + n(a[v])] = /* @__PURE__ */ function(y) {
4219
+ for (var m = 0; m < a.length; m++)
4220
+ p.prototype["get" + n(a[m])] = i(a[m]), p.prototype["set" + n(a[m])] = /* @__PURE__ */ function(y) {
4221
4221
  return function(_) {
4222
4222
  if (!r(_))
4223
4223
  throw new TypeError(y + " must be a Number");
4224
4224
  this[y] = Number(_);
4225
4225
  };
4226
- }(a[v]);
4227
- for (var m = 0; m < u.length; m++)
4228
- p.prototype["get" + n(u[m])] = i(u[m]), p.prototype["set" + n(u[m])] = /* @__PURE__ */ function(y) {
4226
+ }(a[m]);
4227
+ for (var v = 0; v < u.length; v++)
4228
+ p.prototype["get" + n(u[v])] = i(u[v]), p.prototype["set" + n(u[v])] = /* @__PURE__ */ function(y) {
4229
4229
  return function(_) {
4230
4230
  this[y] = String(_);
4231
4231
  };
4232
- }(u[m]);
4232
+ }(u[v]);
4233
4233
  return p;
4234
4234
  });
4235
4235
  }(Gi)), Gi.exports;
@@ -4271,10 +4271,10 @@ function Vl() {
4271
4271
  c.indexOf("(eval ") > -1 && (c = c.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
4272
4272
  var s = c.replace(/^\s+/, "").replace(/\(eval code/g, "("), l = s.match(/ (\((.+):(\d+):(\d+)\)$)/);
4273
4273
  s = l ? s.replace(l[0], "") : s;
4274
- var p = s.split(/\s+/).slice(1), f = this.extractLocation(l ? l[1] : p.pop()), v = p.join(" ") || void 0, m = ["eval", "<anonymous>"].indexOf(f[0]) > -1 ? void 0 : f[0];
4274
+ var p = s.split(/\s+/).slice(1), f = this.extractLocation(l ? l[1] : p.pop()), m = p.join(" ") || void 0, v = ["eval", "<anonymous>"].indexOf(f[0]) > -1 ? void 0 : f[0];
4275
4275
  return new r({
4276
- functionName: v,
4277
- fileName: m,
4276
+ functionName: m,
4277
+ fileName: v,
4278
4278
  lineNumber: f[1],
4279
4279
  columnNumber: f[2],
4280
4280
  source: c
@@ -4341,12 +4341,12 @@ function Vl() {
4341
4341
  return !!c.match(n) && !c.match(/^Error created at/);
4342
4342
  }, this);
4343
4343
  return u.map(function(c) {
4344
- var s = c.split("@"), l = this.extractLocation(s.pop()), p = s.shift() || "", f = p.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, v;
4345
- p.match(/\(([^)]*)\)/) && (v = p.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
4346
- var m = v === void 0 || v === "[arguments not available]" ? void 0 : v.split(",");
4344
+ var s = c.split("@"), l = this.extractLocation(s.pop()), p = s.shift() || "", f = p.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, m;
4345
+ p.match(/\(([^)]*)\)/) && (m = p.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
4346
+ var v = m === void 0 || m === "[arguments not available]" ? void 0 : m.split(",");
4347
4347
  return new r({
4348
4348
  functionName: f,
4349
- args: m,
4349
+ args: v,
4350
4350
  fileName: l[0],
4351
4351
  lineNumber: l[1],
4352
4352
  columnNumber: l[2],
@@ -4464,7 +4464,7 @@ const zl = (e, { enablePromisePatch: t }) => {
4464
4464
  }
4465
4465
  }, i = window.Promise, o = class extends i {
4466
4466
  constructor(a) {
4467
- super(a), D(this, "promiseCreationError"), this.promiseCreationError = new Error();
4467
+ super(a), M(this, "promiseCreationError"), this.promiseCreationError = new Error();
4468
4468
  }
4469
4469
  getStack() {
4470
4470
  return this.promiseCreationError;
@@ -4627,23 +4627,23 @@ function me(e, t, r) {
4627
4627
  if (n)
4628
4628
  return r.unshift(t), n[e].apply(n, Zl([], Ql(r), !1));
4629
4629
  }
4630
- var $;
4630
+ var j;
4631
4631
  (function(e) {
4632
4632
  e[e.NONE = 0] = "NONE", e[e.ERROR = 30] = "ERROR", e[e.WARN = 50] = "WARN", e[e.INFO = 60] = "INFO", e[e.DEBUG = 70] = "DEBUG", e[e.VERBOSE = 80] = "VERBOSE", e[e.ALL = 9999] = "ALL";
4633
- })($ || ($ = {}));
4633
+ })(j || (j = {}));
4634
4634
  function ep(e, t) {
4635
- e < $.NONE ? e = $.NONE : e > $.ALL && (e = $.ALL), t = t || {};
4635
+ e < j.NONE ? e = j.NONE : e > j.ALL && (e = j.ALL), t = t || {};
4636
4636
  function r(n, i) {
4637
4637
  var o = t[n];
4638
4638
  return typeof o == "function" && e >= i ? o.bind(t) : function() {
4639
4639
  };
4640
4640
  }
4641
4641
  return {
4642
- error: r("error", $.ERROR),
4643
- warn: r("warn", $.WARN),
4644
- info: r("info", $.INFO),
4645
- debug: r("debug", $.DEBUG),
4646
- verbose: r("verbose", $.VERBOSE)
4642
+ error: r("error", j.ERROR),
4643
+ warn: r("warn", j.WARN),
4644
+ info: r("info", j.INFO),
4645
+ debug: r("debug", j.DEBUG),
4646
+ verbose: r("verbose", j.VERBOSE)
4647
4647
  };
4648
4648
  }
4649
4649
  var rp = function(e, t) {
@@ -4681,14 +4681,14 @@ var rp = function(e, t) {
4681
4681
  }
4682
4682
  var r = this, n = function(i, o) {
4683
4683
  var a, u, c;
4684
- if (o === void 0 && (o = { logLevel: $.INFO }), i === r) {
4684
+ if (o === void 0 && (o = { logLevel: j.INFO }), i === r) {
4685
4685
  var s = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
4686
4686
  return r.error((a = s.stack) !== null && a !== void 0 ? a : s.message), !1;
4687
4687
  }
4688
4688
  typeof o == "number" && (o = {
4689
4689
  logLevel: o
4690
4690
  });
4691
- var l = Ft("diag"), p = ep((u = o.logLevel) !== null && u !== void 0 ? u : $.INFO, i);
4691
+ var l = Ft("diag"), p = ep((u = o.logLevel) !== null && u !== void 0 ? u : j.INFO, i);
4692
4692
  if (l && !o.suppressOverrideMessage) {
4693
4693
  var f = (c = new Error().stack) !== null && c !== void 0 ? c : "<failed to generate stacktrace>";
4694
4694
  l.warn("Current logger will be overwritten from " + f), p.warn("Current logger will overwrite one already registered from " + f);
@@ -4930,14 +4930,14 @@ var fp = (
4930
4930
  return t;
4931
4931
  }(vi)
4932
4932
  ), qa = new hp(), Ep = new dp(), Tp = new mp(), wp = new yp(), Sp = new vp(), Op = new gp(), Ap = new _p(), xp = new bp();
4933
- function Np() {
4933
+ function Lp() {
4934
4934
  return qa;
4935
4935
  }
4936
4936
  var xt;
4937
4937
  (function(e) {
4938
4938
  e[e.INT = 0] = "INT", e[e.DOUBLE = 1] = "DOUBLE";
4939
4939
  })(xt || (xt = {}));
4940
- var Lp = {
4940
+ var Np = {
4941
4941
  get: function(e, t) {
4942
4942
  if (e != null)
4943
4943
  return e[t];
@@ -5182,7 +5182,7 @@ var Sr;
5182
5182
  (function(e) {
5183
5183
  e[e.UNSET = 0] = "UNSET", e[e.OK = 1] = "OK", e[e.ERROR = 2] = "ERROR";
5184
5184
  })(Sr || (Sr = {}));
5185
- var L = Br.getInstance(), E = dt.instance(), Wp = (
5185
+ var N = Br.getInstance(), T = dt.instance(), Wp = (
5186
5186
  /** @class */
5187
5187
  function() {
5188
5188
  function e() {
@@ -5246,7 +5246,7 @@ var rn = "propagation", rf = new Qp(), nf = (
5246
5246
  }, e.prototype.inject = function(t, r, n) {
5247
5247
  return n === void 0 && (n = Cp), this._getGlobalPropagator().inject(t, r, n);
5248
5248
  }, e.prototype.extract = function(t, r, n) {
5249
- return n === void 0 && (n = Lp), this._getGlobalPropagator().extract(t, r, n);
5249
+ return n === void 0 && (n = Np), this._getGlobalPropagator().extract(t, r, n);
5250
5250
  }, e.prototype.fields = function() {
5251
5251
  return this._getGlobalPropagator().fields();
5252
5252
  }, e.prototype.disable = function() {
@@ -5274,7 +5274,7 @@ var rn = "propagation", rf = new Qp(), nf = (
5274
5274
  He(nn, dt.instance()), this._proxyTracerProvider = new Yi();
5275
5275
  }, e;
5276
5276
  }()
5277
- ), C = of.getInstance(), Za = di("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
5277
+ ), R = of.getInstance(), Za = di("OpenTelemetry SDK Context Key SUPPRESS_TRACING");
5278
5278
  function ts(e) {
5279
5279
  return e.setValue(Za, !0);
5280
5280
  }
@@ -5389,11 +5389,11 @@ function hr(e) {
5389
5389
  for (var i = rs(Object.entries(e)), o = i.next(); !o.done; o = i.next()) {
5390
5390
  var a = df(o.value, 2), u = a[0], c = a[1];
5391
5391
  if (!vf(u)) {
5392
- E.warn("Invalid attribute key: " + u);
5392
+ T.warn("Invalid attribute key: " + u);
5393
5393
  continue;
5394
5394
  }
5395
5395
  if (!ns(c)) {
5396
- E.warn("Invalid attribute value set for key: " + u);
5396
+ T.warn("Invalid attribute value set for key: " + u);
5397
5397
  continue;
5398
5398
  }
5399
5399
  Array.isArray(c) ? n[u] = c.slice() : n[u] = c;
@@ -5454,7 +5454,7 @@ function is(e) {
5454
5454
  }
5455
5455
  function yf() {
5456
5456
  return function(e) {
5457
- E.error(gf(e));
5457
+ T.error(gf(e));
5458
5458
  };
5459
5459
  }
5460
5460
  function gf(e) {
@@ -5471,7 +5471,7 @@ function _f(e) {
5471
5471
  return t;
5472
5472
  }
5473
5473
  var bf = yf();
5474
- function Nt(e) {
5474
+ function Lt(e) {
5475
5475
  try {
5476
5476
  bf(e);
5477
5477
  } catch {
@@ -5521,7 +5521,7 @@ var Af = [
5521
5521
  function xf(e) {
5522
5522
  return Af.indexOf(e) > -1;
5523
5523
  }
5524
- var dr = 1 / 0, vr = 128, Nf = 128, Lf = 128, os = {
5524
+ var dr = 1 / 0, vr = 128, Lf = 128, Nf = 128, os = {
5525
5525
  OTEL_SDK_DISABLED: !1,
5526
5526
  CONTAINER_NAME: "",
5527
5527
  ECS_CONTAINER_METADATA_URI_V4: "",
@@ -5555,7 +5555,7 @@ var dr = 1 / 0, vr = 128, Nf = 128, Lf = 128, os = {
5555
5555
  OTEL_EXPORTER_OTLP_METRICS_TIMEOUT: 1e4,
5556
5556
  OTEL_EXPORTER_OTLP_LOGS_TIMEOUT: 1e4,
5557
5557
  OTEL_EXPORTER_ZIPKIN_ENDPOINT: "http://localhost:9411/api/v2/spans",
5558
- OTEL_LOG_LEVEL: $.INFO,
5558
+ OTEL_LOG_LEVEL: j.INFO,
5559
5559
  OTEL_NO_PATCH_MODULES: [],
5560
5560
  OTEL_PROPAGATORS: ["tracecontext", "baggage"],
5561
5561
  OTEL_RESOURCE_ATTRIBUTES: "",
@@ -5568,8 +5568,8 @@ var dr = 1 / 0, vr = 128, Nf = 128, Lf = 128, os = {
5568
5568
  OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT: vr,
5569
5569
  OTEL_SPAN_EVENT_COUNT_LIMIT: 128,
5570
5570
  OTEL_SPAN_LINK_COUNT_LIMIT: 128,
5571
- OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT: Nf,
5572
- OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT: Lf,
5571
+ OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT: Lf,
5572
+ OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT: Nf,
5573
5573
  OTEL_TRACES_EXPORTER: "",
5574
5574
  OTEL_TRACES_SAMPLER: pt.ParentBasedAlwaysOn,
5575
5575
  OTEL_TRACES_SAMPLER_ARG: "",
@@ -5621,13 +5621,13 @@ function Pf(e, t, r, n) {
5621
5621
  }));
5622
5622
  }
5623
5623
  var If = {
5624
- ALL: $.ALL,
5625
- VERBOSE: $.VERBOSE,
5626
- DEBUG: $.DEBUG,
5627
- INFO: $.INFO,
5628
- WARN: $.WARN,
5629
- ERROR: $.ERROR,
5630
- NONE: $.NONE
5624
+ ALL: j.ALL,
5625
+ VERBOSE: j.VERBOSE,
5626
+ DEBUG: j.DEBUG,
5627
+ INFO: j.INFO,
5628
+ WARN: j.WARN,
5629
+ ERROR: j.ERROR,
5630
+ NONE: j.NONE
5631
5631
  };
5632
5632
  function kf(e, t, r) {
5633
5633
  var n = r[e];
@@ -5694,7 +5694,7 @@ function Vt(e) {
5694
5694
  var t = nt(Ti()), r = nt(typeof e == "number" ? e : ot.now());
5695
5695
  return ss(t, r);
5696
5696
  }
5697
- function Ne(e) {
5697
+ function Le(e) {
5698
5698
  if (wi(e))
5699
5699
  return e;
5700
5700
  if (typeof e == "number")
@@ -5756,7 +5756,7 @@ var Jf = function(e) {
5756
5756
  try {
5757
5757
  c.inject(t, r, n);
5758
5758
  } catch (s) {
5759
- E.warn("Failed to inject with " + c.constructor.name + ". Err: " + s.message);
5759
+ T.warn("Failed to inject with " + c.constructor.name + ". Err: " + s.message);
5760
5760
  }
5761
5761
  }
5762
5762
  } catch (s) {
@@ -5773,7 +5773,7 @@ var Jf = function(e) {
5773
5773
  try {
5774
5774
  return o.extract(i, r, n);
5775
5775
  } catch (a) {
5776
- E.warn("Failed to extract with " + o.constructor.name + ". Err: " + a.message);
5776
+ T.warn("Failed to extract with " + o.constructor.name + ". Err: " + a.message);
5777
5777
  }
5778
5778
  return i;
5779
5779
  }, t);
@@ -5838,7 +5838,7 @@ var cs = (
5838
5838
  function e() {
5839
5839
  }
5840
5840
  return e.prototype.inject = function(t, r, n) {
5841
- var i = C.getSpanContext(t);
5841
+ var i = R.getSpanContext(t);
5842
5842
  if (!(!i || bi(t) || !Fr(i))) {
5843
5843
  var o = sh + "-" + i.traceId + "-" + i.spanId + "-0" + Number(i.traceFlags || Et.NONE).toString(16);
5844
5844
  n.set(r, mr, o), i.traceState && n.set(r, sn, i.traceState.serialize());
@@ -5859,7 +5859,7 @@ var cs = (
5859
5859
  var c = Array.isArray(u) ? u.join(",") : u;
5860
5860
  a.traceState = new ah(typeof c == "string" ? c : void 0);
5861
5861
  }
5862
- return C.setSpanContext(t, a);
5862
+ return R.setSpanContext(t, a);
5863
5863
  }, e.prototype.fields = function() {
5864
5864
  return [mr, sn];
5865
5865
  }, e;
@@ -5938,8 +5938,8 @@ function vs(e, t, r, n) {
5938
5938
  delete i[c];
5939
5939
  else {
5940
5940
  if (ye(l) && ye(p)) {
5941
- var f = n.get(l) || [], v = n.get(p) || [];
5942
- f.push({ obj: e, key: c }), v.push({ obj: t, key: c }), n.set(l, f), n.set(p, v);
5941
+ var f = n.get(l) || [], m = n.get(p) || [];
5942
+ f.push({ obj: e, key: c }), m.push({ obj: t, key: c }), n.set(l, f), n.set(p, m);
5943
5943
  }
5944
5944
  i[c] = vs(i[c], s, r, n);
5945
5945
  }
@@ -6007,7 +6007,7 @@ function gs(e, t) {
6007
6007
  }
6008
6008
  return !1;
6009
6009
  }
6010
- var Nh = (
6010
+ var Lh = (
6011
6011
  /** @class */
6012
6012
  function() {
6013
6013
  function e() {
@@ -6028,7 +6028,7 @@ var Nh = (
6028
6028
  this._reject(t);
6029
6029
  }, e;
6030
6030
  }()
6031
- ), Lh = function(e, t) {
6031
+ ), Nh = function(e, t) {
6032
6032
  var r = typeof Symbol == "function" && e[Symbol.iterator];
6033
6033
  if (!r) return e;
6034
6034
  var n = r.call(e), i, o = [], a;
@@ -6052,7 +6052,7 @@ var Nh = (
6052
6052
  /** @class */
6053
6053
  function() {
6054
6054
  function e(t, r) {
6055
- this._callback = t, this._that = r, this._isCalled = !1, this._deferred = new Nh();
6055
+ this._callback = t, this._that = r, this._isCalled = !1, this._deferred = new Lh();
6056
6056
  }
6057
6057
  return Object.defineProperty(e.prototype, "isCalled", {
6058
6058
  get: function() {
@@ -6072,7 +6072,7 @@ var Nh = (
6072
6072
  if (!this._isCalled) {
6073
6073
  this._isCalled = !0;
6074
6074
  try {
6075
- Promise.resolve((t = this._callback).call.apply(t, Ch([this._that], Lh(n), !1))).then(function(o) {
6075
+ Promise.resolve((t = this._callback).call.apply(t, Ch([this._that], Nh(n), !1))).then(function(o) {
6076
6076
  return r._deferred.resolve(o);
6077
6077
  }, function(o) {
6078
6078
  return r._deferred.reject(o);
@@ -6087,7 +6087,7 @@ var Nh = (
6087
6087
  );
6088
6088
  function Ph(e, t) {
6089
6089
  return new Promise(function(r) {
6090
- L.with(ts(L.active()), function() {
6090
+ N.with(ts(N.active()), function() {
6091
6091
  e.export(t, function(n) {
6092
6092
  r(n);
6093
6093
  });
@@ -6184,7 +6184,7 @@ function Fh(e) {
6184
6184
  });
6185
6185
  }
6186
6186
  function Vh(e) {
6187
- var t, r, n = e.tracerProvider || C.getTracerProvider(), i = e.meterProvider || _t.getMeterProvider(), o = e.loggerProvider || Es.getLoggerProvider(), a = (r = (t = e.instrumentations) === null || t === void 0 ? void 0 : t.flat()) !== null && r !== void 0 ? r : [];
6187
+ var t, r, n = e.tracerProvider || R.getTracerProvider(), i = e.meterProvider || _t.getMeterProvider(), o = e.loggerProvider || Es.getLoggerProvider(), a = (r = (t = e.instrumentations) === null || t === void 0 ? void 0 : t.flat()) !== null && r !== void 0 ? r : [];
6188
6188
  return Bh(a, n, i, o), function() {
6189
6189
  Fh(a);
6190
6190
  };
@@ -6283,9 +6283,9 @@ var it = Ge, Xn = function() {
6283
6283
  /** @class */
6284
6284
  function() {
6285
6285
  function e(t, r, n) {
6286
- this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = E.createComponentLogger({
6286
+ this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = T.createComponentLogger({
6287
6287
  namespace: t
6288
- }), this._tracer = C.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = Es.getLogger(t, r), this._updateMetricInstruments();
6288
+ }), this._tracer = R.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = Es.getLogger(t, r), this._updateMetricInstruments();
6289
6289
  }
6290
6290
  return Object.defineProperty(e.prototype, "meter", {
6291
6291
  /* Returns meter */
@@ -6422,7 +6422,7 @@ var Xh = "exception.type", Kh = "exception.message", Wh = "exception.stacktrace"
6422
6422
  return e.prototype.spanContext = function() {
6423
6423
  return this._spanContext;
6424
6424
  }, e.prototype.setAttribute = function(t, r) {
6425
- return r == null || this._isSpanEnded() ? this : t.length === 0 ? (E.warn("Invalid attribute key: " + t), this) : ns(r) ? Object.keys(this.attributes).length >= this._spanLimits.attributeCountLimit && !Object.prototype.hasOwnProperty.call(this.attributes, t) ? (this._droppedAttributesCount++, this) : (this.attributes[t] = this._truncateToSize(r), this) : (E.warn("Invalid attribute value set for key: " + t), this);
6425
+ return r == null || this._isSpanEnded() ? this : t.length === 0 ? (T.warn("Invalid attribute key: " + t), this) : ns(r) ? Object.keys(this.attributes).length >= this._spanLimits.attributeCountLimit && !Object.prototype.hasOwnProperty.call(this.attributes, t) ? (this._droppedAttributesCount++, this) : (this.attributes[t] = this._truncateToSize(r), this) : (T.warn("Invalid attribute value set for key: " + t), this);
6426
6426
  }, e.prototype.setAttributes = function(t) {
6427
6427
  var r, n;
6428
6428
  try {
@@ -6444,8 +6444,8 @@ var Xh = "exception.type", Kh = "exception.message", Wh = "exception.stacktrace"
6444
6444
  if (this._isSpanEnded())
6445
6445
  return this;
6446
6446
  if (this._spanLimits.eventCountLimit === 0)
6447
- return E.warn("No events allowed."), this._droppedEventsCount++, this;
6448
- this.events.length >= this._spanLimits.eventCountLimit && (this._droppedEventsCount === 0 && E.debug("Dropping extra events."), this.events.shift(), this._droppedEventsCount++), Qi(r) && (Qi(n) || (n = r), r = void 0);
6447
+ return T.warn("No events allowed."), this._droppedEventsCount++, this;
6448
+ this.events.length >= this._spanLimits.eventCountLimit && (this._droppedEventsCount === 0 && T.debug("Dropping extra events."), this.events.shift(), this._droppedEventsCount++), Qi(r) && (Qi(n) || (n = r), r = void 0);
6449
6449
  var i = hr(r);
6450
6450
  return this.events.push({
6451
6451
  name: t,
@@ -6459,15 +6459,15 @@ var Xh = "exception.type", Kh = "exception.message", Wh = "exception.stacktrace"
6459
6459
  var r;
6460
6460
  return (r = this.links).push.apply(r, Zh([], so(t), !1)), this;
6461
6461
  }, e.prototype.setStatus = function(t) {
6462
- return this._isSpanEnded() ? this : (this.status = Kn({}, t), this.status.message != null && typeof t.message != "string" && (E.warn("Dropping invalid status.message of type '" + typeof t.message + "', expected 'string'"), delete this.status.message), this);
6462
+ return this._isSpanEnded() ? this : (this.status = Kn({}, t), this.status.message != null && typeof t.message != "string" && (T.warn("Dropping invalid status.message of type '" + typeof t.message + "', expected 'string'"), delete this.status.message), this);
6463
6463
  }, e.prototype.updateName = function(t) {
6464
6464
  return this._isSpanEnded() ? this : (this.name = t, this);
6465
6465
  }, e.prototype.end = function(t) {
6466
6466
  if (this._isSpanEnded()) {
6467
- E.error(this.name + " " + this._spanContext.traceId + "-" + this._spanContext.spanId + " - You can only call end() on a span once.");
6467
+ T.error(this.name + " " + this._spanContext.traceId + "-" + this._spanContext.spanId + " - You can only call end() on a span once.");
6468
6468
  return;
6469
6469
  }
6470
- this._ended = !0, this.endTime = this._getTime(t), this._duration = Yf(this.startTime, this.endTime), this._duration[0] < 0 && (E.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.", this.startTime, this.endTime), this.endTime = this.startTime.slice(), this._duration = [0, 0]), this._droppedEventsCount > 0 && E.warn("Dropped " + this._droppedEventsCount + " events because eventCountLimit reached"), this._spanProcessor.onEnd(this);
6470
+ this._ended = !0, this.endTime = this._getTime(t), this._duration = Yf(this.startTime, this.endTime), this._duration[0] < 0 && (T.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.", this.startTime, this.endTime), this.endTime = this.startTime.slice(), this._duration = [0, 0]), this._droppedEventsCount > 0 && T.warn("Dropped " + this._droppedEventsCount + " events because eventCountLimit reached"), this._spanProcessor.onEnd(this);
6471
6471
  }, e.prototype._getTime = function(t) {
6472
6472
  if (typeof t == "number" && t <= ot.now())
6473
6473
  return Vt(t + this._performanceOffset);
@@ -6485,7 +6485,7 @@ var Xh = "exception.type", Kh = "exception.message", Wh = "exception.stacktrace"
6485
6485
  return this._ended === !1;
6486
6486
  }, e.prototype.recordException = function(t, r) {
6487
6487
  var n = {};
6488
- typeof t == "string" ? n[ln] = t : t && (t.code ? n[cn] = t.code.toString() : t.name && (n[cn] = t.name), t.message && (n[ln] = t.message), t.stack && (n[Yh] = t.stack)), n[cn] || n[ln] ? this.addEvent(Jh, n, r) : E.warn("Failed to record an exception " + t);
6488
+ typeof t == "string" ? n[ln] = t : t && (t.code ? n[cn] = t.code.toString() : t.name && (n[cn] = t.name), t.message && (n[ln] = t.message), t.stack && (n[Yh] = t.stack)), n[cn] || n[ln] ? this.addEvent(Jh, n, r) : T.warn("Failed to record an exception " + t);
6489
6489
  }, Object.defineProperty(e.prototype, "duration", {
6490
6490
  get: function() {
6491
6491
  return this._duration;
@@ -6517,12 +6517,12 @@ var Xh = "exception.type", Kh = "exception.message", Wh = "exception.stacktrace"
6517
6517
  enumerable: !1,
6518
6518
  configurable: !0
6519
6519
  }), e.prototype._isSpanEnded = function() {
6520
- return this._ended && E.warn("Can not execute the operation on ended Span {traceId: " + this._spanContext.traceId + ", spanId: " + this._spanContext.spanId + "}"), this._ended;
6520
+ return this._ended && T.warn("Can not execute the operation on ended Span {traceId: " + this._spanContext.traceId + ", spanId: " + this._spanContext.spanId + "}"), this._ended;
6521
6521
  }, e.prototype._truncateToLimitUtil = function(t, r) {
6522
6522
  return t.length <= r ? t : t.substring(0, r);
6523
6523
  }, e.prototype._truncateToSize = function(t) {
6524
6524
  var r = this, n = this._attributeValueLengthLimit;
6525
- return n <= 0 ? (E.warn("Attribute value limit must be positive, got " + n), t) : typeof t == "string" ? this._truncateToLimitUtil(t, n) : Array.isArray(t) ? t.map(function(i) {
6525
+ return n <= 0 ? (T.warn("Attribute value limit must be positive, got " + n), t) : typeof t == "string" ? this._truncateToLimitUtil(t, n) : Array.isArray(t) ? t.map(function(i) {
6526
6526
  return typeof i == "string" ? r._truncateToLimitUtil(i, n) : i;
6527
6527
  }) : t;
6528
6528
  }, e;
@@ -6562,10 +6562,10 @@ var xr = (
6562
6562
  function() {
6563
6563
  function e(t) {
6564
6564
  var r, n, i, o;
6565
- this._root = t.root, this._root || (Nt(new Error("ParentBasedSampler must have a root sampler configured")), this._root = new ae()), this._remoteParentSampled = (r = t.remoteParentSampled) !== null && r !== void 0 ? r : new ae(), this._remoteParentNotSampled = (n = t.remoteParentNotSampled) !== null && n !== void 0 ? n : new xr(), this._localParentSampled = (i = t.localParentSampled) !== null && i !== void 0 ? i : new ae(), this._localParentNotSampled = (o = t.localParentNotSampled) !== null && o !== void 0 ? o : new xr();
6565
+ this._root = t.root, this._root || (Lt(new Error("ParentBasedSampler must have a root sampler configured")), this._root = new ae()), this._remoteParentSampled = (r = t.remoteParentSampled) !== null && r !== void 0 ? r : new ae(), this._remoteParentNotSampled = (n = t.remoteParentNotSampled) !== null && n !== void 0 ? n : new xr(), this._localParentSampled = (i = t.localParentSampled) !== null && i !== void 0 ? i : new ae(), this._localParentNotSampled = (o = t.localParentNotSampled) !== null && o !== void 0 ? o : new xr();
6566
6566
  }
6567
6567
  return e.prototype.shouldSample = function(t, r, n, i, o, a) {
6568
- var u = C.getSpanContext(t);
6568
+ var u = R.getSpanContext(t);
6569
6569
  return !u || !Fr(u) ? this._root.shouldSample(t, r, n, i, o, a) : u.isRemote ? u.traceFlags & Et.SAMPLED ? this._remoteParentSampled.shouldSample(t, r, n, i, o, a) : this._remoteParentNotSampled.shouldSample(t, r, n, i, o, a) : u.traceFlags & Et.SAMPLED ? this._localParentSampled.shouldSample(t, r, n, i, o, a) : this._localParentNotSampled.shouldSample(t, r, n, i, o, a);
6570
6570
  }, e.prototype.toString = function() {
6571
6571
  return "ParentBased{root=" + this._root.toString() + ", remoteParentSampled=" + this._remoteParentSampled.toString() + ", remoteParentNotSampled=" + this._remoteParentNotSampled.toString() + ", localParentSampled=" + this._localParentSampled.toString() + ", localParentNotSampled=" + this._localParentNotSampled.toString() + "}";
@@ -6635,14 +6635,14 @@ function As(e) {
6635
6635
  root: new uo(co(e))
6636
6636
  });
6637
6637
  default:
6638
- return E.error('OTEL_TRACES_SAMPLER value "' + e.OTEL_TRACES_SAMPLER + " invalid, defaulting to " + ed + '".'), new ae();
6638
+ return T.error('OTEL_TRACES_SAMPLER value "' + e.OTEL_TRACES_SAMPLER + " invalid, defaulting to " + ed + '".'), new ae();
6639
6639
  }
6640
6640
  }
6641
6641
  function co(e) {
6642
6642
  if (e.OTEL_TRACES_SAMPLER_ARG === void 0 || e.OTEL_TRACES_SAMPLER_ARG === "")
6643
- return E.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to " + Zt + "."), Zt;
6643
+ return T.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to " + Zt + "."), Zt;
6644
6644
  var t = Number(e.OTEL_TRACES_SAMPLER_ARG);
6645
- return isNaN(t) ? (E.error("OTEL_TRACES_SAMPLER_ARG=" + e.OTEL_TRACES_SAMPLER_ARG + " was given, but it is invalid, defaulting to " + Zt + "."), Zt) : t < 0 || t > 1 ? (E.error("OTEL_TRACES_SAMPLER_ARG=" + e.OTEL_TRACES_SAMPLER_ARG + " was given, but it is out of range ([0..1]), defaulting to " + Zt + "."), Zt) : t;
6645
+ return isNaN(t) ? (T.error("OTEL_TRACES_SAMPLER_ARG=" + e.OTEL_TRACES_SAMPLER_ARG + " was given, but it is invalid, defaulting to " + Zt + "."), Zt) : t < 0 || t > 1 ? (T.error("OTEL_TRACES_SAMPLER_ARG=" + e.OTEL_TRACES_SAMPLER_ARG + " was given, but it is out of range ([0..1]), defaulting to " + Zt + "."), Zt) : t;
6646
6646
  }
6647
6647
  function rd(e) {
6648
6648
  var t = {
@@ -6651,8 +6651,8 @@ function rd(e) {
6651
6651
  return n.generalLimits = Object.assign({}, r.generalLimits, e.generalLimits || {}), n.spanLimits = Object.assign({}, r.spanLimits, e.spanLimits || {}), n;
6652
6652
  }
6653
6653
  function nd(e) {
6654
- var t, r, n, i, o, a, u, c, s, l, p, f, v = Object.assign({}, e.spanLimits), m = Mf();
6655
- return v.attributeCountLimit = (a = (o = (i = (r = (t = e.spanLimits) === null || t === void 0 ? void 0 : t.attributeCountLimit) !== null && r !== void 0 ? r : (n = e.generalLimits) === null || n === void 0 ? void 0 : n.attributeCountLimit) !== null && i !== void 0 ? i : m.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && o !== void 0 ? o : m.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && a !== void 0 ? a : vr, v.attributeValueLengthLimit = (f = (p = (l = (c = (u = e.spanLimits) === null || u === void 0 ? void 0 : u.attributeValueLengthLimit) !== null && c !== void 0 ? c : (s = e.generalLimits) === null || s === void 0 ? void 0 : s.attributeValueLengthLimit) !== null && l !== void 0 ? l : m.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && p !== void 0 ? p : m.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && f !== void 0 ? f : dr, Object.assign({}, e, { spanLimits: v });
6654
+ var t, r, n, i, o, a, u, c, s, l, p, f, m = Object.assign({}, e.spanLimits), v = Mf();
6655
+ return m.attributeCountLimit = (a = (o = (i = (r = (t = e.spanLimits) === null || t === void 0 ? void 0 : t.attributeCountLimit) !== null && r !== void 0 ? r : (n = e.generalLimits) === null || n === void 0 ? void 0 : n.attributeCountLimit) !== null && i !== void 0 ? i : v.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && o !== void 0 ? o : v.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && a !== void 0 ? a : vr, m.attributeValueLengthLimit = (f = (p = (l = (c = (u = e.spanLimits) === null || u === void 0 ? void 0 : u.attributeValueLengthLimit) !== null && c !== void 0 ? c : (s = e.generalLimits) === null || s === void 0 ? void 0 : s.attributeValueLengthLimit) !== null && l !== void 0 ? l : v.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && p !== void 0 ? p : v.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && f !== void 0 ? f : dr, Object.assign({}, e, { spanLimits: m });
6656
6656
  }
6657
6657
  var id = (
6658
6658
  /** @class */
@@ -6660,7 +6660,7 @@ var id = (
6660
6660
  function e(t, r) {
6661
6661
  this._exporter = t, this._isExporting = !1, this._finishedSpans = [], this._droppedSpansCount = 0;
6662
6662
  var n = ue();
6663
- this._maxExportBatchSize = typeof r?.maxExportBatchSize == "number" ? r.maxExportBatchSize : n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE, this._maxQueueSize = typeof r?.maxQueueSize == "number" ? r.maxQueueSize : n.OTEL_BSP_MAX_QUEUE_SIZE, this._scheduledDelayMillis = typeof r?.scheduledDelayMillis == "number" ? r.scheduledDelayMillis : n.OTEL_BSP_SCHEDULE_DELAY, this._exportTimeoutMillis = typeof r?.exportTimeoutMillis == "number" ? r.exportTimeoutMillis : n.OTEL_BSP_EXPORT_TIMEOUT, this._shutdownOnce = new Rh(this._shutdown, this), this._maxExportBatchSize > this._maxQueueSize && (E.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"), this._maxExportBatchSize = this._maxQueueSize);
6663
+ this._maxExportBatchSize = typeof r?.maxExportBatchSize == "number" ? r.maxExportBatchSize : n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE, this._maxQueueSize = typeof r?.maxQueueSize == "number" ? r.maxQueueSize : n.OTEL_BSP_MAX_QUEUE_SIZE, this._scheduledDelayMillis = typeof r?.scheduledDelayMillis == "number" ? r.scheduledDelayMillis : n.OTEL_BSP_SCHEDULE_DELAY, this._exportTimeoutMillis = typeof r?.exportTimeoutMillis == "number" ? r.exportTimeoutMillis : n.OTEL_BSP_EXPORT_TIMEOUT, this._shutdownOnce = new Rh(this._shutdown, this), this._maxExportBatchSize > this._maxQueueSize && (T.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"), this._maxExportBatchSize = this._maxQueueSize);
6664
6664
  }
6665
6665
  return e.prototype.forceFlush = function() {
6666
6666
  return this._shutdownOnce.isCalled ? this._shutdownOnce.promise : this._flushAll();
@@ -6680,10 +6680,10 @@ var id = (
6680
6680
  });
6681
6681
  }, e.prototype._addToBuffer = function(t) {
6682
6682
  if (this._finishedSpans.length >= this._maxQueueSize) {
6683
- this._droppedSpansCount === 0 && E.debug("maxQueueSize reached, dropping spans"), this._droppedSpansCount++;
6683
+ this._droppedSpansCount === 0 && T.debug("maxQueueSize reached, dropping spans"), this._droppedSpansCount++;
6684
6684
  return;
6685
6685
  }
6686
- this._droppedSpansCount > 0 && (E.warn("Dropped " + this._droppedSpansCount + " spans because maxQueueSize reached"), this._droppedSpansCount = 0), this._finishedSpans.push(t), this._maybeStartTimer();
6686
+ this._droppedSpansCount > 0 && (T.warn("Dropped " + this._droppedSpansCount + " spans because maxQueueSize reached"), this._droppedSpansCount = 0), this._finishedSpans.push(t), this._maybeStartTimer();
6687
6687
  }, e.prototype._flushAll = function() {
6688
6688
  var t = this;
6689
6689
  return new Promise(function(r, n) {
@@ -6699,7 +6699,7 @@ var id = (
6699
6699
  var i = setTimeout(function() {
6700
6700
  n(new Error("Timeout"));
6701
6701
  }, t._exportTimeoutMillis);
6702
- L.with(ts(L.active()), function() {
6702
+ N.with(ts(N.active()), function() {
6703
6703
  var o;
6704
6704
  t._finishedSpans.length <= t._maxExportBatchSize ? (o = t._finishedSpans, t._finishedSpans = []) : o = t._finishedSpans.splice(0, t._maxExportBatchSize);
6705
6705
  for (var a = function() {
@@ -6712,7 +6712,7 @@ var id = (
6712
6712
  l.resource.asyncAttributesPending && l.resource.waitForAsyncAttributes && (u != null || (u = []), u.push(l.resource.waitForAsyncAttributes()));
6713
6713
  }
6714
6714
  u === null ? a() : Promise.all(u).then(a, function(p) {
6715
- Nt(p), n(p);
6715
+ Lt(p), n(p);
6716
6716
  });
6717
6717
  });
6718
6718
  });
@@ -6723,7 +6723,7 @@ var id = (
6723
6723
  t._isExporting = !0, t._flushOneBatch().finally(function() {
6724
6724
  t._isExporting = !1, t._finishedSpans.length > 0 && (t._clearTimer(), t._maybeStartTimer());
6725
6725
  }).catch(function(n) {
6726
- t._isExporting = !1, Nt(n);
6726
+ t._isExporting = !1, Lt(n);
6727
6727
  });
6728
6728
  };
6729
6729
  if (this._finishedSpans.length >= this._maxExportBatchSize)
@@ -6765,11 +6765,11 @@ var id = (
6765
6765
  var n = this;
6766
6766
  r?.disableAutoFlushOnDocumentHide !== !0 && typeof document < "u" && (this._visibilityChangeListener = function() {
6767
6767
  document.visibilityState === "hidden" && n.forceFlush().catch(function(i) {
6768
- Nt(i);
6768
+ Lt(i);
6769
6769
  });
6770
6770
  }, this._pageHideListener = function() {
6771
6771
  n.forceFlush().catch(function(i) {
6772
- Nt(i);
6772
+ Lt(i);
6773
6773
  });
6774
6774
  }, document.addEventListener("visibilitychange", this._visibilityChangeListener), document.addEventListener("pagehide", this._pageHideListener));
6775
6775
  }, t.prototype.onShutdown = function() {
@@ -6802,36 +6802,36 @@ var cd = (
6802
6802
  }
6803
6803
  return e.prototype.startSpan = function(t, r, n) {
6804
6804
  var i, o, a;
6805
- r === void 0 && (r = {}), n === void 0 && (n = L.active()), r.root && (n = C.deleteSpan(n));
6806
- var u = C.getSpan(n);
6805
+ r === void 0 && (r = {}), n === void 0 && (n = N.active()), r.root && (n = R.deleteSpan(n));
6806
+ var u = R.getSpan(n);
6807
6807
  if (bi(n)) {
6808
- E.debug("Instrumentation suppressed, returning Noop Span");
6809
- var c = C.wrapSpanContext(Ka);
6808
+ T.debug("Instrumentation suppressed, returning Noop Span");
6809
+ var c = R.wrapSpanContext(Ka);
6810
6810
  return c;
6811
6811
  }
6812
- var s = u?.spanContext(), l = this._idGenerator.generateSpanId(), p, f, v;
6813
- !s || !C.isSpanContextValid(s) ? p = this._idGenerator.generateTraceId() : (p = s.traceId, f = s.traceState, v = s.spanId);
6814
- var m = (i = r.kind) !== null && i !== void 0 ? i : Ue.INTERNAL, y = ((o = r.links) !== null && o !== void 0 ? o : []).map(function(k) {
6812
+ var s = u?.spanContext(), l = this._idGenerator.generateSpanId(), p, f, m;
6813
+ !s || !R.isSpanContextValid(s) ? p = this._idGenerator.generateTraceId() : (p = s.traceId, f = s.traceState, m = s.spanId);
6814
+ var v = (i = r.kind) !== null && i !== void 0 ? i : Ue.INTERNAL, y = ((o = r.links) !== null && o !== void 0 ? o : []).map(function(k) {
6815
6815
  return {
6816
6816
  context: k.context,
6817
6817
  attributes: hr(k.attributes)
6818
6818
  };
6819
- }), _ = hr(r.attributes), T = this._sampler.shouldSample(n, p, t, m, _, y);
6820
- f = (a = T.traceState) !== null && a !== void 0 ? a : f;
6821
- var P = T.decision === wr.RECORD_AND_SAMPLED ? Et.SAMPLED : Et.NONE, B = { traceId: p, spanId: l, traceFlags: P, traceState: f };
6822
- if (T.decision === wr.NOT_RECORD) {
6823
- E.debug("Recording is off, propagating context in a non-recording span");
6824
- var c = C.wrapSpanContext(B);
6819
+ }), _ = hr(r.attributes), b = this._sampler.shouldSample(n, p, t, v, _, y);
6820
+ f = (a = b.traceState) !== null && a !== void 0 ? a : f;
6821
+ var C = b.decision === wr.RECORD_AND_SAMPLED ? Et.SAMPLED : Et.NONE, U = { traceId: p, spanId: l, traceFlags: C, traceState: f };
6822
+ if (b.decision === wr.NOT_RECORD) {
6823
+ T.debug("Recording is off, propagating context in a non-recording span");
6824
+ var c = R.wrapSpanContext(U);
6825
6825
  return c;
6826
6826
  }
6827
- var M = hr(Object.assign(_, T.attributes)), F = new td(this, n, t, B, m, v, y, r.startTime, void 0, M);
6827
+ var D = hr(Object.assign(_, b.attributes)), F = new td(this, n, t, U, v, m, y, r.startTime, void 0, D);
6828
6828
  return F;
6829
6829
  }, e.prototype.startActiveSpan = function(t, r, n, i) {
6830
6830
  var o, a, u;
6831
6831
  if (!(arguments.length < 2)) {
6832
6832
  arguments.length === 2 ? u = r : arguments.length === 3 ? (o = r, u = n) : (o = r, a = n, u = i);
6833
- var c = a ?? L.active(), s = this.startSpan(t, o, c), l = C.setSpan(c, s);
6834
- return L.with(l, u, void 0, s);
6833
+ var c = a ?? N.active(), s = this.startSpan(t, o, c), l = R.setSpan(c, s);
6834
+ return N.with(l, u, void 0, s);
6835
6835
  }
6836
6836
  }, e.prototype.getGeneralLimits = function() {
6837
6837
  return this._generalLimits;
@@ -6962,7 +6962,7 @@ var Ot = function() {
6962
6962
  this._attributes = t, this.asyncAttributesPending = r != null, this._syncAttributes = (i = this._attributes) !== null && i !== void 0 ? i : {}, this._asyncAttributesPromise = r?.then(function(o) {
6963
6963
  return n._attributes = Object.assign({}, n._attributes, o), n.asyncAttributesPending = !1, o;
6964
6964
  }, function(o) {
6965
- return E.debug("a resource's async attributes promise rejected: %s", o), n.asyncAttributesPending = !1, {};
6965
+ return T.debug("a resource's async attributes promise rejected: %s", o), n.asyncAttributesPending = !1, {};
6966
6966
  });
6967
6967
  }
6968
6968
  return e.empty = function() {
@@ -6973,7 +6973,7 @@ var Ot = function() {
6973
6973
  }, Object.defineProperty(e.prototype, "attributes", {
6974
6974
  get: function() {
6975
6975
  var t;
6976
- return this.asyncAttributesPending && E.error("Accessing resource attributes before async attributes settled"), (t = this._attributes) !== null && t !== void 0 ? t : {};
6976
+ return this.asyncAttributesPending && T.error("Accessing resource attributes before async attributes settled"), (t = this._attributes) !== null && t !== void 0 ? t : {};
6977
6977
  },
6978
6978
  enumerable: !1,
6979
6979
  configurable: !0
@@ -7045,7 +7045,7 @@ var Ot = function() {
7045
7045
  Promise.all(n).then(function() {
7046
7046
  u();
7047
7047
  }).catch(function(c) {
7048
- Nt(c || new Error("MultiSpanProcessor: forceFlush failed")), u();
7048
+ Lt(c || new Error("MultiSpanProcessor: forceFlush failed")), u();
7049
7049
  });
7050
7050
  });
7051
7051
  }, e.prototype.onStart = function(t, r) {
@@ -7166,12 +7166,12 @@ var Td = (
7166
7166
  return this._tracers.has(i) || this._tracers.set(i, new cd({ name: t, version: r, schemaUrl: n?.schemaUrl }, this._config, this)), this._tracers.get(i);
7167
7167
  }, e.prototype.addSpanProcessor = function(t) {
7168
7168
  this._registeredSpanProcessors.length === 0 && this.activeSpanProcessor.shutdown().catch(function(r) {
7169
- return E.error("Error while trying to shutdown current span processor", r);
7169
+ return T.error("Error while trying to shutdown current span processor", r);
7170
7170
  }), this._registeredSpanProcessors.push(t), this.activeSpanProcessor = new vo(this._registeredSpanProcessors);
7171
7171
  }, e.prototype.getActiveSpanProcessor = function() {
7172
7172
  return this.activeSpanProcessor;
7173
7173
  }, e.prototype.register = function(t) {
7174
- t === void 0 && (t = {}), C.setGlobalTracerProvider(this), t.propagator === void 0 && (t.propagator = this._buildPropagatorFromEnv()), t.contextManager && L.setGlobalContextManager(t.contextManager), t.propagator && rt.setGlobalPropagator(t.propagator);
7174
+ t === void 0 && (t = {}), R.setGlobalTracerProvider(this), t.propagator === void 0 && (t.propagator = this._buildPropagatorFromEnv()), t.contextManager && N.setGlobalContextManager(t.contextManager), t.propagator && rt.setGlobalPropagator(t.propagator);
7175
7175
  }, e.prototype.forceFlush = function() {
7176
7176
  var t = this._config.forceFlushTimeoutMillis, r = this._registeredSpanProcessors.map(function(n) {
7177
7177
  return new Promise(function(i) {
@@ -7206,7 +7206,7 @@ var Td = (
7206
7206
  }, e.prototype._buildPropagatorFromEnv = function() {
7207
7207
  var t = this, r = Array.from(new Set(ue().OTEL_PROPAGATORS)), n = r.map(function(o) {
7208
7208
  var a = t._getPropagator(o);
7209
- return a || E.warn('Propagator "' + o + '" requested through environment variable is unavailable.'), a;
7209
+ return a || T.warn('Propagator "' + o + '" requested through environment variable is unavailable.'), a;
7210
7210
  }), i = n.reduce(function(o, a) {
7211
7211
  return a && o.push(a), o;
7212
7212
  }, []);
@@ -7218,7 +7218,7 @@ var Td = (
7218
7218
  var t = ue().OTEL_TRACES_EXPORTER;
7219
7219
  if (!(t === "none" || t === "")) {
7220
7220
  var r = this._getSpanExporter(t);
7221
- return r || E.error('Exporter "' + t + '" requested through environment variable is unavailable.'), r;
7221
+ return r || T.error('Exporter "' + t + '" requested through environment variable is unavailable.'), r;
7222
7222
  }
7223
7223
  }, e._registeredPropagators = /* @__PURE__ */ new Map([
7224
7224
  ["tracecontext", function() {
@@ -7249,7 +7249,7 @@ var Td = (
7249
7249
  if (arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
7250
7250
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
7251
7251
  return e.concat(o || Array.prototype.slice.call(t));
7252
- }, Ns = (
7252
+ }, Ls = (
7253
7253
  /** @class */
7254
7254
  function() {
7255
7255
  function e() {
@@ -7321,31 +7321,31 @@ var Td = (
7321
7321
  return n;
7322
7322
  }
7323
7323
  return t.prototype.register = function(r) {
7324
- r === void 0 && (r = {}), r.contextManager === void 0 && (r.contextManager = new Ns()), r.contextManager && r.contextManager.enable(), e.prototype.register.call(this, r);
7324
+ r === void 0 && (r = {}), r.contextManager === void 0 && (r.contextManager = new Ls()), r.contextManager && r.contextManager.enable(), e.prototype.register.call(this, r);
7325
7325
  }, t;
7326
7326
  }(Td)
7327
7327
  ), S;
7328
7328
  (function(e) {
7329
7329
  e.CONNECT_END = "connectEnd", e.CONNECT_START = "connectStart", e.DECODED_BODY_SIZE = "decodedBodySize", e.DOM_COMPLETE = "domComplete", e.DOM_CONTENT_LOADED_EVENT_END = "domContentLoadedEventEnd", e.DOM_CONTENT_LOADED_EVENT_START = "domContentLoadedEventStart", e.DOM_INTERACTIVE = "domInteractive", e.DOMAIN_LOOKUP_END = "domainLookupEnd", e.DOMAIN_LOOKUP_START = "domainLookupStart", e.ENCODED_BODY_SIZE = "encodedBodySize", e.FETCH_START = "fetchStart", e.LOAD_EVENT_END = "loadEventEnd", e.LOAD_EVENT_START = "loadEventStart", e.NAVIGATION_START = "navigationStart", e.REDIRECT_END = "redirectEnd", e.REDIRECT_START = "redirectStart", e.REQUEST_START = "requestStart", e.RESPONSE_END = "responseEnd", e.RESPONSE_START = "responseStart", e.SECURE_CONNECTION_START = "secureConnectionStart", e.UNLOAD_EVENT_END = "unloadEventEnd", e.UNLOAD_EVENT_START = "unloadEventStart";
7330
7330
  })(S || (S = {}));
7331
- var xd = "http.response_content_length", Nd = "http.response_content_length_uncompressed", Ld = xd, Cd = Nd, fn;
7331
+ var xd = "http.response_content_length", Ld = "http.response_content_length_uncompressed", Nd = xd, Cd = Ld, fn;
7332
7332
  function Rd() {
7333
7333
  return fn || (fn = document.createElement("a")), fn;
7334
7334
  }
7335
- function Lt(e, t) {
7335
+ function Nt(e, t) {
7336
7336
  return t in e;
7337
7337
  }
7338
7338
  function V(e, t, r, n) {
7339
7339
  var i = void 0, o = void 0;
7340
- Lt(r, t) && typeof r[t] == "number" && (i = r[t]);
7340
+ Nt(r, t) && typeof r[t] == "number" && (i = r[t]);
7341
7341
  var a = S.FETCH_START;
7342
- if (Lt(r, a) && typeof r[a] == "number" && (o = r[a]), i !== void 0 && o !== void 0 && i >= o)
7342
+ if (Nt(r, a) && typeof r[a] == "number" && (o = r[a]), i !== void 0 && o !== void 0 && i >= o)
7343
7343
  return e.addEvent(t, i), e;
7344
7344
  }
7345
7345
  function le(e, t, r) {
7346
- r === void 0 && (r = !1), r || (V(e, S.FETCH_START, t), V(e, S.DOMAIN_LOOKUP_START, t), V(e, S.DOMAIN_LOOKUP_END, t), V(e, S.CONNECT_START, t), Lt(t, "name") && t.name.startsWith("https:") && V(e, S.SECURE_CONNECTION_START, t), V(e, S.CONNECT_END, t), V(e, S.REQUEST_START, t), V(e, S.RESPONSE_START, t), V(e, S.RESPONSE_END, t));
7346
+ r === void 0 && (r = !1), r || (V(e, S.FETCH_START, t), V(e, S.DOMAIN_LOOKUP_START, t), V(e, S.DOMAIN_LOOKUP_END, t), V(e, S.CONNECT_START, t), Nt(t, "name") && t.name.startsWith("https:") && V(e, S.SECURE_CONNECTION_START, t), V(e, S.CONNECT_END, t), V(e, S.REQUEST_START, t), V(e, S.RESPONSE_START, t), V(e, S.RESPONSE_END, t));
7347
7347
  var n = t[S.ENCODED_BODY_SIZE];
7348
- n !== void 0 && e.setAttribute(Ld, n);
7348
+ n !== void 0 && e.setAttribute(Nd, n);
7349
7349
  var i = t[S.DECODED_BODY_SIZE];
7350
7350
  i !== void 0 && n !== i && e.setAttribute(Cd, i);
7351
7351
  }
@@ -7355,7 +7355,7 @@ function Pd(e) {
7355
7355
  return n > i ? 1 : n < i ? -1 : 0;
7356
7356
  });
7357
7357
  }
7358
- function Ls() {
7358
+ function Ns() {
7359
7359
  return typeof location < "u" ? location.origin : void 0;
7360
7360
  }
7361
7361
  function Cs(e, t, r, n, i, o) {
@@ -7372,7 +7372,7 @@ function Cs(e, t, r, n, i, o) {
7372
7372
  mainRequest: u[0]
7373
7373
  };
7374
7374
  var c = Pd(u);
7375
- if (a.origin !== Ls() && c.length > 1) {
7375
+ if (a.origin !== Ns() && c.length > 1) {
7376
7376
  var s = c[0], l = Id(c, s[S.RESPONSE_END], r), p = s[S.RESPONSE_END], f = l[S.FETCH_START];
7377
7377
  return f < p && (l = s, s = void 0), {
7378
7378
  corsPreFlightRequest: s,
@@ -7384,15 +7384,15 @@ function Cs(e, t, r, n, i, o) {
7384
7384
  };
7385
7385
  }
7386
7386
  function Id(e, t, r) {
7387
- for (var n = bt(r), i = bt(Ne(t)), o = e[1], a, u = e.length, c = 1; c < u; c++) {
7388
- var s = e[c], l = bt(Ne(s[S.FETCH_START])), p = bt(Ne(s[S.RESPONSE_END])), f = n - p;
7387
+ for (var n = bt(r), i = bt(Le(t)), o = e[1], a, u = e.length, c = 1; c < u; c++) {
7388
+ var s = e[c], l = bt(Le(s[S.FETCH_START])), p = bt(Le(s[S.RESPONSE_END])), f = n - p;
7389
7389
  l >= i && (!a || f < a) && (a = f, o = s);
7390
7390
  }
7391
7391
  return o;
7392
7392
  }
7393
7393
  function kd(e, t, r, n, i, o) {
7394
7394
  var a = bt(t), u = bt(r), c = n.filter(function(s) {
7395
- var l = bt(Ne(s[S.FETCH_START])), p = bt(Ne(s[S.RESPONSE_END]));
7395
+ var l = bt(Le(s[S.FETCH_START])), p = bt(Le(s[S.RESPONSE_END]));
7396
7396
  return s.initiatorType.toLowerCase() === (o || "xmlhttprequest") && s.name === e && l >= a && p <= u;
7397
7397
  });
7398
7398
  return c.length > 0 && (c = c.filter(function(s) {
@@ -7444,24 +7444,24 @@ function Ps(e, t) {
7444
7444
  var r = t || [];
7445
7445
  (typeof r == "string" || r instanceof RegExp) && (r = [r]);
7446
7446
  var n = gt(e);
7447
- return n.origin === Ls() ? !0 : r.some(function(i) {
7447
+ return n.origin === Ns() ? !0 : r.some(function(i) {
7448
7448
  return ys(e, i);
7449
7449
  });
7450
7450
  }
7451
- var Le;
7451
+ var Ne;
7452
7452
  (function(e) {
7453
7453
  e.DOCUMENT_LOAD = "documentLoad", e.DOCUMENT_FETCH = "documentFetch", e.RESOURCE_FETCH = "resourceFetch";
7454
- })(Le || (Le = {}));
7455
- var Ud = "0.44.0", $d = "@opentelemetry/instrumentation-document-load", jd = "http.url", Bd = "http.user_agent", hn = jd, Fd = Bd, Vd = "service.name", Hd = "telemetry.sdk.name", Gd = "telemetry.sdk.version", qd = "url.full", zd = "url.path", Xd = "url.query", Kd = "user_agent.original", Nr;
7454
+ })(Ne || (Ne = {}));
7455
+ var Ud = "0.44.0", $d = "@opentelemetry/instrumentation-document-load", jd = "http.url", Bd = "http.user_agent", hn = jd, Fd = Bd, Vd = "service.name", Hd = "telemetry.sdk.name", Gd = "telemetry.sdk.version", qd = "url.full", zd = "url.path", Xd = "url.query", Kd = "user_agent.original", Lr;
7456
7456
  (function(e) {
7457
7457
  e.FIRST_PAINT = "firstPaint", e.FIRST_CONTENTFUL_PAINT = "firstContentfulPaint";
7458
- })(Nr || (Nr = {}));
7458
+ })(Lr || (Lr = {}));
7459
7459
  var Wd = function() {
7460
7460
  var e, t, r = {}, n = (t = (e = ot).getEntriesByType) === null || t === void 0 ? void 0 : t.call(e, "navigation")[0];
7461
7461
  if (n) {
7462
7462
  var i = Object.values(S);
7463
7463
  i.forEach(function(u) {
7464
- if (Lt(n, u)) {
7464
+ if (Nt(n, u)) {
7465
7465
  var c = n[u];
7466
7466
  typeof c == "number" && (r[u] = c);
7467
7467
  }
@@ -7471,7 +7471,7 @@ var Wd = function() {
7471
7471
  if (a) {
7472
7472
  var i = Object.values(S);
7473
7473
  i.forEach(function(c) {
7474
- if (Lt(a, c)) {
7474
+ if (Nt(a, c)) {
7475
7475
  var s = a[c];
7476
7476
  typeof s == "number" && (r[c] = s);
7477
7477
  }
@@ -7480,13 +7480,13 @@ var Wd = function() {
7480
7480
  }
7481
7481
  return r;
7482
7482
  }, mo = {
7483
- "first-paint": Nr.FIRST_PAINT,
7484
- "first-contentful-paint": Nr.FIRST_CONTENTFUL_PAINT
7483
+ "first-paint": Lr.FIRST_PAINT,
7484
+ "first-contentful-paint": Lr.FIRST_CONTENTFUL_PAINT
7485
7485
  }, Yd = function(e) {
7486
7486
  var t, r, n = (r = (t = ot).getEntriesByType) === null || r === void 0 ? void 0 : r.call(t, "paint");
7487
7487
  n && n.forEach(function(i) {
7488
7488
  var o = i.name, a = i.startTime;
7489
- Lt(mo, o) && e.addEvent(mo[o], a);
7489
+ Nt(mo, o) && e.addEvent(mo[o], a);
7490
7490
  });
7491
7491
  }, Jd = /* @__PURE__ */ function() {
7492
7492
  var e = function(t, r) {
@@ -7529,26 +7529,26 @@ var Wd = function() {
7529
7529
  var r = this, n = Array.from(document.getElementsByTagName("meta")).find(function(a) {
7530
7530
  return a.getAttribute("name") === mr;
7531
7531
  }), i = Wd(), o = n && n.content || "";
7532
- L.with(rt.extract(kt, { traceparent: o }), function() {
7533
- var a, u = r._startSpan(Le.DOCUMENT_LOAD, S.FETCH_START, i);
7534
- u && (L.with(C.setSpan(L.active(), u), function() {
7535
- var c = r._startSpan(Le.DOCUMENT_FETCH, S.FETCH_START, i);
7536
- c && (c.setAttribute(hn, location.href), L.with(C.setSpan(L.active(), c), function() {
7532
+ N.with(rt.extract(kt, { traceparent: o }), function() {
7533
+ var a, u = r._startSpan(Ne.DOCUMENT_LOAD, S.FETCH_START, i);
7534
+ u && (N.with(R.setSpan(N.active(), u), function() {
7535
+ var c = r._startSpan(Ne.DOCUMENT_FETCH, S.FETCH_START, i);
7536
+ c && (c.setAttribute(hn, location.href), N.with(R.setSpan(N.active(), c), function() {
7537
7537
  var s;
7538
7538
  r.getConfig().ignoreNetworkEvents || le(c, i), r._addCustomAttributesOnSpan(c, (s = r.getConfig().applyCustomAttributesOnSpan) === null || s === void 0 ? void 0 : s.documentFetch), r._endSpan(c, S.RESPONSE_END, i);
7539
7539
  }));
7540
7540
  }), u.setAttribute(hn, location.href), u.setAttribute(Fd, navigator.userAgent), r._addResourcesSpans(u), r.getConfig().ignoreNetworkEvents || (V(u, S.FETCH_START, i), V(u, S.UNLOAD_EVENT_START, i), V(u, S.UNLOAD_EVENT_END, i), V(u, S.DOM_INTERACTIVE, i), V(u, S.DOM_CONTENT_LOADED_EVENT_START, i), V(u, S.DOM_CONTENT_LOADED_EVENT_END, i), V(u, S.DOM_COMPLETE, i), V(u, S.LOAD_EVENT_START, i), V(u, S.LOAD_EVENT_END, i)), r.getConfig().ignorePerformancePaintEvents || Yd(u), r._addCustomAttributesOnSpan(u, (a = r.getConfig().applyCustomAttributesOnSpan) === null || a === void 0 ? void 0 : a.documentLoad), r._endSpan(u, S.LOAD_EVENT_END, i));
7541
7541
  });
7542
7542
  }, t.prototype._endSpan = function(r, n, i) {
7543
- r && (Lt(i, n) ? r.end(i[n]) : r.end());
7543
+ r && (Nt(i, n) ? r.end(i[n]) : r.end());
7544
7544
  }, t.prototype._initResourceSpan = function(r, n) {
7545
- var i, o = this._startSpan(Le.RESOURCE_FETCH, S.FETCH_START, r, n);
7545
+ var i, o = this._startSpan(Ne.RESOURCE_FETCH, S.FETCH_START, r, n);
7546
7546
  o && (o.setAttribute(hn, r.name), this.getConfig().ignoreNetworkEvents || le(o, r), this._addCustomAttributesOnResourceSpan(o, r, (i = this.getConfig().applyCustomAttributesOnSpan) === null || i === void 0 ? void 0 : i.resourceFetch), this._endSpan(o, S.RESPONSE_END, r));
7547
7547
  }, t.prototype._startSpan = function(r, n, i, o) {
7548
- if (Lt(i, n) && typeof i[n] == "number") {
7548
+ if (Nt(i, n) && typeof i[n] == "number") {
7549
7549
  var a = this.tracer.startSpan(r, {
7550
7550
  startTime: i[n]
7551
- }, o ? C.setSpan(L.active(), o) : void 0);
7551
+ }, o ? R.setSpan(N.active(), o) : void 0);
7552
7552
  return a;
7553
7553
  }
7554
7554
  }, t.prototype._waitForPageLoad = function() {
@@ -7660,9 +7660,9 @@ var go = 1, iv = (
7660
7660
  /** @class */
7661
7661
  function() {
7662
7662
  function e(t, r, n) {
7663
- this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = E.createComponentLogger({
7663
+ this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = T.createComponentLogger({
7664
7664
  namespace: t
7665
- }), this._tracer = C.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = ov.getLogger(t, r), this._updateMetricInstruments();
7665
+ }), this._tracer = R.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = ov.getLogger(t, r), this._updateMetricInstruments();
7666
7666
  }
7667
7667
  return Object.defineProperty(e.prototype, "meter", {
7668
7668
  /* Returns meter */
@@ -7749,10 +7749,10 @@ function cv(e, t, r) {
7749
7749
  function lv(e) {
7750
7750
  return typeof e == "function" && typeof e.__original == "function" && typeof e.__unwrap == "function" && e.__wrapped === !0;
7751
7751
  }
7752
- var Lr;
7752
+ var Nr;
7753
7753
  (function(e) {
7754
7754
  e.COMPONENT = "component", e.HTTP_ERROR_NAME = "http.error_name", e.HTTP_STATUS_TEXT = "http.status_text";
7755
- })(Lr || (Lr = {}));
7755
+ })(Nr || (Nr = {}));
7756
7756
  var pv = "http.method", fv = "http.url", hv = "http.host", dv = "http.scheme", vv = "http.status_code", mv = "http.user_agent", yv = "http.request_content_length_uncompressed", gv = pv, _v = fv, bv = hv, Ev = dv, Tv = vv, wv = mv, Sv = yv, Ov = function(e, t, r, n) {
7757
7757
  function i(o) {
7758
7758
  return o instanceof r ? o : new r(function(a) {
@@ -7847,7 +7847,7 @@ var pv = "http.method", fv = "http.url", hv = "http.host", dv = "http.scheme", v
7847
7847
  }
7848
7848
  };
7849
7849
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
7850
- }, Nv = function(e, t) {
7850
+ }, Lv = function(e, t) {
7851
7851
  var r = typeof Symbol == "function" && e[Symbol.iterator];
7852
7852
  if (!r) return e;
7853
7853
  var n = r.call(e), i, o = [], a;
@@ -7863,10 +7863,10 @@ var pv = "http.method", fv = "http.url", hv = "http.host", dv = "http.scheme", v
7863
7863
  }
7864
7864
  }
7865
7865
  return o;
7866
- }, Ms = E.createComponentLogger({
7866
+ }, Ms = T.createComponentLogger({
7867
7867
  namespace: "@opentelemetry/opentelemetry-instrumentation-fetch/utils"
7868
7868
  });
7869
- function Lv() {
7869
+ function Nv() {
7870
7870
  for (var e = [], t = 0; t < arguments.length; t++)
7871
7871
  e[t] = arguments[t];
7872
7872
  if (e[0] instanceof URL || typeof e[0] == "string") {
@@ -7944,7 +7944,7 @@ function Iv(e) {
7944
7944
  var t, r, n = 0;
7945
7945
  try {
7946
7946
  for (var i = xv(e.entries()), o = i.next(); !o.done; o = i.next()) {
7947
- var a = Nv(o.value, 2), u = a[0], c = a[1];
7947
+ var a = Lv(o.value, 2), u = a[0], c = a[1];
7948
7948
  n += u.length, c instanceof Blob ? n += c.size : n += c.length;
7949
7949
  }
7950
7950
  } catch (s) {
@@ -8008,38 +8008,38 @@ var _o = "0.57.1", kv = /* @__PURE__ */ function() {
8008
8008
  }, t.prototype._addChildSpan = function(r, n) {
8009
8009
  var i = this.tracer.startSpan("CORS Preflight", {
8010
8010
  startTime: n[S.FETCH_START]
8011
- }, C.setSpan(L.active(), r));
8011
+ }, R.setSpan(N.active(), r));
8012
8012
  le(i, n, this.getConfig().ignoreNetworkEvents), i.end(n[S.RESPONSE_END]);
8013
8013
  }, t.prototype._addFinalSpanAttributes = function(r, n) {
8014
8014
  var i = gt(n.url);
8015
- r.setAttribute(Tv, n.status), n.statusText != null && r.setAttribute(Lr.HTTP_STATUS_TEXT, n.statusText), r.setAttribute(bv, i.host), r.setAttribute(Ev, i.protocol.replace(":", "")), typeof navigator < "u" && r.setAttribute(wv, navigator.userAgent);
8015
+ r.setAttribute(Tv, n.status), n.statusText != null && r.setAttribute(Nr.HTTP_STATUS_TEXT, n.statusText), r.setAttribute(bv, i.host), r.setAttribute(Ev, i.protocol.replace(":", "")), typeof navigator < "u" && r.setAttribute(wv, navigator.userAgent);
8016
8016
  }, t.prototype._addHeaders = function(r, n) {
8017
8017
  if (!Ps(n, this.getConfig().propagateTraceHeaderCorsUrls)) {
8018
8018
  var i = {};
8019
- rt.inject(L.active(), i), Object.keys(i).length > 0 && this._diag.debug("headers inject skipped due to CORS policy");
8019
+ rt.inject(N.active(), i), Object.keys(i).length > 0 && this._diag.debug("headers inject skipped due to CORS policy");
8020
8020
  return;
8021
8021
  }
8022
8022
  if (r instanceof Request)
8023
- rt.inject(L.active(), r.headers, {
8023
+ rt.inject(N.active(), r.headers, {
8024
8024
  set: function(o, a, u) {
8025
8025
  return o.set(a, typeof u == "string" ? u : String(u));
8026
8026
  }
8027
8027
  });
8028
8028
  else if (r.headers instanceof Headers)
8029
- rt.inject(L.active(), r.headers, {
8029
+ rt.inject(N.active(), r.headers, {
8030
8030
  set: function(o, a, u) {
8031
8031
  return o.set(a, typeof u == "string" ? u : String(u));
8032
8032
  }
8033
8033
  });
8034
8034
  else if (r.headers instanceof Map)
8035
- rt.inject(L.active(), r.headers, {
8035
+ rt.inject(N.active(), r.headers, {
8036
8036
  set: function(o, a, u) {
8037
8037
  return o.set(a, typeof u == "string" ? u : String(u));
8038
8038
  }
8039
8039
  });
8040
8040
  else {
8041
8041
  var i = {};
8042
- rt.inject(L.active(), i), r.headers = Object.assign({}, i, r.headers || {});
8042
+ rt.inject(N.active(), i), r.headers = Object.assign({}, i, r.headers || {});
8043
8043
  }
8044
8044
  }, t.prototype._clearResources = function() {
8045
8045
  this._tasksCount === 0 && this.getConfig().clearTimingResources && (performance.clearResourceTimings(), this._usedResources = /* @__PURE__ */ new WeakSet());
@@ -8052,7 +8052,7 @@ var _o = "0.57.1", kv = /* @__PURE__ */ function() {
8052
8052
  var o = (n.method || "GET").toUpperCase(), a = "HTTP " + o;
8053
8053
  return this.tracer.startSpan(a, {
8054
8054
  kind: Ue.CLIENT,
8055
- attributes: (i = {}, i[Lr.COMPONENT] = this.moduleName, i[gv] = o, i[_v] = r, i)
8055
+ attributes: (i = {}, i[Nr.COMPONENT] = this.moduleName, i[gv] = o, i[_v] = r, i)
8056
8056
  });
8057
8057
  }, t.prototype._findResourceAndAddNetworkEvents = function(r, n, i) {
8058
8058
  var o = n.entries;
@@ -8087,54 +8087,54 @@ var _o = "0.57.1", kv = /* @__PURE__ */ function() {
8087
8087
  if (!l)
8088
8088
  return n.apply(this, o);
8089
8089
  var p = i._prepareSpanData(c);
8090
- i.getConfig().measureRequestSize && Lv.apply(void 0, Dv([], Mv(o), !1)).then(function(_) {
8090
+ i.getConfig().measureRequestSize && Nv.apply(void 0, Dv([], Mv(o), !1)).then(function(_) {
8091
8091
  _ && l.setAttribute(Sv, _);
8092
8092
  }).catch(function(_) {
8093
8093
  i._diag.warn("getFetchBodyLength", _);
8094
8094
  });
8095
- function f(_, T) {
8096
- i._applyAttributesAfterFetch(_, s, T), i._endSpan(_, p, {
8097
- status: T.status || 0,
8098
- statusText: T.message,
8095
+ function f(_, b) {
8096
+ i._applyAttributesAfterFetch(_, s, b), i._endSpan(_, p, {
8097
+ status: b.status || 0,
8098
+ statusText: b.message,
8099
8099
  url: c
8100
8100
  });
8101
8101
  }
8102
- function v(_, T) {
8103
- i._applyAttributesAfterFetch(_, s, T), T.status >= 200 && T.status < 400 ? i._endSpan(_, p, T) : i._endSpan(_, p, {
8104
- status: T.status,
8105
- statusText: T.statusText,
8102
+ function m(_, b) {
8103
+ i._applyAttributesAfterFetch(_, s, b), b.status >= 200 && b.status < 400 ? i._endSpan(_, p, b) : i._endSpan(_, p, {
8104
+ status: b.status,
8105
+ statusText: b.statusText,
8106
8106
  url: c
8107
8107
  });
8108
8108
  }
8109
- function m(_, T, P) {
8109
+ function v(_, b, C) {
8110
8110
  try {
8111
- var B = P.clone(), M = P.clone(), F = B.body;
8111
+ var U = C.clone(), D = C.clone(), F = U.body;
8112
8112
  if (F) {
8113
8113
  var k = F.getReader(), G = function() {
8114
- k.read().then(function(U) {
8115
- var vt = U.done;
8116
- vt ? v(_, M) : G();
8117
- }, function(U) {
8118
- f(_, U);
8114
+ k.read().then(function($) {
8115
+ var vt = $.done;
8116
+ vt ? m(_, D) : G();
8117
+ }, function($) {
8118
+ f(_, $);
8119
8119
  });
8120
8120
  };
8121
8121
  G();
8122
8122
  } else
8123
- v(_, P);
8123
+ m(_, C);
8124
8124
  } finally {
8125
- T(P);
8125
+ b(C);
8126
8126
  }
8127
8127
  }
8128
- function y(_, T, P) {
8128
+ function y(_, b, C) {
8129
8129
  try {
8130
- f(_, P);
8130
+ f(_, C);
8131
8131
  } finally {
8132
- T(P);
8132
+ b(C);
8133
8133
  }
8134
8134
  }
8135
- return new Promise(function(_, T) {
8136
- return L.with(C.setSpan(L.active(), l), function() {
8137
- return i._addHeaders(s, c), i._tasksCount++, n.apply(u, s instanceof Request ? [s] : [c, s]).then(m.bind(u, l, _), y.bind(u, l, T));
8135
+ return new Promise(function(_, b) {
8136
+ return N.with(R.setSpan(N.active(), l), function() {
8137
+ return i._addHeaders(s, c), i._tasksCount++, n.apply(u, s instanceof Request ? [s] : [c, s]).then(v.bind(u, l, _), y.bind(u, l, b));
8138
8138
  });
8139
8139
  });
8140
8140
  };
@@ -8256,9 +8256,9 @@ var To = 1, Gv = (
8256
8256
  /** @class */
8257
8257
  function() {
8258
8258
  function e(t, r, n) {
8259
- this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = E.createComponentLogger({
8259
+ this.instrumentationName = t, this.instrumentationVersion = r, this._config = {}, this._wrap = it.wrap, this._unwrap = it.unwrap, this._massWrap = it.massWrap, this._massUnwrap = it.massUnwrap, this.setConfig(n), this._diag = T.createComponentLogger({
8260
8260
  namespace: t
8261
- }), this._tracer = C.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = qv.getLogger(t, r), this._updateMetricInstruments();
8261
+ }), this._tracer = R.getTracer(t, r), this._meter = _t.getMeter(t, r), this._logger = qv.getLogger(t, r), this._updateMetricInstruments();
8262
8262
  }
8263
8263
  return Object.defineProperty(e.prototype, "meter", {
8264
8264
  /* Returns meter */
@@ -8374,7 +8374,7 @@ var lm = function(e) {
8374
8374
  }
8375
8375
  }
8376
8376
  return o;
8377
- }, fm = E.createComponentLogger({
8377
+ }, fm = T.createComponentLogger({
8378
8378
  namespace: "@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"
8379
8379
  });
8380
8380
  function hm(e) {
@@ -8449,16 +8449,16 @@ var mm = /* @__PURE__ */ function() {
8449
8449
  var i = gt(n).href;
8450
8450
  if (!Ps(i, this.getConfig().propagateTraceHeaderCorsUrls)) {
8451
8451
  var o = {};
8452
- rt.inject(L.active(), o), Object.keys(o).length > 0 && this._diag.debug("headers inject skipped due to CORS policy");
8452
+ rt.inject(N.active(), o), Object.keys(o).length > 0 && this._diag.debug("headers inject skipped due to CORS policy");
8453
8453
  return;
8454
8454
  }
8455
8455
  var a = {};
8456
- rt.inject(L.active(), a), Object.keys(a).forEach(function(u) {
8456
+ rt.inject(N.active(), a), Object.keys(a).forEach(function(u) {
8457
8457
  r.setRequestHeader(u, String(a[u]));
8458
8458
  });
8459
8459
  }, t.prototype._addChildSpan = function(r, n) {
8460
8460
  var i = this;
8461
- L.with(C.setSpan(L.active(), r), function() {
8461
+ N.with(R.setSpan(N.active(), r), function() {
8462
8462
  var o = i.tracer.startSpan("CORS Preflight", {
8463
8463
  startTime: n[S.FETCH_START]
8464
8464
  });
@@ -8538,19 +8538,19 @@ var mm = /* @__PURE__ */ function() {
8538
8538
  };
8539
8539
  }, t.prototype._patchSend = function() {
8540
8540
  var r = this;
8541
- function n(l, p, f, v) {
8542
- var m = p.callbackToRemoveEvents;
8543
- typeof m == "function" && m();
8544
- var y = p.span, _ = p.spanUrl, T = p.sendStartTime;
8545
- y && (r._findResourceAndAddNetworkEvents(p, y, _, T, f), y.addEvent(l, v), r._addFinalSpanAttributes(y, p, _), y.end(v), r._tasksCount--), r._clearResources();
8541
+ function n(l, p, f, m) {
8542
+ var v = p.callbackToRemoveEvents;
8543
+ typeof v == "function" && v();
8544
+ var y = p.span, _ = p.spanUrl, b = p.sendStartTime;
8545
+ y && (r._findResourceAndAddNetworkEvents(p, y, _, b, f), y.addEvent(l, m), r._addFinalSpanAttributes(y, p, _), y.end(m), r._tasksCount--), r._clearResources();
8546
8546
  }
8547
8547
  function i(l, p) {
8548
8548
  var f = r._xhrMem.get(p);
8549
8549
  if (f) {
8550
8550
  f.status = p.status, f.statusText = p.statusText, r._xhrMem.delete(p), f.span && r._applyAttributesAfterXHR(f.span, p);
8551
- var v = Vt(), m = Date.now();
8551
+ var m = Vt(), v = Date.now();
8552
8552
  setTimeout(function() {
8553
- n(l, f, v, m);
8553
+ n(l, f, m, v);
8554
8554
  }, ym);
8555
8555
  }
8556
8556
  }
@@ -8573,20 +8573,20 @@ var mm = /* @__PURE__ */ function() {
8573
8573
  }
8574
8574
  return function(l) {
8575
8575
  return function() {
8576
- for (var p = this, f = [], v = 0; v < arguments.length; v++)
8577
- f[v] = arguments[v];
8578
- var m = r._xhrMem.get(this);
8579
- if (!m)
8576
+ for (var p = this, f = [], m = 0; m < arguments.length; m++)
8577
+ f[m] = arguments[m];
8578
+ var v = r._xhrMem.get(this);
8579
+ if (!v)
8580
8580
  return l.apply(this, f);
8581
- var y = m.span, _ = m.spanUrl;
8581
+ var y = v.span, _ = v.spanUrl;
8582
8582
  if (y && _) {
8583
8583
  if (r.getConfig().measureRequestSize && f != null && f[0]) {
8584
- var T = f[0], P = hm(T);
8585
- P !== void 0 && y.setAttribute(cm, P);
8584
+ var b = f[0], C = hm(b);
8585
+ C !== void 0 && y.setAttribute(cm, C);
8586
8586
  }
8587
- L.with(C.setSpan(L.active(), y), function() {
8588
- r._tasksCount++, m.sendStartTime = Vt(), y.addEvent(yt.METHOD_SEND), p.addEventListener("abort", a), p.addEventListener("error", o), p.addEventListener("load", c), p.addEventListener("timeout", u), m.callbackToRemoveEvents = function() {
8589
- s(p), m.createdResources && m.createdResources.observer.disconnect();
8587
+ N.with(R.setSpan(N.active(), y), function() {
8588
+ r._tasksCount++, v.sendStartTime = Vt(), y.addEvent(yt.METHOD_SEND), p.addEventListener("abort", a), p.addEventListener("error", o), p.addEventListener("load", c), p.addEventListener("timeout", u), v.callbackToRemoveEvents = function() {
8589
+ s(p), v.createdResources && v.createdResources.observer.disconnect();
8590
8590
  }, r._addHeaders(p, _), r._addResourceObserver(p, _);
8591
8591
  });
8592
8592
  }
@@ -8626,7 +8626,7 @@ const Om = (e) => ["events.ld.catamorphic.com", "events.launchdarkly.com"].some(
8626
8626
  (t) => e.toLocaleLowerCase().includes(t)
8627
8627
  ), Am = (e) => Sm(e), xm = (e, t) => t.some(
8628
8628
  (r) => e.toLocaleLowerCase().includes(r)
8629
- ), Nm = (e, t, r) => !xm(e, t) && !Am(e) && !Om(e), Lm = (e, t, r) => {
8629
+ ), Lm = (e, t, r) => !xm(e, t) && !Am(e) && !Om(e), Nm = (e, t, r) => {
8630
8630
  var n;
8631
8631
  if (r.some(
8632
8632
  (a) => e.toLowerCase().includes(a)
@@ -8904,7 +8904,7 @@ function Fm(e) {
8904
8904
  function Vm() {
8905
8905
  return {
8906
8906
  handleResponse: function(e) {
8907
- e == null || !Fm(e) || e.partialSuccess == null || Object.keys(e.partialSuccess).length === 0 || E.warn("Received Partial Success response:", JSON.stringify(e.partialSuccess));
8907
+ e == null || !Fm(e) || e.partialSuccess == null || Object.keys(e.partialSuccess).length === 0 || T.warn("Received Partial Success response:", JSON.stringify(e.partialSuccess));
8908
8908
  }
8909
8909
  };
8910
8910
  }
@@ -8997,7 +8997,7 @@ var Hm = function(e, t, r, n) {
8997
8997
  /** @class */
8998
8998
  function() {
8999
8999
  function e(t, r, n, i, o) {
9000
- this._transport = t, this._serializer = r, this._responseHandler = n, this._promiseQueue = i, this._timeout = o, this._diagLogger = E.createComponentLogger({
9000
+ this._transport = t, this._serializer = r, this._responseHandler = n, this._promiseQueue = i, this._timeout = o, this._diagLogger = T.createComponentLogger({
9001
9001
  namespace: "OTLPExportDelegate"
9002
9002
  });
9003
9003
  }
@@ -9095,7 +9095,7 @@ function Km(e) {
9095
9095
  return t.toString();
9096
9096
  }
9097
9097
  var Wm = typeof BigInt < "u" ? Km : bt;
9098
- function No(e) {
9098
+ function Lo(e) {
9099
9099
  return e;
9100
9100
  }
9101
9101
  function Hs(e) {
@@ -9114,8 +9114,8 @@ function Gs(e) {
9114
9114
  var n = (t = e.useLongBits) !== null && t !== void 0 ? t : !0, i = (r = e.useHex) !== null && r !== void 0 ? r : !1;
9115
9115
  return {
9116
9116
  encodeHrTime: n ? Vs : Wm,
9117
- encodeSpanContext: i ? No : Ei,
9118
- encodeOptionalSpanContext: i ? No : Hs
9117
+ encodeSpanContext: i ? Lo : Ei,
9118
+ encodeOptionalSpanContext: i ? Lo : Hs
9119
9119
  };
9120
9120
  }
9121
9121
  var Jm = function(e, t) {
@@ -9194,7 +9194,7 @@ var Qm = /* @__PURE__ */ function() {
9194
9194
  }
9195
9195
  t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
9196
9196
  };
9197
- }(), Lo = function(e, t, r, n) {
9197
+ }(), No = function(e, t, r, n) {
9198
9198
  function i(o) {
9199
9199
  return o instanceof r ? o : new r(function(a) {
9200
9200
  a(o);
@@ -9346,11 +9346,11 @@ function je(e, t) {
9346
9346
  });
9347
9347
  }
9348
9348
  function iy(e) {
9349
- return Lo(this, void 0, void 0, function() {
9349
+ return No(this, void 0, void 0, function() {
9350
9350
  var t = this;
9351
9351
  return Co(this, function(r) {
9352
9352
  return [2, Promise.all(e.map(function(n) {
9353
- return Lo(t, void 0, void 0, function() {
9353
+ return No(t, void 0, void 0, function() {
9354
9354
  var i, o;
9355
9355
  return Co(this, function(a) {
9356
9356
  switch (a.label) {
@@ -9440,7 +9440,7 @@ var cy = (
9440
9440
  })(O || (O = {}));
9441
9441
  function wt(e, t, r) {
9442
9442
  var n, i, o, a;
9443
- return hy(e) || E.warn('Invalid metric name: "' + e + '". The metric name should be a ASCII string with a length no greater than 255 characters.'), {
9443
+ return hy(e) || T.warn('Invalid metric name: "' + e + '". The metric name should be a ASCII string with a length no greater than 255 characters.'), {
9444
9444
  name: e,
9445
9445
  type: t,
9446
9446
  description: (n = r?.description) !== null && n !== void 0 ? n : "",
@@ -9874,11 +9874,11 @@ var Oy = function(e, t) {
9874
9874
  return new e(Math.min(t.low, r.low), Math.max(t.high, r.high));
9875
9875
  }, e;
9876
9876
  }()
9877
- ), Ay = 20, xy = 160, gn = 2, Ny = (
9877
+ ), Ay = 20, xy = 160, gn = 2, Ly = (
9878
9878
  /** @class */
9879
9879
  function() {
9880
9880
  function e(t, r, n, i, o, a, u, c, s, l, p) {
9881
- t === void 0 && (t = t), r === void 0 && (r = xy), n === void 0 && (n = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new Po()), l === void 0 && (l = new Po()), p === void 0 && (p = Mo(Ay)), this.startTime = t, this._maxSize = r, this._recordMinMax = n, this._sum = i, this._count = o, this._zeroCount = a, this._min = u, this._max = c, this._positive = s, this._negative = l, this._mapping = p, this._maxSize < gn && (E.warn("Exponential Histogram Max Size set to " + this._maxSize + ", changing to the minimum size of: " + gn), this._maxSize = gn);
9881
+ t === void 0 && (t = t), r === void 0 && (r = xy), n === void 0 && (n = !0), i === void 0 && (i = 0), o === void 0 && (o = 0), a === void 0 && (a = 0), u === void 0 && (u = Number.POSITIVE_INFINITY), c === void 0 && (c = Number.NEGATIVE_INFINITY), s === void 0 && (s = new Po()), l === void 0 && (l = new Po()), p === void 0 && (p = Mo(Ay)), this.startTime = t, this._maxSize = r, this._recordMinMax = n, this._sum = i, this._count = o, this._zeroCount = a, this._min = u, this._max = c, this._positive = s, this._negative = l, this._mapping = p, this._maxSize < gn && (T.warn("Exponential Histogram Max Size set to " + this._maxSize + ", changing to the minimum size of: " + gn), this._maxSize = gn);
9882
9882
  }
9883
9883
  return e.prototype.record = function(t) {
9884
9884
  this.updateByIncrement(t, 1);
@@ -10048,14 +10048,14 @@ var Oy = function(e, t) {
10048
10048
  t.trim();
10049
10049
  }, e;
10050
10050
  }()
10051
- ), Ly = (
10051
+ ), Ny = (
10052
10052
  /** @class */
10053
10053
  function() {
10054
10054
  function e(t, r) {
10055
10055
  this._maxSize = t, this._recordMinMax = r, this.kind = Ht.EXPONENTIAL_HISTOGRAM;
10056
10056
  }
10057
10057
  return e.prototype.createAccumulation = function(t) {
10058
- return new Ny(t, this._maxSize, this._recordMinMax);
10058
+ return new Ly(t, this._maxSize, this._recordMinMax);
10059
10059
  }, e.prototype.merge = function(t, r) {
10060
10060
  var n = r.clone();
10061
10061
  return n.merge(t), n;
@@ -10333,7 +10333,7 @@ var Oy = function(e, t) {
10333
10333
  return i._maxSize = r, i._recordMinMax = n, i;
10334
10334
  }
10335
10335
  return t.prototype.createAggregator = function(r) {
10336
- return new Ly(this._maxSize, this._recordMinMax);
10336
+ return new Ny(this._maxSize, this._recordMinMax);
10337
10337
  }, t;
10338
10338
  }(Tt)
10339
10339
  ), jy = (
@@ -10356,7 +10356,7 @@ var Oy = function(e, t) {
10356
10356
  case O.HISTOGRAM:
10357
10357
  return r.advice.explicitBucketBoundaries ? new Uy(r.advice.explicitBucketBoundaries) : au;
10358
10358
  }
10359
- return E.warn("Unable to recognize instrument type: " + r.type), nu;
10359
+ return T.warn("Unable to recognize instrument type: " + r.type), nu;
10360
10360
  }, t.prototype.createAggregator = function(r) {
10361
10361
  return this._resolve(r).createAggregator(r);
10362
10362
  }, t;
@@ -10527,7 +10527,7 @@ var Oy = function(e, t) {
10527
10527
  return En(this, function(r) {
10528
10528
  switch (r.label) {
10529
10529
  case 0:
10530
- return this._shutdown ? (E.error("Cannot call shutdown twice."), [
10530
+ return this._shutdown ? (T.error("Cannot call shutdown twice."), [
10531
10531
  2
10532
10532
  /*return*/
10533
10533
  ]) : t?.timeoutMillis != null ? [3, 2] : [4, this.onShutdown()];
@@ -10550,7 +10550,7 @@ var Oy = function(e, t) {
10550
10550
  return En(this, function(r) {
10551
10551
  switch (r.label) {
10552
10552
  case 0:
10553
- return this._shutdown ? (E.warn("Cannot forceFlush on already shutdown MetricReader."), [
10553
+ return this._shutdown ? (T.warn("Cannot forceFlush on already shutdown MetricReader."), [
10554
10554
  2
10555
10555
  /*return*/
10556
10556
  ]) : t?.timeoutMillis != null ? [3, 2] : [4, this.onForceFlush()];
@@ -10721,10 +10721,10 @@ var Oy = function(e, t) {
10721
10721
  case 1:
10722
10722
  return n.sent(), [3, 3];
10723
10723
  case 2:
10724
- return r = n.sent(), r instanceof Ys ? (E.error("Export took longer than %s milliseconds and timed out.", this._exportTimeout), [
10724
+ return r = n.sent(), r instanceof Ys ? (T.error("Export took longer than %s milliseconds and timed out.", this._exportTimeout), [
10725
10725
  2
10726
10726
  /*return*/
10727
- ]) : (Nt(r), [3, 3]);
10727
+ ]) : (Lt(r), [3, 3]);
10728
10728
  case 3:
10729
10729
  return [
10730
10730
  2
@@ -10744,14 +10744,14 @@ var Oy = function(e, t) {
10744
10744
  timeoutMillis: this._exportTimeout
10745
10745
  })];
10746
10746
  case 1:
10747
- if (i = l.sent(), o = i.resourceMetrics, a = i.errors, a.length > 0 && (s = E).error.apply(s, Ky(["PeriodicExportingMetricReader: metrics collection errors"], Xy(a), !1)), !o.resource.asyncAttributesPending) return [3, 5];
10747
+ if (i = l.sent(), o = i.resourceMetrics, a = i.errors, a.length > 0 && (s = T).error.apply(s, Ky(["PeriodicExportingMetricReader: metrics collection errors"], Xy(a), !1)), !o.resource.asyncAttributesPending) return [3, 5];
10748
10748
  l.label = 2;
10749
10749
  case 2:
10750
10750
  return l.trys.push([2, 4, , 5]), [4, (n = (r = o.resource).waitForAsyncAttributes) === null || n === void 0 ? void 0 : n.call(r)];
10751
10751
  case 3:
10752
10752
  return l.sent(), [3, 5];
10753
10753
  case 4:
10754
- return u = l.sent(), E.debug("Error while resolving async portion of resource: ", u), Nt(u), [3, 5];
10754
+ return u = l.sent(), T.debug("Error while resolving async portion of resource: ", u), Lt(u), [3, 5];
10755
10755
  case 5:
10756
10756
  return o.scopeMetrics.length === 0 ? [
10757
10757
  2
@@ -10849,11 +10849,11 @@ var Oy = function(e, t) {
10849
10849
  this._writableMetricStorage = t, this._descriptor = r;
10850
10850
  }
10851
10851
  return e.prototype._record = function(t, r, n) {
10852
- if (r === void 0 && (r = {}), n === void 0 && (n = L.active()), typeof t != "number") {
10853
- E.warn("non-number value provided to metric " + this._descriptor.name + ": " + t);
10852
+ if (r === void 0 && (r = {}), n === void 0 && (n = N.active()), typeof t != "number") {
10853
+ T.warn("non-number value provided to metric " + this._descriptor.name + ": " + t);
10854
10854
  return;
10855
10855
  }
10856
- this._descriptor.valueType === xt.INT && !Number.isInteger(t) && (E.warn("INT value type cannot accept a floating-point value for " + this._descriptor.name + ", ignoring the fractional digits."), t = Math.trunc(t), !Number.isInteger(t)) || this._writableMetricStorage.record(t, r, n, nt(Date.now()));
10856
+ this._descriptor.valueType === xt.INT && !Number.isInteger(t) && (T.warn("INT value type cannot accept a floating-point value for " + this._descriptor.name + ", ignoring the fractional digits."), t = Math.trunc(t), !Number.isInteger(t)) || this._writableMetricStorage.record(t, r, n, nt(Date.now()));
10857
10857
  }, e;
10858
10858
  }()
10859
10859
  ), Jy = (
@@ -10876,7 +10876,7 @@ var Oy = function(e, t) {
10876
10876
  }
10877
10877
  return t.prototype.add = function(r, n, i) {
10878
10878
  if (r < 0) {
10879
- E.warn("negative value provided to counter " + this._descriptor.name + ": " + r);
10879
+ T.warn("negative value provided to counter " + this._descriptor.name + ": " + r);
10880
10880
  return;
10881
10881
  }
10882
10882
  this._record(r, n, i);
@@ -10902,7 +10902,7 @@ var Oy = function(e, t) {
10902
10902
  }
10903
10903
  return t.prototype.record = function(r, n, i) {
10904
10904
  if (r < 0) {
10905
- E.warn("negative value provided to histogram " + this._descriptor.name + ": " + r);
10905
+ T.warn("negative value provided to histogram " + this._descriptor.name + ": " + r);
10906
10906
  return;
10907
10907
  }
10908
10908
  this._record(r, n, i);
@@ -11442,8 +11442,8 @@ var wn = function(e) {
11442
11442
  var s = c.value;
11443
11443
  a = a.concat(s);
11444
11444
  }
11445
- } catch (v) {
11446
- r = { error: v };
11445
+ } catch (m) {
11446
+ r = { error: m };
11447
11447
  } finally {
11448
11448
  try {
11449
11449
  c && !c.done && (n = u.return) && n.call(u);
@@ -11458,8 +11458,8 @@ var wn = function(e) {
11458
11458
  var s = f.value;
11459
11459
  a = a.concat(s);
11460
11460
  }
11461
- } catch (v) {
11462
- i = { error: v };
11461
+ } catch (m) {
11462
+ i = { error: m };
11463
11463
  } finally {
11464
11464
  try {
11465
11465
  f && !f.done && (o = p.return) && o.call(p);
@@ -11494,10 +11494,10 @@ var wn = function(e) {
11494
11494
  try {
11495
11495
  for (var a = wn(r), u = a.next(); !u.done; u = a.next()) {
11496
11496
  var c = u.value, s = c.getInstrumentDescriptor();
11497
- py(s, t) ? (s.description !== t.description && (t.description.length > s.description.length && c.updateDescription(t.description), E.warn("A view or instrument with the name ", t.name, ` has already been registered, but has a different description and is incompatible with another registered view.
11497
+ py(s, t) ? (s.description !== t.description && (t.description.length > s.description.length && c.updateDescription(t.description), T.warn("A view or instrument with the name ", t.name, ` has already been registered, but has a different description and is incompatible with another registered view.
11498
11498
  `, `Details:
11499
11499
  `, Bo(s, t), `The longer description will be used.
11500
- To resolve the conflict:`, Fo(s, t))), o = c) : E.warn("A view or instrument with the name ", t.name, ` has already been registered and is incompatible with another registered view.
11500
+ To resolve the conflict:`, Fo(s, t))), o = c) : T.warn("A view or instrument with the name ", t.name, ` has already been registered and is incompatible with another registered view.
11501
11501
  `, `Details:
11502
11502
  `, Bo(s, t), `To resolve the conflict:
11503
11503
  `, Fo(s, t));
@@ -11534,10 +11534,10 @@ To resolve the conflict:`, Fo(s, t))), o = c) : E.warn("A view or instrument wit
11534
11534
  }
11535
11535
  return e.prototype.observe = function(t, r) {
11536
11536
  if (r === void 0 && (r = {}), typeof t != "number") {
11537
- E.warn("non-number value provided to metric " + this._instrumentName + ": " + t);
11537
+ T.warn("non-number value provided to metric " + this._instrumentName + ": " + t);
11538
11538
  return;
11539
11539
  }
11540
- this._valueType === xt.INT && !Number.isInteger(t) && (E.warn("INT value type cannot accept a floating-point value for " + this._instrumentName + ", ignoring the fractional digits."), t = Math.trunc(t), !Number.isInteger(t)) || this._buffer.set(r, t);
11540
+ this._valueType === xt.INT && !Number.isInteger(t) && (T.warn("INT value type cannot accept a floating-point value for " + this._instrumentName + ", ignoring the fractional digits."), t = Math.trunc(t), !Number.isInteger(t)) || this._buffer.set(r, t);
11541
11541
  }, e;
11542
11542
  }()
11543
11543
  ), _g = (
@@ -11550,10 +11550,10 @@ To resolve the conflict:`, Fo(s, t))), o = c) : E.warn("A view or instrument wit
11550
11550
  if (n === void 0 && (n = {}), !!ei(t)) {
11551
11551
  var i = this._buffer.get(t);
11552
11552
  if (i == null && (i = new jt(), this._buffer.set(t, i)), typeof r != "number") {
11553
- E.warn("non-number value provided to metric " + t._descriptor.name + ": " + r);
11553
+ T.warn("non-number value provided to metric " + t._descriptor.name + ": " + r);
11554
11554
  return;
11555
11555
  }
11556
- t._descriptor.valueType === xt.INT && !Number.isInteger(r) && (E.warn("INT value type cannot accept a floating-point value for " + t._descriptor.name + ", ignoring the fractional digits."), r = Math.trunc(r), !Number.isInteger(r)) || i.set(n, r);
11556
+ t._descriptor.valueType === xt.INT && !Number.isInteger(r) && (T.warn("INT value type cannot accept a floating-point value for " + t._descriptor.name + ", ignoring the fractional digits."), r = Math.trunc(r), !Number.isInteger(r)) || i.set(n, r);
11557
11557
  }
11558
11558
  }, e;
11559
11559
  }()
@@ -11677,7 +11677,7 @@ To resolve the conflict:`, Fo(s, t))), o = c) : E.warn("A view or instrument wit
11677
11677
  }, e.prototype.addBatchCallback = function(t, r) {
11678
11678
  var n = new Set(r.filter(ei));
11679
11679
  if (n.size === 0) {
11680
- E.error("BatchObservableCallback is not associated with valid instruments", r);
11680
+ T.error("BatchObservableCallback is not associated with valid instruments", r);
11681
11681
  return;
11682
11682
  }
11683
11683
  var i = this._findBatchCallback(t, n);
@@ -11940,7 +11940,7 @@ var Sg = new wg(), Og = function(e, t, r, n) {
11940
11940
  }
11941
11941
  }
11942
11942
  return o;
11943
- }, Ng = (
11943
+ }, Lg = (
11944
11944
  /** @class */
11945
11945
  function() {
11946
11946
  function e(t, r) {
@@ -11985,7 +11985,7 @@ var Sg = new wg(), Og = function(e, t, r, n) {
11985
11985
  var s = xg(c, 2), l = s[0], p = s[1], f = n.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(l, t);
11986
11986
  if (f != null)
11987
11987
  return f;
11988
- var v = p.createAggregator(t), m = l.selectCardinalityLimit(t.type), y = new r(t, v, Si.Noop(), [l], m);
11988
+ var m = p.createAggregator(t), v = l.selectCardinalityLimit(t.type), y = new r(t, m, Si.Noop(), [l], v);
11989
11989
  return n.metricStorageRegistry.registerForCollector(l, y), y;
11990
11990
  });
11991
11991
  o = o.concat(u);
@@ -11993,7 +11993,7 @@ var Sg = new wg(), Og = function(e, t, r, n) {
11993
11993
  return o;
11994
11994
  }, e;
11995
11995
  }()
11996
- ), Lg = function(e) {
11996
+ ), Ng = function(e) {
11997
11997
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
11998
11998
  if (r) return r.call(e);
11999
11999
  if (e && typeof e.length == "number") return {
@@ -12010,11 +12010,11 @@ var Sg = new wg(), Og = function(e, t, r, n) {
12010
12010
  }
12011
12011
  return e.prototype.getMeterSharedState = function(t) {
12012
12012
  var r = ny(t), n = this.meterSharedStates.get(r);
12013
- return n == null && (n = new Ng(this, t), this.meterSharedStates.set(r, n)), n;
12013
+ return n == null && (n = new Lg(this, t), this.meterSharedStates.set(r, n)), n;
12014
12014
  }, e.prototype.selectAggregations = function(t) {
12015
12015
  var r, n, i = [];
12016
12016
  try {
12017
- for (var o = Lg(this.metricCollectors), a = o.next(); !a.done; a = o.next()) {
12017
+ for (var o = Ng(this.metricCollectors), a = o.next(); !a.done; a = o.next()) {
12018
12018
  var u = a.value;
12019
12019
  i.push([u, u.selectAggregation(t)]);
12020
12020
  }
@@ -12321,8 +12321,8 @@ var Mg = (
12321
12321
  var s = c.value;
12322
12322
  this._sharedState.viewRegistry.addView(s);
12323
12323
  }
12324
- } catch (v) {
12325
- r = { error: v };
12324
+ } catch (m) {
12325
+ r = { error: m };
12326
12326
  } finally {
12327
12327
  try {
12328
12328
  c && !c.done && (n = u.return) && n.call(u);
@@ -12336,8 +12336,8 @@ var Mg = (
12336
12336
  var f = p.value;
12337
12337
  this.addMetricReader(f);
12338
12338
  }
12339
- } catch (v) {
12340
- i = { error: v };
12339
+ } catch (m) {
12340
+ i = { error: m };
12341
12341
  } finally {
12342
12342
  try {
12343
12343
  p && !p.done && (o = l.return) && o.call(l);
@@ -12347,7 +12347,7 @@ var Mg = (
12347
12347
  }
12348
12348
  }
12349
12349
  return e.prototype.getMeter = function(t, r, n) {
12350
- return r === void 0 && (r = ""), n === void 0 && (n = {}), this._shutdown ? (E.warn("A shutdown MeterProvider cannot provide a Meter"), Np()) : this._sharedState.getMeterSharedState({
12350
+ return r === void 0 && (r = ""), n === void 0 && (n = {}), this._shutdown ? (T.warn("A shutdown MeterProvider cannot provide a Meter"), Lp()) : this._sharedState.getMeterSharedState({
12351
12351
  name: t,
12352
12352
  version: r,
12353
12353
  schemaUrl: n.schemaUrl
@@ -12360,7 +12360,7 @@ var Mg = (
12360
12360
  return qo(this, function(r) {
12361
12361
  switch (r.label) {
12362
12362
  case 0:
12363
- return this._shutdown ? (E.warn("shutdown may only be called once per MeterProvider"), [
12363
+ return this._shutdown ? (T.warn("shutdown may only be called once per MeterProvider"), [
12364
12364
  2
12365
12365
  /*return*/
12366
12366
  ]) : (this._shutdown = !0, [4, Promise.all(this._sharedState.metricCollectors.map(function(n) {
@@ -12379,7 +12379,7 @@ var Mg = (
12379
12379
  return qo(this, function(r) {
12380
12380
  switch (r.label) {
12381
12381
  case 0:
12382
- return this._shutdown ? (E.warn("invalid attempt to force flush after MeterProvider shutdown"), [
12382
+ return this._shutdown ? (T.warn("invalid attempt to force flush after MeterProvider shutdown"), [
12383
12383
  2
12384
12384
  /*return*/
12385
12385
  ]) : [4, Promise.all(this._sharedState.metricCollectors.map(function(n) {
@@ -12629,23 +12629,23 @@ function Jg(e, t) {
12629
12629
  for (var a = qg(o.value, 2), u = a[0], c = a[1], s = [], l = c.values(), p = l.next(); !p.done; ) {
12630
12630
  var f = p.value;
12631
12631
  if (f.length > 0) {
12632
- var v = f.map(function(y) {
12632
+ var m = f.map(function(y) {
12633
12633
  return zg(y, t);
12634
12634
  });
12635
12635
  s.push({
12636
12636
  scope: zs(f[0].instrumentationLibrary),
12637
- spans: v,
12637
+ spans: m,
12638
12638
  schemaUrl: f[0].instrumentationLibrary.schemaUrl
12639
12639
  });
12640
12640
  }
12641
12641
  p = l.next();
12642
12642
  }
12643
- var m = {
12643
+ var v = {
12644
12644
  resource: qs(u),
12645
12645
  scopeSpans: s,
12646
12646
  schemaUrl: void 0
12647
12647
  };
12648
- n.push(m), o = i.next();
12648
+ n.push(v), o = i.next();
12649
12649
  }
12650
12650
  return n;
12651
12651
  }
@@ -12851,7 +12851,7 @@ var l_ = function(e, t) {
12851
12851
  error: new Error("XHR request timed out")
12852
12852
  });
12853
12853
  }, o.onreadystatechange = function() {
12854
- o.status >= 200 && o.status <= 299 ? (E.debug("XHR success"), i({
12854
+ o.status >= 200 && o.status <= 299 ? (T.debug("XHR success"), i({
12855
12855
  status: "success"
12856
12856
  })) : o.status && u_(o.status) ? i({
12857
12857
  status: "retryable",
@@ -12888,7 +12888,7 @@ var h_ = (
12888
12888
  return e.prototype.send = function(t) {
12889
12889
  var r = this;
12890
12890
  return new Promise(function(n) {
12891
- navigator.sendBeacon(r._params.url, new Blob([t], { type: r._params.blobType })) ? (E.debug("SendBeacon success"), n({
12891
+ navigator.sendBeacon(r._params.url, new Blob([t], { type: r._params.blobType })) ? (T.debug("SendBeacon success"), n({
12892
12892
  status: "success"
12893
12893
  })) : n({
12894
12894
  status: "failure",
@@ -12937,7 +12937,7 @@ function g_(e) {
12937
12937
  var t, r = {};
12938
12938
  return Object.entries((t = e?.()) !== null && t !== void 0 ? t : {}).forEach(function(n) {
12939
12939
  var i = y_(n, 2), o = i[0], a = i[1];
12940
- typeof a < "u" ? r[o] = String(a) : E.warn('Header "' + o + '" has invalid value (' + a + ") and will be ignored");
12940
+ typeof a < "u" ? r[o] = String(a) : T.warn('Header "' + o + '" has invalid value (' + a + ") and will be ignored");
12941
12941
  }), r;
12942
12942
  };
12943
12943
  }
@@ -13066,12 +13066,12 @@ var A_ = /* @__PURE__ */ function() {
13066
13066
  };
13067
13067
  function x_() {
13068
13068
  var e = ue(), t = e.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();
13069
- return t === "cumulative" ? ri : t === "delta" ? hu : t === "lowmemory" ? du : (E.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '" + e.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + "', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."), ri);
13069
+ return t === "cumulative" ? ri : t === "delta" ? hu : t === "lowmemory" ? du : (T.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '" + e.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE + "', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."), ri);
13070
13070
  }
13071
- function N_(e) {
13071
+ function L_(e) {
13072
13072
  return e != null ? e === Cr.DELTA ? hu : e === Cr.LOWMEMORY ? du : ri : x_();
13073
13073
  }
13074
- function L_(e) {
13074
+ function N_(e) {
13075
13075
  return e != null && e.aggregationPreference ? e.aggregationPreference : function(t) {
13076
13076
  return Tt.Default();
13077
13077
  };
@@ -13082,7 +13082,7 @@ var C_ = (
13082
13082
  A_(t, e);
13083
13083
  function t(r, n) {
13084
13084
  var i = e.call(this, r) || this;
13085
- return i._aggregationSelector = L_(n), i._aggregationTemporalitySelector = N_(n?.temporalityPreference), i;
13085
+ return i._aggregationSelector = N_(n), i._aggregationTemporalitySelector = L_(n?.temporalityPreference), i;
13086
13086
  }
13087
13087
  return t.prototype.selectAggregation = function(r) {
13088
13088
  return this._aggregationSelector(r);
@@ -13252,7 +13252,7 @@ const ni = class Rt extends Ss {
13252
13252
  Rt.moduleName,
13253
13253
  Rt.version,
13254
13254
  t
13255
- ), D(this, "_spansData", /* @__PURE__ */ new WeakMap()), D(this, "_zonePatched"), D(this, "_wrappedListeners", /* @__PURE__ */ new WeakMap()), D(this, "_eventsSpanMap", /* @__PURE__ */ new WeakMap()), D(this, "_eventNames"), D(this, "_shouldPreventSpanCreation"), this._eventNames = new Set(
13255
+ ), M(this, "_spansData", /* @__PURE__ */ new WeakMap()), M(this, "_zonePatched"), M(this, "_wrappedListeners", /* @__PURE__ */ new WeakMap()), M(this, "_eventsSpanMap", /* @__PURE__ */ new WeakMap()), M(this, "_eventNames"), M(this, "_shouldPreventSpanCreation"), this._eventNames = new Set(
13256
13256
  (r = t?.eventNames) != null ? r : j_
13257
13257
  ), this._shouldPreventSpanCreation = typeof t?.shouldPreventSpanCreation == "function" ? t.shouldPreventSpanCreation : B_;
13258
13258
  }
@@ -13302,7 +13302,7 @@ const ni = class Rt extends Ss {
13302
13302
  "viewport.height": window.innerHeight
13303
13303
  }
13304
13304
  },
13305
- r ? C.setSpan(L.active(), r) : void 0
13305
+ r ? R.setSpan(N.active(), r) : void 0
13306
13306
  );
13307
13307
  return t instanceof MouseEvent && (u.setAttribute("event.x", t.clientX), u.setAttribute("event.y", t.clientY), u.setAttribute(
13308
13308
  "event.relativeX",
@@ -13336,7 +13336,7 @@ const ni = class Rt extends Ss {
13336
13336
  */
13337
13337
  _getCurrentSpan(t) {
13338
13338
  const r = t.get(U_);
13339
- return r && C.getSpan(r);
13339
+ return r && R.getSpan(r);
13340
13340
  }
13341
13341
  /**
13342
13342
  * Increment number of tasks that are run within the same zone.
@@ -13393,16 +13393,16 @@ const ni = class Rt extends Ss {
13393
13393
  if (Date.now() - ((l = r.get(f.type)) != null ? l : 0) < 1e3 / 60)
13394
13394
  return t._invokeListener(o, this, s);
13395
13395
  r.set(f.type, Date.now()), f && (p = t._eventsSpanMap.get(f)), u && t.removePatchedListener(this, i, o);
13396
- const v = t._createSpan(f, p);
13397
- return v ? (f && t._eventsSpanMap.set(f, v), L.with(
13398
- C.setSpan(L.active(), v),
13396
+ const m = t._createSpan(f, p);
13397
+ return m ? (f && t._eventsSpanMap.set(f, m), N.with(
13398
+ R.setSpan(N.active(), m),
13399
13399
  () => {
13400
- const m = t._invokeListener(
13400
+ const v = t._invokeListener(
13401
13401
  o,
13402
13402
  this,
13403
13403
  s
13404
13404
  );
13405
- return v.end(), m;
13405
+ return m.end(), v;
13406
13406
  }
13407
13407
  )) : t._invokeListener(o, this, s);
13408
13408
  };
@@ -13483,8 +13483,8 @@ const ni = class Rt extends Ss {
13483
13483
  * @param url
13484
13484
  */
13485
13485
  _updateInteractionName(t) {
13486
- const r = C.getSpan(
13487
- L.active()
13486
+ const r = R.getSpan(
13487
+ N.active()
13488
13488
  );
13489
13489
  r && typeof r.updateName == "function" && r.updateName(`${$_} ${t}`);
13490
13490
  }
@@ -13527,9 +13527,9 @@ const ni = class Rt extends Ss {
13527
13527
  if (c = t._createSpan(a), c)
13528
13528
  return t._incrementTask(c), s.run(() => {
13529
13529
  try {
13530
- return L.with(
13531
- C.setSpan(
13532
- L.active(),
13530
+ return N.with(
13531
+ R.setSpan(
13532
+ N.active(),
13533
13533
  c
13534
13534
  ),
13535
13535
  () => {
@@ -13641,7 +13641,7 @@ const ni = class Rt extends Ss {
13641
13641
  return window.Zone;
13642
13642
  }
13643
13643
  };
13644
- D(ni, "version", "0.1.0"), D(ni, "moduleName", "user-interaction");
13644
+ M(ni, "version", "0.1.0"), M(ni, "moduleName", "user-interaction");
13645
13645
  let F_ = ni, Pt = {}, ee;
13646
13646
  const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.js.log", G_ = (e, t) => {
13647
13647
  var r, n, i, o, a, u, c, s, l;
@@ -13653,7 +13653,7 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13653
13653
  const p = e.backendUrl || void 0 || "https://pub.highlight.io", f = [
13654
13654
  ...(n = (r = e.networkRecordingOptions) == null ? void 0 : r.urlBlocklist) != null ? n : [],
13655
13655
  ...Em
13656
- ], v = (i = e.environment) != null ? i : "production", m = {
13656
+ ], m = (i = e.environment) != null ? i : "production", v = {
13657
13657
  url: e.otlpEndpoint + "/v1/traces",
13658
13658
  concurrencyLimit: 100,
13659
13659
  timeoutMillis: 5e3,
@@ -13666,16 +13666,16 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13666
13666
  keepAlive: !0
13667
13667
  }
13668
13668
  }, y = new M_(
13669
- m,
13669
+ v,
13670
13670
  t
13671
13671
  ), _ = new q_(y, {
13672
13672
  maxExportBatchSize: 100,
13673
13673
  maxQueueSize: 1e3,
13674
- exportTimeoutMillis: m.timeoutMillis,
13675
- scheduledDelayMillis: m.timeoutMillis
13676
- }), T = new $e({
13674
+ exportTimeoutMillis: v.timeoutMillis,
13675
+ scheduledDelayMillis: v.timeoutMillis
13676
+ }), b = new $e({
13677
13677
  [Vd]: (o = e.serviceName) != null ? o : "highlight-browser",
13678
- "deployment.environment.name": v,
13678
+ "deployment.environment.name": m,
13679
13679
  "highlight.project_id": e.projectId,
13680
13680
  [Kd]: navigator.userAgent,
13681
13681
  "browser.language": navigator.language,
@@ -13683,20 +13683,20 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13683
13683
  "telemetry.distro.version": Rl
13684
13684
  });
13685
13685
  Pt.tracerProvider = new Ad({
13686
- resource: T,
13686
+ resource: b,
13687
13687
  mergeResourceWithDefaults: !0,
13688
13688
  spanProcessors: [_]
13689
- }), C.setGlobalTracerProvider(Pt.tracerProvider);
13690
- const P = new D_(Z(I({}, m), {
13689
+ }), R.setGlobalTracerProvider(Pt.tracerProvider);
13690
+ const C = new D_(Z(I({}, v), {
13691
13691
  url: e.otlpEndpoint + "/v1/metrics"
13692
- })), B = new Wy({
13693
- exporter: P,
13694
- exportIntervalMillis: m.timeoutMillis,
13695
- exportTimeoutMillis: m.timeoutMillis
13692
+ })), U = new Wy({
13693
+ exporter: C,
13694
+ exportIntervalMillis: v.timeoutMillis,
13695
+ exportTimeoutMillis: v.timeoutMillis
13696
13696
  });
13697
- Pt.meterProvider = new Mg({ resource: T, readers: [B] }), _t.setGlobalMeterProvider(Pt.meterProvider);
13698
- let M = [];
13699
- ((a = e.instrumentations) == null ? void 0 : a["@opentelemetry/instrumentation-document-load"]) !== !1 && M.push(
13697
+ Pt.meterProvider = new Mg({ resource: b, readers: [U] }), _t.setGlobalMeterProvider(Pt.meterProvider);
13698
+ let D = [];
13699
+ ((a = e.instrumentations) == null ? void 0 : a["@opentelemetry/instrumentation-document-load"]) !== !1 && D.push(
13700
13700
  new Qd({
13701
13701
  applyCustomAttributesOnSpan: {
13702
13702
  documentLoad: Qo,
@@ -13704,16 +13704,16 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13704
13704
  resourceFetch: K_
13705
13705
  }
13706
13706
  })
13707
- ), ((u = e.instrumentations) == null ? void 0 : u["@opentelemetry/instrumentation-user-interaction"]) !== !1 && M.push(
13707
+ ), ((u = e.instrumentations) == null ? void 0 : u["@opentelemetry/instrumentation-user-interaction"]) !== !1 && D.push(
13708
13708
  new F_({
13709
13709
  eventNames: e.eventNames
13710
13710
  })
13711
- ), (c = e.networkRecordingOptions) != null && c.enabled && (((s = e.instrumentations) == null ? void 0 : s["@opentelemetry/instrumentation-fetch"]) !== !1 && M.push(
13711
+ ), (c = e.networkRecordingOptions) != null && c.enabled && (((s = e.instrumentations) == null ? void 0 : s["@opentelemetry/instrumentation-fetch"]) !== !1 && D.push(
13712
13712
  new $v({
13713
13713
  propagateTraceHeaderCorsUrls: Zo(
13714
13714
  e.tracingOrigins
13715
13715
  ),
13716
- applyCustomAttributesOnSpan: (k, G, U) => Ur(void 0, null, function* () {
13716
+ applyCustomAttributesOnSpan: (k, G, $) => Ur(void 0, null, function* () {
13717
13717
  var vt, ut, K;
13718
13718
  if (!k.attributes)
13719
13719
  return;
@@ -13721,10 +13721,10 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13721
13721
  if (Yt.attributes[Rr] === !1)
13722
13722
  return;
13723
13723
  const he = Yt.attributes["http.url"], h = (vt = G.method) != null ? vt : "GET";
13724
- if (k.updateName(Yo(he, h, G.body)), !(U instanceof Response)) {
13724
+ if (k.updateName(Yo(he, h, G.body)), !($ instanceof Response)) {
13725
13725
  k.setAttributes({
13726
- "http.response.error": U.message,
13727
- "http.response.status": U.status
13726
+ "http.response.error": $.message,
13727
+ "http.response.status": $.status
13728
13728
  });
13729
13729
  return;
13730
13730
  }
@@ -13735,20 +13735,20 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13735
13735
  e.networkRecordingOptions
13736
13736
  );
13737
13737
  const g = yield Rm(
13738
- U,
13738
+ $,
13739
13739
  (ut = e.networkRecordingOptions) == null ? void 0 : ut.bodyKeysToRecord,
13740
13740
  (K = e.networkRecordingOptions) == null ? void 0 : K.networkBodyKeysToRedact
13741
13741
  );
13742
13742
  k.setAttribute("http.response.body", g);
13743
13743
  })
13744
13744
  })
13745
- ), ((l = e.instrumentations) == null ? void 0 : l["@opentelemetry/instrumentation-xml-http-request"]) !== !1 && M.push(
13745
+ ), ((l = e.instrumentations) == null ? void 0 : l["@opentelemetry/instrumentation-xml-http-request"]) !== !1 && D.push(
13746
13746
  new gm({
13747
13747
  propagateTraceHeaderCorsUrls: Zo(
13748
13748
  e.tracingOrigins
13749
13749
  ),
13750
13750
  applyCustomAttributesOnSpan: (k, G) => {
13751
- var U, vt;
13751
+ var $, vt;
13752
13752
  const ut = G;
13753
13753
  if (!k.attributes || k.attributes[Rr] === !1)
13754
13754
  return;
@@ -13765,15 +13765,15 @@ const Rr = "highlight.record", V_ = "highlight.session_id", H_ = "launchdarkly.j
13765
13765
  );
13766
13766
  const Yt = $s(
13767
13767
  ut._body,
13768
- (U = e.networkRecordingOptions) == null ? void 0 : U.networkBodyKeysToRedact,
13768
+ ($ = e.networkRecordingOptions) == null ? void 0 : $.networkBodyKeysToRedact,
13769
13769
  (vt = e.networkRecordingOptions) == null ? void 0 : vt.bodyKeysToRecord,
13770
13770
  ut._requestHeaders
13771
13771
  );
13772
13772
  k.setAttribute("http.request.body", Yt);
13773
13773
  }
13774
13774
  })
13775
- )), Vh({ instrumentations: M });
13776
- const F = new Ns();
13775
+ )), Vh({ instrumentations: D });
13776
+ const F = new Ls();
13777
13777
  F.enable(), Pt.tracerProvider.register({
13778
13778
  contextManager: F,
13779
13779
  propagator: new us({
@@ -13799,7 +13799,7 @@ class q_ extends xs {
13799
13799
  }
13800
13800
  class z_ extends cs {
13801
13801
  constructor(t) {
13802
- super(), D(this, "highlightEndpoints"), D(this, "tracingOrigins"), D(this, "urlBlocklist"), this.highlightEndpoints = [
13802
+ super(), M(this, "highlightEndpoints"), M(this, "tracingOrigins"), M(this, "urlBlocklist"), this.highlightEndpoints = [
13803
13803
  t.backendUrl,
13804
13804
  `${t.otlpEndpoint}/v1/traces`,
13805
13805
  `${t.otlpEndpoint}/v1/logs`,
@@ -13808,7 +13808,7 @@ class z_ extends cs {
13808
13808
  }
13809
13809
  inject(t, r, n) {
13810
13810
  var i;
13811
- const o = C.getSpan(t);
13811
+ const o = R.getSpan(t);
13812
13812
  if (!o || !o.attributes)
13813
13813
  return;
13814
13814
  const a = o.attributes["http.url"];
@@ -13817,7 +13817,7 @@ class z_ extends cs {
13817
13817
  this.highlightEndpoints,
13818
13818
  this.tracingOrigins,
13819
13819
  this.urlBlocklist
13820
- ) || o.setAttribute(Rr, !1), !Lm(
13820
+ ) || o.setAttribute(Rr, !1), !Nm(
13821
13821
  a,
13822
13822
  (i = this.tracingOrigins) != null ? i : [],
13823
13823
  this.urlBlocklist
@@ -13874,7 +13874,7 @@ const vu = "highlight-browser", ar = vu, Wo = () => {
13874
13874
  });
13875
13875
  }, X_ = (e, t, r, n) => n != null && n.some(
13876
13876
  (i) => e.toLowerCase().includes(i)
13877
- ) ? !1 : Nm(
13877
+ ) ? !1 : Lm(
13878
13878
  e,
13879
13879
  t
13880
13880
  ), Qo = (e) => {
@@ -14079,7 +14079,7 @@ var At, Ce, yu, Pr, ii, gu = -1, Wt = function(e) {
14079
14079
  addEventListener("visibilitychange", Ir, !0), addEventListener("prerenderingchange", Ir, !0);
14080
14080
  }, eb = function() {
14081
14081
  removeEventListener("visibilitychange", Ir, !0), removeEventListener("prerenderingchange", Ir, !0);
14082
- }, Ni = function() {
14082
+ }, Li = function() {
14083
14083
  return ie < 0 && (ie = ea(), ra(), Wt(function() {
14084
14084
  setTimeout(function() {
14085
14085
  ie = ea(), ra();
@@ -14093,7 +14093,7 @@ var At, Ce, yu, Pr, ii, gu = -1, Wt = function(e) {
14093
14093
  }, !0) : e();
14094
14094
  }, na = [1800, 3e3], _u = function(e, t) {
14095
14095
  t = t || {}, qe(function() {
14096
- var r, n = Ni(), i = at("FCP"), o = fe("paint", function(a) {
14096
+ var r, n = Li(), i = at("FCP"), o = fe("paint", function(a) {
14097
14097
  a.forEach(function(u) {
14098
14098
  u.name === "first-contentful-paint" && (o.disconnect(), u.startTime < n.firstHiddenTime && (i.value = Math.max(u.startTime - Gr(), 0), i.entries.push(u), r(!0)));
14099
14099
  });
@@ -14151,7 +14151,7 @@ var At, Ce, yu, Pr, ii, gu = -1, Wt = function(e) {
14151
14151
  });
14152
14152
  }, aa = [100, 300], ob = function(e, t) {
14153
14153
  t = t || {}, qe(function() {
14154
- var r, n = Ni(), i = at("FID"), o = function(c) {
14154
+ var r, n = Li(), i = at("FID"), o = function(c) {
14155
14155
  c.startTime < n.firstHiddenTime && (i.value = c.processingStart - c.startTime, i.entries.push(c), r(!0));
14156
14156
  }, a = function(c) {
14157
14157
  c.forEach(o);
@@ -14208,16 +14208,16 @@ var At, Ce, yu, Pr, ii, gu = -1, Wt = function(e) {
14208
14208
  ft = [], Su = wu(), i = at("INP"), n = st(e, i, sa, t.reportAllChanges);
14209
14209
  }));
14210
14210
  });
14211
- }, la = [2500, 4e3], Nn = {}, cb = function(e, t) {
14211
+ }, la = [2500, 4e3], Ln = {}, cb = function(e, t) {
14212
14212
  t = t || {}, qe(function() {
14213
- var r, n = Ni(), i = at("LCP"), o = function(c) {
14213
+ var r, n = Li(), i = at("LCP"), o = function(c) {
14214
14214
  var s = c[c.length - 1];
14215
14215
  s && s.startTime < n.firstHiddenTime && (i.value = Math.max(s.startTime - Gr(), 0), i.entries = [s], r());
14216
14216
  }, a = fe("largest-contentful-paint", o);
14217
14217
  if (a) {
14218
14218
  r = st(e, i, la, t.reportAllChanges);
14219
14219
  var u = xi(function() {
14220
- Nn[i.id] || (o(a.takeRecords()), a.disconnect(), Nn[i.id] = !0, r(!0));
14220
+ Ln[i.id] || (o(a.takeRecords()), a.disconnect(), Ln[i.id] = !0, r(!0));
14221
14221
  });
14222
14222
  ["keydown", "click"].forEach(function(c) {
14223
14223
  addEventListener(c, function() {
@@ -14225,7 +14225,7 @@ var At, Ce, yu, Pr, ii, gu = -1, Wt = function(e) {
14225
14225
  }, !0);
14226
14226
  }), qr(u), Wt(function(c) {
14227
14227
  i = at("LCP"), r = st(e, i, la, t.reportAllChanges), Ai(function() {
14228
- i.value = performance.now() - c.timeStamp, Nn[i.id] = !0, r(!0);
14228
+ i.value = performance.now() - c.timeStamp, Ln[i.id] = !0, r(!0);
14229
14229
  });
14230
14230
  });
14231
14231
  }
@@ -14285,11 +14285,11 @@ const fb = (e) => (rb(e), _u(e), ob(e), cb(e), pb(e), ub(e), () => {
14285
14285
  )
14286
14286
  }),
14287
14287
  getCurrentDeviceDetails: () => {
14288
- const t = Ln(
14288
+ const t = Nn(
14289
14289
  e.memory.jsHeapSizeLimit
14290
- ), r = Ln(
14290
+ ), r = Nn(
14291
14291
  e.memory.totalJSHeapSize
14292
- ), n = Ln(
14292
+ ), n = Nn(
14293
14293
  e.memory.usedJSHeapSize
14294
14294
  );
14295
14295
  return {
@@ -14299,7 +14299,7 @@ const fb = (e) => (rb(e), _u(e), ob(e), cb(e), pb(e), ub(e), () => {
14299
14299
  };
14300
14300
  }
14301
14301
  };
14302
- }, Ln = (e) => e / Math.pow(1e3, 2), vb = (e) => 1024 * e, mb = "launchdarkly.js.log", yb = "log.severity", gb = "log.message", fa = "launchdarkly.sampling.ratio";
14302
+ }, Nn = (e) => e / Math.pow(1e3, 2), vb = (e) => 1024 * e, mb = "launchdarkly.js.log", yb = "log.severity", gb = "log.message", fa = "launchdarkly.sampling.ratio";
14303
14303
  function _b(e) {
14304
14304
  return "regexValue" in e;
14305
14305
  }
@@ -14316,7 +14316,7 @@ class Tb {
14316
14316
  * @param sampler The sampler to use. This is intended to be used for testing purposes.
14317
14317
  */
14318
14318
  constructor(t = Eb) {
14319
- D(this, "regexCache", /* @__PURE__ */ new Map()), D(this, "config"), this.sampler = t;
14319
+ M(this, "regexCache", /* @__PURE__ */ new Map()), M(this, "config"), this.sampler = t;
14320
14320
  }
14321
14321
  setConfig(t) {
14322
14322
  this.config = t;
@@ -14485,7 +14485,7 @@ const ha = () => {
14485
14485
  };
14486
14486
  class wb {
14487
14487
  constructor(t) {
14488
- D(this, "organizationID"), D(this, "_integrations", []), D(this, "_gauges", /* @__PURE__ */ new Map()), D(this, "_counters", /* @__PURE__ */ new Map()), D(this, "_histograms", /* @__PURE__ */ new Map()), D(this, "_up_down_counters", /* @__PURE__ */ new Map()), D(this, "sampler", new Tb()), D(this, "graphqlSDK"), typeof t.projectId == "string" ? this.organizationID = t.projectId : this.organizationID = t.projectId.toString(), G_(
14488
+ M(this, "organizationID"), M(this, "_integrations", []), M(this, "_gauges", /* @__PURE__ */ new Map()), M(this, "_counters", /* @__PURE__ */ new Map()), M(this, "_histograms", /* @__PURE__ */ new Map()), M(this, "_up_down_counters", /* @__PURE__ */ new Map()), M(this, "sampler", new Tb()), M(this, "graphqlSDK"), typeof t.projectId == "string" ? this.organizationID = t.projectId : this.organizationID = t.projectId.toString(), G_(
14489
14489
  Z(I({}, t), { getIntegrations: () => this._integrations }),
14490
14490
  this.sampler
14491
14491
  );
@@ -14540,8 +14540,8 @@ class wb {
14540
14540
  stackTrace: p,
14541
14541
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
14542
14542
  };
14543
- this.startSpan("highlight.exception", (v) => {
14544
- v?.recordException(t), v?.setAttributes(I({
14543
+ this.startSpan("highlight.exception", (m) => {
14544
+ m?.recordException(t), m?.setAttributes(I({
14545
14545
  event: f.event,
14546
14546
  type: f.type,
14547
14547
  url: f.url,
@@ -14550,8 +14550,8 @@ class wb {
14550
14550
  columnNumber: f.columnNumber
14551
14551
  }, n));
14552
14552
  });
14553
- for (const v of this._integrations)
14554
- v.error(St(), f);
14553
+ for (const m of this._integrations)
14554
+ m.error(St(), f);
14555
14555
  }
14556
14556
  recordCount(t) {
14557
14557
  const r = _t.getMeter(ar);
@@ -14645,7 +14645,7 @@ class wb {
14645
14645
  );
14646
14646
  }
14647
14647
  register(t, r) {
14648
- this._integrations.push(new Nl(t, r));
14648
+ this._integrations.push(new Ll(t, r));
14649
14649
  }
14650
14650
  getHooks(t) {
14651
14651
  return this._integrations.flatMap((r) => {
@@ -14707,11 +14707,11 @@ class wb {
14707
14707
  if (t.reportConsoleErrors && (i.type === "Error" || i.type === "error") && i.value && i.trace) {
14708
14708
  const p = It(i.value);
14709
14709
  if (Xi.includes(p) || Ki.some(
14710
- (v) => p.includes(v)
14710
+ (m) => p.includes(m)
14711
14711
  ))
14712
14712
  return;
14713
14713
  const f = new Error(p);
14714
- f.stack = It(i.trace.map((v) => v.toString())), l.url = window.location.href, l.source = (o = i.trace[0]) == null ? void 0 : o.fileName, l.lineNumber = (u = (a = i.trace[0]) == null ? void 0 : a.lineNumber) == null ? void 0 : u.toString(), l.columnNumber = (s = (c = i.trace[0]) == null ? void 0 : c.columnNumber) == null ? void 0 : s.toString(), this.recordError(
14714
+ f.stack = It(i.trace.map((m) => m.toString())), l.url = window.location.href, l.source = (o = i.trace[0]) == null ? void 0 : o.fileName, l.lineNumber = (u = (a = i.trace[0]) == null ? void 0 : a.lineNumber) == null ? void 0 : u.toString(), l.columnNumber = (s = (c = i.trace[0]) == null ? void 0 : c.columnNumber) == null ? void 0 : s.toString(), this.recordError(
14715
14715
  f,
14716
14716
  void 0,
14717
14717
  l,
@@ -14815,10 +14815,13 @@ class wb {
14815
14815
  }
14816
14816
  }
14817
14817
  class Pb extends Ml {
14818
- constructor(t, r) {
14819
- var n = (...p) => (super(...p), D(this, "observe"), this), i, o, a, u, c, s, l;
14818
+ constructor(t) {
14819
+ super(t), M(this, "observe"), M(this, "options"), this.options = t;
14820
+ }
14821
+ initialize(t, r) {
14822
+ var n, i, o, a, u, c, s;
14820
14823
  try {
14821
- if (n(r), typeof window > "u" || typeof document > "u") {
14824
+ if (typeof window > "u" || typeof document > "u") {
14822
14825
  console.warn(
14823
14826
  "@launchdarkly/observability is not initializing because it is not supported in this environment."
14824
14827
  );
@@ -14826,28 +14829,28 @@ class Pb extends Ml {
14826
14829
  }
14827
14830
  if (!t) {
14828
14831
  console.warn(
14829
- "@launchdarkly/observability is not initializing because projectID was passed undefined."
14832
+ "@launchdarkly/observability is not initializing because the SDK credential is undefined."
14830
14833
  );
14831
14834
  return;
14832
14835
  }
14833
- const p = {
14834
- backendUrl: (i = r?.backendUrl) != null ? i : "https://pub.observability.app.launchdarkly.com",
14835
- otlpEndpoint: (a = (o = r?.otel) == null ? void 0 : o.otlpEndpoint) != null ? a : "https://otel.observability.app.launchdarkly.com",
14836
+ const l = {
14837
+ backendUrl: (n = r?.backendUrl) != null ? n : "https://pub.observability.app.launchdarkly.com",
14838
+ otlpEndpoint: (o = (i = r?.otel) == null ? void 0 : i.otlpEndpoint) != null ? o : "https://otel.observability.app.launchdarkly.com",
14836
14839
  projectId: t,
14837
14840
  sessionSecureId: this.sessionSecureID,
14838
- environment: (u = r?.environment) != null ? u : "production",
14841
+ environment: (a = r?.environment) != null ? a : "production",
14839
14842
  networkRecordingOptions: typeof r?.networkRecording == "object" ? r.networkRecording : void 0,
14840
14843
  tracingOrigins: r?.tracingOrigins,
14841
- serviceName: (c = r?.serviceName) != null ? c : "browser",
14842
- instrumentations: (s = r?.otel) == null ? void 0 : s.instrumentations,
14843
- eventNames: (l = r?.otel) == null ? void 0 : l.eventNames
14844
+ serviceName: (u = r?.serviceName) != null ? u : "browser",
14845
+ instrumentations: (c = r?.otel) == null ? void 0 : c.instrumentations,
14846
+ eventNames: (s = r?.otel) == null ? void 0 : s.eventNames
14844
14847
  };
14845
- this.observe = new wb(p), ne.load(this.observe);
14846
- } catch (p) {
14848
+ this.observe = new wb(l), ne.load(this.observe);
14849
+ } catch (l) {
14847
14850
  $t(
14848
14851
  "Error initializing @launchdarkly/observability SDK",
14849
14852
  "error",
14850
- p
14853
+ l
14851
14854
  );
14852
14855
  }
14853
14856
  }
@@ -14861,8 +14864,8 @@ class Pb extends Ml {
14861
14864
  (n = this.observe) == null || n.register(t, r);
14862
14865
  }
14863
14866
  getHooks(t) {
14864
- var r, n;
14865
- const i = I(I({
14867
+ var r, n, i, o;
14868
+ const a = I(I({
14866
14869
  [Hd]: t.sdk.name,
14867
14870
  [Gd]: t.sdk.version,
14868
14871
  [dl]: t.clientSideId,
@@ -14870,53 +14873,56 @@ class Pb extends Ml {
14870
14873
  }, (r = t.application) != null && r.id ? { [El]: t.application.id } : {}), (n = t.application) != null && n.version ? {
14871
14874
  [Tl]: t.application.version
14872
14875
  } : {});
14873
- return [
14876
+ return this.initialize(
14877
+ (o = (i = t.sdkKey) != null ? i : t.mobileKey) != null ? o : t.clientSideId,
14878
+ this.options
14879
+ ), [
14874
14880
  {
14875
14881
  getMetadata: () => ({
14876
14882
  name: "@launchdarkly/observability/hooks"
14877
14883
  }),
14878
- afterIdentify: (o, a, u) => {
14879
- var c, s, l, p, f;
14880
- for (const v of (l = (s = (c = this.observe) == null ? void 0 : c.getHooks) == null ? void 0 : s.call(c, t)) != null ? l : [])
14881
- (p = v.afterIdentify) == null || p.call(v, o, a, u);
14882
- return (f = this.observe) == null || f.recordLog("LD.identify", "info", Z(I({}, i), {
14883
- key: Bi(o.context),
14884
+ afterIdentify: (u, c, s) => {
14885
+ var l, p, f, m, v;
14886
+ for (const y of (f = (p = (l = this.observe) == null ? void 0 : l.getHooks) == null ? void 0 : p.call(l, t)) != null ? f : [])
14887
+ (m = y.afterIdentify) == null || m.call(y, u, c, s);
14888
+ return (v = this.observe) == null || v.recordLog("LD.identify", "info", Z(I({}, a), {
14889
+ key: Bi(u.context),
14884
14890
  context: JSON.stringify(
14885
- Fi(o.context)
14891
+ Fi(u.context)
14886
14892
  ),
14887
- timeout: o.timeout,
14888
- [Al]: u.status
14889
- })), a;
14893
+ timeout: u.timeout,
14894
+ [Al]: s.status
14895
+ })), c;
14890
14896
  },
14891
- afterEvaluation: (o, a, u) => {
14892
- var c, s, l, p, f;
14893
- for (const y of (l = (s = (c = this.observe) == null ? void 0 : c.getHooks) == null ? void 0 : s.call(c, t)) != null ? l : [])
14894
- (p = y.afterEvaluation) == null || p.call(y, o, a, u);
14895
- const v = I({
14896
- [vl]: o.flagKey,
14897
- [gl]: JSON.stringify(u.value)
14898
- }, u.variationIndex ? {
14899
- [bl]: u.variationIndex
14897
+ afterEvaluation: (u, c, s) => {
14898
+ var l, p, f, m, v;
14899
+ for (const b of (f = (p = (l = this.observe) == null ? void 0 : l.getHooks) == null ? void 0 : p.call(l, t)) != null ? f : [])
14900
+ (m = b.afterEvaluation) == null || m.call(b, u, c, s);
14901
+ const y = I({
14902
+ [vl]: u.flagKey,
14903
+ [gl]: JSON.stringify(s.value)
14904
+ }, s.variationIndex ? {
14905
+ [bl]: s.variationIndex
14900
14906
  } : {});
14901
- if (u.reason)
14902
- for (const y in $i) {
14903
- const _ = y, T = u.reason[_];
14904
- T && (v[$i[_]] = T);
14907
+ if (s.reason)
14908
+ for (const b in $i) {
14909
+ const C = b, U = s.reason[C];
14910
+ U && (y[$i[C]] = U);
14905
14911
  }
14906
- o.context && (v[ml] = JSON.stringify(Fi(o.context)), v[yl] = Bi(o.context));
14907
- const m = I(I({}, i), v);
14908
- return (f = this.observe) == null || f.startSpan(hl, (y) => {
14909
- y && y.addEvent(Y, m);
14910
- }), a;
14912
+ u.context && (y[ml] = JSON.stringify(Fi(u.context)), y[yl] = Bi(u.context));
14913
+ const _ = I(I({}, a), y);
14914
+ return (v = this.observe) == null || v.startSpan(hl, (b) => {
14915
+ b && b.addEvent(Y, _);
14916
+ }), c;
14911
14917
  },
14912
- afterTrack: (o) => {
14913
- var a, u, c, s, l;
14914
- for (const p of (c = (u = (a = this.observe) == null ? void 0 : a.getHooks) == null ? void 0 : u.call(a, t)) != null ? c : [])
14915
- (s = p.afterTrack) == null || s.call(p, o);
14916
- (l = this.observe) == null || l.recordLog("LD.track", "info", I(Z(I({}, i), {
14917
- key: o.key,
14918
- value: o.metricValue
14919
- }), typeof o.data == "object" ? o.data : {}));
14918
+ afterTrack: (u) => {
14919
+ var c, s, l, p, f;
14920
+ for (const m of (l = (s = (c = this.observe) == null ? void 0 : c.getHooks) == null ? void 0 : s.call(c, t)) != null ? l : [])
14921
+ (p = m.afterTrack) == null || p.call(m, u);
14922
+ (f = this.observe) == null || f.recordLog("LD.track", "info", I(Z(I({}, a), {
14923
+ key: u.key,
14924
+ value: u.metricValue
14925
+ }), typeof u.data == "object" ? u.data : {}));
14920
14926
  }
14921
14927
  }
14922
14928
  ];