@launchdarkly/observability 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -147,14 +147,14 @@ function vs(e, t) {
147
147
  const n = e.locationOffset.column - 1, r = "".padStart(n) + e.body, i = t.line - 1, o = e.locationOffset.line - 1, a = t.line + o, u = t.line === 1 ? n : 0, c = t.column + u, s = `${e.name}:${a}:${c}
148
148
  `, l = r.split(/\r\n|[\n\r]/g), p = l[i];
149
149
  if (p.length > 120) {
150
- const f = Math.floor(c / 80), m = c % 80, v = [];
151
- for (let y = 0; y < p.length; y += 80)
152
- v.push(p.slice(y, y + 80));
150
+ const f = Math.floor(c / 80), d = c % 80, y = [];
151
+ for (let m = 0; m < p.length; m += 80)
152
+ y.push(p.slice(m, m + 80));
153
153
  return s + wo([
154
- [`${a} |`, v[0]],
155
- ...v.slice(1, f + 1).map((y) => ["|", y]),
156
- ["|", "^".padStart(m)],
157
- ["|", v[f + 1]]
154
+ [`${a} |`, y[0]],
155
+ ...y.slice(1, f + 1).map((m) => ["|", m]),
156
+ ["|", "^".padStart(d)],
157
+ ["|", y[f + 1]]
158
158
  ]);
159
159
  }
160
160
  return s + wo([
@@ -227,13 +227,13 @@ let Kc = class ys extends Error {
227
227
  Array.isArray(a) ? a : a ? [a] : void 0
228
228
  );
229
229
  const f = Ao(
230
- (r = this.nodes) === null || r === void 0 ? void 0 : r.map((v) => v.loc).filter((v) => v != null)
230
+ (r = this.nodes) === null || r === void 0 ? void 0 : r.map((y) => y.loc).filter((y) => y != null)
231
231
  );
232
- 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) => ii(u, v)) : f?.map((v) => ii(v.source, v.start));
233
- const m = Hc(
232
+ this.source = u ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? f?.map((y) => y.start), this.locations = c && u ? c.map((y) => ii(u, y)) : f?.map((y) => ii(y.source, y.start));
233
+ const d = Hc(
234
234
  l?.extensions
235
235
  ) ? l?.extensions : void 0;
236
- this.extensions = (o = p ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
236
+ this.extensions = (o = p ?? d) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
237
237
  message: {
238
238
  writable: !0,
239
239
  enumerable: !0
@@ -494,7 +494,7 @@ function Zc(e) {
494
494
  return t;
495
495
  }
496
496
  function el(e, t) {
497
- const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, o = r.length > 1 && r.slice(1).every((m) => m.length === 0 || ai(m.charCodeAt(0))), a = n.endsWith('\\"""'), u = e.endsWith('"') && !a, c = e.endsWith("\\"), s = u || c, l = (
497
+ const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, o = r.length > 1 && r.slice(1).every((d) => d.length === 0 || ai(d.charCodeAt(0))), a = n.endsWith('\\"""'), u = e.endsWith('"') && !a, c = e.endsWith("\\"), s = u || c, l = (
498
498
  // add leading and trailing new lines only if it improves readability
499
499
  !i || e.length > 70 || s || o || a
500
500
  );
@@ -504,10 +504,10 @@ function el(e, t) {
504
504
  `), p += n, (l || s) && (p += `
505
505
  `), '"""' + p + '"""';
506
506
  }
507
- var d;
507
+ var v;
508
508
  (function(e) {
509
509
  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";
510
- })(d || (d = {}));
510
+ })(v || (v = {}));
511
511
  let tl = class {
512
512
  /**
513
513
  * The previously focused non-ignored token.
@@ -522,7 +522,7 @@ let tl = class {
522
522
  * The character offset at which the current line begins.
523
523
  */
524
524
  constructor(t) {
525
- const n = new ms(d.SOF, 0, 0, 0, 0);
525
+ const n = new ms(v.SOF, 0, 0, 0, 0);
526
526
  this.source = t, this.lastToken = n, this.token = n, this.line = 1, this.lineStart = 0;
527
527
  }
528
528
  get [Symbol.toStringTag]() {
@@ -540,7 +540,7 @@ let tl = class {
540
540
  */
541
541
  lookahead() {
542
542
  let t = this.token;
543
- if (t.kind !== d.EOF)
543
+ if (t.kind !== v.EOF)
544
544
  do
545
545
  if (t.next)
546
546
  t = t.next;
@@ -548,12 +548,12 @@ let tl = class {
548
548
  const n = rl(this, t.end);
549
549
  t.next = n, n.prev = t, t = n;
550
550
  }
551
- while (t.kind === d.COMMENT);
551
+ while (t.kind === v.COMMENT);
552
552
  return t;
553
553
  }
554
554
  };
555
555
  function nl(e) {
556
- return e === d.BANG || e === d.DOLLAR || e === d.AMP || e === d.PAREN_L || e === d.PAREN_R || e === d.SPREAD || e === d.COLON || e === d.EQUALS || e === d.AT || e === d.BRACKET_L || e === d.BRACKET_R || e === d.BRACE_L || e === d.PIPE || e === d.BRACE_R;
556
+ return e === v.BANG || e === v.DOLLAR || e === v.AMP || e === v.PAREN_L || e === v.PAREN_R || e === v.SPREAD || e === v.COLON || e === v.EQUALS || e === v.AT || e === v.BRACKET_L || e === v.BRACKET_R || e === v.BRACE_L || e === v.PIPE || e === v.BRACE_R;
557
557
  }
558
558
  function gt(e) {
559
559
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
@@ -570,7 +570,7 @@ function bs(e) {
570
570
  function qe(e, t) {
571
571
  const n = e.source.body.codePointAt(t);
572
572
  if (n === void 0)
573
- return d.EOF;
573
+ return v.EOF;
574
574
  if (n >= 32 && n <= 126) {
575
575
  const r = String.fromCodePoint(n);
576
576
  return r === '"' ? `'"'` : `"${r}"`;
@@ -632,35 +632,35 @@ function rl(e, t) {
632
632
  //
633
633
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
634
634
  case 33:
635
- return V(e, d.BANG, i, i + 1);
635
+ return V(e, v.BANG, i, i + 1);
636
636
  case 36:
637
- return V(e, d.DOLLAR, i, i + 1);
637
+ return V(e, v.DOLLAR, i, i + 1);
638
638
  case 38:
639
- return V(e, d.AMP, i, i + 1);
639
+ return V(e, v.AMP, i, i + 1);
640
640
  case 40:
641
- return V(e, d.PAREN_L, i, i + 1);
641
+ return V(e, v.PAREN_L, i, i + 1);
642
642
  case 41:
643
- return V(e, d.PAREN_R, i, i + 1);
643
+ return V(e, v.PAREN_R, i, i + 1);
644
644
  case 46:
645
645
  if (n.charCodeAt(i + 1) === 46 && n.charCodeAt(i + 2) === 46)
646
- return V(e, d.SPREAD, i, i + 3);
646
+ return V(e, v.SPREAD, i, i + 3);
647
647
  break;
648
648
  case 58:
649
- return V(e, d.COLON, i, i + 1);
649
+ return V(e, v.COLON, i, i + 1);
650
650
  case 61:
651
- return V(e, d.EQUALS, i, i + 1);
651
+ return V(e, v.EQUALS, i, i + 1);
652
652
  case 64:
653
- return V(e, d.AT, i, i + 1);
653
+ return V(e, v.AT, i, i + 1);
654
654
  case 91:
655
- return V(e, d.BRACKET_L, i, i + 1);
655
+ return V(e, v.BRACKET_L, i, i + 1);
656
656
  case 93:
657
- return V(e, d.BRACKET_R, i, i + 1);
657
+ return V(e, v.BRACKET_R, i, i + 1);
658
658
  case 123:
659
- return V(e, d.BRACE_L, i, i + 1);
659
+ return V(e, v.BRACE_L, i, i + 1);
660
660
  case 124:
661
- return V(e, d.PIPE, i, i + 1);
661
+ return V(e, v.PIPE, i, i + 1);
662
662
  case 125:
663
- return V(e, d.BRACE_R, i, i + 1);
663
+ return V(e, v.BRACE_R, i, i + 1);
664
664
  // StringValue
665
665
  case 34:
666
666
  return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? ll(e, i) : al(e, i);
@@ -675,7 +675,7 @@ function rl(e, t) {
675
675
  o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : gt(o) || Wn(n, i) ? `Unexpected character: ${qe(e, i)}.` : `Invalid character: ${qe(e, i)}.`
676
676
  );
677
677
  }
678
- return V(e, d.EOF, r, r);
678
+ return V(e, v.EOF, r, r);
679
679
  }
680
680
  function il(e, t) {
681
681
  const n = e.source.body, r = n.length;
@@ -693,7 +693,7 @@ function il(e, t) {
693
693
  }
694
694
  return V(
695
695
  e,
696
- d.COMMENT,
696
+ v.COMMENT,
697
697
  t,
698
698
  i,
699
699
  n.slice(t + 1, i)
@@ -725,7 +725,7 @@ function ol(e, t, n) {
725
725
  );
726
726
  return V(
727
727
  e,
728
- a ? d.FLOAT : d.INT,
728
+ a ? v.FLOAT : v.INT,
729
729
  t,
730
730
  i,
731
731
  r.slice(t, i)
@@ -753,7 +753,7 @@ function al(e, t) {
753
753
  for (; i < r; ) {
754
754
  const u = n.charCodeAt(i);
755
755
  if (u === 34)
756
- return a += n.slice(o, i), V(e, d.STRING, t, i + 1, a);
756
+ return a += n.slice(o, i), V(e, v.STRING, t, i + 1, a);
757
757
  if (u === 92) {
758
758
  a += n.slice(o, i);
759
759
  const c = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? sl(e, i) : ul(e, i) : cl(e, i);
@@ -894,7 +894,7 @@ function ll(e, t) {
894
894
  u += n.slice(a, o), c.push(u);
895
895
  const l = V(
896
896
  e,
897
- d.BLOCK_STRING,
897
+ v.BLOCK_STRING,
898
898
  t,
899
899
  o + 3,
900
900
  // Return a string of the lines joined with U+000A.
@@ -939,7 +939,7 @@ function pl(e, t) {
939
939
  }
940
940
  return V(
941
941
  e,
942
- d.NAME,
942
+ v.NAME,
943
943
  t,
944
944
  i,
945
945
  n.slice(t, i)
@@ -1076,7 +1076,7 @@ let Tl = class {
1076
1076
  * Converts a name lex token into a name parse node.
1077
1077
  */
1078
1078
  parseName() {
1079
- const t = this.expectToken(d.NAME);
1079
+ const t = this.expectToken(v.NAME);
1080
1080
  return this.node(t, {
1081
1081
  kind: O.NAME,
1082
1082
  value: t.value
@@ -1090,9 +1090,9 @@ let Tl = class {
1090
1090
  return this.node(this._lexer.token, {
1091
1091
  kind: O.DOCUMENT,
1092
1092
  definitions: this.many(
1093
- d.SOF,
1093
+ v.SOF,
1094
1094
  this.parseDefinition,
1095
- d.EOF
1095
+ v.EOF
1096
1096
  )
1097
1097
  });
1098
1098
  }
@@ -1120,10 +1120,10 @@ let Tl = class {
1120
1120
  * - InputObjectTypeDefinition
1121
1121
  */
1122
1122
  parseDefinition() {
1123
- if (this.peek(d.BRACE_L))
1123
+ if (this.peek(v.BRACE_L))
1124
1124
  return this.parseOperationDefinition();
1125
1125
  const t = this.peekDescription(), n = t ? this._lexer.lookahead() : this._lexer.token;
1126
- if (n.kind === d.NAME) {
1126
+ if (n.kind === v.NAME) {
1127
1127
  switch (n.value) {
1128
1128
  case "schema":
1129
1129
  return this.parseSchemaDefinition();
@@ -1169,7 +1169,7 @@ let Tl = class {
1169
1169
  */
1170
1170
  parseOperationDefinition() {
1171
1171
  const t = this._lexer.token;
1172
- if (this.peek(d.BRACE_L))
1172
+ if (this.peek(v.BRACE_L))
1173
1173
  return this.node(t, {
1174
1174
  kind: O.OPERATION_DEFINITION,
1175
1175
  operation: st.QUERY,
@@ -1180,7 +1180,7 @@ let Tl = class {
1180
1180
  });
1181
1181
  const n = this.parseOperationType();
1182
1182
  let r;
1183
- return this.peek(d.NAME) && (r = this.parseName()), this.node(t, {
1183
+ return this.peek(v.NAME) && (r = this.parseName()), this.node(t, {
1184
1184
  kind: O.OPERATION_DEFINITION,
1185
1185
  operation: n,
1186
1186
  name: r,
@@ -1193,7 +1193,7 @@ let Tl = class {
1193
1193
  * OperationType : one of query mutation subscription
1194
1194
  */
1195
1195
  parseOperationType() {
1196
- const t = this.expectToken(d.NAME);
1196
+ const t = this.expectToken(v.NAME);
1197
1197
  switch (t.value) {
1198
1198
  case "query":
1199
1199
  return st.QUERY;
@@ -1209,9 +1209,9 @@ let Tl = class {
1209
1209
  */
1210
1210
  parseVariableDefinitions() {
1211
1211
  return this.optionalMany(
1212
- d.PAREN_L,
1212
+ v.PAREN_L,
1213
1213
  this.parseVariableDefinition,
1214
- d.PAREN_R
1214
+ v.PAREN_R
1215
1215
  );
1216
1216
  }
1217
1217
  /**
@@ -1221,8 +1221,8 @@ let Tl = class {
1221
1221
  return this.node(this._lexer.token, {
1222
1222
  kind: O.VARIABLE_DEFINITION,
1223
1223
  variable: this.parseVariable(),
1224
- type: (this.expectToken(d.COLON), this.parseTypeReference()),
1225
- defaultValue: this.expectOptionalToken(d.EQUALS) ? this.parseConstValueLiteral() : void 0,
1224
+ type: (this.expectToken(v.COLON), this.parseTypeReference()),
1225
+ defaultValue: this.expectOptionalToken(v.EQUALS) ? this.parseConstValueLiteral() : void 0,
1226
1226
  directives: this.parseConstDirectives()
1227
1227
  });
1228
1228
  }
@@ -1231,7 +1231,7 @@ let Tl = class {
1231
1231
  */
1232
1232
  parseVariable() {
1233
1233
  const t = this._lexer.token;
1234
- return this.expectToken(d.DOLLAR), this.node(t, {
1234
+ return this.expectToken(v.DOLLAR), this.node(t, {
1235
1235
  kind: O.VARIABLE,
1236
1236
  name: this.parseName()
1237
1237
  });
@@ -1245,9 +1245,9 @@ let Tl = class {
1245
1245
  return this.node(this._lexer.token, {
1246
1246
  kind: O.SELECTION_SET,
1247
1247
  selections: this.many(
1248
- d.BRACE_L,
1248
+ v.BRACE_L,
1249
1249
  this.parseSelection,
1250
- d.BRACE_R
1250
+ v.BRACE_R
1251
1251
  )
1252
1252
  });
1253
1253
  }
@@ -1258,7 +1258,7 @@ let Tl = class {
1258
1258
  * - InlineFragment
1259
1259
  */
1260
1260
  parseSelection() {
1261
- return this.peek(d.SPREAD) ? this.parseFragment() : this.parseField();
1261
+ return this.peek(v.SPREAD) ? this.parseFragment() : this.parseField();
1262
1262
  }
1263
1263
  /**
1264
1264
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -1268,13 +1268,13 @@ let Tl = class {
1268
1268
  parseField() {
1269
1269
  const t = this._lexer.token, n = this.parseName();
1270
1270
  let r, i;
1271
- return this.expectOptionalToken(d.COLON) ? (r = n, i = this.parseName()) : i = n, this.node(t, {
1271
+ return this.expectOptionalToken(v.COLON) ? (r = n, i = this.parseName()) : i = n, this.node(t, {
1272
1272
  kind: O.FIELD,
1273
1273
  alias: r,
1274
1274
  name: i,
1275
1275
  arguments: this.parseArguments(!1),
1276
1276
  directives: this.parseDirectives(!1),
1277
- selectionSet: this.peek(d.BRACE_L) ? this.parseSelectionSet() : void 0
1277
+ selectionSet: this.peek(v.BRACE_L) ? this.parseSelectionSet() : void 0
1278
1278
  });
1279
1279
  }
1280
1280
  /**
@@ -1282,14 +1282,14 @@ let Tl = class {
1282
1282
  */
1283
1283
  parseArguments(t) {
1284
1284
  const n = t ? this.parseConstArgument : this.parseArgument;
1285
- return this.optionalMany(d.PAREN_L, n, d.PAREN_R);
1285
+ return this.optionalMany(v.PAREN_L, n, v.PAREN_R);
1286
1286
  }
1287
1287
  /**
1288
1288
  * Argument[Const] : Name : Value[?Const]
1289
1289
  */
1290
1290
  parseArgument(t = !1) {
1291
1291
  const n = this._lexer.token, r = this.parseName();
1292
- return this.expectToken(d.COLON), this.node(n, {
1292
+ return this.expectToken(v.COLON), this.node(n, {
1293
1293
  kind: O.ARGUMENT,
1294
1294
  name: r,
1295
1295
  value: this.parseValueLiteral(t)
@@ -1308,9 +1308,9 @@ let Tl = class {
1308
1308
  */
1309
1309
  parseFragment() {
1310
1310
  const t = this._lexer.token;
1311
- this.expectToken(d.SPREAD);
1311
+ this.expectToken(v.SPREAD);
1312
1312
  const n = this.expectOptionalKeyword("on");
1313
- return !n && this.peek(d.NAME) ? this.node(t, {
1313
+ return !n && this.peek(v.NAME) ? this.node(t, {
1314
1314
  kind: O.FRAGMENT_SPREAD,
1315
1315
  name: this.parseFragmentName(),
1316
1316
  directives: this.parseDirectives(!1)
@@ -1374,24 +1374,24 @@ let Tl = class {
1374
1374
  parseValueLiteral(t) {
1375
1375
  const n = this._lexer.token;
1376
1376
  switch (n.kind) {
1377
- case d.BRACKET_L:
1377
+ case v.BRACKET_L:
1378
1378
  return this.parseList(t);
1379
- case d.BRACE_L:
1379
+ case v.BRACE_L:
1380
1380
  return this.parseObject(t);
1381
- case d.INT:
1381
+ case v.INT:
1382
1382
  return this.advanceLexer(), this.node(n, {
1383
1383
  kind: O.INT,
1384
1384
  value: n.value
1385
1385
  });
1386
- case d.FLOAT:
1386
+ case v.FLOAT:
1387
1387
  return this.advanceLexer(), this.node(n, {
1388
1388
  kind: O.FLOAT,
1389
1389
  value: n.value
1390
1390
  });
1391
- case d.STRING:
1392
- case d.BLOCK_STRING:
1391
+ case v.STRING:
1392
+ case v.BLOCK_STRING:
1393
1393
  return this.parseStringLiteral();
1394
- case d.NAME:
1394
+ case v.NAME:
1395
1395
  switch (this.advanceLexer(), n.value) {
1396
1396
  case "true":
1397
1397
  return this.node(n, {
@@ -1413,9 +1413,9 @@ let Tl = class {
1413
1413
  value: n.value
1414
1414
  });
1415
1415
  }
1416
- case d.DOLLAR:
1416
+ case v.DOLLAR:
1417
1417
  if (t)
1418
- if (this.expectToken(d.DOLLAR), this._lexer.token.kind === d.NAME) {
1418
+ if (this.expectToken(v.DOLLAR), this._lexer.token.kind === v.NAME) {
1419
1419
  const r = this._lexer.token.value;
1420
1420
  throw q(
1421
1421
  this._lexer.source,
@@ -1437,7 +1437,7 @@ let Tl = class {
1437
1437
  return this.advanceLexer(), this.node(t, {
1438
1438
  kind: O.STRING,
1439
1439
  value: t.value,
1440
- block: t.kind === d.BLOCK_STRING
1440
+ block: t.kind === v.BLOCK_STRING
1441
1441
  });
1442
1442
  }
1443
1443
  /**
@@ -1449,7 +1449,7 @@ let Tl = class {
1449
1449
  const n = () => this.parseValueLiteral(t);
1450
1450
  return this.node(this._lexer.token, {
1451
1451
  kind: O.LIST,
1452
- values: this.any(d.BRACKET_L, n, d.BRACKET_R)
1452
+ values: this.any(v.BRACKET_L, n, v.BRACKET_R)
1453
1453
  });
1454
1454
  }
1455
1455
  /**
@@ -1463,7 +1463,7 @@ let Tl = class {
1463
1463
  const n = () => this.parseObjectField(t);
1464
1464
  return this.node(this._lexer.token, {
1465
1465
  kind: O.OBJECT,
1466
- fields: this.any(d.BRACE_L, n, d.BRACE_R)
1466
+ fields: this.any(v.BRACE_L, n, v.BRACE_R)
1467
1467
  });
1468
1468
  }
1469
1469
  /**
@@ -1471,7 +1471,7 @@ let Tl = class {
1471
1471
  */
1472
1472
  parseObjectField(t) {
1473
1473
  const n = this._lexer.token, r = this.parseName();
1474
- return this.expectToken(d.COLON), this.node(n, {
1474
+ return this.expectToken(v.COLON), this.node(n, {
1475
1475
  kind: O.OBJECT_FIELD,
1476
1476
  name: r,
1477
1477
  value: this.parseValueLiteral(t)
@@ -1483,7 +1483,7 @@ let Tl = class {
1483
1483
  */
1484
1484
  parseDirectives(t) {
1485
1485
  const n = [];
1486
- for (; this.peek(d.AT); )
1486
+ for (; this.peek(v.AT); )
1487
1487
  n.push(this.parseDirective(t));
1488
1488
  return n;
1489
1489
  }
@@ -1497,7 +1497,7 @@ let Tl = class {
1497
1497
  */
1498
1498
  parseDirective(t) {
1499
1499
  const n = this._lexer.token;
1500
- return this.expectToken(d.AT), this.node(n, {
1500
+ return this.expectToken(v.AT), this.node(n, {
1501
1501
  kind: O.DIRECTIVE,
1502
1502
  name: this.parseName(),
1503
1503
  arguments: this.parseArguments(t)
@@ -1513,15 +1513,15 @@ let Tl = class {
1513
1513
  parseTypeReference() {
1514
1514
  const t = this._lexer.token;
1515
1515
  let n;
1516
- if (this.expectOptionalToken(d.BRACKET_L)) {
1516
+ if (this.expectOptionalToken(v.BRACKET_L)) {
1517
1517
  const r = this.parseTypeReference();
1518
- this.expectToken(d.BRACKET_R), n = this.node(t, {
1518
+ this.expectToken(v.BRACKET_R), n = this.node(t, {
1519
1519
  kind: O.LIST_TYPE,
1520
1520
  type: r
1521
1521
  });
1522
1522
  } else
1523
1523
  n = this.parseNamedType();
1524
- return this.expectOptionalToken(d.BANG) ? this.node(t, {
1524
+ return this.expectOptionalToken(v.BANG) ? this.node(t, {
1525
1525
  kind: O.NON_NULL_TYPE,
1526
1526
  type: n
1527
1527
  }) : n;
@@ -1537,7 +1537,7 @@ let Tl = class {
1537
1537
  }
1538
1538
  // Implements the parsing rules in the Type Definition section.
1539
1539
  peekDescription() {
1540
- return this.peek(d.STRING) || this.peek(d.BLOCK_STRING);
1540
+ return this.peek(v.STRING) || this.peek(v.BLOCK_STRING);
1541
1541
  }
1542
1542
  /**
1543
1543
  * Description : StringValue
@@ -1555,9 +1555,9 @@ let Tl = class {
1555
1555
  const t = this._lexer.token, n = this.parseDescription();
1556
1556
  this.expectKeyword("schema");
1557
1557
  const r = this.parseConstDirectives(), i = this.many(
1558
- d.BRACE_L,
1558
+ v.BRACE_L,
1559
1559
  this.parseOperationTypeDefinition,
1560
- d.BRACE_R
1560
+ v.BRACE_R
1561
1561
  );
1562
1562
  return this.node(t, {
1563
1563
  kind: O.SCHEMA_DEFINITION,
@@ -1571,7 +1571,7 @@ let Tl = class {
1571
1571
  */
1572
1572
  parseOperationTypeDefinition() {
1573
1573
  const t = this._lexer.token, n = this.parseOperationType();
1574
- this.expectToken(d.COLON);
1574
+ this.expectToken(v.COLON);
1575
1575
  const r = this.parseNamedType();
1576
1576
  return this.node(t, {
1577
1577
  kind: O.OPERATION_TYPE_DEFINITION,
@@ -1617,7 +1617,7 @@ let Tl = class {
1617
1617
  * - ImplementsInterfaces & NamedType
1618
1618
  */
1619
1619
  parseImplementsInterfaces() {
1620
- return this.expectOptionalKeyword("implements") ? this.delimitedMany(d.AMP, this.parseNamedType) : [];
1620
+ return this.expectOptionalKeyword("implements") ? this.delimitedMany(v.AMP, this.parseNamedType) : [];
1621
1621
  }
1622
1622
  /**
1623
1623
  * ```
@@ -1626,9 +1626,9 @@ let Tl = class {
1626
1626
  */
1627
1627
  parseFieldsDefinition() {
1628
1628
  return this.optionalMany(
1629
- d.BRACE_L,
1629
+ v.BRACE_L,
1630
1630
  this.parseFieldDefinition,
1631
- d.BRACE_R
1631
+ v.BRACE_R
1632
1632
  );
1633
1633
  }
1634
1634
  /**
@@ -1637,7 +1637,7 @@ let Tl = class {
1637
1637
  */
1638
1638
  parseFieldDefinition() {
1639
1639
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseName(), i = this.parseArgumentDefs();
1640
- this.expectToken(d.COLON);
1640
+ this.expectToken(v.COLON);
1641
1641
  const o = this.parseTypeReference(), a = this.parseConstDirectives();
1642
1642
  return this.node(t, {
1643
1643
  kind: O.FIELD_DEFINITION,
@@ -1653,9 +1653,9 @@ let Tl = class {
1653
1653
  */
1654
1654
  parseArgumentDefs() {
1655
1655
  return this.optionalMany(
1656
- d.PAREN_L,
1656
+ v.PAREN_L,
1657
1657
  this.parseInputValueDef,
1658
- d.PAREN_R
1658
+ v.PAREN_R
1659
1659
  );
1660
1660
  }
1661
1661
  /**
@@ -1664,10 +1664,10 @@ let Tl = class {
1664
1664
  */
1665
1665
  parseInputValueDef() {
1666
1666
  const t = this._lexer.token, n = this.parseDescription(), r = this.parseName();
1667
- this.expectToken(d.COLON);
1667
+ this.expectToken(v.COLON);
1668
1668
  const i = this.parseTypeReference();
1669
1669
  let o;
1670
- this.expectOptionalToken(d.EQUALS) && (o = this.parseConstValueLiteral());
1670
+ this.expectOptionalToken(v.EQUALS) && (o = this.parseConstValueLiteral());
1671
1671
  const a = this.parseConstDirectives();
1672
1672
  return this.node(t, {
1673
1673
  kind: O.INPUT_VALUE_DEFINITION,
@@ -1717,7 +1717,7 @@ let Tl = class {
1717
1717
  * - UnionMemberTypes | NamedType
1718
1718
  */
1719
1719
  parseUnionMemberTypes() {
1720
- return this.expectOptionalToken(d.EQUALS) ? this.delimitedMany(d.PIPE, this.parseNamedType) : [];
1720
+ return this.expectOptionalToken(v.EQUALS) ? this.delimitedMany(v.PIPE, this.parseNamedType) : [];
1721
1721
  }
1722
1722
  /**
1723
1723
  * EnumTypeDefinition :
@@ -1742,9 +1742,9 @@ let Tl = class {
1742
1742
  */
1743
1743
  parseEnumValuesDefinition() {
1744
1744
  return this.optionalMany(
1745
- d.BRACE_L,
1745
+ v.BRACE_L,
1746
1746
  this.parseEnumValueDefinition,
1747
- d.BRACE_R
1747
+ v.BRACE_R
1748
1748
  );
1749
1749
  }
1750
1750
  /**
@@ -1796,9 +1796,9 @@ let Tl = class {
1796
1796
  */
1797
1797
  parseInputFieldsDefinition() {
1798
1798
  return this.optionalMany(
1799
- d.BRACE_L,
1799
+ v.BRACE_L,
1800
1800
  this.parseInputValueDef,
1801
- d.BRACE_R
1801
+ v.BRACE_R
1802
1802
  );
1803
1803
  }
1804
1804
  /**
@@ -1816,7 +1816,7 @@ let Tl = class {
1816
1816
  */
1817
1817
  parseTypeSystemExtension() {
1818
1818
  const t = this._lexer.lookahead();
1819
- if (t.kind === d.NAME)
1819
+ if (t.kind === v.NAME)
1820
1820
  switch (t.value) {
1821
1821
  case "schema":
1822
1822
  return this.parseSchemaExtension();
@@ -1846,9 +1846,9 @@ let Tl = class {
1846
1846
  const t = this._lexer.token;
1847
1847
  this.expectKeyword("extend"), this.expectKeyword("schema");
1848
1848
  const n = this.parseConstDirectives(), r = this.optionalMany(
1849
- d.BRACE_L,
1849
+ v.BRACE_L,
1850
1850
  this.parseOperationTypeDefinition,
1851
- d.BRACE_R
1851
+ v.BRACE_R
1852
1852
  );
1853
1853
  if (n.length === 0 && r.length === 0)
1854
1854
  throw this.unexpected();
@@ -1976,7 +1976,7 @@ let Tl = class {
1976
1976
  */
1977
1977
  parseDirectiveDefinition() {
1978
1978
  const t = this._lexer.token, n = this.parseDescription();
1979
- this.expectKeyword("directive"), this.expectToken(d.AT);
1979
+ this.expectKeyword("directive"), this.expectToken(v.AT);
1980
1980
  const r = this.parseName(), i = this.parseArgumentDefs(), o = this.expectOptionalKeyword("repeatable");
1981
1981
  this.expectKeyword("on");
1982
1982
  const a = this.parseDirectiveLocations();
@@ -1995,7 +1995,7 @@ let Tl = class {
1995
1995
  * - DirectiveLocations | DirectiveLocation
1996
1996
  */
1997
1997
  parseDirectiveLocations() {
1998
- return this.delimitedMany(d.PIPE, this.parseDirectiveLocation);
1998
+ return this.delimitedMany(v.PIPE, this.parseDirectiveLocation);
1999
1999
  }
2000
2000
  /*
2001
2001
  * DirectiveLocation :
@@ -2076,7 +2076,7 @@ let Tl = class {
2076
2076
  */
2077
2077
  expectKeyword(t) {
2078
2078
  const n = this._lexer.token;
2079
- if (n.kind === d.NAME && n.value === t)
2079
+ if (n.kind === v.NAME && n.value === t)
2080
2080
  this.advanceLexer();
2081
2081
  else
2082
2082
  throw q(
@@ -2091,7 +2091,7 @@ let Tl = class {
2091
2091
  */
2092
2092
  expectOptionalKeyword(t) {
2093
2093
  const n = this._lexer.token;
2094
- return n.kind === d.NAME && n.value === t ? (this.advanceLexer(), !0) : !1;
2094
+ return n.kind === v.NAME && n.value === t ? (this.advanceLexer(), !0) : !1;
2095
2095
  }
2096
2096
  /**
2097
2097
  * Helper function for creating an error when an unexpected lexed token is encountered.
@@ -2160,7 +2160,7 @@ let Tl = class {
2160
2160
  }
2161
2161
  advanceLexer() {
2162
2162
  const { maxTokens: t } = this._options, n = this._lexer.advance();
2163
- if (n.kind !== d.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2163
+ if (n.kind !== v.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
2164
2164
  throw q(
2165
2165
  this._lexer.source,
2166
2166
  n.start,
@@ -2354,12 +2354,12 @@ function Ll(e, t, n = gs) {
2354
2354
  for (const E of Object.values(O))
2355
2355
  r.set(E, Rl(t, E));
2356
2356
  let i, o = Array.isArray(e), a = [e], u = -1, c = [], s = e, l, p;
2357
- const f = [], m = [];
2357
+ const f = [], d = [];
2358
2358
  do {
2359
2359
  u++;
2360
2360
  const E = u === a.length, S = E && c.length !== 0;
2361
2361
  if (E) {
2362
- if (l = m.length === 0 ? void 0 : f[f.length - 1], s = p, p = m.pop(), S)
2362
+ if (l = d.length === 0 ? void 0 : f[f.length - 1], s = p, p = d.pop(), S)
2363
2363
  if (o) {
2364
2364
  s = s.slice();
2365
2365
  let $ = 0;
@@ -2380,10 +2380,10 @@ function Ll(e, t, n = gs) {
2380
2380
  }
2381
2381
  let P;
2382
2382
  if (!Array.isArray(s)) {
2383
- var v, y;
2383
+ var y, m;
2384
2384
  Lo(s) || mn(!1, `Invalid AST Node: ${Ji(s)}.`);
2385
- const $ = E ? (v = r.get(s.kind)) === null || v === void 0 ? void 0 : v.leave : (y = r.get(s.kind)) === null || y === void 0 ? void 0 : y.enter;
2386
- if (P = $?.call(t, s, l, p, f, m), P === Al)
2385
+ const $ = E ? (y = r.get(s.kind)) === null || y === void 0 ? void 0 : y.leave : (m = r.get(s.kind)) === null || m === void 0 ? void 0 : m.enter;
2386
+ if (P = $?.call(t, s, l, p, f, d), P === Al)
2387
2387
  break;
2388
2388
  if (P === !1) {
2389
2389
  if (!E) {
@@ -2408,7 +2408,7 @@ function Ll(e, t, n = gs) {
2408
2408
  keys: a,
2409
2409
  edits: c,
2410
2410
  prev: i
2411
- }, o = Array.isArray(s), a = o ? s : (g = n[s.kind]) !== null && g !== void 0 ? g : [], u = -1, c = [], p && m.push(p), p = s;
2411
+ }, o = Array.isArray(s), a = o ? s : (g = n[s.kind]) !== null && g !== void 0 ? g : [], u = -1, c = [], p && d.push(p), p = s;
2412
2412
  }
2413
2413
  } while (i !== void 0);
2414
2414
  return c.length !== 0 ? c[c.length - 1][1] : e;
@@ -2787,7 +2787,7 @@ var si = { exports: {} };
2787
2787
  function f(h) {
2788
2788
  return typeof h != "string" && (h = String(h)), h;
2789
2789
  }
2790
- function m(h) {
2790
+ function d(h) {
2791
2791
  var _ = {
2792
2792
  next: function() {
2793
2793
  var A = h.shift();
@@ -2798,8 +2798,8 @@ var si = { exports: {} };
2798
2798
  return _;
2799
2799
  }), _;
2800
2800
  }
2801
- function v(h) {
2802
- this.map = {}, h instanceof v ? h.forEach(function(_, A) {
2801
+ function y(h) {
2802
+ this.map = {}, h instanceof y ? h.forEach(function(_, A) {
2803
2803
  this.append(A, _);
2804
2804
  }, this) : Array.isArray(h) ? h.forEach(function(_) {
2805
2805
  this.append(_[0], _[1]);
@@ -2807,38 +2807,38 @@ var si = { exports: {} };
2807
2807
  this.append(_, h[_]);
2808
2808
  }, this);
2809
2809
  }
2810
- v.prototype.append = function(h, _) {
2810
+ y.prototype.append = function(h, _) {
2811
2811
  h = p(h), _ = f(_);
2812
2812
  var A = this.map[h];
2813
2813
  this.map[h] = A ? A + ", " + _ : _;
2814
- }, v.prototype.delete = function(h) {
2814
+ }, y.prototype.delete = function(h) {
2815
2815
  delete this.map[p(h)];
2816
- }, v.prototype.get = function(h) {
2816
+ }, y.prototype.get = function(h) {
2817
2817
  return h = p(h), this.has(h) ? this.map[h] : null;
2818
- }, v.prototype.has = function(h) {
2818
+ }, y.prototype.has = function(h) {
2819
2819
  return this.map.hasOwnProperty(p(h));
2820
- }, v.prototype.set = function(h, _) {
2820
+ }, y.prototype.set = function(h, _) {
2821
2821
  this.map[p(h)] = f(_);
2822
- }, v.prototype.forEach = function(h, _) {
2822
+ }, y.prototype.forEach = function(h, _) {
2823
2823
  for (var A in this.map)
2824
2824
  this.map.hasOwnProperty(A) && h.call(_, this.map[A], A, this);
2825
- }, v.prototype.keys = function() {
2825
+ }, y.prototype.keys = function() {
2826
2826
  var h = [];
2827
2827
  return this.forEach(function(_, A) {
2828
2828
  h.push(A);
2829
- }), m(h);
2830
- }, v.prototype.values = function() {
2829
+ }), d(h);
2830
+ }, y.prototype.values = function() {
2831
2831
  var h = [];
2832
2832
  return this.forEach(function(_) {
2833
2833
  h.push(_);
2834
- }), m(h);
2835
- }, v.prototype.entries = function() {
2834
+ }), d(h);
2835
+ }, y.prototype.entries = function() {
2836
2836
  var h = [];
2837
2837
  return this.forEach(function(_, A) {
2838
2838
  h.push([A, _]);
2839
- }), m(h);
2840
- }, u.iterable && (v.prototype[Symbol.iterator] = v.prototype.entries);
2841
- function y(h) {
2839
+ }), d(h);
2840
+ }, u.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
2841
+ function m(h) {
2842
2842
  if (h.bodyUsed)
2843
2843
  return Promise.reject(new TypeError("Already read"));
2844
2844
  h.bodyUsed = !0;
@@ -2875,7 +2875,7 @@ var si = { exports: {} };
2875
2875
  return this.bodyUsed = !1, this._initBody = function(h) {
2876
2876
  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 = $(h.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(h) || l(h)) ? this._bodyArrayBuffer = $(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"));
2877
2877
  }, u.blob && (this.blob = function() {
2878
- var h = y(this);
2878
+ var h = m(this);
2879
2879
  if (h)
2880
2880
  return h;
2881
2881
  if (this._bodyBlob)
@@ -2886,9 +2886,9 @@ var si = { exports: {} };
2886
2886
  throw new Error("could not read FormData body as blob");
2887
2887
  return Promise.resolve(new Blob([this._bodyText]));
2888
2888
  }, this.arrayBuffer = function() {
2889
- return this._bodyArrayBuffer ? y(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(E);
2889
+ return this._bodyArrayBuffer ? m(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(E);
2890
2890
  }), this.text = function() {
2891
- var h = y(this);
2891
+ var h = m(this);
2892
2892
  if (h)
2893
2893
  return h;
2894
2894
  if (this._bodyBlob)
@@ -2915,10 +2915,10 @@ var si = { exports: {} };
2915
2915
  if (h instanceof U) {
2916
2916
  if (h.bodyUsed)
2917
2917
  throw new TypeError("Already read");
2918
- this.url = h.url, this.credentials = h.credentials, _.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);
2918
+ this.url = h.url, this.credentials = h.credentials, _.headers || (this.headers = new y(h.headers)), this.method = h.method, this.mode = h.mode, this.signal = h.signal, !A && h._bodyInit != null && (A = h._bodyInit, h.bodyUsed = !0);
2919
2919
  } else
2920
2920
  this.url = String(h);
2921
- if (this.credentials = _.credentials || this.credentials || "same-origin", (_.headers || !this.headers) && (this.headers = new v(_.headers)), this.method = z(_.method || this.method || "GET"), this.mode = _.mode || this.mode || null, this.signal = _.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && A)
2921
+ if (this.credentials = _.credentials || this.credentials || "same-origin", (_.headers || !this.headers) && (this.headers = new y(_.headers)), this.method = z(_.method || this.method || "GET"), this.mode = _.mode || this.mode || null, this.signal = _.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && A)
2922
2922
  throw new TypeError("Body not allowed for GET or HEAD requests");
2923
2923
  this._initBody(A);
2924
2924
  }
@@ -2935,7 +2935,7 @@ var si = { exports: {} };
2935
2935
  }), _;
2936
2936
  }
2937
2937
  function le(h) {
2938
- var _ = new v(), A = h.replace(/\r?\n[\t ]+/g, " ");
2938
+ var _ = new y(), A = h.replace(/\r?\n[\t ]+/g, " ");
2939
2939
  return A.split(/\r?\n/).forEach(function(H) {
2940
2940
  var F = H.split(":"), M = F.shift().trim();
2941
2941
  if (M) {
@@ -2946,13 +2946,13 @@ var si = { exports: {} };
2946
2946
  }
2947
2947
  j.call(U.prototype);
2948
2948
  function K(h, _) {
2949
- _ || (_ = {}), this.type = "default", this.status = _.status === void 0 ? 200 : _.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in _ ? _.statusText : "OK", this.headers = new v(_.headers), this.url = _.url || "", this._initBody(h);
2949
+ _ || (_ = {}), this.type = "default", this.status = _.status === void 0 ? 200 : _.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in _ ? _.statusText : "OK", this.headers = new y(_.headers), this.url = _.url || "", this._initBody(h);
2950
2950
  }
2951
2951
  j.call(K.prototype), K.prototype.clone = function() {
2952
2952
  return new K(this._bodyInit, {
2953
2953
  status: this.status,
2954
2954
  statusText: this.statusText,
2955
- headers: new v(this.headers),
2955
+ headers: new y(this.headers),
2956
2956
  url: this.url
2957
2957
  });
2958
2958
  }, K.error = function() {
@@ -3005,7 +3005,7 @@ var si = { exports: {} };
3005
3005
  }), M.send(typeof F._bodyInit > "u" ? null : F._bodyInit);
3006
3006
  });
3007
3007
  }
3008
- return me.polyfill = !0, o.fetch || (o.fetch = me, o.Headers = v, o.Request = U, o.Response = K), a.Headers = v, a.Request = U, a.Response = K, a.fetch = me, Object.defineProperty(a, "__esModule", { value: !0 }), a;
3008
+ return me.polyfill = !0, o.fetch || (o.fetch = me, o.Headers = y, o.Request = U, o.Response = K), a.Headers = y, a.Request = U, a.Response = K, a.fetch = me, Object.defineProperty(a, "__esModule", { value: !0 }), a;
3009
3009
  })({});
3010
3010
  })(r), r.fetch.ponyfill = !0, delete r.fetch.polyfill;
3011
3011
  var i = r;
@@ -3042,50 +3042,50 @@ const En = /* @__PURE__ */ Jn(ui), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE
3042
3042
  operationName: a,
3043
3043
  jsonSerializer: (n = c.jsonSerializer) != null ? n : Qi
3044
3044
  });
3045
- const m = I({
3045
+ const d = I({
3046
3046
  method: e,
3047
3047
  headers: l,
3048
3048
  body: f
3049
3049
  }, c);
3050
- let v = r, y = m;
3050
+ let y = r, m = d;
3051
3051
  if (s) {
3052
- const g = yield Promise.resolve(s(Nn(I({}, m), { url: r, operationName: a, variables: o }))), { url: E } = g, S = It(g, ["url"]);
3053
- v = E, y = S;
3052
+ const g = yield Promise.resolve(s(Nn(I({}, d), { url: r, operationName: a, variables: o }))), { url: E } = g, S = It(g, ["url"]);
3053
+ y = E, m = S;
3054
3054
  }
3055
- return p && (v = `${v}?${p}`), yield u(v, y);
3055
+ return p && (y = `${y}?${p}`), yield u(y, m);
3056
3056
  });
3057
3057
  let Bl = class {
3058
3058
  constructor(t, n = {}) {
3059
3059
  this.url = t, this.requestConfig = n, this.rawRequest = (...r) => dt(this, null, function* () {
3060
- const [i, o, a] = r, u = Ml(i, o, a), c = this.requestConfig, { headers: s, fetch: l = En, method: p = "POST", requestMiddleware: f, responseMiddleware: m } = c, v = It(c, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: y } = this;
3061
- u.signal !== void 0 && (v.signal = u.signal);
3060
+ const [i, o, a] = r, u = Ml(i, o, a), c = this.requestConfig, { headers: s, fetch: l = En, method: p = "POST", requestMiddleware: f, responseMiddleware: d } = c, y = It(c, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: m } = this;
3061
+ u.signal !== void 0 && (y.signal = u.signal);
3062
3062
  const { operationName: g } = ur(u.query);
3063
3063
  return cr({
3064
- url: y,
3064
+ url: m,
3065
3065
  query: u.query,
3066
3066
  variables: u.variables,
3067
3067
  headers: I(I({}, et(lr(s))), et(u.requestHeaders)),
3068
3068
  operationName: g,
3069
3069
  fetch: l,
3070
3070
  method: p,
3071
- fetchOptions: v,
3071
+ fetchOptions: y,
3072
3072
  middleware: f
3073
- }).then((E) => (m && m(E), E)).catch((E) => {
3074
- throw m && m(E), E;
3073
+ }).then((E) => (d && d(E), E)).catch((E) => {
3074
+ throw d && d(E), E;
3075
3075
  });
3076
3076
  });
3077
3077
  }
3078
3078
  request(t, ...n) {
3079
3079
  return dt(this, null, function* () {
3080
- const [r, i] = n, o = kl(t, r, i), a = this.requestConfig, { headers: u, fetch: c = En, method: s = "POST", requestMiddleware: l, responseMiddleware: p } = a, f = It(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: m } = this;
3080
+ const [r, i] = n, o = kl(t, r, i), a = this.requestConfig, { headers: u, fetch: c = En, method: s = "POST", requestMiddleware: l, responseMiddleware: p } = a, f = It(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: d } = this;
3081
3081
  o.signal !== void 0 && (f.signal = o.signal);
3082
- const { query: v, operationName: y } = ur(o.document);
3082
+ const { query: y, operationName: m } = ur(o.document);
3083
3083
  return cr({
3084
- url: m,
3085
- query: v,
3084
+ url: d,
3085
+ query: y,
3086
3086
  variables: o.variables,
3087
3087
  headers: I(I({}, et(lr(u))), et(o.requestHeaders)),
3088
- operationName: y,
3088
+ operationName: m,
3089
3089
  fetch: c,
3090
3090
  method: s,
3091
3091
  fetchOptions: f,
@@ -3137,8 +3137,8 @@ const cr = (e) => dt(void 0, null, function* () {
3137
3137
  var t, n;
3138
3138
  const { query: r, variables: i, fetchOptions: o } = e, a = jl(Pl((t = e.method) != null ? t : "post")), u = Array.isArray(e.query), c = yield a(e), s = yield Vl(c, (n = o.jsonSerializer) != null ? n : Qi), 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";
3139
3139
  if (c.ok && p && l) {
3140
- const f = s, m = It(f, ["errors"]), v = o.errorPolicy === "ignore" ? m : s;
3141
- return Nn(I({}, u ? { data: v } : v), {
3140
+ const f = s, d = It(f, ["errors"]), y = o.errorPolicy === "ignore" ? d : s;
3141
+ return Nn(I({}, u ? { data: y } : y), {
3142
3142
  headers: c.headers,
3143
3143
  status: c.status
3144
3144
  });
@@ -4087,7 +4087,7 @@ const Jp = (e) => {
4087
4087
  return window.addEventListener("locationchange", i), () => {
4088
4088
  window.removeEventListener("popstate", r), window.removeEventListener("locationchange", i), history.pushState = t, history.replaceState = n;
4089
4089
  };
4090
- }, Qp = "10.2.0", Zp = {
4090
+ }, Qp = "10.3.0", Zp = {
4091
4091
  version: Qp
4092
4092
  }, ef = Zp.version;
4093
4093
  function tf(e) {
@@ -4348,49 +4348,49 @@ function yf() {
4348
4348
  (function(n, r) {
4349
4349
  e.exports = r();
4350
4350
  })(Zi, function() {
4351
- function n(y) {
4352
- return !isNaN(parseFloat(y)) && isFinite(y);
4351
+ function n(m) {
4352
+ return !isNaN(parseFloat(m)) && isFinite(m);
4353
4353
  }
4354
- function r(y) {
4355
- return y.charAt(0).toUpperCase() + y.substring(1);
4354
+ function r(m) {
4355
+ return m.charAt(0).toUpperCase() + m.substring(1);
4356
4356
  }
4357
- function i(y) {
4357
+ function i(m) {
4358
4358
  return function() {
4359
- return this[y];
4359
+ return this[m];
4360
4360
  };
4361
4361
  }
4362
4362
  var o = ["isConstructor", "isEval", "isNative", "isToplevel"], a = ["columnNumber", "lineNumber"], u = ["fileName", "functionName", "source"], c = ["args"], s = ["evalOrigin"], l = o.concat(a, u, c, s);
4363
- function p(y) {
4364
- if (y)
4363
+ function p(m) {
4364
+ if (m)
4365
4365
  for (var g = 0; g < l.length; g++)
4366
- y[l[g]] !== void 0 && this["set" + r(l[g])](y[l[g]]);
4366
+ m[l[g]] !== void 0 && this["set" + r(l[g])](m[l[g]]);
4367
4367
  }
4368
4368
  p.prototype = {
4369
4369
  getArgs: function() {
4370
4370
  return this.args;
4371
4371
  },
4372
- setArgs: function(y) {
4373
- if (Object.prototype.toString.call(y) !== "[object Array]")
4372
+ setArgs: function(m) {
4373
+ if (Object.prototype.toString.call(m) !== "[object Array]")
4374
4374
  throw new TypeError("Args must be an Array");
4375
- this.args = y;
4375
+ this.args = m;
4376
4376
  },
4377
4377
  getEvalOrigin: function() {
4378
4378
  return this.evalOrigin;
4379
4379
  },
4380
- setEvalOrigin: function(y) {
4381
- if (y instanceof p)
4382
- this.evalOrigin = y;
4383
- else if (y instanceof Object)
4384
- this.evalOrigin = new p(y);
4380
+ setEvalOrigin: function(m) {
4381
+ if (m instanceof p)
4382
+ this.evalOrigin = m;
4383
+ else if (m instanceof Object)
4384
+ this.evalOrigin = new p(m);
4385
4385
  else
4386
4386
  throw new TypeError("Eval Origin must be an Object or StackFrame");
4387
4387
  },
4388
4388
  toString: function() {
4389
- var y = this.getFileName() || "", g = this.getLineNumber() || "", E = this.getColumnNumber() || "", S = this.getFunctionName() || "";
4390
- return this.getIsEval() ? y ? "[eval] (" + y + ":" + g + ":" + E + ")" : "[eval]:" + g + ":" + E : S ? S + " (" + y + ":" + g + ":" + E + ")" : y + ":" + g + ":" + E;
4389
+ var m = this.getFileName() || "", g = this.getLineNumber() || "", E = this.getColumnNumber() || "", S = this.getFunctionName() || "";
4390
+ return this.getIsEval() ? m ? "[eval] (" + m + ":" + g + ":" + E + ")" : "[eval]:" + g + ":" + E : S ? S + " (" + m + ":" + g + ":" + E + ")" : m + ":" + g + ":" + E;
4391
4391
  }
4392
- }, p.fromString = function(y) {
4393
- var g = y.indexOf("("), E = y.lastIndexOf(")"), S = y.substring(0, g), P = y.substring(g + 1, E).split(","), $ = y.substring(E + 1);
4392
+ }, p.fromString = function(m) {
4393
+ var g = m.indexOf("("), E = m.lastIndexOf(")"), S = m.substring(0, g), P = m.substring(g + 1, E).split(","), $ = m.substring(E + 1);
4394
4394
  if ($.indexOf("@") === 0)
4395
4395
  var j = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec($, ""), ne = j[1], z = j[2], U = j[3];
4396
4396
  return new p({
@@ -4402,25 +4402,25 @@ function yf() {
4402
4402
  });
4403
4403
  };
4404
4404
  for (var f = 0; f < o.length; f++)
4405
- p.prototype["get" + r(o[f])] = i(o[f]), p.prototype["set" + r(o[f])] = /* @__PURE__ */ function(y) {
4405
+ p.prototype["get" + r(o[f])] = i(o[f]), p.prototype["set" + r(o[f])] = /* @__PURE__ */ function(m) {
4406
4406
  return function(g) {
4407
- this[y] = !!g;
4407
+ this[m] = !!g;
4408
4408
  };
4409
4409
  }(o[f]);
4410
- for (var m = 0; m < a.length; m++)
4411
- p.prototype["get" + r(a[m])] = i(a[m]), p.prototype["set" + r(a[m])] = /* @__PURE__ */ function(y) {
4410
+ for (var d = 0; d < a.length; d++)
4411
+ p.prototype["get" + r(a[d])] = i(a[d]), p.prototype["set" + r(a[d])] = /* @__PURE__ */ function(m) {
4412
4412
  return function(g) {
4413
4413
  if (!n(g))
4414
- throw new TypeError(y + " must be a Number");
4415
- this[y] = Number(g);
4414
+ throw new TypeError(m + " must be a Number");
4415
+ this[m] = Number(g);
4416
4416
  };
4417
- }(a[m]);
4418
- for (var v = 0; v < u.length; v++)
4419
- p.prototype["get" + r(u[v])] = i(u[v]), p.prototype["set" + r(u[v])] = /* @__PURE__ */ function(y) {
4417
+ }(a[d]);
4418
+ for (var y = 0; y < u.length; y++)
4419
+ p.prototype["get" + r(u[y])] = i(u[y]), p.prototype["set" + r(u[y])] = /* @__PURE__ */ function(m) {
4420
4420
  return function(g) {
4421
- this[y] = String(g);
4421
+ this[m] = String(g);
4422
4422
  };
4423
- }(u[v]);
4423
+ }(u[y]);
4424
4424
  return p;
4425
4425
  });
4426
4426
  }(Bo)), Bo.exports;
@@ -4462,10 +4462,10 @@ function yf() {
4462
4462
  c.indexOf("(eval ") > -1 && (c = c.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(\),.*$)/g, ""));
4463
4463
  var s = c.replace(/^\s+/, "").replace(/\(eval code/g, "("), l = s.match(/ (\((.+):(\d+):(\d+)\)$)/);
4464
4464
  s = l ? s.replace(l[0], "") : s;
4465
- 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];
4465
+ var p = s.split(/\s+/).slice(1), f = this.extractLocation(l ? l[1] : p.pop()), d = p.join(" ") || void 0, y = ["eval", "<anonymous>"].indexOf(f[0]) > -1 ? void 0 : f[0];
4466
4466
  return new n({
4467
- functionName: m,
4468
- fileName: v,
4467
+ functionName: d,
4468
+ fileName: y,
4469
4469
  lineNumber: f[1],
4470
4470
  columnNumber: f[2],
4471
4471
  source: c
@@ -4532,12 +4532,12 @@ function yf() {
4532
4532
  return !!c.match(r) && !c.match(/^Error created at/);
4533
4533
  }, this);
4534
4534
  return u.map(function(c) {
4535
- var s = c.split("@"), l = this.extractLocation(s.pop()), p = s.shift() || "", f = p.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, m;
4536
- p.match(/\(([^)]*)\)/) && (m = p.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
4537
- var v = m === void 0 || m === "[arguments not available]" ? void 0 : m.split(",");
4535
+ var s = c.split("@"), l = this.extractLocation(s.pop()), p = s.shift() || "", f = p.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, d;
4536
+ p.match(/\(([^)]*)\)/) && (d = p.replace(/^[^(]+\(([^)]*)\)$/, "$1"));
4537
+ var y = d === void 0 || d === "[arguments not available]" ? void 0 : d.split(",");
4538
4538
  return new n({
4539
4539
  functionName: f,
4540
- args: v,
4540
+ args: y,
4541
4541
  fileName: l[0],
4542
4542
  lineNumber: l[1],
4543
4543
  columnNumber: l[2],
@@ -6012,8 +6012,8 @@ function au(e, t, n, r) {
6012
6012
  delete i[c];
6013
6013
  else {
6014
6014
  if (At(l) && At(p)) {
6015
- var f = r.get(l) || [], m = r.get(p) || [];
6016
- f.push({ obj: e, key: c }), m.push({ obj: t, key: c }), r.set(l, f), r.set(p, m);
6015
+ var f = r.get(l) || [], d = r.get(p) || [];
6016
+ f.push({ obj: e, key: c }), d.push({ obj: t, key: c }), r.set(l, f), r.set(p, d);
6017
6017
  }
6018
6018
  i[c] = au(i[c], s, n, r);
6019
6019
  }
@@ -6964,8 +6964,8 @@ function Au(e, t, n, r) {
6964
6964
  delete i[c];
6965
6965
  else {
6966
6966
  if (Ct(l) && Ct(p)) {
6967
- var f = r.get(l) || [], m = r.get(p) || [];
6968
- f.push({ obj: e, key: c }), m.push({ obj: t, key: c }), r.set(l, f), r.set(p, m);
6967
+ var f = r.get(l) || [], d = r.get(p) || [];
6968
+ f.push({ obj: e, key: c }), d.push({ obj: t, key: c }), r.set(l, f), r.set(p, d);
6969
6969
  }
6970
6970
  i[c] = Au(i[c], s, n, r);
6971
6971
  }
@@ -7358,8 +7358,8 @@ function zy(e) {
7358
7358
  return r.generalLimits = Object.assign({}, n.generalLimits, e.generalLimits || {}), r.spanLimits = Object.assign({}, n.spanLimits, e.spanLimits || {}), r;
7359
7359
  }
7360
7360
  function Xy(e) {
7361
- var t, n, r, i, o, a, u, c, s, l, p, f, m = Object.assign({}, e.spanLimits), v = Gv();
7362
- return m.attributeCountLimit = (a = (o = (i = (n = (t = e.spanLimits) === null || t === void 0 ? void 0 : t.attributeCountLimit) !== null && n !== void 0 ? n : (r = e.generalLimits) === null || r === void 0 ? void 0 : r.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 : An, 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 : wn, Object.assign({}, e, { spanLimits: m });
7361
+ var t, n, r, i, o, a, u, c, s, l, p, f, d = Object.assign({}, e.spanLimits), y = Gv();
7362
+ return d.attributeCountLimit = (a = (o = (i = (n = (t = e.spanLimits) === null || t === void 0 ? void 0 : t.attributeCountLimit) !== null && n !== void 0 ? n : (r = e.generalLimits) === null || r === void 0 ? void 0 : r.attributeCountLimit) !== null && i !== void 0 ? i : y.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT) !== null && o !== void 0 ? o : y.OTEL_ATTRIBUTE_COUNT_LIMIT) !== null && a !== void 0 ? a : An, d.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 : y.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && p !== void 0 ? p : y.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT) !== null && f !== void 0 ? f : wn, Object.assign({}, e, { spanLimits: d });
7363
7363
  }
7364
7364
  var Ky = (
7365
7365
  /** @class */
@@ -7516,14 +7516,14 @@ var Zy = (
7516
7516
  var c = k.wrapSpanContext(Ws);
7517
7517
  return c;
7518
7518
  }
7519
- var s = u?.spanContext(), l = this._idGenerator.generateSpanId(), p, f, m;
7520
- !s || !k.isSpanContextValid(s) ? p = this._idGenerator.generateTraceId() : (p = s.traceId, f = s.traceState, m = s.spanId);
7521
- var v = (i = n.kind) !== null && i !== void 0 ? i : Ht.INTERNAL, y = ((o = n.links) !== null && o !== void 0 ? o : []).map(function(ne) {
7519
+ var s = u?.spanContext(), l = this._idGenerator.generateSpanId(), p, f, d;
7520
+ !s || !k.isSpanContextValid(s) ? p = this._idGenerator.generateTraceId() : (p = s.traceId, f = s.traceState, d = s.spanId);
7521
+ var y = (i = n.kind) !== null && i !== void 0 ? i : Ht.INTERNAL, m = ((o = n.links) !== null && o !== void 0 ? o : []).map(function(ne) {
7522
7522
  return {
7523
7523
  context: ne.context,
7524
7524
  attributes: On(ne.attributes)
7525
7525
  };
7526
- }), g = On(n.attributes), E = this._sampler.shouldSample(r, p, t, v, g, y);
7526
+ }), g = On(n.attributes), E = this._sampler.shouldSample(r, p, t, y, g, m);
7527
7527
  f = (a = E.traceState) !== null && a !== void 0 ? a : f;
7528
7528
  var S = E.decision === Dn.RECORD_AND_SAMPLED ? ve.SAMPLED : ve.NONE, P = { traceId: p, spanId: l, traceFlags: S, traceState: f };
7529
7529
  if (E.decision === Dn.NOT_RECORD) {
@@ -7531,7 +7531,7 @@ var Zy = (
7531
7531
  var c = k.wrapSpanContext(P);
7532
7532
  return c;
7533
7533
  }
7534
- var $ = On(Object.assign(g, E.attributes)), j = new Gy(this, r, t, P, v, m, y, n.startTime, void 0, $);
7534
+ var $ = On(Object.assign(g, E.attributes)), j = new Gy(this, r, t, P, y, d, m, n.startTime, void 0, $);
7535
7535
  return j;
7536
7536
  }, e.prototype.startActiveSpan = function(t, n, r, i) {
7537
7537
  var o, a, u;
@@ -8886,33 +8886,33 @@ var va = "0.57.2", bg = /* @__PURE__ */ function() {
8886
8886
  url: c
8887
8887
  });
8888
8888
  }
8889
- function m(g, E) {
8889
+ function d(g, E) {
8890
8890
  i._applyAttributesAfterFetch(g, s, E), E.status >= 200 && E.status < 400 ? i._endSpan(g, p, E) : i._endSpan(g, p, {
8891
8891
  status: E.status,
8892
8892
  statusText: E.statusText,
8893
8893
  url: c
8894
8894
  });
8895
8895
  }
8896
- function v(g, E, S) {
8896
+ function y(g, E, S) {
8897
8897
  try {
8898
8898
  var P = S.clone(), $ = S.clone(), j = P.body;
8899
8899
  if (j) {
8900
8900
  var ne = j.getReader(), z = function() {
8901
8901
  ne.read().then(function(U) {
8902
8902
  var ye = U.done;
8903
- ye ? m(g, $) : z();
8903
+ ye ? d(g, $) : z();
8904
8904
  }, function(U) {
8905
8905
  f(g, U);
8906
8906
  });
8907
8907
  };
8908
8908
  z();
8909
8909
  } else
8910
- m(g, S);
8910
+ d(g, S);
8911
8911
  } finally {
8912
8912
  E(S);
8913
8913
  }
8914
8914
  }
8915
- function y(g, E, S) {
8915
+ function m(g, E, S) {
8916
8916
  try {
8917
8917
  f(g, S);
8918
8918
  } finally {
@@ -8921,7 +8921,7 @@ var va = "0.57.2", bg = /* @__PURE__ */ function() {
8921
8921
  }
8922
8922
  return new Promise(function(g, E) {
8923
8923
  return x.with(k.setSpan(x.active(), l), function() {
8924
- return i._addHeaders(s, c), i._tasksCount++, r.apply(u, s instanceof Request ? [s] : [c, s]).then(v.bind(u, l, g), y.bind(u, l, E));
8924
+ return i._addHeaders(s, c), i._tasksCount++, r.apply(u, s instanceof Request ? [s] : [c, s]).then(y.bind(u, l, g), m.bind(u, l, E));
8925
8925
  });
8926
8926
  });
8927
8927
  };
@@ -9305,19 +9305,19 @@ var o_ = /* @__PURE__ */ function() {
9305
9305
  };
9306
9306
  }, t.prototype._patchSend = function() {
9307
9307
  var n = this;
9308
- function r(l, p, f, m) {
9309
- var v = p.callbackToRemoveEvents;
9310
- typeof v == "function" && v();
9311
- var y = p.span, g = p.spanUrl, E = p.sendStartTime;
9312
- y && (n._findResourceAndAddNetworkEvents(p, y, g, E, f), y.addEvent(l, m), n._addFinalSpanAttributes(y, p, g), y.end(m), n._tasksCount--), n._clearResources();
9308
+ function r(l, p, f, d) {
9309
+ var y = p.callbackToRemoveEvents;
9310
+ typeof y == "function" && y();
9311
+ var m = p.span, g = p.spanUrl, E = p.sendStartTime;
9312
+ m && (n._findResourceAndAddNetworkEvents(p, m, g, E, f), m.addEvent(l, d), n._addFinalSpanAttributes(m, p, g), m.end(d), n._tasksCount--), n._clearResources();
9313
9313
  }
9314
9314
  function i(l, p) {
9315
9315
  var f = n._xhrMem.get(p);
9316
9316
  if (f) {
9317
9317
  f.status = p.status, f.statusText = p.statusText, n._xhrMem.delete(p), f.span && n._applyAttributesAfterXHR(f.span, p);
9318
- var m = Ea(), v = Date.now();
9318
+ var d = Ea(), y = Date.now();
9319
9319
  setTimeout(function() {
9320
- r(l, f, m, v);
9320
+ r(l, f, d, y);
9321
9321
  }, a_);
9322
9322
  }
9323
9323
  }
@@ -9340,20 +9340,20 @@ var o_ = /* @__PURE__ */ function() {
9340
9340
  }
9341
9341
  return function(l) {
9342
9342
  return function() {
9343
- for (var p = this, f = [], m = 0; m < arguments.length; m++)
9344
- f[m] = arguments[m];
9345
- var v = n._xhrMem.get(this);
9346
- if (!v)
9343
+ for (var p = this, f = [], d = 0; d < arguments.length; d++)
9344
+ f[d] = arguments[d];
9345
+ var y = n._xhrMem.get(this);
9346
+ if (!y)
9347
9347
  return l.apply(this, f);
9348
- var y = v.span, g = v.spanUrl;
9349
- if (y && g) {
9348
+ var m = y.span, g = y.spanUrl;
9349
+ if (m && g) {
9350
9350
  if (n.getConfig().measureRequestSize && f != null && f[0]) {
9351
9351
  var E = f[0], S = n_(E);
9352
- S !== void 0 && y.setAttribute(Gg, S);
9352
+ S !== void 0 && m.setAttribute(Gg, S);
9353
9353
  }
9354
- x.with(k.setSpan(x.active(), y), function() {
9355
- n._tasksCount++, v.sendStartTime = Ea(), y.addEvent(_e.METHOD_SEND), p.addEventListener("abort", a), p.addEventListener("error", o), p.addEventListener("load", c), p.addEventListener("timeout", u), v.callbackToRemoveEvents = function() {
9356
- s(p), v.createdResources && v.createdResources.observer.disconnect();
9354
+ x.with(k.setSpan(x.active(), m), function() {
9355
+ n._tasksCount++, y.sendStartTime = Ea(), m.addEvent(_e.METHOD_SEND), p.addEventListener("abort", a), p.addEventListener("error", o), p.addEventListener("load", c), p.addEventListener("timeout", u), y.callbackToRemoveEvents = function() {
9356
+ s(p), y.createdResources && y.createdResources.observer.disconnect();
9357
9357
  }, n._addHeaders(p, g), n._addResourceObserver(p, g);
9358
9358
  });
9359
9359
  }
@@ -12315,8 +12315,8 @@ var Wr = function(e) {
12315
12315
  var s = c.value;
12316
12316
  a = a.concat(s);
12317
12317
  }
12318
- } catch (m) {
12319
- n = { error: m };
12318
+ } catch (d) {
12319
+ n = { error: d };
12320
12320
  } finally {
12321
12321
  try {
12322
12322
  c && !c.done && (r = u.return) && r.call(u);
@@ -12331,8 +12331,8 @@ var Wr = function(e) {
12331
12331
  var s = f.value;
12332
12332
  a = a.concat(s);
12333
12333
  }
12334
- } catch (m) {
12335
- i = { error: m };
12334
+ } catch (d) {
12335
+ i = { error: d };
12336
12336
  } finally {
12337
12337
  try {
12338
12338
  f && !f.done && (o = p.return) && o.call(p);
@@ -12858,8 +12858,8 @@ var RT = new LT(), CT = function(e, t, n, r) {
12858
12858
  var s = xT(c, 2), l = s[0], p = s[1], f = r.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(l, t);
12859
12859
  if (f != null)
12860
12860
  return f;
12861
- var m = p.createAggregator(t), v = l.selectCardinalityLimit(t.type), y = new n(t, m, _o.Noop(), [l], v);
12862
- return r.metricStorageRegistry.registerForCollector(l, y), y;
12861
+ var d = p.createAggregator(t), y = l.selectCardinalityLimit(t.type), m = new n(t, d, _o.Noop(), [l], y);
12862
+ return r.metricStorageRegistry.registerForCollector(l, m), m;
12863
12863
  });
12864
12864
  o = o.concat(u);
12865
12865
  }
@@ -13194,8 +13194,8 @@ var jT = (
13194
13194
  var s = c.value;
13195
13195
  this._sharedState.viewRegistry.addView(s);
13196
13196
  }
13197
- } catch (m) {
13198
- n = { error: m };
13197
+ } catch (d) {
13198
+ n = { error: d };
13199
13199
  } finally {
13200
13200
  try {
13201
13201
  c && !c.done && (r = u.return) && r.call(u);
@@ -13209,8 +13209,8 @@ var jT = (
13209
13209
  var f = p.value;
13210
13210
  this.addMetricReader(f);
13211
13211
  }
13212
- } catch (m) {
13213
- i = { error: m };
13212
+ } catch (d) {
13213
+ i = { error: d };
13214
13214
  } finally {
13215
13215
  try {
13216
13216
  p && !p.done && (o = l.return) && o.call(l);
@@ -13502,23 +13502,23 @@ function tb(e, t) {
13502
13502
  for (var a = WT(o.value, 2), u = a[0], c = a[1], s = [], l = c.values(), p = l.next(); !p.done; ) {
13503
13503
  var f = p.value;
13504
13504
  if (f.length > 0) {
13505
- var m = f.map(function(y) {
13506
- return YT(y, t);
13505
+ var d = f.map(function(m) {
13506
+ return YT(m, t);
13507
13507
  });
13508
13508
  s.push({
13509
13509
  scope: zu(f[0].instrumentationLibrary),
13510
- spans: m,
13510
+ spans: d,
13511
13511
  schemaUrl: f[0].instrumentationLibrary.schemaUrl
13512
13512
  });
13513
13513
  }
13514
13514
  p = l.next();
13515
13515
  }
13516
- var v = {
13516
+ var y = {
13517
13517
  resource: qu(u),
13518
13518
  scopeSpans: s,
13519
13519
  schemaUrl: void 0
13520
13520
  };
13521
- r.push(v), o = i.next();
13521
+ r.push(y), o = i.next();
13522
13522
  }
13523
13523
  return r;
13524
13524
  }
@@ -14346,16 +14346,16 @@ const zi = class Ue extends fu {
14346
14346
  if (Date.now() - ((l = n.get(f.type)) != null ? l : 0) < 1e3 / 60)
14347
14347
  return t._invokeListener(o, this, s);
14348
14348
  n.set(f.type, Date.now()), f && (p = t._eventsSpanMap.get(f)), u && t.removePatchedListener(this, i, o);
14349
- const m = t._createSpan(f, p);
14350
- return m ? (f && t._eventsSpanMap.set(f, m), x.with(
14351
- k.setSpan(x.active(), m),
14349
+ const d = t._createSpan(f, p);
14350
+ return d ? (f && t._eventsSpanMap.set(f, d), x.with(
14351
+ k.setSpan(x.active(), d),
14352
14352
  () => {
14353
- const v = t._invokeListener(
14353
+ const y = t._invokeListener(
14354
14354
  o,
14355
14355
  this,
14356
14356
  s
14357
14357
  );
14358
- return m.end(), v;
14358
+ return d.end(), y;
14359
14359
  }
14360
14360
  )) : t._invokeListener(o, this, s);
14361
14361
  };
@@ -14639,10 +14639,10 @@ const Ge = "highlight.record", qb = "highlight.session_id", Wi = /* @__PURE__ */
14639
14639
  return;
14640
14640
  }
14641
14641
  at = e;
14642
- const f = e.backendUrl || void 0 || "https://pub.highlight.io", m = [
14642
+ const f = e.backendUrl || void 0 || "https://pub.highlight.io", d = [
14643
14643
  ...(r = (n = e.networkRecordingOptions) == null ? void 0 : n.urlBlocklist) != null ? r : [],
14644
14644
  ...c_
14645
- ], v = (i = e.environment) != null ? i : "production", y = {
14645
+ ], y = (i = e.environment) != null ? i : "production", m = {
14646
14646
  url: e.otlpEndpoint + "/v1/traces",
14647
14647
  concurrencyLimit: 10,
14648
14648
  timeoutMillis: 3e4,
@@ -14655,21 +14655,21 @@ const Ge = "highlight.record", qb = "highlight.session_id", Wi = /* @__PURE__ */
14655
14655
  keepAlive: !0
14656
14656
  }
14657
14657
  }, g = new $b(
14658
- y,
14658
+ m,
14659
14659
  t
14660
14660
  ), E = new zn(g, {
14661
14661
  maxExportBatchSize: 1024,
14662
14662
  // Default value from SDK is 512
14663
14663
  maxQueueSize: 2048,
14664
14664
  // Default value from SDK is 2048
14665
- exportTimeoutMillis: y.timeoutMillis,
14665
+ exportTimeoutMillis: m.timeoutMillis,
14666
14666
  // Default value from SDK is 30_000
14667
14667
  scheduledDelayMillis: 5e3
14668
14668
  // OTEL default; shorter window reduces data lost to page unload
14669
14669
  }), S = new qt({
14670
14670
  [dp]: (o = e.serviceName) != null ? o : "highlight-browser",
14671
14671
  [vp]: e.serviceVersion,
14672
- "deployment.environment.name": v,
14672
+ "deployment.environment.name": y,
14673
14673
  "highlight.project_id": e.projectId,
14674
14674
  [_p]: navigator.userAgent,
14675
14675
  "browser.language": navigator.language,
@@ -14681,12 +14681,12 @@ const Ge = "highlight.record", qb = "highlight.session_id", Wi = /* @__PURE__ */
14681
14681
  mergeResourceWithDefaults: !0,
14682
14682
  spanProcessors: [E]
14683
14683
  }), k.setGlobalTracerProvider(X.tracerProvider);
14684
- const P = new jb(J(R({}, y), {
14684
+ const P = new jb(J(R({}, m), {
14685
14685
  url: e.otlpEndpoint + "/v1/metrics"
14686
14686
  })), $ = new ZE({
14687
14687
  exporter: P,
14688
- exportIntervalMillis: y.timeoutMillis,
14689
- exportTimeoutMillis: y.timeoutMillis
14688
+ exportIntervalMillis: m.timeoutMillis,
14689
+ exportTimeoutMillis: m.timeoutMillis
14690
14690
  });
14691
14691
  X.meterProvider = new jT({ resource: S, readers: [$] }), Et.setGlobalMeterProvider(X.meterProvider);
14692
14692
  let j = [];
@@ -14820,7 +14820,7 @@ const Ge = "highlight.record", qb = "highlight.session_id", Wi = /* @__PURE__ */
14820
14820
  backendUrl: f,
14821
14821
  otlpEndpoint: e.otlpEndpoint,
14822
14822
  tracingOrigins: e.tracingOrigins,
14823
- urlBlocklist: m
14823
+ urlBlocklist: d
14824
14824
  })
14825
14825
  ]
14826
14826
  })
@@ -15041,41 +15041,41 @@ const Tc = "highlight-browser", Yb = Tc, Wa = () => {
15041
15041
  e.setAttributes(a);
15042
15042
  }, Qr = (e, t) => {
15043
15043
  var n, r, i, o, a, u, c, s, l, p;
15044
- const f = e.attributes, m = {}, v = {};
15044
+ const f = e.attributes, d = {}, y = {};
15045
15045
  for (const [P, $] of Object.entries(f))
15046
- P.startsWith("http.request.header.") && (m[P.slice(20)] = String($)), P.startsWith("http.response.header.") && (v[P.slice(21)] = String($));
15047
- let y = {
15046
+ P.startsWith("http.request.header.") && (d[P.slice(20)] = String($)), P.startsWith("http.response.header.") && (y[P.slice(21)] = String($));
15047
+ let m = {
15048
15048
  request: {
15049
15049
  sessionSecureID: "",
15050
15050
  id: "",
15051
15051
  url: (r = (n = f[Ne]) != null ? n : f[ht]) != null ? r : "",
15052
15052
  verb: (i = f["http.request.method"]) != null ? i : "GET",
15053
- headers: m,
15053
+ headers: d,
15054
15054
  body: (o = f["http.request.body"]) != null ? o : ""
15055
15055
  },
15056
15056
  response: {
15057
15057
  status: Number(
15058
15058
  (a = f[Ps]) != null ? a : 0
15059
15059
  ),
15060
- headers: v,
15060
+ headers: y,
15061
15061
  body: (u = f["http.response.body"]) != null ? u : ""
15062
15062
  },
15063
15063
  urlBlocked: !1
15064
15064
  }, g = !0;
15065
15065
  try {
15066
- y.request.body = JSON.parse(y.request.body);
15066
+ m.request.body = JSON.parse(m.request.body);
15067
15067
  } catch {
15068
15068
  g = !1;
15069
15069
  }
15070
15070
  let E = !0;
15071
15071
  try {
15072
- y.response.body = JSON.parse(y.response.body);
15072
+ m.response.body = JSON.parse(m.response.body);
15073
15073
  } catch {
15074
15074
  E = !1;
15075
15075
  }
15076
15076
  let S;
15077
15077
  try {
15078
- S = t(y);
15078
+ S = t(m);
15079
15079
  } catch {
15080
15080
  return;
15081
15081
  }
@@ -15357,8 +15357,8 @@ var we, Ut, Oc, Xn, Yi, Tt = function() {
15357
15357
  var i, o = oe("CLS", 0), a = 0, u = [], c = function(l) {
15358
15358
  l.forEach(function(p) {
15359
15359
  if (!p.hadRecentInput) {
15360
- var f = u[0], m = u[u.length - 1];
15361
- a && p.startTime - m.startTime < 1e3 && p.startTime - f.startTime < 5e3 ? (a += p.value, u.push(p)) : (a = p.value, u = [p]);
15360
+ var f = u[0], d = u[u.length - 1];
15361
+ a && p.startTime - d.startTime < 1e3 && p.startTime - f.startTime < 5e3 ? (a += p.value, u.push(p)) : (a = p.value, u = [p]);
15362
15362
  }
15363
15363
  }), a > o.value && (o.value = a, o.entries = u, i());
15364
15364
  }, s = bt("layout-shift", c);
@@ -15532,8 +15532,8 @@ var we, Ut, Oc, Xn, Yi, Tt = function() {
15532
15532
  if (r.entries.length) {
15533
15533
  var i = Tt();
15534
15534
  if (i) {
15535
- var o = i.activationStart || 0, a = r.entries[r.entries.length - 1], u = a.url && performance.getEntriesByType("resource").filter(function(m) {
15536
- return m.name === a.url;
15535
+ var o = i.activationStart || 0, a = r.entries[r.entries.length - 1], u = a.url && performance.getEntriesByType("resource").filter(function(d) {
15536
+ return d.name === a.url;
15537
15537
  })[0], c = Math.max(0, i.responseStart - o), s = Math.max(c, u ? (u.requestStart || u.startTime) - o : 0), l = Math.max(s, u ? u.responseEnd - o : 0), p = Math.max(l, a ? a.startTime - o : 0), f = { element: ir(a.element), timeToFirstByte: c, resourceLoadDelay: s - c, resourceLoadTime: l - s, elementRenderDelay: p - l, navigationEntry: i, lcpEntry: a };
15538
15538
  return a.url && (f.url = a.url), u && (f.lcpResourceEntry = u), void (r.attribution = f);
15539
15539
  }
@@ -15945,7 +15945,7 @@ class GS {
15945
15945
  }
15946
15946
  start() {
15947
15947
  return ue(this, null, function* () {
15948
- var t, n, r, i, o, a, u, c, s, l, p, f, m, v, y;
15948
+ var t, n, r, i, o, a, u, c, s, l, p, f, d, y, m;
15949
15949
  if (this._started)
15950
15950
  return;
15951
15951
  this._started = !0, Xb(
@@ -15959,7 +15959,7 @@ class GS {
15959
15959
  tracingOrigins: (s = this._options) == null ? void 0 : s.tracingOrigins,
15960
15960
  serviceName: (p = (l = this._options) == null ? void 0 : l.serviceName) != null ? p : "browser",
15961
15961
  serviceVersion: (f = this._options) == null ? void 0 : f.version,
15962
- instrumentations: (v = (m = this._options) == null ? void 0 : m.otel) == null ? void 0 : v.instrumentations,
15962
+ instrumentations: (y = (d = this._options) == null ? void 0 : d.otel) == null ? void 0 : y.instrumentations,
15963
15963
  productAnalyticsEvents: this._productAnalyticsEvents(),
15964
15964
  getLDContextKeyAttributes: () => this.getLDContextKeyAttributes(),
15965
15965
  getIntegrations: () => this._integrations
@@ -15967,7 +15967,7 @@ class GS {
15967
15967
  this.sampler
15968
15968
  ), this._gauges.clear(), this._counters.clear(), this._histograms.clear(), this._up_down_counters.clear();
15969
15969
  const g = new Bl(
15970
- (y = this._options.backendUrl) != null ? y : "https://pub.observability.app.launchdarkly.com",
15970
+ (m = this._options.backendUrl) != null ? m : "https://pub.observability.app.launchdarkly.com",
15971
15971
  {
15972
15972
  headers: {}
15973
15973
  }
@@ -15998,30 +15998,30 @@ class GS {
15998
15998
  }
15999
15999
  _recordLog(t, n, r, i) {
16000
16000
  this.startSpan(gc, (o) => {
16001
- var a, u, c, s;
16002
- const l = typeof t == "string" ? t : xn(t), p = i ? i.map((f) => f.toString()).join(`
16001
+ var a, u, c, s, l;
16002
+ const p = typeof t == "string" ? t : xn(t), f = i ? i.map((d) => d.toString()).join(`
16003
16003
  `) : void 0;
16004
- if (o?.addEvent("log", R({
16004
+ if (o?.addEvent("log", R(R({
16005
16005
  [_c]: n,
16006
- [Ec]: l,
16007
- "code.stacktrace": p
16008
- }, r)), this._options.reportConsoleErrors && n === "error") {
16009
- const f = new Error(l);
16010
- o?.recordException(f), o?.setStatus({
16006
+ [Ec]: p,
16007
+ "code.stacktrace": f
16008
+ }, (a = this._ldContextKeys) != null ? a : {}), r)), this._options.reportConsoleErrors && n === "error") {
16009
+ const d = new Error(p);
16010
+ o?.recordException(d), o?.setStatus({
16011
16011
  code: Un.ERROR,
16012
- message: l
16012
+ message: p
16013
16013
  }), i ? this._recordErrorMessage({
16014
- error: f,
16015
- event: f.message,
16014
+ error: d,
16015
+ event: d.message,
16016
16016
  type: "custom",
16017
16017
  url: window.location.href,
16018
16018
  source: "frontend",
16019
- lineNumber: (u = (a = i[0]) == null ? void 0 : a.lineNumber) != null ? u : 0,
16020
- columnNumber: (s = (c = i[0]) == null ? void 0 : c.columnNumber) != null ? s : 0,
16019
+ lineNumber: (c = (u = i[0]) == null ? void 0 : u.lineNumber) != null ? c : 0,
16020
+ columnNumber: (l = (s = i[0]) == null ? void 0 : s.columnNumber) != null ? l : 0,
16021
16021
  stackTrace: i,
16022
16022
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
16023
16023
  id: mi()
16024
- }) : this.recordError(f);
16024
+ }) : this.recordError(d);
16025
16025
  }
16026
16026
  });
16027
16027
  }
@@ -16143,6 +16143,7 @@ class GS {
16143
16143
  return i === void 0 && r === void 0 ? n(u) : i === void 0 ? r(u) : i(u);
16144
16144
  }
16145
16145
  const a = (u, c) => {
16146
+ this._ldContextKeys && u.setAttributes(this._ldContextKeys);
16146
16147
  const s = c(u);
16147
16148
  return s instanceof Promise ? s.finally(() => u.end()) : (u.end(), s);
16148
16149
  };
@@ -16458,14 +16459,14 @@ class t0 extends sf {
16458
16459
  name: "@launchdarkly/observability/hooks"
16459
16460
  }),
16460
16461
  afterIdentify: (u, c, s) => {
16461
- var l, p, f, m, v, y, g, E, S;
16462
+ var l, p, f, d, y, m, g, E, S;
16462
16463
  for (const $ of (f = (p = (l = this.observe) == null ? void 0 : l.getHooks) == null ? void 0 : p.call(l, t)) != null ? f : [])
16463
- (m = $.afterIdentify) == null || m.call($, u, c, s);
16464
+ (d = $.afterIdentify) == null || d.call($, u, c, s);
16464
16465
  const P = Do(u.context);
16465
- if ((v = this.observe) == null || v.setLDContextKeyAttributes(P), s.status === "completed") {
16466
+ if ((y = this.observe) == null || y.setLDContextKeyAttributes(P), s.status === "completed") {
16466
16467
  const $ = J(R({}, P), {
16467
- key: (E = (g = (y = this.options) == null ? void 0 : y.contextFriendlyName) == null ? void 0 : g.call(
16468
- y,
16468
+ key: (E = (g = (m = this.options) == null ? void 0 : m.contextFriendlyName) == null ? void 0 : g.call(
16469
+ m,
16469
16470
  u.context
16470
16471
  )) != null ? E : dr(u.context),
16471
16472
  timeout: u.timeout,
@@ -16477,10 +16478,10 @@ class t0 extends sf {
16477
16478
  return c;
16478
16479
  },
16479
16480
  afterEvaluation: (u, c, s) => {
16480
- var l, p, f, m, v;
16481
+ var l, p, f, d, y;
16481
16482
  for (const E of (f = (p = (l = this.observe) == null ? void 0 : l.getHooks) == null ? void 0 : p.call(l, t)) != null ? f : [])
16482
- (m = E.afterEvaluation) == null || m.call(E, u, c, s);
16483
- const y = R({
16483
+ (d = E.afterEvaluation) == null || d.call(E, u, c, s);
16484
+ const m = R({
16484
16485
  [kp]: u.flagKey,
16485
16486
  [Up]: JSON.stringify(s.value)
16486
16487
  }, s.variationIndex ? {
@@ -16489,23 +16490,23 @@ class t0 extends sf {
16489
16490
  if (s.reason)
16490
16491
  for (const E in Io) {
16491
16492
  const S = E, P = s.reason[S];
16492
- P && (y[Io[S]] = P);
16493
+ P && (m[Io[S]] = P);
16493
16494
  }
16494
- u.context && (y[Mp] = JSON.stringify(Do(u.context)), y[Dp] = dr(u.context));
16495
- const g = R(R({}, a), y);
16496
- return (v = this.observe) == null || v.startSpan(Pp, (E) => {
16495
+ u.context && (m[Mp] = JSON.stringify(Do(u.context)), m[Dp] = dr(u.context));
16496
+ const g = R(R({}, a), m);
16497
+ return (y = this.observe) == null || y.startSpan(Pp, (E) => {
16497
16498
  E && E.addEvent(Q, g);
16498
16499
  }), c;
16499
16500
  },
16500
16501
  afterTrack: (u) => {
16501
- var c, s, l, p, f, m, v, y, g;
16502
+ var c, s, l, p, f, d, y, m, g;
16502
16503
  for (const S of (l = (s = (c = this.observe) == null ? void 0 : c.getHooks) == null ? void 0 : s.call(c, t)) != null ? l : [])
16503
16504
  (p = S.afterTrack) == null || p.call(S, u);
16504
- if (!(((f = this.options) == null ? void 0 : f.productAnalytics) !== !1 && (typeof ((m = this.options) == null ? void 0 : m.productAnalytics) != "object" || this.options.productAnalytics.trackEvents !== !1)))
16505
+ if (!(((f = this.options) == null ? void 0 : f.productAnalytics) !== !1 && (typeof ((d = this.options) == null ? void 0 : d.productAnalytics) != "object" || this.options.productAnalytics.trackEvents !== !1)))
16505
16506
  return;
16506
16507
  const E = R(J(R(R({
16507
16508
  [Ne]: window.location.href
16508
- }, (y = (v = this.observe) == null ? void 0 : v.getLDContextKeyAttributes()) != null ? y : {}), a), {
16509
+ }, (m = (y = this.observe) == null ? void 0 : y.getLDContextKeyAttributes()) != null ? m : {}), a), {
16509
16510
  key: u.key,
16510
16511
  value: u.metricValue
16511
16512
  }), typeof u.data == "object" ? u.data : {});