zudoku 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/config/validators/InputSidebarSchema.d.ts +15 -0
  2. package/dist/config/validators/InputSidebarSchema.js +1 -0
  3. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  4. package/dist/config/validators/common.d.ts +45 -34
  5. package/dist/config/validators/common.js +2 -1
  6. package/dist/config/validators/common.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +19 -14
  8. package/dist/lib/authentication/components/SignOut.js +1 -1
  9. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  10. package/dist/lib/authentication/providers/clerk.js +29 -6
  11. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  12. package/dist/lib/authentication/providers/openid.js +1 -1
  13. package/dist/lib/authentication/providers/openid.js.map +1 -1
  14. package/dist/lib/components/navigation/SidebarBadge.d.ts +11 -1
  15. package/dist/lib/components/navigation/SidebarBadge.js +11 -2
  16. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  17. package/dist/lib/components/navigation/SidebarCategory.js +2 -2
  18. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  19. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  20. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  21. package/dist/lib/oas/graphql/index.js +16 -3
  22. package/dist/lib/oas/graphql/index.js.map +1 -1
  23. package/dist/lib/oas/parser/upgrade/index.js +17 -3
  24. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  25. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  26. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
  27. package/dist/lib/plugins/openapi/Endpoint.js +2 -0
  28. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  29. package/dist/lib/plugins/openapi/ExampleDisplay.d.ts +12 -0
  30. package/dist/lib/plugins/openapi/ExampleDisplay.js +78 -0
  31. package/dist/lib/plugins/openapi/ExampleDisplay.js.map +1 -0
  32. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  33. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  34. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  35. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  36. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -4
  37. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +6 -13
  38. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  39. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +11 -13
  40. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  41. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  42. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  43. package/dist/lib/plugins/openapi/index.js +1 -0
  44. package/dist/lib/plugins/openapi/index.js.map +1 -1
  45. package/dist/vite/build.js +10 -8
  46. package/dist/vite/build.js.map +1 -1
  47. package/dist/vite/config.js +10 -0
  48. package/dist/vite/config.js.map +1 -1
  49. package/lib/{AuthenticationPlugin-DVLEc6cm.js → AuthenticationPlugin-D7G3me8L.js} +16 -16
  50. package/lib/AuthenticationPlugin-D7G3me8L.js.map +1 -0
  51. package/lib/{OperationList-c6V_vcgz.js → OperationList-BLdHAQ39.js} +1594 -1525
  52. package/lib/OperationList-BLdHAQ39.js.map +1 -0
  53. package/lib/assets/{worker-DV9Ecqy9.js → worker-Cbp2r2BQ.js} +26 -14
  54. package/lib/assets/{worker-DV9Ecqy9.js.map → worker-Cbp2r2BQ.js.map} +1 -1
  55. package/lib/{createServer-C4C0OO0m.js → createServer-Bf5_6o6G.js} +796 -784
  56. package/lib/{createServer-C4C0OO0m.js.map → createServer-Bf5_6o6G.js.map} +1 -1
  57. package/lib/{index-DkwDHnit.js → index-BNx95gkf.js} +5 -4
  58. package/lib/{index-DkwDHnit.js.map → index-BNx95gkf.js.map} +1 -1
  59. package/lib/zudoku.auth-clerk.js +80 -52
  60. package/lib/zudoku.auth-clerk.js.map +1 -1
  61. package/lib/zudoku.auth-openid.js +37 -37
  62. package/lib/zudoku.auth-openid.js.map +1 -1
  63. package/lib/zudoku.components.js +89 -85
  64. package/lib/zudoku.components.js.map +1 -1
  65. package/lib/zudoku.openapi-worker.js +1 -1
  66. package/lib/zudoku.plugin-openapi.js +1 -1
  67. package/package.json +4 -4
  68. package/src/lib/authentication/components/SignOut.tsx +2 -1
  69. package/src/lib/authentication/providers/clerk.tsx +38 -7
  70. package/src/lib/authentication/providers/openid.tsx +1 -1
  71. package/src/lib/components/navigation/SidebarBadge.tsx +13 -1
  72. package/src/lib/components/navigation/SidebarCategory.tsx +3 -7
  73. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -0
  74. package/src/lib/oas/graphql/index.ts +16 -7
  75. package/src/lib/oas/parser/upgrade/index.ts +19 -4
  76. package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
  77. package/src/lib/plugins/openapi/Endpoint.tsx +2 -0
  78. package/src/lib/plugins/openapi/ExampleDisplay.tsx +163 -0
  79. package/src/lib/plugins/openapi/OperationListItem.tsx +5 -3
  80. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
  81. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +11 -37
  82. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +49 -63
  83. package/src/lib/plugins/openapi/Sidecar.tsx +2 -4
  84. package/src/lib/plugins/openapi/index.tsx +1 -0
  85. package/lib/AuthenticationPlugin-DVLEc6cm.js.map +0 -1
  86. package/lib/OperationList-c6V_vcgz.js.map +0 -1
@@ -3,7 +3,7 @@ var Js = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var uu = (t, e, n) => e in t ? lu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var F = (t, e, n) => uu(t, typeof e != "symbol" ? e + "" : e, n), $r = (t, e, n) => e.has(t) || Js("Cannot " + n);
6
+ var x = (t, e, n) => uu(t, typeof e != "symbol" ? e + "" : e, n), $r = (t, e, n) => e.has(t) || Js("Cannot " + n);
7
7
  var c = (t, e, n) => ($r(t, e, "read from private field"), n ? n.call(t) : e.get(t)), D = (t, e, n) => e.has(t) ? Js("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), I = (t, e, n, i) => ($r(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), E = (t, e, n) => ($r(t, e, "access private method"), n);
8
8
  var nn = (t, e, n, i) => ({
9
9
  set _(r) {
@@ -33,8 +33,8 @@ function pu(t, e) {
33
33
  }
34
34
  return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
35
35
  }
36
- const gu = /* @__PURE__ */ new WeakMap(), Pr = Symbol("ENVELOP_IS_INTROSPECTION");
37
- function mu(t) {
36
+ const mu = /* @__PURE__ */ new WeakMap(), Pr = Symbol("ENVELOP_IS_INTROSPECTION");
37
+ function gu(t) {
38
38
  return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
39
39
  }
40
40
  function yu(t) {
@@ -101,11 +101,11 @@ function bu(t) {
101
101
  };
102
102
  }
103
103
  const Xs = (t) => (...e) => t(bu(e));
104
- function Ft(t) {
104
+ function xt(t) {
105
105
  return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
106
106
  }
107
107
  function Zs(t, e) {
108
- if (Ft(t.result))
108
+ if (xt(t.result))
109
109
  return { onNext: e };
110
110
  e({
111
111
  args: t.args,
@@ -252,7 +252,7 @@ function Tu({ plugins: t }) {
252
252
  throw new Error("Failed to parse document.");
253
253
  if (y instanceof Error)
254
254
  throw y;
255
- return gu.set(y, N.toString()), y;
255
+ return mu.set(y, N.toString()), y;
256
256
  } : () => i, h = u.validate.length ? (T) => (N, O, y, S, _) => {
257
257
  let $ = y ? [...y] : void 0, M = r, k = null;
258
258
  const j = T, re = [];
@@ -336,7 +336,7 @@ function Tu({ plugins: t }) {
336
336
  });
337
337
  throw _;
338
338
  }
339
- } : (T) => (N) => (N && Object.assign(T, N), T), m = u.subscribe.length, v = Ys(m ? async (T) => {
339
+ } : (T) => (N) => (N && Object.assign(T, N), T), g = u.subscribe.length, v = Ys(g ? async (T) => {
340
340
  let N = o;
341
341
  const O = [], y = [], S = T.contextValue || {};
342
342
  let _;
@@ -375,7 +375,7 @@ function Tu({ plugins: t }) {
375
375
  });
376
376
  j && (j.onNext && $.push(j.onNext), j.onEnd && M.push(j.onEnd));
377
377
  }
378
- return $.length && Ft(_) && (_ = Ks(_, async (k) => {
378
+ return $.length && xt(_) && (_ = Ks(_, async (k) => {
379
379
  for (const j of $)
380
380
  await j({
381
381
  args: T,
@@ -383,10 +383,10 @@ function Tu({ plugins: t }) {
383
383
  setResult: (re) => k = re
384
384
  });
385
385
  return k;
386
- })), M.length && Ft(_) && (_ = eo(_, () => {
386
+ })), M.length && xt(_) && (_ = eo(_, () => {
387
387
  for (const k of M)
388
388
  k();
389
- })), y.length && Ft(_) && (_ = Eu(_, (k) => {
389
+ })), y.length && xt(_) && (_ = Eu(_, (k) => {
390
390
  let j = k;
391
391
  for (const re of y)
392
392
  re({
@@ -397,7 +397,7 @@ function Tu({ plugins: t }) {
397
397
  });
398
398
  throw j;
399
399
  })), _;
400
- } : o), x = u.execute.length, b = Xs(x ? async (T) => {
400
+ } : o), F = u.execute.length, b = Xs(F ? async (T) => {
401
401
  let N = s, O;
402
402
  const y = [], S = T.contextValue || {};
403
403
  for (const M of u.execute) {
@@ -435,7 +435,7 @@ function Tu({ plugins: t }) {
435
435
  });
436
436
  k && (k.onNext && _.push(k.onNext), k.onEnd && $.push(k.onEnd));
437
437
  }
438
- return _.length && Ft(O) && (O = Ks(O, async (M) => {
438
+ return _.length && xt(O) && (O = Ks(O, async (M) => {
439
439
  for (const k of _)
440
440
  await k({
441
441
  args: T,
@@ -445,7 +445,7 @@ function Tu({ plugins: t }) {
445
445
  }
446
446
  });
447
447
  return M;
448
- })), $.length && Ft(O) && (O = eo(O, () => {
448
+ })), $.length && xt(O) && (O = eo(O, () => {
449
449
  for (const M of $)
450
450
  M();
451
451
  })), O;
@@ -496,7 +496,7 @@ const to = {
496
496
  };
497
497
  return {
498
498
  onParse({ extendContext: n, params: i }) {
499
- e.skipIntrospection && mu(i.source) && n({
499
+ e.skipIntrospection && gu(i.source) && n({
500
500
  [Pr]: !0
501
501
  });
502
502
  },
@@ -545,11 +545,11 @@ function Iu(t, e, n) {
545
545
  }
546
546
  const Nu = (t) => (e, n) => Na(e) ? e : Iu(n, e, t);
547
547
  var ya, ba;
548
- const Au = ((ba = (ya = globalThis.process) == null ? void 0 : ya.env) == null ? void 0 : ba.NODE_ENV) === "development", Fu = Nu(Au), xu = (t, e) => ({ result: n, setResult: i }) => {
548
+ const Au = ((ba = (ya = globalThis.process) == null ? void 0 : ya.env) == null ? void 0 : ba.NODE_ENV) === "development", xu = Nu(Au), Fu = (t, e) => ({ result: n, setResult: i }) => {
549
549
  n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
550
550
  };
551
551
  function Ru(t) {
552
- const e = (t == null ? void 0 : t.maskError) ?? Fu, n = (t == null ? void 0 : t.errorMessage) || _u, i = xu(e, n);
552
+ const e = (t == null ? void 0 : t.maskError) ?? xu, n = (t == null ? void 0 : t.errorMessage) || _u, i = Fu(e, n);
553
553
  return {
554
554
  onPluginInit(r) {
555
555
  r.registerContextErrorHandler(({ error: s, setError: o }) => {
@@ -629,23 +629,23 @@ function Yr(t, e) {
629
629
  };
630
630
  }
631
631
  function $u(t) {
632
- return Fa(
632
+ return xa(
633
633
  t.source,
634
634
  Yr(t.source, t.start)
635
635
  );
636
636
  }
637
- function Fa(t, e) {
637
+ function xa(t, e) {
638
638
  const n = t.locationOffset.column - 1, i = "".padStart(n) + t.body, r = e.line - 1, s = t.locationOffset.line - 1, o = e.line + s, a = e.line === 1 ? n : 0, l = e.column + a, u = `${t.name}:${o}:${l}
639
639
  `, f = i.split(/\r\n|[\n\r]/g), d = f[r];
640
640
  if (d.length > 120) {
641
- const h = Math.floor(l / 80), p = l % 80, m = [];
641
+ const h = Math.floor(l / 80), p = l % 80, g = [];
642
642
  for (let v = 0; v < d.length; v += 80)
643
- m.push(d.slice(v, v + 80));
643
+ g.push(d.slice(v, v + 80));
644
644
  return u + no([
645
- [`${o} |`, m[0]],
646
- ...m.slice(1, h + 1).map((v) => ["|", v]),
645
+ [`${o} |`, g[0]],
646
+ ...g.slice(1, h + 1).map((v) => ["|", v]),
647
647
  ["|", "^".padStart(p)],
648
- ["|", m[h + 1]]
648
+ ["|", g[h + 1]]
649
649
  ]);
650
650
  }
651
651
  return u + no([
@@ -672,7 +672,7 @@ function Pu(t) {
672
672
  extensions: t[5]
673
673
  } : e;
674
674
  }
675
- let A = class xa extends Error {
675
+ let A = class Fa extends Error {
676
676
  /**
677
677
  * An array of `{ line, column }` locations within the source GraphQL document
678
678
  * which correspond to this error.
@@ -718,9 +718,9 @@ let A = class xa extends Error {
718
718
  Array.isArray(o) ? o : o ? [o] : void 0
719
719
  );
720
720
  const h = io(
721
- (i = this.nodes) === null || i === void 0 ? void 0 : i.map((m) => m.loc).filter((m) => m != null)
721
+ (i = this.nodes) === null || i === void 0 ? void 0 : i.map((g) => g.loc).filter((g) => g != null)
722
722
  );
723
- this.source = a ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? (h == null ? void 0 : h.map((m) => m.start)), this.locations = l && a ? l.map((m) => Yr(a, m)) : h == null ? void 0 : h.map((m) => Yr(m.source, m.start));
723
+ this.source = a ?? (h == null || (r = h[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? (h == null ? void 0 : h.map((g) => g.start)), this.locations = l && a ? l.map((g) => Yr(a, g)) : h == null ? void 0 : h.map((g) => Yr(g.source, g.start));
724
724
  const p = Lt(
725
725
  f == null ? void 0 : f.extensions
726
726
  ) ? f == null ? void 0 : f.extensions : void 0;
@@ -748,7 +748,7 @@ let A = class xa extends Error {
748
748
  value: f.stack,
749
749
  writable: !0,
750
750
  configurable: !0
751
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, xa) : Object.defineProperty(this, "stack", {
751
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fa) : Object.defineProperty(this, "stack", {
752
752
  value: Error().stack,
753
753
  writable: !0,
754
754
  configurable: !0
@@ -768,7 +768,7 @@ let A = class xa extends Error {
768
768
  for (const n of this.locations)
769
769
  e += `
770
770
 
771
- ` + Fa(this.source, n);
771
+ ` + xa(this.source, n);
772
772
  return e;
773
773
  }
774
774
  toJSON() {
@@ -945,10 +945,10 @@ var U;
945
945
  (function(t) {
946
946
  t.QUERY = "QUERY", t.MUTATION = "MUTATION", t.SUBSCRIPTION = "SUBSCRIPTION", t.FIELD = "FIELD", t.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", t.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", t.INLINE_FRAGMENT = "INLINE_FRAGMENT", t.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", t.SCHEMA = "SCHEMA", t.SCALAR = "SCALAR", t.OBJECT = "OBJECT", t.FIELD_DEFINITION = "FIELD_DEFINITION", t.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", t.INTERFACE = "INTERFACE", t.UNION = "UNION", t.ENUM = "ENUM", t.ENUM_VALUE = "ENUM_VALUE", t.INPUT_OBJECT = "INPUT_OBJECT", t.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
947
947
  })(U || (U = {}));
948
- var g;
948
+ var m;
949
949
  (function(t) {
950
950
  t.NAME = "Name", t.DOCUMENT = "Document", t.OPERATION_DEFINITION = "OperationDefinition", t.VARIABLE_DEFINITION = "VariableDefinition", t.SELECTION_SET = "SelectionSet", t.FIELD = "Field", t.ARGUMENT = "Argument", t.FRAGMENT_SPREAD = "FragmentSpread", t.INLINE_FRAGMENT = "InlineFragment", t.FRAGMENT_DEFINITION = "FragmentDefinition", t.VARIABLE = "Variable", t.INT = "IntValue", t.FLOAT = "FloatValue", t.STRING = "StringValue", t.BOOLEAN = "BooleanValue", t.NULL = "NullValue", t.ENUM = "EnumValue", t.LIST = "ListValue", t.OBJECT = "ObjectValue", t.OBJECT_FIELD = "ObjectField", t.DIRECTIVE = "Directive", t.NAMED_TYPE = "NamedType", t.LIST_TYPE = "ListType", t.NON_NULL_TYPE = "NonNullType", t.SCHEMA_DEFINITION = "SchemaDefinition", t.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", t.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", t.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", t.FIELD_DEFINITION = "FieldDefinition", t.INPUT_VALUE_DEFINITION = "InputValueDefinition", t.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", t.UNION_TYPE_DEFINITION = "UnionTypeDefinition", t.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", t.ENUM_VALUE_DEFINITION = "EnumValueDefinition", t.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", t.DIRECTIVE_DEFINITION = "DirectiveDefinition", t.SCHEMA_EXTENSION = "SchemaExtension", t.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", t.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", t.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", t.UNION_TYPE_EXTENSION = "UnionTypeExtension", t.ENUM_TYPE_EXTENSION = "EnumTypeExtension", t.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
951
- })(g || (g = {}));
951
+ })(m || (m = {}));
952
952
  function Xr(t) {
953
953
  return t === 9 || t === 32;
954
954
  }
@@ -1569,7 +1569,7 @@ class uc {
1569
1569
  parseName() {
1570
1570
  const e = this.expectToken(w.NAME);
1571
1571
  return this.node(e, {
1572
- kind: g.NAME,
1572
+ kind: m.NAME,
1573
1573
  value: e.value
1574
1574
  });
1575
1575
  }
@@ -1579,7 +1579,7 @@ class uc {
1579
1579
  */
1580
1580
  parseDocument() {
1581
1581
  return this.node(this._lexer.token, {
1582
- kind: g.DOCUMENT,
1582
+ kind: m.DOCUMENT,
1583
1583
  definitions: this.many(
1584
1584
  w.SOF,
1585
1585
  this.parseDefinition,
@@ -1662,7 +1662,7 @@ class uc {
1662
1662
  const e = this._lexer.token;
1663
1663
  if (this.peek(w.BRACE_L))
1664
1664
  return this.node(e, {
1665
- kind: g.OPERATION_DEFINITION,
1665
+ kind: m.OPERATION_DEFINITION,
1666
1666
  operation: Le.QUERY,
1667
1667
  name: void 0,
1668
1668
  variableDefinitions: [],
@@ -1672,7 +1672,7 @@ class uc {
1672
1672
  const n = this.parseOperationType();
1673
1673
  let i;
1674
1674
  return this.peek(w.NAME) && (i = this.parseName()), this.node(e, {
1675
- kind: g.OPERATION_DEFINITION,
1675
+ kind: m.OPERATION_DEFINITION,
1676
1676
  operation: n,
1677
1677
  name: i,
1678
1678
  variableDefinitions: this.parseVariableDefinitions(),
@@ -1710,7 +1710,7 @@ class uc {
1710
1710
  */
1711
1711
  parseVariableDefinition() {
1712
1712
  return this.node(this._lexer.token, {
1713
- kind: g.VARIABLE_DEFINITION,
1713
+ kind: m.VARIABLE_DEFINITION,
1714
1714
  variable: this.parseVariable(),
1715
1715
  type: (this.expectToken(w.COLON), this.parseTypeReference()),
1716
1716
  defaultValue: this.expectOptionalToken(w.EQUALS) ? this.parseConstValueLiteral() : void 0,
@@ -1723,7 +1723,7 @@ class uc {
1723
1723
  parseVariable() {
1724
1724
  const e = this._lexer.token;
1725
1725
  return this.expectToken(w.DOLLAR), this.node(e, {
1726
- kind: g.VARIABLE,
1726
+ kind: m.VARIABLE,
1727
1727
  name: this.parseName()
1728
1728
  });
1729
1729
  }
@@ -1734,7 +1734,7 @@ class uc {
1734
1734
  */
1735
1735
  parseSelectionSet() {
1736
1736
  return this.node(this._lexer.token, {
1737
- kind: g.SELECTION_SET,
1737
+ kind: m.SELECTION_SET,
1738
1738
  selections: this.many(
1739
1739
  w.BRACE_L,
1740
1740
  this.parseSelection,
@@ -1760,7 +1760,7 @@ class uc {
1760
1760
  const e = this._lexer.token, n = this.parseName();
1761
1761
  let i, r;
1762
1762
  return this.expectOptionalToken(w.COLON) ? (i = n, r = this.parseName()) : r = n, this.node(e, {
1763
- kind: g.FIELD,
1763
+ kind: m.FIELD,
1764
1764
  alias: i,
1765
1765
  name: r,
1766
1766
  arguments: this.parseArguments(!1),
@@ -1781,7 +1781,7 @@ class uc {
1781
1781
  parseArgument(e = !1) {
1782
1782
  const n = this._lexer.token, i = this.parseName();
1783
1783
  return this.expectToken(w.COLON), this.node(n, {
1784
- kind: g.ARGUMENT,
1784
+ kind: m.ARGUMENT,
1785
1785
  name: i,
1786
1786
  value: this.parseValueLiteral(e)
1787
1787
  });
@@ -1802,11 +1802,11 @@ class uc {
1802
1802
  this.expectToken(w.SPREAD);
1803
1803
  const n = this.expectOptionalKeyword("on");
1804
1804
  return !n && this.peek(w.NAME) ? this.node(e, {
1805
- kind: g.FRAGMENT_SPREAD,
1805
+ kind: m.FRAGMENT_SPREAD,
1806
1806
  name: this.parseFragmentName(),
1807
1807
  directives: this.parseDirectives(!1)
1808
1808
  }) : this.node(e, {
1809
- kind: g.INLINE_FRAGMENT,
1809
+ kind: m.INLINE_FRAGMENT,
1810
1810
  typeCondition: n ? this.parseNamedType() : void 0,
1811
1811
  directives: this.parseDirectives(!1),
1812
1812
  selectionSet: this.parseSelectionSet()
@@ -1821,14 +1821,14 @@ class uc {
1821
1821
  parseFragmentDefinition() {
1822
1822
  const e = this._lexer.token;
1823
1823
  return this.expectKeyword("fragment"), this._options.allowLegacyFragmentVariables === !0 ? this.node(e, {
1824
- kind: g.FRAGMENT_DEFINITION,
1824
+ kind: m.FRAGMENT_DEFINITION,
1825
1825
  name: this.parseFragmentName(),
1826
1826
  variableDefinitions: this.parseVariableDefinitions(),
1827
1827
  typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
1828
1828
  directives: this.parseDirectives(!1),
1829
1829
  selectionSet: this.parseSelectionSet()
1830
1830
  }) : this.node(e, {
1831
- kind: g.FRAGMENT_DEFINITION,
1831
+ kind: m.FRAGMENT_DEFINITION,
1832
1832
  name: this.parseFragmentName(),
1833
1833
  typeCondition: (this.expectKeyword("on"), this.parseNamedType()),
1834
1834
  directives: this.parseDirectives(!1),
@@ -1871,12 +1871,12 @@ class uc {
1871
1871
  return this.parseObject(e);
1872
1872
  case w.INT:
1873
1873
  return this.advanceLexer(), this.node(n, {
1874
- kind: g.INT,
1874
+ kind: m.INT,
1875
1875
  value: n.value
1876
1876
  });
1877
1877
  case w.FLOAT:
1878
1878
  return this.advanceLexer(), this.node(n, {
1879
- kind: g.FLOAT,
1879
+ kind: m.FLOAT,
1880
1880
  value: n.value
1881
1881
  });
1882
1882
  case w.STRING:
@@ -1886,21 +1886,21 @@ class uc {
1886
1886
  switch (this.advanceLexer(), n.value) {
1887
1887
  case "true":
1888
1888
  return this.node(n, {
1889
- kind: g.BOOLEAN,
1889
+ kind: m.BOOLEAN,
1890
1890
  value: !0
1891
1891
  });
1892
1892
  case "false":
1893
1893
  return this.node(n, {
1894
- kind: g.BOOLEAN,
1894
+ kind: m.BOOLEAN,
1895
1895
  value: !1
1896
1896
  });
1897
1897
  case "null":
1898
1898
  return this.node(n, {
1899
- kind: g.NULL
1899
+ kind: m.NULL
1900
1900
  });
1901
1901
  default:
1902
1902
  return this.node(n, {
1903
- kind: g.ENUM,
1903
+ kind: m.ENUM,
1904
1904
  value: n.value
1905
1905
  });
1906
1906
  }
@@ -1926,7 +1926,7 @@ class uc {
1926
1926
  parseStringLiteral() {
1927
1927
  const e = this._lexer.token;
1928
1928
  return this.advanceLexer(), this.node(e, {
1929
- kind: g.STRING,
1929
+ kind: m.STRING,
1930
1930
  value: e.value,
1931
1931
  block: e.kind === w.BLOCK_STRING
1932
1932
  });
@@ -1939,7 +1939,7 @@ class uc {
1939
1939
  parseList(e) {
1940
1940
  const n = () => this.parseValueLiteral(e);
1941
1941
  return this.node(this._lexer.token, {
1942
- kind: g.LIST,
1942
+ kind: m.LIST,
1943
1943
  values: this.any(w.BRACKET_L, n, w.BRACKET_R)
1944
1944
  });
1945
1945
  }
@@ -1953,7 +1953,7 @@ class uc {
1953
1953
  parseObject(e) {
1954
1954
  const n = () => this.parseObjectField(e);
1955
1955
  return this.node(this._lexer.token, {
1956
- kind: g.OBJECT,
1956
+ kind: m.OBJECT,
1957
1957
  fields: this.any(w.BRACE_L, n, w.BRACE_R)
1958
1958
  });
1959
1959
  }
@@ -1963,7 +1963,7 @@ class uc {
1963
1963
  parseObjectField(e) {
1964
1964
  const n = this._lexer.token, i = this.parseName();
1965
1965
  return this.expectToken(w.COLON), this.node(n, {
1966
- kind: g.OBJECT_FIELD,
1966
+ kind: m.OBJECT_FIELD,
1967
1967
  name: i,
1968
1968
  value: this.parseValueLiteral(e)
1969
1969
  });
@@ -1989,7 +1989,7 @@ class uc {
1989
1989
  parseDirective(e) {
1990
1990
  const n = this._lexer.token;
1991
1991
  return this.expectToken(w.AT), this.node(n, {
1992
- kind: g.DIRECTIVE,
1992
+ kind: m.DIRECTIVE,
1993
1993
  name: this.parseName(),
1994
1994
  arguments: this.parseArguments(e)
1995
1995
  });
@@ -2007,13 +2007,13 @@ class uc {
2007
2007
  if (this.expectOptionalToken(w.BRACKET_L)) {
2008
2008
  const i = this.parseTypeReference();
2009
2009
  this.expectToken(w.BRACKET_R), n = this.node(e, {
2010
- kind: g.LIST_TYPE,
2010
+ kind: m.LIST_TYPE,
2011
2011
  type: i
2012
2012
  });
2013
2013
  } else
2014
2014
  n = this.parseNamedType();
2015
2015
  return this.expectOptionalToken(w.BANG) ? this.node(e, {
2016
- kind: g.NON_NULL_TYPE,
2016
+ kind: m.NON_NULL_TYPE,
2017
2017
  type: n
2018
2018
  }) : n;
2019
2019
  }
@@ -2022,7 +2022,7 @@ class uc {
2022
2022
  */
2023
2023
  parseNamedType() {
2024
2024
  return this.node(this._lexer.token, {
2025
- kind: g.NAMED_TYPE,
2025
+ kind: m.NAMED_TYPE,
2026
2026
  name: this.parseName()
2027
2027
  });
2028
2028
  }
@@ -2051,7 +2051,7 @@ class uc {
2051
2051
  w.BRACE_R
2052
2052
  );
2053
2053
  return this.node(e, {
2054
- kind: g.SCHEMA_DEFINITION,
2054
+ kind: m.SCHEMA_DEFINITION,
2055
2055
  description: n,
2056
2056
  directives: i,
2057
2057
  operationTypes: r
@@ -2065,7 +2065,7 @@ class uc {
2065
2065
  this.expectToken(w.COLON);
2066
2066
  const i = this.parseNamedType();
2067
2067
  return this.node(e, {
2068
- kind: g.OPERATION_TYPE_DEFINITION,
2068
+ kind: m.OPERATION_TYPE_DEFINITION,
2069
2069
  operation: n,
2070
2070
  type: i
2071
2071
  });
@@ -2078,7 +2078,7 @@ class uc {
2078
2078
  this.expectKeyword("scalar");
2079
2079
  const i = this.parseName(), r = this.parseConstDirectives();
2080
2080
  return this.node(e, {
2081
- kind: g.SCALAR_TYPE_DEFINITION,
2081
+ kind: m.SCALAR_TYPE_DEFINITION,
2082
2082
  description: n,
2083
2083
  name: i,
2084
2084
  directives: r
@@ -2094,7 +2094,7 @@ class uc {
2094
2094
  this.expectKeyword("type");
2095
2095
  const i = this.parseName(), r = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
2096
2096
  return this.node(e, {
2097
- kind: g.OBJECT_TYPE_DEFINITION,
2097
+ kind: m.OBJECT_TYPE_DEFINITION,
2098
2098
  description: n,
2099
2099
  name: i,
2100
2100
  interfaces: r,
@@ -2131,7 +2131,7 @@ class uc {
2131
2131
  this.expectToken(w.COLON);
2132
2132
  const s = this.parseTypeReference(), o = this.parseConstDirectives();
2133
2133
  return this.node(e, {
2134
- kind: g.FIELD_DEFINITION,
2134
+ kind: m.FIELD_DEFINITION,
2135
2135
  description: n,
2136
2136
  name: i,
2137
2137
  arguments: r,
@@ -2161,7 +2161,7 @@ class uc {
2161
2161
  this.expectOptionalToken(w.EQUALS) && (s = this.parseConstValueLiteral());
2162
2162
  const o = this.parseConstDirectives();
2163
2163
  return this.node(e, {
2164
- kind: g.INPUT_VALUE_DEFINITION,
2164
+ kind: m.INPUT_VALUE_DEFINITION,
2165
2165
  description: n,
2166
2166
  name: i,
2167
2167
  type: r,
@@ -2178,7 +2178,7 @@ class uc {
2178
2178
  this.expectKeyword("interface");
2179
2179
  const i = this.parseName(), r = this.parseImplementsInterfaces(), s = this.parseConstDirectives(), o = this.parseFieldsDefinition();
2180
2180
  return this.node(e, {
2181
- kind: g.INTERFACE_TYPE_DEFINITION,
2181
+ kind: m.INTERFACE_TYPE_DEFINITION,
2182
2182
  description: n,
2183
2183
  name: i,
2184
2184
  interfaces: r,
@@ -2195,7 +2195,7 @@ class uc {
2195
2195
  this.expectKeyword("union");
2196
2196
  const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseUnionMemberTypes();
2197
2197
  return this.node(e, {
2198
- kind: g.UNION_TYPE_DEFINITION,
2198
+ kind: m.UNION_TYPE_DEFINITION,
2199
2199
  description: n,
2200
2200
  name: i,
2201
2201
  directives: r,
@@ -2219,7 +2219,7 @@ class uc {
2219
2219
  this.expectKeyword("enum");
2220
2220
  const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseEnumValuesDefinition();
2221
2221
  return this.node(e, {
2222
- kind: g.ENUM_TYPE_DEFINITION,
2222
+ kind: m.ENUM_TYPE_DEFINITION,
2223
2223
  description: n,
2224
2224
  name: i,
2225
2225
  directives: r,
@@ -2244,7 +2244,7 @@ class uc {
2244
2244
  parseEnumValueDefinition() {
2245
2245
  const e = this._lexer.token, n = this.parseDescription(), i = this.parseEnumValueName(), r = this.parseConstDirectives();
2246
2246
  return this.node(e, {
2247
- kind: g.ENUM_VALUE_DEFINITION,
2247
+ kind: m.ENUM_VALUE_DEFINITION,
2248
2248
  description: n,
2249
2249
  name: i,
2250
2250
  directives: r
@@ -2273,7 +2273,7 @@ class uc {
2273
2273
  this.expectKeyword("input");
2274
2274
  const i = this.parseName(), r = this.parseConstDirectives(), s = this.parseInputFieldsDefinition();
2275
2275
  return this.node(e, {
2276
- kind: g.INPUT_OBJECT_TYPE_DEFINITION,
2276
+ kind: m.INPUT_OBJECT_TYPE_DEFINITION,
2277
2277
  description: n,
2278
2278
  name: i,
2279
2279
  directives: r,
@@ -2344,7 +2344,7 @@ class uc {
2344
2344
  if (n.length === 0 && i.length === 0)
2345
2345
  throw this.unexpected();
2346
2346
  return this.node(e, {
2347
- kind: g.SCHEMA_EXTENSION,
2347
+ kind: m.SCHEMA_EXTENSION,
2348
2348
  directives: n,
2349
2349
  operationTypes: i
2350
2350
  });
@@ -2360,7 +2360,7 @@ class uc {
2360
2360
  if (i.length === 0)
2361
2361
  throw this.unexpected();
2362
2362
  return this.node(e, {
2363
- kind: g.SCALAR_TYPE_EXTENSION,
2363
+ kind: m.SCALAR_TYPE_EXTENSION,
2364
2364
  name: n,
2365
2365
  directives: i
2366
2366
  });
@@ -2378,7 +2378,7 @@ class uc {
2378
2378
  if (i.length === 0 && r.length === 0 && s.length === 0)
2379
2379
  throw this.unexpected();
2380
2380
  return this.node(e, {
2381
- kind: g.OBJECT_TYPE_EXTENSION,
2381
+ kind: m.OBJECT_TYPE_EXTENSION,
2382
2382
  name: n,
2383
2383
  interfaces: i,
2384
2384
  directives: r,
@@ -2398,7 +2398,7 @@ class uc {
2398
2398
  if (i.length === 0 && r.length === 0 && s.length === 0)
2399
2399
  throw this.unexpected();
2400
2400
  return this.node(e, {
2401
- kind: g.INTERFACE_TYPE_EXTENSION,
2401
+ kind: m.INTERFACE_TYPE_EXTENSION,
2402
2402
  name: n,
2403
2403
  interfaces: i,
2404
2404
  directives: r,
@@ -2417,7 +2417,7 @@ class uc {
2417
2417
  if (i.length === 0 && r.length === 0)
2418
2418
  throw this.unexpected();
2419
2419
  return this.node(e, {
2420
- kind: g.UNION_TYPE_EXTENSION,
2420
+ kind: m.UNION_TYPE_EXTENSION,
2421
2421
  name: n,
2422
2422
  directives: i,
2423
2423
  types: r
@@ -2435,7 +2435,7 @@ class uc {
2435
2435
  if (i.length === 0 && r.length === 0)
2436
2436
  throw this.unexpected();
2437
2437
  return this.node(e, {
2438
- kind: g.ENUM_TYPE_EXTENSION,
2438
+ kind: m.ENUM_TYPE_EXTENSION,
2439
2439
  name: n,
2440
2440
  directives: i,
2441
2441
  values: r
@@ -2453,7 +2453,7 @@ class uc {
2453
2453
  if (i.length === 0 && r.length === 0)
2454
2454
  throw this.unexpected();
2455
2455
  return this.node(e, {
2456
- kind: g.INPUT_OBJECT_TYPE_EXTENSION,
2456
+ kind: m.INPUT_OBJECT_TYPE_EXTENSION,
2457
2457
  name: n,
2458
2458
  directives: i,
2459
2459
  fields: r
@@ -2472,7 +2472,7 @@ class uc {
2472
2472
  this.expectKeyword("on");
2473
2473
  const o = this.parseDirectiveLocations();
2474
2474
  return this.node(e, {
2475
- kind: g.DIRECTIVE_DEFINITION,
2475
+ kind: m.DIRECTIVE_DEFINITION,
2476
2476
  description: n,
2477
2477
  name: i,
2478
2478
  arguments: r,
@@ -2735,7 +2735,7 @@ const Zr = 48, fc = 57;
2735
2735
  function ki(t) {
2736
2736
  return !isNaN(t) && Zr <= t && t <= fc;
2737
2737
  }
2738
- function gn(t, e) {
2738
+ function mn(t, e) {
2739
2739
  const n = /* @__PURE__ */ Object.create(null), i = new dc(t), r = Math.floor(t.length * 0.4) + 1;
2740
2740
  for (const s of e) {
2741
2741
  const o = i.measure(s, r);
@@ -2774,21 +2774,21 @@ class dc {
2774
2774
  for (let f = 1; f <= o; f++) {
2775
2775
  const d = l[(f - 1) % 3], h = l[f % 3];
2776
2776
  let p = h[0] = f;
2777
- for (let m = 1; m <= a; m++) {
2778
- const v = r[f - 1] === s[m - 1] ? 0 : 1;
2779
- let x = Math.min(
2780
- d[m] + 1,
2777
+ for (let g = 1; g <= a; g++) {
2778
+ const v = r[f - 1] === s[g - 1] ? 0 : 1;
2779
+ let F = Math.min(
2780
+ d[g] + 1,
2781
2781
  // delete
2782
- h[m - 1] + 1,
2782
+ h[g - 1] + 1,
2783
2783
  // insert
2784
- d[m - 1] + v
2784
+ d[g - 1] + v
2785
2785
  // substitute
2786
2786
  );
2787
- if (f > 1 && m > 1 && r[f - 1] === s[m - 2] && r[f - 2] === s[m - 1]) {
2788
- const b = l[(f - 2) % 3][m - 2];
2789
- x = Math.min(x, b + 1);
2787
+ if (f > 1 && g > 1 && r[f - 1] === s[g - 2] && r[f - 2] === s[g - 1]) {
2788
+ const b = l[(f - 2) % 3][g - 2];
2789
+ F = Math.min(F, b + 1);
2790
2790
  }
2791
- x < p && (p = x), h[m] = x;
2791
+ F < p && (p = F), h[g] = F;
2792
2792
  }
2793
2793
  if (p > n)
2794
2794
  return;
@@ -2814,13 +2814,13 @@ function et(t) {
2814
2814
  return e;
2815
2815
  }
2816
2816
  function hc(t) {
2817
- return `"${t.replace(pc, gc)}"`;
2817
+ return `"${t.replace(pc, mc)}"`;
2818
2818
  }
2819
2819
  const pc = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2820
- function gc(t) {
2821
- return mc[t.charCodeAt(0)];
2820
+ function mc(t) {
2821
+ return gc[t.charCodeAt(0)];
2822
2822
  }
2823
- const mc = [
2823
+ const gc = [
2824
2824
  "\\u0000",
2825
2825
  "\\u0001",
2826
2826
  "\\u0002",
@@ -2989,7 +2989,7 @@ const mc = [
2989
2989
  ], ri = Object.freeze({});
2990
2990
  function Is(t, e, n = Ca) {
2991
2991
  const i = /* @__PURE__ */ new Map();
2992
- for (const b of Object.values(g))
2992
+ for (const b of Object.values(m))
2993
2993
  i.set(b, dr(e, b));
2994
2994
  let r, s = Array.isArray(t), o = [t], a = -1, l = [], u = t, f, d;
2995
2995
  const h = [], p = [];
@@ -3021,9 +3021,9 @@ function Is(t, e, n = Ca) {
3021
3021
  }
3022
3022
  let N;
3023
3023
  if (!Array.isArray(u)) {
3024
- var m, v;
3024
+ var g, v;
3025
3025
  Kr(u) || H(!1, `Invalid AST Node: ${L(u)}.`);
3026
- const O = b ? (m = i.get(u.kind)) === null || m === void 0 ? void 0 : m.leave : (v = i.get(u.kind)) === null || v === void 0 ? void 0 : v.enter;
3026
+ const O = b ? (g = i.get(u.kind)) === null || g === void 0 ? void 0 : g.leave : (v = i.get(u.kind)) === null || v === void 0 ? void 0 : v.enter;
3027
3027
  if (N = O == null ? void 0 : O.call(e, u, f, d, h, p), N === ri)
3028
3028
  break;
3029
3029
  if (N === !1) {
@@ -3042,21 +3042,21 @@ function Is(t, e, n = Ca) {
3042
3042
  if (N === void 0 && T && l.push([f, u]), b)
3043
3043
  h.pop();
3044
3044
  else {
3045
- var x;
3045
+ var F;
3046
3046
  r = {
3047
3047
  inArray: s,
3048
3048
  index: a,
3049
3049
  keys: o,
3050
3050
  edits: l,
3051
3051
  prev: r
3052
- }, s = Array.isArray(u), o = s ? u : (x = n[u.kind]) !== null && x !== void 0 ? x : [], a = -1, l = [], d && p.push(d), d = u;
3052
+ }, s = Array.isArray(u), o = s ? u : (F = n[u.kind]) !== null && F !== void 0 ? F : [], a = -1, l = [], d && p.push(d), d = u;
3053
3053
  }
3054
3054
  } while (r !== void 0);
3055
3055
  return l.length !== 0 ? l[l.length - 1][1] : t;
3056
3056
  }
3057
3057
  function yc(t) {
3058
3058
  const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
3059
- for (const i of Object.values(g)) {
3059
+ for (const i of Object.values(m)) {
3060
3060
  let r = !1;
3061
3061
  const s = new Array(t.length).fill(void 0), o = new Array(t.length).fill(void 0);
3062
3062
  for (let l = 0; l < t.length; ++l) {
@@ -3371,27 +3371,27 @@ function ao(t) {
3371
3371
  }
3372
3372
  function es(t, e) {
3373
3373
  switch (t.kind) {
3374
- case g.NULL:
3374
+ case m.NULL:
3375
3375
  return null;
3376
- case g.INT:
3376
+ case m.INT:
3377
3377
  return parseInt(t.value, 10);
3378
- case g.FLOAT:
3378
+ case m.FLOAT:
3379
3379
  return parseFloat(t.value);
3380
- case g.STRING:
3381
- case g.ENUM:
3382
- case g.BOOLEAN:
3380
+ case m.STRING:
3381
+ case m.ENUM:
3382
+ case m.BOOLEAN:
3383
3383
  return t.value;
3384
- case g.LIST:
3384
+ case m.LIST:
3385
3385
  return t.values.map(
3386
3386
  (n) => es(n, e)
3387
3387
  );
3388
- case g.OBJECT:
3388
+ case m.OBJECT:
3389
3389
  return Or(
3390
3390
  t.fields,
3391
3391
  (n) => n.name.value,
3392
3392
  (n) => es(n.value, e)
3393
3393
  );
3394
- case g.VARIABLE:
3394
+ case m.VARIABLE:
3395
3395
  return e == null ? void 0 : e[t.name.value];
3396
3396
  }
3397
3397
  }
@@ -3415,9 +3415,9 @@ function Tc(t) {
3415
3415
  return At(t);
3416
3416
  }
3417
3417
  function Ns(t) {
3418
- return mn(t) || ee(t) || oe(t) || Ot(t) || It(t) || Ae(t) || ve(t) || Q(t);
3418
+ return gn(t) || ee(t) || oe(t) || Ot(t) || It(t) || Ae(t) || ve(t) || Q(t);
3419
3419
  }
3420
- function mn(t) {
3420
+ function gn(t) {
3421
3421
  return Nt(t, _t);
3422
3422
  }
3423
3423
  function ee(t) {
@@ -3433,7 +3433,7 @@ function It(t) {
3433
3433
  return Nt(t, Vn);
3434
3434
  }
3435
3435
  function Ae(t) {
3436
- return Nt(t, gi);
3436
+ return Nt(t, mi);
3437
3437
  }
3438
3438
  function ve(t) {
3439
3439
  return Nt(t, _e);
@@ -3442,13 +3442,13 @@ function Q(t) {
3442
3442
  return Nt(t, B);
3443
3443
  }
3444
3444
  function vt(t) {
3445
- return mn(t) || It(t) || Ae(t) || As(t) && vt(t.ofType);
3445
+ return gn(t) || It(t) || Ae(t) || As(t) && vt(t.ofType);
3446
3446
  }
3447
3447
  function pi(t) {
3448
- return mn(t) || ee(t) || oe(t) || Ot(t) || It(t) || As(t) && pi(t.ofType);
3448
+ return gn(t) || ee(t) || oe(t) || Ot(t) || It(t) || As(t) && pi(t.ofType);
3449
3449
  }
3450
3450
  function Xt(t) {
3451
- return mn(t) || It(t);
3451
+ return gn(t) || It(t);
3452
3452
  }
3453
3453
  function Zt(t) {
3454
3454
  return ee(t) || oe(t) || Ot(t);
@@ -3498,7 +3498,7 @@ function Ua(t) {
3498
3498
  return Q(t) ? t.ofType : t;
3499
3499
  }
3500
3500
  function Sc(t) {
3501
- return mn(t) || ee(t) || oe(t) || Ot(t) || It(t) || Ae(t);
3501
+ return gn(t) || ee(t) || oe(t) || Ot(t) || It(t) || Ae(t);
3502
3502
  }
3503
3503
  function St(t) {
3504
3504
  if (t) {
@@ -3600,12 +3600,12 @@ function Ga(t) {
3600
3600
  }
3601
3601
  function Ba(t) {
3602
3602
  const e = qa(t.fields);
3603
- return Fn(e) || H(
3603
+ return xn(e) || H(
3604
3604
  !1,
3605
3605
  `${t.name} fields must be an object with field names as keys or a function which returns such an object.`
3606
3606
  ), Ir(e, (n, i) => {
3607
3607
  var r;
3608
- Fn(n) || H(
3608
+ xn(n) || H(
3609
3609
  !1,
3610
3610
  `${t.name}.${i} field config must be an object.`
3611
3611
  ), n.resolve == null || typeof n.resolve == "function" || H(
@@ -3613,7 +3613,7 @@ function Ba(t) {
3613
3613
  `${t.name}.${i} field resolver must be a function if provided, but got: ${L(n.resolve)}.`
3614
3614
  );
3615
3615
  const s = (r = n.args) !== null && r !== void 0 ? r : {};
3616
- return Fn(s) || H(
3616
+ return xn(s) || H(
3617
3617
  !1,
3618
3618
  `${t.name}.${i} args must be an object with argument names as keys.`
3619
3619
  ), {
@@ -3640,7 +3640,7 @@ function za(t) {
3640
3640
  astNode: n.astNode
3641
3641
  }));
3642
3642
  }
3643
- function Fn(t) {
3643
+ function xn(t) {
3644
3644
  return Lt(t) && !Array.isArray(t);
3645
3645
  }
3646
3646
  function Qa(t) {
@@ -3788,7 +3788,7 @@ class Vn {
3788
3788
  return n.value;
3789
3789
  }
3790
3790
  parseLiteral(e, n) {
3791
- if (e.kind !== g.ENUM) {
3791
+ if (e.kind !== m.ENUM) {
3792
3792
  const r = se(e);
3793
3793
  throw new A(
3794
3794
  `Enum "${this.name}" cannot represent non-enum value: ${r}.` + Di(this, r),
@@ -3838,14 +3838,14 @@ class Vn {
3838
3838
  }
3839
3839
  }
3840
3840
  function Di(t, e) {
3841
- const n = t.getValues().map((r) => r.name), i = gn(e, n);
3841
+ const n = t.getValues().map((r) => r.name), i = mn(e, n);
3842
3842
  return Kt("the enum value", i);
3843
3843
  }
3844
3844
  function lo(t, e) {
3845
- return Fn(e) || H(
3845
+ return xn(e) || H(
3846
3846
  !1,
3847
3847
  `${t} values must be an object with value names as keys.`
3848
- ), Object.entries(e).map(([n, i]) => (Fn(i) || H(
3848
+ ), Object.entries(e).map(([n, i]) => (xn(i) || H(
3849
3849
  !1,
3850
3850
  `${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${L(i)}.`
3851
3851
  ), {
@@ -3857,7 +3857,7 @@ function lo(t, e) {
3857
3857
  astNode: i.astNode
3858
3858
  }));
3859
3859
  }
3860
- class gi {
3860
+ class mi {
3861
3861
  constructor(e) {
3862
3862
  var n, i;
3863
3863
  this.name = At(e.name), this.description = e.description, this.extensions = et(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (i = e.isOneOf) !== null && i !== void 0 ? i : !1, this._fields = _c.bind(void 0, e);
@@ -3896,7 +3896,7 @@ class gi {
3896
3896
  }
3897
3897
  function _c(t) {
3898
3898
  const e = qa(t.fields);
3899
- return Fn(e) || H(
3899
+ return xn(e) || H(
3900
3900
  !1,
3901
3901
  `${t.name} fields must be an object with field names as keys or a function which returns such an object.`
3902
3902
  ), Ir(e, (n, i) => (!("resolve" in n) || H(
@@ -3918,8 +3918,8 @@ function Ha(t) {
3918
3918
  function ts(t, e) {
3919
3919
  return t === e ? !0 : Q(t) && Q(e) || ve(t) && ve(e) ? ts(t.ofType, e.ofType) : !1;
3920
3920
  }
3921
- function xn(t, e, n) {
3922
- return e === n ? !0 : Q(n) ? Q(e) ? xn(t, e.ofType, n.ofType) : !1 : Q(e) ? xn(t, e.ofType, n) : ve(n) ? ve(e) ? xn(t, e.ofType, n.ofType) : !1 : ve(e) ? !1 : jt(n) && (oe(e) || ee(e)) && t.isSubType(n, e);
3921
+ function Fn(t, e, n) {
3922
+ return e === n ? !0 : Q(n) ? Q(e) ? Fn(t, e.ofType, n.ofType) : !1 : Q(e) ? Fn(t, e.ofType, n) : ve(n) ? ve(e) ? Fn(t, e.ofType, n.ofType) : !1 : ve(e) ? !1 : jt(n) && (oe(e) || ee(e)) && t.isSubType(n, e);
3923
3923
  }
3924
3924
  function uo(t, e, n) {
3925
3925
  return e === n ? !0 : jt(e) ? jt(n) ? t.getPossibleTypes(e).some((i) => t.isSubType(n, i)) : t.isSubType(e, n) : jt(n) ? t.isSubType(n, e) : !1;
@@ -3954,7 +3954,7 @@ const Mr = 2147483647, Ur = -2147483648, Oi = new _t({
3954
3954
  return t;
3955
3955
  },
3956
3956
  parseLiteral(t) {
3957
- if (t.kind !== g.INT)
3957
+ if (t.kind !== m.INT)
3958
3958
  throw new A(
3959
3959
  `Int cannot represent non-integer value: ${se(t)}`,
3960
3960
  {
@@ -3993,7 +3993,7 @@ const Mr = 2147483647, Ur = -2147483648, Oi = new _t({
3993
3993
  return t;
3994
3994
  },
3995
3995
  parseLiteral(t) {
3996
- if (t.kind !== g.FLOAT && t.kind !== g.INT)
3996
+ if (t.kind !== m.FLOAT && t.kind !== m.INT)
3997
3997
  throw new A(
3998
3998
  `Float cannot represent non numeric value: ${se(t)}`,
3999
3999
  t
@@ -4023,7 +4023,7 @@ const Mr = 2147483647, Ur = -2147483648, Oi = new _t({
4023
4023
  return t;
4024
4024
  },
4025
4025
  parseLiteral(t) {
4026
- if (t.kind !== g.STRING)
4026
+ if (t.kind !== m.STRING)
4027
4027
  throw new A(
4028
4028
  `String cannot represent a non string value: ${se(t)}`,
4029
4029
  {
@@ -4053,7 +4053,7 @@ const Mr = 2147483647, Ur = -2147483648, Oi = new _t({
4053
4053
  return t;
4054
4054
  },
4055
4055
  parseLiteral(t) {
4056
- if (t.kind !== g.BOOLEAN)
4056
+ if (t.kind !== m.BOOLEAN)
4057
4057
  throw new A(
4058
4058
  `Boolean cannot represent a non boolean value: ${se(t)}`,
4059
4059
  {
@@ -4083,7 +4083,7 @@ const Mr = 2147483647, Ur = -2147483648, Oi = new _t({
4083
4083
  throw new A(`ID cannot represent value: ${L(t)}`);
4084
4084
  },
4085
4085
  parseLiteral(t) {
4086
- if (t.kind !== g.STRING && t.kind !== g.INT)
4086
+ if (t.kind !== m.STRING && t.kind !== m.INT)
4087
4087
  throw new A(
4088
4088
  "ID cannot represent a non-string and non-integer value: " + se(t),
4089
4089
  {
@@ -4145,7 +4145,7 @@ class Ut {
4145
4145
  return this.toString();
4146
4146
  }
4147
4147
  }
4148
- const Fs = new Ut({
4148
+ const xs = new Ut({
4149
4149
  name: "include",
4150
4150
  description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
4151
4151
  locations: [
@@ -4159,7 +4159,7 @@ const Fs = new Ut({
4159
4159
  description: "Included when true."
4160
4160
  }
4161
4161
  }
4162
- }), xs = new Ut({
4162
+ }), Fs = new Ut({
4163
4163
  name: "skip",
4164
4164
  description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
4165
4165
  locations: [
@@ -4205,8 +4205,8 @@ const Fs = new Ut({
4205
4205
  locations: [U.INPUT_OBJECT],
4206
4206
  args: {}
4207
4207
  }), Ai = Object.freeze([
4208
- Fs,
4209
4208
  xs,
4209
+ Fs,
4210
4210
  Ya,
4211
4211
  Nc,
4212
4212
  Ac
@@ -4217,11 +4217,11 @@ function Ka(t) {
4217
4217
  function si(t, e) {
4218
4218
  if (Q(e)) {
4219
4219
  const n = si(t, e.ofType);
4220
- return (n == null ? void 0 : n.kind) === g.NULL ? null : n;
4220
+ return (n == null ? void 0 : n.kind) === m.NULL ? null : n;
4221
4221
  }
4222
4222
  if (t === null)
4223
4223
  return {
4224
- kind: g.NULL
4224
+ kind: m.NULL
4225
4225
  };
4226
4226
  if (t === void 0)
4227
4227
  return null;
@@ -4234,7 +4234,7 @@ function si(t, e) {
4234
4234
  s != null && i.push(s);
4235
4235
  }
4236
4236
  return {
4237
- kind: g.LIST,
4237
+ kind: m.LIST,
4238
4238
  values: i
4239
4239
  };
4240
4240
  }
@@ -4247,16 +4247,16 @@ function si(t, e) {
4247
4247
  for (const i of Object.values(e.getFields())) {
4248
4248
  const r = si(t[i.name], i.type);
4249
4249
  r && n.push({
4250
- kind: g.OBJECT_FIELD,
4250
+ kind: m.OBJECT_FIELD,
4251
4251
  name: {
4252
- kind: g.NAME,
4252
+ kind: m.NAME,
4253
4253
  value: i.name
4254
4254
  },
4255
4255
  value: r
4256
4256
  });
4257
4257
  }
4258
4258
  return {
4259
- kind: g.OBJECT,
4259
+ kind: m.OBJECT,
4260
4260
  fields: n
4261
4261
  };
4262
4262
  }
@@ -4266,28 +4266,28 @@ function si(t, e) {
4266
4266
  return null;
4267
4267
  if (typeof n == "boolean")
4268
4268
  return {
4269
- kind: g.BOOLEAN,
4269
+ kind: m.BOOLEAN,
4270
4270
  value: n
4271
4271
  };
4272
4272
  if (typeof n == "number" && Number.isFinite(n)) {
4273
4273
  const i = String(n);
4274
4274
  return co.test(i) ? {
4275
- kind: g.INT,
4275
+ kind: m.INT,
4276
4276
  value: i
4277
4277
  } : {
4278
- kind: g.FLOAT,
4278
+ kind: m.FLOAT,
4279
4279
  value: i
4280
4280
  };
4281
4281
  }
4282
4282
  if (typeof n == "string")
4283
4283
  return It(e) ? {
4284
- kind: g.ENUM,
4284
+ kind: m.ENUM,
4285
4285
  value: n
4286
4286
  } : e === Ii && co.test(n) ? {
4287
- kind: g.INT,
4287
+ kind: m.INT,
4288
4288
  value: n
4289
4289
  } : {
4290
- kind: g.STRING,
4290
+ kind: m.STRING,
4291
4291
  value: n
4292
4292
  };
4293
4293
  throw new TypeError(`Cannot convert value to AST: ${L(n)}.`);
@@ -4459,7 +4459,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
4459
4459
  kind: {
4460
4460
  type: new B(nl),
4461
4461
  resolve(t) {
4462
- if (mn(t))
4462
+ if (gn(t))
4463
4463
  return be.SCALAR;
4464
4464
  if (ee(t))
4465
4465
  return be.OBJECT;
@@ -4727,7 +4727,7 @@ const nl = new Vn({
4727
4727
  deprecationReason: void 0,
4728
4728
  extensions: /* @__PURE__ */ Object.create(null),
4729
4729
  astNode: void 0
4730
- }, gr = {
4730
+ }, mr = {
4731
4731
  name: "__typename",
4732
4732
  type: new B(J),
4733
4733
  description: "The name of the current Object type at runtime.",
@@ -4752,7 +4752,7 @@ function rl(t) {
4752
4752
  function sl(t) {
4753
4753
  return Nt(t, Cs);
4754
4754
  }
4755
- function Fc(t) {
4755
+ function xc(t) {
4756
4756
  if (!sl(t))
4757
4757
  throw new Error(`Expected ${L(t)} to be a GraphQL schema.`);
4758
4758
  return t;
@@ -4906,8 +4906,8 @@ function Tt(t, e) {
4906
4906
  }
4907
4907
  return e;
4908
4908
  }
4909
- function xc(t) {
4910
- if (Fc(t), t.__validationErrors)
4909
+ function Fc(t) {
4910
+ if (xc(t), t.__validationErrors)
4911
4911
  return t.__validationErrors;
4912
4912
  const e = new Rc(t);
4913
4913
  Cc(e), Lc(e), kc(e);
@@ -4915,7 +4915,7 @@ function xc(t) {
4915
4915
  return t.__validationErrors = n, n;
4916
4916
  }
4917
4917
  function ol(t) {
4918
- const e = xc(t);
4918
+ const e = Fc(t);
4919
4919
  if (e.length !== 0)
4920
4920
  throw new Error(e.map((n) => n.message).join(`
4921
4921
 
@@ -5079,21 +5079,21 @@ function ho(t, e) {
5079
5079
  if (!oe(i)) {
5080
5080
  t.reportError(
5081
5081
  `Type ${L(e)} must only implement Interface types, it cannot implement ${L(i)}.`,
5082
- mi(e, i)
5082
+ gi(e, i)
5083
5083
  );
5084
5084
  continue;
5085
5085
  }
5086
5086
  if (e === i) {
5087
5087
  t.reportError(
5088
5088
  `Type ${e.name} cannot implement itself because it would create a circular reference.`,
5089
- mi(e, i)
5089
+ gi(e, i)
5090
5090
  );
5091
5091
  continue;
5092
5092
  }
5093
5093
  if (n[i.name]) {
5094
5094
  t.reportError(
5095
5095
  `Type ${e.name} can only implement ${i.name} once.`,
5096
- mi(e, i)
5096
+ gi(e, i)
5097
5097
  );
5098
5098
  continue;
5099
5099
  }
@@ -5111,7 +5111,7 @@ function Dc(t, e, n) {
5111
5111
  );
5112
5112
  continue;
5113
5113
  }
5114
- if (!xn(t.schema, f.type, l.type)) {
5114
+ if (!Fn(t.schema, f.type, l.type)) {
5115
5115
  var r, s;
5116
5116
  t.reportError(
5117
5117
  `Interface field ${n.name}.${u} expects type ${L(l.type)} but ${e.name}.${u} is type ${L(f.type)}.`,
@@ -5122,7 +5122,7 @@ function Dc(t, e, n) {
5122
5122
  );
5123
5123
  }
5124
5124
  for (const d of l.args) {
5125
- const h = d.name, p = f.args.find((m) => m.name === h);
5125
+ const h = d.name, p = f.args.find((g) => g.name === h);
5126
5126
  if (!p) {
5127
5127
  t.reportError(
5128
5128
  `Interface field argument ${n.name}.${u}(${h}:) expected but ${e.name}.${u} does not provide it.`,
@@ -5143,7 +5143,7 @@ function Dc(t, e, n) {
5143
5143
  }
5144
5144
  for (const d of f.args) {
5145
5145
  const h = d.name;
5146
- !l.args.find((m) => m.name === h) && _i(d) && t.reportError(
5146
+ !l.args.find((g) => g.name === h) && _i(d) && t.reportError(
5147
5147
  `Object field ${e.name}.${u} includes required argument ${h} that is missing from the Interface field ${n.name}.${u}.`,
5148
5148
  [d.astNode, l.astNode]
5149
5149
  );
@@ -5156,8 +5156,8 @@ function $c(t, e, n) {
5156
5156
  i.includes(r) || t.reportError(
5157
5157
  r === e ? `Type ${e.name} cannot implement ${n.name} because it would create a circular reference.` : `Type ${e.name} must implement ${r.name} because it is implemented by ${n.name}.`,
5158
5158
  [
5159
- ...mi(n, r),
5160
- ...mi(e, n)
5159
+ ...gi(n, r),
5160
+ ...gi(e, n)
5161
5161
  ]
5162
5162
  );
5163
5163
  }
@@ -5256,7 +5256,7 @@ function Vc(t) {
5256
5256
  i[s.name] = void 0;
5257
5257
  }
5258
5258
  }
5259
- function mi(t, e) {
5259
+ function gi(t, e) {
5260
5260
  const { astNode: n, extensionASTNodes: i } = t;
5261
5261
  return (n != null ? [n, ...i] : i).flatMap((s) => {
5262
5262
  var o;
@@ -5284,15 +5284,15 @@ function Ls(t) {
5284
5284
  }
5285
5285
  function Ue(t, e) {
5286
5286
  switch (e.kind) {
5287
- case g.LIST_TYPE: {
5287
+ case m.LIST_TYPE: {
5288
5288
  const n = Ue(t, e.type);
5289
5289
  return n && new _e(n);
5290
5290
  }
5291
- case g.NON_NULL_TYPE: {
5291
+ case m.NON_NULL_TYPE: {
5292
5292
  const n = Ue(t, e.type);
5293
5293
  return n && new B(n);
5294
5294
  }
5295
- case g.NAMED_TYPE:
5295
+ case m.NAMED_TYPE:
5296
5296
  return t.getType(e.name.value);
5297
5297
  }
5298
5298
  }
@@ -5339,41 +5339,41 @@ class al {
5339
5339
  enter(e) {
5340
5340
  const n = this._schema;
5341
5341
  switch (e.kind) {
5342
- case g.SELECTION_SET: {
5342
+ case m.SELECTION_SET: {
5343
5343
  const r = St(this.getType());
5344
5344
  this._parentTypeStack.push(
5345
5345
  Zt(r) ? r : void 0
5346
5346
  );
5347
5347
  break;
5348
5348
  }
5349
- case g.FIELD: {
5349
+ case m.FIELD: {
5350
5350
  const r = this.getParentType();
5351
5351
  let s, o;
5352
5352
  r && (s = this._getFieldDef(n, r, e), s && (o = s.type)), this._fieldDefStack.push(s), this._typeStack.push(pi(o) ? o : void 0);
5353
5353
  break;
5354
5354
  }
5355
- case g.DIRECTIVE:
5355
+ case m.DIRECTIVE:
5356
5356
  this._directive = n.getDirective(e.name.value);
5357
5357
  break;
5358
- case g.OPERATION_DEFINITION: {
5358
+ case m.OPERATION_DEFINITION: {
5359
5359
  const r = n.getRootType(e.operation);
5360
5360
  this._typeStack.push(ee(r) ? r : void 0);
5361
5361
  break;
5362
5362
  }
5363
- case g.INLINE_FRAGMENT:
5364
- case g.FRAGMENT_DEFINITION: {
5363
+ case m.INLINE_FRAGMENT:
5364
+ case m.FRAGMENT_DEFINITION: {
5365
5365
  const r = e.typeCondition, s = r ? Ue(n, r) : St(this.getType());
5366
5366
  this._typeStack.push(pi(s) ? s : void 0);
5367
5367
  break;
5368
5368
  }
5369
- case g.VARIABLE_DEFINITION: {
5369
+ case m.VARIABLE_DEFINITION: {
5370
5370
  const r = Ue(n, e.type);
5371
5371
  this._inputTypeStack.push(
5372
5372
  vt(r) ? r : void 0
5373
5373
  );
5374
5374
  break;
5375
5375
  }
5376
- case g.ARGUMENT: {
5376
+ case m.ARGUMENT: {
5377
5377
  var i;
5378
5378
  let r, s;
5379
5379
  const o = (i = this.getDirective()) !== null && i !== void 0 ? i : this.getFieldDef();
@@ -5382,12 +5382,12 @@ class al {
5382
5382
  ), r && (s = r.type)), this._argument = r, this._defaultValueStack.push(r ? r.defaultValue : void 0), this._inputTypeStack.push(vt(s) ? s : void 0);
5383
5383
  break;
5384
5384
  }
5385
- case g.LIST: {
5385
+ case m.LIST: {
5386
5386
  const r = Ua(this.getInputType()), s = ve(r) ? r.ofType : r;
5387
5387
  this._defaultValueStack.push(void 0), this._inputTypeStack.push(vt(s) ? s : void 0);
5388
5388
  break;
5389
5389
  }
5390
- case g.OBJECT_FIELD: {
5390
+ case m.OBJECT_FIELD: {
5391
5391
  const r = St(this.getInputType());
5392
5392
  let s, o;
5393
5393
  Ae(r) && (o = r.getFields()[e.name.value], o && (s = o.type)), this._defaultValueStack.push(
@@ -5397,7 +5397,7 @@ class al {
5397
5397
  );
5398
5398
  break;
5399
5399
  }
5400
- case g.ENUM: {
5400
+ case m.ENUM: {
5401
5401
  const r = St(this.getInputType());
5402
5402
  let s;
5403
5403
  It(r) && (s = r.getValue(e.value)), this._enumValue = s;
@@ -5407,31 +5407,31 @@ class al {
5407
5407
  }
5408
5408
  leave(e) {
5409
5409
  switch (e.kind) {
5410
- case g.SELECTION_SET:
5410
+ case m.SELECTION_SET:
5411
5411
  this._parentTypeStack.pop();
5412
5412
  break;
5413
- case g.FIELD:
5413
+ case m.FIELD:
5414
5414
  this._fieldDefStack.pop(), this._typeStack.pop();
5415
5415
  break;
5416
- case g.DIRECTIVE:
5416
+ case m.DIRECTIVE:
5417
5417
  this._directive = null;
5418
5418
  break;
5419
- case g.OPERATION_DEFINITION:
5420
- case g.INLINE_FRAGMENT:
5421
- case g.FRAGMENT_DEFINITION:
5419
+ case m.OPERATION_DEFINITION:
5420
+ case m.INLINE_FRAGMENT:
5421
+ case m.FRAGMENT_DEFINITION:
5422
5422
  this._typeStack.pop();
5423
5423
  break;
5424
- case g.VARIABLE_DEFINITION:
5424
+ case m.VARIABLE_DEFINITION:
5425
5425
  this._inputTypeStack.pop();
5426
5426
  break;
5427
- case g.ARGUMENT:
5427
+ case m.ARGUMENT:
5428
5428
  this._argument = null, this._defaultValueStack.pop(), this._inputTypeStack.pop();
5429
5429
  break;
5430
- case g.LIST:
5431
- case g.OBJECT_FIELD:
5430
+ case m.LIST:
5431
+ case m.OBJECT_FIELD:
5432
5432
  this._defaultValueStack.pop(), this._inputTypeStack.pop();
5433
5433
  break;
5434
- case g.ENUM:
5434
+ case m.ENUM:
5435
5435
  this._enumValue = null;
5436
5436
  break;
5437
5437
  }
@@ -5443,8 +5443,8 @@ function qc(t, e, n) {
5443
5443
  return hr;
5444
5444
  if (i === pr.name && t.getQueryType() === e)
5445
5445
  return pr;
5446
- if (i === gr.name && Zt(e))
5447
- return gr;
5446
+ if (i === mr.name && Zt(e))
5447
+ return mr;
5448
5448
  if (ee(e) || oe(e))
5449
5449
  return e.getFields()[i];
5450
5450
  }
@@ -5467,26 +5467,26 @@ function ll(t, e) {
5467
5467
  };
5468
5468
  }
5469
5469
  function Gc(t) {
5470
- return t.kind === g.OPERATION_DEFINITION || t.kind === g.FRAGMENT_DEFINITION;
5470
+ return t.kind === m.OPERATION_DEFINITION || t.kind === m.FRAGMENT_DEFINITION;
5471
5471
  }
5472
5472
  function Bc(t) {
5473
- return t.kind === g.SCHEMA_DEFINITION || ks(t) || t.kind === g.DIRECTIVE_DEFINITION;
5473
+ return t.kind === m.SCHEMA_DEFINITION || ks(t) || t.kind === m.DIRECTIVE_DEFINITION;
5474
5474
  }
5475
5475
  function ks(t) {
5476
- return t.kind === g.SCALAR_TYPE_DEFINITION || t.kind === g.OBJECT_TYPE_DEFINITION || t.kind === g.INTERFACE_TYPE_DEFINITION || t.kind === g.UNION_TYPE_DEFINITION || t.kind === g.ENUM_TYPE_DEFINITION || t.kind === g.INPUT_OBJECT_TYPE_DEFINITION;
5476
+ return t.kind === m.SCALAR_TYPE_DEFINITION || t.kind === m.OBJECT_TYPE_DEFINITION || t.kind === m.INTERFACE_TYPE_DEFINITION || t.kind === m.UNION_TYPE_DEFINITION || t.kind === m.ENUM_TYPE_DEFINITION || t.kind === m.INPUT_OBJECT_TYPE_DEFINITION;
5477
5477
  }
5478
5478
  function zc(t) {
5479
- return t.kind === g.SCHEMA_EXTENSION || ul(t);
5479
+ return t.kind === m.SCHEMA_EXTENSION || ul(t);
5480
5480
  }
5481
5481
  function ul(t) {
5482
- return t.kind === g.SCALAR_TYPE_EXTENSION || t.kind === g.OBJECT_TYPE_EXTENSION || t.kind === g.INTERFACE_TYPE_EXTENSION || t.kind === g.UNION_TYPE_EXTENSION || t.kind === g.ENUM_TYPE_EXTENSION || t.kind === g.INPUT_OBJECT_TYPE_EXTENSION;
5482
+ return t.kind === m.SCALAR_TYPE_EXTENSION || t.kind === m.OBJECT_TYPE_EXTENSION || t.kind === m.INTERFACE_TYPE_EXTENSION || t.kind === m.UNION_TYPE_EXTENSION || t.kind === m.ENUM_TYPE_EXTENSION || t.kind === m.INPUT_OBJECT_TYPE_EXTENSION;
5483
5483
  }
5484
5484
  function Qc(t) {
5485
5485
  return {
5486
5486
  Document(e) {
5487
5487
  for (const n of e.definitions)
5488
5488
  if (!Gc(n)) {
5489
- const i = n.kind === g.SCHEMA_DEFINITION || n.kind === g.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
5489
+ const i = n.kind === m.SCHEMA_DEFINITION || n.kind === m.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
5490
5490
  t.reportError(
5491
5491
  new A(`The ${i} definition is not executable.`, {
5492
5492
  nodes: n
@@ -5539,7 +5539,7 @@ function Hc(t, e, n) {
5539
5539
  function Jc(t, e) {
5540
5540
  if (ee(t) || oe(t)) {
5541
5541
  const n = Object.keys(t.getFields());
5542
- return gn(e, n);
5542
+ return mn(e, n);
5543
5543
  }
5544
5544
  return [];
5545
5545
  }
@@ -5585,7 +5585,7 @@ function Kc(t) {
5585
5585
  Argument(e) {
5586
5586
  const n = t.getArgument(), i = t.getFieldDef(), r = t.getParentType();
5587
5587
  if (!n && i && r) {
5588
- const s = e.name.value, o = i.args.map((l) => l.name), a = gn(s, o);
5588
+ const s = e.name.value, o = i.args.map((l) => l.name), a = mn(s, o);
5589
5589
  t.reportError(
5590
5590
  new A(
5591
5591
  `Unknown argument "${s}" on field "${r.name}.${i.name}".` + Kt(a),
@@ -5604,7 +5604,7 @@ function Xc(t) {
5604
5604
  e[o.name] = o.args.map((a) => a.name);
5605
5605
  const r = t.getDocument().definitions;
5606
5606
  for (const o of r)
5607
- if (o.kind === g.DIRECTIVE_DEFINITION) {
5607
+ if (o.kind === m.DIRECTIVE_DEFINITION) {
5608
5608
  var s;
5609
5609
  const a = (s = o.arguments) !== null && s !== void 0 ? s : [];
5610
5610
  e[o.name.value] = a.map((l) => l.name.value);
@@ -5616,7 +5616,7 @@ function Xc(t) {
5616
5616
  for (const u of o.arguments) {
5617
5617
  const f = u.name.value;
5618
5618
  if (!l.includes(f)) {
5619
- const d = gn(f, l);
5619
+ const d = mn(f, l);
5620
5620
  t.reportError(
5621
5621
  new A(
5622
5622
  `Unknown argument "${f}" on directive "@${a}".` + Kt(d),
@@ -5637,7 +5637,7 @@ function Zc(t) {
5637
5637
  e[s.name] = s.locations;
5638
5638
  const r = t.getDocument().definitions;
5639
5639
  for (const s of r)
5640
- s.kind === g.DIRECTIVE_DEFINITION && (e[s.name.value] = s.locations.map((o) => o.value));
5640
+ s.kind === m.DIRECTIVE_DEFINITION && (e[s.name.value] = s.locations.map((o) => o.value));
5641
5641
  return {
5642
5642
  Directive(s, o, a, l, u) {
5643
5643
  const f = s.name.value, d = e[f];
@@ -5664,46 +5664,46 @@ function Zc(t) {
5664
5664
  function ef(t) {
5665
5665
  const e = t[t.length - 1];
5666
5666
  switch ("kind" in e || Ct(!1), e.kind) {
5667
- case g.OPERATION_DEFINITION:
5667
+ case m.OPERATION_DEFINITION:
5668
5668
  return tf(e.operation);
5669
- case g.FIELD:
5669
+ case m.FIELD:
5670
5670
  return U.FIELD;
5671
- case g.FRAGMENT_SPREAD:
5671
+ case m.FRAGMENT_SPREAD:
5672
5672
  return U.FRAGMENT_SPREAD;
5673
- case g.INLINE_FRAGMENT:
5673
+ case m.INLINE_FRAGMENT:
5674
5674
  return U.INLINE_FRAGMENT;
5675
- case g.FRAGMENT_DEFINITION:
5675
+ case m.FRAGMENT_DEFINITION:
5676
5676
  return U.FRAGMENT_DEFINITION;
5677
- case g.VARIABLE_DEFINITION:
5677
+ case m.VARIABLE_DEFINITION:
5678
5678
  return U.VARIABLE_DEFINITION;
5679
- case g.SCHEMA_DEFINITION:
5680
- case g.SCHEMA_EXTENSION:
5679
+ case m.SCHEMA_DEFINITION:
5680
+ case m.SCHEMA_EXTENSION:
5681
5681
  return U.SCHEMA;
5682
- case g.SCALAR_TYPE_DEFINITION:
5683
- case g.SCALAR_TYPE_EXTENSION:
5682
+ case m.SCALAR_TYPE_DEFINITION:
5683
+ case m.SCALAR_TYPE_EXTENSION:
5684
5684
  return U.SCALAR;
5685
- case g.OBJECT_TYPE_DEFINITION:
5686
- case g.OBJECT_TYPE_EXTENSION:
5685
+ case m.OBJECT_TYPE_DEFINITION:
5686
+ case m.OBJECT_TYPE_EXTENSION:
5687
5687
  return U.OBJECT;
5688
- case g.FIELD_DEFINITION:
5688
+ case m.FIELD_DEFINITION:
5689
5689
  return U.FIELD_DEFINITION;
5690
- case g.INTERFACE_TYPE_DEFINITION:
5691
- case g.INTERFACE_TYPE_EXTENSION:
5690
+ case m.INTERFACE_TYPE_DEFINITION:
5691
+ case m.INTERFACE_TYPE_EXTENSION:
5692
5692
  return U.INTERFACE;
5693
- case g.UNION_TYPE_DEFINITION:
5694
- case g.UNION_TYPE_EXTENSION:
5693
+ case m.UNION_TYPE_DEFINITION:
5694
+ case m.UNION_TYPE_EXTENSION:
5695
5695
  return U.UNION;
5696
- case g.ENUM_TYPE_DEFINITION:
5697
- case g.ENUM_TYPE_EXTENSION:
5696
+ case m.ENUM_TYPE_DEFINITION:
5697
+ case m.ENUM_TYPE_EXTENSION:
5698
5698
  return U.ENUM;
5699
- case g.ENUM_VALUE_DEFINITION:
5699
+ case m.ENUM_VALUE_DEFINITION:
5700
5700
  return U.ENUM_VALUE;
5701
- case g.INPUT_OBJECT_TYPE_DEFINITION:
5702
- case g.INPUT_OBJECT_TYPE_EXTENSION:
5701
+ case m.INPUT_OBJECT_TYPE_DEFINITION:
5702
+ case m.INPUT_OBJECT_TYPE_EXTENSION:
5703
5703
  return U.INPUT_OBJECT;
5704
- case g.INPUT_VALUE_DEFINITION: {
5704
+ case m.INPUT_VALUE_DEFINITION: {
5705
5705
  const n = t[t.length - 3];
5706
- return "kind" in n || Ct(!1), n.kind === g.INPUT_OBJECT_TYPE_DEFINITION ? U.INPUT_FIELD_DEFINITION : U.ARGUMENT_DEFINITION;
5706
+ return "kind" in n || Ct(!1), n.kind === m.INPUT_OBJECT_TYPE_DEFINITION ? U.INPUT_FIELD_DEFINITION : U.ARGUMENT_DEFINITION;
5707
5707
  }
5708
5708
  // Not reachable, all possible types have been considered.
5709
5709
  /* c8 ignore next */
@@ -5747,15 +5747,15 @@ function rf(t) {
5747
5747
  if (!n[f] && !i[f]) {
5748
5748
  var d;
5749
5749
  const h = (d = u[2]) !== null && d !== void 0 ? d : a, p = h != null && sf(h);
5750
- if (p && go.includes(f))
5750
+ if (p && mo.includes(f))
5751
5751
  return;
5752
- const m = gn(
5752
+ const g = mn(
5753
5753
  f,
5754
- p ? go.concat(r) : r
5754
+ p ? mo.concat(r) : r
5755
5755
  );
5756
5756
  t.reportError(
5757
5757
  new A(
5758
- `Unknown type "${f}".` + Kt(m),
5758
+ `Unknown type "${f}".` + Kt(g),
5759
5759
  {
5760
5760
  nodes: s
5761
5761
  }
@@ -5765,7 +5765,7 @@ function rf(t) {
5765
5765
  }
5766
5766
  };
5767
5767
  }
5768
- const go = [...Oc, ...il].map(
5768
+ const mo = [...Oc, ...il].map(
5769
5769
  (t) => t.name
5770
5770
  );
5771
5771
  function sf(t) {
@@ -5776,7 +5776,7 @@ function of(t) {
5776
5776
  return {
5777
5777
  Document(n) {
5778
5778
  e = n.definitions.filter(
5779
- (i) => i.kind === g.OPERATION_DEFINITION
5779
+ (i) => i.kind === m.OPERATION_DEFINITION
5780
5780
  ).length;
5781
5781
  },
5782
5782
  OperationDefinition(n) {
@@ -5794,7 +5794,7 @@ function of(t) {
5794
5794
  const af = 3;
5795
5795
  function lf(t) {
5796
5796
  function e(n, i = /* @__PURE__ */ Object.create(null), r = 0) {
5797
- if (n.kind === g.FRAGMENT_SPREAD) {
5797
+ if (n.kind === m.FRAGMENT_SPREAD) {
5798
5798
  const s = n.name.value;
5799
5799
  if (i[s] === !0)
5800
5800
  return !1;
@@ -5807,7 +5807,7 @@ function lf(t) {
5807
5807
  i[s] = void 0;
5808
5808
  }
5809
5809
  }
5810
- if (n.kind === g.FIELD && // check all introspection lists
5810
+ if (n.kind === m.FIELD && // check all introspection lists
5811
5811
  (n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= af))
5812
5812
  return !0;
5813
5813
  if ("selectionSet" in n && n.selectionSet) {
@@ -5953,17 +5953,17 @@ function df(t) {
5953
5953
  }
5954
5954
  function Ds(t) {
5955
5955
  switch (t.kind) {
5956
- case g.OBJECT:
5956
+ case m.OBJECT:
5957
5957
  return { ...t, fields: hf(t.fields) };
5958
- case g.LIST:
5958
+ case m.LIST:
5959
5959
  return { ...t, values: t.values.map(Ds) };
5960
- case g.INT:
5961
- case g.FLOAT:
5962
- case g.STRING:
5963
- case g.BOOLEAN:
5964
- case g.NULL:
5965
- case g.ENUM:
5966
- case g.VARIABLE:
5960
+ case m.INT:
5961
+ case m.FLOAT:
5962
+ case m.STRING:
5963
+ case m.BOOLEAN:
5964
+ case m.NULL:
5965
+ case m.ENUM:
5966
+ case m.VARIABLE:
5967
5967
  return t;
5968
5968
  }
5969
5969
  }
@@ -5984,7 +5984,7 @@ function pf(t) {
5984
5984
  const e = new hl(), n = new Tf(), i = /* @__PURE__ */ new Map();
5985
5985
  return {
5986
5986
  SelectionSet(r) {
5987
- const s = gf(
5987
+ const s = mf(
5988
5988
  t,
5989
5989
  i,
5990
5990
  e,
@@ -6006,7 +6006,7 @@ function pf(t) {
6006
6006
  }
6007
6007
  };
6008
6008
  }
6009
- function gf(t, e, n, i, r, s) {
6009
+ function mf(t, e, n, i, r, s) {
6010
6010
  const o = [], [a, l] = br(
6011
6011
  t,
6012
6012
  e,
@@ -6022,7 +6022,7 @@ function gf(t, e, n, i, r, s) {
6022
6022
  a
6023
6023
  ), l.length !== 0)
6024
6024
  for (let u = 0; u < l.length; u++) {
6025
- mr(
6025
+ gr(
6026
6026
  t,
6027
6027
  o,
6028
6028
  e,
@@ -6046,7 +6046,7 @@ function gf(t, e, n, i, r, s) {
6046
6046
  }
6047
6047
  return o;
6048
6048
  }
6049
- function mr(t, e, n, i, r, s, o, a) {
6049
+ function gr(t, e, n, i, r, s, o, a) {
6050
6050
  if (i.has(
6051
6051
  o,
6052
6052
  a,
@@ -6078,7 +6078,7 @@ function mr(t, e, n, i, r, s, o, a) {
6078
6078
  u
6079
6079
  );
6080
6080
  for (const d of f)
6081
- mr(
6081
+ gr(
6082
6082
  t,
6083
6083
  e,
6084
6084
  n,
@@ -6120,7 +6120,7 @@ function yr(t, e, n, i, r, s, o, a) {
6120
6120
  f,
6121
6121
  h
6122
6122
  );
6123
- for (const m of p)
6123
+ for (const g of p)
6124
6124
  yr(
6125
6125
  t,
6126
6126
  e,
@@ -6129,9 +6129,9 @@ function yr(t, e, n, i, r, s, o, a) {
6129
6129
  r,
6130
6130
  s,
6131
6131
  o,
6132
- m
6132
+ g
6133
6133
  );
6134
- for (const m of d)
6134
+ for (const g of d)
6135
6135
  yr(
6136
6136
  t,
6137
6137
  e,
@@ -6139,11 +6139,11 @@ function yr(t, e, n, i, r, s, o, a) {
6139
6139
  i,
6140
6140
  r,
6141
6141
  s,
6142
- m,
6142
+ g,
6143
6143
  a
6144
6144
  );
6145
6145
  }
6146
- function mf(t, e, n, i, r, s, o, a, l) {
6146
+ function gf(t, e, n, i, r, s, o, a, l) {
6147
6147
  const u = [], [f, d] = br(
6148
6148
  t,
6149
6149
  e,
@@ -6165,8 +6165,8 @@ function mf(t, e, n, i, r, s, o, a, l) {
6165
6165
  f,
6166
6166
  h
6167
6167
  );
6168
- for (const m of p)
6169
- mr(
6168
+ for (const g of p)
6169
+ gr(
6170
6170
  t,
6171
6171
  u,
6172
6172
  e,
@@ -6174,10 +6174,10 @@ function mf(t, e, n, i, r, s, o, a, l) {
6174
6174
  i,
6175
6175
  r,
6176
6176
  f,
6177
- m
6177
+ g
6178
6178
  );
6179
- for (const m of d)
6180
- mr(
6179
+ for (const g of d)
6180
+ gr(
6181
6181
  t,
6182
6182
  u,
6183
6183
  e,
@@ -6185,9 +6185,9 @@ function mf(t, e, n, i, r, s, o, a, l) {
6185
6185
  i,
6186
6186
  r,
6187
6187
  h,
6188
- m
6188
+ g
6189
6189
  );
6190
- for (const m of d)
6190
+ for (const g of d)
6191
6191
  for (const v of p)
6192
6192
  yr(
6193
6193
  t,
@@ -6196,7 +6196,7 @@ function mf(t, e, n, i, r, s, o, a, l) {
6196
6196
  n,
6197
6197
  i,
6198
6198
  r,
6199
- m,
6199
+ g,
6200
6200
  v
6201
6201
  );
6202
6202
  return u;
@@ -6241,8 +6241,8 @@ function $s(t, e, n, i, r, s, o, a) {
6241
6241
  }
6242
6242
  }
6243
6243
  function fl(t, e, n, i, r, s, o, a) {
6244
- const [l, u, f] = o, [d, h, p] = a, m = r || l !== d && ee(l) && ee(d);
6245
- if (!m) {
6244
+ const [l, u, f] = o, [d, h, p] = a, g = r || l !== d && ee(l) && ee(d);
6245
+ if (!g) {
6246
6246
  const N = u.name.value, O = h.name.value;
6247
6247
  if (N !== O)
6248
6248
  return [
@@ -6257,13 +6257,13 @@ function fl(t, e, n, i, r, s, o, a) {
6257
6257
  [h]
6258
6258
  ];
6259
6259
  }
6260
- const v = f == null ? void 0 : f.type, x = p == null ? void 0 : p.type;
6261
- if (v && x && ns(v, x))
6260
+ const v = f == null ? void 0 : f.type, F = p == null ? void 0 : p.type;
6261
+ if (v && F && ns(v, F))
6262
6262
  return [
6263
6263
  [
6264
6264
  s,
6265
6265
  `they return conflicting types "${L(v)}" and "${L(
6266
- x
6266
+ F
6267
6267
  )}"`
6268
6268
  ],
6269
6269
  [u],
@@ -6271,15 +6271,15 @@ function fl(t, e, n, i, r, s, o, a) {
6271
6271
  ];
6272
6272
  const b = u.selectionSet, T = h.selectionSet;
6273
6273
  if (b && T) {
6274
- const N = mf(
6274
+ const N = gf(
6275
6275
  t,
6276
6276
  e,
6277
6277
  n,
6278
6278
  i,
6279
- m,
6279
+ g,
6280
6280
  St(v),
6281
6281
  b,
6282
- St(x),
6282
+ St(F),
6283
6283
  T
6284
6284
  );
6285
6285
  return Ef(N, s, u, h);
@@ -6294,10 +6294,10 @@ function bf(t, e) {
6294
6294
  const r = new Map(i.map(({ name: s, value: o }) => [s.value, o]));
6295
6295
  return n.every((s) => {
6296
6296
  const o = s.value, a = r.get(s.name.value);
6297
- return a === void 0 ? !1 : mo(o) === mo(a);
6297
+ return a === void 0 ? !1 : go(o) === go(a);
6298
6298
  });
6299
6299
  }
6300
- function mo(t) {
6300
+ function go(t) {
6301
6301
  return se(Ds(t));
6302
6302
  }
6303
6303
  function ns(t, e) {
@@ -6333,7 +6333,7 @@ function is(t, e, n) {
6333
6333
  function dl(t, e, n, i, r) {
6334
6334
  for (const s of n.selections)
6335
6335
  switch (s.kind) {
6336
- case g.FIELD: {
6336
+ case m.FIELD: {
6337
6337
  const o = s.name.value;
6338
6338
  let a;
6339
6339
  (ee(e) || oe(e)) && (a = e.getFields()[o]);
@@ -6341,10 +6341,10 @@ function dl(t, e, n, i, r) {
6341
6341
  i[l] || (i[l] = []), i[l].push([e, s, a]);
6342
6342
  break;
6343
6343
  }
6344
- case g.FRAGMENT_SPREAD:
6344
+ case m.FRAGMENT_SPREAD:
6345
6345
  r[s.name.value] = !0;
6346
6346
  break;
6347
- case g.INLINE_FRAGMENT: {
6347
+ case m.INLINE_FRAGMENT: {
6348
6348
  const o = s.typeCondition, a = o ? Ue(t.getSchema(), o) : e;
6349
6349
  dl(
6350
6350
  t,
@@ -6472,7 +6472,7 @@ function _f(t) {
6472
6472
  );
6473
6473
  const s = t.getDocument().definitions;
6474
6474
  for (const a of s)
6475
- if (a.kind === g.DIRECTIVE_DEFINITION) {
6475
+ if (a.kind === m.DIRECTIVE_DEFINITION) {
6476
6476
  var o;
6477
6477
  const l = (o = a.arguments) !== null && o !== void 0 ? o : [];
6478
6478
  n[a.name.value] = Un(
@@ -6488,9 +6488,9 @@ function _f(t) {
6488
6488
  if (u) {
6489
6489
  var f;
6490
6490
  const d = (f = a.arguments) !== null && f !== void 0 ? f : [], h = new Set(d.map((p) => p.name.value));
6491
- for (const [p, m] of Object.entries(u))
6491
+ for (const [p, g] of Object.entries(u))
6492
6492
  if (!h.has(p)) {
6493
- const v = Ns(m.type) ? L(m.type) : se(m.type);
6493
+ const v = Ns(g.type) ? L(g.type) : se(g.type);
6494
6494
  t.reportError(
6495
6495
  new A(
6496
6496
  `Directive "@${l}" argument "${p}" of type "${v}" is required, but it was not provided.`,
@@ -6506,7 +6506,7 @@ function _f(t) {
6506
6506
  };
6507
6507
  }
6508
6508
  function Of(t) {
6509
- return t.type.kind === g.NON_NULL_TYPE && t.defaultValue == null;
6509
+ return t.type.kind === m.NON_NULL_TYPE && t.defaultValue == null;
6510
6510
  }
6511
6511
  function If(t) {
6512
6512
  return {
@@ -6570,10 +6570,10 @@ function kt(t) {
6570
6570
  e.push(n.key), n = n.prev;
6571
6571
  return e.reverse();
6572
6572
  }
6573
- function Af(t, e, n = Ff) {
6573
+ function Af(t, e, n = xf) {
6574
6574
  return oi(t, e, n, void 0);
6575
6575
  }
6576
- function Ff(t, e, n) {
6576
+ function xf(t, e, n) {
6577
6577
  let i = "Invalid value " + L(e);
6578
6578
  throw t.length > 0 && (i += ` at "value${Nf(t)}"`), n.message = i + ": " + n.message, n;
6579
6579
  }
@@ -6635,7 +6635,7 @@ function oi(t, e, n, i) {
6635
6635
  }
6636
6636
  for (const o of Object.keys(t))
6637
6637
  if (!s[o]) {
6638
- const a = gn(
6638
+ const a = mn(
6639
6639
  o,
6640
6640
  Object.keys(e.getFields())
6641
6641
  );
@@ -6689,7 +6689,7 @@ function oi(t, e, n, i) {
6689
6689
  }
6690
6690
  function ln(t, e, n) {
6691
6691
  if (t) {
6692
- if (t.kind === g.VARIABLE) {
6692
+ if (t.kind === m.VARIABLE) {
6693
6693
  const i = t.name.value;
6694
6694
  if (n == null || n[i] === void 0)
6695
6695
  return;
@@ -6697,12 +6697,12 @@ function ln(t, e, n) {
6697
6697
  return r === null && Q(e) ? void 0 : r;
6698
6698
  }
6699
6699
  if (Q(e))
6700
- return t.kind === g.NULL ? void 0 : ln(t, e.ofType, n);
6701
- if (t.kind === g.NULL)
6700
+ return t.kind === m.NULL ? void 0 : ln(t, e.ofType, n);
6701
+ if (t.kind === m.NULL)
6702
6702
  return null;
6703
6703
  if (ve(e)) {
6704
6704
  const i = e.ofType;
6705
- if (t.kind === g.LIST) {
6705
+ if (t.kind === m.LIST) {
6706
6706
  const s = [];
6707
6707
  for (const o of t.values)
6708
6708
  if (bo(o, n)) {
@@ -6721,7 +6721,7 @@ function ln(t, e, n) {
6721
6721
  return r === void 0 ? void 0 : [r];
6722
6722
  }
6723
6723
  if (Ae(e)) {
6724
- if (t.kind !== g.OBJECT)
6724
+ if (t.kind !== m.OBJECT)
6725
6725
  return;
6726
6726
  const i = /* @__PURE__ */ Object.create(null), r = Un(t.fields, (s) => s.name.value);
6727
6727
  for (const s of Object.values(e.getFields())) {
@@ -6758,9 +6758,9 @@ function ln(t, e, n) {
6758
6758
  }
6759
6759
  }
6760
6760
  function bo(t, e) {
6761
- return t.kind === g.VARIABLE && (e == null || e[t.name.value] === void 0);
6761
+ return t.kind === m.VARIABLE && (e == null || e[t.name.value] === void 0);
6762
6762
  }
6763
- function xf(t, e, n) {
6763
+ function Ff(t, e, n) {
6764
6764
  var i;
6765
6765
  const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = Un(s, (a) => a.name.value);
6766
6766
  for (const a of t.args) {
@@ -6778,22 +6778,22 @@ function xf(t, e, n) {
6778
6778
  continue;
6779
6779
  }
6780
6780
  const d = f.value;
6781
- let h = d.kind === g.NULL;
6782
- if (d.kind === g.VARIABLE) {
6783
- const m = d.name.value;
6784
- if (n == null || !Rf(n, m)) {
6781
+ let h = d.kind === m.NULL;
6782
+ if (d.kind === m.VARIABLE) {
6783
+ const g = d.name.value;
6784
+ if (n == null || !Rf(n, g)) {
6785
6785
  if (a.defaultValue !== void 0)
6786
6786
  r[l] = a.defaultValue;
6787
6787
  else if (Q(u))
6788
6788
  throw new A(
6789
- `Argument "${l}" of required type "${L(u)}" was provided the variable "$${m}" which was not provided a runtime value.`,
6789
+ `Argument "${l}" of required type "${L(u)}" was provided the variable "$${g}" which was not provided a runtime value.`,
6790
6790
  {
6791
6791
  nodes: d
6792
6792
  }
6793
6793
  );
6794
6794
  continue;
6795
6795
  }
6796
- h = n[m] == null;
6796
+ h = n[g] == null;
6797
6797
  }
6798
6798
  if (h && Q(u))
6799
6799
  throw new A(
@@ -6820,7 +6820,7 @@ function qn(t, e, n) {
6820
6820
  (s) => s.name.value === t.name
6821
6821
  );
6822
6822
  if (r)
6823
- return xf(t, r, n);
6823
+ return Ff(t, r, n);
6824
6824
  }
6825
6825
  function Rf(t, e) {
6826
6826
  return Object.prototype.hasOwnProperty.call(t, e);
@@ -6840,14 +6840,14 @@ function Cf(t, e, n, i, r) {
6840
6840
  function rs(t, e, n, i, r, s, o) {
6841
6841
  for (const a of r.selections)
6842
6842
  switch (a.kind) {
6843
- case g.FIELD: {
6843
+ case m.FIELD: {
6844
6844
  if (!qr(n, a))
6845
6845
  continue;
6846
6846
  const l = Lf(a), u = s.get(l);
6847
6847
  u !== void 0 ? u.push(a) : s.set(l, [a]);
6848
6848
  break;
6849
6849
  }
6850
- case g.INLINE_FRAGMENT: {
6850
+ case m.INLINE_FRAGMENT: {
6851
6851
  if (!qr(n, a) || !Eo(t, a, i))
6852
6852
  continue;
6853
6853
  rs(
@@ -6861,7 +6861,7 @@ function rs(t, e, n, i, r, s, o) {
6861
6861
  );
6862
6862
  break;
6863
6863
  }
6864
- case g.FRAGMENT_SPREAD: {
6864
+ case m.FRAGMENT_SPREAD: {
6865
6865
  const l = a.name.value;
6866
6866
  if (o.has(l) || !qr(n, a))
6867
6867
  continue;
@@ -6883,11 +6883,11 @@ function rs(t, e, n, i, r, s, o) {
6883
6883
  }
6884
6884
  }
6885
6885
  function qr(t, e) {
6886
- const n = qn(xs, e, t);
6886
+ const n = qn(Fs, e, t);
6887
6887
  if ((n == null ? void 0 : n.if) === !0)
6888
6888
  return !1;
6889
6889
  const i = qn(
6890
- Fs,
6890
+ xs,
6891
6891
  e,
6892
6892
  t
6893
6893
  );
@@ -6911,7 +6911,7 @@ function kf(t) {
6911
6911
  if (i) {
6912
6912
  const r = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
6913
6913
  for (const u of o.definitions)
6914
- u.kind === g.FRAGMENT_DEFINITION && (a[u.name.value] = u);
6914
+ u.kind === m.FRAGMENT_DEFINITION && (a[u.name.value] = u);
6915
6915
  const l = Cf(
6916
6916
  n,
6917
6917
  a,
@@ -6977,7 +6977,7 @@ function $f(t) {
6977
6977
  e[a.name] = !a.isRepeatable;
6978
6978
  const r = t.getDocument().definitions;
6979
6979
  for (const a of r)
6980
- a.kind === g.DIRECTIVE_DEFINITION && (e[a.name.value] = !a.repeatable);
6980
+ a.kind === m.DIRECTIVE_DEFINITION && (e[a.name.value] = !a.repeatable);
6981
6981
  const s = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
6982
6982
  return {
6983
6983
  // Many different AST nodes may contain directives. Rather than listing
@@ -6987,7 +6987,7 @@ function $f(t) {
6987
6987
  if (!("directives" in a) || !a.directives)
6988
6988
  return;
6989
6989
  let l;
6990
- if (a.kind === g.SCHEMA_DEFINITION || a.kind === g.SCHEMA_EXTENSION)
6990
+ if (a.kind === m.SCHEMA_DEFINITION || a.kind === m.SCHEMA_EXTENSION)
6991
6991
  l = s;
6992
6992
  else if (ks(a) || ul(a)) {
6993
6993
  const u = a.name.value;
@@ -7135,7 +7135,7 @@ function Vf(t) {
7135
7135
  ObjectField(n) {
7136
7136
  const i = St(t.getParentInputType());
7137
7137
  if (!t.getInputType() && Ae(i)) {
7138
- const s = gn(
7138
+ const s = mn(
7139
7139
  n.name.value,
7140
7140
  Object.keys(i.getFields())
7141
7141
  );
@@ -7227,7 +7227,7 @@ function qf(t, e, n, i, r) {
7227
7227
  );
7228
7228
  return;
7229
7229
  }
7230
- const l = (s = i[o[0]]) === null || s === void 0 ? void 0 : s.value, u = !l || l.kind === g.NULL, f = (l == null ? void 0 : l.kind) === g.VARIABLE;
7230
+ const l = (s = i[o[0]]) === null || s === void 0 ? void 0 : s.value, u = !l || l.kind === m.NULL, f = (l == null ? void 0 : l.kind) === m.VARIABLE;
7231
7231
  if (u) {
7232
7232
  t.reportError(
7233
7233
  new A(`Field "${n.name}.${o[0]}" must be non-null.`, {
@@ -7238,7 +7238,7 @@ function qf(t, e, n, i, r) {
7238
7238
  }
7239
7239
  if (f) {
7240
7240
  const d = l.name.value;
7241
- r[d].type.kind !== g.NON_NULL_TYPE && t.reportError(
7241
+ r[d].type.kind !== m.NON_NULL_TYPE && t.reportError(
7242
7242
  new A(
7243
7243
  `Variable "${d}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,
7244
7244
  {
@@ -7307,14 +7307,14 @@ function Bf(t) {
7307
7307
  }
7308
7308
  function zf(t, e, n, i, r) {
7309
7309
  if (Q(i) && !Q(e)) {
7310
- if (!(n != null && n.kind !== g.NULL) && !(r !== void 0))
7310
+ if (!(n != null && n.kind !== m.NULL) && !(r !== void 0))
7311
7311
  return !1;
7312
7312
  const a = i.ofType;
7313
- return xn(t, e, a);
7313
+ return Fn(t, e, a);
7314
7314
  }
7315
- return xn(t, e, i);
7315
+ return Fn(t, e, i);
7316
7316
  }
7317
- const Qf = Object.freeze([lf]), gl = Object.freeze([
7317
+ const Qf = Object.freeze([lf]), ml = Object.freeze([
7318
7318
  Qc,
7319
7319
  Mf,
7320
7320
  of,
@@ -7363,7 +7363,7 @@ class Wf {
7363
7363
  else {
7364
7364
  n = /* @__PURE__ */ Object.create(null);
7365
7365
  for (const i of this.getDocument().definitions)
7366
- i.kind === g.FRAGMENT_DEFINITION && (n[i.name.value] = i);
7366
+ i.kind === m.FRAGMENT_DEFINITION && (n[i.name.value] = i);
7367
7367
  this._fragments = n;
7368
7368
  }
7369
7369
  return n[e];
@@ -7376,7 +7376,7 @@ class Wf {
7376
7376
  let r;
7377
7377
  for (; r = i.pop(); )
7378
7378
  for (const s of r.selections)
7379
- s.kind === g.FRAGMENT_SPREAD ? n.push(s) : s.selectionSet && i.push(s.selectionSet);
7379
+ s.kind === m.FRAGMENT_SPREAD ? n.push(s) : s.selectionSet && i.push(s.selectionSet);
7380
7380
  this._fragmentSpreads.set(e, n);
7381
7381
  }
7382
7382
  return n;
@@ -7466,7 +7466,7 @@ class Hf extends Wf {
7466
7466
  return this._typeInfo.getEnumValue();
7467
7467
  }
7468
7468
  }
7469
- function Jf(t, e, n = gl, i, r = new al(t)) {
7469
+ function Jf(t, e, n = ml, i, r = new al(t)) {
7470
7470
  var s;
7471
7471
  const o = (s = i == null ? void 0 : i.maxErrors) !== null && s !== void 0 ? s : 100;
7472
7472
  e || H(!1, "Must provide document."), ol(t);
@@ -7543,7 +7543,7 @@ const To = function(t, e, n, i) {
7543
7543
  function Ps(t, e) {
7544
7544
  let n = null;
7545
7545
  for (const r of t.definitions)
7546
- if (r.kind === g.OPERATION_DEFINITION) {
7546
+ if (r.kind === m.OPERATION_DEFINITION) {
7547
7547
  var i;
7548
7548
  if (e == null) {
7549
7549
  if (n)
@@ -7581,7 +7581,7 @@ function Zf(t) {
7581
7581
  const p = h.toConfig();
7582
7582
  return new Ut({
7583
7583
  ...p,
7584
- locations: ml(p.locations, (m) => m),
7584
+ locations: gl(p.locations, (g) => g),
7585
7585
  args: a(p.args)
7586
7586
  });
7587
7587
  }
@@ -7605,7 +7605,7 @@ function Zf(t) {
7605
7605
  return Gr(h).map(r);
7606
7606
  }
7607
7607
  function d(h) {
7608
- if (mn(h) || rl(h))
7608
+ if (gn(h) || rl(h))
7609
7609
  return h;
7610
7610
  if (ee(h)) {
7611
7611
  const p = h.toConfig();
@@ -7634,12 +7634,12 @@ function Zf(t) {
7634
7634
  const p = h.toConfig();
7635
7635
  return new Vn({
7636
7636
  ...p,
7637
- values: $i(p.values, (m) => m)
7637
+ values: $i(p.values, (g) => g)
7638
7638
  });
7639
7639
  }
7640
7640
  if (Ae(h)) {
7641
7641
  const p = h.toConfig();
7642
- return new gi({
7642
+ return new mi({
7643
7643
  ...p,
7644
7644
  fields: () => u(p.fields)
7645
7645
  });
@@ -7654,20 +7654,20 @@ function $i(t, e) {
7654
7654
  return n;
7655
7655
  }
7656
7656
  function Gr(t) {
7657
- return ml(t, (e) => e.name);
7657
+ return gl(t, (e) => e.name);
7658
7658
  }
7659
- function ml(t, e) {
7659
+ function gl(t, e) {
7660
7660
  return t.slice().sort((n, i) => {
7661
7661
  const r = e(n), s = e(i);
7662
7662
  return wi(r, s);
7663
7663
  });
7664
7664
  }
7665
- class Fi extends A {
7665
+ class xi extends A {
7666
7666
  constructor(e, n) {
7667
7667
  super(e, n), this.name = "PothosError";
7668
7668
  }
7669
7669
  }
7670
- class z extends Fi {
7670
+ class z extends xi {
7671
7671
  constructor(e, n) {
7672
7672
  super(e, n), this.name = "PothosSchemaError";
7673
7673
  }
@@ -7787,7 +7787,7 @@ class nd {
7787
7787
  * @return {object} - The data object for the current request
7788
7788
  */
7789
7789
  createRequestData(e) {
7790
- throw new Fi("createRequestData not implemented");
7790
+ throw new xi("createRequestData not implemented");
7791
7791
  }
7792
7792
  /**
7793
7793
  * Returns a data object for the current request. requires `createRequestData` to be implemented
@@ -7845,7 +7845,7 @@ class rd extends nd {
7845
7845
  super(e, "PothosMergedPlugin"), id(this, "plugins", void 0), this.plugins = n;
7846
7846
  }
7847
7847
  }
7848
- const yn = Symbol.for("Pothos.outputShapeKey"), Wn = Symbol.for("Pothos.parentShapeKey"), xi = Symbol.for("Pothos.inputShapeKey"), sd = Symbol.for("Pothos.inputFieldShapeKey"), od = Symbol.for("Pothos.outputFieldShapeKey"), Er = Symbol.for("Pothos.typeBrandKey");
7848
+ const yn = Symbol.for("Pothos.outputShapeKey"), Wn = Symbol.for("Pothos.parentShapeKey"), Fi = Symbol.for("Pothos.inputShapeKey"), sd = Symbol.for("Pothos.inputFieldShapeKey"), od = Symbol.for("Pothos.outputFieldShapeKey"), Er = Symbol.for("Pothos.typeBrandKey");
7849
7849
  function vo(t, e, n) {
7850
7850
  return e in t ? Object.defineProperty(t, e, {
7851
7851
  value: n,
@@ -7870,7 +7870,7 @@ function En(t, e, n) {
7870
7870
  writable: !0
7871
7871
  }) : t[e] = n, t;
7872
7872
  }
7873
- let ad = yn, ld = Wn, ud = xi;
7873
+ let ad = yn, ld = Wn, ud = Fi;
7874
7874
  class yl extends de {
7875
7875
  constructor(e) {
7876
7876
  super("Scalar", e), En(this, "kind", "Scalar"), En(this, "$inferType", void 0), En(this, "$inferInput", void 0), En(this, ad, void 0), En(this, ld, void 0), En(this, ud, void 0);
@@ -7897,8 +7897,8 @@ function Kn(t, e, n) {
7897
7897
  writable: !0
7898
7898
  }) : t[e] = n, t;
7899
7899
  }
7900
- let fd = xi;
7901
- class Fr extends de {
7900
+ let fd = Fi;
7901
+ class xr extends de {
7902
7902
  constructor(e, n) {
7903
7903
  super("InputList", `InputList<${String(e)}>`), Kn(this, "kind", "InputList"), Kn(this, fd, void 0), Kn(this, "$inferInput", void 0), Kn(this, "listType", void 0), Kn(this, "required", void 0), this.listType = e, this.required = n;
7904
7904
  }
@@ -7912,7 +7912,7 @@ function Tn(t, e, n) {
7912
7912
  }) : t[e] = n, t;
7913
7913
  }
7914
7914
  let dd = yn, hd = Wn;
7915
- class xr extends de {
7915
+ class Fr extends de {
7916
7916
  constructor(e, n) {
7917
7917
  super("List", `List<${String(e)}>`), Tn(this, "kind", "List"), Tn(this, "$inferType", void 0), Tn(this, dd, void 0), Tn(this, hd, void 0), Tn(this, "listType", void 0), Tn(this, "nullable", void 0), this.listType = e, this.nullable = n;
7918
7918
  }
@@ -7932,7 +7932,7 @@ function pd(t) {
7932
7932
  });
7933
7933
  }), e;
7934
7934
  }
7935
- function gd(t, e) {
7935
+ function md(t, e) {
7936
7936
  const n = {};
7937
7937
  return Object.keys(t).filter((i) => typeof t[t[i]] != "number").forEach((i) => {
7938
7938
  n[i] = {
@@ -7950,7 +7950,7 @@ function ss(t, e, n) {
7950
7950
  type: ss(t[0], e, i),
7951
7951
  nullable: r
7952
7952
  };
7953
- if (t instanceof xr)
7953
+ if (t instanceof Fr)
7954
7954
  return {
7955
7955
  kind: "List",
7956
7956
  type: ss(t.listType, e, t.nullable),
@@ -7973,7 +7973,7 @@ function os(t, e, n) {
7973
7973
  type: os(t[0], e, i),
7974
7974
  required: r
7975
7975
  };
7976
- if (t instanceof Fr)
7976
+ if (t instanceof xr)
7977
7977
  return {
7978
7978
  kind: "List",
7979
7979
  type: os(t.listType, e, t.required),
@@ -7988,7 +7988,7 @@ function os(t, e, n) {
7988
7988
  };
7989
7989
  throw new z(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
7990
7990
  }
7991
- function md(t) {
7991
+ function gd(t) {
7992
7992
  throw new TypeError(`Unexpected value: ${t}`);
7993
7993
  }
7994
7994
  function yd(t) {
@@ -8030,7 +8030,7 @@ function bd(t) {
8030
8030
  return typeof t == "object" && t !== null && Er in t ? t[Er] : null;
8031
8031
  }
8032
8032
  function as(t) {
8033
- return Array.isArray(t) ? as(t[0]) : t instanceof xr || t instanceof Fr ? as(t.listType) : t;
8033
+ return Array.isArray(t) ? as(t[0]) : t instanceof Fr || t instanceof xr ? as(t.listType) : t;
8034
8034
  }
8035
8035
  function Ye(t, e, n) {
8036
8036
  return e in t ? Object.defineProperty(t, e, {
@@ -8069,7 +8069,7 @@ class Ed {
8069
8069
  }), this.configStore.typeConfigs.forEach((e) => {
8070
8070
  e.kind === "InputObject" && this.buildTypeFromConfig(e);
8071
8071
  }), this.types.forEach((e) => {
8072
- e instanceof gi && e.getFields();
8072
+ e instanceof mi && e.getFields();
8073
8073
  }), this.configStore.typeConfigs.forEach((e) => {
8074
8074
  e.kind === "Interface" && this.buildTypeFromConfig(e);
8075
8075
  }), this.configStore.typeConfigs.forEach((e) => {
@@ -8107,7 +8107,7 @@ class Ed {
8107
8107
  this.addType(i, this.buildObject(n));
8108
8108
  break;
8109
8109
  default:
8110
- md(n);
8110
+ gd(n);
8111
8111
  }
8112
8112
  }
8113
8113
  addType(e, n) {
@@ -8131,12 +8131,12 @@ class Ed {
8131
8131
  const l = {
8132
8132
  ...a
8133
8133
  }, u = /* @__PURE__ */ new Map();
8134
- Object.keys(l.args).forEach((m) => {
8135
- u.set(m, l.args[m]);
8134
+ Object.keys(l.args).forEach((g) => {
8135
+ u.set(g, l.args[g]);
8136
8136
  });
8137
8137
  const f = this.buildInputFields(u), d = {};
8138
- Object.keys(l.args).forEach((m) => {
8139
- d[m] = this.inputFieldConfigs.get(l.args[m]);
8138
+ Object.keys(l.args).forEach((g) => {
8139
+ d[g] = this.inputFieldConfigs.get(l.args[g]);
8140
8140
  }), l.args = d;
8141
8141
  var i;
8142
8142
  const h = this.plugin.wrapResolve((i = l.resolve) !== null && i !== void 0 ? i : tr, l), p = this.plugin.wrapSubscribe(l.subscribe, l);
@@ -8216,7 +8216,7 @@ class Ed {
8216
8216
  }
8217
8217
  getOutputType(e) {
8218
8218
  const n = this.getType(e);
8219
- if (n instanceof gi)
8219
+ if (n instanceof mi)
8220
8220
  throw new z(`Expected ${String(e)} to be an output type but it was defined as an InputObject`);
8221
8221
  return n;
8222
8222
  }
@@ -8333,7 +8333,7 @@ class Ed {
8333
8333
  });
8334
8334
  }
8335
8335
  buildInputObject(e) {
8336
- const n = new gi({
8336
+ const n = new mi({
8337
8337
  ...e,
8338
8338
  extensions: {
8339
8339
  ...e.extensions,
@@ -8377,7 +8377,7 @@ class Ed {
8377
8377
  this.pluginList = ((r = e.options.plugins) !== null && r !== void 0 ? r : []).map((s) => {
8378
8378
  const o = this.builder.constructor.plugins[s];
8379
8379
  if (!o)
8380
- throw new Fi(`No plugin named ${s} was registered`);
8380
+ throw new xi(`No plugin named ${s} was registered`);
8381
8381
  return i[s] = new o(this, s), i[s];
8382
8382
  }), this.pluginMap = i, this.plugin = new rd(this, this.pluginList);
8383
8383
  }
@@ -8390,7 +8390,7 @@ function Br(t, e, n) {
8390
8390
  writable: !0
8391
8391
  }) : t[e] = n, t;
8392
8392
  }
8393
- let Td = xi;
8393
+ let Td = Fi;
8394
8394
  class vd extends de {
8395
8395
  constructor(e, n) {
8396
8396
  super(e, n), Br(this, "kind", void 0), Br(this, "$inferInput", void 0), Br(this, Td, void 0), this.kind = e;
@@ -8468,7 +8468,7 @@ class Od {
8468
8468
  throw this.pendingFields.has(e) ? new z(`Missing implementation for ${this.describeRef(this.pendingFields.get(e))} used in field ${n} of ${i.name}`) : new z(`Missing definition for ${String(e)}`);
8469
8469
  const o = this.fieldRefs.get(e)(n, r, i);
8470
8470
  if (s && o.graphqlKind !== s)
8471
- throw new Fi(`Expected ref for field named ${n} to resolve to a ${s} type, but got ${o.graphqlKind}`);
8471
+ throw new xi(`Expected ref for field named ${n} to resolve to a ${s} type, but got ${o.graphqlKind}`);
8472
8472
  return o;
8473
8473
  }
8474
8474
  associateRefWithName(e, n) {
@@ -8496,7 +8496,7 @@ class Od {
8496
8496
  i = this.typeConfigs.get(e);
8497
8497
  } else if (this.refsToName.has(e))
8498
8498
  i = this.typeConfigs.get(this.refsToName.get(e));
8499
- else throw e instanceof xr || e instanceof Fr ? new z(`Expected a base type but got a ${e.kind} of ${String(e.listType)}`) : new z(`Ref ${String(e)} has not been implemented`);
8499
+ else throw e instanceof Fr || e instanceof xr ? new z(`Expected a base type but got a ${e.kind} of ${String(e.listType)}`) : new z(`Ref ${String(e)} has not been implemented`);
8500
8500
  if (n && i.graphqlKind !== n)
8501
8501
  throw new z(`Expected ref to resolve to a ${n} type, but got ${i.kind}`);
8502
8502
  return i;
@@ -8714,7 +8714,7 @@ class ls {
8714
8714
  "String"
8715
8715
  ])), $e(this, "listRef", (r, s) => {
8716
8716
  var o;
8717
- return new Fr(r, (o = s == null ? void 0 : s.required) !== null && o !== void 0 ? o : !0);
8717
+ return new xr(r, (o = s == null ? void 0 : s.required) !== null && o !== void 0 ? o : !0);
8718
8718
  }), this.builder = e, this.kind = n, this.typename = i;
8719
8719
  }
8720
8720
  }
@@ -8727,7 +8727,7 @@ function Xn(t, e, n) {
8727
8727
  }) : t[e] = n, t;
8728
8728
  }
8729
8729
  let Ad = od;
8730
- class Fd {
8730
+ class xd {
8731
8731
  toString() {
8732
8732
  return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
8733
8733
  }
@@ -8743,16 +8743,16 @@ function ji(t, e, n) {
8743
8743
  writable: !0
8744
8744
  }) : t[e] = n, t;
8745
8745
  }
8746
- class xd {
8746
+ class Fd {
8747
8747
  createField(e) {
8748
- const n = new Fd(this.kind, this.typename);
8748
+ const n = new xd(this.kind, this.typename);
8749
8749
  var i;
8750
8750
  return this.builder.configStore.addFieldRef(n, e.type, (i = e.args) !== null && i !== void 0 ? i : {}, (r, s, o) => {
8751
8751
  var a;
8752
8752
  const l = {};
8753
8753
  e.args && Object.keys(e.args).forEach((p) => {
8754
- const m = e.args[p];
8755
- l[p] = this.builder.configStore.createFieldConfig(m, p, o, r, "Arg");
8754
+ const g = e.args[p];
8755
+ l[p] = this.builder.configStore.createFieldConfig(g, p, o, r, "Arg");
8756
8756
  });
8757
8757
  var u;
8758
8758
  let f = (u = e.resolve) !== null && u !== void 0 ? u : () => {
@@ -8803,7 +8803,7 @@ function Rd(t, e, n) {
8803
8803
  writable: !0
8804
8804
  }) : t[e] = n, t;
8805
8805
  }
8806
- class Rr extends xd {
8806
+ class Rr extends Fd {
8807
8807
  /**
8808
8808
  * Create a Boolean field
8809
8809
  * @param {PothosSchemaTypes.FieldOptions} options - Options for this field
@@ -8943,7 +8943,7 @@ class Rr extends xd {
8943
8943
  }
8944
8944
  listRef(e, n) {
8945
8945
  var i;
8946
- return new xr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
8946
+ return new Fr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
8947
8947
  }
8948
8948
  constructor(...e) {
8949
8949
  super(...e), Rd(this, "arg", new ls(this.builder, "Arg", this.typename).argBuilder());
@@ -9123,7 +9123,7 @@ function Zn(t, e, n) {
9123
9123
  writable: !0
9124
9124
  }) : t[e] = n, t;
9125
9125
  }
9126
- let Cd = yn, Ld = xi;
9126
+ let Cd = yn, Ld = Fi;
9127
9127
  class kd extends de {
9128
9128
  constructor(e) {
9129
9129
  super("Enum", e), Zn(this, "kind", "Enum"), Zn(this, "$inferType", void 0), Zn(this, "$inferInput", void 0), Zn(this, Cd, void 0), Zn(this, Ld, void 0);
@@ -9137,7 +9137,7 @@ function nr(t, e, n) {
9137
9137
  writable: !0
9138
9138
  }) : t[e] = n, t;
9139
9139
  }
9140
- let Dd = xi;
9140
+ let Dd = Fi;
9141
9141
  class Tl extends de {
9142
9142
  constructor(e) {
9143
9143
  super("InputObject", e), nr(this, "kind", "InputObject"), nr(this, "$inferInput", void 0), nr(this, Dd, void 0);
@@ -9220,7 +9220,7 @@ function In(t, e, n) {
9220
9220
  let js = class {
9221
9221
  static registerPlugin(e, n) {
9222
9222
  if (!this.allowPluginReRegistration && this.plugins[e])
9223
- throw new Fi(`Received multiple implementations for plugin ${e}`);
9223
+ throw new xi(`Received multiple implementations for plugin ${e}`);
9224
9224
  this.plugins[e] = n;
9225
9225
  }
9226
9226
  objectType(e, n, i) {
@@ -9362,7 +9362,7 @@ let js = class {
9362
9362
  }
9363
9363
  enumType(e, n) {
9364
9364
  Dt(e);
9365
- const i = typeof e == "string" ? e : n.name, r = new kd(i), s = typeof e == "object" ? gd(
9365
+ const i = typeof e == "string" ? e : n.name, r = new kd(i), s = typeof e == "object" ? md(
9366
9366
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
9367
9367
  e,
9368
9368
  n == null ? void 0 : n.values
@@ -9476,21 +9476,21 @@ function Sl(t, e, n) {
9476
9476
  }
9477
9477
  function Ms(t, e, n) {
9478
9478
  switch (e.kind) {
9479
- case g.STRING:
9480
- case g.BOOLEAN:
9479
+ case m.STRING:
9480
+ case m.BOOLEAN:
9481
9481
  return e.value;
9482
- case g.INT:
9483
- case g.FLOAT:
9482
+ case m.INT:
9483
+ case m.FLOAT:
9484
9484
  return parseFloat(e.value);
9485
- case g.OBJECT:
9485
+ case m.OBJECT:
9486
9486
  return Sl(t, e, n);
9487
- case g.LIST:
9487
+ case m.LIST:
9488
9488
  return e.values.map(function(i) {
9489
9489
  return Ms(t, i, n);
9490
9490
  });
9491
- case g.NULL:
9491
+ case m.NULL:
9492
9492
  return null;
9493
- case g.VARIABLE:
9493
+ case m.VARIABLE:
9494
9494
  return n ? n[e.name.value] : void 0;
9495
9495
  default:
9496
9496
  throw new TypeError(t + " cannot represent value: " + se(e));
@@ -9512,7 +9512,7 @@ var Wd = new _t({
9512
9512
  serialize: _o,
9513
9513
  parseValue: _o,
9514
9514
  parseLiteral: function(e, n) {
9515
- if (e.kind !== g.OBJECT)
9515
+ if (e.kind !== m.OBJECT)
9516
9516
  throw new TypeError("JSONObject cannot represent non-object value: " + se(e));
9517
9517
  return Sl("JSONObject", e, n);
9518
9518
  }
@@ -9651,8 +9651,8 @@ function Il(t, e, n = {}) {
9651
9651
  continue;
9652
9652
  }
9653
9653
  const f = u.value;
9654
- let d = f.kind === g.NULL;
9655
- if (f.kind === g.VARIABLE) {
9654
+ let d = f.kind === m.NULL;
9655
+ if (f.kind === m.VARIABLE) {
9656
9656
  const p = f.name.value;
9657
9657
  if (n == null || !Ol(n, p)) {
9658
9658
  if (l !== void 0)
@@ -9722,30 +9722,30 @@ function rh(t) {
9722
9722
  l = /* @__PURE__ */ new WeakMap(), e.set(i, l);
9723
9723
  const p = /* @__PURE__ */ new WeakMap();
9724
9724
  l.set(r, p);
9725
- const m = /* @__PURE__ */ new WeakMap();
9726
- p.set(s, m);
9725
+ const g = /* @__PURE__ */ new WeakMap();
9726
+ p.set(s, g);
9727
9727
  const v = /* @__PURE__ */ new WeakMap();
9728
- m.set(o, v);
9729
- const x = t(i, r, s, o, a);
9730
- return v.set(a, x), x;
9728
+ g.set(o, v);
9729
+ const F = t(i, r, s, o, a);
9730
+ return v.set(a, F), F;
9731
9731
  }
9732
9732
  let u = l.get(r);
9733
9733
  if (!u) {
9734
9734
  u = /* @__PURE__ */ new WeakMap(), l.set(r, u);
9735
9735
  const p = /* @__PURE__ */ new WeakMap();
9736
9736
  u.set(s, p);
9737
- const m = /* @__PURE__ */ new WeakMap();
9738
- p.set(o, m);
9737
+ const g = /* @__PURE__ */ new WeakMap();
9738
+ p.set(o, g);
9739
9739
  const v = t(i, r, s, o, a);
9740
- return m.set(a, v), v;
9740
+ return g.set(a, v), v;
9741
9741
  }
9742
9742
  let f = u.get(s);
9743
9743
  if (!f) {
9744
9744
  f = /* @__PURE__ */ new WeakMap(), u.set(s, f);
9745
9745
  const p = /* @__PURE__ */ new WeakMap();
9746
9746
  f.set(o, p);
9747
- const m = t(i, r, s, o, a);
9748
- return p.set(a, m), m;
9747
+ const g = t(i, r, s, o, a);
9748
+ return p.set(a, g), g;
9749
9749
  }
9750
9750
  let d = f.get(o);
9751
9751
  if (!d) {
@@ -9900,16 +9900,16 @@ const lh = new Ut({
9900
9900
  function Nn(t, e, n, i, r, s, o, a) {
9901
9901
  for (const l of r.selections)
9902
9902
  switch (l.kind) {
9903
- case g.FIELD: {
9903
+ case m.FIELD: {
9904
9904
  if (!zr(n, l))
9905
9905
  continue;
9906
9906
  s.add(ch(l), l);
9907
9907
  break;
9908
9908
  }
9909
- case g.INLINE_FRAGMENT: {
9909
+ case m.INLINE_FRAGMENT: {
9910
9910
  if (!zr(n, l) || !Ao(t, l, i))
9911
9911
  continue;
9912
- const u = Fo(n, l);
9912
+ const u = xo(n, l);
9913
9913
  if (u) {
9914
9914
  const f = new Tr();
9915
9915
  Nn(t, e, n, i, l.selectionSet, f, o, a), o.push({
@@ -9920,11 +9920,11 @@ function Nn(t, e, n, i, r, s, o, a) {
9920
9920
  Nn(t, e, n, i, l.selectionSet, s, o, a);
9921
9921
  break;
9922
9922
  }
9923
- case g.FRAGMENT_SPREAD: {
9923
+ case m.FRAGMENT_SPREAD: {
9924
9924
  const u = l.name.value;
9925
9925
  if (!zr(n, l))
9926
9926
  continue;
9927
- const f = Fo(n, l);
9927
+ const f = xo(n, l);
9928
9928
  if (a.has(u) && !f)
9929
9929
  continue;
9930
9930
  const d = e[u];
@@ -9947,10 +9947,10 @@ function Al(t, e, n, i, r) {
9947
9947
  return Nn(t, e, n, i, r, s, o, /* @__PURE__ */ new Set()), { fields: s, patches: o };
9948
9948
  }
9949
9949
  function zr(t, e) {
9950
- const n = qn(xs, e, t);
9950
+ const n = qn(Fs, e, t);
9951
9951
  if ((n == null ? void 0 : n.if) === !0)
9952
9952
  return !1;
9953
- const i = qn(Fs, e, t);
9953
+ const i = qn(xs, e, t);
9954
9954
  return (i == null ? void 0 : i.if) !== !1;
9955
9955
  }
9956
9956
  function Ao(t, e, n) {
@@ -9963,7 +9963,7 @@ function Ao(t, e, n) {
9963
9963
  function ch(t) {
9964
9964
  return t.alias ? t.alias.value : t.name.value;
9965
9965
  }
9966
- function Fo(t, e) {
9966
+ function xo(t, e) {
9967
9967
  const n = qn(lh, e, t);
9968
9968
  if (n && n.if !== !1)
9969
9969
  return {
@@ -10009,7 +10009,7 @@ function Us(t, e) {
10009
10009
  }
10010
10010
  hh(t).add(e);
10011
10011
  }
10012
- const Fl = Lr(function(e) {
10012
+ const xl = Lr(function(e) {
10013
10013
  return new Promise((n, i) => {
10014
10014
  if (e.aborted) {
10015
10015
  i(e.reason);
@@ -10023,14 +10023,14 @@ const Fl = Lr(function(e) {
10023
10023
  function ph(t) {
10024
10024
  return t != null && typeof t == "object" && "errors" in t;
10025
10025
  }
10026
- function gh(t) {
10026
+ function mh(t) {
10027
10027
  return t != null && typeof t.toString == "function";
10028
10028
  }
10029
10029
  function Bn(t) {
10030
10030
  return t instanceof A;
10031
10031
  }
10032
- function xl(t) {
10033
- return t instanceof A ? t.originalError != null ? xl(t.originalError) : !0 : !1;
10032
+ function Fl(t) {
10033
+ return t instanceof A ? t.originalError != null ? Fl(t.originalError) : !0 : !1;
10034
10034
  }
10035
10035
  function Rl(t) {
10036
10036
  var e;
@@ -10057,7 +10057,7 @@ function rr(t, e, n) {
10057
10057
  extensions: {
10058
10058
  unexpected: !0
10059
10059
  }
10060
- })) : gh(t) ? i.add(V(t.toString(), {
10060
+ })) : mh(t) ? i.add(V(t.toString(), {
10061
10061
  extensions: {
10062
10062
  unexpected: !0
10063
10063
  }
@@ -10079,7 +10079,7 @@ function Vs(t, e = {}, n = !1) {
10079
10079
  if (u.extensions.http.headers && Object.assign(e, u.extensions.http.headers), n && u.extensions.http.spec)
10080
10080
  continue;
10081
10081
  u.extensions.http.status && (!i || u.extensions.http.status > i) && (i = u.extensions.http.status);
10082
- } else (!xl(u) || (l = u.extensions) != null && l.unexpected) && (r = !0);
10082
+ } else (!Fl(u) || (l = u.extensions) != null && l.unexpected) && (r = !0);
10083
10083
  else
10084
10084
  i || (i = 200);
10085
10085
  return i || (r && !("data" in t) ? i = 500 : i = 200), {
@@ -10087,7 +10087,7 @@ function Vs(t, e = {}, n = !1) {
10087
10087
  headers: e
10088
10088
  };
10089
10089
  }
10090
- function mh(t) {
10090
+ function gh(t) {
10091
10091
  return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
10092
10092
  t.some(Bn);
10093
10093
  }
@@ -10097,14 +10097,14 @@ const en = {
10097
10097
  magenta: "\x1B[35m",
10098
10098
  cyan: "\x1B[36m",
10099
10099
  reset: "\x1B[0m"
10100
- }, xo = en.yellow + "WARN" + en.reset, Ro = en.cyan + "INFO" + en.reset, Co = en.red + "ERR" + en.reset, Lo = en.magenta + "DEBUG" + en.reset, ei = {
10100
+ }, Fo = en.yellow + "WARN" + en.reset, Ro = en.cyan + "INFO" + en.reset, Co = en.red + "ERR" + en.reset, Lo = en.magenta + "DEBUG" + en.reset, ei = {
10101
10101
  debug: 0,
10102
10102
  info: 1,
10103
10103
  warn: 2,
10104
10104
  error: 3,
10105
10105
  silent: 4
10106
10106
  }, zi = () => {
10107
- }, Dr = (t) => (...e) => console.log(t, ...e), yh = console.debug ? (...t) => console.debug(Lo, ...t) : Dr(Lo), bh = console.info ? (...t) => console.info(Ro, ...t) : Dr(Ro), Eh = console.warn ? (...t) => console.warn(xo, ...t) : Dr(xo), Th = console.error ? (...t) => console.error(Co, ...t) : Dr(Co), Qr = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
10107
+ }, Dr = (t) => (...e) => console.log(t, ...e), yh = console.debug ? (...t) => console.debug(Lo, ...t) : Dr(Lo), bh = console.info ? (...t) => console.info(Ro, ...t) : Dr(Ro), Eh = console.warn ? (...t) => console.warn(Fo, ...t) : Dr(Fo), Th = console.error ? (...t) => console.error(Co, ...t) : Dr(Co), Qr = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
10108
10108
  const n = ei[t];
10109
10109
  return {
10110
10110
  debug: n > ei.debug ? zi : yh,
@@ -10204,7 +10204,7 @@ const Nh = (t) => {
10204
10204
  };
10205
10205
  class Ke {
10206
10206
  constructor(e) {
10207
- F(this, "state");
10207
+ x(this, "state");
10208
10208
  let n;
10209
10209
  try {
10210
10210
  n = e();
@@ -10266,8 +10266,8 @@ class Ah extends Error {
10266
10266
  // eslint-disable-next-line n/handle-callback-err
10267
10267
  constructor(n, i, r) {
10268
10268
  super(r);
10269
- F(this, "error");
10270
- F(this, "suppressed");
10269
+ x(this, "error");
10270
+ x(this, "suppressed");
10271
10271
  this.error = n, this.suppressed = i, this.name = "SuppressedError", Error.captureStackTrace(this, this.constructor);
10272
10272
  }
10273
10273
  }
@@ -10279,25 +10279,25 @@ const ke = {
10279
10279
  return Symbol.asyncDispose || Symbol.for("asyncDispose");
10280
10280
  }
10281
10281
  };
10282
- function Fh(t) {
10282
+ function xh(t) {
10283
10283
  return (t == null ? void 0 : t[ke.dispose]) != null;
10284
10284
  }
10285
- function xh(t) {
10285
+ function Fh(t) {
10286
10286
  return (t == null ? void 0 : t[ke.asyncDispose]) != null;
10287
10287
  }
10288
10288
  const ko = globalThis.SuppressedError || Ah;
10289
10289
  var Ea, Ta;
10290
10290
  class qs {
10291
10291
  constructor() {
10292
- F(this, "callbacks", []);
10293
- F(this, "_error");
10294
- F(this, Ea, "AsyncDisposableStack");
10292
+ x(this, "callbacks", []);
10293
+ x(this, "_error");
10294
+ x(this, Ea, "AsyncDisposableStack");
10295
10295
  }
10296
10296
  get disposed() {
10297
10297
  return this.callbacks.length === 0;
10298
10298
  }
10299
10299
  use(e) {
10300
- return xh(e) ? this.callbacks.push(() => e[ke.asyncDispose]()) : Fh(e) && this.callbacks.push(() => e[ke.dispose]()), e;
10300
+ return Fh(e) ? this.callbacks.push(() => e[ke.asyncDispose]()) : xh(e) && this.callbacks.push(() => e[ke.dispose]()), e;
10301
10301
  }
10302
10302
  adopt(e, n) {
10303
10303
  return n && this.callbacks.push(() => n(e)), e;
@@ -10341,7 +10341,7 @@ class qs {
10341
10341
  }
10342
10342
  }
10343
10343
  const Rh = globalThis.AsyncDisposableStack || qs;
10344
- function xt(t) {
10344
+ function Ft(t) {
10345
10345
  if (t instanceof Error)
10346
10346
  return t;
10347
10347
  if (typeof t == "object" && t != null && "message" in t && typeof t.message == "string") {
@@ -10406,7 +10406,7 @@ async function $o(t, e) {
10406
10406
  n[r] = await s;
10407
10407
  }));
10408
10408
  if (e) {
10409
- const r = Fl(e);
10409
+ const r = xl(e);
10410
10410
  return Promise.race([r, i]).then(() => n);
10411
10411
  }
10412
10412
  return i.then(() => n);
@@ -10504,7 +10504,7 @@ function Po(t, e) {
10504
10504
  const Ph = Lr(function(e) {
10505
10505
  const n = /* @__PURE__ */ Object.create(null);
10506
10506
  for (const i of e.definitions)
10507
- i.kind === g.FRAGMENT_DEFINITION && (n[i.name.value] = i);
10507
+ i.kind === m.FRAGMENT_DEFINITION && (n[i.name.value] = i);
10508
10508
  return n;
10509
10509
  });
10510
10510
  function Ll(t) {
@@ -10513,30 +10513,30 @@ function Ll(t) {
10513
10513
  ol(e);
10514
10514
  const d = Ph(n);
10515
10515
  let h;
10516
- for (const x of n.definitions)
10517
- switch (x.kind) {
10518
- case g.OPERATION_DEFINITION:
10516
+ for (const F of n.definitions)
10517
+ switch (F.kind) {
10518
+ case m.OPERATION_DEFINITION:
10519
10519
  if (o == null) {
10520
10520
  if (h !== void 0)
10521
10521
  return [
10522
10522
  V("Must provide operation name if query contains multiple operations.")
10523
10523
  ];
10524
- h = x;
10525
- } else ((v = x.name) == null ? void 0 : v.value) === o && (h = x);
10524
+ h = F;
10525
+ } else ((v = F.name) == null ? void 0 : v.value) === o && (h = F);
10526
10526
  break;
10527
10527
  }
10528
10528
  if (h == null)
10529
10529
  return o != null ? [V(`Unknown operation named "${o}".`)] : [V("Must provide an operation.")];
10530
- const p = h.variableDefinitions ?? [], m = Lh(e, p, s ?? {}, {
10530
+ const p = h.variableDefinitions ?? [], g = Lh(e, p, s ?? {}, {
10531
10531
  maxErrors: 50
10532
10532
  });
10533
- return m.errors ? m.errors : {
10533
+ return g.errors ? g.errors : {
10534
10534
  schema: e,
10535
10535
  fragments: d,
10536
10536
  rootValue: i,
10537
10537
  contextValue: r,
10538
10538
  operation: h,
10539
- variableValues: m.coerced,
10539
+ variableValues: g.coerced,
10540
10540
  fieldResolver: a ?? Vo,
10541
10541
  typeResolver: l ?? Qh,
10542
10542
  subscribeFieldResolver: u ?? Vo,
@@ -10600,26 +10600,26 @@ function kl(t, e, n, i, r, s) {
10600
10600
  const l = a.type, u = a.resolve ?? t.fieldResolver, f = Dl(t, a, i, e, r);
10601
10601
  try {
10602
10602
  const d = Il(a, i[0], t.variableValues), h = t.contextValue, p = u(n, d, h, f);
10603
- let m;
10604
- return he(p) ? m = p.then((v) => tn(t, l, i, f, r, v, s)) : m = tn(t, l, i, f, r, p, s), he(m) ? m.then(void 0, (v) => {
10603
+ let g;
10604
+ return he(p) ? g = p.then((v) => tn(t, l, i, f, r, v, s)) : g = tn(t, l, i, f, r, p, s), he(g) ? g.then(void 0, (v) => {
10605
10605
  if (v instanceof AggregateError)
10606
10606
  return new AggregateError(v.errors.map((T) => {
10607
- T = xt(T);
10607
+ T = Ft(T);
10608
10608
  const N = je(T, i, Oe(r)), O = Ze(N, l, o);
10609
10609
  return Je(t, r, s), O;
10610
10610
  }));
10611
- v = xt(v);
10612
- const x = je(v, i, Oe(r)), b = Ze(x, l, o);
10611
+ v = Ft(v);
10612
+ const F = je(v, i, Oe(r)), b = Ze(F, l, o);
10613
10613
  return Je(t, r, s), b;
10614
- }) : m;
10614
+ }) : g;
10615
10615
  } catch (d) {
10616
10616
  if (d instanceof AggregateError)
10617
10617
  return new AggregateError(d.errors.map((v) => {
10618
- const x = xt(v), b = je(x, i, Oe(r));
10618
+ const F = Ft(v), b = je(F, i, Oe(r));
10619
10619
  return Ze(b, l, o);
10620
10620
  }));
10621
- const h = xt(d), p = je(h, i, Oe(r)), m = Ze(p, l, o);
10622
- return Je(t, r, s), m;
10621
+ const h = Ft(d), p = je(h, i, Oe(r)), g = Ze(p, l, o);
10622
+ return Je(t, r, s), g;
10623
10623
  }
10624
10624
  }
10625
10625
  function Dl(t, e, n, i, r) {
@@ -10694,9 +10694,9 @@ async function qh(t, e, n, i, r, s, o) {
10694
10694
  try {
10695
10695
  if (p = await s.next(), p.done)
10696
10696
  break;
10697
- } catch (m) {
10698
- const v = xt(m), x = je(v, n, Oe(h));
10699
- f.push(Ze(x, e, a));
10697
+ } catch (g) {
10698
+ const v = Ft(g), F = je(v, n, Oe(h));
10699
+ f.push(Ze(F, e, a));
10700
10700
  break;
10701
10701
  }
10702
10702
  Pl(p.value, f, a, t, e, n, i, h, o) && (u = !0), d += 1;
@@ -10706,8 +10706,8 @@ async function qh(t, e, n, i, r, s, o) {
10706
10706
  function Gh(t, e, n, i, r, s, o) {
10707
10707
  const a = e.ofType, l = (o == null ? void 0 : o.errors) ?? t.errors;
10708
10708
  if (kr(s)) {
10709
- const m = s[Symbol.asyncIterator]();
10710
- return qh(t, a, n, i, r, m, o);
10709
+ const g = s[Symbol.asyncIterator]();
10710
+ return qh(t, a, n, i, r, g, o);
10711
10711
  }
10712
10712
  if (!th(s))
10713
10713
  throw V(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
@@ -10715,13 +10715,13 @@ function Gh(t, e, n, i, r, s, o) {
10715
10715
  let f = !1, d = o;
10716
10716
  const h = [];
10717
10717
  let p = 0;
10718
- for (const m of s) {
10718
+ for (const g of s) {
10719
10719
  const v = Hn(r, p, void 0);
10720
10720
  if (u && typeof u.initialCount == "number" && p >= u.initialCount) {
10721
- d = Kh(r, v, m, t, n, i, a, u.label, d), p++;
10721
+ d = Kh(r, v, g, t, n, i, a, u.label, d), p++;
10722
10722
  continue;
10723
10723
  }
10724
- Pl(m, h, l, t, a, n, i, v, o) && (f = !0), p++;
10724
+ Pl(g, h, l, t, a, n, i, v, o) && (f = !0), p++;
10725
10725
  }
10726
10726
  return f ? Promise.all(h) : h;
10727
10727
  }
@@ -10730,13 +10730,13 @@ function Pl(t, e, n, i, r, s, o, a, l) {
10730
10730
  let u;
10731
10731
  if (he(t) ? u = t.then((f) => tn(i, r, s, o, a, f, l)) : u = tn(i, r, s, o, a, t, l), he(u))
10732
10732
  return e.push(u.then(void 0, (f) => {
10733
- f = xt(f);
10733
+ f = Ft(f);
10734
10734
  const d = je(f, s, Oe(a)), h = Ze(d, r, n);
10735
10735
  return Je(i, a, l), h;
10736
10736
  })), !0;
10737
10737
  e.push(u);
10738
10738
  } catch (u) {
10739
- const f = xt(u), d = je(f, s, Oe(a)), h = Ze(d, r, n);
10739
+ const f = Ft(u), d = je(f, s, Oe(a)), h = Ze(d, r, n);
10740
10740
  Je(i, a, l), e.push(h);
10741
10741
  }
10742
10742
  return !1;
@@ -10908,12 +10908,12 @@ function Yh(t) {
10908
10908
  });
10909
10909
  const h = Hn(void 0, l, o.name), p = Dl(t, d, u, o, h);
10910
10910
  try {
10911
- const m = Il(d, u[0], r), v = t.contextValue, b = (d.subscribe ?? t.subscribeFieldResolver)(s, m, v, p);
10911
+ const g = Il(d, u[0], r), v = t.contextValue, b = (d.subscribe ?? t.subscribeFieldResolver)(s, g, v, p);
10912
10912
  return he(b) ? b.then(Bo).then(void 0, (T) => {
10913
10913
  throw je(T, u, Oe(h));
10914
10914
  }) : Bo(b, t.signal);
10915
- } catch (m) {
10916
- throw je(m, u, Oe(h));
10915
+ } catch (g) {
10916
+ throw je(g, u, Oe(h));
10917
10917
  }
10918
10918
  }
10919
10919
  function Bo(t, e) {
@@ -10957,13 +10957,13 @@ function Kh(t, e, n, i, r, s, o, a, l) {
10957
10957
  try {
10958
10958
  try {
10959
10959
  he(n) ? f = n.then((h) => tn(i, o, r, s, e, h, u)) : f = tn(i, o, r, s, e, n, u), he(f) && (f = f.then(void 0, (h) => {
10960
- h = xt(h);
10961
- const p = je(h, r, Oe(e)), m = Ze(p, o, u.errors);
10962
- return Je(i, e, u), m;
10960
+ h = Ft(h);
10961
+ const p = je(h, r, Oe(e)), g = Ze(p, o, u.errors);
10962
+ return Je(i, e, u), g;
10963
10963
  }));
10964
10964
  } catch (h) {
10965
- const p = xt(h), m = je(p, r, Oe(e));
10966
- f = Ze(m, o, u.errors), Je(i, e, u);
10965
+ const p = Ft(h), g = je(p, r, Oe(e));
10966
+ f = Ze(g, o, u.errors), Je(i, e, u);
10967
10967
  }
10968
10968
  } catch (h) {
10969
10969
  return u.errors.push(h), Je(i, t, u), u.addItems(null), u;
@@ -10979,7 +10979,7 @@ async function Xh(t, e, n, i, r, s, o) {
10979
10979
  return s.setIsCompletedIterator(), { done: f, value: void 0 };
10980
10980
  a = u;
10981
10981
  } catch (u) {
10982
- const f = xt(u), d = je(f, n, Oe(o));
10982
+ const f = Ft(u), d = je(f, n, Oe(o));
10983
10983
  return { done: !0, value: Ze(d, r, s.errors) };
10984
10984
  }
10985
10985
  let l;
@@ -11011,9 +11011,9 @@ async function Zh(t, e, n, i, r, s, o, a, l) {
11011
11011
  });
11012
11012
  return;
11013
11013
  }
11014
- const { done: m, value: v } = p;
11015
- let x;
11016
- if (he(v) ? x = v.then((b) => [b], (b) => (h.errors.push(b), Je(n, o, h), null)) : x = [v], h.addItems(x), m)
11014
+ const { done: g, value: v } = p;
11015
+ let F;
11016
+ if (he(v) ? F = v.then((b) => [b], (b) => (h.errors.push(b), Je(n, o, h), null)) : F = [v], h.addItems(F), g)
11017
11017
  break;
11018
11018
  f = h, u++;
11019
11019
  }
@@ -11052,7 +11052,7 @@ function ep(t) {
11052
11052
  }
11053
11053
  function tp(t) {
11054
11054
  let e = !1;
11055
- const n = t.signal ? Fl(t.signal) : void 0;
11055
+ const n = t.signal ? xl(t.signal) : void 0;
11056
11056
  async function i() {
11057
11057
  if (e)
11058
11058
  return { value: void 0, done: !0 };
@@ -11090,16 +11090,16 @@ function tp(t) {
11090
11090
  }
11091
11091
  class np {
11092
11092
  constructor(e) {
11093
- F(this, "type");
11094
- F(this, "errors");
11095
- F(this, "label");
11096
- F(this, "path");
11097
- F(this, "promise");
11098
- F(this, "data");
11099
- F(this, "parentContext");
11100
- F(this, "isCompleted");
11101
- F(this, "_exeContext");
11102
- F(this, "_resolve");
11093
+ x(this, "type");
11094
+ x(this, "errors");
11095
+ x(this, "label");
11096
+ x(this, "path");
11097
+ x(this, "promise");
11098
+ x(this, "data");
11099
+ x(this, "parentContext");
11100
+ x(this, "isCompleted");
11101
+ x(this, "_exeContext");
11102
+ x(this, "_resolve");
11103
11103
  this.type = "defer", this.label = e.label, this.path = Oe(e.path), this.parentContext = e.parentContext, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.isCompleted = !1, this.data = null, this.promise = new Promise((n) => {
11104
11104
  this._resolve = (i) => {
11105
11105
  n(i);
@@ -11120,18 +11120,18 @@ class np {
11120
11120
  }
11121
11121
  class Ul {
11122
11122
  constructor(e) {
11123
- F(this, "type");
11124
- F(this, "errors");
11125
- F(this, "label");
11126
- F(this, "path");
11127
- F(this, "items");
11128
- F(this, "promise");
11129
- F(this, "parentContext");
11130
- F(this, "iterator");
11131
- F(this, "isCompletedIterator");
11132
- F(this, "isCompleted");
11133
- F(this, "_exeContext");
11134
- F(this, "_resolve");
11123
+ x(this, "type");
11124
+ x(this, "errors");
11125
+ x(this, "label");
11126
+ x(this, "path");
11127
+ x(this, "items");
11128
+ x(this, "promise");
11129
+ x(this, "parentContext");
11130
+ x(this, "iterator");
11131
+ x(this, "isCompletedIterator");
11132
+ x(this, "isCompleted");
11133
+ x(this, "_exeContext");
11134
+ x(this, "_resolve");
11135
11135
  this.type = "stream", this.items = null, this.label = e.label, this.path = Oe(e.path), this.parentContext = e.parentContext, this.iterator = e.iterator, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.isCompleted = !1, this.items = null, this.promise = new Promise((n) => {
11136
11136
  this._resolve = (i) => {
11137
11137
  n(i);
@@ -11158,7 +11158,7 @@ function Bs(t) {
11158
11158
  }
11159
11159
  function Vl(t, e, n) {
11160
11160
  const i = n.name.value;
11161
- return i === hr.name && t.getQueryType() === e ? hr : i === pr.name && t.getQueryType() === e ? pr : i === gr.name ? gr : e.getFields()[i];
11161
+ return i === hr.name && t.getQueryType() === e ? hr : i === pr.name && t.getQueryType() === e ? pr : i === mr.name ? mr : e.getFields()[i];
11162
11162
  }
11163
11163
  function zo(t) {
11164
11164
  const e = Ps(t.document, t.operationName);
@@ -11209,9 +11209,9 @@ function lp(t) {
11209
11209
  class Bl extends EventTarget {
11210
11210
  constructor() {
11211
11211
  super(...arguments);
11212
- F(this, "aborted", !1);
11213
- F(this, "_onabort", null);
11214
- F(this, "reason");
11212
+ x(this, "aborted", !1);
11213
+ x(this, "_onabort", null);
11214
+ x(this, "reason");
11215
11215
  }
11216
11216
  throwIfAborted() {
11217
11217
  if (this.aborted)
@@ -11238,8 +11238,8 @@ function up(t, e, n) {
11238
11238
  let r = ap(i);
11239
11239
  if (t.query) {
11240
11240
  const p = new e.URL(r);
11241
- for (const m in t.query)
11242
- p.searchParams.set(m, t.query[m]);
11241
+ for (const g in t.query)
11242
+ p.searchParams.set(g, t.query[g]);
11243
11243
  r = p.toString();
11244
11244
  }
11245
11245
  let s;
@@ -11259,11 +11259,11 @@ function up(t, e, n) {
11259
11259
  const v = new AbortController();
11260
11260
  s = v.signal, p = () => v.abort();
11261
11261
  }
11262
- const m = () => {
11262
+ const g = () => {
11263
11263
  s && !s.aborted && (i.aborted = !0, p());
11264
11264
  };
11265
- o.once("error", m), o.once("close", m), o.once("finish", () => {
11266
- o.removeListener("close", m);
11265
+ o.once("error", g), o.once("close", g), o.once("finish", () => {
11266
+ o.removeListener("close", g);
11267
11267
  });
11268
11268
  }
11269
11269
  if (t.method === "GET" || t.method === "HEAD")
@@ -11287,14 +11287,14 @@ function up(t, e, n) {
11287
11287
  signal: s
11288
11288
  });
11289
11289
  return (f = p.headers.get("content-type")) != null && f.includes("json") || p.headers.set("content-type", "application/json; charset=utf-8"), new Proxy(p, {
11290
- get: (m, v, x) => {
11290
+ get: (g, v, F) => {
11291
11291
  switch (v) {
11292
11292
  case "json":
11293
11293
  return async () => l;
11294
11294
  case "text":
11295
11295
  return async () => JSON.stringify(l);
11296
11296
  default:
11297
- return Reflect.get(m, v, x);
11297
+ return Reflect.get(g, v, F);
11298
11298
  }
11299
11299
  }
11300
11300
  });
@@ -11306,10 +11306,10 @@ It will affect your performance. Please check our Bun integration recipe, and av
11306
11306
  duplex: "half",
11307
11307
  body: new ReadableStream({
11308
11308
  start(p) {
11309
- i.on("data", (m) => {
11310
- p.enqueue(m);
11311
- }), i.on("error", (m) => {
11312
- p.error(m);
11309
+ i.on("data", (g) => {
11310
+ p.enqueue(g);
11311
+ }), i.on("error", (g) => {
11312
+ p.error(g);
11313
11313
  }), i.on("end", () => {
11314
11314
  p.close();
11315
11315
  });
@@ -11412,11 +11412,11 @@ function Jo(t, e, n) {
11412
11412
  return;
11413
11413
  }
11414
11414
  if (fp(s))
11415
- return gp(e, s);
11415
+ return mp(e, s);
11416
11416
  if (Gl(s))
11417
11417
  return pp(e, s);
11418
11418
  }
11419
- async function gp(t, e) {
11419
+ async function mp(t, e) {
11420
11420
  const n = e.getReader();
11421
11421
  for (t.req.once("error", (i) => {
11422
11422
  n.cancel(i);
@@ -11428,7 +11428,7 @@ async function gp(t, e) {
11428
11428
  }
11429
11429
  An(t);
11430
11430
  }
11431
- function mp(t) {
11431
+ function gp(t) {
11432
11432
  return t != null && typeof t == "object" && ("body" in t || "cache" in t || "credentials" in t || "headers" in t || "integrity" in t || "keepalive" in t || "method" in t || "mode" in t || "redirect" in t || "referrer" in t || "referrerPolicy" in t || "signal" in t || "window" in t);
11433
11433
  }
11434
11434
  function ci(...t) {
@@ -11572,14 +11572,14 @@ function Sp({ req: t, res: e, fetchAPI: n, signal: i }) {
11572
11572
  t.forEach((y, S) => {
11573
11573
  p.append(y, S);
11574
11574
  });
11575
- let m = `http://localhost${t.getUrl()}`;
11575
+ let g = `http://localhost${t.getUrl()}`;
11576
11576
  const v = t.getQuery();
11577
- v && (m += `?${v}`);
11578
- let x;
11577
+ v && (g += `?${v}`);
11578
+ let F;
11579
11579
  function b() {
11580
11580
  return h ? u ? N() : h() : null;
11581
11581
  }
11582
- const T = new n.Request(m, {
11582
+ const T = new n.Request(g, {
11583
11583
  method: r,
11584
11584
  headers: p,
11585
11585
  get body() {
@@ -11591,7 +11591,7 @@ function Sp({ req: t, res: e, fetchAPI: n, signal: i }) {
11591
11591
  duplex: s
11592
11592
  });
11593
11593
  function N() {
11594
- return x || (x = o.length === 1 ? o[0] : Buffer.concat(o)), x;
11594
+ return F || (F = o.length === 1 ? o[0] : Buffer.concat(o)), F;
11595
11595
  }
11596
11596
  function O() {
11597
11597
  return u ? Mt(N()) : new Promise((y, S) => {
@@ -11823,7 +11823,7 @@ function Ip(t, e) {
11823
11823
  console.error(`Unexpected error while handling request: ${k.message || k}`);
11824
11824
  }
11825
11825
  }
11826
- function m(y, S, ..._) {
11826
+ function g(y, S, ..._) {
11827
11827
  const $ = {
11828
11828
  res: y,
11829
11829
  req: S,
@@ -11871,21 +11871,21 @@ ${ie.stack || ie.message || ie}`);
11871
11871
  const _ = S.filter((k) => k != null), $ = _.length > 0 ? ci({}, y, ..._) : Ko(y), M = f(y.request, $);
11872
11872
  y.respondWith(M);
11873
11873
  }
11874
- function x(y, ...S) {
11874
+ function F(y, ...S) {
11875
11875
  const _ = S.filter((M) => M != null), $ = _.length > 1 ? ci({}, ..._) : Ko(_[0], _[0] == null || _[0].waitUntil == null ? u : void 0);
11876
11876
  return f(y, $);
11877
11877
  }
11878
11878
  const b = (y, ...S) => {
11879
11879
  if (typeof y == "string" || "href" in y) {
11880
11880
  const [$, ...M] = S;
11881
- if (mp($)) {
11882
- const j = new n.Request(y, $), re = x(j, ...M);
11881
+ if (gp($)) {
11882
+ const j = new n.Request(y, $), re = F(j, ...M);
11883
11883
  return Xo(re, $ == null ? void 0 : $.signal);
11884
11884
  }
11885
11885
  const k = new n.Request(y);
11886
- return x(k, ...S);
11886
+ return F(k, ...S);
11887
11887
  }
11888
- const _ = x(y, ...S);
11888
+ const _ = F(y, ...S);
11889
11889
  return Xo(_, y._signal);
11890
11890
  }, T = (y, ...S) => {
11891
11891
  const [_, ...$] = S;
@@ -11895,18 +11895,18 @@ ${ie.stack || ie.message || ie}`);
11895
11895
  return p(y, _, ...$);
11896
11896
  }
11897
11897
  if (vp(y))
11898
- return m(y, _, ...$);
11898
+ return g(y, _, ...$);
11899
11899
  if (Ho(_))
11900
11900
  throw new TypeError("Got Node response without Node request");
11901
- return _p(y) ? dp(y) ? v(y, ...S) : x(y.request, y, ...S) : b(y, ...S);
11901
+ return _p(y) ? dp(y) ? v(y, ...S) : F(y.request, y, ...S) : b(y, ...S);
11902
11902
  }, N = {
11903
- handleRequest: x,
11903
+ handleRequest: F,
11904
11904
  fetch: b,
11905
11905
  handleNodeRequest: d,
11906
11906
  handleNodeRequestAndResponse: h,
11907
11907
  requestListener: p,
11908
11908
  handleEvent: v,
11909
- handleUWS: m,
11909
+ handleUWS: g,
11910
11910
  handle: T,
11911
11911
  get disposableStack() {
11912
11912
  return l();
@@ -11966,7 +11966,7 @@ async function Ap(t, e, n) {
11966
11966
  const i = await e(t, n);
11967
11967
  return Np(t, i);
11968
11968
  }
11969
- function Fp(t) {
11969
+ function xp(t) {
11970
11970
  let e = () => ({});
11971
11971
  if (t != null)
11972
11972
  if (typeof t == "function")
@@ -12000,7 +12000,7 @@ function Fp(t) {
12000
12000
  }
12001
12001
  };
12002
12002
  }
12003
- function xp(t = Ri.Response) {
12003
+ function Fp(t = Ri.Response) {
12004
12004
  return function(n) {
12005
12005
  return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
12006
12006
  status: n.status,
@@ -12014,7 +12014,7 @@ function ds(t) {
12014
12014
  function Rp(t) {
12015
12015
  return {
12016
12016
  onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
12017
- const r = t || xp(i.Response);
12017
+ const r = t || Fp(i.Response);
12018
12018
  n(function(o, a) {
12019
12019
  try {
12020
12020
  const l = e(o, a);
@@ -12340,7 +12340,7 @@ function Zp(t, e, n) {
12340
12340
  }
12341
12341
  });
12342
12342
  }
12343
- function eg() {
12343
+ function em() {
12344
12344
  return {
12345
12345
  onParse() {
12346
12346
  return ({ result: t, context: {
@@ -12361,7 +12361,7 @@ function eg() {
12361
12361
  }
12362
12362
  };
12363
12363
  }
12364
- function tg({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
12364
+ function tm({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
12365
12365
  return {
12366
12366
  onRequest({ endResponse: i, fetchAPI: r, request: s }) {
12367
12367
  if (s.url.endsWith(n)) {
@@ -12385,17 +12385,17 @@ var va;
12385
12385
  if (typeof vr > "u") {
12386
12386
  ta = class {
12387
12387
  constructor() {
12388
- F(this, "onabort");
12389
- F(this, "_onabort", []);
12390
- F(this, "reason");
12391
- F(this, "aborted", !1);
12388
+ x(this, "onabort");
12389
+ x(this, "_onabort", []);
12390
+ x(this, "reason");
12391
+ x(this, "aborted", !1);
12392
12392
  }
12393
12393
  addEventListener(i, r) {
12394
12394
  this._onabort.push(r);
12395
12395
  }
12396
12396
  }, vr = class {
12397
12397
  constructor() {
12398
- F(this, "signal", new ta());
12398
+ x(this, "signal", new ta());
12399
12399
  e();
12400
12400
  }
12401
12401
  abort(i) {
@@ -12413,17 +12413,17 @@ if (typeof vr > "u") {
12413
12413
  t && (t = !1, Wl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
12414
12414
  };
12415
12415
  }
12416
- const ng = (t) => !Ql.has(t), Vt = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Hl = (t) => Vt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? or : null : null;
12416
+ const nm = (t) => !Ql.has(t), Vt = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Hl = (t) => Vt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? or : null : null;
12417
12417
  let or = class extends Array {
12418
12418
  constructor(e) {
12419
12419
  super(e), this.fill(0);
12420
12420
  }
12421
12421
  };
12422
12422
  var Rt, Rn;
12423
- let ig = (Rt = class {
12423
+ let im = (Rt = class {
12424
12424
  constructor(e, n) {
12425
- F(this, "heap");
12426
- F(this, "length");
12425
+ x(this, "heap");
12426
+ x(this, "length");
12427
12427
  if (!c(Rt, Rn))
12428
12428
  throw new TypeError("instantiate Stack using Stack.create(n)");
12429
12429
  this.heap = new n(e), this.length = 0;
@@ -12444,8 +12444,8 @@ let ig = (Rt = class {
12444
12444
  }
12445
12445
  }, Rn = new WeakMap(), // private constructor
12446
12446
  D(Rt, Rn, !1), Rt);
12447
- var Sa, wa, rt, Ve, st, ot, Cn, Ln, ce, at, ae, X, q, Fe, qe, Ie, pe, lt, ge, ut, ct, Ge, ft, Jt, xe, R, ps, un, $t, Ei, Be, Jl, cn, kn, Ti, qt, Gt, gs, ar, lr, Y, ms, di, Bt, ys, Dn;
12448
- let rg = (Dn = class {
12447
+ var Sa, wa, rt, Ve, st, ot, Cn, Ln, ce, at, ae, X, q, xe, qe, Ie, pe, lt, me, ut, ct, Ge, ft, Jt, Fe, R, ps, un, $t, Ei, Be, Jl, cn, kn, Ti, qt, Gt, ms, ar, lr, Y, gs, di, Bt, ys, Dn;
12448
+ let rm = (Dn = class {
12449
12449
  constructor(e) {
12450
12450
  D(this, R);
12451
12451
  // options that cannot be changed without disaster
@@ -12458,81 +12458,81 @@ let rg = (Dn = class {
12458
12458
  /**
12459
12459
  * {@link LRUCache.OptionsBase.ttl}
12460
12460
  */
12461
- F(this, "ttl");
12461
+ x(this, "ttl");
12462
12462
  /**
12463
12463
  * {@link LRUCache.OptionsBase.ttlResolution}
12464
12464
  */
12465
- F(this, "ttlResolution");
12465
+ x(this, "ttlResolution");
12466
12466
  /**
12467
12467
  * {@link LRUCache.OptionsBase.ttlAutopurge}
12468
12468
  */
12469
- F(this, "ttlAutopurge");
12469
+ x(this, "ttlAutopurge");
12470
12470
  /**
12471
12471
  * {@link LRUCache.OptionsBase.updateAgeOnGet}
12472
12472
  */
12473
- F(this, "updateAgeOnGet");
12473
+ x(this, "updateAgeOnGet");
12474
12474
  /**
12475
12475
  * {@link LRUCache.OptionsBase.updateAgeOnHas}
12476
12476
  */
12477
- F(this, "updateAgeOnHas");
12477
+ x(this, "updateAgeOnHas");
12478
12478
  /**
12479
12479
  * {@link LRUCache.OptionsBase.allowStale}
12480
12480
  */
12481
- F(this, "allowStale");
12481
+ x(this, "allowStale");
12482
12482
  /**
12483
12483
  * {@link LRUCache.OptionsBase.noDisposeOnSet}
12484
12484
  */
12485
- F(this, "noDisposeOnSet");
12485
+ x(this, "noDisposeOnSet");
12486
12486
  /**
12487
12487
  * {@link LRUCache.OptionsBase.noUpdateTTL}
12488
12488
  */
12489
- F(this, "noUpdateTTL");
12489
+ x(this, "noUpdateTTL");
12490
12490
  /**
12491
12491
  * {@link LRUCache.OptionsBase.maxEntrySize}
12492
12492
  */
12493
- F(this, "maxEntrySize");
12493
+ x(this, "maxEntrySize");
12494
12494
  /**
12495
12495
  * {@link LRUCache.OptionsBase.sizeCalculation}
12496
12496
  */
12497
- F(this, "sizeCalculation");
12497
+ x(this, "sizeCalculation");
12498
12498
  /**
12499
12499
  * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
12500
12500
  */
12501
- F(this, "noDeleteOnFetchRejection");
12501
+ x(this, "noDeleteOnFetchRejection");
12502
12502
  /**
12503
12503
  * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
12504
12504
  */
12505
- F(this, "noDeleteOnStaleGet");
12505
+ x(this, "noDeleteOnStaleGet");
12506
12506
  /**
12507
12507
  * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
12508
12508
  */
12509
- F(this, "allowStaleOnFetchAbort");
12509
+ x(this, "allowStaleOnFetchAbort");
12510
12510
  /**
12511
12511
  * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
12512
12512
  */
12513
- F(this, "allowStaleOnFetchRejection");
12513
+ x(this, "allowStaleOnFetchRejection");
12514
12514
  /**
12515
12515
  * {@link LRUCache.OptionsBase.ignoreFetchAbort}
12516
12516
  */
12517
- F(this, "ignoreFetchAbort");
12517
+ x(this, "ignoreFetchAbort");
12518
12518
  // computed properties
12519
12519
  D(this, ce);
12520
12520
  D(this, at);
12521
12521
  D(this, ae);
12522
12522
  D(this, X);
12523
12523
  D(this, q);
12524
- D(this, Fe);
12524
+ D(this, xe);
12525
12525
  D(this, qe);
12526
12526
  D(this, Ie);
12527
12527
  D(this, pe);
12528
12528
  D(this, lt);
12529
- D(this, ge);
12529
+ D(this, me);
12530
12530
  D(this, ut);
12531
12531
  D(this, ct);
12532
12532
  D(this, Ge);
12533
12533
  D(this, ft);
12534
12534
  D(this, Jt);
12535
- D(this, xe);
12535
+ D(this, Fe);
12536
12536
  // conditionally set private methods related to TTL
12537
12537
  D(this, un, () => {
12538
12538
  });
@@ -12556,14 +12556,14 @@ let rg = (Dn = class {
12556
12556
  * description of an object. Called by the built-in method
12557
12557
  * `Object.prototype.toString`.
12558
12558
  */
12559
- F(this, Sa, "LRUCache");
12560
- const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: l, dispose: u, disposeAfter: f, noDisposeOnSet: d, noUpdateTTL: h, maxSize: p = 0, maxEntrySize: m = 0, sizeCalculation: v, fetchMethod: x, memoMethod: b, noDeleteOnFetchRejection: T, noDeleteOnStaleGet: N, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: y, ignoreFetchAbort: S } = e;
12559
+ x(this, Sa, "LRUCache");
12560
+ const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: l, dispose: u, disposeAfter: f, noDisposeOnSet: d, noUpdateTTL: h, maxSize: p = 0, maxEntrySize: g = 0, sizeCalculation: v, fetchMethod: F, memoMethod: b, noDeleteOnFetchRejection: T, noDeleteOnStaleGet: N, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: y, ignoreFetchAbort: S } = e;
12561
12561
  if (n !== 0 && !Vt(n))
12562
12562
  throw new TypeError("max option must be a nonnegative integer");
12563
12563
  const _ = n ? Hl(n) : Array;
12564
12564
  if (!_)
12565
12565
  throw new Error("invalid max value: " + n);
12566
- if (I(this, rt, n), I(this, Ve, p), this.maxEntrySize = m || c(this, Ve), this.sizeCalculation = v, this.sizeCalculation) {
12566
+ if (I(this, rt, n), I(this, Ve, p), this.maxEntrySize = g || c(this, Ve), this.sizeCalculation = v, this.sizeCalculation) {
12567
12567
  if (!c(this, Ve) && !this.maxEntrySize)
12568
12568
  throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
12569
12569
  if (typeof this.sizeCalculation != "function")
@@ -12571,9 +12571,9 @@ let rg = (Dn = class {
12571
12571
  }
12572
12572
  if (b !== void 0 && typeof b != "function")
12573
12573
  throw new TypeError("memoMethod must be a function if defined");
12574
- if (I(this, Ln, b), x !== void 0 && typeof x != "function")
12574
+ if (I(this, Ln, b), F !== void 0 && typeof F != "function")
12575
12575
  throw new TypeError("fetchMethod must be a function if specified");
12576
- if (I(this, Cn, x), I(this, Jt, !!x), I(this, ae, /* @__PURE__ */ new Map()), I(this, X, new Array(n).fill(void 0)), I(this, q, new Array(n).fill(void 0)), I(this, Fe, new _(n)), I(this, qe, new _(n)), I(this, Ie, 0), I(this, pe, 0), I(this, lt, ig.create(n)), I(this, ce, 0), I(this, at, 0), typeof u == "function" && I(this, st, u), typeof f == "function" ? (I(this, ot, f), I(this, ge, [])) : (I(this, ot, void 0), I(this, ge, void 0)), I(this, ft, !!c(this, st)), I(this, xe, !!c(this, ot)), this.noDisposeOnSet = !!d, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!T, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!y, this.ignoreFetchAbort = !!S, this.maxEntrySize !== 0) {
12576
+ if (I(this, Cn, F), I(this, Jt, !!F), I(this, ae, /* @__PURE__ */ new Map()), I(this, X, new Array(n).fill(void 0)), I(this, q, new Array(n).fill(void 0)), I(this, xe, new _(n)), I(this, qe, new _(n)), I(this, Ie, 0), I(this, pe, 0), I(this, lt, im.create(n)), I(this, ce, 0), I(this, at, 0), typeof u == "function" && I(this, st, u), typeof f == "function" ? (I(this, ot, f), I(this, me, [])) : (I(this, ot, void 0), I(this, me, void 0)), I(this, ft, !!c(this, st)), I(this, Fe, !!c(this, ot)), this.noDisposeOnSet = !!d, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!T, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!y, this.ignoreFetchAbort = !!S, this.maxEntrySize !== 0) {
12577
12577
  if (c(this, Ve) !== 0 && !Vt(c(this, Ve)))
12578
12578
  throw new TypeError("maxSize must be a positive integer if specified");
12579
12579
  if (!Vt(this.maxEntrySize))
@@ -12589,7 +12589,7 @@ let rg = (Dn = class {
12589
12589
  throw new TypeError("At least one of max, maxSize, or ttl is required");
12590
12590
  if (!this.ttlAutopurge && !c(this, rt) && !c(this, Ve)) {
12591
12591
  const $ = "LRU_CACHE_UNBOUNDED";
12592
- ng($) && (Ql.add($), Wl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $, Dn));
12592
+ nm($) && (Ql.add($), Wl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $, Dn));
12593
12593
  }
12594
12594
  }
12595
12595
  /**
@@ -12610,7 +12610,7 @@ let rg = (Dn = class {
12610
12610
  keyMap: c(e, ae),
12611
12611
  keyList: c(e, X),
12612
12612
  valList: c(e, q),
12613
- next: c(e, Fe),
12613
+ next: c(e, xe),
12614
12614
  prev: c(e, qe),
12615
12615
  get head() {
12616
12616
  return c(e, Ie);
@@ -12920,7 +12920,7 @@ let rg = (Dn = class {
12920
12920
  * `cache.delete(key)`. `undefined` is never stored in the cache.
12921
12921
  */
12922
12922
  set(e, n, i = {}) {
12923
- var h, p, m, v, x;
12923
+ var h, p, g, v, F;
12924
12924
  if (n === void 0)
12925
12925
  return this.delete(e), this;
12926
12926
  const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: l } = i;
@@ -12930,7 +12930,7 @@ let rg = (Dn = class {
12930
12930
  return l && (l.set = "miss", l.maxEntrySizeExceeded = !0), E(this, R, Bt).call(this, e, "set"), this;
12931
12931
  let d = c(this, ce) === 0 ? void 0 : c(this, ae).get(e);
12932
12932
  if (d === void 0)
12933
- d = c(this, ce) === 0 ? c(this, pe) : c(this, lt).length !== 0 ? c(this, lt).pop() : c(this, ce) === c(this, rt) ? E(this, R, ar).call(this, !1) : c(this, ce), c(this, X)[d] = e, c(this, q)[d] = n, c(this, ae).set(e, d), c(this, Fe)[c(this, pe)] = d, c(this, qe)[d] = c(this, pe), I(this, pe, d), nn(this, ce)._++, c(this, kn).call(this, d, f, l), l && (l.set = "add"), u = !1;
12933
+ d = c(this, ce) === 0 ? c(this, pe) : c(this, lt).length !== 0 ? c(this, lt).pop() : c(this, ce) === c(this, rt) ? E(this, R, ar).call(this, !1) : c(this, ce), c(this, X)[d] = e, c(this, q)[d] = n, c(this, ae).set(e, d), c(this, xe)[c(this, pe)] = d, c(this, qe)[d] = c(this, pe), I(this, pe, d), nn(this, ce)._++, c(this, kn).call(this, d, f, l), l && (l.set = "add"), u = !1;
12934
12934
  else {
12935
12935
  E(this, R, di).call(this, d);
12936
12936
  const b = c(this, q)[d];
@@ -12938,8 +12938,8 @@ let rg = (Dn = class {
12938
12938
  if (c(this, Jt) && E(this, R, Y).call(this, b)) {
12939
12939
  b.__abortController.abort(new Error("replaced"));
12940
12940
  const { __staleWhileFetching: T } = b;
12941
- T !== void 0 && !o && (c(this, ft) && ((h = c(this, st)) == null || h.call(this, T, e, "set")), c(this, xe) && ((p = c(this, ge)) == null || p.push([T, e, "set"])));
12942
- } else o || (c(this, ft) && ((m = c(this, st)) == null || m.call(this, b, e, "set")), c(this, xe) && ((v = c(this, ge)) == null || v.push([b, e, "set"])));
12941
+ T !== void 0 && !o && (c(this, ft) && ((h = c(this, st)) == null || h.call(this, T, e, "set")), c(this, Fe) && ((p = c(this, me)) == null || p.push([T, e, "set"])));
12942
+ } else o || (c(this, ft) && ((g = c(this, st)) == null || g.call(this, b, e, "set")), c(this, Fe) && ((v = c(this, me)) == null || v.push([b, e, "set"])));
12943
12943
  if (c(this, cn).call(this, d), c(this, kn).call(this, d, f, l), c(this, q)[d] = n, l) {
12944
12944
  l.set = "replace";
12945
12945
  const T = b && E(this, R, Y).call(this, b) ? b.__staleWhileFetching : b;
@@ -12947,11 +12947,11 @@ let rg = (Dn = class {
12947
12947
  }
12948
12948
  } else l && (l.set = "update");
12949
12949
  }
12950
- if (r !== 0 && !c(this, Ge) && E(this, R, ps).call(this), c(this, Ge) && (u || c(this, Ei).call(this, d, r, s), l && c(this, $t).call(this, l, d)), !o && c(this, xe) && c(this, ge)) {
12951
- const b = c(this, ge);
12950
+ if (r !== 0 && !c(this, Ge) && E(this, R, ps).call(this), c(this, Ge) && (u || c(this, Ei).call(this, d, r, s), l && c(this, $t).call(this, l, d)), !o && c(this, Fe) && c(this, me)) {
12951
+ const b = c(this, me);
12952
12952
  let T;
12953
12953
  for (; T = b == null ? void 0 : b.shift(); )
12954
- (x = c(this, ot)) == null || x.call(this, ...T);
12954
+ (F = c(this, ot)) == null || F.call(this, ...T);
12955
12955
  }
12956
12956
  return this;
12957
12957
  }
@@ -12971,8 +12971,8 @@ let rg = (Dn = class {
12971
12971
  return n;
12972
12972
  }
12973
12973
  } finally {
12974
- if (c(this, xe) && c(this, ge)) {
12975
- const n = c(this, ge);
12974
+ if (c(this, Fe) && c(this, me)) {
12975
+ const n = c(this, me);
12976
12976
  let i;
12977
12977
  for (; i = n == null ? void 0 : n.shift(); )
12978
12978
  (e = c(this, ot)) == null || e.call(this, ...i);
@@ -13037,9 +13037,9 @@ let rg = (Dn = class {
13037
13037
  noDeleteOnFetchRejection: d = this.noDeleteOnFetchRejection,
13038
13038
  allowStaleOnFetchRejection: h = this.allowStaleOnFetchRejection,
13039
13039
  ignoreFetchAbort: p = this.ignoreFetchAbort,
13040
- allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort,
13040
+ allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort,
13041
13041
  context: v,
13042
- forceRefresh: x = !1,
13042
+ forceRefresh: F = !1,
13043
13043
  status: b,
13044
13044
  signal: T
13045
13045
  } = n;
@@ -13061,7 +13061,7 @@ let rg = (Dn = class {
13061
13061
  noUpdateTTL: f,
13062
13062
  noDeleteOnFetchRejection: d,
13063
13063
  allowStaleOnFetchRejection: h,
13064
- allowStaleOnFetchAbort: m,
13064
+ allowStaleOnFetchAbort: g,
13065
13065
  ignoreFetchAbort: p,
13066
13066
  status: b,
13067
13067
  signal: T
@@ -13078,7 +13078,7 @@ let rg = (Dn = class {
13078
13078
  return b && (b.fetch = "inflight", k && (b.returnedStale = !0)), k ? y.__staleWhileFetching : y.__returned = y;
13079
13079
  }
13080
13080
  const S = c(this, Be).call(this, O);
13081
- if (!x && !S)
13081
+ if (!F && !S)
13082
13082
  return b && (b.fetch = "hit"), E(this, R, di).call(this, O), r && c(this, un).call(this, O), b && c(this, $t).call(this, b, O), y;
13083
13083
  const _ = E(this, R, lr).call(this, e, O, N, v), M = _.__staleWhileFetching !== void 0 && i;
13084
13084
  return b && (b.fetch = S ? "stale" : "refresh", M && S && (b.returnedStale = !0)), M ? _.__staleWhileFetching : _.__returned = _;
@@ -13130,7 +13130,7 @@ let rg = (Dn = class {
13130
13130
  clear() {
13131
13131
  return E(this, R, ys).call(this, "delete");
13132
13132
  }
13133
- }, rt = new WeakMap(), Ve = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), Cn = new WeakMap(), Ln = new WeakMap(), ce = new WeakMap(), at = new WeakMap(), ae = new WeakMap(), X = new WeakMap(), q = new WeakMap(), Fe = new WeakMap(), qe = new WeakMap(), Ie = new WeakMap(), pe = new WeakMap(), lt = new WeakMap(), ge = new WeakMap(), ut = new WeakMap(), ct = new WeakMap(), Ge = new WeakMap(), ft = new WeakMap(), Jt = new WeakMap(), xe = new WeakMap(), R = new WeakSet(), ps = function() {
13133
+ }, rt = new WeakMap(), Ve = new WeakMap(), st = new WeakMap(), ot = new WeakMap(), Cn = new WeakMap(), Ln = new WeakMap(), ce = new WeakMap(), at = new WeakMap(), ae = new WeakMap(), X = new WeakMap(), q = new WeakMap(), xe = new WeakMap(), qe = new WeakMap(), Ie = new WeakMap(), pe = new WeakMap(), lt = new WeakMap(), me = new WeakMap(), ut = new WeakMap(), ct = new WeakMap(), Ge = new WeakMap(), ft = new WeakMap(), Jt = new WeakMap(), Fe = new WeakMap(), R = new WeakSet(), ps = function() {
13134
13134
  const e = new or(c(this, rt)), n = new or(c(this, rt));
13135
13135
  I(this, Ge, e), I(this, ct, n), I(this, Ei, (s, o, a = Sn.now()) => {
13136
13136
  if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
@@ -13200,18 +13200,18 @@ let rg = (Dn = class {
13200
13200
  });
13201
13201
  }, cn = new WeakMap(), kn = new WeakMap(), Ti = new WeakMap(), qt = function* ({ allowStale: e = this.allowStale } = {}) {
13202
13202
  if (c(this, ce))
13203
- for (let n = c(this, pe); !(!E(this, R, gs).call(this, n) || ((e || !c(this, Be).call(this, n)) && (yield n), n === c(this, Ie))); )
13203
+ for (let n = c(this, pe); !(!E(this, R, ms).call(this, n) || ((e || !c(this, Be).call(this, n)) && (yield n), n === c(this, Ie))); )
13204
13204
  n = c(this, qe)[n];
13205
13205
  }, Gt = function* ({ allowStale: e = this.allowStale } = {}) {
13206
13206
  if (c(this, ce))
13207
- for (let n = c(this, Ie); !(!E(this, R, gs).call(this, n) || ((e || !c(this, Be).call(this, n)) && (yield n), n === c(this, pe))); )
13208
- n = c(this, Fe)[n];
13209
- }, gs = function(e) {
13207
+ for (let n = c(this, Ie); !(!E(this, R, ms).call(this, n) || ((e || !c(this, Be).call(this, n)) && (yield n), n === c(this, pe))); )
13208
+ n = c(this, xe)[n];
13209
+ }, ms = function(e) {
13210
13210
  return e !== void 0 && c(this, ae).get(c(this, X)[e]) === e;
13211
13211
  }, ar = function(e) {
13212
13212
  var s, o;
13213
13213
  const n = c(this, Ie), i = c(this, X)[n], r = c(this, q)[n];
13214
- return c(this, Jt) && E(this, R, Y).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, ft) || c(this, xe)) && (c(this, ft) && ((s = c(this, st)) == null || s.call(this, r, i, "evict")), c(this, xe) && ((o = c(this, ge)) == null || o.push([r, i, "evict"]))), c(this, cn).call(this, n), e && (c(this, X)[n] = void 0, c(this, q)[n] = void 0, c(this, lt).push(n)), c(this, ce) === 1 ? (I(this, Ie, I(this, pe, 0)), c(this, lt).length = 0) : I(this, Ie, c(this, Fe)[n]), c(this, ae).delete(i), nn(this, ce)._--, n;
13214
+ return c(this, Jt) && E(this, R, Y).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, ft) || c(this, Fe)) && (c(this, ft) && ((s = c(this, st)) == null || s.call(this, r, i, "evict")), c(this, Fe) && ((o = c(this, me)) == null || o.push([r, i, "evict"]))), c(this, cn).call(this, n), e && (c(this, X)[n] = void 0, c(this, q)[n] = void 0, c(this, lt).push(n)), c(this, ce) === 1 ? (I(this, Ie, I(this, pe, 0)), c(this, lt).length = 0) : I(this, Ie, c(this, xe)[n]), c(this, ae).delete(i), nn(this, ce)._--, n;
13215
13215
  }, lr = function(e, n, i, r) {
13216
13216
  const s = n === void 0 ? void 0 : c(this, q)[n];
13217
13217
  if (E(this, R, Y).call(this, s))
@@ -13224,41 +13224,41 @@ let rg = (Dn = class {
13224
13224
  signal: o.signal,
13225
13225
  options: i,
13226
13226
  context: r
13227
- }, u = (v, x = !1) => {
13227
+ }, u = (v, F = !1) => {
13228
13228
  const { aborted: b } = o.signal, T = i.ignoreFetchAbort && v !== void 0;
13229
- if (i.status && (b && !x ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, T && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !T && !x)
13229
+ if (i.status && (b && !F ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, T && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !T && !F)
13230
13230
  return d(o.signal.reason);
13231
13231
  const N = p;
13232
13232
  return c(this, q)[n] === p && (v === void 0 ? N.__staleWhileFetching ? c(this, q)[n] = N.__staleWhileFetching : E(this, R, Bt).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, v, l.options))), v;
13233
13233
  }, f = (v) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = v), d(v)), d = (v) => {
13234
- const { aborted: x } = o.signal, b = x && i.allowStaleOnFetchAbort, T = b || i.allowStaleOnFetchRejection, N = T || i.noDeleteOnFetchRejection, O = p;
13234
+ const { aborted: F } = o.signal, b = F && i.allowStaleOnFetchAbort, T = b || i.allowStaleOnFetchRejection, N = T || i.noDeleteOnFetchRejection, O = p;
13235
13235
  if (c(this, q)[n] === p && (!N || O.__staleWhileFetching === void 0 ? E(this, R, Bt).call(this, e, "fetch") : b || (c(this, q)[n] = O.__staleWhileFetching)), T)
13236
13236
  return i.status && O.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), O.__staleWhileFetching;
13237
13237
  if (O.__returned === O)
13238
13238
  throw v;
13239
- }, h = (v, x) => {
13239
+ }, h = (v, F) => {
13240
13240
  var T;
13241
13241
  const b = (T = c(this, Cn)) == null ? void 0 : T.call(this, e, s, l);
13242
- b && b instanceof Promise && b.then((N) => v(N === void 0 ? void 0 : N), x), o.signal.addEventListener("abort", () => {
13242
+ b && b instanceof Promise && b.then((N) => v(N === void 0 ? void 0 : N), F), o.signal.addEventListener("abort", () => {
13243
13243
  (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (v(void 0), i.allowStaleOnFetchAbort && (v = (N) => u(N, !0)));
13244
13244
  });
13245
13245
  };
13246
13246
  i.status && (i.status.fetchDispatched = !0);
13247
- const p = new Promise(h).then(u, f), m = Object.assign(p, {
13247
+ const p = new Promise(h).then(u, f), g = Object.assign(p, {
13248
13248
  __abortController: o,
13249
13249
  __staleWhileFetching: s,
13250
13250
  __returned: void 0
13251
13251
  });
13252
- return n === void 0 ? (this.set(e, m, { ...l.options, status: void 0 }), n = c(this, ae).get(e)) : c(this, q)[n] = m, m;
13252
+ return n === void 0 ? (this.set(e, g, { ...l.options, status: void 0 }), n = c(this, ae).get(e)) : c(this, q)[n] = g, g;
13253
13253
  }, Y = function(e) {
13254
13254
  if (!c(this, Jt))
13255
13255
  return !1;
13256
13256
  const n = e;
13257
13257
  return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof vr;
13258
- }, ms = function(e, n) {
13259
- c(this, qe)[n] = e, c(this, Fe)[e] = n;
13258
+ }, gs = function(e, n) {
13259
+ c(this, qe)[n] = e, c(this, xe)[e] = n;
13260
13260
  }, di = function(e) {
13261
- e !== c(this, pe) && (e === c(this, Ie) ? I(this, Ie, c(this, Fe)[e]) : E(this, R, ms).call(this, c(this, qe)[e], c(this, Fe)[e]), E(this, R, ms).call(this, c(this, pe), e), I(this, pe, e));
13261
+ e !== c(this, pe) && (e === c(this, Ie) ? I(this, Ie, c(this, xe)[e]) : E(this, R, gs).call(this, c(this, qe)[e], c(this, xe)[e]), E(this, R, gs).call(this, c(this, pe), e), I(this, pe, e));
13262
13262
  }, Bt = function(e, n) {
13263
13263
  var r, s, o, a;
13264
13264
  let i = !1;
@@ -13270,21 +13270,21 @@ let rg = (Dn = class {
13270
13270
  else {
13271
13271
  c(this, cn).call(this, l);
13272
13272
  const u = c(this, q)[l];
13273
- if (E(this, R, Y).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (c(this, ft) || c(this, xe)) && (c(this, ft) && ((r = c(this, st)) == null || r.call(this, u, e, n)), c(this, xe) && ((s = c(this, ge)) == null || s.push([u, e, n]))), c(this, ae).delete(e), c(this, X)[l] = void 0, c(this, q)[l] = void 0, l === c(this, pe))
13273
+ if (E(this, R, Y).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (c(this, ft) || c(this, Fe)) && (c(this, ft) && ((r = c(this, st)) == null || r.call(this, u, e, n)), c(this, Fe) && ((s = c(this, me)) == null || s.push([u, e, n]))), c(this, ae).delete(e), c(this, X)[l] = void 0, c(this, q)[l] = void 0, l === c(this, pe))
13274
13274
  I(this, pe, c(this, qe)[l]);
13275
13275
  else if (l === c(this, Ie))
13276
- I(this, Ie, c(this, Fe)[l]);
13276
+ I(this, Ie, c(this, xe)[l]);
13277
13277
  else {
13278
13278
  const f = c(this, qe)[l];
13279
- c(this, Fe)[f] = c(this, Fe)[l];
13280
- const d = c(this, Fe)[l];
13279
+ c(this, xe)[f] = c(this, xe)[l];
13280
+ const d = c(this, xe)[l];
13281
13281
  c(this, qe)[d] = c(this, qe)[l];
13282
13282
  }
13283
13283
  nn(this, ce)._--, c(this, lt).push(l);
13284
13284
  }
13285
13285
  }
13286
- if (c(this, xe) && ((o = c(this, ge)) != null && o.length)) {
13287
- const l = c(this, ge);
13286
+ if (c(this, Fe) && ((o = c(this, me)) != null && o.length)) {
13287
+ const l = c(this, me);
13288
13288
  let u;
13289
13289
  for (; u = l == null ? void 0 : l.shift(); )
13290
13290
  (a = c(this, ot)) == null || a.call(this, ...u);
@@ -13298,21 +13298,21 @@ let rg = (Dn = class {
13298
13298
  o.__abortController.abort(new Error("deleted"));
13299
13299
  else {
13300
13300
  const a = c(this, X)[s];
13301
- c(this, ft) && ((n = c(this, st)) == null || n.call(this, o, a, e)), c(this, xe) && ((i = c(this, ge)) == null || i.push([o, a, e]));
13301
+ c(this, ft) && ((n = c(this, st)) == null || n.call(this, o, a, e)), c(this, Fe) && ((i = c(this, me)) == null || i.push([o, a, e]));
13302
13302
  }
13303
13303
  }
13304
- if (c(this, ae).clear(), c(this, q).fill(void 0), c(this, X).fill(void 0), c(this, Ge) && c(this, ct) && (c(this, Ge).fill(0), c(this, ct).fill(0)), c(this, ut) && c(this, ut).fill(0), I(this, Ie, 0), I(this, pe, 0), c(this, lt).length = 0, I(this, at, 0), I(this, ce, 0), c(this, xe) && c(this, ge)) {
13305
- const s = c(this, ge);
13304
+ if (c(this, ae).clear(), c(this, q).fill(void 0), c(this, X).fill(void 0), c(this, Ge) && c(this, ct) && (c(this, Ge).fill(0), c(this, ct).fill(0)), c(this, ut) && c(this, ut).fill(0), I(this, Ie, 0), I(this, pe, 0), c(this, lt).length = 0, I(this, at, 0), I(this, ce, 0), c(this, Fe) && c(this, me)) {
13305
+ const s = c(this, me);
13306
13306
  let o;
13307
13307
  for (; o = s == null ? void 0 : s.shift(); )
13308
13308
  (r = c(this, ot)) == null || r.call(this, ...o);
13309
13309
  }
13310
13310
  }, Dn);
13311
- const sg = 1024, og = 36e5;
13312
- function Wr({ max: t = sg, ttl: e = og } = {}) {
13313
- return new rg({ max: t, ttl: e });
13311
+ const sm = 1024, om = 36e5;
13312
+ function Wr({ max: t = sm, ttl: e = om } = {}) {
13313
+ return new rm({ max: t, ttl: e });
13314
13314
  }
13315
- function ag({ documentCache: t = Wr(), errorCache: e = Wr(), validationCache: n = !0 }) {
13315
+ function am({ documentCache: t = Wr(), errorCache: e = Wr(), validationCache: n = !0 }) {
13316
13316
  const i = Wr();
13317
13317
  return {
13318
13318
  onParse({ params: r, setParsedDocument: s }) {
@@ -13351,16 +13351,16 @@ function ag({ documentCache: t = Wr(), errorCache: e = Wr(), validationCache: n
13351
13351
  }
13352
13352
  };
13353
13353
  }
13354
- const lg = () => !0;
13354
+ const lm = () => !0;
13355
13355
  function ti(t) {
13356
- const e = t.match || lg;
13356
+ const e = t.match || lm;
13357
13357
  return {
13358
13358
  onRequestParse({ request: n, setRequestParser: i }) {
13359
13359
  e(n) && i(t.parse);
13360
13360
  }
13361
13361
  };
13362
13362
  }
13363
- function ug(t) {
13363
+ function um(t) {
13364
13364
  const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
13365
13365
  for (const i of e) {
13366
13366
  const [r, ...s] = i.split(";");
@@ -13368,7 +13368,7 @@ function ug(t) {
13368
13368
  }
13369
13369
  return n.reverse();
13370
13370
  }
13371
- function cg(t, e) {
13371
+ function cm(t, e) {
13372
13372
  const [n, i] = t.split("/"), [r, s] = e.split("/");
13373
13373
  return (r === "*" || r === n) && (s === "*" || s === i);
13374
13374
  }
@@ -13407,7 +13407,7 @@ function Yl(t) {
13407
13407
  }
13408
13408
  return t;
13409
13409
  }
13410
- function fg(t, e) {
13410
+ function fm(t, e) {
13411
13411
  const i = Vs(t, {
13412
13412
  Connection: "keep-alive",
13413
13413
  "Content-Type": 'multipart/mixed; boundary="-"',
@@ -13416,7 +13416,7 @@ function fg(t, e) {
13416
13416
  let r;
13417
13417
  const s = new e.TextEncoder(), o = new e.ReadableStream({
13418
13418
  start(a) {
13419
- if (Ft(t))
13419
+ if (xt(t))
13420
13420
  r = t[Symbol.asyncIterator]();
13421
13421
  else {
13422
13422
  let l = !1;
@@ -13453,7 +13453,7 @@ function fg(t, e) {
13453
13453
  });
13454
13454
  return new e.Response(o, i);
13455
13455
  }
13456
- function dg(t, e, n) {
13456
+ function dm(t, e, n) {
13457
13457
  if (kr(t))
13458
13458
  return new e.Response(null, {
13459
13459
  status: 406,
@@ -13468,14 +13468,14 @@ function dg(t, e, n) {
13468
13468
  t,
13469
13469
  i,
13470
13470
  // prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
13471
- n === "application/json" && !Array.isArray(t) && mh(t.errors) && t.errors.some((o) => {
13471
+ n === "application/json" && !Array.isArray(t) && gh(t.errors) && t.errors.some((o) => {
13472
13472
  var a;
13473
13473
  return !((a = o.extensions) != null && a.originalError) || Bn(o.extensions.originalError);
13474
13474
  })
13475
13475
  ), s = Qs(t);
13476
13476
  return new e.Response(s, r);
13477
13477
  }
13478
- function hg() {
13478
+ function hm() {
13479
13479
  return function(e, n) {
13480
13480
  var f, d;
13481
13481
  let i = 12e3;
@@ -13499,7 +13499,7 @@ function hg() {
13499
13499
  h.enqueue(l.encode(`:
13500
13500
 
13501
13501
  `));
13502
- }, i), Ft(e))
13502
+ }, i), xt(e))
13503
13503
  o = e[Symbol.asyncIterator]();
13504
13504
  else {
13505
13505
  let p = !1;
@@ -13514,8 +13514,8 @@ function hg() {
13514
13514
  if (p.value != null) {
13515
13515
  h.enqueue(l.encode(`event: next
13516
13516
  `));
13517
- const m = Qs(p.value);
13518
- h.enqueue(l.encode(`data: ${m}
13517
+ const g = Qs(p.value);
13518
+ h.enqueue(l.encode(`data: ${g}
13519
13519
 
13520
13520
  `));
13521
13521
  }
@@ -13535,40 +13535,40 @@ function hg() {
13535
13535
  return new n.Response(u, s);
13536
13536
  };
13537
13537
  }
13538
- const pg = {
13538
+ const pm = {
13539
13539
  mediaTypes: ["multipart/mixed"],
13540
13540
  asyncIterables: !0,
13541
- processResult: fg
13541
+ processResult: fm
13542
13542
  };
13543
- function gg() {
13543
+ function mm() {
13544
13544
  return {
13545
13545
  mediaTypes: ["text/event-stream"],
13546
13546
  asyncIterables: !0,
13547
- processResult: hg()
13547
+ processResult: hm()
13548
13548
  };
13549
13549
  }
13550
13550
  const ia = {
13551
13551
  mediaTypes: ["application/graphql-response+json", "application/json"],
13552
13552
  asyncIterables: !1,
13553
- processResult: dg
13553
+ processResult: dm
13554
13554
  };
13555
- function mg() {
13556
- const t = /* @__PURE__ */ new WeakMap(), e = gg(), n = [e, pg, ia], i = [e, ia];
13555
+ function gm() {
13556
+ const t = /* @__PURE__ */ new WeakMap(), e = mm(), n = [e, pm, ia], i = [e, ia];
13557
13557
  return {
13558
13558
  onSubscribe({ args: { contextValue: r } }) {
13559
13559
  r.request && t.set(r.request, !0);
13560
13560
  },
13561
13561
  onResultProcess({ request: r, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
13562
- const u = t.get(r) ? i : n, f = ug(r), d = Ft(s);
13562
+ const u = t.get(r) ? i : n, f = um(r), d = xt(s);
13563
13563
  for (const h of u)
13564
13564
  for (const p of f)
13565
13565
  if (!(d && !h.asyncIterables))
13566
- for (const m of h.mediaTypes)
13567
- o.push(m), cg(m, p) && a(h.processResult, m);
13566
+ for (const g of h.mediaTypes)
13567
+ o.push(g), cm(g, p) && a(h.processResult, g);
13568
13568
  }
13569
13569
  };
13570
13570
  }
13571
- const yg = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1><p>Version: 5.10.4</p></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
13571
+ const ym = `<!doctype html><html lang=en><head><meta charset=utf-8><title>Welcome to GraphQL Yoga</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><style>body,html{padding:0;margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;color:#fff;background-color:#000}main>section.hero{display:flex;height:90vh;justify-content:center;align-items:center;flex-direction:column}.logo{display:flex;align-items:center}.buttons{margin-top:24px}h1{font-size:80px}h2{color:#888;max-width:50%;margin-top:0;text-align:center}a{color:#fff;text-decoration:none;margin-left:10px;margin-right:10px;font-weight:700;transition:color .3s ease;padding:4px;overflow:visible}a.graphiql:hover{color:rgba(255,0,255,.7)}a.docs:hover{color:rgba(28,200,238,.7)}a.tutorial:hover{color:rgba(125,85,245,.7)}svg{margin-right:24px}.not-what-your-looking-for{margin-top:5vh}.not-what-your-looking-for>*{margin-left:auto;margin-right:auto}.not-what-your-looking-for>p{text-align:center}.not-what-your-looking-for>h2{color:#464646}.not-what-your-looking-for>p{max-width:600px;line-height:1.3em}.not-what-your-looking-for>pre{max-width:300px}</style></head><body id=body><main><section class=hero><div class=logo><div><svg xmlns=http://www.w3.org/2000/svg viewBox="-0.41 0.445 472.812 499.811" height=150><defs><linearGradient id=paint0_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint1_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint2_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint3_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint4_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><linearGradient id=paint5_linear_1677_11483 x1=16 y1=14 x2=87.2132 y2=44.5982 gradientUnits=userSpaceOnUse><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter0_f_1677_11483 x=23 y=-25 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter1_f_1677_11483 x=-24 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><linearGradient id=paint6_linear_1677_11483 x1=30 y1=28 x2=66.1645 y2=44.4363 gradientUnits=userSpaceOnUse gradientTransform="matrix(8.139854, 0, 0, 8.139854, -130.346407, -113.25101)"><stop stop-color=#7433FF /><stop offset=1 stop-color=#FFA3FD /></linearGradient><filter id=filter2_f_1677_11483 x=-12 y=-44 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter><filter id=filter3_f_1677_11483 x=13 y=19 width=100 height=100 filterUnits=userSpaceOnUse color-interpolation-filters=sRGB><feFlood flood-opacity=0 result=BackgroundImageFix /><feBlend mode=normal in=SourceGraphic in2=BackgroundImageFix result=shape /><feGaussianBlur stdDeviation=12 result=effect1_foregroundBlur_1677_11483 /></filter></defs><mask id=mask0_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=16 y=14 width=58 height=62><path d="M21 25.3501C21.7279 25.3501 22.4195 25.5056 23.0433 25.7853L42.1439 14.8C43.0439 14.3 44.1439 14 45.1439 14C46.2439 14 47.2439 14.3 48.1439 14.8L64.5439 24.3C63.3439 25.1 62.4439 26.3 61.8439 27.7L45.9438 18.5C45.6439 18.3 45.344 18.3 45.0441 18.3C44.7441 18.3 44.4439 18.4 44.1439 18.5L25.8225 29.0251C25.9382 29.4471 26 29.8914 26 30.3501C26 33.1115 23.7614 35.3501 21 35.3501C18.2386 35.3501 16 33.1115 16 30.3501C16 27.5887 18.2386 25.3501 21 25.3501Z" fill=url(#paint3_linear_1677_11483) /><path d="M67.2438 35.0329C65.3487 34.3219 64 32.4934 64 30.35C64 27.5886 66.2386 25.35 69 25.35C71.7614 25.35 74 27.5886 74 30.35C74 32.1825 73.0142 33.7848 71.5439 34.6554V55.2C71.5439 57.4 70.3439 59.4 68.5439 60.5L52.1439 69.9C52.1439 68.4 51.6438 66.9 50.7438 65.8L66.3439 56.8C66.9439 56.5 67.2438 55.9 67.2438 55.2V35.0329Z" fill=url(#paint4_linear_1677_11483) /><path d="M49.8439 69.1055C49.9458 69.5034 50 69.9204 50 70.3501C50 73.1115 47.7614 75.3501 45 75.3501C42.5102 75.3501 40.4454 73.5302 40.0633 71.1481L21.8439 60.6C19.9439 59.5 18.8439 57.5 18.8439 55.3V36.8C19.5439 37 20.3439 37.2 21.0439 37.2C21.7439 37.2 22.4439 37.1 23.0439 36.9V55.3C23.0439 56 23.4438 56.6 23.9438 56.9L41.3263 66.9583C42.2398 65.9694 43.5476 65.3501 45 65.3501C47.3291 65.3501 49.2862 66.9426 49.8419 69.0981L49.8436 69.0997L49.8439 69.1055Z" fill=url(#paint5_linear_1677_11483) /></mask><mask id=mask1_1677_11483 style=mask-type:alpha maskUnits=userSpaceOnUse x=30 y=28 width=30 height=30><path fill-rule=evenodd clip-rule=evenodd d="M49.3945 32.3945C49.3945 34.7088 47.5796 38.5469 45 38.5469C42.4271 38.5469 40.6055 34.7112 40.6055 32.3945C40.6055 29.9714 42.5769 28 45 28C47.4231 28 49.3945 29.9714 49.3945 32.3945ZM35.332 49.0433V48.2148C35.332 42.8117 37.8535 41.0004 39.8796 39.545L39.8801 39.5447C40.3928 39.1767 40.8604 38.8404 41.2488 38.4742C42.3293 39.6642 43.626 40.3047 45 40.3047C46.3752 40.3047 47.6725 39.6642 48.7529 38.4754C49.1408 38.841 49.6078 39.1773 50.1199 39.5447L50.1204 39.545C52.1465 41.0004 54.668 42.8117 54.668 48.2148V49.0433L53.8406 49.092C49.9848 49.3185 46.8646 46.9002 45 43.5777C43.1159 46.935 39.9847 49.318 36.1594 49.092L35.332 49.0433ZM58.1463 51.0747L58.1463 51.0746C57.0179 50.891 50.0128 49.7507 45.0007 55.693C40.0116 49.7553 33.1965 50.8592 31.9095 51.0677L31.9095 51.0677C31.7906 51.087 31.7189 51.0986 31.7002 51.0963C31.7005 51.0969 31.7011 51.1045 31.7023 51.1187C31.726 51.4003 31.9682 54.2745 34.0566 56.2422L30 58H60L55.8956 56.2422C57.8537 54.4764 58.1396 52.2685 58.2508 51.4092V51.4091C58.2697 51.2628 58.2836 51.1556 58.2998 51.0963C58.2881 51.0977 58.2356 51.0892 58.1463 51.0747ZM40.4836 50.104C42.3956 49.3212 43.6746 48.1737 45 46.61C46.332 48.1841 47.6159 49.3259 49.5164 50.104C49.5356 50.1425 49.5557 50.1805 49.5756 50.2182C49.5793 50.2253 49.583 50.2323 49.5867 50.2393C48.0911 50.8127 46.4264 51.825 45.0047 53.1444C43.5906 51.8221 41.9673 50.8196 40.4256 50.2153C40.4455 50.1784 40.4648 50.1415 40.4836 50.104Z" fill=black /></mask><path d="M 40.59 93.095 C 46.517 93.095 52.14 94.365 57.22 96.635 L 212.7 7.22 C 220.025 3.149 228.978 0.706 237.12 0.706 C 246.073 0.706 254.213 3.149 261.54 7.22 L 395.032 84.547 C 385.264 91.059 377.939 100.827 373.055 112.224 L 243.631 37.338 C 241.19 35.71 238.747 35.71 236.305 35.71 C 233.863 35.71 231.42 36.523 228.978 37.338 L 79.84 123.009 C 80.786 126.443 81.29 130.058 81.29 133.793 C 81.29 156.269 63.065 174.493 40.59 174.493 C 18.116 174.493 -0.109 156.269 -0.109 133.793 C -0.109 111.32 18.116 93.095 40.59 93.095 Z" fill=url(#paint0_linear_1677_11483) /><path d="M 417.01 171.913 C 401.585 166.126 390.603 151.238 390.603 133.793 C 390.603 111.32 408.83 93.095 431.303 93.095 C 453.777 93.095 472.001 111.32 472.001 133.793 C 472.001 148.706 463.976 161.755 452.011 168.835 L 452.011 336.07 C 452.011 353.977 442.243 370.258 427.591 379.21 L 294.098 455.726 C 294.098 443.516 290.029 431.306 282.703 422.353 L 409.683 349.093 C 414.568 346.651 417.01 341.767 417.01 336.07 L 417.01 171.913 Z" fill=url(#paint1_linear_1677_11483) /><path d="M 275.376 449.253 C 276.206 452.495 276.646 455.889 276.646 459.389 C 276.646 481.863 258.422 500.087 235.947 500.087 C 215.679 500.087 198.87 485.272 195.761 465.883 L 47.46 380.025 C 31.995 371.071 23.041 354.792 23.041 336.884 L 23.041 186.296 C 28.738 187.923 35.25 189.553 40.948 189.553 C 46.646 189.553 52.345 188.738 57.228 187.111 L 57.228 336.884 C 57.228 342.582 60.485 347.465 64.554 349.908 L 206.042 431.777 C 213.481 423.728 224.127 418.689 235.947 418.689 C 254.905 418.689 270.833 431.656 275.36 449.196 L 275.376 449.214 L 275.376 449.253 Z" fill=url(#paint2_linear_1677_11483) /><g mask=url(#mask0_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter0_f_1677_11483)><circle cx=73 cy=25 r=26 fill=#ED2E7E /></g><g filter=url(#filter1_f_1677_11483)><circle cx=26 cy=69 r=26 fill=#1CC8EE /></g></g><path fill-rule=evenodd clip-rule=evenodd d="M 271.713 150.431 C 271.713 169.275 256.948 200.517 235.947 200.517 C 215.003 200.517 200.172 169.292 200.172 150.431 C 200.172 130.708 216.225 114.666 235.947 114.666 C 255.67 114.666 271.713 130.708 271.713 150.431 Z M 157.251 285.952 L 157.251 279.212 C 157.251 235.233 177.771 220.485 194.27 208.641 C 198.447 205.644 202.247 202.901 205.414 199.923 C 214.204 209.608 224.763 214.826 235.947 214.826 C 247.138 214.826 257.697 209.608 266.496 199.931 C 269.653 202.911 273.456 205.644 277.622 208.641 C 294.114 220.485 314.642 235.233 314.642 279.212 L 314.642 285.952 L 307.912 286.351 C 276.525 288.191 251.128 268.509 235.947 241.468 C 220.611 268.795 195.126 288.191 163.981 286.351 L 157.251 285.952 Z M 342.953 302.492 C 333.771 300.994 276.751 291.715 235.955 340.082 C 195.345 291.749 139.865 300.734 129.389 302.436 C 128.428 302.59 127.841 302.688 127.687 302.665 C 127.687 302.673 127.695 302.729 127.702 302.85 C 127.897 305.138 129.867 328.532 146.872 344.55 L 113.849 358.862 L 358.044 358.862 L 324.639 344.55 C 340.576 330.177 342.905 312.202 343.807 305.212 C 343.962 304.022 344.077 303.153 344.206 302.665 C 344.108 302.68 343.686 302.606 342.953 302.492 Z M 199.188 294.59 C 214.751 288.215 225.161 278.879 235.947 266.15 C 246.788 278.96 257.241 288.255 272.707 294.59 C 272.869 294.898 273.031 295.207 273.196 295.518 C 273.219 295.574 273.252 295.631 273.285 295.688 C 261.107 300.361 247.555 308.598 235.989 319.334 C 224.477 308.573 211.258 300.417 198.715 295.493 C 198.87 295.191 199.033 294.891 199.188 294.59 Z" fill=url(#paint6_linear_1677_11483) /><g mask=url(#mask1_1677_11483) transform="matrix(8.139854, 0, 0, 8.139854, -130.346375, -113.251038)"><g filter=url(#filter2_f_1677_11483)><circle cx=38 cy=6 r=26 fill=#ED2E7E /></g><g filter=url(#filter3_f_1677_11483)><circle cx=63 cy=69 r=26 fill=#1CC8EE /></g></g></svg></div><h1>GraphQL Yoga</h1><p>Version: 5.10.4</p></div><h2>The batteries-included cross-platform GraphQL Server.</h2><div class=buttons><a href=https://www.the-guild.dev/graphql/yoga-server/docs class=docs>Read the Docs</a> <a href=https://www.the-guild.dev/graphql/yoga-server/tutorial/basic class=tutorial>Start the Tutorial </a><a href=__GRAPHIQL_LINK__ class=graphiql>Visit GraphiQL</a></div></section><section class=not-what-your-looking-for><h2>Not the page you are looking for? 👀</h2><p>This page is shown be default whenever a 404 is hit.<br>You can disable this by behavior via the <code>landingPage</code> option.</p><pre>
13572
13572
  <code>
13573
13573
  import { createYoga } from 'graphql-yoga';
13574
13574
 
@@ -13584,8 +13584,8 @@ const yoga = createYoga({
13584
13584
  graphqlEndpoint: '__REQUEST_PATH__',
13585
13585
  })
13586
13586
  </code>
13587
- </pre></section></main></body></html>`, bg = function(e) {
13588
- return new e.fetchAPI.Response(yg.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
13587
+ </pre></section></main></body></html>`, bm = function(e) {
13588
+ return new e.fetchAPI.Response(ym.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
13589
13589
  status: 200,
13590
13590
  statusText: "OK",
13591
13591
  headers: {
@@ -13593,14 +13593,14 @@ const yoga = createYoga({
13593
13593
  }
13594
13594
  });
13595
13595
  };
13596
- function Eg(t) {
13596
+ function Em(t) {
13597
13597
  let e;
13598
13598
  function n({ URLPattern: r }) {
13599
13599
  return e || (e = new r({
13600
13600
  pathname: t.graphqlEndpoint
13601
13601
  })), e;
13602
13602
  }
13603
- const i = t.landingPageRenderer || bg;
13603
+ const i = t.landingPageRenderer || bm;
13604
13604
  return {
13605
13605
  onRequest({ request: r, fetchAPI: s, endResponse: o, url: a }) {
13606
13606
  var l, u;
@@ -13654,7 +13654,7 @@ async function ra({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i,
13654
13654
  }
13655
13655
  });
13656
13656
  }
13657
- async function Tg({ params: t, enveloped: e }) {
13657
+ async function Tm({ params: t, enveloped: e }) {
13658
13658
  const n = e.parse(t.query), i = e.validate(e.schema, n);
13659
13659
  if (i.length > 0)
13660
13660
  return { errors: i };
@@ -13667,7 +13667,7 @@ async function Tg({ params: t, enveloped: e }) {
13667
13667
  }, o = Ps(n, t.operationName);
13668
13668
  return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
13669
13669
  }
13670
- const vg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
13670
+ const vm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
13671
13671
  if (Bn(t)) {
13672
13672
  if (t.originalError) {
13673
13673
  if (t.originalError.name === "GraphQLError")
@@ -13699,24 +13699,24 @@ const vg = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
13699
13699
  }
13700
13700
  });
13701
13701
  };
13702
- class Sg {
13702
+ class Sm {
13703
13703
  constructor(e) {
13704
13704
  /**
13705
13705
  * Instance of envelop
13706
13706
  */
13707
- F(this, "getEnveloped");
13708
- F(this, "logger");
13709
- F(this, "graphqlEndpoint");
13710
- F(this, "fetchAPI");
13711
- F(this, "plugins");
13712
- F(this, "onRequestParseHooks");
13713
- F(this, "onParamsHooks");
13714
- F(this, "onExecutionResultHooks");
13715
- F(this, "onResultProcessHooks");
13716
- F(this, "maskedErrorsOpts");
13717
- F(this, "id");
13718
- F(this, "version", "5.10.4");
13719
- F(this, "handle", async (e, n) => {
13707
+ x(this, "getEnveloped");
13708
+ x(this, "logger");
13709
+ x(this, "graphqlEndpoint");
13710
+ x(this, "fetchAPI");
13711
+ x(this, "plugins");
13712
+ x(this, "onRequestParseHooks");
13713
+ x(this, "onParamsHooks");
13714
+ x(this, "onExecutionResultHooks");
13715
+ x(this, "onResultProcessHooks");
13716
+ x(this, "maskedErrorsOpts");
13717
+ x(this, "id");
13718
+ x(this, "version", "5.10.4");
13719
+ x(this, "handle", async (e, n) => {
13720
13720
  let i = new Proxy({}, {
13721
13721
  get: (l, u, f) => (i = new this.fetchAPI.URL(e.url, "http://localhost"), Reflect.get(i, u, i))
13722
13722
  }), r;
@@ -13768,7 +13768,7 @@ class Sg {
13768
13768
  e.fetchAPI[l] && (this.fetchAPI[l] = e.fetchAPI[l]);
13769
13769
  const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
13770
13770
  this.logger = typeof n == "boolean" ? n === !0 ? Qr() : Qr("silent") : typeof n == "string" ? Qr(n) : n;
13771
- const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || vg, r = /* @__PURE__ */ new WeakSet();
13771
+ const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || vm, r = /* @__PURE__ */ new WeakSet();
13772
13772
  this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
13773
13773
  errorMessage: "Unexpected error.",
13774
13774
  ...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
@@ -13790,18 +13790,18 @@ class Sg {
13790
13790
  validate: Jf,
13791
13791
  execute: zo,
13792
13792
  subscribe: zo,
13793
- specifiedRules: gl
13793
+ specifiedRules: ml
13794
13794
  }),
13795
13795
  // Use the schema provided by the user
13796
13796
  !!(e != null && e.schema) && Oh(e.schema),
13797
13797
  (e == null ? void 0 : e.context) != null && Cu((l) => e != null && e.context ? typeof e.context == "function" ? e.context(l) : e.context : {}),
13798
13798
  // Middlewares before processing the incoming HTTP request
13799
- tg({
13799
+ tm({
13800
13800
  id: this.id,
13801
13801
  logger: this.logger,
13802
13802
  endpoint: e == null ? void 0 : e.healthCheckEndpoint
13803
13803
  }),
13804
- (e == null ? void 0 : e.cors) !== !1 && Fp(e == null ? void 0 : e.cors),
13804
+ (e == null ? void 0 : e.cors) !== !1 && xp(e == null ? void 0 : e.cors),
13805
13805
  (e == null ? void 0 : e.graphiql) !== !1 && _h({
13806
13806
  graphqlEndpoint: a,
13807
13807
  options: e == null ? void 0 : e.graphiql,
@@ -13830,7 +13830,7 @@ class Sg {
13830
13830
  parse: $p
13831
13831
  }),
13832
13832
  // Middlewares after the GraphQL execution
13833
- mg(),
13833
+ gm(),
13834
13834
  Rp((l, u, f) => {
13835
13835
  const h = {
13836
13836
  errors: rr(l, this.maskedErrorsOpts, this.logger)
@@ -13849,17 +13849,17 @@ class Sg {
13849
13849
  onPluginInit({ addPlugin: l }) {
13850
13850
  (e == null ? void 0 : e.parserAndValidationCache) !== !1 && l(
13851
13851
  // @ts-expect-error Add plugins has context but this hook doesn't care
13852
- ag(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
13852
+ am(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
13853
13853
  ), l(Xp(o)), l(Wp(e == null ? void 0 : e.extraParamNames));
13854
13854
  const u = !!((e == null ? void 0 : e.landingPage) ?? !0);
13855
13855
  l(
13856
13856
  // @ts-expect-error Add plugins has context but this hook doesn't care
13857
- Eg({
13857
+ Em({
13858
13858
  graphqlEndpoint: a,
13859
13859
  showLandingPage: u,
13860
13860
  landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
13861
13861
  })
13862
- ), l(Yp()), l(eg()), s && (l({
13862
+ ), l(Yp()), l(em()), s && (l({
13863
13863
  onSubscribe() {
13864
13864
  return {
13865
13865
  onSubscribeError({ error: f }) {
@@ -13907,12 +13907,12 @@ class Sg {
13907
13907
  };
13908
13908
  Object.assign(i, s);
13909
13909
  const o = this.getEnveloped(i);
13910
- this.logger.debug("Processing GraphQL Parameters"), r = await Tg({
13910
+ this.logger.debug("Processing GraphQL Parameters"), r = await Tm({
13911
13911
  params: e,
13912
13912
  enveloped: o
13913
13913
  }), this.logger.debug("Processing GraphQL Parameters done.");
13914
13914
  }
13915
- if (Ft(r)) {
13915
+ if (xt(r)) {
13916
13916
  const s = r[Symbol.asyncIterator]();
13917
13917
  r = Nl(s, (o) => o, (o) => {
13918
13918
  if (o.name === "AbortError")
@@ -13939,8 +13939,8 @@ class Sg {
13939
13939
  return r;
13940
13940
  }
13941
13941
  }
13942
- function wg(t) {
13943
- const e = new Sg(t);
13942
+ function wm(t) {
13943
+ const e = new Sm(t);
13944
13944
  return Ip(e, {
13945
13945
  fetchAPI: e.fetchAPI,
13946
13946
  plugins: e.plugins
@@ -13954,17 +13954,17 @@ var _a;
13954
13954
  if (typeof Sr > "u") {
13955
13955
  sa = class {
13956
13956
  constructor() {
13957
- F(this, "onabort");
13958
- F(this, "_onabort", []);
13959
- F(this, "reason");
13960
- F(this, "aborted", !1);
13957
+ x(this, "onabort");
13958
+ x(this, "_onabort", []);
13959
+ x(this, "reason");
13960
+ x(this, "aborted", !1);
13961
13961
  }
13962
13962
  addEventListener(i, r) {
13963
13963
  this._onabort.push(r);
13964
13964
  }
13965
13965
  }, Sr = class {
13966
13966
  constructor() {
13967
- F(this, "signal", new sa());
13967
+ x(this, "signal", new sa());
13968
13968
  e();
13969
13969
  }
13970
13970
  abort(i) {
@@ -13982,7 +13982,7 @@ if (typeof Sr > "u") {
13982
13982
  t && (t = !1, Xl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
13983
13983
  };
13984
13984
  }
13985
- const _g = (t) => !Kl.has(t), zt = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Zl = (t) => zt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? ur : null : null;
13985
+ const _m = (t) => !Kl.has(t), zt = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Zl = (t) => zt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? ur : null : null;
13986
13986
  class ur extends Array {
13987
13987
  constructor(e) {
13988
13988
  super(e), this.fill(0);
@@ -13991,8 +13991,8 @@ class ur extends Array {
13991
13991
  var $n;
13992
13992
  const an = class an {
13993
13993
  constructor(e, n) {
13994
- F(this, "heap");
13995
- F(this, "length");
13994
+ x(this, "heap");
13995
+ x(this, "length");
13996
13996
  if (!c(an, $n))
13997
13997
  throw new TypeError("instantiate Stack using Stack.create(n)");
13998
13998
  this.heap = new n(e), this.length = 0;
@@ -14015,7 +14015,7 @@ const an = class an {
14015
14015
  $n = new WeakMap(), // private constructor
14016
14016
  D(an, $n, !1);
14017
14017
  let Es = an;
14018
- var Oa, Ia, dt, ze, ht, pt, Pn, jn, fe, gt, le, Z, G, Re, Qe, Ne, me, mt, ye, yt, bt, We, Et, Yt, Ce, C, vs, fn, Pt, vi, He, eu, dn, Mn, Si, Qt, Wt, Ss, cr, fr, K, ws, hi, Ht, _s;
14018
+ var Oa, Ia, dt, ze, ht, pt, Pn, jn, fe, mt, le, Z, G, Re, Qe, Ne, ge, gt, ye, yt, bt, We, Et, Yt, Ce, C, vs, fn, Pt, vi, He, eu, dn, Mn, Si, Qt, Wt, Ss, cr, fr, K, ws, hi, Ht, _s;
14019
14019
  const Hs = class Hs {
14020
14020
  constructor(e) {
14021
14021
  D(this, C);
@@ -14029,74 +14029,74 @@ const Hs = class Hs {
14029
14029
  /**
14030
14030
  * {@link LRUCache.OptionsBase.ttl}
14031
14031
  */
14032
- F(this, "ttl");
14032
+ x(this, "ttl");
14033
14033
  /**
14034
14034
  * {@link LRUCache.OptionsBase.ttlResolution}
14035
14035
  */
14036
- F(this, "ttlResolution");
14036
+ x(this, "ttlResolution");
14037
14037
  /**
14038
14038
  * {@link LRUCache.OptionsBase.ttlAutopurge}
14039
14039
  */
14040
- F(this, "ttlAutopurge");
14040
+ x(this, "ttlAutopurge");
14041
14041
  /**
14042
14042
  * {@link LRUCache.OptionsBase.updateAgeOnGet}
14043
14043
  */
14044
- F(this, "updateAgeOnGet");
14044
+ x(this, "updateAgeOnGet");
14045
14045
  /**
14046
14046
  * {@link LRUCache.OptionsBase.updateAgeOnHas}
14047
14047
  */
14048
- F(this, "updateAgeOnHas");
14048
+ x(this, "updateAgeOnHas");
14049
14049
  /**
14050
14050
  * {@link LRUCache.OptionsBase.allowStale}
14051
14051
  */
14052
- F(this, "allowStale");
14052
+ x(this, "allowStale");
14053
14053
  /**
14054
14054
  * {@link LRUCache.OptionsBase.noDisposeOnSet}
14055
14055
  */
14056
- F(this, "noDisposeOnSet");
14056
+ x(this, "noDisposeOnSet");
14057
14057
  /**
14058
14058
  * {@link LRUCache.OptionsBase.noUpdateTTL}
14059
14059
  */
14060
- F(this, "noUpdateTTL");
14060
+ x(this, "noUpdateTTL");
14061
14061
  /**
14062
14062
  * {@link LRUCache.OptionsBase.maxEntrySize}
14063
14063
  */
14064
- F(this, "maxEntrySize");
14064
+ x(this, "maxEntrySize");
14065
14065
  /**
14066
14066
  * {@link LRUCache.OptionsBase.sizeCalculation}
14067
14067
  */
14068
- F(this, "sizeCalculation");
14068
+ x(this, "sizeCalculation");
14069
14069
  /**
14070
14070
  * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}
14071
14071
  */
14072
- F(this, "noDeleteOnFetchRejection");
14072
+ x(this, "noDeleteOnFetchRejection");
14073
14073
  /**
14074
14074
  * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}
14075
14075
  */
14076
- F(this, "noDeleteOnStaleGet");
14076
+ x(this, "noDeleteOnStaleGet");
14077
14077
  /**
14078
14078
  * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}
14079
14079
  */
14080
- F(this, "allowStaleOnFetchAbort");
14080
+ x(this, "allowStaleOnFetchAbort");
14081
14081
  /**
14082
14082
  * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}
14083
14083
  */
14084
- F(this, "allowStaleOnFetchRejection");
14084
+ x(this, "allowStaleOnFetchRejection");
14085
14085
  /**
14086
14086
  * {@link LRUCache.OptionsBase.ignoreFetchAbort}
14087
14087
  */
14088
- F(this, "ignoreFetchAbort");
14088
+ x(this, "ignoreFetchAbort");
14089
14089
  // computed properties
14090
14090
  D(this, fe);
14091
- D(this, gt);
14091
+ D(this, mt);
14092
14092
  D(this, le);
14093
14093
  D(this, Z);
14094
14094
  D(this, G);
14095
14095
  D(this, Re);
14096
14096
  D(this, Qe);
14097
14097
  D(this, Ne);
14098
- D(this, me);
14099
- D(this, mt);
14098
+ D(this, ge);
14099
+ D(this, gt);
14100
14100
  D(this, ye);
14101
14101
  D(this, yt);
14102
14102
  D(this, bt);
@@ -14127,14 +14127,14 @@ const Hs = class Hs {
14127
14127
  * description of an object. Called by the built-in method
14128
14128
  * `Object.prototype.toString`.
14129
14129
  */
14130
- F(this, Oa, "LRUCache");
14131
- const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: l, dispose: u, disposeAfter: f, noDisposeOnSet: d, noUpdateTTL: h, maxSize: p = 0, maxEntrySize: m = 0, sizeCalculation: v, fetchMethod: x, memoMethod: b, noDeleteOnFetchRejection: T, noDeleteOnStaleGet: N, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: y, ignoreFetchAbort: S } = e;
14130
+ x(this, Oa, "LRUCache");
14131
+ const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: l, dispose: u, disposeAfter: f, noDisposeOnSet: d, noUpdateTTL: h, maxSize: p = 0, maxEntrySize: g = 0, sizeCalculation: v, fetchMethod: F, memoMethod: b, noDeleteOnFetchRejection: T, noDeleteOnStaleGet: N, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: y, ignoreFetchAbort: S } = e;
14132
14132
  if (n !== 0 && !zt(n))
14133
14133
  throw new TypeError("max option must be a nonnegative integer");
14134
14134
  const _ = n ? Zl(n) : Array;
14135
14135
  if (!_)
14136
14136
  throw new Error("invalid max value: " + n);
14137
- if (I(this, dt, n), I(this, ze, p), this.maxEntrySize = m || c(this, ze), this.sizeCalculation = v, this.sizeCalculation) {
14137
+ if (I(this, dt, n), I(this, ze, p), this.maxEntrySize = g || c(this, ze), this.sizeCalculation = v, this.sizeCalculation) {
14138
14138
  if (!c(this, ze) && !this.maxEntrySize)
14139
14139
  throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
14140
14140
  if (typeof this.sizeCalculation != "function")
@@ -14142,9 +14142,9 @@ const Hs = class Hs {
14142
14142
  }
14143
14143
  if (b !== void 0 && typeof b != "function")
14144
14144
  throw new TypeError("memoMethod must be a function if defined");
14145
- if (I(this, jn, b), x !== void 0 && typeof x != "function")
14145
+ if (I(this, jn, b), F !== void 0 && typeof F != "function")
14146
14146
  throw new TypeError("fetchMethod must be a function if specified");
14147
- if (I(this, Pn, x), I(this, Yt, !!x), I(this, le, /* @__PURE__ */ new Map()), I(this, Z, new Array(n).fill(void 0)), I(this, G, new Array(n).fill(void 0)), I(this, Re, new _(n)), I(this, Qe, new _(n)), I(this, Ne, 0), I(this, me, 0), I(this, mt, Es.create(n)), I(this, fe, 0), I(this, gt, 0), typeof u == "function" && I(this, ht, u), typeof f == "function" ? (I(this, pt, f), I(this, ye, [])) : (I(this, pt, void 0), I(this, ye, void 0)), I(this, Et, !!c(this, ht)), I(this, Ce, !!c(this, pt)), this.noDisposeOnSet = !!d, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!T, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!y, this.ignoreFetchAbort = !!S, this.maxEntrySize !== 0) {
14147
+ if (I(this, Pn, F), I(this, Yt, !!F), I(this, le, /* @__PURE__ */ new Map()), I(this, Z, new Array(n).fill(void 0)), I(this, G, new Array(n).fill(void 0)), I(this, Re, new _(n)), I(this, Qe, new _(n)), I(this, Ne, 0), I(this, ge, 0), I(this, gt, Es.create(n)), I(this, fe, 0), I(this, mt, 0), typeof u == "function" && I(this, ht, u), typeof f == "function" ? (I(this, pt, f), I(this, ye, [])) : (I(this, pt, void 0), I(this, ye, void 0)), I(this, Et, !!c(this, ht)), I(this, Ce, !!c(this, pt)), this.noDisposeOnSet = !!d, this.noUpdateTTL = !!h, this.noDeleteOnFetchRejection = !!T, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!y, this.ignoreFetchAbort = !!S, this.maxEntrySize !== 0) {
14148
14148
  if (c(this, ze) !== 0 && !zt(c(this, ze)))
14149
14149
  throw new TypeError("maxSize must be a positive integer if specified");
14150
14150
  if (!zt(this.maxEntrySize))
@@ -14160,7 +14160,7 @@ const Hs = class Hs {
14160
14160
  throw new TypeError("At least one of max, maxSize, or ttl is required");
14161
14161
  if (!this.ttlAutopurge && !c(this, dt) && !c(this, ze)) {
14162
14162
  const $ = "LRU_CACHE_UNBOUNDED";
14163
- _g($) && (Kl.add($), Xl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $, Hs));
14163
+ _m($) && (Kl.add($), Xl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $, Hs));
14164
14164
  }
14165
14165
  }
14166
14166
  /**
@@ -14187,9 +14187,9 @@ const Hs = class Hs {
14187
14187
  return c(e, Ne);
14188
14188
  },
14189
14189
  get tail() {
14190
- return c(e, me);
14190
+ return c(e, ge);
14191
14191
  },
14192
- free: c(e, mt),
14192
+ free: c(e, gt),
14193
14193
  // methods
14194
14194
  isBackgroundFetch: (n) => {
14195
14195
  var i;
@@ -14234,7 +14234,7 @@ const Hs = class Hs {
14234
14234
  * The total computed size of items in the cache (read-only)
14235
14235
  */
14236
14236
  get calculatedSize() {
14237
- return c(this, gt);
14237
+ return c(this, mt);
14238
14238
  }
14239
14239
  /**
14240
14240
  * The number of items stored in the cache (read-only)
@@ -14491,7 +14491,7 @@ const Hs = class Hs {
14491
14491
  * `cache.delete(key)`. `undefined` is never stored in the cache.
14492
14492
  */
14493
14493
  set(e, n, i = {}) {
14494
- var h, p, m, v, x;
14494
+ var h, p, g, v, F;
14495
14495
  if (n === void 0)
14496
14496
  return this.delete(e), this;
14497
14497
  const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: l } = i;
@@ -14501,7 +14501,7 @@ const Hs = class Hs {
14501
14501
  return l && (l.set = "miss", l.maxEntrySizeExceeded = !0), E(this, C, Ht).call(this, e, "set"), this;
14502
14502
  let d = c(this, fe) === 0 ? void 0 : c(this, le).get(e);
14503
14503
  if (d === void 0)
14504
- d = c(this, fe) === 0 ? c(this, me) : c(this, mt).length !== 0 ? c(this, mt).pop() : c(this, fe) === c(this, dt) ? E(this, C, cr).call(this, !1) : c(this, fe), c(this, Z)[d] = e, c(this, G)[d] = n, c(this, le).set(e, d), c(this, Re)[c(this, me)] = d, c(this, Qe)[d] = c(this, me), I(this, me, d), nn(this, fe)._++, c(this, Mn).call(this, d, f, l), l && (l.set = "add"), u = !1;
14504
+ d = c(this, fe) === 0 ? c(this, ge) : c(this, gt).length !== 0 ? c(this, gt).pop() : c(this, fe) === c(this, dt) ? E(this, C, cr).call(this, !1) : c(this, fe), c(this, Z)[d] = e, c(this, G)[d] = n, c(this, le).set(e, d), c(this, Re)[c(this, ge)] = d, c(this, Qe)[d] = c(this, ge), I(this, ge, d), nn(this, fe)._++, c(this, Mn).call(this, d, f, l), l && (l.set = "add"), u = !1;
14505
14505
  else {
14506
14506
  E(this, C, hi).call(this, d);
14507
14507
  const b = c(this, G)[d];
@@ -14510,7 +14510,7 @@ const Hs = class Hs {
14510
14510
  b.__abortController.abort(new Error("replaced"));
14511
14511
  const { __staleWhileFetching: T } = b;
14512
14512
  T !== void 0 && !o && (c(this, Et) && ((h = c(this, ht)) == null || h.call(this, T, e, "set")), c(this, Ce) && ((p = c(this, ye)) == null || p.push([T, e, "set"])));
14513
- } else o || (c(this, Et) && ((m = c(this, ht)) == null || m.call(this, b, e, "set")), c(this, Ce) && ((v = c(this, ye)) == null || v.push([b, e, "set"])));
14513
+ } else o || (c(this, Et) && ((g = c(this, ht)) == null || g.call(this, b, e, "set")), c(this, Ce) && ((v = c(this, ye)) == null || v.push([b, e, "set"])));
14514
14514
  if (c(this, dn).call(this, d), c(this, Mn).call(this, d, f, l), c(this, G)[d] = n, l) {
14515
14515
  l.set = "replace";
14516
14516
  const T = b && E(this, C, K).call(this, b) ? b.__staleWhileFetching : b;
@@ -14522,7 +14522,7 @@ const Hs = class Hs {
14522
14522
  const b = c(this, ye);
14523
14523
  let T;
14524
14524
  for (; T = b == null ? void 0 : b.shift(); )
14525
- (x = c(this, pt)) == null || x.call(this, ...T);
14525
+ (F = c(this, pt)) == null || F.call(this, ...T);
14526
14526
  }
14527
14527
  return this;
14528
14528
  }
@@ -14608,9 +14608,9 @@ const Hs = class Hs {
14608
14608
  noDeleteOnFetchRejection: d = this.noDeleteOnFetchRejection,
14609
14609
  allowStaleOnFetchRejection: h = this.allowStaleOnFetchRejection,
14610
14610
  ignoreFetchAbort: p = this.ignoreFetchAbort,
14611
- allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort,
14611
+ allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort,
14612
14612
  context: v,
14613
- forceRefresh: x = !1,
14613
+ forceRefresh: F = !1,
14614
14614
  status: b,
14615
14615
  signal: T
14616
14616
  } = n;
@@ -14632,7 +14632,7 @@ const Hs = class Hs {
14632
14632
  noUpdateTTL: f,
14633
14633
  noDeleteOnFetchRejection: d,
14634
14634
  allowStaleOnFetchRejection: h,
14635
- allowStaleOnFetchAbort: m,
14635
+ allowStaleOnFetchAbort: g,
14636
14636
  ignoreFetchAbort: p,
14637
14637
  status: b,
14638
14638
  signal: T
@@ -14649,7 +14649,7 @@ const Hs = class Hs {
14649
14649
  return b && (b.fetch = "inflight", k && (b.returnedStale = !0)), k ? y.__staleWhileFetching : y.__returned = y;
14650
14650
  }
14651
14651
  const S = c(this, He).call(this, O);
14652
- if (!x && !S)
14652
+ if (!F && !S)
14653
14653
  return b && (b.fetch = "hit"), E(this, C, hi).call(this, O), r && c(this, fn).call(this, O), b && c(this, Pt).call(this, b, O), y;
14654
14654
  const _ = E(this, C, fr).call(this, e, O, N, v), M = _.__staleWhileFetching !== void 0 && i;
14655
14655
  return b && (b.fetch = S ? "stale" : "refresh", M && S && (b.returnedStale = !0)), M ? _.__staleWhileFetching : _.__returned = _;
@@ -14702,7 +14702,7 @@ const Hs = class Hs {
14702
14702
  return E(this, C, _s).call(this, "delete");
14703
14703
  }
14704
14704
  };
14705
- dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(), Pn = new WeakMap(), jn = new WeakMap(), fe = new WeakMap(), gt = new WeakMap(), le = new WeakMap(), Z = new WeakMap(), G = new WeakMap(), Re = new WeakMap(), Qe = new WeakMap(), Ne = new WeakMap(), me = new WeakMap(), mt = new WeakMap(), ye = new WeakMap(), yt = new WeakMap(), bt = new WeakMap(), We = new WeakMap(), Et = new WeakMap(), Yt = new WeakMap(), Ce = new WeakMap(), C = new WeakSet(), vs = function() {
14705
+ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(), Pn = new WeakMap(), jn = new WeakMap(), fe = new WeakMap(), mt = new WeakMap(), le = new WeakMap(), Z = new WeakMap(), G = new WeakMap(), Re = new WeakMap(), Qe = new WeakMap(), Ne = new WeakMap(), ge = new WeakMap(), gt = new WeakMap(), ye = new WeakMap(), yt = new WeakMap(), bt = new WeakMap(), We = new WeakMap(), Et = new WeakMap(), Yt = new WeakMap(), Ce = new WeakMap(), C = new WeakSet(), vs = function() {
14706
14706
  const e = new ur(c(this, dt)), n = new ur(c(this, dt));
14707
14707
  I(this, We, e), I(this, bt, n), I(this, vi, (s, o, a = wn.now()) => {
14708
14708
  if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
@@ -14748,8 +14748,8 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14748
14748
  });
14749
14749
  }, fn = new WeakMap(), Pt = new WeakMap(), vi = new WeakMap(), He = new WeakMap(), eu = function() {
14750
14750
  const e = new ur(c(this, dt));
14751
- I(this, gt, 0), I(this, yt, e), I(this, dn, (n) => {
14752
- I(this, gt, c(this, gt) - e[n]), e[n] = 0;
14751
+ I(this, mt, 0), I(this, yt, e), I(this, dn, (n) => {
14752
+ I(this, mt, c(this, mt) - e[n]), e[n] = 0;
14753
14753
  }), I(this, Si, (n, i, r, s) => {
14754
14754
  if (E(this, C, K).call(this, i))
14755
14755
  return 0;
@@ -14765,25 +14765,25 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14765
14765
  }), I(this, Mn, (n, i, r) => {
14766
14766
  if (e[n] = i, c(this, ze)) {
14767
14767
  const s = c(this, ze) - e[n];
14768
- for (; c(this, gt) > s; )
14768
+ for (; c(this, mt) > s; )
14769
14769
  E(this, C, cr).call(this, !0);
14770
14770
  }
14771
- I(this, gt, c(this, gt) + e[n]), r && (r.entrySize = i, r.totalCalculatedSize = c(this, gt));
14771
+ I(this, mt, c(this, mt) + e[n]), r && (r.entrySize = i, r.totalCalculatedSize = c(this, mt));
14772
14772
  });
14773
14773
  }, dn = new WeakMap(), Mn = new WeakMap(), Si = new WeakMap(), Qt = function* ({ allowStale: e = this.allowStale } = {}) {
14774
14774
  if (c(this, fe))
14775
- for (let n = c(this, me); !(!E(this, C, Ss).call(this, n) || ((e || !c(this, He).call(this, n)) && (yield n), n === c(this, Ne))); )
14775
+ for (let n = c(this, ge); !(!E(this, C, Ss).call(this, n) || ((e || !c(this, He).call(this, n)) && (yield n), n === c(this, Ne))); )
14776
14776
  n = c(this, Qe)[n];
14777
14777
  }, Wt = function* ({ allowStale: e = this.allowStale } = {}) {
14778
14778
  if (c(this, fe))
14779
- for (let n = c(this, Ne); !(!E(this, C, Ss).call(this, n) || ((e || !c(this, He).call(this, n)) && (yield n), n === c(this, me))); )
14779
+ for (let n = c(this, Ne); !(!E(this, C, Ss).call(this, n) || ((e || !c(this, He).call(this, n)) && (yield n), n === c(this, ge))); )
14780
14780
  n = c(this, Re)[n];
14781
14781
  }, Ss = function(e) {
14782
14782
  return e !== void 0 && c(this, le).get(c(this, Z)[e]) === e;
14783
14783
  }, cr = function(e) {
14784
14784
  var s, o;
14785
14785
  const n = c(this, Ne), i = c(this, Z)[n], r = c(this, G)[n];
14786
- return c(this, Yt) && E(this, C, K).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, Et) || c(this, Ce)) && (c(this, Et) && ((s = c(this, ht)) == null || s.call(this, r, i, "evict")), c(this, Ce) && ((o = c(this, ye)) == null || o.push([r, i, "evict"]))), c(this, dn).call(this, n), e && (c(this, Z)[n] = void 0, c(this, G)[n] = void 0, c(this, mt).push(n)), c(this, fe) === 1 ? (I(this, Ne, I(this, me, 0)), c(this, mt).length = 0) : I(this, Ne, c(this, Re)[n]), c(this, le).delete(i), nn(this, fe)._--, n;
14786
+ return c(this, Yt) && E(this, C, K).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, Et) || c(this, Ce)) && (c(this, Et) && ((s = c(this, ht)) == null || s.call(this, r, i, "evict")), c(this, Ce) && ((o = c(this, ye)) == null || o.push([r, i, "evict"]))), c(this, dn).call(this, n), e && (c(this, Z)[n] = void 0, c(this, G)[n] = void 0, c(this, gt).push(n)), c(this, fe) === 1 ? (I(this, Ne, I(this, ge, 0)), c(this, gt).length = 0) : I(this, Ne, c(this, Re)[n]), c(this, le).delete(i), nn(this, fe)._--, n;
14787
14787
  }, fr = function(e, n, i, r) {
14788
14788
  const s = n === void 0 ? void 0 : c(this, G)[n];
14789
14789
  if (E(this, C, K).call(this, s))
@@ -14796,32 +14796,32 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14796
14796
  signal: o.signal,
14797
14797
  options: i,
14798
14798
  context: r
14799
- }, u = (v, x = !1) => {
14799
+ }, u = (v, F = !1) => {
14800
14800
  const { aborted: b } = o.signal, T = i.ignoreFetchAbort && v !== void 0;
14801
- if (i.status && (b && !x ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, T && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !T && !x)
14801
+ if (i.status && (b && !F ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, T && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), b && !T && !F)
14802
14802
  return d(o.signal.reason);
14803
14803
  const N = p;
14804
14804
  return c(this, G)[n] === p && (v === void 0 ? N.__staleWhileFetching ? c(this, G)[n] = N.__staleWhileFetching : E(this, C, Ht).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, v, l.options))), v;
14805
14805
  }, f = (v) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = v), d(v)), d = (v) => {
14806
- const { aborted: x } = o.signal, b = x && i.allowStaleOnFetchAbort, T = b || i.allowStaleOnFetchRejection, N = T || i.noDeleteOnFetchRejection, O = p;
14806
+ const { aborted: F } = o.signal, b = F && i.allowStaleOnFetchAbort, T = b || i.allowStaleOnFetchRejection, N = T || i.noDeleteOnFetchRejection, O = p;
14807
14807
  if (c(this, G)[n] === p && (!N || O.__staleWhileFetching === void 0 ? E(this, C, Ht).call(this, e, "fetch") : b || (c(this, G)[n] = O.__staleWhileFetching)), T)
14808
14808
  return i.status && O.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), O.__staleWhileFetching;
14809
14809
  if (O.__returned === O)
14810
14810
  throw v;
14811
- }, h = (v, x) => {
14811
+ }, h = (v, F) => {
14812
14812
  var T;
14813
14813
  const b = (T = c(this, Pn)) == null ? void 0 : T.call(this, e, s, l);
14814
- b && b instanceof Promise && b.then((N) => v(N === void 0 ? void 0 : N), x), o.signal.addEventListener("abort", () => {
14814
+ b && b instanceof Promise && b.then((N) => v(N === void 0 ? void 0 : N), F), o.signal.addEventListener("abort", () => {
14815
14815
  (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (v(void 0), i.allowStaleOnFetchAbort && (v = (N) => u(N, !0)));
14816
14816
  });
14817
14817
  };
14818
14818
  i.status && (i.status.fetchDispatched = !0);
14819
- const p = new Promise(h).then(u, f), m = Object.assign(p, {
14819
+ const p = new Promise(h).then(u, f), g = Object.assign(p, {
14820
14820
  __abortController: o,
14821
14821
  __staleWhileFetching: s,
14822
14822
  __returned: void 0
14823
14823
  });
14824
- return n === void 0 ? (this.set(e, m, { ...l.options, status: void 0 }), n = c(this, le).get(e)) : c(this, G)[n] = m, m;
14824
+ return n === void 0 ? (this.set(e, g, { ...l.options, status: void 0 }), n = c(this, le).get(e)) : c(this, G)[n] = g, g;
14825
14825
  }, K = function(e) {
14826
14826
  if (!c(this, Yt))
14827
14827
  return !1;
@@ -14830,7 +14830,7 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14830
14830
  }, ws = function(e, n) {
14831
14831
  c(this, Qe)[n] = e, c(this, Re)[e] = n;
14832
14832
  }, hi = function(e) {
14833
- e !== c(this, me) && (e === c(this, Ne) ? I(this, Ne, c(this, Re)[e]) : E(this, C, ws).call(this, c(this, Qe)[e], c(this, Re)[e]), E(this, C, ws).call(this, c(this, me), e), I(this, me, e));
14833
+ e !== c(this, ge) && (e === c(this, Ne) ? I(this, Ne, c(this, Re)[e]) : E(this, C, ws).call(this, c(this, Qe)[e], c(this, Re)[e]), E(this, C, ws).call(this, c(this, ge), e), I(this, ge, e));
14834
14834
  }, Ht = function(e, n) {
14835
14835
  var r, s, o, a;
14836
14836
  let i = !1;
@@ -14842,8 +14842,8 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14842
14842
  else {
14843
14843
  c(this, dn).call(this, l);
14844
14844
  const u = c(this, G)[l];
14845
- if (E(this, C, K).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (c(this, Et) || c(this, Ce)) && (c(this, Et) && ((r = c(this, ht)) == null || r.call(this, u, e, n)), c(this, Ce) && ((s = c(this, ye)) == null || s.push([u, e, n]))), c(this, le).delete(e), c(this, Z)[l] = void 0, c(this, G)[l] = void 0, l === c(this, me))
14846
- I(this, me, c(this, Qe)[l]);
14845
+ if (E(this, C, K).call(this, u) ? u.__abortController.abort(new Error("deleted")) : (c(this, Et) || c(this, Ce)) && (c(this, Et) && ((r = c(this, ht)) == null || r.call(this, u, e, n)), c(this, Ce) && ((s = c(this, ye)) == null || s.push([u, e, n]))), c(this, le).delete(e), c(this, Z)[l] = void 0, c(this, G)[l] = void 0, l === c(this, ge))
14846
+ I(this, ge, c(this, Qe)[l]);
14847
14847
  else if (l === c(this, Ne))
14848
14848
  I(this, Ne, c(this, Re)[l]);
14849
14849
  else {
@@ -14852,7 +14852,7 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14852
14852
  const d = c(this, Re)[l];
14853
14853
  c(this, Qe)[d] = c(this, Qe)[l];
14854
14854
  }
14855
- nn(this, fe)._--, c(this, mt).push(l);
14855
+ nn(this, fe)._--, c(this, gt).push(l);
14856
14856
  }
14857
14857
  }
14858
14858
  if (c(this, Ce) && ((o = c(this, ye)) != null && o.length)) {
@@ -14873,7 +14873,7 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14873
14873
  c(this, Et) && ((n = c(this, ht)) == null || n.call(this, o, a, e)), c(this, Ce) && ((i = c(this, ye)) == null || i.push([o, a, e]));
14874
14874
  }
14875
14875
  }
14876
- if (c(this, le).clear(), c(this, G).fill(void 0), c(this, Z).fill(void 0), c(this, We) && c(this, bt) && (c(this, We).fill(0), c(this, bt).fill(0)), c(this, yt) && c(this, yt).fill(0), I(this, Ne, 0), I(this, me, 0), c(this, mt).length = 0, I(this, gt, 0), I(this, fe, 0), c(this, Ce) && c(this, ye)) {
14876
+ if (c(this, le).clear(), c(this, G).fill(void 0), c(this, Z).fill(void 0), c(this, We) && c(this, bt) && (c(this, We).fill(0), c(this, bt).fill(0)), c(this, yt) && c(this, yt).fill(0), I(this, Ne, 0), I(this, ge, 0), c(this, gt).length = 0, I(this, mt, 0), I(this, fe, 0), c(this, Ce) && c(this, ye)) {
14877
14877
  const s = c(this, ye);
14878
14878
  let o;
14879
14879
  for (; o = s == null ? void 0 : s.shift(); )
@@ -14882,7 +14882,7 @@ dt = new WeakMap(), ze = new WeakMap(), ht = new WeakMap(), pt = new WeakMap(),
14882
14882
  };
14883
14883
  let Ts = Hs;
14884
14884
  var Hr = {}, sn = {}, Wi = {}, oa;
14885
- function Og() {
14885
+ function Om() {
14886
14886
  if (oa) return Wi;
14887
14887
  oa = 1, Object.defineProperty(Wi, "__esModule", {
14888
14888
  value: !0
@@ -14893,7 +14893,7 @@ function Og() {
14893
14893
  return Wi;
14894
14894
  }
14895
14895
  var Hi = {}, Ji = {}, aa;
14896
- function Ig() {
14896
+ function Im() {
14897
14897
  if (aa) return Ji;
14898
14898
  aa = 1, Object.defineProperty(Ji, "__esModule", {
14899
14899
  value: !0
@@ -14912,7 +14912,7 @@ function tu() {
14912
14912
  la = 1, Object.defineProperty(Hi, "__esModule", {
14913
14913
  value: !0
14914
14914
  }), Hi.getLocation = n;
14915
- var t = /* @__PURE__ */ Ig();
14915
+ var t = /* @__PURE__ */ Im();
14916
14916
  const e = /\r\n|[\n\r]/g;
14917
14917
  function n(i, r) {
14918
14918
  let s = 0, o = 1;
@@ -14929,7 +14929,7 @@ function tu() {
14929
14929
  return Hi;
14930
14930
  }
14931
14931
  var ni = {}, ua;
14932
- function Ng() {
14932
+ function Nm() {
14933
14933
  if (ua) return ni;
14934
14934
  ua = 1, Object.defineProperty(ni, "__esModule", {
14935
14935
  value: !0
@@ -14943,24 +14943,24 @@ function Ng() {
14943
14943
  }
14944
14944
  function n(r, s) {
14945
14945
  const o = r.locationOffset.column - 1, a = "".padStart(o) + r.body, l = s.line - 1, u = r.locationOffset.line - 1, f = s.line + u, d = s.line === 1 ? o : 0, h = s.column + d, p = `${r.name}:${f}:${h}
14946
- `, m = a.split(/\r\n|[\n\r]/g), v = m[l];
14946
+ `, g = a.split(/\r\n|[\n\r]/g), v = g[l];
14947
14947
  if (v.length > 120) {
14948
- const x = Math.floor(h / 80), b = h % 80, T = [];
14948
+ const F = Math.floor(h / 80), b = h % 80, T = [];
14949
14949
  for (let N = 0; N < v.length; N += 80)
14950
14950
  T.push(v.slice(N, N + 80));
14951
14951
  return p + i([
14952
14952
  [`${f} |`, T[0]],
14953
- ...T.slice(1, x + 1).map((N) => ["|", N]),
14953
+ ...T.slice(1, F + 1).map((N) => ["|", N]),
14954
14954
  ["|", "^".padStart(b)],
14955
- ["|", T[x + 1]]
14955
+ ["|", T[F + 1]]
14956
14956
  ]);
14957
14957
  }
14958
14958
  return p + i([
14959
14959
  // Lines specified like this: ["prefix", "string"],
14960
- [`${f - 1} |`, m[l - 1]],
14960
+ [`${f - 1} |`, g[l - 1]],
14961
14961
  [`${f} |`, v],
14962
14962
  ["|", "^".padStart(h)],
14963
- [`${f + 1} |`, m[l + 1]]
14963
+ [`${f + 1} |`, g[l + 1]]
14964
14964
  ]);
14965
14965
  }
14966
14966
  function i(r) {
@@ -14976,7 +14976,7 @@ function Ws() {
14976
14976
  ca = 1, Object.defineProperty(sn, "__esModule", {
14977
14977
  value: !0
14978
14978
  }), sn.GraphQLError = void 0, sn.formatError = a, sn.printError = o;
14979
- var t = /* @__PURE__ */ Og(), e = /* @__PURE__ */ tu(), n = /* @__PURE__ */ Ng();
14979
+ var t = /* @__PURE__ */ Om(), e = /* @__PURE__ */ tu(), n = /* @__PURE__ */ Nm();
14980
14980
  function i(l) {
14981
14981
  const u = l[0];
14982
14982
  return u == null || "kind" in u || "length" in u ? {
@@ -15029,14 +15029,14 @@ function Ws() {
15029
15029
  */
15030
15030
  constructor(u, ...f) {
15031
15031
  var d, h, p;
15032
- const { nodes: m, source: v, positions: x, path: b, originalError: T, extensions: N } = i(f);
15032
+ const { nodes: g, source: v, positions: F, path: b, originalError: T, extensions: N } = i(f);
15033
15033
  super(u), this.name = "GraphQLError", this.path = b ?? void 0, this.originalError = T ?? void 0, this.nodes = s(
15034
- Array.isArray(m) ? m : m ? [m] : void 0
15034
+ Array.isArray(g) ? g : g ? [g] : void 0
15035
15035
  );
15036
15036
  const O = s(
15037
15037
  (d = this.nodes) === null || d === void 0 ? void 0 : d.map((S) => S.loc).filter((S) => S != null)
15038
15038
  );
15039
- this.source = v ?? (O == null || (h = O[0]) === null || h === void 0 ? void 0 : h.source), this.positions = x ?? (O == null ? void 0 : O.map((S) => S.start)), this.locations = x && v ? x.map((S) => (0, e.getLocation)(v, S)) : O == null ? void 0 : O.map(
15039
+ this.source = v ?? (O == null || (h = O[0]) === null || h === void 0 ? void 0 : h.source), this.positions = F ?? (O == null ? void 0 : O.map((S) => S.start)), this.locations = F && v ? F.map((S) => (0, e.getLocation)(v, S)) : O == null ? void 0 : O.map(
15040
15040
  (S) => (0, e.getLocation)(S.source, S.start)
15041
15041
  );
15042
15042
  const y = (0, t.isObjectLike)(
@@ -15109,7 +15109,7 @@ function Ws() {
15109
15109
  return sn;
15110
15110
  }
15111
15111
  var Yi = {}, fa;
15112
- function Ag() {
15112
+ function Am() {
15113
15113
  if (fa) return Yi;
15114
15114
  fa = 1, Object.defineProperty(Yi, "__esModule", {
15115
15115
  value: !0
@@ -15124,7 +15124,7 @@ function Ag() {
15124
15124
  return Yi;
15125
15125
  }
15126
15126
  var Ki = {}, Xi = {}, Zi = {}, da;
15127
- function Fg() {
15127
+ function xm() {
15128
15128
  if (da) return Zi;
15129
15129
  da = 1, Object.defineProperty(Zi, "__esModule", {
15130
15130
  value: !0
@@ -15165,7 +15165,7 @@ function Fg() {
15165
15165
  function o(u, f) {
15166
15166
  const d = Object.entries(u);
15167
15167
  return d.length === 0 ? "{}" : f.length > e ? "[" + l(u) + "]" : "{ " + d.map(
15168
- ([p, m]) => p + ": " + i(m, f)
15168
+ ([p, g]) => p + ": " + i(g, f)
15169
15169
  ).join(", ") + " }";
15170
15170
  }
15171
15171
  function a(u, f) {
@@ -15174,8 +15174,8 @@ function Fg() {
15174
15174
  if (f.length > e)
15175
15175
  return "[Array]";
15176
15176
  const d = Math.min(t, u.length), h = u.length - d, p = [];
15177
- for (let m = 0; m < d; ++m)
15178
- p.push(i(u[m], f));
15177
+ for (let g = 0; g < d; ++g)
15178
+ p.push(i(u[g], f));
15179
15179
  return h === 1 ? p.push("... 1 more item") : h > 1 && p.push(`... ${h} more items`), "[" + p.join(", ") + "]";
15180
15180
  }
15181
15181
  function l(u) {
@@ -15190,12 +15190,12 @@ function Fg() {
15190
15190
  return Zi;
15191
15191
  }
15192
15192
  var ha;
15193
- function xg() {
15193
+ function Fm() {
15194
15194
  if (ha) return Xi;
15195
15195
  ha = 1, Object.defineProperty(Xi, "__esModule", {
15196
15196
  value: !0
15197
15197
  }), Xi.toError = e;
15198
- var t = /* @__PURE__ */ Fg();
15198
+ var t = /* @__PURE__ */ xm();
15199
15199
  function e(i) {
15200
15200
  return i instanceof Error ? i : new n(i);
15201
15201
  }
@@ -15207,12 +15207,12 @@ function xg() {
15207
15207
  return Xi;
15208
15208
  }
15209
15209
  var pa;
15210
- function Rg() {
15210
+ function Rm() {
15211
15211
  if (pa) return Ki;
15212
15212
  pa = 1, Object.defineProperty(Ki, "__esModule", {
15213
15213
  value: !0
15214
15214
  }), Ki.locatedError = n;
15215
- var t = /* @__PURE__ */ xg(), e = /* @__PURE__ */ Ws();
15215
+ var t = /* @__PURE__ */ Fm(), e = /* @__PURE__ */ Ws();
15216
15216
  function n(r, s, o) {
15217
15217
  var a;
15218
15218
  const l = (0, t.toError)(r);
@@ -15229,9 +15229,9 @@ function Rg() {
15229
15229
  }
15230
15230
  return Ki;
15231
15231
  }
15232
- var ga;
15233
- function Cg() {
15234
- return ga || (ga = 1, function(t) {
15232
+ var ma;
15233
+ function Cm() {
15234
+ return ma || (ma = 1, function(t) {
15235
15235
  Object.defineProperty(t, "__esModule", {
15236
15236
  value: !0
15237
15237
  }), Object.defineProperty(t, "GraphQLError", {
@@ -15260,12 +15260,12 @@ function Cg() {
15260
15260
  return n.syntaxError;
15261
15261
  }
15262
15262
  });
15263
- var e = /* @__PURE__ */ Ws(), n = /* @__PURE__ */ Ag(), i = /* @__PURE__ */ Rg();
15263
+ var e = /* @__PURE__ */ Ws(), n = /* @__PURE__ */ Am(), i = /* @__PURE__ */ Rm();
15264
15264
  }(Hr)), Hr;
15265
15265
  }
15266
- var _n = /* @__PURE__ */ Cg(), Jr = {}, ma;
15267
- function Lg() {
15268
- return ma || (ma = 1, function(t) {
15266
+ var _n = /* @__PURE__ */ Cm(), Jr = {}, ga;
15267
+ function Lm() {
15268
+ return ga || (ga = 1, function(t) {
15269
15269
  t.__esModule = !0, t.OpenAPIV2 = t.OpenAPIV3 = void 0, function(e) {
15270
15270
  (function(n) {
15271
15271
  n.GET = "get", n.PUT = "put", n.POST = "post", n.DELETE = "delete", n.OPTIONS = "options", n.HEAD = "head", n.PATCH = "patch", n.TRACE = "trace";
@@ -15277,12 +15277,19 @@ function Lg() {
15277
15277
  }(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
15278
15278
  }(Jr)), Jr;
15279
15279
  }
15280
- var kg = Lg();
15281
- const Dg = (t) => {
15280
+ var km = Lm();
15281
+ const Dm = (t) => {
15282
15282
  var e;
15283
- return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = bn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = bn(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = bn(t, (n) => (n.example !== void 0 && (n.examples = {
15284
- default: n.example
15285
- }, delete n.example), n)), t = bn(t, (n) => {
15283
+ return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = bn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = bn(t, (n) => (n.exclusiveMinimum === !0 ? (n.exclusiveMinimum = n.minimum, delete n.minimum) : n.exclusiveMinimum === !1 && delete n.exclusiveMinimum, n.exclusiveMaximum === !0 ? (n.exclusiveMaximum = n.maximum, delete n.maximum) : n.exclusiveMaximum === !1 && delete n.exclusiveMaximum, n)), t = bn(t, (n) => {
15284
+ if (n.example !== void 0) {
15285
+ const r = typeof n.example == "object" && (n.example.summary !== void 0 || n.example.description !== void 0 || n.example.value !== void 0 || n.example.externalValue !== void 0) ? n.example : { value: n.example };
15286
+ n.examples ? n.examples = {
15287
+ default: r,
15288
+ ...n.examples
15289
+ } : n.examples = { default: r }, delete n.example;
15290
+ }
15291
+ return n;
15292
+ }), t = bn(t, (n) => {
15286
15293
  if (n.type === "object" && n.properties !== void 0)
15287
15294
  for (const [, i] of Object.entries(n.properties)) {
15288
15295
  const r = i ?? {};
@@ -15296,7 +15303,7 @@ const Dg = (t) => {
15296
15303
  type: "string",
15297
15304
  contentEncoding: "base64"
15298
15305
  } : n), t;
15299
- }, $g = Object.values(kg.OpenAPIV3.HttpMethods), Pg = async (t) => {
15306
+ }, $m = Object.values(km.OpenAPIV3.HttpMethods), Pm = async (t) => {
15300
15307
  if (typeof t == "string") {
15301
15308
  if (t.trim().startsWith("{"))
15302
15309
  try {
@@ -15335,22 +15342,22 @@ const Dg = (t) => {
15335
15342
  }
15336
15343
  if (typeof t == "object") return t;
15337
15344
  throw new _n.GraphQLError("Unsupported schema input: " + t);
15338
- }, jg = async (t) => {
15339
- const e = await Pg(t);
15345
+ }, jm = async (t) => {
15346
+ const e = await Pm(t);
15340
15347
  if (!e.openapi)
15341
15348
  throw new _n.GraphQLError("OpenAPI version is not defined");
15342
15349
  const n = await fu(e);
15343
- return Dg(n);
15344
- }, Mg = (t, e, n) => {
15350
+ return Dm(n);
15351
+ }, Mm = (t, e, n) => {
15345
15352
  const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
15346
15353
  return t(
15347
15354
  (n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
15348
15355
  );
15349
- }, Ug = new Ts({
15356
+ }, Um = new Ts({
15350
15357
  ttl: 60 * 10 * 1e3,
15351
15358
  ttlAutopurge: !0,
15352
- fetchMethod: (t, e, { context: n }) => jg(n)
15353
- }), Se = new Qd({}), zn = Se.addScalarType("JSON", Wd), Vg = Se.addScalarType("JSONObject", Hd), iu = (t) => {
15359
+ fetchMethod: (t, e, { context: n }) => jm(n)
15360
+ }), Se = new Qd({}), zn = Se.addScalarType("JSON", Wd), Vm = Se.addScalarType("JSONObject", Hd), iu = (t) => {
15354
15361
  const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
15355
15362
  (r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
15356
15363
  ), i = [...new Set(n)].filter(
@@ -15360,7 +15367,7 @@ const Dg = (t) => {
15360
15367
  }, ru = (t, e) => {
15361
15368
  const n = cu();
15362
15369
  return Object.entries(t ?? {}).flatMap(
15363
- ([i, r]) => $g.flatMap((s) => {
15370
+ ([i, r]) => $m.flatMap((s) => {
15364
15371
  if (!(r != null && r[s])) return [];
15365
15372
  const o = r[s], a = r.parameters ?? [], l = o.parameters ?? [], u = [
15366
15373
  ...a.filter(
@@ -15382,11 +15389,11 @@ const Dg = (t) => {
15382
15389
  path: i,
15383
15390
  parameters: u,
15384
15391
  tags: o.tags ?? [],
15385
- slug: Mg(n, f, e)
15392
+ slug: Mm(n, f, e)
15386
15393
  };
15387
15394
  })
15388
15395
  );
15389
- }, qg = Se.objectRef("SchemaTag").implement({
15396
+ }, qm = Se.objectRef("SchemaTag").implement({
15390
15397
  fields: (t) => ({
15391
15398
  name: t.exposeString("name", { nullable: !0 }),
15392
15399
  description: t.exposeString("description", { nullable: !0 }),
@@ -15401,26 +15408,26 @@ const Dg = (t) => {
15401
15408
  }
15402
15409
  })
15403
15410
  })
15404
- }), Gg = Se.objectRef("Server").implement({
15411
+ }), Gm = Se.objectRef("Server").implement({
15405
15412
  fields: (t) => ({
15406
15413
  url: t.exposeString("url"),
15407
15414
  description: t.exposeString("description", { nullable: !0 })
15408
15415
  })
15409
- }), Bg = Se.objectRef("PathItem").implement({
15416
+ }), Bm = Se.objectRef("PathItem").implement({
15410
15417
  fields: (t) => ({
15411
15418
  path: t.exposeString("path"),
15412
15419
  methods: t.exposeStringList("methods")
15413
15420
  })
15414
- }), zg = Se.objectRef("TagItem").implement({
15421
+ }), zm = Se.objectRef("TagItem").implement({
15415
15422
  fields: (t) => ({
15416
15423
  name: t.exposeString("name"),
15417
15424
  description: t.exposeString("description", { nullable: !0 })
15418
15425
  })
15419
- }), Qg = Se.objectRef("EncodingItem").implement({
15426
+ }), Qm = Se.objectRef("EncodingItem").implement({
15420
15427
  fields: (t) => ({
15421
15428
  name: t.exposeString("name"),
15422
15429
  contentType: t.exposeString("contentType", { nullable: !0 }),
15423
- headers: t.expose("headers", { type: Vg, nullable: !0 }),
15430
+ headers: t.expose("headers", { type: Vm, nullable: !0 }),
15424
15431
  style: t.exposeString("style", { nullable: !0 }),
15425
15432
  explode: t.exposeBoolean("explode", { nullable: !0 }),
15426
15433
  allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
@@ -15433,13 +15440,13 @@ const Dg = (t) => {
15433
15440
  value: t.expose("value", { type: zn, nullable: !0 }),
15434
15441
  externalValue: t.exposeString("externalValue", { nullable: !0 })
15435
15442
  })
15436
- }), Wg = Se.enumType("ParameterIn", {
15443
+ }), Wm = Se.enumType("ParameterIn", {
15437
15444
  values: ["query", "header", "path", "cookie"]
15438
- }), Hg = Se.objectRef("ParameterItem").implement({
15445
+ }), Hm = Se.objectRef("ParameterItem").implement({
15439
15446
  fields: (t) => ({
15440
15447
  name: t.exposeString("name"),
15441
15448
  in: t.field({
15442
- type: Wg,
15449
+ type: Wm,
15443
15450
  resolve: (e) => e.in
15444
15451
  }),
15445
15452
  description: t.exposeString("description", { nullable: !0 }),
@@ -15464,15 +15471,15 @@ const Dg = (t) => {
15464
15471
  mediaType: t.exposeString("mediaType"),
15465
15472
  schema: t.expose("schema", { type: zn, nullable: !0 }),
15466
15473
  examples: t.expose("examples", { type: [su], nullable: !0 }),
15467
- encoding: t.expose("encoding", { type: [Qg], nullable: !0 })
15474
+ encoding: t.expose("encoding", { type: [Qm], nullable: !0 })
15468
15475
  })
15469
- }), Jg = Se.objectRef("RequestBodyObject").implement({
15476
+ }), Jm = Se.objectRef("RequestBodyObject").implement({
15470
15477
  fields: (t) => ({
15471
15478
  description: t.exposeString("description", { nullable: !0 }),
15472
15479
  content: t.expose("content", { type: [ou], nullable: !0 }),
15473
15480
  required: t.exposeBoolean("required", { nullable: !0 })
15474
15481
  })
15475
- }), Yg = Se.objectRef("ResponseItem").implement({
15482
+ }), Ym = Se.objectRef("ResponseItem").implement({
15476
15483
  fields: (t) => ({
15477
15484
  statusCode: t.exposeString("statusCode"),
15478
15485
  description: t.exposeString("description", { nullable: !0 }),
@@ -15495,11 +15502,11 @@ const Dg = (t) => {
15495
15502
  }
15496
15503
  }),
15497
15504
  parameters: t.expose("parameters", {
15498
- type: [Hg],
15505
+ type: [Hm],
15499
15506
  nullable: !0
15500
15507
  }),
15501
15508
  requestBody: t.field({
15502
- type: Jg,
15509
+ type: Jm,
15503
15510
  resolve: (e) => {
15504
15511
  var n, i, r;
15505
15512
  return {
@@ -15509,9 +15516,10 @@ const Dg = (t) => {
15509
15516
  ([s, o]) => ({
15510
15517
  mediaType: s,
15511
15518
  schema: o.schema,
15512
- examples: Object.entries(o.examples ?? {}).map(
15513
- ([a, l]) => ({ name: a, ...l })
15514
- ),
15519
+ examples: o.examples ? Object.entries(o.examples).map(([a, l]) => ({
15520
+ name: a,
15521
+ ...typeof l == "string" ? { value: l } : l
15522
+ })) : [],
15515
15523
  encoding: Object.entries(o.encoding ?? {}).map(
15516
15524
  ([a, l]) => ({ name: a, ...l })
15517
15525
  )
@@ -15522,7 +15530,7 @@ const Dg = (t) => {
15522
15530
  nullable: !0
15523
15531
  }),
15524
15532
  responses: t.field({
15525
- type: [Yg],
15533
+ type: [Ym],
15526
15534
  resolve: (e) => Object.entries(e.responses ?? {}).map(
15527
15535
  ([n, i]) => ({
15528
15536
  statusCode: n,
@@ -15531,9 +15539,10 @@ const Dg = (t) => {
15531
15539
  ([r, { schema: s, examples: o }]) => ({
15532
15540
  mediaType: r,
15533
15541
  schema: s,
15534
- examples: Object.entries(o ?? {}).map(
15535
- ([a, l]) => ({ name: a, ...l })
15536
- )
15542
+ examples: o ? Object.entries(o).map(([a, l]) => ({
15543
+ name: a,
15544
+ ...typeof l == "string" ? { value: l } : l
15545
+ })) : []
15537
15546
  })
15538
15547
  ),
15539
15548
  headers: i.headers,
@@ -15542,7 +15551,7 @@ const Dg = (t) => {
15542
15551
  )
15543
15552
  }),
15544
15553
  tags: t.field({
15545
- type: [zg],
15554
+ type: [zm],
15546
15555
  resolve: (e, n, i) => {
15547
15556
  var r;
15548
15557
  return (r = e.tags) == null ? void 0 : r.map((s) => {
@@ -15557,15 +15566,18 @@ const Dg = (t) => {
15557
15566
  }),
15558
15567
  deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
15559
15568
  })
15560
- }), Kg = Se.objectRef("Schema").implement({
15569
+ }), Km = Se.objectRef("Schema").implement({
15561
15570
  fields: (t) => ({
15562
15571
  openapi: t.string({ resolve: (e) => e.openapi }),
15563
- url: t.string({ resolve: (e) => {
15564
- var n, i;
15565
- return ((i = (n = e.servers) == null ? void 0 : n.at(0)) == null ? void 0 : i.url) ?? "/";
15566
- } }),
15572
+ url: t.string({
15573
+ resolve: (e) => {
15574
+ var n, i;
15575
+ return (i = (n = e.servers) == null ? void 0 : n.at(0)) == null ? void 0 : i.url;
15576
+ },
15577
+ nullable: !0
15578
+ }),
15567
15579
  servers: t.field({
15568
- type: [Gg],
15580
+ type: [Gm],
15569
15581
  resolve: (e) => e.servers ?? []
15570
15582
  }),
15571
15583
  title: t.string({ resolve: (e) => e.info.title }),
@@ -15579,7 +15591,7 @@ const Dg = (t) => {
15579
15591
  nullable: !0
15580
15592
  }),
15581
15593
  paths: t.field({
15582
- type: [Bg],
15594
+ type: [Bm],
15583
15595
  resolve: (e) => Object.entries(e.paths ?? {}).map(([n, i]) => ({
15584
15596
  path: n,
15585
15597
  methods: Object.keys(i)
@@ -15589,7 +15601,7 @@ const Dg = (t) => {
15589
15601
  args: {
15590
15602
  name: t.arg.string()
15591
15603
  },
15592
- type: [qg],
15604
+ type: [qm],
15593
15605
  resolve: (e, n) => {
15594
15606
  const i = [...iu(e), { name: "" }];
15595
15607
  return n.name ? i.filter((r) => r.name === n.name) : i;
@@ -15608,28 +15620,28 @@ const Dg = (t) => {
15608
15620
  )
15609
15621
  })
15610
15622
  })
15611
- }), Xg = async (t) => {
15623
+ }), Xm = async (t) => {
15612
15624
  const e = du(t);
15613
- return await Ug.forceFetch(e, { context: t });
15614
- }, Zg = Se.enumType("SchemaType", {
15625
+ return await Um.forceFetch(e, { context: t });
15626
+ }, Zm = Se.enumType("SchemaType", {
15615
15627
  values: ["url", "file", "raw"]
15616
15628
  });
15617
15629
  Se.queryType({
15618
15630
  fields: (t) => ({
15619
15631
  schema: t.field({
15620
- type: Kg,
15632
+ type: Km,
15621
15633
  args: {
15622
- type: t.arg({ type: Zg, required: !0 }),
15634
+ type: t.arg({ type: Zm, required: !0 }),
15623
15635
  input: t.arg({ type: zn, required: !0 })
15624
15636
  },
15625
15637
  resolve: async (e, n, i) => {
15626
- const r = await Xg(n.input);
15638
+ const r = await Xm(n.input);
15627
15639
  return i.schema = r, r;
15628
15640
  }
15629
15641
  })
15630
15642
  })
15631
15643
  });
15632
- const em = Se.toSchema(), tm = (t) => wg({ schema: em, ...t }), hm = () => tm({
15644
+ const eg = Se.toSchema(), tg = (t) => wm({ schema: eg, ...t }), hg = () => tg({
15633
15645
  plugins: [
15634
15646
  // eslint-disable-next-line react-hooks/rules-of-hooks
15635
15647
  wu({
@@ -15639,6 +15651,6 @@ const em = Se.toSchema(), tm = (t) => wg({ schema: em, ...t }), hm = () => tm({
15639
15651
  ]
15640
15652
  });
15641
15653
  export {
15642
- hm as createServer
15654
+ hg as createServer
15643
15655
  };
15644
- //# sourceMappingURL=createServer-C4C0OO0m.js.map
15656
+ //# sourceMappingURL=createServer-Bf5_6o6G.js.map