@launchdarkly/o11y 1.4.1 → 1.5.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.
@@ -1,25 +1,25 @@
1
- var an = Object.defineProperty, cn = Object.defineProperties;
2
- var un = Object.getOwnPropertyDescriptors;
1
+ var cn = Object.defineProperty, un = Object.defineProperties;
2
+ var ln = Object.getOwnPropertyDescriptors;
3
3
  var le = Object.getOwnPropertySymbols;
4
- var ot = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
5
- var De = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), ln = (e) => {
4
+ var ct = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable;
5
+ var Oe = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), fn = (e) => {
6
6
  throw TypeError(e);
7
7
  };
8
- var we = (e, t, n) => t in e ? an(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t) => {
8
+ var we = (e, t, n) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t) => {
9
9
  for (var n in t || (t = {}))
10
- ot.call(t, n) && we(e, n, t[n]);
10
+ ct.call(t, n) && we(e, n, t[n]);
11
11
  if (le)
12
12
  for (var n of le(t))
13
- at.call(t, n) && we(e, n, t[n]);
13
+ ut.call(t, n) && we(e, n, t[n]);
14
14
  return e;
15
- }, B = (e, t) => cn(e, un(t));
15
+ }, B = (e, t) => un(e, ln(t));
16
16
  var G = (e, t) => {
17
17
  var n = {};
18
18
  for (var r in e)
19
- ot.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
19
+ ct.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
20
20
  if (e != null && le)
21
21
  for (var r of le(e))
22
- t.indexOf(r) < 0 && at.call(e, r) && (n[r] = e[r]);
22
+ t.indexOf(r) < 0 && ut.call(e, r) && (n[r] = e[r]);
23
23
  return n;
24
24
  };
25
25
  var Y = (e, t, n) => we(e, typeof t != "symbol" ? t + "" : t, n);
@@ -38,46 +38,46 @@ var V = (e, t, n) => new Promise((r, i) => {
38
38
  }
39
39
  }, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, o);
40
40
  a((n = n.apply(e, t)).next());
41
- }), fn = function(e, t) {
41
+ }), hn = function(e, t) {
42
42
  this[0] = e, this[1] = t;
43
43
  };
44
44
  var Ce = (e) => {
45
- var t = e[De("asyncIterator")], n = !1, r, i = {};
46
- return t == null ? (t = e[De("iterator")](), r = (s) => i[s] = (o) => t[s](o)) : (t = t.call(e), r = (s) => i[s] = (o) => {
45
+ var t = e[Oe("asyncIterator")], n = !1, r, i = {};
46
+ return t == null ? (t = e[Oe("iterator")](), r = (s) => i[s] = (o) => t[s](o)) : (t = t.call(e), r = (s) => i[s] = (o) => {
47
47
  if (n) {
48
48
  if (n = !1, s === "throw") throw o;
49
49
  return o;
50
50
  }
51
51
  return n = !0, {
52
52
  done: !1,
53
- value: new fn(new Promise((a) => {
53
+ value: new hn(new Promise((a) => {
54
54
  var c = t[s](o);
55
- c instanceof Object || ln("Object expected"), a(c);
55
+ c instanceof Object || fn("Object expected"), a(c);
56
56
  }), 1)
57
57
  };
58
- }), i[De("iterator")] = () => i, r("next"), "throw" in t ? r("throw") : i.throw = (s) => {
58
+ }), i[Oe("iterator")] = () => i, r("next"), "throw" in t ? r("throw") : i.throw = (s) => {
59
59
  throw s;
60
60
  }, "return" in t && r("return"), i;
61
61
  };
62
- import { d as $, a as hn, B as dn, i as ct } from "./buffer-CwCRPuMA.js";
62
+ import { d as $, a as dn, B as pn, i as lt } from "./buffer-CwCRPuMA.js";
63
63
  function me(e, t) {
64
64
  if (!!!e)
65
65
  throw new Error(t);
66
66
  }
67
- function pn(e) {
67
+ function mn(e) {
68
68
  return typeof e == "object" && e !== null;
69
69
  }
70
- function mn(e, t) {
70
+ function gn(e, t) {
71
71
  if (!!!e)
72
72
  throw new Error(
73
73
  "Unexpected invariant triggered."
74
74
  );
75
75
  }
76
- const gn = /\r\n|[\n\r]/g;
76
+ const yn = /\r\n|[\n\r]/g;
77
77
  function Be(e, t) {
78
78
  let n = 0, r = 1;
79
- for (const i of e.body.matchAll(gn)) {
80
- if (typeof i.index == "number" || mn(!1), i.index >= t)
79
+ for (const i of e.body.matchAll(yn)) {
80
+ if (typeof i.index == "number" || gn(!1), i.index >= t)
81
81
  break;
82
82
  n = i.index + i[0].length, r += 1;
83
83
  }
@@ -86,27 +86,27 @@ function Be(e, t) {
86
86
  column: t + 1 - n
87
87
  };
88
88
  }
89
- function yn(e) {
90
- return xt(
89
+ function En(e) {
90
+ return Ot(
91
91
  e.source,
92
92
  Be(e.source, e.start)
93
93
  );
94
94
  }
95
- function xt(e, t) {
95
+ function Ot(e, t) {
96
96
  const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, s = e.locationOffset.line - 1, o = t.line + s, a = t.line === 1 ? n : 0, c = t.column + a, f = `${e.name}:${o}:${c}
97
97
  `, h = r.split(/\r\n|[\n\r]/g), m = h[i];
98
98
  if (m.length > 120) {
99
99
  const _ = Math.floor(c / 80), v = c % 80, y = [];
100
- for (let N = 0; N < m.length; N += 80)
101
- y.push(m.slice(N, N + 80));
102
- return f + ut([
100
+ for (let I = 0; I < m.length; I += 80)
101
+ y.push(m.slice(I, I + 80));
102
+ return f + ft([
103
103
  [`${o} |`, y[0]],
104
- ...y.slice(1, _ + 1).map((N) => ["|", N]),
104
+ ...y.slice(1, _ + 1).map((I) => ["|", I]),
105
105
  ["|", "^".padStart(v)],
106
106
  ["|", y[_ + 1]]
107
107
  ]);
108
108
  }
109
- return f + ut([
109
+ return f + ft([
110
110
  // Lines specified like this: ["prefix", "string"],
111
111
  [`${o - 1} |`, h[i - 1]],
112
112
  [`${o} |`, m],
@@ -114,12 +114,12 @@ function xt(e, t) {
114
114
  [`${o + 1} |`, h[i + 1]]
115
115
  ]);
116
116
  }
117
- function ut(e) {
117
+ function ft(e) {
118
118
  const t = e.filter(([r, i]) => i !== void 0), n = Math.max(...t.map(([r]) => r.length));
119
119
  return t.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
120
120
  `);
121
121
  }
122
- function En(e) {
122
+ function _n(e) {
123
123
  const t = e[0];
124
124
  return t == null || "kind" in t || "length" in t ? {
125
125
  nodes: t,
@@ -171,15 +171,15 @@ class Ke extends Error {
171
171
  */
172
172
  constructor(t, ...n) {
173
173
  var r, i, s;
174
- const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } = En(n);
175
- super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = lt(
174
+ const { nodes: o, source: a, positions: c, path: f, originalError: h, extensions: m } = _n(n);
175
+ super(t), this.name = "GraphQLError", this.path = f != null ? f : void 0, this.originalError = h != null ? h : void 0, this.nodes = ht(
176
176
  Array.isArray(o) ? o : o ? [o] : void 0
177
177
  );
178
- const _ = lt(
178
+ const _ = ht(
179
179
  (r = this.nodes) === null || r === void 0 ? void 0 : r.map((y) => y.loc).filter((y) => y != null)
180
180
  );
181
181
  this.source = a != null ? a : _ == null || (i = _[0]) === null || i === void 0 ? void 0 : i.source, this.positions = c != null ? c : _ == null ? void 0 : _.map((y) => y.start), this.locations = c && a ? c.map((y) => Be(a, y)) : _ == null ? void 0 : _.map((y) => Be(y.source, y.start));
182
- const v = pn(
182
+ const v = mn(
183
183
  h == null ? void 0 : h.extensions
184
184
  ) ? h == null ? void 0 : h.extensions : void 0;
185
185
  this.extensions = (s = m != null ? m : v) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -221,12 +221,12 @@ class Ke extends Error {
221
221
  for (const n of this.nodes)
222
222
  n.loc && (t += `
223
223
 
224
- ` + yn(n.loc));
224
+ ` + En(n.loc));
225
225
  else if (this.source && this.locations)
226
226
  for (const n of this.locations)
227
227
  t += `
228
228
 
229
- ` + xt(this.source, n);
229
+ ` + Ot(this.source, n);
230
230
  return t;
231
231
  }
232
232
  toJSON() {
@@ -236,16 +236,16 @@ class Ke extends Error {
236
236
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
237
237
  }
238
238
  }
239
- function lt(e) {
239
+ function ht(e) {
240
240
  return e === void 0 || e.length === 0 ? void 0 : e;
241
241
  }
242
- function O(e, t, n) {
242
+ function D(e, t, n) {
243
243
  return new Ke(`Syntax Error: ${n}`, {
244
244
  source: e,
245
245
  positions: [t]
246
246
  });
247
247
  }
248
- class _n {
248
+ class Tn {
249
249
  /**
250
250
  * The character offset at which this Node begins.
251
251
  */
@@ -274,7 +274,7 @@ class _n {
274
274
  };
275
275
  }
276
276
  }
277
- class Ot {
277
+ class wt {
278
278
  /**
279
279
  * The kind of Token.
280
280
  */
@@ -316,7 +316,7 @@ class Ot {
316
316
  };
317
317
  }
318
318
  }
319
- const Dt = {
319
+ const Ct = {
320
320
  Name: [],
321
321
  Document: ["definitions"],
322
322
  OperationDefinition: [
@@ -390,10 +390,10 @@ const Dt = {
390
390
  UnionTypeExtension: ["name", "directives", "types"],
391
391
  EnumTypeExtension: ["name", "directives", "values"],
392
392
  InputObjectTypeExtension: ["name", "directives", "fields"]
393
- }, Tn = new Set(Object.keys(Dt));
394
- function ft(e) {
393
+ }, Sn = new Set(Object.keys(Ct));
394
+ function dt(e) {
395
395
  const t = e == null ? void 0 : e.kind;
396
- return typeof t == "string" && Tn.has(t);
396
+ return typeof t == "string" && Sn.has(t);
397
397
  }
398
398
  var X;
399
399
  (function(e) {
@@ -413,22 +413,22 @@ function je(e) {
413
413
  function se(e) {
414
414
  return e >= 48 && e <= 57;
415
415
  }
416
- function wt(e) {
416
+ function kt(e) {
417
417
  return e >= 97 && e <= 122 || // A-Z
418
418
  e >= 65 && e <= 90;
419
419
  }
420
- function Ct(e) {
421
- return wt(e) || e === 95;
422
- }
423
- function Sn(e) {
424
- return wt(e) || se(e) || e === 95;
420
+ function Rt(e) {
421
+ return kt(e) || e === 95;
425
422
  }
426
423
  function vn(e) {
424
+ return kt(e) || se(e) || e === 95;
425
+ }
426
+ function An(e) {
427
427
  var t;
428
428
  let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
429
429
  for (let o = 0; o < e.length; ++o) {
430
430
  var s;
431
- const a = e[o], c = An(a);
431
+ const a = e[o], c = In(a);
432
432
  c !== a.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && c < n && (n = c));
433
433
  }
434
434
  return e.map((o, a) => a === 0 ? o : o.slice(n)).slice(
@@ -436,7 +436,7 @@ function vn(e) {
436
436
  i + 1
437
437
  );
438
438
  }
439
- function An(e) {
439
+ function In(e) {
440
440
  let t = 0;
441
441
  for (; t < e.length && je(e.charCodeAt(t)); )
442
442
  ++t;
@@ -457,7 +457,7 @@ var l;
457
457
  (function(e) {
458
458
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
459
459
  })(l || (l = {}));
460
- class In {
460
+ class bn {
461
461
  /**
462
462
  * The previously focused non-ignored token.
463
463
  */
@@ -471,7 +471,7 @@ class In {
471
471
  * The character offset at which the current line begins.
472
472
  */
473
473
  constructor(t) {
474
- const n = new Ot(l.SOF, 0, 0, 0, 0);
474
+ const n = new wt(l.SOF, 0, 0, 0, 0);
475
475
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
476
476
  }
477
477
  get [Symbol.toStringTag]() {
@@ -494,26 +494,26 @@ class In {
494
494
  if (t.next)
495
495
  t = t.next;
496
496
  else {
497
- const n = xn(this, t.end);
497
+ const n = Dn(this, t.end);
498
498
  t.next = n, n.prev = t, t = n;
499
499
  }
500
500
  while (t.kind === l.COMMENT);
501
501
  return t;
502
502
  }
503
503
  }
504
- function bn(e) {
504
+ function xn(e) {
505
505
  return e === l.BANG || e === l.DOLLAR || e === l.AMP || e === l.PAREN_L || e === l.PAREN_R || e === l.SPREAD || e === l.COLON || e === l.EQUALS || e === l.AT || e === l.BRACKET_L || e === l.BRACKET_R || e === l.BRACE_L || e === l.PIPE || e === l.BRACE_R;
506
506
  }
507
507
  function Z(e) {
508
508
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
509
509
  }
510
510
  function Ae(e, t) {
511
- return kt(e.charCodeAt(t)) && Rt(e.charCodeAt(t + 1));
511
+ return Lt(e.charCodeAt(t)) && Pt(e.charCodeAt(t + 1));
512
512
  }
513
- function kt(e) {
513
+ function Lt(e) {
514
514
  return e >= 55296 && e <= 56319;
515
515
  }
516
- function Rt(e) {
516
+ function Pt(e) {
517
517
  return e >= 56320 && e <= 57343;
518
518
  }
519
519
  function j(e, t) {
@@ -526,11 +526,11 @@ function j(e, t) {
526
526
  }
527
527
  return "U+" + n.toString(16).toUpperCase().padStart(4, "0");
528
528
  }
529
- function I(e, t, n, r, i) {
529
+ function N(e, t, n, r, i) {
530
530
  const s = e.line, o = 1 + n - e.lineStart;
531
- return new Ot(t, n, r, s, o, i);
531
+ return new wt(t, n, r, s, o, i);
532
532
  }
533
- function xn(e, t) {
533
+ function Dn(e, t) {
534
534
  const n = e.source.body, r = n.length;
535
535
  let i = t;
536
536
  for (; i < r; ) {
@@ -581,50 +581,50 @@ function xn(e, t) {
581
581
  //
582
582
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
583
583
  case 33:
584
- return I(e, l.BANG, i, i + 1);
584
+ return N(e, l.BANG, i, i + 1);
585
585
  case 36:
586
- return I(e, l.DOLLAR, i, i + 1);
586
+ return N(e, l.DOLLAR, i, i + 1);
587
587
  case 38:
588
- return I(e, l.AMP, i, i + 1);
588
+ return N(e, l.AMP, i, i + 1);
589
589
  case 40:
590
- return I(e, l.PAREN_L, i, i + 1);
590
+ return N(e, l.PAREN_L, i, i + 1);
591
591
  case 41:
592
- return I(e, l.PAREN_R, i, i + 1);
592
+ return N(e, l.PAREN_R, i, i + 1);
593
593
  case 46:
594
594
  if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
595
- return I(e, l.SPREAD, i, i + 3);
595
+ return N(e, l.SPREAD, i, i + 3);
596
596
  break;
597
597
  case 58:
598
- return I(e, l.COLON, i, i + 1);
598
+ return N(e, l.COLON, i, i + 1);
599
599
  case 61:
600
- return I(e, l.EQUALS, i, i + 1);
600
+ return N(e, l.EQUALS, i, i + 1);
601
601
  case 64:
602
- return I(e, l.AT, i, i + 1);
602
+ return N(e, l.AT, i, i + 1);
603
603
  case 91:
604
- return I(e, l.BRACKET_L, i, i + 1);
604
+ return N(e, l.BRACKET_L, i, i + 1);
605
605
  case 93:
606
- return I(e, l.BRACKET_R, i, i + 1);
606
+ return N(e, l.BRACKET_R, i, i + 1);
607
607
  case 123:
608
- return I(e, l.BRACE_L, i, i + 1);
608
+ return N(e, l.BRACE_L, i, i + 1);
609
609
  case 124:
610
- return I(e, l.PIPE, i, i + 1);
610
+ return N(e, l.PIPE, i, i + 1);
611
611
  case 125:
612
- return I(e, l.BRACE_R, i, i + 1);
612
+ return N(e, l.BRACE_R, i, i + 1);
613
613
  // StringValue
614
614
  case 34:
615
- return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Ln(e, i) : wn(e, i);
615
+ return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Pn(e, i) : Cn(e, i);
616
616
  }
617
617
  if (se(s) || s === 45)
618
- return Dn(e, i, s);
619
- if (Ct(s))
620
- return Pn(e, i);
621
- throw O(
618
+ return wn(e, i, s);
619
+ if (Rt(s))
620
+ return Fn(e, i);
621
+ throw D(
622
622
  e.source,
623
623
  i,
624
624
  s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(s) || Ae(n, i) ? `Unexpected character: ${j(e, i)}.` : `Invalid character: ${j(e, i)}.`
625
625
  );
626
626
  }
627
- return I(e, l.EOF, r, r);
627
+ return N(e, l.EOF, r, r);
628
628
  }
629
629
  function On(e, t) {
630
630
  const n = e.source.body, r = n.length;
@@ -640,7 +640,7 @@ function On(e, t) {
640
640
  else
641
641
  break;
642
642
  }
643
- return I(
643
+ return N(
644
644
  e,
645
645
  l.COMMENT,
646
646
  t,
@@ -648,12 +648,12 @@ function On(e, t) {
648
648
  n.slice(t + 1, i)
649
649
  );
650
650
  }
651
- function Dn(e, t, n) {
651
+ function wn(e, t, n) {
652
652
  const r = e.source.body;
653
653
  let i = t, s = n, o = !1;
654
654
  if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
655
655
  if (s = r.charCodeAt(++i), se(s))
656
- throw O(
656
+ throw D(
657
657
  e.source,
658
658
  i,
659
659
  `Invalid number, unexpected digit after 0: ${j(
@@ -663,8 +663,8 @@ function Dn(e, t, n) {
663
663
  );
664
664
  } else
665
665
  i = ke(e, i, s), s = r.charCodeAt(i);
666
- if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ke(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ke(e, i, s), s = r.charCodeAt(i)), s === 46 || Ct(s))
667
- throw O(
666
+ if (s === 46 && (o = !0, s = r.charCodeAt(++i), i = ke(e, i, s), s = r.charCodeAt(i)), (s === 69 || s === 101) && (o = !0, s = r.charCodeAt(++i), (s === 43 || s === 45) && (s = r.charCodeAt(++i)), i = ke(e, i, s), s = r.charCodeAt(i)), s === 46 || Rt(s))
667
+ throw D(
668
668
  e.source,
669
669
  i,
670
670
  `Invalid number, expected digit but got: ${j(
@@ -672,7 +672,7 @@ function Dn(e, t, n) {
672
672
  i
673
673
  )}.`
674
674
  );
675
- return I(
675
+ return N(
676
676
  e,
677
677
  o ? l.FLOAT : l.INT,
678
678
  t,
@@ -682,7 +682,7 @@ function Dn(e, t, n) {
682
682
  }
683
683
  function ke(e, t, n) {
684
684
  if (!se(n))
685
- throw O(
685
+ throw D(
686
686
  e.source,
687
687
  t,
688
688
  `Invalid number, expected digit but got: ${j(
@@ -696,16 +696,16 @@ function ke(e, t, n) {
696
696
  ++i;
697
697
  return i;
698
698
  }
699
- function wn(e, t) {
699
+ function Cn(e, t) {
700
700
  const n = e.source.body, r = n.length;
701
701
  let i = t + 1, s = i, o = "";
702
702
  for (; i < r; ) {
703
703
  const a = n.charCodeAt(i);
704
704
  if (a === 34)
705
- return o += n.slice(s, i), I(e, l.STRING, t, i + 1, o);
705
+ return o += n.slice(s, i), N(e, l.STRING, t, i + 1, o);
706
706
  if (a === 92) {
707
707
  o += n.slice(s, i);
708
- const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? Cn(e, i) : kn(e, i) : Rn(e, i);
708
+ const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? kn(e, i) : Rn(e, i) : Ln(e, i);
709
709
  o += c.value, i += c.size, s = i;
710
710
  continue;
711
711
  }
@@ -716,7 +716,7 @@ function wn(e, t) {
716
716
  else if (Ae(n, i))
717
717
  i += 2;
718
718
  else
719
- throw O(
719
+ throw D(
720
720
  e.source,
721
721
  i,
722
722
  `Invalid character within String: ${j(
@@ -725,9 +725,9 @@ function wn(e, t) {
725
725
  )}.`
726
726
  );
727
727
  }
728
- throw O(e.source, i, "Unterminated string.");
728
+ throw D(e.source, i, "Unterminated string.");
729
729
  }
730
- function Cn(e, t) {
730
+ function kn(e, t) {
731
731
  const n = e.source.body;
732
732
  let r = 0, i = 3;
733
733
  for (; i < 12; ) {
@@ -743,7 +743,7 @@ function Cn(e, t) {
743
743
  if (r = r << 4 | re(s), r < 0)
744
744
  break;
745
745
  }
746
- throw O(
746
+ throw D(
747
747
  e.source,
748
748
  t,
749
749
  `Invalid Unicode escape sequence: "${n.slice(
@@ -752,34 +752,34 @@ function Cn(e, t) {
752
752
  )}".`
753
753
  );
754
754
  }
755
- function kn(e, t) {
756
- const n = e.source.body, r = ht(n, t + 2);
755
+ function Rn(e, t) {
756
+ const n = e.source.body, r = pt(n, t + 2);
757
757
  if (Z(r))
758
758
  return {
759
759
  value: String.fromCodePoint(r),
760
760
  size: 6
761
761
  };
762
- if (kt(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
763
- const i = ht(n, t + 8);
764
- if (Rt(i))
762
+ if (Lt(r) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
763
+ const i = pt(n, t + 8);
764
+ if (Pt(i))
765
765
  return {
766
766
  value: String.fromCodePoint(r, i),
767
767
  size: 12
768
768
  };
769
769
  }
770
- throw O(
770
+ throw D(
771
771
  e.source,
772
772
  t,
773
773
  `Invalid Unicode escape sequence: "${n.slice(t, t + 6)}".`
774
774
  );
775
775
  }
776
- function ht(e, t) {
776
+ function pt(e, t) {
777
777
  return re(e.charCodeAt(t)) << 12 | re(e.charCodeAt(t + 1)) << 8 | re(e.charCodeAt(t + 2)) << 4 | re(e.charCodeAt(t + 3));
778
778
  }
779
779
  function re(e) {
780
780
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
781
781
  }
782
- function Rn(e, t) {
782
+ function Ln(e, t) {
783
783
  const n = e.source.body;
784
784
  switch (n.charCodeAt(t + 1)) {
785
785
  case 34:
@@ -824,7 +824,7 @@ function Rn(e, t) {
824
824
  size: 2
825
825
  };
826
826
  }
827
- throw O(
827
+ throw D(
828
828
  e.source,
829
829
  t,
830
830
  `Invalid character escape sequence: "${n.slice(
@@ -833,7 +833,7 @@ function Rn(e, t) {
833
833
  )}".`
834
834
  );
835
835
  }
836
- function Ln(e, t) {
836
+ function Pn(e, t) {
837
837
  const n = e.source.body, r = n.length;
838
838
  let i = e.lineStart, s = t + 3, o = s, a = "";
839
839
  const c = [];
@@ -841,13 +841,13 @@ function Ln(e, t) {
841
841
  const f = n.charCodeAt(s);
842
842
  if (f === 34 && n.charCodeAt(s + 1) === 34 && n.charCodeAt(s + 2) === 34) {
843
843
  a += n.slice(o, s), c.push(a);
844
- const h = I(
844
+ const h = N(
845
845
  e,
846
846
  l.BLOCK_STRING,
847
847
  t,
848
848
  s + 3,
849
849
  // Return a string of the lines joined with U+000A.
850
- vn(c).join(`
850
+ An(c).join(`
851
851
  `)
852
852
  );
853
853
  return e.line += c.length - 1, e.lineStart = i, h;
@@ -865,7 +865,7 @@ function Ln(e, t) {
865
865
  else if (Ae(n, s))
866
866
  s += 2;
867
867
  else
868
- throw O(
868
+ throw D(
869
869
  e.source,
870
870
  s,
871
871
  `Invalid character within String: ${j(
@@ -874,19 +874,19 @@ function Ln(e, t) {
874
874
  )}.`
875
875
  );
876
876
  }
877
- throw O(e.source, s, "Unterminated string.");
877
+ throw D(e.source, s, "Unterminated string.");
878
878
  }
879
- function Pn(e, t) {
879
+ function Fn(e, t) {
880
880
  const n = e.source.body, r = n.length;
881
881
  let i = t + 1;
882
882
  for (; i < r; ) {
883
883
  const s = n.charCodeAt(i);
884
- if (Sn(s))
884
+ if (vn(s))
885
885
  ++i;
886
886
  else
887
887
  break;
888
888
  }
889
- return I(
889
+ return N(
890
890
  e,
891
891
  l.NAME,
892
892
  t,
@@ -894,56 +894,56 @@ function Pn(e, t) {
894
894
  n.slice(t, i)
895
895
  );
896
896
  }
897
- const Fn = 10, Lt = 2;
897
+ const Mn = 10, Ft = 2;
898
898
  function We(e) {
899
- return Ne(e, []);
899
+ return Ie(e, []);
900
900
  }
901
- function Ne(e, t) {
901
+ function Ie(e, t) {
902
902
  switch (typeof e) {
903
903
  case "string":
904
904
  return JSON.stringify(e);
905
905
  case "function":
906
906
  return e.name ? `[function ${e.name}]` : "[function]";
907
907
  case "object":
908
- return Mn(e, t);
908
+ return $n(e, t);
909
909
  default:
910
910
  return String(e);
911
911
  }
912
912
  }
913
- function Mn(e, t) {
913
+ function $n(e, t) {
914
914
  if (e === null)
915
915
  return "null";
916
916
  if (t.includes(e))
917
917
  return "[Circular]";
918
918
  const n = [...t, e];
919
- if ($n(e)) {
919
+ if (Un(e)) {
920
920
  const r = e.toJSON();
921
921
  if (r !== e)
922
- return typeof r == "string" ? r : Ne(r, n);
922
+ return typeof r == "string" ? r : Ie(r, n);
923
923
  } else if (Array.isArray(e))
924
- return Bn(e, n);
925
- return Un(e, n);
924
+ return Vn(e, n);
925
+ return Bn(e, n);
926
926
  }
927
- function $n(e) {
927
+ function Un(e) {
928
928
  return typeof e.toJSON == "function";
929
929
  }
930
- function Un(e, t) {
930
+ function Bn(e, t) {
931
931
  const n = Object.entries(e);
932
- return n.length === 0 ? "{}" : t.length > Lt ? "[" + Vn(e) + "]" : "{ " + n.map(
933
- ([i, s]) => i + ": " + Ne(s, t)
932
+ return n.length === 0 ? "{}" : t.length > Ft ? "[" + jn(e) + "]" : "{ " + n.map(
933
+ ([i, s]) => i + ": " + Ie(s, t)
934
934
  ).join(", ") + " }";
935
935
  }
936
- function Bn(e, t) {
936
+ function Vn(e, t) {
937
937
  if (e.length === 0)
938
938
  return "[]";
939
- if (t.length > Lt)
939
+ if (t.length > Ft)
940
940
  return "[Array]";
941
- const n = Math.min(Fn, e.length), r = e.length - n, i = [];
941
+ const n = Math.min(Mn, e.length), r = e.length - n, i = [];
942
942
  for (let s = 0; s < n; ++s)
943
- i.push(Ne(e[s], t));
943
+ i.push(Ie(e[s], t));
944
944
  return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
945
945
  }
946
- function Vn(e) {
946
+ function jn(e) {
947
947
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
948
948
  if (t === "Object" && typeof e.constructor == "function") {
949
949
  const n = e.constructor.name;
@@ -952,11 +952,11 @@ function Vn(e) {
952
952
  }
953
953
  return t;
954
954
  }
955
- const jn = globalThis.process && // eslint-disable-next-line no-undef
956
- process.env.NODE_ENV === "production", qn = (
955
+ const qn = globalThis.process && // eslint-disable-next-line no-undef
956
+ process.env.NODE_ENV === "production", Hn = (
957
957
  /* c8 ignore next 6 */
958
958
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
959
- jn ? function(t, n) {
959
+ qn ? function(t, n) {
960
960
  return t instanceof n;
961
961
  } : function(t, n) {
962
962
  if (t instanceof n)
@@ -986,7 +986,7 @@ spurious results.`);
986
986
  return !1;
987
987
  }
988
988
  );
989
- class Pt {
989
+ class Mt {
990
990
  constructor(t, n = "GraphQL request", r = {
991
991
  line: 1,
992
992
  column: 1
@@ -1003,20 +1003,20 @@ class Pt {
1003
1003
  return "Source";
1004
1004
  }
1005
1005
  }
1006
- function Hn(e) {
1007
- return qn(e, Pt);
1006
+ function Gn(e) {
1007
+ return Hn(e, Mt);
1008
1008
  }
1009
- function Ft(e, t) {
1010
- const n = new Gn(e, t), r = n.parseDocument();
1009
+ function $t(e, t) {
1010
+ const n = new Yn(e, t), r = n.parseDocument();
1011
1011
  return Object.defineProperty(r, "tokenCount", {
1012
1012
  enumerable: !1,
1013
1013
  value: n.tokenCount
1014
1014
  }), r;
1015
1015
  }
1016
- class Gn {
1016
+ class Yn {
1017
1017
  constructor(t, n = {}) {
1018
- const r = Hn(t) ? t : new Pt(t);
1019
- this._lexer = new In(r), this._options = n, this._tokenCounter = 0;
1018
+ const r = Gn(t) ? t : new Mt(t);
1019
+ this._lexer = new bn(r), this._options = n, this._tokenCounter = 0;
1020
1020
  }
1021
1021
  get tokenCount() {
1022
1022
  return this._tokenCounter;
@@ -1092,7 +1092,7 @@ class Gn {
1092
1092
  return this.parseDirectiveDefinition();
1093
1093
  }
1094
1094
  if (t)
1095
- throw O(
1095
+ throw D(
1096
1096
  this._lexer.source,
1097
1097
  this._lexer.token.start,
1098
1098
  "Unexpected description, descriptions are supported only on type definitions."
@@ -1366,7 +1366,7 @@ class Gn {
1366
1366
  if (t)
1367
1367
  if (this.expectToken(l.DOLLAR), this._lexer.token.kind === l.NAME) {
1368
1368
  const r = this._lexer.token.value;
1369
- throw O(
1369
+ throw D(
1370
1370
  this._lexer.source,
1371
1371
  n.start,
1372
1372
  `Unexpected variable "$${r}" in constant value.`
@@ -1713,7 +1713,7 @@ class Gn {
1713
1713
  */
1714
1714
  parseEnumValueName() {
1715
1715
  if (this._lexer.token.value === "true" || this._lexer.token.value === "false" || this._lexer.token.value === "null")
1716
- throw O(
1716
+ throw D(
1717
1717
  this._lexer.source,
1718
1718
  this._lexer.token.start,
1719
1719
  `${fe(
@@ -1986,7 +1986,7 @@ class Gn {
1986
1986
  * given parsed object.
1987
1987
  */
1988
1988
  node(t, n) {
1989
- return this._options.noLocation !== !0 && (n.loc = new _n(
1989
+ return this._options.noLocation !== !0 && (n.loc = new Tn(
1990
1990
  t,
1991
1991
  this._lexer.lastToken,
1992
1992
  this._lexer.source
@@ -2006,10 +2006,10 @@ class Gn {
2006
2006
  const n = this._lexer.token;
2007
2007
  if (n.kind === t)
2008
2008
  return this.advanceLexer(), n;
2009
- throw O(
2009
+ throw D(
2010
2010
  this._lexer.source,
2011
2011
  n.start,
2012
- `Expected ${Mt(t)}, found ${fe(n)}.`
2012
+ `Expected ${Ut(t)}, found ${fe(n)}.`
2013
2013
  );
2014
2014
  }
2015
2015
  /**
@@ -2028,7 +2028,7 @@ class Gn {
2028
2028
  if (n.kind === l.NAME && n.value === t)
2029
2029
  this.advanceLexer();
2030
2030
  else
2031
- throw O(
2031
+ throw D(
2032
2032
  this._lexer.source,
2033
2033
  n.start,
2034
2034
  `Expected "${t}", found ${fe(n)}.`
@@ -2047,7 +2047,7 @@ class Gn {
2047
2047
  */
2048
2048
  unexpected(t) {
2049
2049
  const n = t != null ? t : this._lexer.token;
2050
- return O(
2050
+ return D(
2051
2051
  this._lexer.source,
2052
2052
  n.start,
2053
2053
  `Unexpected ${fe(n)}.`
@@ -2110,7 +2110,7 @@ class Gn {
2110
2110
  advanceLexer() {
2111
2111
  const { maxTokens: t } = this._options, n = this._lexer.advance();
2112
2112
  if (n.kind !== l.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2113
- throw O(
2113
+ throw D(
2114
2114
  this._lexer.source,
2115
2115
  n.start,
2116
2116
  `Document contains more that ${t} tokens. Parsing aborted.`
@@ -2119,19 +2119,19 @@ class Gn {
2119
2119
  }
2120
2120
  function fe(e) {
2121
2121
  const t = e.value;
2122
- return Mt(e.kind) + (t != null ? ` "${t}"` : "");
2122
+ return Ut(e.kind) + (t != null ? ` "${t}"` : "");
2123
2123
  }
2124
- function Mt(e) {
2125
- return bn(e) ? `"${e}"` : e;
2124
+ function Ut(e) {
2125
+ return xn(e) ? `"${e}"` : e;
2126
2126
  }
2127
- function Yn(e) {
2128
- return `"${e.replace(zn, Jn)}"`;
2127
+ function zn(e) {
2128
+ return `"${e.replace(Jn, Xn)}"`;
2129
2129
  }
2130
- const zn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2131
- function Jn(e) {
2132
- return Xn[e.charCodeAt(0)];
2130
+ const Jn = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2131
+ function Xn(e) {
2132
+ return Qn[e.charCodeAt(0)];
2133
2133
  }
2134
- const Xn = [
2134
+ const Qn = [
2135
2135
  "\\u0000",
2136
2136
  "\\u0001",
2137
2137
  "\\u0002",
@@ -2297,11 +2297,11 @@ const Xn = [
2297
2297
  "\\u009D",
2298
2298
  "\\u009E",
2299
2299
  "\\u009F"
2300
- ], Qn = Object.freeze({});
2301
- function Kn(e, t, n = Dt) {
2300
+ ], Kn = Object.freeze({});
2301
+ function Wn(e, t, n = Ct) {
2302
2302
  const r = /* @__PURE__ */ new Map();
2303
2303
  for (const x of Object.values(g))
2304
- r.set(x, Wn(t, x));
2304
+ r.set(x, Zn(t, x));
2305
2305
  let i, s = Array.isArray(e), o = [e], a = -1, c = [], f = e, h, m;
2306
2306
  const _ = [], v = [];
2307
2307
  do {
@@ -2329,10 +2329,10 @@ function Kn(e, t, n = Dt) {
2329
2329
  }
2330
2330
  let R;
2331
2331
  if (!Array.isArray(f)) {
2332
- var y, N;
2333
- ft(f) || me(!1, `Invalid AST Node: ${We(f)}.`);
2334
- const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (N = r.get(f.kind)) === null || N === void 0 ? void 0 : N.enter;
2335
- if (R = P == null ? void 0 : P.call(t, f, h, m, _, v), R === Qn)
2332
+ var y, I;
2333
+ dt(f) || me(!1, `Invalid AST Node: ${We(f)}.`);
2334
+ const P = x ? (y = r.get(f.kind)) === null || y === void 0 ? void 0 : y.leave : (I = r.get(f.kind)) === null || I === void 0 ? void 0 : I.enter;
2335
+ if (R = P == null ? void 0 : P.call(t, f, h, m, _, v), R === Kn)
2336
2336
  break;
2337
2337
  if (R === !1) {
2338
2338
  if (!x) {
@@ -2340,7 +2340,7 @@ function Kn(e, t, n = Dt) {
2340
2340
  continue;
2341
2341
  }
2342
2342
  } else if (R !== void 0 && (c.push([h, R]), !x))
2343
- if (ft(R))
2343
+ if (dt(R))
2344
2344
  f = R;
2345
2345
  else {
2346
2346
  _.pop();
@@ -2362,7 +2362,7 @@ function Kn(e, t, n = Dt) {
2362
2362
  } while (i !== void 0);
2363
2363
  return c.length !== 0 ? c[c.length - 1][1] : e;
2364
2364
  }
2365
- function Wn(e, t) {
2365
+ function Zn(e, t) {
2366
2366
  const n = e[t];
2367
2367
  return typeof n == "object" ? n : typeof n == "function" ? {
2368
2368
  enter: n,
@@ -2372,10 +2372,10 @@ function Wn(e, t) {
2372
2372
  leave: e.leave
2373
2373
  };
2374
2374
  }
2375
- function Zn(e) {
2376
- return Kn(e, tr);
2375
+ function er(e) {
2376
+ return Wn(e, nr);
2377
2377
  }
2378
- const er = 80, tr = {
2378
+ const tr = 80, nr = {
2379
2379
  Name: {
2380
2380
  leave: (e) => e.value
2381
2381
  },
@@ -2411,7 +2411,7 @@ const er = 80, tr = {
2411
2411
  leave({ alias: e, name: t, arguments: n, directives: r, selectionSet: i }) {
2412
2412
  const s = S("", e, ": ") + t;
2413
2413
  let o = s + S("(", p(n, ", "), ")");
2414
- return o.length > er && (o = s + S(`(
2414
+ return o.length > tr && (o = s + S(`(
2415
2415
  `, ge(p(n, `
2416
2416
  `)), `
2417
2417
  )`)), p([o, p(r, " "), i], " ");
@@ -2449,7 +2449,7 @@ const er = 80, tr = {
2449
2449
  leave: ({ value: e }) => e
2450
2450
  },
2451
2451
  StringValue: {
2452
- leave: ({ value: e, block: t }) => t ? Nn(e) : Yn(e)
2452
+ leave: ({ value: e, block: t }) => t ? Nn(e) : zn(e)
2453
2453
  },
2454
2454
  BooleanValue: {
2455
2455
  leave: ({ value: e }) => e ? "true" : "false"
@@ -2510,7 +2510,7 @@ const er = 80, tr = {
2510
2510
  },
2511
2511
  FieldDefinition: {
2512
2512
  leave: ({ description: e, name: t, arguments: n, type: r, directives: i }) => S("", e, `
2513
- `) + t + (dt(n) ? S(`(
2513
+ `) + t + (mt(n) ? S(`(
2514
2514
  `, ge(p(n, `
2515
2515
  `)), `
2516
2516
  )`) : S("(", p(n, ", "), ")")) + ": " + r + S(" ", p(i, " "))
@@ -2556,7 +2556,7 @@ const er = 80, tr = {
2556
2556
  },
2557
2557
  DirectiveDefinition: {
2558
2558
  leave: ({ description: e, name: t, arguments: n, repeatable: r, locations: i }) => S("", e, `
2559
- `) + "directive @" + t + (dt(n) ? S(`(
2559
+ `) + "directive @" + t + (mt(n) ? S(`(
2560
2560
  `, ge(p(n, `
2561
2561
  `)), `
2562
2562
  )`) : S("(", p(n, ", "), ")")) + (r ? " repeatable" : "") + " on " + p(i, " | ")
@@ -2629,31 +2629,31 @@ function ge(e) {
2629
2629
  return S(" ", e.replace(/\n/g, `
2630
2630
  `));
2631
2631
  }
2632
- function dt(e) {
2632
+ function mt(e) {
2633
2633
  var t;
2634
2634
  return (t = e == null ? void 0 : e.some((n) => n.includes(`
2635
2635
  `))) !== null && t !== void 0 ? t : !1;
2636
2636
  }
2637
- const Ze = JSON, nr = (e) => e.toUpperCase(), rr = (e) => {
2637
+ const Ze = JSON, rr = (e) => e.toUpperCase(), ir = (e) => {
2638
2638
  const t = {};
2639
2639
  return e.forEach((n, r) => {
2640
2640
  t[r] = n;
2641
2641
  }), t;
2642
- }, ir = (e, t, n) => e.document ? e : {
2642
+ }, sr = (e, t, n) => e.document ? e : {
2643
2643
  document: e,
2644
2644
  variables: t,
2645
2645
  requestHeaders: n,
2646
2646
  signal: void 0
2647
- }, sr = (e, t, n) => e.query ? e : {
2647
+ }, or = (e, t, n) => e.query ? e : {
2648
2648
  query: e,
2649
2649
  variables: t,
2650
2650
  requestHeaders: n,
2651
2651
  signal: void 0
2652
- }, or = (e, t) => e.documents ? e : {
2652
+ }, ar = (e, t) => e.documents ? e : {
2653
2653
  documents: e,
2654
2654
  requestHeaders: t,
2655
2655
  signal: void 0
2656
- }, pt = (e) => {
2656
+ }, gt = (e) => {
2657
2657
  var r, i;
2658
2658
  let t;
2659
2659
  const n = e.definitions.filter((s) => s.kind === "OperationDefinition");
@@ -2662,14 +2662,14 @@ const Ze = JSON, nr = (e) => e.toUpperCase(), rr = (e) => {
2662
2662
  if (typeof e == "string") {
2663
2663
  let n;
2664
2664
  try {
2665
- const r = Ft(e);
2666
- n = pt(r);
2665
+ const r = $t(e);
2666
+ n = gt(r);
2667
2667
  } catch (r) {
2668
2668
  }
2669
2669
  return { query: e, operationName: n };
2670
2670
  }
2671
- const t = pt(e);
2672
- return { query: Zn(e), operationName: t };
2671
+ const t = gt(e);
2672
+ return { query: er(e), operationName: t };
2673
2673
  };
2674
2674
  class Q extends Error {
2675
2675
  constructor(t, n) {
@@ -2684,13 +2684,13 @@ class Q extends Error {
2684
2684
  return (i = (r = (n = t.errors) == null ? void 0 : n[0]) == null ? void 0 : r.message) != null ? i : `GraphQL Error (Code: ${t.status})`;
2685
2685
  }
2686
2686
  }
2687
- var ar = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2687
+ var cr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2688
2688
  function et(e) {
2689
2689
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
2690
2690
  }
2691
2691
  var qe = { exports: {} };
2692
2692
  (function(e, t) {
2693
- var n = typeof self != "undefined" ? self : ar, r = function() {
2693
+ var n = typeof self != "undefined" ? self : cr, r = function() {
2694
2694
  function s() {
2695
2695
  this.fetch = !1, this.DOMException = n.DOMException;
2696
2696
  }
@@ -2787,7 +2787,7 @@ var qe = { exports: {} };
2787
2787
  u.push([T, d]);
2788
2788
  }), v(u);
2789
2789
  }, a.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2790
- function N(u) {
2790
+ function I(u) {
2791
2791
  if (u.bodyUsed)
2792
2792
  return Promise.reject(new TypeError("Already read"));
2793
2793
  u.bodyUsed = !0;
@@ -2824,7 +2824,7 @@ var qe = { exports: {} };
2824
2824
  return this.bodyUsed = !1, this._initBody = function(u) {
2825
2825
  this._bodyInit = u, u ? typeof u == "string" ? this._bodyText = u : a.blob && Blob.prototype.isPrototypeOf(u) ? this._bodyBlob = u : a.formData && FormData.prototype.isPrototypeOf(u) ? this._bodyFormData = u : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) ? this._bodyText = u.toString() : a.arrayBuffer && a.blob && c(u) ? (this._bodyArrayBuffer = P(u.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : a.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(u) || h(u)) ? this._bodyArrayBuffer = P(u) : this._bodyText = u = Object.prototype.toString.call(u) : this._bodyText = "", this.headers.get("content-type") || (typeof u == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a.searchParams && URLSearchParams.prototype.isPrototypeOf(u) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2826
2826
  }, a.blob && (this.blob = function() {
2827
- var u = N(this);
2827
+ var u = I(this);
2828
2828
  if (u)
2829
2829
  return u;
2830
2830
  if (this._bodyBlob)
@@ -2835,9 +2835,9 @@ var qe = { exports: {} };
2835
2835
  throw new Error("could not read FormData body as blob");
2836
2836
  return Promise.resolve(new Blob([this._bodyText]));
2837
2837
  }, this.arrayBuffer = function() {
2838
- return this._bodyArrayBuffer ? N(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(x);
2838
+ return this._bodyArrayBuffer ? I(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(x);
2839
2839
  }), this.text = function() {
2840
- var u = N(this);
2840
+ var u = I(this);
2841
2841
  if (u)
2842
2842
  return u;
2843
2843
  if (this._bodyBlob)
@@ -2848,7 +2848,7 @@ var qe = { exports: {} };
2848
2848
  throw new Error("could not read FormData body as text");
2849
2849
  return Promise.resolve(this._bodyText);
2850
2850
  }, a.formData && (this.formData = function() {
2851
- return this.text().then(rn);
2851
+ return this.text().then(sn);
2852
2852
  }), this.json = function() {
2853
2853
  return this.text().then(JSON.parse);
2854
2854
  }, this;
@@ -2874,21 +2874,21 @@ var qe = { exports: {} };
2874
2874
  U.prototype.clone = function() {
2875
2875
  return new U(this, { body: this._bodyInit });
2876
2876
  };
2877
- function rn(u) {
2877
+ function sn(u) {
2878
2878
  var d = new FormData();
2879
2879
  return u.trim().split("&").forEach(function(T) {
2880
2880
  if (T) {
2881
- var w = T.split("="), D = w.shift().replace(/\+/g, " "), A = w.join("=").replace(/\+/g, " ");
2882
- d.append(decodeURIComponent(D), decodeURIComponent(A));
2881
+ var w = T.split("="), O = w.shift().replace(/\+/g, " "), A = w.join("=").replace(/\+/g, " ");
2882
+ d.append(decodeURIComponent(O), decodeURIComponent(A));
2883
2883
  }
2884
2884
  }), d;
2885
2885
  }
2886
- function sn(u) {
2886
+ function on(u) {
2887
2887
  var d = new y(), T = u.replace(/\r?\n[\t ]+/g, " ");
2888
2888
  return T.split(/\r?\n/).forEach(function(w) {
2889
- var D = w.split(":"), A = D.shift().trim();
2889
+ var O = w.split(":"), A = O.shift().trim();
2890
2890
  if (A) {
2891
- var ue = D.join(":").trim();
2891
+ var ue = O.join(":").trim();
2892
2892
  d.append(A, ue);
2893
2893
  }
2894
2894
  }), d;
@@ -2908,9 +2908,9 @@ var qe = { exports: {} };
2908
2908
  var u = new M(null, { status: 0, statusText: "" });
2909
2909
  return u.type = "error", u;
2910
2910
  };
2911
- var on = [301, 302, 303, 307, 308];
2911
+ var an = [301, 302, 303, 307, 308];
2912
2912
  M.redirect = function(u, d) {
2913
- if (on.indexOf(d) === -1)
2913
+ if (an.indexOf(d) === -1)
2914
2914
  throw new RangeError("Invalid status code");
2915
2915
  return new M(null, { status: d, headers: { location: u } });
2916
2916
  }, o.DOMException = s.DOMException;
@@ -2925,8 +2925,8 @@ var qe = { exports: {} };
2925
2925
  }
2926
2926
  function xe(u, d) {
2927
2927
  return new Promise(function(T, w) {
2928
- var D = new U(u, d);
2929
- if (D.signal && D.signal.aborted)
2928
+ var O = new U(u, d);
2929
+ if (O.signal && O.signal.aborted)
2930
2930
  return w(new o.DOMException("Aborted", "AbortError"));
2931
2931
  var A = new XMLHttpRequest();
2932
2932
  function ue() {
@@ -2936,22 +2936,22 @@ var qe = { exports: {} };
2936
2936
  var te = {
2937
2937
  status: A.status,
2938
2938
  statusText: A.statusText,
2939
- headers: sn(A.getAllResponseHeaders() || "")
2939
+ headers: on(A.getAllResponseHeaders() || "")
2940
2940
  };
2941
2941
  te.url = "responseURL" in A ? A.responseURL : te.headers.get("X-Request-URL");
2942
- var Oe = "response" in A ? A.response : A.responseText;
2943
- T(new M(Oe, te));
2942
+ var De = "response" in A ? A.response : A.responseText;
2943
+ T(new M(De, te));
2944
2944
  }, A.onerror = function() {
2945
2945
  w(new TypeError("Network request failed"));
2946
2946
  }, A.ontimeout = function() {
2947
2947
  w(new TypeError("Network request failed"));
2948
2948
  }, A.onabort = function() {
2949
2949
  w(new o.DOMException("Aborted", "AbortError"));
2950
- }, A.open(D.method, D.url, !0), D.credentials === "include" ? A.withCredentials = !0 : D.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && a.blob && (A.responseType = "blob"), D.headers.forEach(function(te, Oe) {
2951
- A.setRequestHeader(Oe, te);
2952
- }), D.signal && (D.signal.addEventListener("abort", ue), A.onreadystatechange = function() {
2953
- A.readyState === 4 && D.signal.removeEventListener("abort", ue);
2954
- }), A.send(typeof D._bodyInit == "undefined" ? null : D._bodyInit);
2950
+ }, A.open(O.method, O.url, !0), O.credentials === "include" ? A.withCredentials = !0 : O.credentials === "omit" && (A.withCredentials = !1), "responseType" in A && a.blob && (A.responseType = "blob"), O.headers.forEach(function(te, De) {
2951
+ A.setRequestHeader(De, te);
2952
+ }), O.signal && (O.signal.addEventListener("abort", ue), A.onreadystatechange = function() {
2953
+ A.readyState === 4 && O.signal.removeEventListener("abort", ue);
2954
+ }), A.send(typeof O._bodyInit == "undefined" ? null : O._bodyInit);
2955
2955
  });
2956
2956
  }
2957
2957
  return xe.polyfill = !0, s.fetch || (s.fetch = xe, s.Headers = y, s.Request = U, s.Response = M), o.Headers = y, o.Request = U, o.Response = M, o.fetch = xe, Object.defineProperty(o, "__esModule", { value: !0 }), o;
@@ -2961,35 +2961,35 @@ var qe = { exports: {} };
2961
2961
  t = i.fetch, t.default = i.fetch, t.fetch = i.fetch, t.Headers = i.Headers, t.Request = i.Request, t.Response = i.Response, e.exports = t;
2962
2962
  })(qe, qe.exports);
2963
2963
  var He = qe.exports;
2964
- const ye = /* @__PURE__ */ et(He), cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2964
+ const ye = /* @__PURE__ */ et(He), ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2965
2965
  __proto__: null,
2966
2966
  default: ye
2967
2967
  }, Symbol.toStringTag, { value: "Module" })), z = (e) => {
2968
2968
  let t = {};
2969
- return e && (typeof Headers != "undefined" && e instanceof Headers || cr && He.Headers && e instanceof He.Headers ? t = rr(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
2969
+ return e && (typeof Headers != "undefined" && e instanceof Headers || ur && He.Headers && e instanceof He.Headers ? t = ir(e) : Array.isArray(e) ? e.forEach(([n, r]) => {
2970
2970
  n && r !== void 0 && (t[n] = r);
2971
2971
  }) : t = e), t;
2972
- }, mt = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), ur = (e) => {
2972
+ }, yt = (e) => e.replace(/([\s,]|#[^\n\r]+)+/g, " ").trim(), lr = (e) => {
2973
2973
  if (!Array.isArray(e.query)) {
2974
- const r = e, i = [`query=${encodeURIComponent(mt(r.query))}`];
2974
+ const r = e, i = [`query=${encodeURIComponent(yt(r.query))}`];
2975
2975
  return e.variables && i.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`), r.operationName && i.push(`operationName=${encodeURIComponent(r.operationName)}`), i.join("&");
2976
2976
  }
2977
2977
  if (typeof e.variables != "undefined" && !Array.isArray(e.variables))
2978
2978
  throw new Error("Cannot create query with given variable type, array expected");
2979
2979
  const t = e, n = e.query.reduce((r, i, s) => (r.push({
2980
- query: mt(i),
2980
+ query: yt(i),
2981
2981
  variables: t.variables ? t.jsonSerializer.stringify(t.variables[s]) : void 0
2982
2982
  }), r), []);
2983
2983
  return `query=${encodeURIComponent(t.jsonSerializer.stringify(n))}`;
2984
- }, lr = (e) => (t) => V(void 0, null, function* () {
2985
- var N;
2984
+ }, fr = (e) => (t) => V(void 0, null, function* () {
2985
+ var I;
2986
2986
  const { url: n, query: r, variables: i, operationName: s, fetch: o, fetchOptions: a, middleware: c } = t, f = E({}, t.headers);
2987
2987
  let h = "", m;
2988
- e === "POST" ? (m = fr(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = ur({
2988
+ e === "POST" ? (m = hr(r, i, s, a.jsonSerializer), typeof m == "string" && (f["Content-Type"] = "application/json")) : h = lr({
2989
2989
  query: r,
2990
2990
  variables: i,
2991
2991
  operationName: s,
2992
- jsonSerializer: (N = a.jsonSerializer) != null ? N : Ze
2992
+ jsonSerializer: (I = a.jsonSerializer) != null ? I : Ze
2993
2993
  });
2994
2994
  const _ = E({
2995
2995
  method: e,
@@ -3003,18 +3003,18 @@ const ye = /* @__PURE__ */ et(He), cr = /* @__PURE__ */ Object.freeze(/* @__PURE
3003
3003
  }
3004
3004
  return h && (v = `${v}?${h}`), yield o(v, y);
3005
3005
  });
3006
- class Oi {
3006
+ class Ci {
3007
3007
  constructor(t, n = {}) {
3008
3008
  this.url = t, this.requestConfig = n, this.rawRequest = (...r) => V(this, null, function* () {
3009
- const [i, s, o] = r, a = sr(i, s, o), b = this.requestConfig, { headers: c, fetch: f = ye, method: h = "POST", requestMiddleware: m, responseMiddleware: _ } = b, v = G(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3009
+ const [i, s, o] = r, a = or(i, s, o), b = this.requestConfig, { headers: c, fetch: f = ye, method: h = "POST", requestMiddleware: m, responseMiddleware: _ } = b, v = G(b, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3010
3010
  a.signal !== void 0 && (v.signal = a.signal);
3011
- const { operationName: N } = Re(a.query);
3011
+ const { operationName: I } = Re(a.query);
3012
3012
  return Le({
3013
3013
  url: y,
3014
3014
  query: a.query,
3015
3015
  variables: a.variables,
3016
3016
  headers: E(E({}, z(Pe(c))), z(a.requestHeaders)),
3017
- operationName: N,
3017
+ operationName: I,
3018
3018
  fetch: f,
3019
3019
  method: h,
3020
3020
  fetchOptions: v,
@@ -3026,7 +3026,7 @@ class Oi {
3026
3026
  }
3027
3027
  request(t, ...n) {
3028
3028
  return V(this, null, function* () {
3029
- const [r, i] = n, s = ir(t, r, i), N = this.requestConfig, { headers: o, fetch: a = ye, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = N, m = G(N, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: _ } = this;
3029
+ const [r, i] = n, s = sr(t, r, i), I = this.requestConfig, { headers: o, fetch: a = ye, method: c = "POST", requestMiddleware: f, responseMiddleware: h } = I, m = G(I, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: _ } = this;
3030
3030
  s.signal !== void 0 && (m.signal = s.signal);
3031
3031
  const { query: v, operationName: y } = Re(s.document);
3032
3032
  return Le({
@@ -3047,7 +3047,7 @@ class Oi {
3047
3047
  // prettier-ignore
3048
3048
  batchRequests(t, n) {
3049
3049
  var f;
3050
- const r = or(t, n), c = this.requestConfig, { headers: i } = c, s = G(c, ["headers"]);
3050
+ const r = ar(t, n), c = this.requestConfig, { headers: i } = c, s = G(c, ["headers"]);
3051
3051
  r.signal !== void 0 && (s.signal = r.signal);
3052
3052
  const o = r.documents.map(({ document: h }) => Re(h).query), a = r.documents.map(({ variables: h }) => h);
3053
3053
  return Le({
@@ -3084,10 +3084,10 @@ class Oi {
3084
3084
  }
3085
3085
  const Le = (e) => V(void 0, null, function* () {
3086
3086
  var h, m;
3087
- const { query: t, variables: n, fetchOptions: r } = e, i = lr(nr((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield hr(o, (m = r.jsonSerializer) != null ? m : Ze), c = Array.isArray(a) ? !a.some(({ data: v }) => !v) : !!a.data, f = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3087
+ const { query: t, variables: n, fetchOptions: r } = e, i = fr(rr((h = e.method) != null ? h : "post")), s = Array.isArray(e.query), o = yield i(e), a = yield dr(o, (m = r.jsonSerializer) != null ? m : Ze), c = Array.isArray(a) ? !a.some(({ data: v }) => !v) : !!a.data, f = Array.isArray(a) || !a.errors || Array.isArray(a.errors) && !a.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
3088
3088
  if (o.ok && f && c) {
3089
- const _ = (Array.isArray(a), a), { errors: v } = _, y = G(_, ["errors"]), N = r.errorPolicy === "ignore" ? y : a;
3090
- return B(E({}, s ? { data: N } : N), {
3089
+ const _ = (Array.isArray(a), a), { errors: v } = _, y = G(_, ["errors"]), I = r.errorPolicy === "ignore" ? y : a;
3090
+ return B(E({}, s ? { data: I } : I), {
3091
3091
  headers: o.headers,
3092
3092
  status: o.status
3093
3093
  });
@@ -3101,7 +3101,7 @@ const Le = (e) => V(void 0, null, function* () {
3101
3101
  { query: t, variables: n }
3102
3102
  );
3103
3103
  }
3104
- }), fr = (e, t, n, r) => {
3104
+ }), hr = (e, t, n, r) => {
3105
3105
  const i = r != null ? r : Ze;
3106
3106
  if (!Array.isArray(e))
3107
3107
  return i.stringify({ query: e, variables: t, operationName: n });
@@ -3109,7 +3109,7 @@ const Le = (e) => V(void 0, null, function* () {
3109
3109
  throw new Error("Cannot create request body with given variable type, array expected");
3110
3110
  const s = e.reduce((o, a, c) => (o.push({ query: a, variables: t ? t[c] : void 0 }), o), []);
3111
3111
  return i.stringify(s);
3112
- }, hr = (e, t) => V(void 0, null, function* () {
3112
+ }, dr = (e, t) => V(void 0, null, function* () {
3113
3113
  let n;
3114
3114
  return e.headers.forEach((r, i) => {
3115
3115
  i.toLowerCase() === "content-type" && (n = r);
@@ -3134,8 +3134,8 @@ var Ge = { exports: {} };
3134
3134
  };
3135
3135
  }
3136
3136
  })(Ge, Ge.exports);
3137
- var dr = Ge.exports;
3138
- const Di = /* @__PURE__ */ et(dr);
3137
+ var pr = Ge.exports;
3138
+ const ki = /* @__PURE__ */ et(pr);
3139
3139
  var _e = function() {
3140
3140
  return _e = Object.assign || function(t) {
3141
3141
  for (var n, r = 1, i = arguments.length; r < i; r++) {
@@ -3144,26 +3144,26 @@ var _e = function() {
3144
3144
  }
3145
3145
  return t;
3146
3146
  }, _e.apply(this, arguments);
3147
- }, Ee = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), $t = !0, Te = !1;
3148
- function Ut(e) {
3147
+ }, Ee = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), Bt = !0, Te = !1;
3148
+ function Vt(e) {
3149
3149
  return e.replace(/[\s,]+/g, " ").trim();
3150
3150
  }
3151
- function pr(e) {
3152
- return Ut(e.source.body.substring(e.start, e.end));
3153
- }
3154
3151
  function mr(e) {
3152
+ return Vt(e.source.body.substring(e.start, e.end));
3153
+ }
3154
+ function gr(e) {
3155
3155
  var t = /* @__PURE__ */ new Set(), n = [];
3156
3156
  return e.definitions.forEach(function(r) {
3157
3157
  if (r.kind === "FragmentDefinition") {
3158
- var i = r.name.value, s = pr(r.loc), o = Ye.get(i);
3159
- o && !o.has(s) ? $t && console.warn("Warning: fragment with name " + i + ` already exists.
3158
+ var i = r.name.value, s = mr(r.loc), o = Ye.get(i);
3159
+ o && !o.has(s) ? Bt && console.warn("Warning: fragment with name " + i + ` already exists.
3160
3160
  graphql-tag enforces all fragment names across your application to be unique; read more about
3161
3161
  this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : o || Ye.set(i, o = /* @__PURE__ */ new Set()), o.add(s), t.has(s) || (t.add(s), n.push(r));
3162
3162
  } else
3163
3163
  n.push(r);
3164
3164
  }), _e(_e({}, e), { definitions: n });
3165
3165
  }
3166
- function gr(e) {
3166
+ function yr(e) {
3167
3167
  var t = new Set(e.definitions);
3168
3168
  t.forEach(function(r) {
3169
3169
  r.loc && delete r.loc, Object.keys(r).forEach(function(i) {
@@ -3174,16 +3174,16 @@ function gr(e) {
3174
3174
  var n = e.loc;
3175
3175
  return n && (delete n.startToken, delete n.endToken), e;
3176
3176
  }
3177
- function yr(e) {
3178
- var t = Ut(e);
3177
+ function Er(e) {
3178
+ var t = Vt(e);
3179
3179
  if (!Ee.has(t)) {
3180
- var n = Ft(e, {
3180
+ var n = $t(e, {
3181
3181
  experimentalFragmentVariables: Te,
3182
3182
  allowLegacyFragmentVariables: Te
3183
3183
  });
3184
3184
  if (!n || n.kind !== "Document")
3185
3185
  throw new Error("Not a valid GraphQL document.");
3186
- Ee.set(t, gr(mr(n)));
3186
+ Ee.set(t, yr(gr(n)));
3187
3187
  }
3188
3188
  return Ee.get(t);
3189
3189
  }
@@ -3194,37 +3194,37 @@ function k(e) {
3194
3194
  var r = e[0];
3195
3195
  return t.forEach(function(i, s) {
3196
3196
  i && i.kind === "Document" ? r += i.loc.source.body : r += i, r += e[s + 1];
3197
- }), yr(r);
3198
- }
3199
- function Er() {
3200
- Ee.clear(), Ye.clear();
3197
+ }), Er(r);
3201
3198
  }
3202
3199
  function _r() {
3203
- $t = !1;
3200
+ Ee.clear(), Ye.clear();
3204
3201
  }
3205
3202
  function Tr() {
3206
- Te = !0;
3203
+ Bt = !1;
3207
3204
  }
3208
3205
  function Sr() {
3206
+ Te = !0;
3207
+ }
3208
+ function vr() {
3209
3209
  Te = !1;
3210
3210
  }
3211
3211
  var ne = {
3212
3212
  gql: k,
3213
- resetCaches: Er,
3214
- disableFragmentWarnings: _r,
3215
- enableExperimentalFragmentVariables: Tr,
3216
- disableExperimentalFragmentVariables: Sr
3213
+ resetCaches: _r,
3214
+ disableFragmentWarnings: Tr,
3215
+ enableExperimentalFragmentVariables: Sr,
3216
+ disableExperimentalFragmentVariables: vr
3217
3217
  };
3218
3218
  (function(e) {
3219
3219
  e.gql = ne.gql, e.resetCaches = ne.resetCaches, e.disableFragmentWarnings = ne.disableFragmentWarnings, e.enableExperimentalFragmentVariables = ne.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = ne.disableExperimentalFragmentVariables;
3220
3220
  })(k || (k = {}));
3221
3221
  k.default = k;
3222
- const Bt = k`
3222
+ const jt = k`
3223
3223
  fragment MatchParts on MatchConfig {
3224
3224
  regexValue
3225
3225
  matchValue
3226
3226
  }
3227
- `, vr = k`
3227
+ `, Ar = k`
3228
3228
  mutation PushPayload(
3229
3229
  $session_secure_id: String!
3230
3230
  $payload_id: ID!
@@ -3250,7 +3250,7 @@ const Bt = k`
3250
3250
  highlight_logs: $highlight_logs
3251
3251
  )
3252
3252
  }
3253
- `, Ar = k`
3253
+ `, Ir = k`
3254
3254
  mutation PushSessionEvents(
3255
3255
  $session_secure_id: String!
3256
3256
  $payload_id: Int64ID!
@@ -3274,7 +3274,7 @@ const Bt = k`
3274
3274
  user_object: $user_object
3275
3275
  )
3276
3276
  }
3277
- `, Ir = k`
3277
+ `, br = k`
3278
3278
  mutation addSessionProperties(
3279
3279
  $session_secure_id: String!
3280
3280
  $properties_object: Any
@@ -3284,11 +3284,11 @@ const Bt = k`
3284
3284
  properties_object: $properties_object
3285
3285
  )
3286
3286
  }
3287
- `, br = k`
3287
+ `, xr = k`
3288
3288
  mutation pushMetrics($metrics: [MetricInput]!) {
3289
3289
  pushMetrics(metrics: $metrics)
3290
3290
  }
3291
- `, xr = k`
3291
+ `, Dr = k`
3292
3292
  mutation addSessionFeedback(
3293
3293
  $session_secure_id: String!
3294
3294
  $user_name: String
@@ -3391,12 +3391,12 @@ const Bt = k`
3391
3391
  }
3392
3392
  }
3393
3393
  }
3394
- ${Bt}
3395
- `, Dr = k`
3394
+ ${jt}
3395
+ `, wr = k`
3396
3396
  query Ignore($id: ID!) {
3397
3397
  ignore(id: $id)
3398
3398
  }
3399
- `, wr = k`
3399
+ `, Cr = k`
3400
3400
  query GetSamplingConfig($organization_verbose_id: String!) {
3401
3401
  sampling(organization_verbose_id: $organization_verbose_id) {
3402
3402
  spans {
@@ -3445,14 +3445,14 @@ const Bt = k`
3445
3445
  }
3446
3446
  }
3447
3447
  }
3448
- ${Bt}
3449
- `, Cr = (e, t, n, r) => e();
3450
- function wi(e, t = Cr) {
3448
+ ${jt}
3449
+ `, kr = (e, t, n, r) => e();
3450
+ function Ri(e, t = kr) {
3451
3451
  return {
3452
3452
  PushPayload(n, r) {
3453
3453
  return t(
3454
3454
  (i) => e.request(
3455
- vr,
3455
+ Ar,
3456
3456
  n,
3457
3457
  E(E({}, r), i)
3458
3458
  ),
@@ -3464,7 +3464,7 @@ function wi(e, t = Cr) {
3464
3464
  PushSessionEvents(n, r) {
3465
3465
  return t(
3466
3466
  (i) => e.request(
3467
- Ar,
3467
+ Ir,
3468
3468
  n,
3469
3469
  E(E({}, r), i)
3470
3470
  ),
@@ -3488,7 +3488,7 @@ function wi(e, t = Cr) {
3488
3488
  addSessionProperties(n, r) {
3489
3489
  return t(
3490
3490
  (i) => e.request(
3491
- Ir,
3491
+ br,
3492
3492
  n,
3493
3493
  E(E({}, r), i)
3494
3494
  ),
@@ -3500,7 +3500,7 @@ function wi(e, t = Cr) {
3500
3500
  pushMetrics(n, r) {
3501
3501
  return t(
3502
3502
  (i) => e.request(
3503
- br,
3503
+ xr,
3504
3504
  n,
3505
3505
  E(E({}, r), i)
3506
3506
  ),
@@ -3512,7 +3512,7 @@ function wi(e, t = Cr) {
3512
3512
  addSessionFeedback(n, r) {
3513
3513
  return t(
3514
3514
  (i) => e.request(
3515
- xr,
3515
+ Dr,
3516
3516
  n,
3517
3517
  E(E({}, r), i)
3518
3518
  ),
@@ -3535,7 +3535,7 @@ function wi(e, t = Cr) {
3535
3535
  },
3536
3536
  Ignore(n, r) {
3537
3537
  return t(
3538
- (i) => e.request(Dr, n, E(E({}, r), i)),
3538
+ (i) => e.request(wr, n, E(E({}, r), i)),
3539
3539
  "Ignore",
3540
3540
  "query",
3541
3541
  n
@@ -3544,7 +3544,7 @@ function wi(e, t = Cr) {
3544
3544
  GetSamplingConfig(n, r) {
3545
3545
  return t(
3546
3546
  (i) => e.request(
3547
- wr,
3547
+ Cr,
3548
3548
  n,
3549
3549
  E(E({}, r), i)
3550
3550
  ),
@@ -3555,7 +3555,7 @@ function wi(e, t = Cr) {
3555
3555
  }
3556
3556
  };
3557
3557
  }
3558
- function Ci(e, t, n) {
3558
+ function Li(e, t, n) {
3559
3559
  try {
3560
3560
  if (!(t in e))
3561
3561
  return () => {
@@ -3574,7 +3574,7 @@ function Ci(e, t, n) {
3574
3574
  };
3575
3575
  }
3576
3576
  }
3577
- function kr(e) {
3577
+ function Rr(e) {
3578
3578
  if (!e || !e.outerHTML)
3579
3579
  return "";
3580
3580
  let t = "";
@@ -3596,16 +3596,16 @@ function kr(e) {
3596
3596
  function ze(e) {
3597
3597
  return Object.prototype.toString.call(e) === "[object Object]";
3598
3598
  }
3599
- function Vt(e, t) {
3599
+ function qt(e, t) {
3600
3600
  if (t === 0)
3601
3601
  return !0;
3602
3602
  const n = Object.keys(e);
3603
3603
  for (const r of n)
3604
- if (ze(e[r]) && Vt(e[r], t - 1))
3604
+ if (ze(e[r]) && qt(e[r], t - 1))
3605
3605
  return !0;
3606
3606
  return !1;
3607
3607
  }
3608
- function ki(e, t) {
3608
+ function Pi(e, t) {
3609
3609
  const n = {
3610
3610
  numOfKeysLimit: 50,
3611
3611
  depthOfLimit: 4
@@ -3626,7 +3626,7 @@ function ki(e, t) {
3626
3626
  const f = {};
3627
3627
  for (const h in c) {
3628
3628
  const m = c[h];
3629
- Array.isArray(m) ? f[h] = kr(
3629
+ Array.isArray(m) ? f[h] = Rr(
3630
3630
  m.length ? m[0] : null
3631
3631
  ) : f[h] = m;
3632
3632
  }
@@ -3640,19 +3640,19 @@ function ki(e, t) {
3640
3640
  return c;
3641
3641
  });
3642
3642
  function s(a) {
3643
- return ze(a) && Object.keys(a).length > n.numOfKeysLimit || typeof a == "function" ? !0 : a instanceof Event && a.isTrusted === !1 ? Object.keys(a).length === 1 : !!(ze(a) && Vt(a, n.depthOfLimit));
3643
+ return ze(a) && Object.keys(a).length > n.numOfKeysLimit || typeof a == "function" ? !0 : a instanceof Event && a.isTrusted === !1 ? Object.keys(a).length === 1 : !!(ze(a) && qt(a, n.depthOfLimit));
3644
3644
  }
3645
3645
  function o(a) {
3646
3646
  let c = a.toString();
3647
3647
  return n.stringLengthLimit && c.length > n.stringLengthLimit && (c = `${c.slice(0, n.stringLengthLimit)}...`), c;
3648
3648
  }
3649
3649
  }
3650
- function Rr() {
3650
+ function Lr() {
3651
3651
  var e = document.createElement("canvas");
3652
3652
  return e.getContext && e.getContext("2d") ? e.toDataURL("image/webp").indexOf("data:image/webp") == 0 : !1;
3653
3653
  }
3654
- function Ri() {
3655
- return Rr() ? {
3654
+ function Fi() {
3655
+ return Lr() ? {
3656
3656
  type: "image/webp",
3657
3657
  quality: 0.9
3658
3658
  } : {
@@ -3660,10 +3660,10 @@ function Ri() {
3660
3660
  quality: 0.6
3661
3661
  };
3662
3662
  }
3663
- function Li(e) {
3663
+ function Mi(e) {
3664
3664
  return typeof e == "number" && !isNaN(e) && isFinite(e);
3665
3665
  }
3666
- const Pi = "exception.message", Fi = "exception.stacktrace", Mi = "exception.type", $i = "http.response.status_code", Ui = "server.address", Bi = "service.name", Vi = "service.version", ji = "telemetry.sdk.name", qi = "telemetry.sdk.version", Hi = "url.full", Gi = "url.path", Yi = "url.query", zi = "user_agent.original", Ji = 1e3, Xi = 1e3 * 2, Lr = 4 * 60 * 60 * 1e3, tt = 15 * 60 * 1e3, Qi = {
3666
+ const $i = "exception.message", Ui = "exception.stacktrace", Bi = "exception.type", Vi = "http.response.status_code", ji = "server.address", qi = "service.name", Hi = "service.version", Gi = "telemetry.sdk.name", Yi = "telemetry.sdk.version", zi = "url.full", Ji = "url.path", Xi = "url.query", Qi = "user_agent.original", Ki = 1e3, Wi = 1e3 * 2, Pr = 4 * 60 * 60 * 1e3, tt = 15 * 60 * 1e3, Zi = {
3667
3667
  normal: {
3668
3668
  bytes: 1e7,
3669
3669
  time: 4 * 60 * 1e3
@@ -3672,11 +3672,11 @@ const Pi = "exception.message", Fi = "exception.stacktrace", Mi = "exception.typ
3672
3672
  bytes: 16e6,
3673
3673
  time: 5e3
3674
3674
  }
3675
- }, Ki = 100, Wi = "app.highlight.io", Zi = "https://app.launchdarkly.com", es = {
3675
+ }, es = 100, ts = "app.highlight.io", ns = "https://app.launchdarkly.com", rs = {
3676
3676
  "observability.ld-stg.launchdarkly.com": "ld-stg.launchdarkly.com",
3677
3677
  "observability.app.launchdarkly.com": "app.launchdarkly.com",
3678
3678
  "observability.app.ld.catamorphic.com": "app.ld.catamorphic.com"
3679
- }, ts = "/projects/default", ns = new RegExp("pub\\.(?<domain>.+)");
3679
+ }, is = "/projects/default", ss = new RegExp("pub\\.(?<domain>.+)");
3680
3680
  /*! js-cookie v3.0.8 | MIT */
3681
3681
  function he(e) {
3682
3682
  for (var t = 1; t < arguments.length; t++) {
@@ -3686,7 +3686,7 @@ function he(e) {
3686
3686
  }
3687
3687
  return e;
3688
3688
  }
3689
- var Pr = {
3689
+ var Fr = {
3690
3690
  read: function(e) {
3691
3691
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3692
3692
  },
@@ -3747,9 +3747,9 @@ function Je(e, t) {
3747
3747
  }
3748
3748
  );
3749
3749
  }
3750
- var de = Je(Pr, { path: "/" }), Fr = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))(Fr || {});
3750
+ var de = Je(Fr, { path: "/" }), Mr = /* @__PURE__ */ ((e) => (e.CLIENT_ID = "highlightClientID", e))(Mr || {});
3751
3751
  let Se = "localStorage", Xe = !0, ie;
3752
- class Mr {
3752
+ class $r {
3753
3753
  constructor() {
3754
3754
  Y(this, "storage", {});
3755
3755
  }
@@ -3771,7 +3771,7 @@ class Mr {
3771
3771
  delete this.storage[t];
3772
3772
  }
3773
3773
  }
3774
- class $r {
3774
+ class Ur {
3775
3775
  getItem(t) {
3776
3776
  var n;
3777
3777
  return (n = de.get(t)) != null ? n : "";
@@ -3792,7 +3792,7 @@ class $r {
3792
3792
  return Object.keys((t = de.get()) != null ? t : {});
3793
3793
  }
3794
3794
  }
3795
- const K = new Mr(), W = new $r(), Ie = () => {
3795
+ const K = new $r(), W = new Ur(), Ne = () => {
3796
3796
  let e = null;
3797
3797
  if (typeof window == "undefined")
3798
3798
  return K;
@@ -3821,15 +3821,15 @@ const K = new Mr(), W = new $r(), Ie = () => {
3821
3821
  ), e = K;
3822
3822
  }
3823
3823
  return e;
3824
- }, Ur = (e) => {
3824
+ }, Br = (e) => {
3825
3825
  Se = e;
3826
- }, gt = (e) => {
3826
+ }, Et = (e) => {
3827
3827
  Xe = e;
3828
- }, Br = (e) => {
3828
+ }, Vr = (e) => {
3829
3829
  ie = e;
3830
3830
  }, nt = (e) => {
3831
3831
  try {
3832
- return Ie().getItem(e);
3832
+ return Ne().getItem(e);
3833
3833
  } catch (t) {
3834
3834
  return $(
3835
3835
  "storage",
@@ -3839,10 +3839,10 @@ const K = new Mr(), W = new $r(), Ie = () => {
3839
3839
  t
3840
3840
  ), K.getItem(e);
3841
3841
  }
3842
- }, jt = (e, t) => {
3842
+ }, Ht = (e, t) => {
3843
3843
  W.setItem(e, t);
3844
3844
  try {
3845
- return Ie().setItem(e, t);
3845
+ return Ne().setItem(e, t);
3846
3846
  } catch (n) {
3847
3847
  return $(
3848
3848
  "storage",
@@ -3855,7 +3855,7 @@ const K = new Mr(), W = new $r(), Ie = () => {
3855
3855
  }, rt = (e) => {
3856
3856
  W.removeItem(e);
3857
3857
  try {
3858
- return Ie().removeItem(e);
3858
+ return Ne().removeItem(e);
3859
3859
  } catch (t) {
3860
3860
  return $(
3861
3861
  "storage",
@@ -3865,7 +3865,7 @@ const K = new Mr(), W = new $r(), Ie = () => {
3865
3865
  t
3866
3866
  ), K.removeItem(e);
3867
3867
  }
3868
- }, rs = (e) => {
3868
+ }, os = (e) => {
3869
3869
  if (Se === "sessionStorage") {
3870
3870
  $(
3871
3871
  "segment",
@@ -3891,41 +3891,53 @@ const K = new Mr(), W = new $r(), Ie = () => {
3891
3891
  };
3892
3892
  };
3893
3893
  var ee = /* @__PURE__ */ ((e) => (e.SEGMENT_LAST_SENT_HASH_KEY = "HIGHLIGHT_SEGMENT_LAST_SENT_HASH_KEY", e.SESSION_ID = "sessionID", e.SESSION_DATA = "sessionData", e.USER_IDENTIFIER = "highlightIdentifier", e.USER_OBJECT = "highlightUserObject", e))(ee || {});
3894
- const oe = (e) => `${ee.SESSION_DATA}_${e}`, qt = () => {
3894
+ const oe = (e) => `${ee.SESSION_DATA}_${e}`, Gt = () => {
3895
3895
  var e;
3896
- return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : Ht();
3897
- }, Vr = (e) => {
3896
+ return typeof globalThis != "undefined" && ((e = globalThis.persistentSessionSecureID) != null && e.length) ? globalThis.persistentSessionSecureID : it();
3897
+ }, jr = (e) => {
3898
3898
  typeof globalThis != "undefined" && (e != null && e.length) && (globalThis.persistentSessionSecureID = e);
3899
- }, Ht = () => {
3899
+ }, it = () => {
3900
3900
  var e;
3901
3901
  return (e = nt(ee.SESSION_ID)) != null ? e : "";
3902
- }, Gt = (e) => {
3903
- jt(ee.SESSION_ID, e);
3904
3902
  }, Yt = (e) => {
3903
+ Ht(ee.SESSION_ID, e);
3904
+ }, st = (e) => {
3905
3905
  const t = oe(e);
3906
3906
  return JSON.parse(nt(t) || "{}");
3907
- }, zt = (e, t) => !e.sessionKey && !!e.sessionStartTime && t - e.sessionStartTime > Lr, jr = (e) => {
3908
- e || (e = Ht());
3909
- let t = Yt(e);
3907
+ }, zt = (e, t) => !e.sessionKey && !!e.sessionStartTime && t - e.sessionStartTime > Pr, qr = (e) => {
3908
+ e || (e = it());
3909
+ let t = st(e);
3910
3910
  if (t && t.lastPushTime && Date.now() - t.lastPushTime < tt && // A recent push does not extend a session past its maximum length.
3911
3911
  !zt(t, Date.now()))
3912
3912
  return t;
3913
3913
  rt(oe(e));
3914
- }, qr = 10 * 1e3;
3915
- let yt = 0;
3916
- const is = () => {
3914
+ }, Hr = (e) => {
3915
+ const t = e != null ? e : it();
3916
+ if (t)
3917
+ try {
3918
+ return st(t);
3919
+ } catch (n) {
3920
+ return;
3921
+ }
3922
+ };
3923
+ let Jt;
3924
+ const as = () => Jt, Gr = (e) => {
3925
+ Jt = e;
3926
+ }, Yr = 10 * 1e3;
3927
+ let _t = 0;
3928
+ const cs = () => {
3917
3929
  const e = Date.now();
3918
- if (!(e - yt < qr)) {
3919
- yt = e;
3930
+ if (!(e - _t < Yr)) {
3931
+ _t = e;
3920
3932
  try {
3921
- const t = Yt(qt());
3933
+ const t = st(Gt());
3922
3934
  if (!(t != null && t.sessionSecureID))
3923
3935
  return;
3924
3936
  if (zt(t, e)) {
3925
3937
  rt(oe(t.sessionSecureID));
3926
3938
  return;
3927
3939
  }
3928
- it(B(E({}, t), { lastPushTime: e }));
3940
+ ot(B(E({}, t), { lastPushTime: e }));
3929
3941
  } catch (t) {
3930
3942
  $(
3931
3943
  "highlightSession",
@@ -3936,26 +3948,26 @@ const is = () => {
3936
3948
  );
3937
3949
  }
3938
3950
  }
3939
- }, it = function(e) {
3951
+ }, ot = function(e) {
3940
3952
  if (!(e != null && e.sessionSecureID)) return;
3941
3953
  const t = e.sessionSecureID;
3942
- Vr(t);
3954
+ jr(t);
3943
3955
  const n = oe(t);
3944
- jt(n, JSON.stringify(e)), Gr(n);
3945
- }, Hr = function() {
3956
+ Ht(n, JSON.stringify(e)), Jr(n);
3957
+ }, zr = function() {
3946
3958
  const e = W.getItem(
3947
3959
  ee.SESSION_ID
3948
3960
  );
3949
- Gt(e);
3961
+ Yt(e);
3950
3962
  const t = oe(e), n = W.getItem(t);
3951
3963
  try {
3952
- it(JSON.parse(n));
3964
+ ot(JSON.parse(n));
3953
3965
  } catch (r) {
3954
3966
  }
3955
3967
  };
3956
- function Gr(e) {
3968
+ function Jr(e) {
3957
3969
  var i;
3958
- const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = Ie();
3970
+ const t = `${ee.SESSION_DATA}_`, n = /* @__PURE__ */ new Set(), r = Ne();
3959
3971
  for (let s = r.length - 1; s >= 0; s--) {
3960
3972
  const o = r.key(s);
3961
3973
  o && o.startsWith(t) && o !== e && n.add(o);
@@ -3977,24 +3989,24 @@ function Gr(e) {
3977
3989
  ), rt(s));
3978
3990
  }
3979
3991
  }
3980
- var Jt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(Jt || {});
3981
- const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr = (e) => {
3992
+ var Xt = /* @__PURE__ */ ((e) => (e.BillingQuotaExceeded = "BillingQuotaExceeded", e))(Xt || {});
3993
+ const Xr = 3, Qr = 1e3, Kr = 500, Wr = [Xt.BillingQuotaExceeded.toString()], Zr = (e) => {
3982
3994
  var n;
3983
3995
  return ((n = e.response.errors) == null ? void 0 : n.find(
3984
- (r) => Xr.includes(r.message)
3996
+ (r) => Wr.includes(r.message)
3985
3997
  )) === void 0;
3986
- }, ss = () => {
3998
+ }, us = () => {
3987
3999
  const e = (t, n, r, i, s = 0) => V(void 0, null, function* () {
3988
4000
  try {
3989
4001
  return yield t();
3990
4002
  } catch (o) {
3991
- if (o instanceof Q && !Qr(o))
4003
+ if (o instanceof Q && !Zr(o))
3992
4004
  throw o;
3993
- if (s < Yr)
4005
+ if (s < Xr)
3994
4006
  return yield new Promise(
3995
4007
  (a) => setTimeout(
3996
4008
  a,
3997
- zr + Jr * Math.pow(2, s)
4009
+ Qr + Kr * Math.pow(2, s)
3998
4010
  )
3999
4011
  ), yield e(
4000
4012
  t,
@@ -4003,14 +4015,14 @@ const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr
4003
4015
  i,
4004
4016
  s + 1
4005
4017
  );
4006
- throw hn(
4018
+ throw dn(
4007
4019
  "error",
4008
4020
  `highlight.io: data request failed after ${s} retries`
4009
4021
  ), o;
4010
4022
  }
4011
4023
  });
4012
4024
  return e;
4013
- }, C = "feature_flag", Xt = "launchdarkly", Qt = "evaluation", Kr = `${C}.${Qt}`, os = `${C}.set.id`, Wr = `${C}.key`, Zr = `${C}.contextKeys`, ei = `${C}.context.id`, ti = `${C}.result.value`, ni = `${C}.provider.name`, Et = {
4025
+ }, C = "feature_flag", Qt = "launchdarkly", Kt = "evaluation", ei = `${C}.${Kt}`, ls = `${C}.set.id`, ti = `${C}.key`, ni = `${C}.contextKeys`, ri = `${C}.context.id`, ii = `${C}.result.value`, si = `${C}.provider.name`, Tt = {
4014
4026
  kind: `${C}.result.reason.kind`,
4015
4027
  errorKind: `${C}.result.reason.errorKind`,
4016
4028
  ruleIndex: `${C}.result.reason.ruleIndex`,
@@ -4018,18 +4030,18 @@ const Yr = 3, zr = 1e3, Jr = 500, Xr = [Jt.BillingQuotaExceeded.toString()], Qr
4018
4030
  prerequisiteKey: `${C}.result.reason.prerequisiteKey`,
4019
4031
  inExperiment: `${C}.result.reason.inExperiment`,
4020
4032
  bigSegmentsStatus: `${C}.result.reason.bigSegmentsStatus`
4021
- }, ri = `${C}.result.variationIndex`, as = `${Xt}.application.id`, cs = `${Xt}.application.version`, ii = "context", us = `${ii}.contextKeys`, si = "$ld:telemetry:session:init", _t = "$ld:telemetry:track", ls = "launchdarkly.track", fs = "page_view", hs = "document_load", ds = "result.status";
4022
- function Tt(e) {
4033
+ }, oi = `${C}.result.variationIndex`, fs = `${Qt}.application.id`, hs = `${Qt}.application.version`, ai = "context", ds = `${ai}.contextKeys`, ci = "$ld:telemetry:session:init", St = "$ld:telemetry:track", ps = "launchdarkly.track", ms = "page_view", gs = "document_load", ys = "result.status";
4034
+ function vt(e) {
4023
4035
  return e.includes("%") || e.includes(":") ? e.replace(/%/g, "%25").replace(/:/g, "%3A") : e;
4024
4036
  }
4025
- function Kt(e) {
4037
+ function Wt(e) {
4026
4038
  return e.kind === "multi";
4027
4039
  }
4028
- function St(e) {
4029
- return Kt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => `${t}:${Tt(e[t].key)}`).join(":") : "kind" in e && e.kind === "user" ? e.key : "kind" in e ? `${e.kind}:${Tt(e.key)}` : e.key;
4040
+ function At(e) {
4041
+ return Wt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => `${t}:${vt(e[t].key)}`).join(":") : "kind" in e && e.kind === "user" ? e.key : "kind" in e ? `${e.kind}:${vt(e.key)}` : e.key;
4030
4042
  }
4031
- function vt(e) {
4032
- return Kt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
4043
+ function It(e) {
4044
+ return Wt(e) ? Object.keys(e).sort().filter((t) => t !== "kind").map((t) => ({
4033
4045
  [t]: e[t].key
4034
4046
  })).reduce((t, n) => E(E({}, t), n), {}) : "kind" in e ? {
4035
4047
  [e.kind]: e.key
@@ -4037,42 +4049,42 @@ function vt(e) {
4037
4049
  user: e.key
4038
4050
  };
4039
4051
  }
4040
- function ps(e, t, n) {
4052
+ function Es(e, t, n) {
4041
4053
  t.addHook({
4042
4054
  getMetadata: () => ({
4043
4055
  name: "highlight.run"
4044
4056
  }),
4045
4057
  afterIdentify: (r, i, s) => {
4046
4058
  var a, c;
4047
- const o = B(E({}, vt(r.context)), {
4048
- key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : St(r.context)
4059
+ const o = B(E({}, It(r.context)), {
4060
+ key: (c = (a = n == null ? void 0 : n.contextFriendlyName) == null ? void 0 : a.call(n, r.context)) != null ? c : At(r.context)
4049
4061
  });
4050
4062
  return e.log("LD.identify", "INFO", o), s.status === "completed" && e.identify(o.key, o, "LaunchDarkly"), i;
4051
4063
  },
4052
4064
  afterEvaluation: (r, i, s) => {
4053
4065
  const o = E({
4054
- [ni]: "LaunchDarkly",
4055
- [Wr]: r.flagKey,
4056
- [ti]: JSON.stringify(s.value)
4066
+ [si]: "LaunchDarkly",
4067
+ [ti]: r.flagKey,
4068
+ [ii]: JSON.stringify(s.value)
4057
4069
  }, s.variationIndex !== void 0 && s.variationIndex !== null ? {
4058
- [ri]: s.variationIndex
4070
+ [oi]: s.variationIndex
4059
4071
  } : {});
4060
4072
  if (s.reason)
4061
- for (const a in Et) {
4073
+ for (const a in Tt) {
4062
4074
  const c = a, f = s.reason[c];
4063
- f != null && (o[Et[c]] = f);
4075
+ f != null && (o[Tt[c]] = f);
4064
4076
  }
4065
- return r.context && (o[Zr] = JSON.stringify(
4066
- vt(r.context)
4067
- ), o[ei] = St(
4077
+ return r.context && (o[ni] = JSON.stringify(
4078
+ It(r.context)
4079
+ ), o[ri] = At(
4068
4080
  r.context
4069
- )), e.startSpan(Qt, (a) => {
4070
- a && a.addEvent(Kr, o);
4081
+ )), e.startSpan(Kt, (a) => {
4082
+ a && a.addEvent(ei, o);
4071
4083
  }), i;
4072
4084
  }
4073
4085
  });
4074
4086
  }
4075
- class oi {
4087
+ class ui {
4076
4088
  constructor(t, n) {
4077
4089
  Y(this, "client");
4078
4090
  Y(this, "metadata");
@@ -4082,7 +4094,7 @@ class oi {
4082
4094
  return [];
4083
4095
  }
4084
4096
  init(t) {
4085
- this.client.track(si, {
4097
+ this.client.track(ci, {
4086
4098
  sessionID: t
4087
4099
  });
4088
4100
  }
@@ -4095,18 +4107,18 @@ class oi {
4095
4107
  track(t, n) {
4096
4108
  const r = n.event;
4097
4109
  this.client.track(
4098
- r ? `${_t}:${r}` : _t,
4110
+ r ? `${St}:${r}` : St,
4099
4111
  B(E({}, n), {
4100
4112
  sessionID: t
4101
4113
  })
4102
4114
  );
4103
4115
  }
4104
4116
  }
4105
- class ms extends dn {
4117
+ class _s extends pn {
4106
4118
  constructor(n, r) {
4107
4119
  super();
4108
4120
  Y(this, "client");
4109
- this.client = new oi(n, r);
4121
+ this.client = new ui(n, r);
4110
4122
  }
4111
4123
  getHooks(n) {
4112
4124
  return [
@@ -4139,7 +4151,7 @@ class ms extends dn {
4139
4151
  return this._bufferCall("track", [n, r]);
4140
4152
  }
4141
4153
  }
4142
- const gs = (e) => {
4154
+ const Ts = (e) => {
4143
4155
  e(window.location.href);
4144
4156
  const t = history.pushState;
4145
4157
  history.pushState = /* @__PURE__ */ ((s) => function() {
@@ -4161,15 +4173,15 @@ const gs = (e) => {
4161
4173
  return window.addEventListener("locationchange", i), () => {
4162
4174
  window.removeEventListener("popstate", r), window.removeEventListener("locationchange", i), history.pushState = t, history.replaceState = n;
4163
4175
  };
4164
- }, ai = "1.4.1", ci = {
4165
- version: ai
4166
- }, ys = ci.version;
4167
- let L, st;
4168
- function Es(e, t) {
4176
+ }, li = "1.5.0", fi = {
4177
+ version: li
4178
+ }, Ss = fi.version;
4179
+ let L, at;
4180
+ function vs(e, t) {
4169
4181
  return e.nodeType, Node.ELEMENT_NODE, Qe(e);
4170
- return ui(e, t);
4182
+ return hi(e, t);
4171
4183
  }
4172
- function _s(e) {
4184
+ function As(e) {
4173
4185
  if (e.id.length)
4174
4186
  return `#${e.id}`;
4175
4187
  if (e.classList.length) {
@@ -4180,7 +4192,7 @@ function _s(e) {
4180
4192
  }
4181
4193
  return e.nodeName.toLowerCase();
4182
4194
  }
4183
- function ui(e, t) {
4195
+ function hi(e, t) {
4184
4196
  if (e.tagName.toLowerCase() === "html")
4185
4197
  return "html";
4186
4198
  try {
@@ -4196,7 +4208,7 @@ function ui(e, t) {
4196
4208
  maxNumberOfTries: 1e3,
4197
4209
  optimized: !0
4198
4210
  };
4199
- L = E(E({}, n), t), st = li(L.root, n);
4211
+ L = E(E({}, n), t), at = di(L.root, n);
4200
4212
  let r = Fe(
4201
4213
  e,
4202
4214
  0,
@@ -4212,7 +4224,7 @@ function ui(e, t) {
4212
4224
  );
4213
4225
  if (r) {
4214
4226
  if (L.optimized) {
4215
- const i = en(tn(r, e));
4227
+ const i = tn(nn(r, e));
4216
4228
  i.length > 0 && (r = i[0]);
4217
4229
  }
4218
4230
  return be(r);
@@ -4222,14 +4234,14 @@ function ui(e, t) {
4222
4234
  return Qe(e);
4223
4235
  }
4224
4236
  }
4225
- function li(e, t) {
4237
+ function di(e, t) {
4226
4238
  return e.nodeType === Node.DOCUMENT_NODE ? e : e === t.root ? e.ownerDocument : e;
4227
4239
  }
4228
4240
  function Fe(e, t, n) {
4229
4241
  let r = null, i = [], s = e, o = 0;
4230
4242
  for (; s && s !== L.root.parentElement; ) {
4231
- let a = pe(fi(s)) || pe(...hi(s)) || pe(...di(s)) || pe(pi(s)) || [mi()];
4232
- const c = gi(s);
4243
+ let a = pe(pi(s)) || pe(...mi(s)) || pe(...gi(s)) || pe(yi(s)) || [Ei()];
4244
+ const c = _i(s);
4233
4245
  if (t === 0)
4234
4246
  c && (a = a.concat(
4235
4247
  a.filter($e).map((f) => Me(f, c))
@@ -4244,18 +4256,18 @@ function Fe(e, t, n) {
4244
4256
  }
4245
4257
  for (let f of a)
4246
4258
  f.level = o;
4247
- if (i.push(a), i.length >= L.seedMinLength && (r = At(i, n), r))
4259
+ if (i.push(a), i.length >= L.seedMinLength && (r = Nt(i, n), r))
4248
4260
  break;
4249
4261
  s = s.parentElement, o++;
4250
4262
  }
4251
- return r || (r = At(i, n)), r;
4263
+ return r || (r = Nt(i, n)), r;
4252
4264
  }
4253
- function At(e, t) {
4254
- const n = en(Zt(e));
4265
+ function Nt(e, t) {
4266
+ const n = tn(en(e));
4255
4267
  if (n.length > L.threshold)
4256
4268
  return t ? t() : null;
4257
4269
  for (let r of n)
4258
- if (Wt(r))
4270
+ if (Zt(r))
4259
4271
  return r;
4260
4272
  return null;
4261
4273
  }
@@ -4267,11 +4279,11 @@ function be(e) {
4267
4279
  }
4268
4280
  return n;
4269
4281
  }
4270
- function Nt(e) {
4282
+ function bt(e) {
4271
4283
  return e.map((t) => t.penalty).reduce((t, n) => t + n, 0);
4272
4284
  }
4273
- function Wt(e) {
4274
- switch (st.querySelectorAll(be(e)).length) {
4285
+ function Zt(e) {
4286
+ switch (at.querySelectorAll(be(e)).length) {
4275
4287
  case 0:
4276
4288
  return !0;
4277
4289
  case 1:
@@ -4280,14 +4292,14 @@ function Wt(e) {
4280
4292
  return !1;
4281
4293
  }
4282
4294
  }
4283
- function fi(e) {
4295
+ function pi(e) {
4284
4296
  const t = e.getAttribute("id");
4285
4297
  return t && L.idName(t) ? {
4286
4298
  name: "#" + ve(t, { isIdentifier: !0 }),
4287
4299
  penalty: 0
4288
4300
  } : null;
4289
4301
  }
4290
- function hi(e) {
4302
+ function mi(e) {
4291
4303
  return Array.from(e.attributes).filter(
4292
4304
  (n) => L.attr(n.name, n.value)
4293
4305
  ).map(
@@ -4297,7 +4309,7 @@ function hi(e) {
4297
4309
  })
4298
4310
  );
4299
4311
  }
4300
- function di(e) {
4312
+ function gi(e) {
4301
4313
  return Array.from(e.classList).filter(L.className).map(
4302
4314
  (n) => ({
4303
4315
  name: "." + ve(n, { isIdentifier: !0 }),
@@ -4305,20 +4317,20 @@ function di(e) {
4305
4317
  })
4306
4318
  );
4307
4319
  }
4308
- function pi(e) {
4320
+ function yi(e) {
4309
4321
  const t = e.tagName.toLowerCase();
4310
4322
  return L.tagName(t) ? {
4311
4323
  name: t,
4312
4324
  penalty: 2
4313
4325
  } : null;
4314
4326
  }
4315
- function mi() {
4327
+ function Ei() {
4316
4328
  return {
4317
4329
  name: "*",
4318
4330
  penalty: 3
4319
4331
  };
4320
4332
  }
4321
- function gi(e) {
4333
+ function _i(e) {
4322
4334
  const t = e.parentNode;
4323
4335
  if (!t)
4324
4336
  return null;
@@ -4340,23 +4352,23 @@ function $e(e) {
4340
4352
  return e.name !== "html" && !e.name.startsWith("#");
4341
4353
  }
4342
4354
  function pe(...e) {
4343
- const t = e.filter(yi);
4355
+ const t = e.filter(Ti);
4344
4356
  return t.length > 0 ? t : null;
4345
4357
  }
4346
- function yi(e) {
4358
+ function Ti(e) {
4347
4359
  return e != null;
4348
4360
  }
4349
- function* Zt(e, t = []) {
4361
+ function* en(e, t = []) {
4350
4362
  if (e.length > 0)
4351
4363
  for (let n of e[0])
4352
- yield* Ce(Zt(e.slice(1, e.length), t.concat(n)));
4364
+ yield* Ce(en(e.slice(1, e.length), t.concat(n)));
4353
4365
  else
4354
4366
  yield t;
4355
4367
  }
4356
- function en(e) {
4357
- return Array.from(e).sort((t, n) => Nt(t) - Nt(n));
4368
+ function tn(e) {
4369
+ return Array.from(e).sort((t, n) => bt(t) - bt(n));
4358
4370
  }
4359
- function* tn(e, t, n = {
4371
+ function* nn(e, t, n = {
4360
4372
  counter: 0,
4361
4373
  visited: /* @__PURE__ */ new Map()
4362
4374
  }) {
@@ -4370,20 +4382,20 @@ function* tn(e, t, n = {
4370
4382
  const s = be(i);
4371
4383
  if (n.visited.has(s))
4372
4384
  return;
4373
- Wt(i) && Ei(i, t) && (yield i, n.visited.set(s, !0), yield* Ce(tn(i, t, n)));
4385
+ Zt(i) && Si(i, t) && (yield i, n.visited.set(s, !0), yield* Ce(nn(i, t, n)));
4374
4386
  }
4375
4387
  }
4376
- function Ei(e, t) {
4377
- return st.querySelector(be(e)) === t;
4388
+ function Si(e, t) {
4389
+ return at.querySelector(be(e)) === t;
4378
4390
  }
4379
- const _i = /[ -,\.\/:-@\[-\^`\{-~]/, Ti = /[ -,\.\/:-@\[\]\^`\{-~]/, Si = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, vi = {
4391
+ const vi = /[ -,\.\/:-@\[-\^`\{-~]/, Ai = /[ -,\.\/:-@\[\]\^`\{-~]/, Ii = /(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g, Ni = {
4380
4392
  escapeEverything: !1,
4381
4393
  isIdentifier: !1,
4382
4394
  quotes: "single",
4383
4395
  wrap: !1
4384
4396
  };
4385
4397
  function ve(e, t = {}) {
4386
- const n = E(E({}, vi), t);
4398
+ const n = E(E({}, Ni), t);
4387
4399
  n.quotes != "single" && n.quotes != "double" && (n.quotes = "single");
4388
4400
  const r = n.quotes == "double" ? '"' : "'", i = n.isIdentifier, s = e.charAt(0);
4389
4401
  let o = "", a = 0;
@@ -4398,18 +4410,18 @@ function ve(e, t = {}) {
4398
4410
  }
4399
4411
  m = "\\" + h.toString(16).toUpperCase() + " ";
4400
4412
  } else
4401
- n.escapeEverything ? _i.test(f) ? m = "\\" + f : m = "\\" + h.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(f) ? m = "\\" + h.toString(16).toUpperCase() + " " : f == "\\" || !i && (f == '"' && r == f || f == "'" && r == f) || i && Ti.test(f) ? m = "\\" + f : m = f;
4413
+ n.escapeEverything ? vi.test(f) ? m = "\\" + f : m = "\\" + h.toString(16).toUpperCase() + " " : /[\t\n\f\r\x0B]/.test(f) ? m = "\\" + h.toString(16).toUpperCase() + " " : f == "\\" || !i && (f == '"' && r == f || f == "'" && r == f) || i && Ai.test(f) ? m = "\\" + f : m = f;
4402
4414
  o += m;
4403
4415
  }
4404
- return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(Si, function(f, h, m) {
4416
+ return i && (/^-[-\d]/.test(o) ? o = "\\-" + o.slice(1) : /\d/.test(s) && (o = "\\3" + s + " " + o.slice(1))), o = o.replace(Ii, function(f, h, m) {
4405
4417
  return h && h.length % 2 ? f : (h || "") + m;
4406
4418
  }), !i && n.wrap ? r + o + r : o;
4407
4419
  }
4408
4420
  const Qe = (e) => {
4409
4421
  let t = "";
4410
4422
  const n = e.getAttribute("class"), r = e.getAttribute("id");
4411
- return r && (t = t.concat(It(r, "#"))), n && (t = t.concat(It(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
4412
- }, It = (e, t) => `${t}${e.trim().split(" ").join(t)}`, Ts = (e) => {
4423
+ return r && (t = t.concat(xt(r, "#"))), n && (t = t.concat(xt(n, "."))), t === "" && (t = t.concat(e.tagName.toLowerCase())), t;
4424
+ }, xt = (e, t) => `${t}${e.trim().split(" ").join(t)}`, Is = (e) => {
4413
4425
  let t;
4414
4426
  const r = () => {
4415
4427
  clearTimeout(t), t = setTimeout(() => {
@@ -4427,7 +4439,7 @@ const Qe = (e) => {
4427
4439
  };
4428
4440
  return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
4429
4441
  };
4430
- var nn = { exports: {} };
4442
+ var rn = { exports: {} };
4431
4443
  /**
4432
4444
  * @preserve
4433
4445
  * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
@@ -4480,15 +4492,15 @@ var nn = { exports: {} };
4480
4492
  return this.h1 = typeof r == "number" ? r : 0, this.rem = this.k1 = this.len = 0, this;
4481
4493
  }, t = new n(), e.exports = n;
4482
4494
  })();
4483
- })(nn);
4484
- var Ai = nn.exports;
4485
- const Ni = /* @__PURE__ */ et(Ai), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Ii = 2246822507, bt = (e) => {
4495
+ })(rn);
4496
+ var bi = rn.exports;
4497
+ const xi = /* @__PURE__ */ et(bi), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Di = 2246822507, Dt = (e) => {
4486
4498
  var n;
4487
4499
  var t = "";
4488
4500
  if (e) {
4489
- const r = Ni(e).result();
4501
+ const r = xi(e).result();
4490
4502
  for (let i = 0; i < Ue; i++) {
4491
- const o = ((r ^ i * Ii) >>> 0) % J.length;
4503
+ const o = ((r ^ i * Di) >>> 0) % J.length;
4492
4504
  t += J.charAt(o);
4493
4505
  }
4494
4506
  } else {
@@ -4503,13 +4515,13 @@ const Ni = /* @__PURE__ */ et(Ai), Ue = 28, J = "abcdefghijklmnopqrstuvwxyzABCDE
4503
4515
  }
4504
4516
  return t;
4505
4517
  };
4506
- class Ss {
4518
+ class Ns {
4507
4519
  constructor(t) {
4508
4520
  Y(this, "sessionSecureID");
4509
4521
  try {
4510
- t != null && t.storageMode && Ur(t == null ? void 0 : t.storageMode), gt(!!(t != null && t.sessionCookie)), (t == null ? void 0 : t.sessionCookieDomain) !== void 0 && Br(t.sessionCookieDomain), t != null && t.sessionCookie ? Hr() : gt(!1);
4522
+ t != null && t.storageMode && Br(t == null ? void 0 : t.storageMode), Et(!!(t != null && t.sessionCookie)), (t == null ? void 0 : t.sessionCookieDomain) !== void 0 && Vr(t.sessionCookieDomain), t != null && t.sessionCookie ? zr() : Et(!1);
4511
4523
  } catch (n) {
4512
- ct(
4524
+ lt(
4513
4525
  "Error initializing @launchdarkly observability plugin",
4514
4526
  "error",
4515
4527
  n
@@ -4518,13 +4530,15 @@ class Ss {
4518
4530
  }
4519
4531
  configureSession(t, n) {
4520
4532
  try {
4521
- const r = qt();
4522
- let i = jr(
4533
+ const r = Gt(), i = Hr(
4534
+ r
4535
+ );
4536
+ let s = qr(
4523
4537
  r
4524
4538
  );
4525
- i != null && i.sessionSecureID ? this.sessionSecureID = i.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = bt(
4539
+ s != null && s.sessionSecureID ? this.sessionSecureID = s.sessionSecureID : (n != null && n.sessionKey ? this.sessionSecureID = Dt(
4526
4540
  `${t}-${n.sessionKey}`
4527
- ) : this.sessionSecureID = bt(), Gt(this.sessionSecureID), it({
4541
+ ) : this.sessionSecureID = Dt(), i != null && i.sessionSecureID && i.sessionSecureID !== this.sessionSecureID && Gr(i.sessionSecureID), Yt(this.sessionSecureID), ot({
4528
4542
  sessionSecureID: this.sessionSecureID,
4529
4543
  sessionKey: n == null ? void 0 : n.sessionKey,
4530
4544
  projectID: 0,
@@ -4532,7 +4546,7 @@ class Ss {
4532
4546
  lastPushTime: Date.now()
4533
4547
  }));
4534
4548
  } catch (r) {
4535
- ct(
4549
+ lt(
4536
4550
  "Error configuring session in @launchdarkly observability plugin",
4537
4551
  "error",
4538
4552
  r
@@ -4541,86 +4555,87 @@ class Ss {
4541
4555
  }
4542
4556
  }
4543
4557
  export {
4544
- Yr as $,
4545
- rs as A,
4546
- ns as B,
4547
- Zi as C,
4548
- es as D,
4549
- ts as E,
4550
- Ji as F,
4551
- bt as G,
4552
- Wi as H,
4553
- Ss as I,
4554
- St as J,
4555
- vt as K,
4556
- ms as L,
4557
- Lr as M,
4558
- cs as N,
4559
- as as O,
4560
- gs as P,
4561
- ni as Q,
4562
- os as R,
4558
+ Xr as $,
4559
+ os as A,
4560
+ ss as B,
4561
+ ns as C,
4562
+ rs as D,
4563
+ is as E,
4564
+ Ki as F,
4565
+ Dt as G,
4566
+ ts as H,
4567
+ Ns as I,
4568
+ At as J,
4569
+ It as K,
4570
+ _s as L,
4571
+ Pr as M,
4572
+ hs as N,
4573
+ fs as O,
4574
+ Ts as P,
4575
+ si as Q,
4576
+ ls as R,
4563
4577
  ee as S,
4564
- qi as T,
4565
- ji as U,
4566
- Ki as V,
4567
- ar as W,
4578
+ Yi as T,
4579
+ Gi as U,
4580
+ es as V,
4581
+ cr as W,
4568
4582
  et as X,
4569
- Ci as Y,
4570
- ki as Z,
4571
- qt as _,
4583
+ Li as Y,
4584
+ Pi as Z,
4585
+ Gt as _,
4572
4586
  nt as a,
4573
- zr as a0,
4574
- Jr as a1,
4575
- Hi as a2,
4576
- fs as a3,
4577
- $i as a4,
4578
- is as a5,
4579
- zi as a6,
4580
- Vi as a7,
4581
- Bi as a8,
4582
- hs as a9,
4583
- Yi as aa,
4584
- Gi as ab,
4585
- Mi as ac,
4586
- Pi as ad,
4587
- Fi as ae,
4588
- us as af,
4589
- Ui as ag,
4590
- ls as ah,
4591
- ti as ai,
4592
- Qt as aj,
4593
- C as ak,
4594
- ri as al,
4595
- Wr as am,
4596
- Et as an,
4597
- Zr as ao,
4598
- ei as ap,
4599
- ds as aq,
4600
- Ri as b,
4601
- wi as c,
4602
- jt as d,
4603
- Gt as e,
4604
- it as f,
4605
- jr as g,
4606
- Ts as h,
4607
- Xi as i,
4608
- gt as j,
4609
- Br as k,
4610
- Qi as l,
4611
- Fr as m,
4612
- Ur as n,
4613
- ss as o,
4614
- Zn as p,
4615
- Oi as q,
4587
+ Qr as a0,
4588
+ Kr as a1,
4589
+ zi as a2,
4590
+ ms as a3,
4591
+ Vi as a4,
4592
+ cs as a5,
4593
+ Qi as a6,
4594
+ Hi as a7,
4595
+ qi as a8,
4596
+ gs as a9,
4597
+ Xi as aa,
4598
+ Ji as ab,
4599
+ as as ac,
4600
+ Bi as ad,
4601
+ $i as ae,
4602
+ Ui as af,
4603
+ ds as ag,
4604
+ ji as ah,
4605
+ ps as ai,
4606
+ ii as aj,
4607
+ Kt as ak,
4608
+ C as al,
4609
+ oi as am,
4610
+ ti as an,
4611
+ Tt as ao,
4612
+ ni as ap,
4613
+ ri as aq,
4614
+ ys as ar,
4615
+ Fi as b,
4616
+ Ri as c,
4617
+ Ht as d,
4618
+ Yt as e,
4619
+ ot as f,
4620
+ qr as g,
4621
+ Is as h,
4622
+ Wi as i,
4623
+ Et as j,
4624
+ Vr as k,
4625
+ Zi as l,
4626
+ Mr as m,
4627
+ Br as n,
4628
+ us as o,
4629
+ er as p,
4630
+ Ci as q,
4616
4631
  rt as r,
4617
- Di as s,
4618
- _s as t,
4619
- Li as u,
4620
- Ar as v,
4621
- ps as w,
4622
- Hr as x,
4623
- ys as y,
4624
- Es as z
4632
+ ki as s,
4633
+ As as t,
4634
+ Mi as u,
4635
+ Ir as v,
4636
+ Es as w,
4637
+ zr as x,
4638
+ Ss as y,
4639
+ vs as z
4625
4640
  };
4626
- //# sourceMappingURL=common-D8kkCWo3.js.map
4641
+ //# sourceMappingURL=common-1QcQF8EE.js.map