zudoku 0.16.2 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/app/entry.server.js +4 -5
  2. package/dist/app/entry.server.js.map +1 -1
  3. package/dist/app/main.d.ts +1 -1
  4. package/dist/app/main.js +2 -2
  5. package/dist/app/main.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +44 -44
  7. package/dist/config/validators/validate.js.map +1 -1
  8. package/dist/index.d.ts +2 -2
  9. package/dist/index.js +1 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/authentication/authentication.d.ts +2 -2
  12. package/dist/lib/authentication/state.d.ts +1 -1
  13. package/dist/lib/authentication/state.js +5 -3
  14. package/dist/lib/authentication/state.js.map +1 -1
  15. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  16. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  17. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  18. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  19. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  20. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  21. package/dist/lib/components/ClientOnly.d.ts +4 -2
  22. package/dist/lib/components/ClientOnly.js +1 -1
  23. package/dist/lib/components/ClientOnly.js.map +1 -1
  24. package/dist/lib/components/Header.js +4 -2
  25. package/dist/lib/components/Header.js.map +1 -1
  26. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  27. package/dist/lib/components/{DevPortal.js → Zudoku.js} +11 -11
  28. package/dist/lib/components/Zudoku.js.map +1 -0
  29. package/dist/lib/components/context/ZudokuContext.d.ts +4 -4
  30. package/dist/lib/components/context/ZudokuContext.js +1 -1
  31. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  32. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  33. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  34. package/dist/lib/components/index.d.ts +4 -7
  35. package/dist/lib/components/index.js +2 -3
  36. package/dist/lib/components/index.js.map +1 -1
  37. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +5 -5
  38. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +2 -2
  39. package/dist/lib/core/ZudokuContext.js.map +1 -0
  40. package/dist/lib/core/plugins.d.ts +12 -12
  41. package/dist/lib/core/plugins.js.map +1 -1
  42. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  43. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  44. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  45. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  46. package/dist/lib/plugins/markdown/index.d.ts +2 -2
  47. package/dist/lib/plugins/markdown/index.js.map +1 -1
  48. package/dist/lib/plugins/openapi/CollapsibleCode.js +4 -2
  49. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  50. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  51. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  52. package/dist/lib/plugins/openapi/ParameterListItem.js +6 -1
  53. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  54. package/dist/lib/plugins/openapi/Sidecar.js +28 -24
  55. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  56. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +1 -4
  57. package/dist/lib/plugins/openapi/client/createMemoryClient.js +9 -1
  58. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  59. package/dist/lib/plugins/openapi/client/createWorkerClient.js +2 -1
  60. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  61. package/dist/lib/plugins/openapi/index.d.ts +2 -2
  62. package/dist/lib/plugins/openapi/index.js.map +1 -1
  63. package/dist/lib/plugins/redirect/index.d.ts +2 -2
  64. package/dist/lib/plugins/redirect/index.js.map +1 -1
  65. package/dist/lib/plugins/search-inkeep/index.d.ts +2 -2
  66. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  67. package/dist/lib/ui/ActionButton.d.ts +4 -0
  68. package/dist/lib/ui/ActionButton.js +10 -0
  69. package/dist/lib/ui/ActionButton.js.map +1 -0
  70. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  71. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  72. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  73. package/dist/lib/util/useOnScreen.d.ts +4 -0
  74. package/dist/lib/util/useOnScreen.js +19 -0
  75. package/dist/lib/util/useOnScreen.js.map +1 -0
  76. package/dist/vite/plugin-mdx.d.ts +0 -6
  77. package/dist/vite/plugin-mdx.js.map +1 -1
  78. package/lib/{AnchorLink-BbB2q-jx.js → AnchorLink-DYbUOP9U.js} +2 -2
  79. package/lib/{AnchorLink-BbB2q-jx.js.map → AnchorLink-DYbUOP9U.js.map} +1 -1
  80. package/lib/{AuthenticationPlugin-C9BHGXlE.js → AuthenticationPlugin-bqGAKfot.js} +3 -3
  81. package/lib/{AuthenticationPlugin-C9BHGXlE.js.map → AuthenticationPlugin-bqGAKfot.js.map} +1 -1
  82. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  83. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  84. package/lib/{Markdown-BDcCAWwm.js → Markdown-D6UxMbZm.js} +2 -2
  85. package/lib/{Markdown-BDcCAWwm.js.map → Markdown-D6UxMbZm.js.map} +1 -1
  86. package/lib/{MdxPage-DKMH_t0f.js → MdxPage-DRKqyn2b.js} +5 -5
  87. package/lib/{MdxPage-DKMH_t0f.js.map → MdxPage-DRKqyn2b.js.map} +1 -1
  88. package/lib/{OperationList-35iw_Gil.js → OperationList-BHUBGM0c.js} +116 -113
  89. package/lib/OperationList-BHUBGM0c.js.map +1 -0
  90. package/lib/{Route-BsEZmkNl.js → Route-B0XuN1oC.js} +3 -3
  91. package/lib/{Route-BsEZmkNl.js.map → Route-B0XuN1oC.js.map} +1 -1
  92. package/lib/{Select-Bagt3Bme.js → Select-DYKDahHt.js} +3 -3
  93. package/lib/{Select-Bagt3Bme.js.map → Select-DYKDahHt.js.map} +1 -1
  94. package/lib/{Spinner-C6zroowC.js → SidebarBadge-Bbt92M5K.js} +16 -18
  95. package/lib/SidebarBadge-Bbt92M5K.js.map +1 -0
  96. package/lib/{SlotletProvider-Da7eFgd2.js → SlotletProvider-mhjLPG44.js} +4 -4
  97. package/lib/{SlotletProvider-Da7eFgd2.js.map → SlotletProvider-mhjLPG44.js.map} +1 -1
  98. package/lib/Spinner-ChOGyPls.js +51 -0
  99. package/lib/Spinner-ChOGyPls.js.map +1 -0
  100. package/lib/{hook-sn0zMTkE.js → hook-CjQERPa7.js} +3 -3
  101. package/lib/{hook-sn0zMTkE.js.map → hook-CjQERPa7.js.map} +1 -1
  102. package/lib/{index-BdD8UbS-.js → index-BRg5pi5D.js} +1351 -1364
  103. package/lib/index-BRg5pi5D.js.map +1 -0
  104. package/lib/{index-CRo94sKK.js → index-DM9hrcCG.js} +4 -4
  105. package/lib/{index-CRo94sKK.js.map → index-DM9hrcCG.js.map} +1 -1
  106. package/lib/state-BsPrOUAh.js +252 -0
  107. package/lib/state-BsPrOUAh.js.map +1 -0
  108. package/lib/ui/ActionButton.js +24 -0
  109. package/lib/ui/ActionButton.js.map +1 -0
  110. package/lib/urql-core-35Qt_U4i.js +1511 -0
  111. package/lib/{urql-core-KJnLL26g.js.map → urql-core-35Qt_U4i.js.map} +1 -1
  112. package/lib/{useExposedProps-ChOIUaS4.js → useExposedProps-BxyHjPNN.js} +2 -2
  113. package/lib/{useExposedProps-ChOIUaS4.js.map → useExposedProps-BxyHjPNN.js.map} +1 -1
  114. package/lib/{ZudokuContext-BKXGJTmu.js → utils-DNAltzXc.js} +153 -152
  115. package/lib/utils-DNAltzXc.js.map +1 -0
  116. package/lib/zudoku.auth-auth0.js +1 -1
  117. package/lib/zudoku.auth-clerk.js +2 -2
  118. package/lib/zudoku.auth-openid.js +4 -4
  119. package/lib/zudoku.components.js +690 -667
  120. package/lib/zudoku.components.js.map +1 -1
  121. package/lib/zudoku.openapi-worker.js +737 -729
  122. package/lib/zudoku.openapi-worker.js.map +1 -1
  123. package/lib/zudoku.plugin-api-keys.js +5 -5
  124. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  125. package/lib/zudoku.plugin-custom-pages.js +2 -2
  126. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  127. package/lib/zudoku.plugin-markdown.js +1 -1
  128. package/lib/zudoku.plugin-markdown.js.map +1 -1
  129. package/lib/zudoku.plugin-openapi.js +6 -6
  130. package/lib/zudoku.plugin-redirect.js.map +1 -1
  131. package/lib/zudoku.plugin-search-inkeep.js +1 -1
  132. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  133. package/package.json +2 -2
  134. package/src/app/entry.server.tsx +9 -5
  135. package/src/app/main.tsx +4 -4
  136. package/src/lib/authentication/authentication.ts +2 -2
  137. package/src/lib/authentication/state.ts +12 -5
  138. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  139. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  140. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  141. package/src/lib/components/ClientOnly.tsx +6 -3
  142. package/src/lib/components/Header.tsx +31 -25
  143. package/src/lib/components/Zudoku.tsx +113 -0
  144. package/src/lib/components/context/ZudokuContext.ts +3 -3
  145. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  146. package/src/lib/components/index.ts +2 -3
  147. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +5 -5
  148. package/src/lib/core/plugins.ts +12 -16
  149. package/src/lib/plugins/api-keys/index.tsx +9 -9
  150. package/src/lib/plugins/custom-pages/index.tsx +2 -2
  151. package/src/lib/plugins/markdown/index.tsx +2 -2
  152. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -8
  153. package/src/lib/plugins/openapi/OperationList.tsx +2 -1
  154. package/src/lib/plugins/openapi/ParameterListItem.tsx +37 -31
  155. package/src/lib/plugins/openapi/Sidecar.tsx +65 -51
  156. package/src/lib/plugins/openapi/client/createMemoryClient.ts +17 -3
  157. package/src/lib/plugins/openapi/client/createWorkerClient.ts +5 -1
  158. package/src/lib/plugins/openapi/index.tsx +2 -4
  159. package/src/lib/plugins/redirect/index.tsx +2 -2
  160. package/src/lib/plugins/search-inkeep/index.tsx +2 -2
  161. package/src/lib/ui/ActionButton.tsx +28 -0
  162. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  163. package/src/lib/util/useOnScreen.ts +32 -0
  164. package/dist/lib/components/DevPortal.js.map +0 -1
  165. package/dist/lib/core/DevPortalContext.js.map +0 -1
  166. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  167. package/lib/OperationList-35iw_Gil.js.map +0 -1
  168. package/lib/Spinner-C6zroowC.js.map +0 -1
  169. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  170. package/lib/index-BdD8UbS-.js.map +0 -1
  171. package/lib/state-CsuHT8ZO.js +0 -183
  172. package/lib/state-CsuHT8ZO.js.map +0 -1
  173. package/lib/urql-core-KJnLL26g.js +0 -1455
  174. package/src/lib/components/DevPortal.tsx +0 -111
@@ -1,9 +1,9 @@
1
- var kl = Object.defineProperty;
1
+ var Dl = Object.defineProperty;
2
2
  var To = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Dl = (t, e, n) => e in t ? kl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var U = (t, e, n) => Dl(t, typeof e != "symbol" ? e + "" : e, n), Kr = (t, e, n) => e.has(t) || To("Cannot " + n);
5
+ var $l = (t, e, n) => e in t ? Dl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var U = (t, e, n) => $l(t, typeof e != "symbol" ? e + "" : e, n), Kr = (t, e, n) => e.has(t) || To("Cannot " + n);
7
7
  var l = (t, e, n) => (Kr(t, e, "read from private field"), n ? n.call(t) : e.get(t)), H = (t, e, n) => e.has(t) ? To("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), $ = (t, e, n, i) => (Kr(t, e, "write to private field"), i ? i.call(t, n) : e.set(t, n), n), k = (t, e, n) => (Kr(t, e, "access private method"), n);
8
8
  var Sn = (t, e, n, i) => ({
9
9
  set _(r) {
@@ -13,10 +13,10 @@ var Sn = (t, e, n, i) => ({
13
13
  return l(t, e, i);
14
14
  }
15
15
  });
16
- import { a as $l } from "./index-LNp6rxyU.js";
17
- import { g as jl } from "./_commonjsHelpers-BkfeUUK-.js";
18
- import { C as Qa, b as Wa, m as Ha, f as Ya } from "./urql-core-KJnLL26g.js";
19
- function Pl(t, e) {
16
+ import { a as jl } from "./index-LNp6rxyU.js";
17
+ import { g as Pl } from "./_commonjsHelpers-BkfeUUK-.js";
18
+ import { d as Ml, C as Qa, b as Wa, m as Ha, f as Ya } from "./urql-core-35Qt_U4i.js";
19
+ function Ul(t, e) {
20
20
  for (var n = 0; n < e.length; n++) {
21
21
  const i = e[n];
22
22
  if (typeof i != "string" && !Array.isArray(i)) {
@@ -37,17 +37,17 @@ function Xr(t) {
37
37
  throw new Error("Parameter was not an error");
38
38
  }
39
39
  function Vs(t) {
40
- return !!t && typeof t == "object" && Ml(t) === "[object Error]" || t instanceof Error;
40
+ return !!t && typeof t == "object" && Vl(t) === "[object Error]" || t instanceof Error;
41
41
  }
42
- function Ml(t) {
42
+ function Vl(t) {
43
43
  return Object.prototype.toString.call(t);
44
44
  }
45
- const Ul = "Layerr";
46
- let Vl = Ul;
47
- function Bl() {
48
- return Vl;
45
+ const Bl = "Layerr";
46
+ let Gl = Bl;
47
+ function ql() {
48
+ return Gl;
49
49
  }
50
- function Gl(t) {
50
+ function zl(t) {
51
51
  let e, n = "";
52
52
  if (t.length === 0)
53
53
  e = {};
@@ -68,9 +68,9 @@ function Gl(t) {
68
68
  }
69
69
  class gt extends Error {
70
70
  constructor(e, n) {
71
- const i = [...arguments], { options: r, shortMessage: s } = Gl(i);
71
+ const i = [...arguments], { options: r, shortMessage: s } = zl(i);
72
72
  let o = s;
73
- if (r.cause && (o = `${o}: ${r.cause.message}`), super(o), this.message = o, r.name && typeof r.name == "string" ? this.name = r.name : this.name = Bl(), r.cause && Object.defineProperty(this, "_cause", { value: r.cause }), Object.defineProperty(this, "_info", { value: {} }), r.info && typeof r.info == "object" && Object.assign(this._info, r.info), Error.captureStackTrace) {
73
+ if (r.cause && (o = `${o}: ${r.cause.message}`), super(o), this.message = o, r.name && typeof r.name == "string" ? this.name = r.name : this.name = ql(), r.cause && Object.defineProperty(this, "_cause", { value: r.cause }), Object.defineProperty(this, "_info", { value: {} }), r.info && typeof r.info == "object" && Object.assign(this._info, r.info), Error.captureStackTrace) {
74
74
  const a = r.constructorOpt || this.constructor;
75
75
  Error.captureStackTrace(this, a);
76
76
  }
@@ -94,11 +94,11 @@ caused by: ${gt.fullStack(n)}` : e.stack ?? "";
94
94
  return this.message && (e = `${e}: ${this.message}`), e;
95
95
  }
96
96
  }
97
- const Fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Hn = 32, So = 281474976710655, _o = 10, ql = 16, An = Object.freeze({
97
+ const Fi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", Hn = 32, So = 281474976710655, _o = 10, Ql = 16, An = Object.freeze({
98
98
  source: "ulid"
99
99
  });
100
- function zl(t) {
101
- const e = Ql(), n = e && (e.crypto || e.msCrypto) || null;
100
+ function Wl(t) {
101
+ const e = Hl(), n = e && (e.crypto || e.msCrypto) || null;
102
102
  if (typeof (n == null ? void 0 : n.getRandomValues) == "function")
103
103
  return () => {
104
104
  const i = new Uint8Array(1);
@@ -113,13 +113,13 @@ function zl(t) {
113
113
  }
114
114
  }, "Failed to find a reliable PRNG");
115
115
  }
116
- function Ql() {
117
- return Yl() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
116
+ function Hl() {
117
+ return Kl() ? self : typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : null;
118
118
  }
119
- function Wl(t, e) {
119
+ function Yl(t, e) {
120
120
  let n = "";
121
121
  for (; t > 0; t--)
122
- n = Kl(e) + n;
122
+ n = Zl(e) + n;
123
123
  return n;
124
124
  }
125
125
  function Io(t, e) {
@@ -156,7 +156,7 @@ function Io(t, e) {
156
156
  n = t % Hn, i = Fi.charAt(n) + i, t = (t - n) / Hn;
157
157
  return i;
158
158
  }
159
- function Hl(t) {
159
+ function Jl(t) {
160
160
  let e, n = t.length, i, r, s = t;
161
161
  const o = Hn - 1;
162
162
  for (; !e && n-- >= 0; ) {
@@ -182,31 +182,31 @@ function Hl(t) {
182
182
  }
183
183
  }, "Failed incrementing string");
184
184
  }
185
- function Yl() {
185
+ function Kl() {
186
186
  return typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
187
187
  }
188
- function Jl(t) {
189
- const e = zl();
188
+ function Xl(t) {
189
+ const e = Wl();
190
190
  let n = 0, i;
191
191
  return function(s) {
192
192
  const o = isNaN(s) ? Date.now() : s;
193
193
  if (o <= n) {
194
- const u = i = Hl(i);
194
+ const u = i = Jl(i);
195
195
  return Io(n, _o) + u;
196
196
  }
197
197
  n = o;
198
- const a = i = Wl(ql, e);
198
+ const a = i = Yl(Ql, e);
199
199
  return Io(o, _o) + a;
200
200
  };
201
201
  }
202
- function Kl(t) {
202
+ function Zl(t) {
203
203
  let e = Math.floor(t() * Hn);
204
204
  return e === Hn && (e = Hn - 1), Fi.charAt(e);
205
205
  }
206
206
  function Oo(t, e, n) {
207
207
  return e > t.length - 1 ? t : t.substr(0, e) + n + t.substr(e + 1);
208
208
  }
209
- const Xl = () => {
209
+ const ec = () => {
210
210
  const t = /* @__PURE__ */ new Map();
211
211
  return [(i) => new Promise((r) => {
212
212
  t.set(i, r);
@@ -214,11 +214,11 @@ const Xl = () => {
214
214
  const s = t.get(i);
215
215
  s && (s(r), t.delete(i));
216
216
  }];
217
- }, Zl = /* @__PURE__ */ new WeakMap(), Zr = Symbol("ENVELOP_IS_INTROSPECTION");
218
- function ec(t) {
217
+ }, tc = /* @__PURE__ */ new WeakMap(), Zr = Symbol("ENVELOP_IS_INTROSPECTION");
218
+ function nc(t) {
219
219
  return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
220
220
  }
221
- function tc(t) {
221
+ function ic(t) {
222
222
  return t.length === 1 ? t[0] : {
223
223
  schema: t[0],
224
224
  document: t[1],
@@ -230,7 +230,7 @@ function tc(t) {
230
230
  subscribeFieldResolver: t[7]
231
231
  };
232
232
  }
233
- const No = (t) => (...e) => t(tc(e));
233
+ const No = (t) => (...e) => t(ic(e));
234
234
  function Ao(t, e) {
235
235
  const n = t[Symbol.asyncIterator]();
236
236
  async function i(s) {
@@ -269,7 +269,7 @@ function Ao(t, e) {
269
269
  };
270
270
  return r;
271
271
  }
272
- function nc(t) {
272
+ function rc(t) {
273
273
  return t.length === 1 ? t[0] : {
274
274
  schema: t[0],
275
275
  document: t[1],
@@ -281,7 +281,7 @@ function nc(t) {
281
281
  typeResolver: t[7]
282
282
  };
283
283
  }
284
- const xo = (t) => (...e) => t(nc(e));
284
+ const xo = (t) => (...e) => t(rc(e));
285
285
  function Qt(t) {
286
286
  return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
287
287
  }
@@ -320,7 +320,7 @@ function Ro(t, e) {
320
320
  };
321
321
  return r;
322
322
  }
323
- function ic(t, e) {
323
+ function sc(t, e) {
324
324
  const n = t[Symbol.asyncIterator](), i = {
325
325
  [Symbol.asyncIterator]() {
326
326
  return i;
@@ -350,7 +350,7 @@ function ic(t, e) {
350
350
  function Yi(t) {
351
351
  throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
352
352
  }
353
- function rc({ plugins: t }) {
353
+ function oc({ plugins: t }) {
354
354
  let e = null, n = !1;
355
355
  const i = () => Yi("parse"), r = () => Yi("validate"), s = () => Yi("execute"), o = () => Yi("subscribe"), a = (S, A = -1) => {
356
356
  if (e = S, n)
@@ -433,7 +433,7 @@ function rc({ plugins: t }) {
433
433
  throw new Error("Failed to parse document.");
434
434
  if (C instanceof Error)
435
435
  throw C;
436
- return Zl.set(C, A.toString()), C;
436
+ return tc.set(C, A.toString()), C;
437
437
  } : () => i, p = c.validate.length ? (S) => (A, O, C, T, _) => {
438
438
  let m = C ? [...C] : void 0, b = r, d = null;
439
439
  const N = S, L = [];
@@ -567,7 +567,7 @@ function rc({ plugins: t }) {
567
567
  })), b.length && Qt(_) && (_ = Ro(_, () => {
568
568
  for (const d of b)
569
569
  d();
570
- })), C.length && Qt(_) && (_ = ic(_, (d) => {
570
+ })), C.length && Qt(_) && (_ = sc(_, (d) => {
571
571
  let N = d;
572
572
  for (const L of C)
573
573
  L({
@@ -649,11 +649,11 @@ function rc({ plugins: t }) {
649
649
  contextFactory: v
650
650
  };
651
651
  }
652
- function sc(t) {
652
+ function ac(t) {
653
653
  return t != null;
654
654
  }
655
- function oc(t) {
656
- const e = t.plugins.filter(sc), n = rc({
655
+ function uc(t) {
656
+ const e = t.plugins.filter(ac), n = oc({
657
657
  plugins: e
658
658
  }), i = (r = {}) => {
659
659
  const s = n;
@@ -670,14 +670,14 @@ function oc(t) {
670
670
  }
671
671
  const Lo = {
672
672
  logFn: console.log
673
- }, ac = (t = Lo) => {
673
+ }, lc = (t = Lo) => {
674
674
  const e = {
675
675
  DEFAULT_OPTIONS: Lo,
676
676
  ...t
677
677
  };
678
678
  return {
679
679
  onParse({ extendContext: n, params: i }) {
680
- e.skipIntrospection && ec(i.source) && n({
680
+ e.skipIntrospection && nc(i.source) && n({
681
681
  [Zr]: !0
682
682
  });
683
683
  },
@@ -698,14 +698,14 @@ const Lo = {
698
698
  };
699
699
  }
700
700
  };
701
- }, uc = "Unexpected error.";
702
- function lc(t) {
701
+ }, cc = "Unexpected error.";
702
+ function fc(t) {
703
703
  return t instanceof Error && t.name === "GraphQLError";
704
704
  }
705
705
  function Ja(t) {
706
- return lc(t) ? t.originalError != null ? Ja(t.originalError) : !0 : !1;
706
+ return fc(t) ? t.originalError != null ? Ja(t.originalError) : !0 : !1;
707
707
  }
708
- function cc(t, e, n) {
708
+ function dc(t, e, n) {
709
709
  const i = new Error(t);
710
710
  if (i.name = "GraphQLError", n) {
711
711
  const r = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
@@ -724,13 +724,13 @@ function cc(t, e, n) {
724
724
  }
725
725
  }), i;
726
726
  }
727
- const fc = (t) => (e, n) => Ja(e) ? e : cc(n, e, t);
727
+ const hc = (t) => (e, n) => Ja(e) ? e : dc(n, e, t);
728
728
  var Pa, Ma;
729
- const dc = ((Ma = (Pa = globalThis.process) == null ? void 0 : Pa.env) == null ? void 0 : Ma.NODE_ENV) === "development", hc = fc(dc), pc = (t, e) => ({ result: n, setResult: i }) => {
729
+ const pc = ((Ma = (Pa = globalThis.process) == null ? void 0 : Pa.env) == null ? void 0 : Ma.NODE_ENV) === "development", gc = hc(pc), mc = (t, e) => ({ result: n, setResult: i }) => {
730
730
  n.errors != null && i({ ...n, errors: n.errors.map((r) => t(r, e)) });
731
731
  };
732
- function gc(t) {
733
- const e = (t == null ? void 0 : t.maskError) ?? hc, n = (t == null ? void 0 : t.errorMessage) || uc, i = pc(e, n);
732
+ function yc(t) {
733
+ const e = (t == null ? void 0 : t.maskError) ?? gc, n = (t == null ? void 0 : t.errorMessage) || cc, i = mc(e, n);
734
734
  return {
735
735
  onPluginInit(r) {
736
736
  r.registerContextErrorHandler(({ error: s, setError: o }) => {
@@ -756,11 +756,11 @@ function gc(t) {
756
756
  }
757
757
  };
758
758
  }
759
- const mc = (t) => ({
759
+ const bc = (t) => ({
760
760
  async onContextBuilding({ context: e, extendContext: n }) {
761
761
  n(await t(e));
762
762
  }
763
- }), yc = (t) => ({
763
+ }), wc = (t) => ({
764
764
  onExecute: ({ setExecuteFn: e }) => {
765
765
  t.execute && e(t.execute);
766
766
  },
@@ -784,7 +784,7 @@ function ae(t, e) {
784
784
  if (!!!t)
785
785
  throw new Error(e);
786
786
  }
787
- function bc(t) {
787
+ function Ec(t) {
788
788
  return typeof (t == null ? void 0 : t.then) == "function";
789
789
  }
790
790
  function Jt(t) {
@@ -796,10 +796,10 @@ function Yt(t, e) {
796
796
  e ?? "Unexpected invariant triggered."
797
797
  );
798
798
  }
799
- const wc = /\r\n|[\n\r]/g;
799
+ const vc = /\r\n|[\n\r]/g;
800
800
  function ds(t, e) {
801
801
  let n = 0, i = 1;
802
- for (const r of t.body.matchAll(wc)) {
802
+ for (const r of t.body.matchAll(vc)) {
803
803
  if (typeof r.index == "number" || Yt(!1), r.index >= e)
804
804
  break;
805
805
  n = r.index + r[0].length, i += 1;
@@ -809,7 +809,7 @@ function ds(t, e) {
809
809
  column: e + 1 - n
810
810
  };
811
811
  }
812
- function Ec(t) {
812
+ function Tc(t) {
813
813
  return Xa(
814
814
  t.source,
815
815
  ds(t.source, t.start)
@@ -842,7 +842,7 @@ function Co(t) {
842
842
  return e.map(([i, r]) => i.padStart(n) + (r ? " " + r : "")).join(`
843
843
  `);
844
844
  }
845
- function vc(t) {
845
+ function Sc(t) {
846
846
  const e = t[0];
847
847
  return e == null || "kind" in e || "length" in e ? {
848
848
  nodes: e,
@@ -894,7 +894,7 @@ let j = class Za extends Error {
894
894
  */
895
895
  constructor(e, ...n) {
896
896
  var i, r, s;
897
- const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = vc(n);
897
+ const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = Sc(n);
898
898
  super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = ko(
899
899
  Array.isArray(o) ? o : o ? [o] : void 0
900
900
  );
@@ -944,7 +944,7 @@ let j = class Za extends Error {
944
944
  for (const n of this.nodes)
945
945
  n.loc && (e += `
946
946
 
947
- ` + Ec(n.loc));
947
+ ` + Tc(n.loc));
948
948
  else if (this.source && this.locations)
949
949
  for (const n of this.locations)
950
950
  e += `
@@ -968,7 +968,7 @@ function $e(t, e, n) {
968
968
  positions: [e]
969
969
  });
970
970
  }
971
- class Tc {
971
+ class _c {
972
972
  /**
973
973
  * The character offset at which this Node begins.
974
974
  */
@@ -1113,10 +1113,10 @@ const tu = {
1113
1113
  UnionTypeExtension: ["name", "directives", "types"],
1114
1114
  EnumTypeExtension: ["name", "directives", "values"],
1115
1115
  InputObjectTypeExtension: ["name", "directives", "fields"]
1116
- }, Sc = new Set(Object.keys(tu));
1116
+ }, Ic = new Set(Object.keys(tu));
1117
1117
  function hs(t) {
1118
1118
  const e = t == null ? void 0 : t.kind;
1119
- return typeof e == "string" && Sc.has(e);
1119
+ return typeof e == "string" && Ic.has(e);
1120
1120
  }
1121
1121
  var Je;
1122
1122
  (function(t) {
@@ -1146,12 +1146,12 @@ function Bs(t) {
1146
1146
  function iu(t) {
1147
1147
  return nu(t) || ki(t) || t === 95;
1148
1148
  }
1149
- function _c(t) {
1149
+ function Oc(t) {
1150
1150
  var e;
1151
1151
  let n = Number.MAX_SAFE_INTEGER, i = null, r = -1;
1152
1152
  for (let o = 0; o < t.length; ++o) {
1153
1153
  var s;
1154
- const a = t[o], u = Ic(a);
1154
+ const a = t[o], u = Nc(a);
1155
1155
  u !== a.length && (i = (s = i) !== null && s !== void 0 ? s : o, r = o, o !== 0 && u < n && (n = u));
1156
1156
  }
1157
1157
  return t.map((o, a) => a === 0 ? o : o.slice(n)).slice(
@@ -1159,13 +1159,13 @@ function _c(t) {
1159
1159
  r + 1
1160
1160
  );
1161
1161
  }
1162
- function Ic(t) {
1162
+ function Nc(t) {
1163
1163
  let e = 0;
1164
1164
  for (; e < t.length && ps(t.charCodeAt(e)); )
1165
1165
  ++e;
1166
1166
  return e;
1167
1167
  }
1168
- function Oc(t, e) {
1168
+ function Ac(t, e) {
1169
1169
  const n = t.replace(/"""/g, '\\"""'), i = n.split(/\r\n|[\n\r]/g), r = i.length === 1, s = i.length > 1 && i.slice(1).every((v) => v.length === 0 || ps(v.charCodeAt(0))), o = n.endsWith('\\"""'), a = t.endsWith('"') && !o, u = t.endsWith("\\"), c = a || u, f = (
1170
1170
  // add leading and trailing new lines only if it improves readability
1171
1171
  !r || t.length > 70 || c || s || o
@@ -1180,7 +1180,7 @@ var D;
1180
1180
  (function(t) {
1181
1181
  t.SOF = "<SOF>", t.EOF = "<EOF>", t.BANG = "!", t.DOLLAR = "$", t.AMP = "&", t.PAREN_L = "(", t.PAREN_R = ")", t.SPREAD = "...", t.COLON = ":", t.EQUALS = "=", t.AT = "@", t.BRACKET_L = "[", t.BRACKET_R = "]", t.BRACE_L = "{", t.PIPE = "|", t.BRACE_R = "}", t.NAME = "Name", t.INT = "Int", t.FLOAT = "Float", t.STRING = "String", t.BLOCK_STRING = "BlockString", t.COMMENT = "Comment";
1182
1182
  })(D || (D = {}));
1183
- class Nc {
1183
+ class xc {
1184
1184
  /**
1185
1185
  * The previously focused non-ignored token.
1186
1186
  */
@@ -1217,14 +1217,14 @@ class Nc {
1217
1217
  if (e.next)
1218
1218
  e = e.next;
1219
1219
  else {
1220
- const n = xc(this, e.end);
1220
+ const n = Rc(this, e.end);
1221
1221
  e.next = n, n.prev = e, e = n;
1222
1222
  }
1223
1223
  while (e.kind === D.COMMENT);
1224
1224
  return e;
1225
1225
  }
1226
1226
  }
1227
- function Ac(t) {
1227
+ function Fc(t) {
1228
1228
  return t === D.BANG || t === D.DOLLAR || t === D.AMP || t === D.PAREN_L || t === D.PAREN_R || t === D.SPREAD || t === D.COLON || t === D.EQUALS || t === D.AT || t === D.BRACKET_L || t === D.BRACKET_R || t === D.BRACE_L || t === D.PIPE || t === D.BRACE_R;
1229
1229
  }
1230
1230
  function fi(t) {
@@ -1253,7 +1253,7 @@ function _e(t, e, n, i, r) {
1253
1253
  const s = t.line, o = 1 + n - t.lineStart;
1254
1254
  return new eu(e, n, i, s, o, r);
1255
1255
  }
1256
- function xc(t, e) {
1256
+ function Rc(t, e) {
1257
1257
  const n = t.source.body, i = n.length;
1258
1258
  let r = e;
1259
1259
  for (; r < i; ) {
@@ -1272,7 +1272,7 @@ function xc(t, e) {
1272
1272
  n.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++t.line, t.lineStart = r;
1273
1273
  continue;
1274
1274
  case 35:
1275
- return Fc(t, r);
1275
+ return Lc(t, r);
1276
1276
  case 33:
1277
1277
  return _e(t, D.BANG, r, r + 1);
1278
1278
  case 36:
@@ -1304,12 +1304,12 @@ function xc(t, e) {
1304
1304
  case 125:
1305
1305
  return _e(t, D.BRACE_R, r, r + 1);
1306
1306
  case 34:
1307
- return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? $c(t, r) : Lc(t, r);
1307
+ return n.charCodeAt(r + 1) === 34 && n.charCodeAt(r + 2) === 34 ? Pc(t, r) : kc(t, r);
1308
1308
  }
1309
1309
  if (ki(s) || s === 45)
1310
- return Rc(t, r, s);
1310
+ return Cc(t, r, s);
1311
1311
  if (Bs(s))
1312
- return jc(t, r);
1312
+ return Mc(t, r);
1313
1313
  throw $e(
1314
1314
  t.source,
1315
1315
  r,
@@ -1318,7 +1318,7 @@ function xc(t, e) {
1318
1318
  }
1319
1319
  return _e(t, D.EOF, i, i);
1320
1320
  }
1321
- function Fc(t, e) {
1321
+ function Lc(t, e) {
1322
1322
  const n = t.source.body, i = n.length;
1323
1323
  let r = e + 1;
1324
1324
  for (; r < i; ) {
@@ -1340,7 +1340,7 @@ function Fc(t, e) {
1340
1340
  n.slice(e + 1, r)
1341
1341
  );
1342
1342
  }
1343
- function Rc(t, e, n) {
1343
+ function Cc(t, e, n) {
1344
1344
  const i = t.source.body;
1345
1345
  let r = e, s = n, o = !1;
1346
1346
  if (s === 45 && (s = i.charCodeAt(++r)), s === 48) {
@@ -1388,7 +1388,7 @@ function es(t, e, n) {
1388
1388
  ++r;
1389
1389
  return r;
1390
1390
  }
1391
- function Lc(t, e) {
1391
+ function kc(t, e) {
1392
1392
  const n = t.source.body, i = n.length;
1393
1393
  let r = e + 1, s = r, o = "";
1394
1394
  for (; r < i; ) {
@@ -1397,7 +1397,7 @@ function Lc(t, e) {
1397
1397
  return o += n.slice(s, r), _e(t, D.STRING, e, r + 1, o);
1398
1398
  if (a === 92) {
1399
1399
  o += n.slice(s, r);
1400
- const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Cc(t, r) : kc(t, r) : Dc(t, r);
1400
+ const u = n.charCodeAt(r + 1) === 117 ? n.charCodeAt(r + 2) === 123 ? Dc(t, r) : $c(t, r) : jc(t, r);
1401
1401
  o += u.value, r += u.size, s = r;
1402
1402
  continue;
1403
1403
  }
@@ -1419,7 +1419,7 @@ function Lc(t, e) {
1419
1419
  }
1420
1420
  throw $e(t.source, r, "Unterminated string.");
1421
1421
  }
1422
- function Cc(t, e) {
1422
+ function Dc(t, e) {
1423
1423
  const n = t.source.body;
1424
1424
  let i = 0, r = 3;
1425
1425
  for (; r < 12; ) {
@@ -1444,7 +1444,7 @@ function Cc(t, e) {
1444
1444
  )}".`
1445
1445
  );
1446
1446
  }
1447
- function kc(t, e) {
1447
+ function $c(t, e) {
1448
1448
  const n = t.source.body, i = Do(n, e + 2);
1449
1449
  if (fi(i))
1450
1450
  return {
@@ -1471,7 +1471,7 @@ function Do(t, e) {
1471
1471
  function vi(t) {
1472
1472
  return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
1473
1473
  }
1474
- function Dc(t, e) {
1474
+ function jc(t, e) {
1475
1475
  const n = t.source.body;
1476
1476
  switch (n.charCodeAt(e + 1)) {
1477
1477
  case 34:
@@ -1525,7 +1525,7 @@ function Dc(t, e) {
1525
1525
  )}".`
1526
1526
  );
1527
1527
  }
1528
- function $c(t, e) {
1528
+ function Pc(t, e) {
1529
1529
  const n = t.source.body, i = n.length;
1530
1530
  let r = t.lineStart, s = e + 3, o = s, a = "";
1531
1531
  const u = [];
@@ -1539,7 +1539,7 @@ function $c(t, e) {
1539
1539
  e,
1540
1540
  s + 3,
1541
1541
  // Return a string of the lines joined with U+000A.
1542
- _c(u).join(`
1542
+ Oc(u).join(`
1543
1543
  `)
1544
1544
  );
1545
1545
  return t.line += u.length - 1, t.lineStart = r, f;
@@ -1568,7 +1568,7 @@ function $c(t, e) {
1568
1568
  }
1569
1569
  throw $e(t.source, s, "Unterminated string.");
1570
1570
  }
1571
- function jc(t, e) {
1571
+ function Mc(t, e) {
1572
1572
  const n = t.source.body, i = n.length;
1573
1573
  let r = e + 1;
1574
1574
  for (; r < i; ) {
@@ -1586,7 +1586,7 @@ function jc(t, e) {
1586
1586
  n.slice(e, r)
1587
1587
  );
1588
1588
  }
1589
- const Pc = 10, ou = 2;
1589
+ const Uc = 10, ou = 2;
1590
1590
  function G(t) {
1591
1591
  return Dr(t, []);
1592
1592
  }
@@ -1597,45 +1597,45 @@ function Dr(t, e) {
1597
1597
  case "function":
1598
1598
  return t.name ? `[function ${t.name}]` : "[function]";
1599
1599
  case "object":
1600
- return Mc(t, e);
1600
+ return Vc(t, e);
1601
1601
  default:
1602
1602
  return String(t);
1603
1603
  }
1604
1604
  }
1605
- function Mc(t, e) {
1605
+ function Vc(t, e) {
1606
1606
  if (t === null)
1607
1607
  return "null";
1608
1608
  if (e.includes(t))
1609
1609
  return "[Circular]";
1610
1610
  const n = [...e, t];
1611
- if (Uc(t)) {
1611
+ if (Bc(t)) {
1612
1612
  const i = t.toJSON();
1613
1613
  if (i !== t)
1614
1614
  return typeof i == "string" ? i : Dr(i, n);
1615
1615
  } else if (Array.isArray(t))
1616
- return Bc(t, n);
1617
- return Vc(t, n);
1616
+ return qc(t, n);
1617
+ return Gc(t, n);
1618
1618
  }
1619
- function Uc(t) {
1619
+ function Bc(t) {
1620
1620
  return typeof t.toJSON == "function";
1621
1621
  }
1622
- function Vc(t, e) {
1622
+ function Gc(t, e) {
1623
1623
  const n = Object.entries(t);
1624
- return n.length === 0 ? "{}" : e.length > ou ? "[" + Gc(t) + "]" : "{ " + n.map(
1624
+ return n.length === 0 ? "{}" : e.length > ou ? "[" + zc(t) + "]" : "{ " + n.map(
1625
1625
  ([r, s]) => r + ": " + Dr(s, e)
1626
1626
  ).join(", ") + " }";
1627
1627
  }
1628
- function Bc(t, e) {
1628
+ function qc(t, e) {
1629
1629
  if (t.length === 0)
1630
1630
  return "[]";
1631
1631
  if (e.length > ou)
1632
1632
  return "[Array]";
1633
- const n = Math.min(Pc, t.length), i = t.length - n, r = [];
1633
+ const n = Math.min(Uc, t.length), i = t.length - n, r = [];
1634
1634
  for (let s = 0; s < n; ++s)
1635
1635
  r.push(Dr(t[s], e));
1636
1636
  return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
1637
1637
  }
1638
- function Gc(t) {
1638
+ function zc(t) {
1639
1639
  const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
1640
1640
  if (e === "Object" && typeof t.constructor == "function") {
1641
1641
  const n = t.constructor.name;
@@ -1644,11 +1644,11 @@ function Gc(t) {
1644
1644
  }
1645
1645
  return e;
1646
1646
  }
1647
- const qc = globalThis.process && // eslint-disable-next-line no-undef
1647
+ const Qc = globalThis.process && // eslint-disable-next-line no-undef
1648
1648
  process.env.NODE_ENV === "production", qt = (
1649
1649
  /* c8 ignore next 6 */
1650
1650
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
1651
- qc ? function(e, n) {
1651
+ Qc ? function(e, n) {
1652
1652
  return e instanceof n;
1653
1653
  } : function(e, n) {
1654
1654
  if (e instanceof n)
@@ -1695,16 +1695,16 @@ class au {
1695
1695
  return "Source";
1696
1696
  }
1697
1697
  }
1698
- function zc(t) {
1698
+ function Wc(t) {
1699
1699
  return qt(t, au);
1700
1700
  }
1701
- function Qc(t, e) {
1702
- return new Wc(t, e).parseDocument();
1701
+ function Hc(t, e) {
1702
+ return new Yc(t, e).parseDocument();
1703
1703
  }
1704
- class Wc {
1704
+ class Yc {
1705
1705
  constructor(e, n = {}) {
1706
- const i = zc(e) ? e : new au(e);
1707
- this._lexer = new Nc(i), this._options = n, this._tokenCounter = 0;
1706
+ const i = Wc(e) ? e : new au(e);
1707
+ this._lexer = new xc(i), this._options = n, this._tokenCounter = 0;
1708
1708
  }
1709
1709
  /**
1710
1710
  * Converts a name lex token into a name parse node.
@@ -2671,7 +2671,7 @@ class Wc {
2671
2671
  * given parsed object.
2672
2672
  */
2673
2673
  node(e, n) {
2674
- return this._options.noLocation !== !0 && (n.loc = new Tc(
2674
+ return this._options.noLocation !== !0 && (n.loc = new _c(
2675
2675
  e,
2676
2676
  this._lexer.lastToken,
2677
2677
  this._lexer.source
@@ -2807,9 +2807,9 @@ function Ji(t) {
2807
2807
  return uu(t.kind) + (e != null ? ` "${e}"` : "");
2808
2808
  }
2809
2809
  function uu(t) {
2810
- return Ac(t) ? `"${t}"` : t;
2810
+ return Fc(t) ? `"${t}"` : t;
2811
2811
  }
2812
- const Hc = 5;
2812
+ const Jc = 5;
2813
2813
  function yn(t, e) {
2814
2814
  const [n, i] = e ? [t, e] : [void 0, t];
2815
2815
  let r = " Did you mean ";
@@ -2823,7 +2823,7 @@ function yn(t, e) {
2823
2823
  case 2:
2824
2824
  return r + s[0] + " or " + s[1] + "?";
2825
2825
  }
2826
- const o = s.slice(0, Hc), a = o.pop();
2826
+ const o = s.slice(0, Jc), a = o.pop();
2827
2827
  return r + o.join(", ") + ", or " + a + "?";
2828
2828
  }
2829
2829
  function $o(t) {
@@ -2874,12 +2874,12 @@ function Ui(t, e) {
2874
2874
  }
2875
2875
  return t.length - e.length;
2876
2876
  }
2877
- const gs = 48, Yc = 57;
2877
+ const gs = 48, Kc = 57;
2878
2878
  function Ki(t) {
2879
- return !isNaN(t) && gs <= t && t <= Yc;
2879
+ return !isNaN(t) && gs <= t && t <= Kc;
2880
2880
  }
2881
2881
  function $n(t, e) {
2882
- const n = /* @__PURE__ */ Object.create(null), i = new Jc(t), r = Math.floor(t.length * 0.4) + 1;
2882
+ const n = /* @__PURE__ */ Object.create(null), i = new Xc(t), r = Math.floor(t.length * 0.4) + 1;
2883
2883
  for (const s of e) {
2884
2884
  const o = i.measure(s, r);
2885
2885
  o !== void 0 && (n[s] = o);
@@ -2889,7 +2889,7 @@ function $n(t, e) {
2889
2889
  return a !== 0 ? a : Ui(s, o);
2890
2890
  });
2891
2891
  }
2892
- class Jc {
2892
+ class Xc {
2893
2893
  constructor(e) {
2894
2894
  this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = jo(this._inputLowerCase), this._rows = [
2895
2895
  new Array(e.length + 1).fill(0),
@@ -2956,14 +2956,14 @@ function yt(t) {
2956
2956
  e[n] = i;
2957
2957
  return e;
2958
2958
  }
2959
- function Kc(t) {
2960
- return `"${t.replace(Xc, Zc)}"`;
2961
- }
2962
- const Xc = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2963
2959
  function Zc(t) {
2964
- return ef[t.charCodeAt(0)];
2960
+ return `"${t.replace(ef, tf)}"`;
2965
2961
  }
2966
- const ef = [
2962
+ const ef = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
2963
+ function tf(t) {
2964
+ return nf[t.charCodeAt(0)];
2965
+ }
2966
+ const nf = [
2967
2967
  "\\u0000",
2968
2968
  "\\u0001",
2969
2969
  "\\u0002",
@@ -3197,7 +3197,7 @@ function Gs(t, e, n = tu) {
3197
3197
  } while (r !== void 0);
3198
3198
  return u.length !== 0 ? u[u.length - 1][1] : t;
3199
3199
  }
3200
- function tf(t) {
3200
+ function rf(t) {
3201
3201
  const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
3202
3202
  for (const i of Object.values(I)) {
3203
3203
  let r = !1;
@@ -3251,9 +3251,9 @@ function Sr(t, e) {
3251
3251
  };
3252
3252
  }
3253
3253
  function be(t) {
3254
- return Gs(t, rf);
3254
+ return Gs(t, of);
3255
3255
  }
3256
- const nf = 80, rf = {
3256
+ const sf = 80, of = {
3257
3257
  Name: {
3258
3258
  leave: (t) => t.value
3259
3259
  },
@@ -3289,7 +3289,7 @@ const nf = 80, rf = {
3289
3289
  leave({ alias: t, name: e, arguments: n, directives: i, selectionSet: r }) {
3290
3290
  const s = se("", t, ": ") + e;
3291
3291
  let o = s + se("(", Y(n, ", "), ")");
3292
- return o.length > nf && (o = s + se(`(
3292
+ return o.length > sf && (o = s + se(`(
3293
3293
  `, dr(Y(n, `
3294
3294
  `)), `
3295
3295
  )`)), Y([o, Y(i, " "), r], " ");
@@ -3327,7 +3327,7 @@ const nf = 80, rf = {
3327
3327
  leave: ({ value: t }) => t
3328
3328
  },
3329
3329
  StringValue: {
3330
- leave: ({ value: t, block: e }) => e ? Oc(t) : Kc(t)
3330
+ leave: ({ value: t, block: e }) => e ? Ac(t) : Zc(t)
3331
3331
  },
3332
3332
  BooleanValue: {
3333
3333
  leave: ({ value: t }) => t ? "true" : "false"
@@ -3552,7 +3552,7 @@ function zt(t) {
3552
3552
  );
3553
3553
  return t;
3554
3554
  }
3555
- function sf(t) {
3555
+ function af(t) {
3556
3556
  if (t === "true" || t === "false" || t === "null")
3557
3557
  throw new j(`Enum values cannot be named: ${t}`);
3558
3558
  return zt(t);
@@ -3615,7 +3615,7 @@ class Ue {
3615
3615
  }
3616
3616
  class ne {
3617
3617
  constructor(e) {
3618
- of(e) || ae(
3618
+ uf(e) || ae(
3619
3619
  !1,
3620
3620
  `Expected ${G(e)} to be a GraphQL nullable type.`
3621
3621
  ), this.ofType = e;
@@ -3633,14 +3633,14 @@ class ne {
3633
3633
  function zs(t) {
3634
3634
  return Pe(t) || re(t);
3635
3635
  }
3636
- function of(t) {
3636
+ function uf(t) {
3637
3637
  return qs(t) && !re(t);
3638
3638
  }
3639
3639
  function lu(t) {
3640
3640
  if (t)
3641
3641
  return re(t) ? t.ofType : t;
3642
3642
  }
3643
- function af(t) {
3643
+ function lf(t) {
3644
3644
  return jn(t) || pe(t) || Ee(t) || Bt(t) || Gt(t) || ze(t);
3645
3645
  }
3646
3646
  function Mt(t) {
@@ -3854,7 +3854,7 @@ class In {
3854
3854
  class zn {
3855
3855
  constructor(e) {
3856
3856
  var n;
3857
- this.name = zt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = yt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = uf.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || ae(
3857
+ this.name = zt(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = yt(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = cf.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || ae(
3858
3858
  !1,
3859
3859
  `${this.name} must provide "resolveType" as a function, but got: ${G(e.resolveType)}.`
3860
3860
  );
@@ -3883,7 +3883,7 @@ class zn {
3883
3883
  return this.toString();
3884
3884
  }
3885
3885
  }
3886
- function uf(t) {
3886
+ function cf(t) {
3887
3887
  const e = cu(t.types);
3888
3888
  return Array.isArray(e) || ae(
3889
3889
  !1,
@@ -3992,7 +3992,7 @@ function Mo(t, e) {
3992
3992
  !1,
3993
3993
  `${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${G(i)}.`
3994
3994
  ), {
3995
- name: sf(n),
3995
+ name: af(n),
3996
3996
  description: i.description,
3997
3997
  value: i.value !== void 0 ? i.value : n,
3998
3998
  deprecationReason: i.deprecationReason,
@@ -4003,7 +4003,7 @@ function Mo(t, e) {
4003
4003
  class Li {
4004
4004
  constructor(e) {
4005
4005
  var n, i;
4006
- this.name = zt(e.name), this.description = e.description, this.extensions = yt(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 = lf.bind(void 0, e);
4006
+ this.name = zt(e.name), this.description = e.description, this.extensions = yt(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 = ff.bind(void 0, e);
4007
4007
  }
4008
4008
  get [Symbol.toStringTag]() {
4009
4009
  return "GraphQLInputObjectType";
@@ -4037,7 +4037,7 @@ class Li {
4037
4037
  return this.toString();
4038
4038
  }
4039
4039
  }
4040
- function lf(t) {
4040
+ function ff(t) {
4041
4041
  const e = fu(t.fields);
4042
4042
  return Yn(e) || ae(
4043
4043
  !1,
@@ -4235,7 +4235,7 @@ const ts = 2147483647, ns = -2147483648, Bi = new Vt({
4235
4235
  );
4236
4236
  return t.value;
4237
4237
  }
4238
- }), cf = Object.freeze([
4238
+ }), df = Object.freeze([
4239
4239
  ue,
4240
4240
  Bi,
4241
4241
  Pr,
@@ -4316,7 +4316,7 @@ const Qs = new rn({
4316
4316
  description: "Skipped when true."
4317
4317
  }
4318
4318
  }
4319
- }), ff = "No longer supported", wu = new rn({
4319
+ }), hf = "No longer supported", wu = new rn({
4320
4320
  name: "deprecated",
4321
4321
  description: "Marks an element of a GraphQL schema as no longer supported.",
4322
4322
  locations: [
@@ -4329,10 +4329,10 @@ const Qs = new rn({
4329
4329
  reason: {
4330
4330
  type: ue,
4331
4331
  description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
4332
- defaultValue: ff
4332
+ defaultValue: hf
4333
4333
  }
4334
4334
  }
4335
- }), df = new rn({
4335
+ }), pf = new rn({
4336
4336
  name: "specifiedBy",
4337
4337
  description: "Exposes a URL that specifies the behavior of this scalar.",
4338
4338
  locations: [K.SCALAR],
@@ -4342,7 +4342,7 @@ const Qs = new rn({
4342
4342
  description: "The URL that specifies the behavior of this scalar."
4343
4343
  }
4344
4344
  }
4345
- }), hf = new rn({
4345
+ }), gf = new rn({
4346
4346
  name: "oneOf",
4347
4347
  description: "Indicates exactly one field must be supplied and this field must not be `null`.",
4348
4348
  locations: [K.INPUT_OBJECT],
@@ -4351,8 +4351,8 @@ const Qs = new rn({
4351
4351
  Qs,
4352
4352
  Ws,
4353
4353
  wu,
4354
- df,
4355
- hf
4354
+ pf,
4355
+ gf
4356
4356
  ]);
4357
4357
  function Eu(t) {
4358
4358
  return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
@@ -4895,7 +4895,7 @@ function Nu(t) {
4895
4895
  function Au(t) {
4896
4896
  return qt(t, Ys);
4897
4897
  }
4898
- function pf(t) {
4898
+ function mf(t) {
4899
4899
  if (!Au(t))
4900
4900
  throw new Error(`Expected ${G(t)} to be a GraphQL schema.`);
4901
4901
  return t;
@@ -5049,22 +5049,22 @@ function jt(t, e) {
5049
5049
  }
5050
5050
  return e;
5051
5051
  }
5052
- function gf(t) {
5053
- if (pf(t), t.__validationErrors)
5052
+ function yf(t) {
5053
+ if (mf(t), t.__validationErrors)
5054
5054
  return t.__validationErrors;
5055
- const e = new mf(t);
5056
- yf(e), bf(e), wf(e);
5055
+ const e = new bf(t);
5056
+ wf(e), Ef(e), vf(e);
5057
5057
  const n = e.getErrors();
5058
5058
  return t.__validationErrors = n, n;
5059
5059
  }
5060
5060
  function xu(t) {
5061
- const e = gf(t);
5061
+ const e = yf(t);
5062
5062
  if (e.length !== 0)
5063
5063
  throw new Error(e.map((n) => n.message).join(`
5064
5064
 
5065
5065
  `));
5066
5066
  }
5067
- class mf {
5067
+ class bf {
5068
5068
  constructor(e) {
5069
5069
  this._errors = [], this.schema = e;
5070
5070
  }
@@ -5080,7 +5080,7 @@ class mf {
5080
5080
  return this._errors;
5081
5081
  }
5082
5082
  }
5083
- function yf(t) {
5083
+ function wf(t) {
5084
5084
  const e = t.schema, n = e.getQueryType();
5085
5085
  if (!n)
5086
5086
  t.reportError("Query root type must be provided.", e.astNode);
@@ -5132,7 +5132,7 @@ function is(t, e) {
5132
5132
  }
5133
5133
  ).find((i) => i.operation === e)) === null || n === void 0 ? void 0 : n.type;
5134
5134
  }
5135
- function bf(t) {
5135
+ function Ef(t) {
5136
5136
  for (const n of t.schema.getDirectives()) {
5137
5137
  if (!bu(n)) {
5138
5138
  t.reportError(
@@ -5164,17 +5164,17 @@ function Dn(t, e) {
5164
5164
  e.astNode
5165
5165
  );
5166
5166
  }
5167
- function wf(t) {
5168
- const e = Of(t), n = t.schema.getTypeMap();
5167
+ function vf(t) {
5168
+ const e = Af(t), n = t.schema.getTypeMap();
5169
5169
  for (const i of Object.values(n)) {
5170
- if (!af(i)) {
5170
+ if (!lf(i)) {
5171
5171
  t.reportError(
5172
5172
  `Expected GraphQL named type but got: ${G(i)}.`,
5173
5173
  i.astNode
5174
5174
  );
5175
5175
  continue;
5176
5176
  }
5177
- Nu(i) || Dn(t, i), pe(i) || Ee(i) ? (Bo(t, i), Go(t, i)) : Bt(i) ? Tf(t, i) : Gt(i) ? Sf(t, i) : ze(i) && (_f(t, i), e(i));
5177
+ Nu(i) || Dn(t, i), pe(i) || Ee(i) ? (Bo(t, i), Go(t, i)) : Bt(i) ? _f(t, i) : Gt(i) ? If(t, i) : ze(i) && (Of(t, i), e(i));
5178
5178
  }
5179
5179
  }
5180
5180
  function Bo(t, e) {
@@ -5237,10 +5237,10 @@ function Go(t, e) {
5237
5237
  );
5238
5238
  continue;
5239
5239
  }
5240
- n[i.name] = !0, vf(t, e, i), Ef(t, e, i);
5240
+ n[i.name] = !0, Sf(t, e, i), Tf(t, e, i);
5241
5241
  }
5242
5242
  }
5243
- function Ef(t, e, n) {
5243
+ function Tf(t, e, n) {
5244
5244
  const i = e.getFields();
5245
5245
  for (const u of Object.values(n.getFields())) {
5246
5246
  const c = u.name, f = i[c];
@@ -5290,7 +5290,7 @@ function Ef(t, e, n) {
5290
5290
  }
5291
5291
  }
5292
5292
  }
5293
- function vf(t, e, n) {
5293
+ function Sf(t, e, n) {
5294
5294
  const i = e.getInterfaces();
5295
5295
  for (const r of n.getInterfaces())
5296
5296
  i.includes(r) || t.reportError(
@@ -5301,7 +5301,7 @@ function vf(t, e, n) {
5301
5301
  ]
5302
5302
  );
5303
5303
  }
5304
- function Tf(t, e) {
5304
+ function _f(t, e) {
5305
5305
  const n = e.getTypes();
5306
5306
  n.length === 0 && t.reportError(
5307
5307
  `Union type ${e.name} must define one or more member types.`,
@@ -5322,7 +5322,7 @@ function Tf(t, e) {
5322
5322
  );
5323
5323
  }
5324
5324
  }
5325
- function Sf(t, e) {
5325
+ function If(t, e) {
5326
5326
  const n = e.getValues();
5327
5327
  n.length === 0 && t.reportError(
5328
5328
  `Enum type ${e.name} must define one or more values.`,
@@ -5331,7 +5331,7 @@ function Sf(t, e) {
5331
5331
  for (const i of n)
5332
5332
  Dn(t, i);
5333
5333
  }
5334
- function _f(t, e) {
5334
+ function Of(t, e) {
5335
5335
  const n = Object.values(e.getFields());
5336
5336
  n.length === 0 && t.reportError(
5337
5337
  `Input Object type ${e.name} must define one or more fields.`,
@@ -5355,10 +5355,10 @@ function _f(t, e) {
5355
5355
  ]
5356
5356
  );
5357
5357
  }
5358
- e.isOneOf && If(e, s, t);
5358
+ e.isOneOf && Nf(e, s, t);
5359
5359
  }
5360
5360
  }
5361
- function If(t, e, n) {
5361
+ function Nf(t, e, n) {
5362
5362
  if (re(e.type)) {
5363
5363
  var i;
5364
5364
  n.reportError(
@@ -5371,7 +5371,7 @@ function If(t, e, n) {
5371
5371
  e.astNode
5372
5372
  );
5373
5373
  }
5374
- function Of(t) {
5374
+ function Af(t) {
5375
5375
  const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
5376
5376
  return r;
5377
5377
  function r(s) {
@@ -5438,7 +5438,7 @@ function it(t, e) {
5438
5438
  }
5439
5439
  class Fu {
5440
5440
  constructor(e, n, i) {
5441
- this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? Nf, n && (Pt(n) && this._inputTypeStack.push(n), wn(n) && this._parentTypeStack.push(n), Ri(n) && this._typeStack.push(n));
5441
+ this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = i ?? xf, n && (Pt(n) && this._inputTypeStack.push(n), wn(n) && this._parentTypeStack.push(n), Ri(n) && this._typeStack.push(n));
5442
5442
  }
5443
5443
  get [Symbol.toStringTag]() {
5444
5444
  return "TypeInfo";
@@ -5577,7 +5577,7 @@ class Fu {
5577
5577
  }
5578
5578
  }
5579
5579
  }
5580
- function Nf(t, e, n) {
5580
+ function xf(t, e, n) {
5581
5581
  const i = n.name.value;
5582
5582
  if (i === _r.name && t.getQueryType() === e)
5583
5583
  return _r;
@@ -5606,26 +5606,26 @@ function Ru(t, e) {
5606
5606
  }
5607
5607
  };
5608
5608
  }
5609
- function Af(t) {
5609
+ function Ff(t) {
5610
5610
  return t.kind === I.OPERATION_DEFINITION || t.kind === I.FRAGMENT_DEFINITION;
5611
5611
  }
5612
- function xf(t) {
5612
+ function Rf(t) {
5613
5613
  return t.kind === I.SCHEMA_DEFINITION || Ks(t) || t.kind === I.DIRECTIVE_DEFINITION;
5614
5614
  }
5615
5615
  function Ks(t) {
5616
5616
  return t.kind === I.SCALAR_TYPE_DEFINITION || t.kind === I.OBJECT_TYPE_DEFINITION || t.kind === I.INTERFACE_TYPE_DEFINITION || t.kind === I.UNION_TYPE_DEFINITION || t.kind === I.ENUM_TYPE_DEFINITION || t.kind === I.INPUT_OBJECT_TYPE_DEFINITION;
5617
5617
  }
5618
- function Ff(t) {
5618
+ function Lf(t) {
5619
5619
  return t.kind === I.SCHEMA_EXTENSION || Lu(t);
5620
5620
  }
5621
5621
  function Lu(t) {
5622
5622
  return t.kind === I.SCALAR_TYPE_EXTENSION || t.kind === I.OBJECT_TYPE_EXTENSION || t.kind === I.INTERFACE_TYPE_EXTENSION || t.kind === I.UNION_TYPE_EXTENSION || t.kind === I.ENUM_TYPE_EXTENSION || t.kind === I.INPUT_OBJECT_TYPE_EXTENSION;
5623
5623
  }
5624
- function Rf(t) {
5624
+ function Cf(t) {
5625
5625
  return {
5626
5626
  Document(e) {
5627
5627
  for (const n of e.definitions)
5628
- if (!Af(n)) {
5628
+ if (!Ff(n)) {
5629
5629
  const i = n.kind === I.SCHEMA_DEFINITION || n.kind === I.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
5630
5630
  t.reportError(
5631
5631
  new j(`The ${i} definition is not executable.`, {
@@ -5637,7 +5637,7 @@ function Rf(t) {
5637
5637
  }
5638
5638
  };
5639
5639
  }
5640
- function Lf(t) {
5640
+ function kf(t) {
5641
5641
  return {
5642
5642
  Field(e) {
5643
5643
  const n = t.getParentType();
@@ -5645,9 +5645,9 @@ function Lf(t) {
5645
5645
  const r = t.getSchema(), s = e.name.value;
5646
5646
  let o = yn(
5647
5647
  "to use an inline fragment on",
5648
- Cf(r, n, s)
5648
+ Df(r, n, s)
5649
5649
  );
5650
- o === "" && (o = yn(kf(n, s))), t.reportError(
5650
+ o === "" && (o = yn($f(n, s))), t.reportError(
5651
5651
  new j(
5652
5652
  `Cannot query field "${s}" on type "${n.name}".` + o,
5653
5653
  {
@@ -5659,7 +5659,7 @@ function Lf(t) {
5659
5659
  }
5660
5660
  };
5661
5661
  }
5662
- function Cf(t, e, n) {
5662
+ function Df(t, e, n) {
5663
5663
  if (!nn(e))
5664
5664
  return [];
5665
5665
  const i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ Object.create(null);
@@ -5676,14 +5676,14 @@ function Cf(t, e, n) {
5676
5676
  return u !== 0 ? u : Ee(o) && t.isSubType(o, a) ? -1 : Ee(a) && t.isSubType(a, o) ? 1 : Ui(o.name, a.name);
5677
5677
  }).map((o) => o.name);
5678
5678
  }
5679
- function kf(t, e) {
5679
+ function $f(t, e) {
5680
5680
  if (pe(t) || Ee(t)) {
5681
5681
  const n = Object.keys(t.getFields());
5682
5682
  return $n(e, n);
5683
5683
  }
5684
5684
  return [];
5685
5685
  }
5686
- function Df(t) {
5686
+ function jf(t) {
5687
5687
  return {
5688
5688
  InlineFragment(e) {
5689
5689
  const n = e.typeCondition;
@@ -5718,10 +5718,10 @@ function Df(t) {
5718
5718
  }
5719
5719
  };
5720
5720
  }
5721
- function $f(t) {
5721
+ function Pf(t) {
5722
5722
  return {
5723
5723
  // eslint-disable-next-line new-cap
5724
- ...jf(t),
5724
+ ...Mf(t),
5725
5725
  Argument(e) {
5726
5726
  const n = t.getArgument(), i = t.getFieldDef(), r = t.getParentType();
5727
5727
  if (!n && i && r) {
@@ -5738,7 +5738,7 @@ function $f(t) {
5738
5738
  }
5739
5739
  };
5740
5740
  }
5741
- function jf(t) {
5741
+ function Mf(t) {
5742
5742
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
5743
5743
  for (const o of i)
5744
5744
  e[o.name] = o.args.map((a) => a.name);
@@ -5771,7 +5771,7 @@ function jf(t) {
5771
5771
  }
5772
5772
  };
5773
5773
  }
5774
- function Pf(t) {
5774
+ function Uf(t) {
5775
5775
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
5776
5776
  for (const s of i)
5777
5777
  e[s.name] = s.locations;
@@ -5789,7 +5789,7 @@ function Pf(t) {
5789
5789
  );
5790
5790
  return;
5791
5791
  }
5792
- const p = Mf(c);
5792
+ const p = Vf(c);
5793
5793
  p && !g.includes(p) && t.reportError(
5794
5794
  new j(
5795
5795
  `Directive "@${f}" may not be used on ${p}.`,
@@ -5801,11 +5801,11 @@ function Pf(t) {
5801
5801
  }
5802
5802
  };
5803
5803
  }
5804
- function Mf(t) {
5804
+ function Vf(t) {
5805
5805
  const e = t[t.length - 1];
5806
5806
  switch ("kind" in e || Yt(!1), e.kind) {
5807
5807
  case I.OPERATION_DEFINITION:
5808
- return Uf(e.operation);
5808
+ return Bf(e.operation);
5809
5809
  case I.FIELD:
5810
5810
  return K.FIELD;
5811
5811
  case I.FRAGMENT_SPREAD:
@@ -5849,7 +5849,7 @@ function Mf(t) {
5849
5849
  Yt(!1, "Unexpected kind: " + G(e.kind));
5850
5850
  }
5851
5851
  }
5852
- function Uf(t) {
5852
+ function Bf(t) {
5853
5853
  switch (t) {
5854
5854
  case Je.QUERY:
5855
5855
  return K.QUERY;
@@ -5859,7 +5859,7 @@ function Uf(t) {
5859
5859
  return K.SUBSCRIPTION;
5860
5860
  }
5861
5861
  }
5862
- function Vf(t) {
5862
+ function Gf(t) {
5863
5863
  return {
5864
5864
  FragmentSpread(e) {
5865
5865
  const n = e.name.value;
@@ -5871,7 +5871,7 @@ function Vf(t) {
5871
5871
  }
5872
5872
  };
5873
5873
  }
5874
- function Bf(t) {
5874
+ function qf(t) {
5875
5875
  const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
5876
5876
  for (const s of t.getDocument().definitions)
5877
5877
  Ks(s) && (i[s.name.value] = !0);
@@ -5884,7 +5884,7 @@ function Bf(t) {
5884
5884
  const f = s.name.value;
5885
5885
  if (!n[f] && !i[f]) {
5886
5886
  var g;
5887
- const p = (g = c[2]) !== null && g !== void 0 ? g : a, v = p != null && Gf(p);
5887
+ const p = (g = c[2]) !== null && g !== void 0 ? g : a, v = p != null && zf(p);
5888
5888
  if (v && zo.includes(f))
5889
5889
  return;
5890
5890
  const w = $n(
@@ -5903,13 +5903,13 @@ function Bf(t) {
5903
5903
  }
5904
5904
  };
5905
5905
  }
5906
- const zo = [...cf, ...Ou].map(
5906
+ const zo = [...df, ...Ou].map(
5907
5907
  (t) => t.name
5908
5908
  );
5909
- function Gf(t) {
5910
- return "kind" in t && (xf(t) || Ff(t));
5909
+ function zf(t) {
5910
+ return "kind" in t && (Rf(t) || Lf(t));
5911
5911
  }
5912
- function qf(t) {
5912
+ function Qf(t) {
5913
5913
  let e = 0;
5914
5914
  return {
5915
5915
  Document(n) {
@@ -5929,8 +5929,8 @@ function qf(t) {
5929
5929
  }
5930
5930
  };
5931
5931
  }
5932
- const zf = 3;
5933
- function Qf(t) {
5932
+ const Wf = 3;
5933
+ function Hf(t) {
5934
5934
  function e(n, i = /* @__PURE__ */ Object.create(null), r = 0) {
5935
5935
  if (n.kind === I.FRAGMENT_SPREAD) {
5936
5936
  const s = n.name.value;
@@ -5946,7 +5946,7 @@ function Qf(t) {
5946
5946
  }
5947
5947
  }
5948
5948
  if (n.kind === I.FIELD && // check all introspection lists
5949
- (n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= zf))
5949
+ (n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (r++, r >= Wf))
5950
5950
  return !0;
5951
5951
  if ("selectionSet" in n && n.selectionSet) {
5952
5952
  for (const s of n.selectionSet.selections)
@@ -5966,7 +5966,7 @@ function Qf(t) {
5966
5966
  }
5967
5967
  };
5968
5968
  }
5969
- function Wf(t) {
5969
+ function Yf(t) {
5970
5970
  const e = /* @__PURE__ */ Object.create(null), n = [], i = /* @__PURE__ */ Object.create(null);
5971
5971
  return {
5972
5972
  OperationDefinition: () => !1,
@@ -6004,7 +6004,7 @@ function Wf(t) {
6004
6004
  }
6005
6005
  }
6006
6006
  }
6007
- function Hf(t) {
6007
+ function Jf(t) {
6008
6008
  let e = /* @__PURE__ */ Object.create(null);
6009
6009
  return {
6010
6010
  OperationDefinition: {
@@ -6031,7 +6031,7 @@ function Hf(t) {
6031
6031
  }
6032
6032
  };
6033
6033
  }
6034
- function Yf(t) {
6034
+ function Kf(t) {
6035
6035
  const e = [], n = [];
6036
6036
  return {
6037
6037
  OperationDefinition(i) {
@@ -6060,7 +6060,7 @@ function Yf(t) {
6060
6060
  }
6061
6061
  };
6062
6062
  }
6063
- function Jf(t) {
6063
+ function Xf(t) {
6064
6064
  let e = [];
6065
6065
  return {
6066
6066
  OperationDefinition: {
@@ -6092,7 +6092,7 @@ function Jf(t) {
6092
6092
  function Xs(t) {
6093
6093
  switch (t.kind) {
6094
6094
  case I.OBJECT:
6095
- return { ...t, fields: Kf(t.fields) };
6095
+ return { ...t, fields: Zf(t.fields) };
6096
6096
  case I.LIST:
6097
6097
  return { ...t, values: t.values.map(Xs) };
6098
6098
  case I.INT:
@@ -6105,7 +6105,7 @@ function Xs(t) {
6105
6105
  return t;
6106
6106
  }
6107
6107
  }
6108
- function Kf(t) {
6108
+ function Zf(t) {
6109
6109
  return t.map((e) => ({
6110
6110
  ...e,
6111
6111
  value: Xs(e.value)
@@ -6118,11 +6118,11 @@ function Cu(t) {
6118
6118
  ([e, n]) => `subfields "${e}" conflict because ` + Cu(n)
6119
6119
  ).join(" and ") : t;
6120
6120
  }
6121
- function Xf(t) {
6122
- const e = new rd(), n = /* @__PURE__ */ new Map();
6121
+ function ed(t) {
6122
+ const e = new od(), n = /* @__PURE__ */ new Map();
6123
6123
  return {
6124
6124
  SelectionSet(i) {
6125
- const r = Zf(
6125
+ const r = td(
6126
6126
  t,
6127
6127
  n,
6128
6128
  e,
@@ -6143,14 +6143,14 @@ function Xf(t) {
6143
6143
  }
6144
6144
  };
6145
6145
  }
6146
- function Zf(t, e, n, i, r) {
6146
+ function td(t, e, n, i, r) {
6147
6147
  const s = [], [o, a] = xr(
6148
6148
  t,
6149
6149
  e,
6150
6150
  i,
6151
6151
  r
6152
6152
  );
6153
- if (td(
6153
+ if (id(
6154
6154
  t,
6155
6155
  s,
6156
6156
  e,
@@ -6269,7 +6269,7 @@ function Ar(t, e, n, i, r, s, o) {
6269
6269
  o
6270
6270
  );
6271
6271
  }
6272
- function ed(t, e, n, i, r, s, o, a) {
6272
+ function nd(t, e, n, i, r, s, o, a) {
6273
6273
  const u = [], [c, f] = xr(
6274
6274
  t,
6275
6275
  e,
@@ -6323,7 +6323,7 @@ function ed(t, e, n, i, r, s, o, a) {
6323
6323
  );
6324
6324
  return u;
6325
6325
  }
6326
- function td(t, e, n, i, r) {
6326
+ function id(t, e, n, i, r) {
6327
6327
  for (const [s, o] of Object.entries(r))
6328
6328
  if (o.length > 1)
6329
6329
  for (let a = 0; a < o.length; a++)
@@ -6370,7 +6370,7 @@ function ku(t, e, n, i, r, s, o) {
6370
6370
  [u],
6371
6371
  [g]
6372
6372
  ];
6373
- if (!nd(u, g))
6373
+ if (!rd(u, g))
6374
6374
  return [
6375
6375
  [r, "they have differing arguments"],
6376
6376
  [u],
@@ -6391,7 +6391,7 @@ function ku(t, e, n, i, r, s, o) {
6391
6391
  ];
6392
6392
  const x = u.selectionSet, y = g.selectionSet;
6393
6393
  if (x && y) {
6394
- const S = ed(
6394
+ const S = nd(
6395
6395
  t,
6396
6396
  e,
6397
6397
  n,
@@ -6401,10 +6401,10 @@ function ku(t, e, n, i, r, s, o) {
6401
6401
  Mt(R),
6402
6402
  y
6403
6403
  );
6404
- return id(S, r, u, g);
6404
+ return sd(S, r, u, g);
6405
6405
  }
6406
6406
  }
6407
- function nd(t, e) {
6407
+ function rd(t, e) {
6408
6408
  const n = t.arguments, i = e.arguments;
6409
6409
  if (n === void 0 || n.length === 0)
6410
6410
  return i === void 0 || i.length === 0;
@@ -6476,7 +6476,7 @@ function Du(t, e, n, i, r) {
6476
6476
  }
6477
6477
  }
6478
6478
  }
6479
- function id(t, e, n, i) {
6479
+ function sd(t, e, n, i) {
6480
6480
  if (t.length > 0)
6481
6481
  return [
6482
6482
  [e, t.map(([r]) => r)],
@@ -6484,7 +6484,7 @@ function id(t, e, n, i) {
6484
6484
  [i, ...t.map(([, , r]) => r).flat()]
6485
6485
  ];
6486
6486
  }
6487
- class rd {
6487
+ class od {
6488
6488
  constructor() {
6489
6489
  this._data = /* @__PURE__ */ new Map();
6490
6490
  }
@@ -6498,7 +6498,7 @@ class rd {
6498
6498
  o === void 0 ? this._data.set(r, /* @__PURE__ */ new Map([[s, i]])) : o.set(s, i);
6499
6499
  }
6500
6500
  }
6501
- function sd(t) {
6501
+ function ad(t) {
6502
6502
  return {
6503
6503
  InlineFragment(e) {
6504
6504
  const n = t.getType(), i = t.getParentType();
@@ -6515,7 +6515,7 @@ function sd(t) {
6515
6515
  }
6516
6516
  },
6517
6517
  FragmentSpread(e) {
6518
- const n = e.name.value, i = od(t, n), r = t.getParentType();
6518
+ const n = e.name.value, i = ud(t, n), r = t.getParentType();
6519
6519
  if (i && r && !Uo(t.getSchema(), i, r)) {
6520
6520
  const s = G(r), o = G(i);
6521
6521
  t.reportError(
@@ -6530,7 +6530,7 @@ function sd(t) {
6530
6530
  }
6531
6531
  };
6532
6532
  }
6533
- function od(t, e) {
6533
+ function ud(t, e) {
6534
6534
  const n = t.getFragment(e);
6535
6535
  if (n) {
6536
6536
  const i = it(t.getSchema(), n.typeCondition);
@@ -6538,10 +6538,10 @@ function od(t, e) {
6538
6538
  return i;
6539
6539
  }
6540
6540
  }
6541
- function ad(t) {
6541
+ function ld(t) {
6542
6542
  return {
6543
6543
  // eslint-disable-next-line new-cap
6544
- ...ud(t),
6544
+ ...cd(t),
6545
6545
  Field: {
6546
6546
  // Validate on leave to allow for deeper errors to appear first.
6547
6547
  leave(e) {
@@ -6570,7 +6570,7 @@ function ad(t) {
6570
6570
  }
6571
6571
  };
6572
6572
  }
6573
- function ud(t) {
6573
+ function cd(t) {
6574
6574
  var e;
6575
6575
  const n = /* @__PURE__ */ Object.create(null), i = t.getSchema(), r = (e = i == null ? void 0 : i.getDirectives()) !== null && e !== void 0 ? e : zi;
6576
6576
  for (const a of r)
@@ -6584,7 +6584,7 @@ function ud(t) {
6584
6584
  var o;
6585
6585
  const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
6586
6586
  n[a.name.value] = oi(
6587
- u.filter(ld),
6587
+ u.filter(fd),
6588
6588
  (c) => c.name.value
6589
6589
  );
6590
6590
  }
@@ -6613,10 +6613,10 @@ function ud(t) {
6613
6613
  }
6614
6614
  };
6615
6615
  }
6616
- function ld(t) {
6616
+ function fd(t) {
6617
6617
  return t.type.kind === I.NON_NULL_TYPE && t.defaultValue == null;
6618
6618
  }
6619
- function cd(t) {
6619
+ function dd(t) {
6620
6620
  return {
6621
6621
  Field(e) {
6622
6622
  const n = t.getType(), i = e.selectionSet;
@@ -6648,7 +6648,7 @@ function cd(t) {
6648
6648
  }
6649
6649
  };
6650
6650
  }
6651
- function fd(t) {
6651
+ function hd(t) {
6652
6652
  return t.map(
6653
6653
  (e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
6654
6654
  ).join("");
@@ -6667,12 +6667,12 @@ function Xt(t) {
6667
6667
  e.push(n.key), n = n.prev;
6668
6668
  return e.reverse();
6669
6669
  }
6670
- function dd(t, e, n = hd) {
6670
+ function pd(t, e, n = gd) {
6671
6671
  return _i(t, e, n, void 0);
6672
6672
  }
6673
- function hd(t, e, n) {
6673
+ function gd(t, e, n) {
6674
6674
  let i = "Invalid value " + G(e);
6675
- throw t.length > 0 && (i += ` at "value${fd(t)}"`), n.message = i + ": " + n.message, n;
6675
+ throw t.length > 0 && (i += ` at "value${hd(t)}"`), n.message = i + ": " + n.message, n;
6676
6676
  }
6677
6677
  function _i(t, e, n, i) {
6678
6678
  if (re(e)) {
@@ -6857,7 +6857,7 @@ function xn(t, e, n) {
6857
6857
  function Ho(t, e) {
6858
6858
  return t.kind === I.VARIABLE && (e == null || e[t.name.value] === void 0);
6859
6859
  }
6860
- function pd(t, e, n) {
6860
+ function md(t, e, n) {
6861
6861
  var i;
6862
6862
  const r = {}, s = (i = e.arguments) !== null && i !== void 0 ? i : [], o = oi(s, (a) => a.name.value);
6863
6863
  for (const a of t.args) {
@@ -6878,7 +6878,7 @@ function pd(t, e, n) {
6878
6878
  let p = g.kind === I.NULL;
6879
6879
  if (g.kind === I.VARIABLE) {
6880
6880
  const w = g.name.value;
6881
- if (n == null || !gd(n, w)) {
6881
+ if (n == null || !yd(n, w)) {
6882
6882
  if (a.defaultValue !== void 0)
6883
6883
  r[u] = a.defaultValue;
6884
6884
  else if (re(c))
@@ -6917,12 +6917,12 @@ function ui(t, e, n) {
6917
6917
  (s) => s.name.value === t.name
6918
6918
  );
6919
6919
  if (r)
6920
- return pd(t, r, n);
6920
+ return md(t, r, n);
6921
6921
  }
6922
- function gd(t, e) {
6922
+ function yd(t, e) {
6923
6923
  return Object.prototype.hasOwnProperty.call(t, e);
6924
6924
  }
6925
- function md(t, e, n, i, r) {
6925
+ function bd(t, e, n, i, r) {
6926
6926
  const s = /* @__PURE__ */ new Map();
6927
6927
  return Es(
6928
6928
  t,
@@ -6940,7 +6940,7 @@ function Es(t, e, n, i, r, s, o) {
6940
6940
  case I.FIELD: {
6941
6941
  if (!rs(n, a))
6942
6942
  continue;
6943
- const u = yd(a), c = s.get(u);
6943
+ const u = wd(a), c = s.get(u);
6944
6944
  c !== void 0 ? c.push(a) : s.set(u, [a]);
6945
6945
  break;
6946
6946
  }
@@ -6997,10 +6997,10 @@ function Yo(t, e, n) {
6997
6997
  const r = it(t, i);
6998
6998
  return r === n ? !0 : nn(r) ? t.isSubType(r, n) : !1;
6999
6999
  }
7000
- function yd(t) {
7000
+ function wd(t) {
7001
7001
  return t.alias ? t.alias.value : t.name.value;
7002
7002
  }
7003
- function bd(t) {
7003
+ function Ed(t) {
7004
7004
  return {
7005
7005
  OperationDefinition(e) {
7006
7006
  if (e.operation === "subscription") {
@@ -7009,7 +7009,7 @@ function bd(t) {
7009
7009
  const r = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
7010
7010
  for (const c of o.definitions)
7011
7011
  c.kind === I.FRAGMENT_DEFINITION && (a[c.name.value] = c);
7012
- const u = md(
7012
+ const u = bd(
7013
7013
  n,
7014
7014
  a,
7015
7015
  s,
@@ -7049,7 +7049,7 @@ function $u(t, e) {
7049
7049
  }
7050
7050
  return n;
7051
7051
  }
7052
- function wd(t) {
7052
+ function vd(t) {
7053
7053
  return {
7054
7054
  Field: e,
7055
7055
  Directive: e
@@ -7068,7 +7068,7 @@ function wd(t) {
7068
7068
  );
7069
7069
  }
7070
7070
  }
7071
- function Ed(t) {
7071
+ function Td(t) {
7072
7072
  const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), i = n ? n.getDirectives() : zi;
7073
7073
  for (const a of i)
7074
7074
  e[a.name] = !a.isRepeatable;
@@ -7105,7 +7105,7 @@ function Ed(t) {
7105
7105
  }
7106
7106
  };
7107
7107
  }
7108
- function vd(t) {
7108
+ function Sd(t) {
7109
7109
  const e = /* @__PURE__ */ Object.create(null);
7110
7110
  return {
7111
7111
  OperationDefinition: () => !1,
@@ -7122,7 +7122,7 @@ function vd(t) {
7122
7122
  }
7123
7123
  };
7124
7124
  }
7125
- function Td(t) {
7125
+ function _d(t) {
7126
7126
  const e = [];
7127
7127
  let n = /* @__PURE__ */ Object.create(null);
7128
7128
  return {
@@ -7148,7 +7148,7 @@ function Td(t) {
7148
7148
  }
7149
7149
  };
7150
7150
  }
7151
- function Sd(t) {
7151
+ function Id(t) {
7152
7152
  const e = /* @__PURE__ */ Object.create(null);
7153
7153
  return {
7154
7154
  OperationDefinition(n) {
@@ -7168,7 +7168,7 @@ function Sd(t) {
7168
7168
  FragmentDefinition: () => !1
7169
7169
  };
7170
7170
  }
7171
- function _d(t) {
7171
+ function Od(t) {
7172
7172
  return {
7173
7173
  OperationDefinition(e) {
7174
7174
  var n;
@@ -7188,7 +7188,7 @@ function _d(t) {
7188
7188
  }
7189
7189
  };
7190
7190
  }
7191
- function Id(t) {
7191
+ function Nd(t) {
7192
7192
  let e = {};
7193
7193
  return {
7194
7194
  OperationDefinition: {
@@ -7221,7 +7221,7 @@ function Id(t) {
7221
7221
  )
7222
7222
  );
7223
7223
  }
7224
- i.isOneOf && Od(
7224
+ i.isOneOf && Ad(
7225
7225
  t,
7226
7226
  n,
7227
7227
  i,
@@ -7310,7 +7310,7 @@ function _n(t, e) {
7310
7310
  );
7311
7311
  }
7312
7312
  }
7313
- function Od(t, e, n, i, r) {
7313
+ function Ad(t, e, n, i, r) {
7314
7314
  var s;
7315
7315
  const o = Object.keys(i);
7316
7316
  if (o.length !== 1) {
@@ -7345,7 +7345,7 @@ function Od(t, e, n, i, r) {
7345
7345
  );
7346
7346
  }
7347
7347
  }
7348
- function Nd(t) {
7348
+ function xd(t) {
7349
7349
  return {
7350
7350
  VariableDefinition(e) {
7351
7351
  const n = it(t.getSchema(), e.type);
@@ -7363,7 +7363,7 @@ function Nd(t) {
7363
7363
  }
7364
7364
  };
7365
7365
  }
7366
- function Ad(t) {
7366
+ function Fd(t) {
7367
7367
  let e = /* @__PURE__ */ Object.create(null);
7368
7368
  return {
7369
7369
  OperationDefinition: {
@@ -7376,7 +7376,7 @@ function Ad(t) {
7376
7376
  const a = r.name.value, u = e[a];
7377
7377
  if (u && s) {
7378
7378
  const c = t.getSchema(), f = it(c, u.type);
7379
- if (f && !xd(
7379
+ if (f && !Rd(
7380
7380
  c,
7381
7381
  f,
7382
7382
  u.defaultValue,
@@ -7402,7 +7402,7 @@ function Ad(t) {
7402
7402
  }
7403
7403
  };
7404
7404
  }
7405
- function xd(t, e, n, i, r) {
7405
+ function Rd(t, e, n, i, r) {
7406
7406
  if (re(i) && !re(e)) {
7407
7407
  if (!(n != null && n.kind !== I.NULL) && !(r !== void 0))
7408
7408
  return !1;
@@ -7411,36 +7411,36 @@ function xd(t, e, n, i, r) {
7411
7411
  }
7412
7412
  return Jn(t, e, i);
7413
7413
  }
7414
- const Fd = Object.freeze([Qf]), ju = Object.freeze([
7415
- Rf,
7416
- Sd,
7414
+ const Ld = Object.freeze([Hf]), ju = Object.freeze([
7415
+ Cf,
7416
+ Id,
7417
+ Qf,
7418
+ Ed,
7417
7419
  qf,
7418
- bd,
7419
- Bf,
7420
- Df,
7421
- Nd,
7422
- cd,
7423
- Lf,
7424
- vd,
7425
- Vf,
7420
+ jf,
7421
+ xd,
7422
+ dd,
7423
+ kf,
7424
+ Sd,
7425
+ Gf,
7426
+ Kf,
7427
+ ad,
7426
7428
  Yf,
7427
- sd,
7428
- Wf,
7429
- _d,
7430
- Hf,
7429
+ Od,
7431
7430
  Jf,
7432
- Pf,
7433
- Ed,
7434
- $f,
7435
- wd,
7436
- Id,
7437
- ad,
7438
- Ad,
7439
7431
  Xf,
7432
+ Uf,
7440
7433
  Td,
7441
- ...Fd
7434
+ Pf,
7435
+ vd,
7436
+ Nd,
7437
+ ld,
7438
+ Fd,
7439
+ ed,
7440
+ _d,
7441
+ ...Ld
7442
7442
  ]);
7443
- class Rd {
7443
+ class Cd {
7444
7444
  constructor(e, n) {
7445
7445
  this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
7446
7446
  }
@@ -7498,7 +7498,7 @@ class Rd {
7498
7498
  return n;
7499
7499
  }
7500
7500
  }
7501
- class Ld extends Rd {
7501
+ class kd extends Cd {
7502
7502
  constructor(e, n, i, r) {
7503
7503
  super(n, r), this._schema = e, this._typeInfo = i, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
7504
7504
  }
@@ -7563,11 +7563,11 @@ class Ld extends Rd {
7563
7563
  return this._typeInfo.getEnumValue();
7564
7564
  }
7565
7565
  }
7566
- function Cd(t, e, n = ju, i, r = new Fu(t)) {
7566
+ function Dd(t, e, n = ju, i, r = new Fu(t)) {
7567
7567
  var s;
7568
7568
  const o = (s = i == null ? void 0 : i.maxErrors) !== null && s !== void 0 ? s : 100;
7569
7569
  e || ae(!1, "Must provide document."), xu(t);
7570
- const a = Object.freeze({}), u = [], c = new Ld(
7570
+ const a = Object.freeze({}), u = [], c = new kd(
7571
7571
  t,
7572
7572
  e,
7573
7573
  r,
@@ -7580,7 +7580,7 @@ function Cd(t, e, n = ju, i, r = new Fu(t)) {
7580
7580
  ), a;
7581
7581
  u.push(g);
7582
7582
  }
7583
- ), f = tf(n.map((g) => g(c)));
7583
+ ), f = rf(n.map((g) => g(c)));
7584
7584
  try {
7585
7585
  Gs(e, Ru(r, f));
7586
7586
  } catch (g) {
@@ -7589,18 +7589,18 @@ function Cd(t, e, n = ju, i, r = new Fu(t)) {
7589
7589
  }
7590
7590
  return u;
7591
7591
  }
7592
- function kd(t) {
7593
- return t instanceof Error ? t : new Dd(t);
7592
+ function $d(t) {
7593
+ return t instanceof Error ? t : new jd(t);
7594
7594
  }
7595
- let Dd = class extends Error {
7595
+ let jd = class extends Error {
7596
7596
  constructor(e) {
7597
7597
  super("Unexpected error value: " + G(e)), this.name = "NonErrorThrown", this.thrownValue = e;
7598
7598
  }
7599
7599
  };
7600
7600
  function tt(t, e, n) {
7601
7601
  var i;
7602
- const r = kd(t);
7603
- return $d(r) ? r : new j(r.message, {
7602
+ const r = $d(t);
7603
+ return Pd(r) ? r : new j(r.message, {
7604
7604
  nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
7605
7605
  source: r.source,
7606
7606
  positions: r.positions,
@@ -7608,7 +7608,7 @@ function tt(t, e, n) {
7608
7608
  originalError: r
7609
7609
  });
7610
7610
  }
7611
- function $d(t) {
7611
+ function Pd(t) {
7612
7612
  return Array.isArray(t.path);
7613
7613
  }
7614
7614
  const Jo = function(t, e, n, i) {
@@ -7619,7 +7619,7 @@ const Jo = function(t, e, n, i) {
7619
7619
  const a = r[o];
7620
7620
  if (a.isTypeOf) {
7621
7621
  const u = a.isTypeOf(t, e, n);
7622
- if (bc(u))
7622
+ if (Ec(u))
7623
7623
  s[o] = u;
7624
7624
  else if (u)
7625
7625
  return a.name;
@@ -7651,7 +7651,7 @@ function eo(t, e) {
7651
7651
  }
7652
7652
  return n;
7653
7653
  }
7654
- function jd(t) {
7654
+ function Md(t) {
7655
7655
  const e = t.toConfig(), n = $r(
7656
7656
  ss(e.types),
7657
7657
  (p) => p.name,
@@ -7769,11 +7769,11 @@ class ie extends Qi {
7769
7769
  super(e, n), this.name = "PothosSchemaError";
7770
7770
  }
7771
7771
  }
7772
- const Pd = Symbol.for("Pothos.contextCache");
7773
- function Md(t) {
7772
+ const Ud = Symbol.for("Pothos.contextCache");
7773
+ function Vd(t) {
7774
7774
  const e = /* @__PURE__ */ new WeakMap();
7775
7775
  return (n, ...i) => {
7776
- const r = n[Pd] || n;
7776
+ const r = n[Ud] || n;
7777
7777
  if (e.has(r))
7778
7778
  return e.get(r);
7779
7779
  const s = t(n, ...i);
@@ -7789,7 +7789,7 @@ function pi(t, e, n) {
7789
7789
  }) : t[e] = n, t;
7790
7790
  }
7791
7791
  const gi = /* @__PURE__ */ new WeakMap();
7792
- class Ud {
7792
+ class Bd {
7793
7793
  /**
7794
7794
  * Called for each type defined with the SchemaBuilder
7795
7795
  * @param {PothosTypeConfig} typeConfig - Config object describing the added type
@@ -7895,10 +7895,10 @@ class Ud {
7895
7895
  return this.requestDataMap(e);
7896
7896
  }
7897
7897
  constructor(e, n) {
7898
- pi(this, "name", void 0), pi(this, "builder", void 0), pi(this, "buildCache", void 0), pi(this, "options", void 0), pi(this, "requestDataMap", Md((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
7898
+ pi(this, "name", void 0), pi(this, "builder", void 0), pi(this, "buildCache", void 0), pi(this, "options", void 0), pi(this, "requestDataMap", Vd((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
7899
7899
  }
7900
7900
  }
7901
- function Vd(t, e, n) {
7901
+ function Gd(t, e, n) {
7902
7902
  return e in t ? Object.defineProperty(t, e, {
7903
7903
  value: n,
7904
7904
  enumerable: !0,
@@ -7906,7 +7906,7 @@ function Vd(t, e, n) {
7906
7906
  writable: !0
7907
7907
  }) : t[e] = n, t;
7908
7908
  }
7909
- class Bd extends Ud {
7909
+ class qd extends Bd {
7910
7910
  onTypeConfig(e) {
7911
7911
  return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
7912
7912
  }
@@ -7939,10 +7939,10 @@ class Bd extends Ud {
7939
7939
  return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
7940
7940
  }
7941
7941
  constructor(e, n) {
7942
- super(e, "PothosMergedPlugin"), Vd(this, "plugins", void 0), this.plugins = n;
7942
+ super(e, "PothosMergedPlugin"), Gd(this, "plugins", void 0), this.plugins = n;
7943
7943
  }
7944
7944
  }
7945
- const Pn = Symbol.for("Pothos.outputShapeKey"), di = Symbol.for("Pothos.parentShapeKey"), Wi = Symbol.for("Pothos.inputShapeKey"), Gd = Symbol.for("Pothos.inputFieldShapeKey"), qd = Symbol.for("Pothos.outputFieldShapeKey"), Fr = Symbol.for("Pothos.typeBrandKey");
7945
+ const Pn = Symbol.for("Pothos.outputShapeKey"), di = Symbol.for("Pothos.parentShapeKey"), Wi = Symbol.for("Pothos.inputShapeKey"), zd = Symbol.for("Pothos.inputFieldShapeKey"), Qd = Symbol.for("Pothos.outputFieldShapeKey"), Fr = Symbol.for("Pothos.typeBrandKey");
7946
7946
  function Ko(t, e, n) {
7947
7947
  return e in t ? Object.defineProperty(t, e, {
7948
7948
  value: n,
@@ -7967,13 +7967,13 @@ function Un(t, e, n) {
7967
7967
  writable: !0
7968
7968
  }) : t[e] = n, t;
7969
7969
  }
7970
- let zd = Pn, Qd = di, Wd = Wi;
7970
+ let Wd = Pn, Hd = di, Yd = Wi;
7971
7971
  class Mu extends Ne {
7972
7972
  constructor(e) {
7973
- super("Scalar", e), Un(this, "kind", "Scalar"), Un(this, "$inferType", void 0), Un(this, "$inferInput", void 0), Un(this, zd, void 0), Un(this, Qd, void 0), Un(this, Wd, void 0);
7973
+ super("Scalar", e), Un(this, "kind", "Scalar"), Un(this, "$inferType", void 0), Un(this, "$inferInput", void 0), Un(this, Wd, void 0), Un(this, Hd, void 0), Un(this, Yd, void 0);
7974
7974
  }
7975
7975
  }
7976
- function Hd(t, e, n) {
7976
+ function Jd(t, e, n) {
7977
7977
  return e in t ? Object.defineProperty(t, e, {
7978
7978
  value: n,
7979
7979
  enumerable: !0,
@@ -7983,7 +7983,7 @@ function Hd(t, e, n) {
7983
7983
  }
7984
7984
  class Uu extends Mu {
7985
7985
  constructor(e) {
7986
- super(e.name), Hd(this, "type", void 0), this.type = e;
7986
+ super(e.name), Jd(this, "type", void 0), this.type = e;
7987
7987
  }
7988
7988
  }
7989
7989
  function mi(t, e, n) {
@@ -7994,10 +7994,10 @@ function mi(t, e, n) {
7994
7994
  writable: !0
7995
7995
  }) : t[e] = n, t;
7996
7996
  }
7997
- let Yd = Wi;
7997
+ let Kd = Wi;
7998
7998
  class Ur extends Ne {
7999
7999
  constructor(e, n) {
8000
- super("InputList", `InputList<${String(e)}>`), mi(this, "kind", "InputList"), mi(this, Yd, void 0), mi(this, "$inferInput", void 0), mi(this, "listType", void 0), mi(this, "required", void 0), this.listType = e, this.required = n;
8000
+ super("InputList", `InputList<${String(e)}>`), mi(this, "kind", "InputList"), mi(this, Kd, void 0), mi(this, "$inferInput", void 0), mi(this, "listType", void 0), mi(this, "required", void 0), this.listType = e, this.required = n;
8001
8001
  }
8002
8002
  }
8003
8003
  function Vn(t, e, n) {
@@ -8008,13 +8008,13 @@ function Vn(t, e, n) {
8008
8008
  writable: !0
8009
8009
  }) : t[e] = n, t;
8010
8010
  }
8011
- let Jd = Pn, Kd = di;
8011
+ let Xd = Pn, Zd = di;
8012
8012
  class Vr extends Ne {
8013
8013
  constructor(e, n) {
8014
- super("List", `List<${String(e)}>`), Vn(this, "kind", "List"), Vn(this, "$inferType", void 0), Vn(this, Jd, void 0), Vn(this, Kd, void 0), Vn(this, "listType", void 0), Vn(this, "nullable", void 0), this.listType = e, this.nullable = n;
8014
+ super("List", `List<${String(e)}>`), Vn(this, "kind", "List"), Vn(this, "$inferType", void 0), Vn(this, Xd, void 0), Vn(this, Zd, void 0), Vn(this, "listType", void 0), Vn(this, "nullable", void 0), this.listType = e, this.nullable = n;
8015
8015
  }
8016
8016
  }
8017
- function Xd(t) {
8017
+ function eh(t) {
8018
8018
  const e = {};
8019
8019
  return Array.isArray(t) ? t.forEach((n) => {
8020
8020
  e[String(n)] = {
@@ -8029,7 +8029,7 @@ function Xd(t) {
8029
8029
  });
8030
8030
  }), e;
8031
8031
  }
8032
- function Zd(t, e) {
8032
+ function th(t, e) {
8033
8033
  const n = {};
8034
8034
  return Object.keys(t).filter((i) => typeof t[t[i]] != "number").forEach((i) => {
8035
8035
  n[i] = {
@@ -8085,10 +8085,10 @@ function Ts(t, e, n) {
8085
8085
  };
8086
8086
  throw new ie(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
8087
8087
  }
8088
- function eh(t) {
8088
+ function nh(t) {
8089
8089
  throw new TypeError(`Unexpected value: ${t}`);
8090
8090
  }
8091
- function th(t) {
8091
+ function ih(t) {
8092
8092
  return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
8093
8093
  }
8094
8094
  function Zt(t) {
@@ -8123,7 +8123,7 @@ builder.objectType('MyObject', {
8123
8123
  `);
8124
8124
  }
8125
8125
  }
8126
- function nh(t) {
8126
+ function rh(t) {
8127
8127
  return typeof t == "object" && t !== null && Fr in t ? t[Fr] : null;
8128
8128
  }
8129
8129
  function Ss(t) {
@@ -8137,7 +8137,7 @@ function ht(t, e, n) {
8137
8137
  writable: !0
8138
8138
  }) : t[e] = n, t;
8139
8139
  }
8140
- class ih {
8140
+ class sh {
8141
8141
  getTypeConfig(e, n) {
8142
8142
  const i = this.configStore.getTypeConfig(e, n);
8143
8143
  return this.typeConfigs.has(i.name) || this.typeConfigs.set(i.name, this.plugin.onTypeConfig(i)), this.typeConfigs.get(i.name);
@@ -8204,7 +8204,7 @@ class ih {
8204
8204
  this.addType(i, this.buildObject(n));
8205
8205
  break;
8206
8206
  default:
8207
- eh(n);
8207
+ nh(n);
8208
8208
  }
8209
8209
  }
8210
8210
  addType(e, n) {
@@ -8379,7 +8379,7 @@ class ih {
8379
8379
  }
8380
8380
  buildInterface(e) {
8381
8381
  const n = (r, s, o) => {
8382
- const a = nh(r);
8382
+ const a = rh(r);
8383
8383
  if (a)
8384
8384
  return typeof a == "string" ? a : this.getTypeConfig(a).name;
8385
8385
  var u;
@@ -8416,7 +8416,7 @@ class ih {
8416
8416
  }
8417
8417
  return c;
8418
8418
  };
8419
- return th(a) ? a.then(u) : u(a);
8419
+ return ih(a) ? a.then(u) : u(a);
8420
8420
  };
8421
8421
  return new zn({
8422
8422
  ...e,
@@ -8476,7 +8476,7 @@ class ih {
8476
8476
  if (!o)
8477
8477
  throw new Qi(`No plugin named ${s} was registered`);
8478
8478
  return i[s] = new o(this, s), i[s];
8479
- }), this.pluginMap = i, this.plugin = new Bd(this, this.pluginList);
8479
+ }), this.pluginMap = i, this.plugin = new qd(this, this.pluginList);
8480
8480
  }
8481
8481
  }
8482
8482
  function os(t, e, n) {
@@ -8487,10 +8487,10 @@ function os(t, e, n) {
8487
8487
  writable: !0
8488
8488
  }) : t[e] = n, t;
8489
8489
  }
8490
- let rh = Wi;
8491
- class sh extends Ne {
8490
+ let oh = Wi;
8491
+ class ah extends Ne {
8492
8492
  constructor(e, n) {
8493
- super(e, n), os(this, "kind", void 0), os(this, "$inferInput", void 0), os(this, rh, void 0), this.kind = e;
8493
+ super(e, n), os(this, "kind", void 0), os(this, "$inferInput", void 0), os(this, oh, void 0), this.kind = e;
8494
8494
  }
8495
8495
  }
8496
8496
  function er(t, e, n) {
@@ -8501,10 +8501,10 @@ function er(t, e, n) {
8501
8501
  writable: !0
8502
8502
  }) : t[e] = n, t;
8503
8503
  }
8504
- let oh = Pn, ah = di;
8505
- class uh extends Ne {
8504
+ let uh = Pn, lh = di;
8505
+ class ch extends Ne {
8506
8506
  constructor(e, n) {
8507
- super(e, n), er(this, "kind", void 0), er(this, "$inferType", void 0), er(this, oh, void 0), er(this, ah, void 0), this.kind = e;
8507
+ super(e, n), er(this, "kind", void 0), er(this, "$inferType", void 0), er(this, uh, void 0), er(this, lh, void 0), this.kind = e;
8508
8508
  }
8509
8509
  }
8510
8510
  function Et(t, e, n) {
@@ -8515,7 +8515,7 @@ function Et(t, e, n) {
8515
8515
  writable: !0
8516
8516
  }) : t[e] = n, t;
8517
8517
  }
8518
- class lh {
8518
+ class fh {
8519
8519
  hasConfig(e) {
8520
8520
  return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
8521
8521
  }
@@ -8611,7 +8611,7 @@ class lh {
8611
8611
  const n = this.typeConfigs.get(e);
8612
8612
  if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
8613
8613
  throw new ie(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
8614
- const i = new sh(n.graphqlKind, n.name);
8614
+ const i = new ah(n.graphqlKind, n.name);
8615
8615
  return this.refsToName.set(i, n.name), i;
8616
8616
  }
8617
8617
  }
@@ -8632,7 +8632,7 @@ class lh {
8632
8632
  const n = this.typeConfigs.get(e);
8633
8633
  if (n.graphqlKind === "InputObject")
8634
8634
  throw new ie(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
8635
- const i = new uh(n.graphqlKind, n.name);
8635
+ const i = new ch(n.graphqlKind, n.name);
8636
8636
  return this.refsToName.set(i, n.name), i;
8637
8637
  }
8638
8638
  }
@@ -8732,8 +8732,8 @@ function Bn(t, e, n) {
8732
8732
  writable: !0
8733
8733
  }) : t[e] = n, t;
8734
8734
  }
8735
- let ch = Gd;
8736
- class fh {
8735
+ let dh = zd;
8736
+ class hh {
8737
8737
  toString() {
8738
8738
  var e;
8739
8739
  if (this.kind !== "Arg")
@@ -8745,7 +8745,7 @@ class fh {
8745
8745
  return `${this.parentTypename}.${i}(${s})`;
8746
8746
  }
8747
8747
  constructor(e, n) {
8748
- Bn(this, "kind", void 0), Bn(this, "parentTypename", void 0), Bn(this, "fieldName", void 0), Bn(this, "argFor", void 0), Bn(this, "$inferInput", void 0), Bn(this, ch, void 0), this.kind = e, this.parentTypename = n;
8748
+ Bn(this, "kind", void 0), Bn(this, "parentTypename", void 0), Bn(this, "fieldName", void 0), Bn(this, "argFor", void 0), Bn(this, "$inferInput", void 0), Bn(this, dh, void 0), this.kind = e, this.parentTypename = n;
8749
8749
  }
8750
8750
  }
8751
8751
  function Ze(t, e, n) {
@@ -8771,7 +8771,7 @@ class _s {
8771
8771
  * @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
8772
8772
  */
8773
8773
  field(e) {
8774
- const n = new fh(this.kind, this.typename);
8774
+ const n = new hh(this.kind, this.typename);
8775
8775
  return this.builder.configStore.addFieldRef(n, e.type, {}, (i, r, s) => {
8776
8776
  var o;
8777
8777
  return {
@@ -8823,13 +8823,13 @@ function yi(t, e, n) {
8823
8823
  writable: !0
8824
8824
  }) : t[e] = n, t;
8825
8825
  }
8826
- let dh = qd;
8827
- class hh {
8826
+ let ph = Qd;
8827
+ class gh {
8828
8828
  toString() {
8829
8829
  return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
8830
8830
  }
8831
8831
  constructor(e, n) {
8832
- yi(this, "kind", void 0), yi(this, "parentTypename", void 0), yi(this, "fieldName", void 0), yi(this, "$inferType", void 0), yi(this, dh, void 0), this.kind = e, this.parentTypename = n;
8832
+ yi(this, "kind", void 0), yi(this, "parentTypename", void 0), yi(this, "fieldName", void 0), yi(this, "$inferType", void 0), yi(this, ph, void 0), this.kind = e, this.parentTypename = n;
8833
8833
  }
8834
8834
  }
8835
8835
  function tr(t, e, n) {
@@ -8840,9 +8840,9 @@ function tr(t, e, n) {
8840
8840
  writable: !0
8841
8841
  }) : t[e] = n, t;
8842
8842
  }
8843
- class ph {
8843
+ class mh {
8844
8844
  createField(e) {
8845
- const n = new hh(this.kind, this.typename);
8845
+ const n = new gh(this.kind, this.typename);
8846
8846
  var i;
8847
8847
  return this.builder.configStore.addFieldRef(n, e.type, (i = e.args) !== null && i !== void 0 ? i : {}, (r, s, o) => {
8848
8848
  var a;
@@ -8892,7 +8892,7 @@ class ph {
8892
8892
  tr(this, "typename", void 0), tr(this, "builder", void 0), tr(this, "kind", void 0), tr(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = i, this.graphqlKind = r;
8893
8893
  }
8894
8894
  }
8895
- function gh(t, e, n) {
8895
+ function yh(t, e, n) {
8896
8896
  return e in t ? Object.defineProperty(t, e, {
8897
8897
  value: n,
8898
8898
  enumerable: !0,
@@ -8900,7 +8900,7 @@ function gh(t, e, n) {
8900
8900
  writable: !0
8901
8901
  }) : t[e] = n, t;
8902
8902
  }
8903
- class Br extends ph {
8903
+ class Br extends mh {
8904
8904
  /**
8905
8905
  * Create a Boolean field
8906
8906
  * @param {PothosSchemaTypes.FieldOptions} options - Options for this field
@@ -9043,7 +9043,7 @@ class Br extends ph {
9043
9043
  return new Vr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
9044
9044
  }
9045
9045
  constructor(...e) {
9046
- super(...e), gh(this, "arg", new _s(this.builder, "Arg", this.typename).argBuilder());
9046
+ super(...e), yh(this, "arg", new _s(this.builder, "Arg", this.typename).argBuilder());
9047
9047
  }
9048
9048
  }
9049
9049
  class Vu extends Br {
@@ -9220,10 +9220,10 @@ function bi(t, e, n) {
9220
9220
  writable: !0
9221
9221
  }) : t[e] = n, t;
9222
9222
  }
9223
- let mh = Pn, yh = Wi;
9224
- class bh extends Ne {
9223
+ let bh = Pn, wh = Wi;
9224
+ class Eh extends Ne {
9225
9225
  constructor(e) {
9226
- super("Enum", e), bi(this, "kind", "Enum"), bi(this, "$inferType", void 0), bi(this, "$inferInput", void 0), bi(this, mh, void 0), bi(this, yh, void 0);
9226
+ super("Enum", e), bi(this, "kind", "Enum"), bi(this, "$inferType", void 0), bi(this, "$inferInput", void 0), bi(this, bh, void 0), bi(this, wh, void 0);
9227
9227
  }
9228
9228
  }
9229
9229
  function pr(t, e, n) {
@@ -9234,13 +9234,13 @@ function pr(t, e, n) {
9234
9234
  writable: !0
9235
9235
  }) : t[e] = n, t;
9236
9236
  }
9237
- let wh = Wi;
9237
+ let vh = Wi;
9238
9238
  class Bu extends Ne {
9239
9239
  constructor(e) {
9240
- super("InputObject", e), pr(this, "kind", "InputObject"), pr(this, "$inferInput", void 0), pr(this, wh, void 0);
9240
+ super("InputObject", e), pr(this, "kind", "InputObject"), pr(this, "$inferInput", void 0), pr(this, vh, void 0);
9241
9241
  }
9242
9242
  }
9243
- class Eh extends Bu {
9243
+ class Th extends Bu {
9244
9244
  implement(e) {
9245
9245
  return this.builder.inputType(this, e), this;
9246
9246
  }
@@ -9256,13 +9256,13 @@ function Ii(t, e, n) {
9256
9256
  writable: !0
9257
9257
  }) : t[e] = n, t;
9258
9258
  }
9259
- let vh = Pn, Th = di;
9259
+ let Sh = Pn, _h = di;
9260
9260
  class Gu extends Ne {
9261
9261
  constructor(e) {
9262
- super("Interface", e), Ii(this, "kind", "Interface"), Ii(this, "$inferType", void 0), Ii(this, vh, void 0), Ii(this, Th, void 0);
9262
+ super("Interface", e), Ii(this, "kind", "Interface"), Ii(this, "$inferType", void 0), Ii(this, Sh, void 0), Ii(this, _h, void 0);
9263
9263
  }
9264
9264
  }
9265
- class Sh extends Gu {
9265
+ class Ih extends Gu {
9266
9266
  implement(e) {
9267
9267
  return this.builder.interfaceType(this, e);
9268
9268
  }
@@ -9278,13 +9278,13 @@ function Oi(t, e, n) {
9278
9278
  writable: !0
9279
9279
  }) : t[e] = n, t;
9280
9280
  }
9281
- let _h = Pn, Ih = di;
9281
+ let Oh = Pn, Nh = di;
9282
9282
  class Is extends Ne {
9283
9283
  constructor(e) {
9284
- super("Object", e), Oi(this, "kind", "Object"), Oi(this, "$inferType", void 0), Oi(this, _h, void 0), Oi(this, Ih, void 0);
9284
+ super("Object", e), Oi(this, "kind", "Object"), Oi(this, "$inferType", void 0), Oi(this, Oh, void 0), Oi(this, Nh, void 0);
9285
9285
  }
9286
9286
  }
9287
- class Oh extends Is {
9287
+ class Ah extends Is {
9288
9288
  implement(e) {
9289
9289
  return this.builder.objectType(this, e);
9290
9290
  }
@@ -9300,10 +9300,10 @@ function ar(t, e, n) {
9300
9300
  writable: !0
9301
9301
  }) : t[e] = n, t;
9302
9302
  }
9303
- let Nh = Pn, Ah = di;
9304
- class xh extends Ne {
9303
+ let xh = Pn, Fh = di;
9304
+ class Rh extends Ne {
9305
9305
  constructor(e) {
9306
- super("Union", e), ar(this, "kind", "Union"), ar(this, "$inferType", void 0), ar(this, Nh, void 0), ar(this, Ah, void 0);
9306
+ super("Union", e), ar(this, "kind", "Union"), ar(this, "$inferType", void 0), ar(this, xh, void 0), ar(this, Fh, void 0);
9307
9307
  }
9308
9308
  }
9309
9309
  function Qn(t, e, n) {
@@ -9441,7 +9441,7 @@ let to = class {
9441
9441
  });
9442
9442
  }
9443
9443
  unionType(e, n) {
9444
- const i = new xh(e);
9444
+ const i = new Rh(e);
9445
9445
  Array.isArray(n.types) && n.types.forEach((s) => {
9446
9446
  Zt(s);
9447
9447
  });
@@ -9459,11 +9459,11 @@ let to = class {
9459
9459
  }
9460
9460
  enumType(e, n) {
9461
9461
  Zt(e);
9462
- const i = typeof e == "string" ? e : n.name, r = new bh(i), s = typeof e == "object" ? Zd(
9462
+ const i = typeof e == "string" ? e : n.name, r = new Eh(i), s = typeof e == "object" ? th(
9463
9463
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
9464
9464
  e,
9465
9465
  n == null ? void 0 : n.values
9466
- ) : Xd(n.values), o = {
9466
+ ) : eh(n.values), o = {
9467
9467
  kind: "Enum",
9468
9468
  graphqlKind: "Enum",
9469
9469
  name: i,
@@ -9513,13 +9513,13 @@ let to = class {
9513
9513
  return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new _s(this, "InputObject", i))), r;
9514
9514
  }
9515
9515
  inputRef(e) {
9516
- return new Eh(this, e);
9516
+ return new Th(this, e);
9517
9517
  }
9518
9518
  objectRef(e) {
9519
- return new Oh(this, e);
9519
+ return new Ah(this, e);
9520
9520
  }
9521
9521
  interfaceRef(e) {
9522
- return new Sh(this, e);
9522
+ return new Ih(this, e);
9523
9523
  }
9524
9524
  toSchema(...e) {
9525
9525
  const [n = {}] = e, { directives: i, extensions: r } = n;
@@ -9532,7 +9532,7 @@ let to = class {
9532
9532
  ].forEach((f) => {
9533
9533
  this.configStore.hasConfig(f.name) || this.addScalarType(f.name, f);
9534
9534
  });
9535
- const o = new ih(this, n);
9535
+ const o = new sh(this, n);
9536
9536
  o.plugin.beforeBuild(), o.buildAll();
9537
9537
  const a = [
9538
9538
  ...o.types.values()
@@ -9544,10 +9544,10 @@ let to = class {
9544
9544
  directives: i,
9545
9545
  types: a
9546
9546
  }), c = o.plugin.afterBuild(u);
9547
- return n.sortSchema === !1 ? c : jd(c);
9547
+ return n.sortSchema === !1 ? c : Md(c);
9548
9548
  }
9549
9549
  constructor(e) {
9550
- Qn(this, "configStore", void 0), Qn(this, "options", void 0), Qn(this, "defaultFieldNullability", void 0), Qn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new lh();
9550
+ Qn(this, "configStore", void 0), Qn(this, "options", void 0), Qn(this, "defaultFieldNullability", void 0), Qn(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new fh();
9551
9551
  var n;
9552
9552
  this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
9553
9553
  var i;
@@ -9556,7 +9556,7 @@ let to = class {
9556
9556
  };
9557
9557
  Qn(to, "plugins", {});
9558
9558
  Qn(to, "allowPluginReRegistration", !1);
9559
- const Fh = to;
9559
+ const Lh = to;
9560
9560
  function Zo(t) {
9561
9561
  return t;
9562
9562
  }
@@ -9593,7 +9593,7 @@ function no(t, e, n) {
9593
9593
  throw new TypeError(t + " cannot represent value: " + be(e));
9594
9594
  }
9595
9595
  }
9596
- var Rh = new Vt({
9596
+ var Ch = new Vt({
9597
9597
  name: "JSON",
9598
9598
  description: "The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
9599
9599
  specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
@@ -9602,7 +9602,7 @@ var Rh = new Vt({
9602
9602
  parseLiteral: function(e, n) {
9603
9603
  return no("JSON", e, n);
9604
9604
  }
9605
- }), Lh = new Vt({
9605
+ }), kh = new Vt({
9606
9606
  name: "JSONObject",
9607
9607
  description: "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
9608
9608
  specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
@@ -9625,7 +9625,7 @@ function Gr(t, e) {
9625
9625
  case "function":
9626
9626
  return t.name ? `[function ${t.name}]` : "[function]";
9627
9627
  case "object":
9628
- return Ch(t, e);
9628
+ return Dh(t, e);
9629
9629
  default:
9630
9630
  return String(t);
9631
9631
  }
@@ -9634,7 +9634,7 @@ function ta(t) {
9634
9634
  return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
9635
9635
  ${t.stack}`;
9636
9636
  }
9637
- function Ch(t, e) {
9637
+ function Dh(t, e) {
9638
9638
  if (t === null)
9639
9639
  return "null";
9640
9640
  if (t instanceof Error)
@@ -9643,20 +9643,20 @@ function Ch(t, e) {
9643
9643
  if (e.includes(t))
9644
9644
  return "[Circular]";
9645
9645
  const n = [...e, t];
9646
- if (kh(t)) {
9646
+ if ($h(t)) {
9647
9647
  const i = t.toJSON();
9648
9648
  if (i !== t)
9649
9649
  return typeof i == "string" ? i : Gr(i, n);
9650
9650
  } else if (Array.isArray(t))
9651
9651
  return na(t, n);
9652
- return Dh(t, n);
9652
+ return jh(t, n);
9653
9653
  }
9654
- function kh(t) {
9654
+ function $h(t) {
9655
9655
  return typeof t.toJSON == "function";
9656
9656
  }
9657
- function Dh(t, e) {
9657
+ function jh(t, e) {
9658
9658
  const n = Object.entries(t);
9659
- return n.length === 0 ? "{}" : e.length > zu ? "[" + $h(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + Gr(s, e)).join(", ") + " }";
9659
+ return n.length === 0 ? "{}" : e.length > zu ? "[" + Ph(t) + "]" : "{ " + n.map(([r, s]) => r + ": " + Gr(s, e)).join(", ") + " }";
9660
9660
  }
9661
9661
  function na(t, e) {
9662
9662
  if (t.length === 0)
@@ -9668,7 +9668,7 @@ function na(t, e) {
9668
9668
  i.push(Gr(t[r], e));
9669
9669
  return "[" + i.join(", ") + "]";
9670
9670
  }
9671
- function $h(t) {
9671
+ function Ph(t) {
9672
9672
  const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
9673
9673
  if (e === "Object" && typeof t.constructor == "function") {
9674
9674
  const n = t.constructor.name;
@@ -9677,7 +9677,7 @@ function $h(t) {
9677
9677
  }
9678
9678
  return e;
9679
9679
  }
9680
- const jh = [
9680
+ const Mh = [
9681
9681
  "message",
9682
9682
  "locations",
9683
9683
  "path",
@@ -9689,13 +9689,13 @@ const jh = [
9689
9689
  "stack",
9690
9690
  "extensions"
9691
9691
  ];
9692
- function Ph(t) {
9693
- return t != null && typeof t == "object" && Object.keys(t).every((e) => jh.includes(e));
9692
+ function Uh(t) {
9693
+ return t != null && typeof t == "object" && Object.keys(t).every((e) => Mh.includes(e));
9694
9694
  }
9695
9695
  function X(t, e) {
9696
- return e != null && e.originalError && !(e.originalError instanceof Error) && Ph(e.originalError) && (e.originalError = X(e.originalError.message, e.originalError)), Ka.major >= 17 ? new j(t, e) : new j(t, e == null ? void 0 : e.nodes, e == null ? void 0 : e.source, e == null ? void 0 : e.positions, e == null ? void 0 : e.path, e == null ? void 0 : e.originalError, e == null ? void 0 : e.extensions);
9696
+ return e != null && e.originalError && !(e.originalError instanceof Error) && Uh(e.originalError) && (e.originalError = X(e.originalError.message, e.originalError)), Ka.major >= 17 ? new j(t, e) : new j(t, e == null ? void 0 : e.nodes, e == null ? void 0 : e.source, e == null ? void 0 : e.positions, e == null ? void 0 : e.path, e == null ? void 0 : e.originalError, e == null ? void 0 : e.extensions);
9697
9697
  }
9698
- function Mh(t) {
9698
+ function Vh(t) {
9699
9699
  return t != null && typeof t == "object" && Symbol.iterator in t;
9700
9700
  }
9701
9701
  function Qu(t) {
@@ -9704,7 +9704,7 @@ function Qu(t) {
9704
9704
  function Ae(t) {
9705
9705
  return (t == null ? void 0 : t.then) != null;
9706
9706
  }
9707
- function Uh(t, e, n) {
9707
+ function Bh(t, e, n) {
9708
9708
  let i = n;
9709
9709
  for (const r of t)
9710
9710
  i = Ae(i) ? i.then((s) => e(s, r)) : e(i, r);
@@ -9768,7 +9768,7 @@ function Yu(t) {
9768
9768
  return r;
9769
9769
  };
9770
9770
  }
9771
- function Vh(t) {
9771
+ function Gh(t) {
9772
9772
  const e = /* @__PURE__ */ new WeakMap();
9773
9773
  return function(i, r, s) {
9774
9774
  let o = e.get(i);
@@ -9793,7 +9793,7 @@ function Vh(t) {
9793
9793
  return u;
9794
9794
  };
9795
9795
  }
9796
- function Bh(t) {
9796
+ function qh(t) {
9797
9797
  const e = /* @__PURE__ */ new WeakMap();
9798
9798
  return function(i, r, s, o, a) {
9799
9799
  let u = e.get(i);
@@ -9840,15 +9840,15 @@ function Bh(t) {
9840
9840
  return p;
9841
9841
  };
9842
9842
  }
9843
- function Gh(t, e, n) {
9844
- const r = qh(t).get(e);
9843
+ function zh(t, e, n) {
9844
+ const r = Qh(t).get(e);
9845
9845
  if (r == null)
9846
9846
  throw X(`Schema is not configured to execute ${e} operation.`, {
9847
9847
  nodes: n
9848
9848
  });
9849
9849
  return r;
9850
9850
  }
9851
- const qh = Yu(function(e) {
9851
+ const Qh = Yu(function(e) {
9852
9852
  const n = /* @__PURE__ */ new Map(), i = e.getQueryType();
9853
9853
  i && n.set("query", i);
9854
9854
  const r = e.getMutationType();
@@ -9901,7 +9901,7 @@ class Rr extends Map {
9901
9901
  i === void 0 ? this.set(e, [n]) : i.push(n);
9902
9902
  }
9903
9903
  }
9904
- const zh = new rn({
9904
+ const Wh = new rn({
9905
9905
  name: "defer",
9906
9906
  description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
9907
9907
  locations: [K.FRAGMENT_SPREAD, K.INLINE_FRAGMENT],
@@ -9916,7 +9916,7 @@ const zh = new rn({
9916
9916
  description: "Unique name"
9917
9917
  }
9918
9918
  }
9919
- }), Qh = new rn({
9919
+ }), Hh = new rn({
9920
9920
  name: "stream",
9921
9921
  description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
9922
9922
  locations: [K.FIELD],
@@ -9943,7 +9943,7 @@ function Wn(t, e, n, i, r, s, o, a) {
9943
9943
  case I.FIELD: {
9944
9944
  if (!as(n, u))
9945
9945
  continue;
9946
- s.add(Wh(u), u);
9946
+ s.add(Yh(u), u);
9947
9947
  break;
9948
9948
  }
9949
9949
  case I.INLINE_FRAGMENT: {
@@ -10000,17 +10000,17 @@ function sa(t, e, n) {
10000
10000
  const r = it(t, i);
10001
10001
  return r === n ? !0 : nn(r) ? t.getPossibleTypes(r).includes(n) : !1;
10002
10002
  }
10003
- function Wh(t) {
10003
+ function Yh(t) {
10004
10004
  return t.alias ? t.alias.value : t.name.value;
10005
10005
  }
10006
10006
  function oa(t, e) {
10007
- const n = ui(zh, e, t);
10007
+ const n = ui(Wh, e, t);
10008
10008
  if (n && n.if !== !1)
10009
10009
  return {
10010
10010
  label: typeof n.label == "string" ? n.label : void 0
10011
10011
  };
10012
10012
  }
10013
- const Hh = Bh(function(e, n, i, r, s) {
10013
+ const Jh = qh(function(e, n, i, r, s) {
10014
10014
  const o = new Rr(), a = /* @__PURE__ */ new Set(), u = [], c = {
10015
10015
  fields: o,
10016
10016
  patches: u
@@ -10032,13 +10032,13 @@ function Ve(t) {
10032
10032
  e.push(n.key), n = n.prev;
10033
10033
  return e.reverse();
10034
10034
  }
10035
- function Yh(t) {
10035
+ function Kh(t) {
10036
10036
  return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
10037
10037
  }
10038
- function Jh(t) {
10038
+ function Xh(t) {
10039
10039
  return t != null && typeof t == "object" && "errors" in t;
10040
10040
  }
10041
- function Kh(t) {
10041
+ function Zh(t) {
10042
10042
  return t != null && typeof t.toString == "function";
10043
10043
  }
10044
10044
  function li(t) {
@@ -10053,7 +10053,7 @@ function Zu(t) {
10053
10053
  }
10054
10054
  function gr(t, e, n) {
10055
10055
  const i = /* @__PURE__ */ new Set();
10056
- if (Jh(t))
10056
+ if (Xh(t))
10057
10057
  for (const r of t.errors) {
10058
10058
  const s = gr(r, e, n);
10059
10059
  for (const o of s)
@@ -10072,7 +10072,7 @@ function gr(t, e, n) {
10072
10072
  extensions: {
10073
10073
  unexpected: !0
10074
10074
  }
10075
- })) : Kh(t) ? i.add(X(t.toString(), {
10075
+ })) : Zh(t) ? i.add(X(t.toString(), {
10076
10076
  extensions: {
10077
10077
  unexpected: !0
10078
10078
  }
@@ -10102,7 +10102,7 @@ function io(t, e = {}, n = !1) {
10102
10102
  headers: e
10103
10103
  };
10104
10104
  }
10105
- function Xh(t) {
10105
+ function ep(t) {
10106
10106
  return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
10107
10107
  t.some(li);
10108
10108
  }
@@ -10119,32 +10119,32 @@ const En = {
10119
10119
  error: 3,
10120
10120
  silent: 4
10121
10121
  }, ur = () => {
10122
- }, zr = (t) => (...e) => console.log(t, ...e), Zh = console.debug ? (...t) => console.debug(ca, ...t) : zr(ca), ep = console.info ? (...t) => console.info(ua, ...t) : zr(ua), tp = console.warn ? (...t) => console.warn(aa, ...t) : zr(aa), np = console.error ? (...t) => console.error(la, ...t) : zr(la), us = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
10122
+ }, zr = (t) => (...e) => console.log(t, ...e), tp = console.debug ? (...t) => console.debug(ca, ...t) : zr(ca), np = console.info ? (...t) => console.info(ua, ...t) : zr(ua), ip = console.warn ? (...t) => console.warn(aa, ...t) : zr(aa), rp = console.error ? (...t) => console.error(la, ...t) : zr(la), us = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
10123
10123
  const n = wi[t];
10124
10124
  return {
10125
- debug: n > wi.debug ? ur : Zh,
10126
- info: n > wi.info ? ur : ep,
10127
- warn: n > wi.warn ? ur : tp,
10128
- error: n > wi.error ? ur : np
10125
+ debug: n > wi.debug ? ur : tp,
10126
+ info: n > wi.info ? ur : np,
10127
+ warn: n > wi.warn ? ur : ip,
10128
+ error: n > wi.error ? ur : rp
10129
10129
  };
10130
- }, ip = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
10131
- function rp({ headers: t, method: e }) {
10130
+ }, sp = '<!doctype html><html lang=en><head><meta charset=utf-8><title>__TITLE__</title><link rel=icon href=https://raw.githubusercontent.com/dotansimha/graphql-yoga/main/website/public/favicon.ico><link rel=stylesheet href=https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/style.css></head><body id=body class=no-focus-outline><noscript>You need to enable JavaScript to run this app.</noscript><div id=root></div><script type=module>import{renderYogaGraphiQL}from"https://unpkg.com/@graphql-yoga/graphiql@4.3.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
10131
+ function op({ headers: t, method: e }) {
10132
10132
  var n;
10133
10133
  return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
10134
10134
  }
10135
- const sp = (t) => ip.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
10136
- function op(t) {
10135
+ const ap = (t) => sp.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
10136
+ function up(t) {
10137
10137
  const e = t.logger ?? console;
10138
10138
  let n;
10139
10139
  typeof (t == null ? void 0 : t.options) == "function" ? n = t == null ? void 0 : t.options : typeof (t == null ? void 0 : t.options) == "object" ? n = () => t == null ? void 0 : t.options : (t == null ? void 0 : t.options) === !1 ? n = () => !1 : n = () => ({});
10140
- const i = (t == null ? void 0 : t.render) ?? sp;
10140
+ const i = (t == null ? void 0 : t.render) ?? ap;
10141
10141
  let r;
10142
10142
  const s = ({ URLPattern: o }) => (r || (r = new o({
10143
10143
  pathname: t.graphqlEndpoint
10144
10144
  })), r);
10145
10145
  return {
10146
10146
  async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: c, url: f }) {
10147
- if (rp(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || f.pathname === t.graphqlEndpoint || f.pathname === `${t.graphqlEndpoint}/` || s(u).test(f))) {
10147
+ if (op(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || f.pathname === t.graphqlEndpoint || f.pathname === `${t.graphqlEndpoint}/` || s(u).test(f))) {
10148
10148
  e.debug("Rendering GraphiQL");
10149
10149
  const g = await n(o, a);
10150
10150
  if (g) {
@@ -10162,7 +10162,7 @@ function op(t) {
10162
10162
  }
10163
10163
  };
10164
10164
  }
10165
- const ap = (t) => {
10165
+ const lp = (t) => {
10166
10166
  if (t == null)
10167
10167
  return {};
10168
10168
  if (Au(t))
@@ -10211,10 +10211,10 @@ const ap = (t) => {
10211
10211
  }
10212
10212
  };
10213
10213
  };
10214
- function up(t) {
10214
+ function cp(t) {
10215
10215
  return t != null && typeof t.then == "function";
10216
10216
  }
10217
- const lp = (t) => {
10217
+ const fp = (t) => {
10218
10218
  throw t;
10219
10219
  };
10220
10220
  class pt {
@@ -10227,7 +10227,7 @@ class pt {
10227
10227
  this.state = { status: "rejected", value: i };
10228
10228
  return;
10229
10229
  }
10230
- if (up(n)) {
10230
+ if (cp(n)) {
10231
10231
  this.state = { status: "pending", value: n };
10232
10232
  return;
10233
10233
  }
@@ -10237,7 +10237,7 @@ class pt {
10237
10237
  const i = this.state;
10238
10238
  if (i.status === "pending")
10239
10239
  return new pt(() => i.value.then(e, n));
10240
- const r = typeof n == "function" ? n : lp;
10240
+ const r = typeof n == "function" ? n : fp;
10241
10241
  if (i.status === "rejected")
10242
10242
  return new pt(() => r(i.value));
10243
10243
  try {
@@ -10288,7 +10288,7 @@ function Wt(t) {
10288
10288
  }
10289
10289
  return new Error(String(t));
10290
10290
  }
10291
- function cp(t) {
10291
+ function dp(t) {
10292
10292
  const e = t[Symbol.asyncIterator]();
10293
10293
  let n, i, r = !1;
10294
10294
  async function s() {
@@ -10340,10 +10340,10 @@ async function da(t, e) {
10340
10340
  })).then(() => i(), r);
10341
10341
  }), n;
10342
10342
  }
10343
- function fp(t, e, n, i) {
10343
+ function hp(t, e, n, i) {
10344
10344
  const r = [], s = i == null ? void 0 : i.maxErrors;
10345
10345
  try {
10346
- const o = dp(t, e, n, (a) => {
10346
+ const o = pp(t, e, n, (a) => {
10347
10347
  if (s != null && r.length >= s)
10348
10348
  throw X("Too many errors processing variables, error limit reached. Execution aborted.");
10349
10349
  r.push(a);
@@ -10355,7 +10355,7 @@ function fp(t, e, n, i) {
10355
10355
  }
10356
10356
  return { errors: r };
10357
10357
  }
10358
- function dp(t, e, n, i) {
10358
+ function pp(t, e, n, i) {
10359
10359
  const r = {};
10360
10360
  for (const s of e) {
10361
10361
  const o = s.variable.name.value, a = it(t, s.type);
@@ -10383,9 +10383,9 @@ function dp(t, e, n, i) {
10383
10383
  }));
10384
10384
  continue;
10385
10385
  }
10386
- r[o] = dd(u, a, (c, f, g) => {
10386
+ r[o] = pd(u, a, (c, f, g) => {
10387
10387
  let p = `Variable "$${o}" got invalid value ` + nt(f);
10388
- c.length > 0 && (p += ` at "${o}${Yh(c)}"`), i(X(p + "; " + g.message, {
10388
+ c.length > 0 && (p += ` at "${o}${Kh(c)}"`), i(X(p + "; " + g.message, {
10389
10389
  nodes: s,
10390
10390
  originalError: g
10391
10391
  }));
@@ -10393,8 +10393,8 @@ function dp(t, e, n, i) {
10393
10393
  }
10394
10394
  return r;
10395
10395
  }
10396
- const hp = Vh((t, e, n) => Hh(t.schema, t.fragments, t.variableValues, e, n));
10397
- function pp(t) {
10396
+ const gp = Gh((t, e, n) => Jh(t.schema, t.fragments, t.variableValues, e, n));
10397
+ function mp(t) {
10398
10398
  const e = tl(t);
10399
10399
  return "schema" in e ? el(e) : {
10400
10400
  errors: e.map((n) => {
@@ -10415,14 +10415,14 @@ function el(t) {
10415
10415
  var n;
10416
10416
  if ((n = t.signal) != null && n.aborted)
10417
10417
  throw t.signal.reason;
10418
- return new pt(() => yp(t)).then((i) => {
10418
+ return new pt(() => wp(t)).then((i) => {
10419
10419
  const r = ha(i, t.errors);
10420
10420
  return t.subsequentPayloads.size > 0 ? {
10421
10421
  initialResult: {
10422
10422
  ...r,
10423
10423
  hasNext: !0
10424
10424
  },
10425
- subsequentResults: Cp(t)
10425
+ subsequentResults: Dp(t)
10426
10426
  } : r;
10427
10427
  }, (i) => {
10428
10428
  var r;
@@ -10434,7 +10434,7 @@ function el(t) {
10434
10434
  function ha(t, e) {
10435
10435
  return e.length === 0 ? { data: t } : { errors: e, data: t };
10436
10436
  }
10437
- const gp = Yu(function(e) {
10437
+ const yp = Yu(function(e) {
10438
10438
  const n = /* @__PURE__ */ Object.create(null);
10439
10439
  for (const i of e.definitions)
10440
10440
  i.kind === I.FRAGMENT_DEFINITION && (n[i.name.value] = i);
@@ -10444,7 +10444,7 @@ function tl(t) {
10444
10444
  var R;
10445
10445
  const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: c, signal: f } = t;
10446
10446
  xu(e);
10447
- const g = gp(n);
10447
+ const g = yp(n);
10448
10448
  let p;
10449
10449
  for (const x of n.definitions)
10450
10450
  switch (x.kind) {
@@ -10460,7 +10460,7 @@ function tl(t) {
10460
10460
  }
10461
10461
  if (p == null)
10462
10462
  return o != null ? [X(`Unknown operation named "${o}".`)] : [X("Must provide an operation.")];
10463
- const v = p.variableDefinitions ?? [], w = fp(e, v, s ?? {}, {
10463
+ const v = p.variableDefinitions ?? [], w = hp(e, v, s ?? {}, {
10464
10464
  maxErrors: 50
10465
10465
  });
10466
10466
  return w.errors ? w.errors : {
@@ -10471,14 +10471,14 @@ function tl(t) {
10471
10471
  operation: p,
10472
10472
  variableValues: w.coerced,
10473
10473
  fieldResolver: a ?? ya,
10474
- typeResolver: u ?? _p,
10474
+ typeResolver: u ?? Op,
10475
10475
  subscribeFieldResolver: c ?? ya,
10476
10476
  subsequentPayloads: /* @__PURE__ */ new Set(),
10477
10477
  errors: [],
10478
10478
  signal: f
10479
10479
  };
10480
10480
  }
10481
- function mp(t, e) {
10481
+ function bp(t, e) {
10482
10482
  return {
10483
10483
  ...t,
10484
10484
  rootValue: e,
@@ -10486,22 +10486,22 @@ function mp(t, e) {
10486
10486
  errors: []
10487
10487
  };
10488
10488
  }
10489
- function yp(t) {
10490
- const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = Gh(n, e.operation, [e]);
10489
+ function wp(t) {
10490
+ const { operation: e, schema: n, fragments: i, variableValues: r, rootValue: s } = t, o = zh(n, e.operation, [e]);
10491
10491
  o == null && X(`Schema is not configured to execute ${e.operation} operation.`, {
10492
10492
  nodes: e
10493
10493
  });
10494
10494
  const { fields: a, patches: u } = Ku(n, i, r, o, e.selectionSet), c = void 0;
10495
10495
  let f;
10496
- e.operation === "mutation" ? f = bp(t, o, s, c, a) : f = ro(t, o, s, c, a);
10496
+ e.operation === "mutation" ? f = Ep(t, o, s, c, a) : f = ro(t, o, s, c, a);
10497
10497
  for (const g of u) {
10498
10498
  const { label: p, fields: v } = g;
10499
10499
  al(t, o, s, v, p, c);
10500
10500
  }
10501
10501
  return f;
10502
10502
  }
10503
- function bp(t, e, n, i, r) {
10504
- return Uh(r, (s, [o, a]) => {
10503
+ function Ep(t, e, n, i, r) {
10504
+ return Bh(r, (s, [o, a]) => {
10505
10505
  var c;
10506
10506
  const u = hi(i, o, e.name);
10507
10507
  if ((c = t.signal) != null && c.aborted)
@@ -10572,10 +10572,10 @@ function il(t, e, n, i, r) {
10572
10572
  variableValues: t.variableValues
10573
10573
  };
10574
10574
  }
10575
- const wp = "CRITICAL_ERROR";
10575
+ const vp = "CRITICAL_ERROR";
10576
10576
  function mt(t, e, n) {
10577
10577
  var i;
10578
- if (re(e) || (i = t.extensions) != null && i[wp])
10578
+ if (re(e) || (i = t.extensions) != null && i[vp])
10579
10579
  throw t;
10580
10580
  return n.push(t), null;
10581
10581
  }
@@ -10591,11 +10591,11 @@ function vn(t, e, n, i, r, s, o) {
10591
10591
  if (s == null)
10592
10592
  return null;
10593
10593
  if (Pe(e))
10594
- return vp(t, e, n, i, r, s, o);
10594
+ return Sp(t, e, n, i, r, s, o);
10595
10595
  if (bn(e))
10596
- return Tp(e, s);
10596
+ return _p(e, s);
10597
10597
  if (nn(e))
10598
- return Sp(t, e, n, i, r, s, o);
10598
+ return Ip(t, e, n, i, r, s, o);
10599
10599
  if (pe(e))
10600
10600
  return Os(t, e, n, i, r, s, o);
10601
10601
  console.assert(!1, "Cannot complete value of unexpected output type: " + nt(e));
@@ -10603,14 +10603,14 @@ function vn(t, e, n, i, r, s, o) {
10603
10603
  function rl(t, e, n) {
10604
10604
  if (typeof n.key == "number")
10605
10605
  return;
10606
- const i = ui(Qh, e[0], t.variableValues);
10606
+ const i = ui(Hh, e[0], t.variableValues);
10607
10607
  if (i && i.if !== !1)
10608
10608
  return fa(typeof i.initialCount == "number", "initialCount must be a number"), fa(i.initialCount >= 0, "initialCount must be a positive integer"), {
10609
10609
  initialCount: i.initialCount,
10610
10610
  label: typeof i.label == "string" ? i.label : void 0
10611
10611
  };
10612
10612
  }
10613
- async function Ep(t, e, n, i, r, s, o) {
10613
+ async function Tp(t, e, n, i, r, s, o) {
10614
10614
  var p;
10615
10615
  (p = t.signal) == null || p.addEventListener("abort", () => {
10616
10616
  var v;
@@ -10622,7 +10622,7 @@ async function Ep(t, e, n, i, r, s, o) {
10622
10622
  let g = 0;
10623
10623
  for (; ; ) {
10624
10624
  if (u && typeof u.initialCount == "number" && g >= u.initialCount) {
10625
- Rp(g, s, t, n, i, e, r, u.label, o);
10625
+ Cp(g, s, t, n, i, e, r, u.label, o);
10626
10626
  break;
10627
10627
  }
10628
10628
  const v = hi(r, g, void 0);
@@ -10639,13 +10639,13 @@ async function Ep(t, e, n, i, r, s, o) {
10639
10639
  }
10640
10640
  return c ? Promise.all(f) : f;
10641
10641
  }
10642
- function vp(t, e, n, i, r, s, o) {
10642
+ function Sp(t, e, n, i, r, s, o) {
10643
10643
  const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
10644
10644
  if (qr(s)) {
10645
10645
  const w = s[Symbol.asyncIterator]();
10646
- return Ep(t, a, n, i, r, w, o);
10646
+ return Tp(t, a, n, i, r, w, o);
10647
10647
  }
10648
- if (!Mh(s))
10648
+ if (!Vh(s))
10649
10649
  throw X(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
10650
10650
  const c = rl(t, n, r);
10651
10651
  let f = !1, g = o;
@@ -10654,7 +10654,7 @@ function vp(t, e, n, i, r, s, o) {
10654
10654
  for (const w of s) {
10655
10655
  const R = hi(r, v, void 0);
10656
10656
  if (c && typeof c.initialCount == "number" && v >= c.initialCount) {
10657
- g = xp(r, R, w, t, n, i, a, c.label, g), v++;
10657
+ g = Rp(r, R, w, t, n, i, a, c.label, g), v++;
10658
10658
  continue;
10659
10659
  }
10660
10660
  sl(w, p, u, t, a, n, i, R, o) && (f = !0), v++;
@@ -10677,7 +10677,7 @@ function sl(t, e, n, i, r, s, o, a, u) {
10677
10677
  }
10678
10678
  return !1;
10679
10679
  }
10680
- function Tp(t, e) {
10680
+ function _p(t, e) {
10681
10681
  let n;
10682
10682
  try {
10683
10683
  n = t.serialize(e);
@@ -10688,7 +10688,7 @@ function Tp(t, e) {
10688
10688
  throw new Error(`Expected \`${nt(t)}.serialize(${nt(e)})\` to return non-nullable value, returned: ${nt(n)}`);
10689
10689
  return n;
10690
10690
  }
10691
- function Sp(t, e, n, i, r, s, o) {
10691
+ function Ip(t, e, n, i, r, s, o) {
10692
10692
  const a = e.resolveType ?? t.typeResolver, u = t.contextValue, c = a(s, u, i, e);
10693
10693
  return Ae(c) ? c.then((f) => Os(t, pa(f, t, e, n, i, s), n, i, r, s, o)) : Os(t, pa(c, t, e, n, i, s), n, i, r, s, o);
10694
10694
  }
@@ -10731,14 +10731,14 @@ function ga(t, e, n) {
10731
10731
  });
10732
10732
  }
10733
10733
  function ma(t, e, n, i, r, s) {
10734
- const { fields: o, patches: a } = hp(t, e, n), u = ro(t, e, r, i, o, s);
10734
+ const { fields: o, patches: a } = gp(t, e, n), u = ro(t, e, r, i, o, s);
10735
10735
  for (const c of a) {
10736
10736
  const { label: f, fields: g } = c;
10737
10737
  al(t, e, r, g, f, i, s);
10738
10738
  }
10739
10739
  return u;
10740
10740
  }
10741
- const _p = function(t, e, n, i) {
10741
+ const Op = function(t, e, n, i) {
10742
10742
  if (Qu(t) && typeof t.__typename == "string")
10743
10743
  return t.__typename;
10744
10744
  const r = n.schema.getPossibleTypes(i), s = [];
@@ -10764,7 +10764,7 @@ const _p = function(t, e, n, i) {
10764
10764
  return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
10765
10765
  }
10766
10766
  };
10767
- function Ip(t) {
10767
+ function Np(t) {
10768
10768
  const e = tl(t);
10769
10769
  if (!("schema" in e))
10770
10770
  return {
@@ -10781,7 +10781,7 @@ function Ip(t) {
10781
10781
  }), i;
10782
10782
  })
10783
10783
  };
10784
- const n = Np(e);
10784
+ const n = xp(e);
10785
10785
  return Ae(n) ? n.then((i) => ba(e, i)) : ba(e, n);
10786
10786
  }
10787
10787
  function ol(t) {
@@ -10808,11 +10808,11 @@ function ol(t) {
10808
10808
  }
10809
10809
  };
10810
10810
  }
10811
- async function* Op(t) {
10811
+ async function* Ap(t) {
10812
10812
  "initialResult" in t ? yield* ol(t) : yield t;
10813
10813
  }
10814
10814
  function ba(t, e) {
10815
- return qr(e) ? cp(Ju(e, async (n) => Op(await el(mp(t, n))), (n) => {
10815
+ return qr(e) ? dp(Ju(e, async (n) => Ap(await el(bp(t, n))), (n) => {
10816
10816
  throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => wa(i, t.operation)), n.message) : wa(n, t.operation);
10817
10817
  })) : e;
10818
10818
  }
@@ -10822,15 +10822,15 @@ function wa(t, e) {
10822
10822
  nodes: [e]
10823
10823
  });
10824
10824
  }
10825
- function Np(t) {
10825
+ function xp(t) {
10826
10826
  try {
10827
- const e = Ap(t);
10827
+ const e = Fp(t);
10828
10828
  return Ae(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
10829
10829
  } catch (e) {
10830
10830
  return { errors: [e] };
10831
10831
  }
10832
10832
  }
10833
- function Ap(t) {
10833
+ function Fp(t) {
10834
10834
  const { schema: e, fragments: n, operation: i, variableValues: r, rootValue: s } = t, o = e.getSubscriptionType();
10835
10835
  if (o == null)
10836
10836
  throw X("Schema is not configured to execute subscription operation.", {
@@ -10867,7 +10867,7 @@ function Ea(t, e) {
10867
10867
  };
10868
10868
  }
10869
10869
  function al(t, e, n, i, r, s, o) {
10870
- const a = new kp({
10870
+ const a = new $p({
10871
10871
  label: r,
10872
10872
  path: s,
10873
10873
  parentContext: o,
@@ -10881,7 +10881,7 @@ function al(t, e, n, i, r, s, o) {
10881
10881
  }
10882
10882
  a.addData(u);
10883
10883
  }
10884
- function xp(t, e, n, i, r, s, o, a, u) {
10884
+ function Rp(t, e, n, i, r, s, o, a, u) {
10885
10885
  const c = new ul({
10886
10886
  label: a,
10887
10887
  path: e,
@@ -10906,7 +10906,7 @@ function xp(t, e, n, i, r, s, o, a, u) {
10906
10906
  let g;
10907
10907
  return Ae(f) ? g = f.then((p) => [p], (p) => (c.errors.push(p), dt(i, t, c), null)) : g = [f], c.addItems(g), c;
10908
10908
  }
10909
- async function Fp(t, e, n, i, r, s, o) {
10909
+ async function Lp(t, e, n, i, r, s, o) {
10910
10910
  let a;
10911
10911
  try {
10912
10912
  const { value: c, done: f } = await t.next();
@@ -10928,7 +10928,7 @@ async function Fp(t, e, n, i, r, s, o) {
10928
10928
  return dt(e, o, s), { done: !1, value: g };
10929
10929
  }
10930
10930
  }
10931
- async function Rp(t, e, n, i, r, s, o, a, u) {
10931
+ async function Cp(t, e, n, i, r, s, o, a, u) {
10932
10932
  let c = t, f = u ?? void 0;
10933
10933
  for (; ; ) {
10934
10934
  const g = hi(o, c, void 0), p = new ul({
@@ -10940,7 +10940,7 @@ async function Rp(t, e, n, i, r, s, o, a, u) {
10940
10940
  });
10941
10941
  let v;
10942
10942
  try {
10943
- v = await Fp(e, n, i, r, s, p, g);
10943
+ v = await Lp(e, n, i, r, s, p, g);
10944
10944
  } catch (y) {
10945
10945
  p.errors.push(y), dt(n, o, p), p.addItems(null), e != null && e.return && e.return().catch(() => {
10946
10946
  });
@@ -10966,7 +10966,7 @@ function dt(t, e, n) {
10966
10966
  }
10967
10967
  });
10968
10968
  }
10969
- function Lp(t) {
10969
+ function kp(t) {
10970
10970
  const e = [];
10971
10971
  for (const n of t.subsequentPayloads) {
10972
10972
  const i = {};
@@ -10985,7 +10985,7 @@ function Lp(t) {
10985
10985
  }
10986
10986
  return e;
10987
10987
  }
10988
- function Cp(t) {
10988
+ function Dp(t) {
10989
10989
  let e = !1;
10990
10990
  const n = new Promise((s, o) => {
10991
10991
  var a;
@@ -11002,7 +11002,7 @@ function Cp(t) {
11002
11002
  ...Array.from(t.subsequentPayloads).map((a) => a.promise)
11003
11003
  ]), e)
11004
11004
  return { value: void 0, done: !0 };
11005
- const s = Lp(t), o = t.subsequentPayloads.size > 0;
11005
+ const s = kp(t), o = t.subsequentPayloads.size > 0;
11006
11006
  return !s.length && o ? i() : (o || (e = !0), {
11007
11007
  value: s.length ? { incremental: s, hasNext: o } : { hasNext: o },
11008
11008
  done: !1
@@ -11028,7 +11028,7 @@ function Cp(t) {
11028
11028
  }
11029
11029
  };
11030
11030
  }
11031
- class kp {
11031
+ class $p {
11032
11032
  constructor(e) {
11033
11033
  U(this, "type");
11034
11034
  U(this, "errors");
@@ -11104,61 +11104,61 @@ function va(t) {
11104
11104
  const e = eo(t.document, t.operationName);
11105
11105
  if (e == null)
11106
11106
  throw new Error("Must provide an operation.");
11107
- return e.operation === "subscription" ? Ip(t) : new pt(() => pp(t)).then((n) => "initialResult" in n ? ol(n) : n).resolve();
11107
+ return e.operation === "subscription" ? Np(t) : new pt(() => mp(t)).then((n) => "initialResult" in n ? ol(n) : n).resolve();
11108
11108
  }
11109
- var we = {}, Dp = we.fetch = globalThis.fetch, $p = we.Headers = globalThis.Headers, jp = we.Request = globalThis.Request, cl = we.Response = globalThis.Response, Pp = we.FormData = globalThis.FormData, Mp = we.ReadableStream = globalThis.ReadableStream, Up = we.WritableStream = globalThis.WritableStream, Vp = we.TransformStream = globalThis.TransformStream, Bp = we.CompressionStream = globalThis.CompressionStream, Gp = we.DecompressionStream = globalThis.DecompressionStream, qp = we.Blob = globalThis.Blob, zp = we.File = globalThis.File, Qp = we.crypto = globalThis.crypto, Wp = we.btoa = globalThis.btoa, Hp = we.TextEncoder = globalThis.TextEncoder, Yp = we.TextDecoder = globalThis.TextDecoder, Jp = we.URLPattern = globalThis.URLPattern, fl = we.URL = globalThis.URL, oo = we.URLSearchParams = globalThis.URLSearchParams, Kp = we.createFetch = () => globalThis;
11110
- const dl = /* @__PURE__ */ Pl({
11109
+ var we = {}, jp = we.fetch = globalThis.fetch, Pp = we.Headers = globalThis.Headers, Mp = we.Request = globalThis.Request, cl = we.Response = globalThis.Response, Up = we.FormData = globalThis.FormData, Vp = we.ReadableStream = globalThis.ReadableStream, Bp = we.WritableStream = globalThis.WritableStream, Gp = we.TransformStream = globalThis.TransformStream, qp = we.CompressionStream = globalThis.CompressionStream, zp = we.DecompressionStream = globalThis.DecompressionStream, Qp = we.Blob = globalThis.Blob, Wp = we.File = globalThis.File, Hp = we.crypto = globalThis.crypto, Yp = we.btoa = globalThis.btoa, Jp = we.TextEncoder = globalThis.TextEncoder, Kp = we.TextDecoder = globalThis.TextDecoder, Xp = we.URLPattern = globalThis.URLPattern, fl = we.URL = globalThis.URL, oo = we.URLSearchParams = globalThis.URLSearchParams, Zp = we.createFetch = () => globalThis;
11110
+ const dl = /* @__PURE__ */ Ul({
11111
11111
  __proto__: null,
11112
- Blob: qp,
11113
- CompressionStream: Bp,
11114
- DecompressionStream: Gp,
11115
- File: zp,
11116
- FormData: Pp,
11117
- Headers: $p,
11118
- ReadableStream: Mp,
11119
- Request: jp,
11112
+ Blob: Qp,
11113
+ CompressionStream: qp,
11114
+ DecompressionStream: zp,
11115
+ File: Wp,
11116
+ FormData: Up,
11117
+ Headers: Pp,
11118
+ ReadableStream: Vp,
11119
+ Request: Mp,
11120
11120
  Response: cl,
11121
- TextDecoder: Yp,
11122
- TextEncoder: Hp,
11123
- TransformStream: Vp,
11121
+ TextDecoder: Kp,
11122
+ TextEncoder: Jp,
11123
+ TransformStream: Gp,
11124
11124
  URL: fl,
11125
- URLPattern: Jp,
11125
+ URLPattern: Xp,
11126
11126
  URLSearchParams: oo,
11127
- WritableStream: Up,
11128
- btoa: Wp,
11129
- createFetch: Kp,
11130
- crypto: Qp,
11127
+ WritableStream: Bp,
11128
+ btoa: Yp,
11129
+ createFetch: Zp,
11130
+ crypto: Hp,
11131
11131
  default: we,
11132
- fetch: Dp
11132
+ fetch: jp
11133
11133
  }, [we]);
11134
11134
  function hl(t) {
11135
11135
  return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
11136
11136
  }
11137
- function Xp(t) {
11137
+ function eg(t) {
11138
11138
  var i, r, s, o, a;
11139
11139
  if ((i = t.socket) != null && i.localPort)
11140
11140
  return (r = t.socket) == null ? void 0 : r.localPort;
11141
11141
  const e = ((s = t.headers) == null ? void 0 : s[":authority"]) || ((o = t.headers) == null ? void 0 : o.host), n = (a = e == null ? void 0 : e.split(":")) == null ? void 0 : a[1];
11142
11142
  return n || 80;
11143
11143
  }
11144
- function Zp(t) {
11144
+ function tg(t) {
11145
11145
  var i, r, s, o, a;
11146
11146
  if ((i = t.headers) != null && i[":authority"])
11147
11147
  return (r = t.headers) == null ? void 0 : r[":authority"];
11148
11148
  if ((s = t.headers) != null && s.host)
11149
11149
  return (o = t.headers) == null ? void 0 : o.host;
11150
- const e = Xp(t);
11150
+ const e = eg(t);
11151
11151
  if (t.hostname)
11152
11152
  return t.hostname + ":" + e;
11153
11153
  const n = (a = t.socket) == null ? void 0 : a.localAddress;
11154
11154
  return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
11155
11155
  }
11156
- function eg(t) {
11156
+ function ng(t) {
11157
11157
  var r;
11158
- const e = Zp(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
11158
+ const e = tg(t), n = t.protocol || ((r = t.socket) != null && r.encrypted ? "https" : "http"), i = t.originalUrl || t.url || "/graphql";
11159
11159
  return `${n}://${e}${i}`;
11160
11160
  }
11161
- function tg(t) {
11161
+ function ig(t) {
11162
11162
  const e = t[Symbol.toStringTag];
11163
11163
  return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || hl(t));
11164
11164
  }
@@ -11188,10 +11188,10 @@ class pl extends EventTarget {
11188
11188
  }
11189
11189
  let Ta = !1;
11190
11190
  const Ns = /* @__PURE__ */ new WeakMap();
11191
- function ng(t, e) {
11191
+ function rg(t, e) {
11192
11192
  var u, c, f, g;
11193
11193
  const n = t.raw || t.req || t;
11194
- let i = eg(n);
11194
+ let i = ng(n);
11195
11195
  if (t.query) {
11196
11196
  const p = new fl(i);
11197
11197
  for (const v in t.query)
@@ -11230,7 +11230,7 @@ function ng(t, e) {
11230
11230
  });
11231
11231
  const a = t.body;
11232
11232
  if (a != null && Object.keys(a).length > 0) {
11233
- if (tg(a))
11233
+ if (ig(a))
11234
11234
  return new e(i, {
11235
11235
  method: t.method,
11236
11236
  headers: o,
@@ -11286,23 +11286,23 @@ It will affect your performance. Please check our Bun integration recipe, and av
11286
11286
  function ao(t) {
11287
11287
  return t.read != null;
11288
11288
  }
11289
- function ig(t) {
11289
+ function sg(t) {
11290
11290
  return ao(t);
11291
11291
  }
11292
11292
  function Sa(t) {
11293
11293
  return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
11294
11294
  }
11295
- function rg(t) {
11295
+ function og(t) {
11296
11296
  return t != null && t.request != null && t.respondWith != null;
11297
11297
  }
11298
- function sg(t) {
11298
+ function ag(t) {
11299
11299
  var e, n, i, r, s, o;
11300
11300
  (n = (e = t == null ? void 0 : t.socket) == null ? void 0 : e.setTimeout) == null || n.call(e, 0), (r = (i = t == null ? void 0 : t.socket) == null ? void 0 : i.setNoDelay) == null || r.call(i, !0), (o = (s = t == null ? void 0 : t.socket) == null ? void 0 : s.setKeepAlive) == null || o.call(s, !0);
11301
11301
  }
11302
11302
  function mr(t) {
11303
11303
  t.end(null, null, null);
11304
11304
  }
11305
- async function og(t, e) {
11305
+ async function ug(t, e) {
11306
11306
  let n = !1;
11307
11307
  const i = () => {
11308
11308
  n = !0;
@@ -11358,16 +11358,16 @@ function _a(t, e, n) {
11358
11358
  e.write(s), mr(e);
11359
11359
  return;
11360
11360
  }
11361
- if (sg(n), ao(s)) {
11361
+ if (ag(n), ao(s)) {
11362
11362
  e.once("close", () => {
11363
11363
  s.destroy();
11364
11364
  }), s.pipe(e);
11365
11365
  return;
11366
11366
  }
11367
11367
  if (hl(s))
11368
- return og(e, s);
11368
+ return ug(e, s);
11369
11369
  }
11370
- function ag(t) {
11370
+ function lg(t) {
11371
11371
  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);
11372
11372
  }
11373
11373
  function lr(...t) {
@@ -11452,7 +11452,7 @@ function Oa(t, e) {
11452
11452
  }
11453
11453
  });
11454
11454
  }
11455
- function ug() {
11455
+ function cg() {
11456
11456
  let t, e;
11457
11457
  return {
11458
11458
  promise: new Promise(function(r, s) {
@@ -11468,7 +11468,7 @@ function ug() {
11468
11468
  }
11469
11469
  function Na(t, e) {
11470
11470
  if (pn(t) && e) {
11471
- const n = ug();
11471
+ const n = cg();
11472
11472
  return e.addEventListener("abort", function() {
11473
11473
  n.reject(e.reason);
11474
11474
  }), t.then(function(r) {
@@ -11479,10 +11479,10 @@ function Na(t, e) {
11479
11479
  }
11480
11480
  return t;
11481
11481
  }
11482
- function lg(t) {
11482
+ function fg(t) {
11483
11483
  return !!t.onData;
11484
11484
  }
11485
- function cg({ req: t, res: e, fetchAPI: n, signal: i }) {
11485
+ function dg({ req: t, res: e, fetchAPI: n, signal: i }) {
11486
11486
  let r;
11487
11487
  const s = t.getMethod();
11488
11488
  if (s !== "get" && s !== "head") {
@@ -11526,7 +11526,7 @@ function cg({ req: t, res: e, fetchAPI: n, signal: i }) {
11526
11526
  duplex: "half"
11527
11527
  });
11528
11528
  }
11529
- async function fg(t, e, n) {
11529
+ async function hg(t, e, n) {
11530
11530
  for await (const i of e.body) {
11531
11531
  if (n.aborted)
11532
11532
  return;
@@ -11565,21 +11565,21 @@ function Aa(t, e, n) {
11565
11565
  t.end();
11566
11566
  return;
11567
11567
  }
11568
- return fg(t, e, n);
11568
+ return hg(t, e, n);
11569
11569
  }
11570
11570
  }
11571
- async function dg(t) {
11571
+ async function pg(t) {
11572
11572
  await Promise.allSettled(t);
11573
11573
  }
11574
- function hg(t) {
11574
+ function gg(t) {
11575
11575
  try {
11576
11576
  return !!(t != null && t.request);
11577
11577
  } catch {
11578
11578
  return !1;
11579
11579
  }
11580
11580
  }
11581
- const pg = {};
11582
- function gg(t, e) {
11581
+ const mg = {};
11582
+ function yg(t, e) {
11583
11583
  const n = {
11584
11584
  ...dl,
11585
11585
  ...e == null ? void 0 : e.fetchAPI
@@ -11591,7 +11591,7 @@ function gg(t, e) {
11591
11591
  let O = i, C;
11592
11592
  if (r.length === 0)
11593
11593
  return b();
11594
- let T = new Proxy(pg, {
11594
+ let T = new Proxy(mg, {
11595
11595
  get(d, N, L) {
11596
11596
  return T = new n.URL(S.url, "http://localhost"), Reflect.get(T, N, T);
11597
11597
  }
@@ -11636,7 +11636,7 @@ function gg(t, e) {
11636
11636
  return pn(_) ? _.then(b) : b();
11637
11637
  } : i;
11638
11638
  function a(y, ...S) {
11639
- const A = S.length > 1 ? lr(...S) : S[0] || {}, O = ng(y, n.Request);
11639
+ const A = S.length > 1 ? lr(...S) : S[0] || {}, O = rg(y, n.Request);
11640
11640
  return o(O, A);
11641
11641
  }
11642
11642
  function u(y, S, ...A) {
@@ -11683,7 +11683,7 @@ function gg(t, e) {
11683
11683
  }), y.onAborted = function(q) {
11684
11684
  m.addEventListener("abort", q);
11685
11685
  };
11686
- const L = cg({
11686
+ const L = dg({
11687
11687
  req: S,
11688
11688
  res: y,
11689
11689
  fetchAPI: n,
@@ -11721,12 +11721,12 @@ ${q.stack || q.message || q}`);
11721
11721
  const A = S.filter((_) => _ != null);
11722
11722
  let O;
11723
11723
  const C = A.length > 1 ? lr({}, ...A) : Oa(A[0], A[0] == null || A[0].waitUntil == null ? O = [] : void 0), T = o(y, C);
11724
- return O != null && O.length ? dg(O).then(() => T) : T;
11724
+ return O != null && O.length ? pg(O).then(() => T) : T;
11725
11725
  }
11726
11726
  const v = (y, ...S) => {
11727
11727
  if (typeof y == "string" || "href" in y) {
11728
11728
  const [O, ...C] = S;
11729
- if (ag(O)) {
11729
+ if (lg(O)) {
11730
11730
  const _ = new n.Request(y, O), m = p(_, ...C);
11731
11731
  return Na(m, O == null ? void 0 : O.signal);
11732
11732
  }
@@ -11737,16 +11737,16 @@ ${q.stack || q.message || q}`);
11737
11737
  return Na(A, y._signal);
11738
11738
  }, w = (y, ...S) => {
11739
11739
  const [A, ...O] = S;
11740
- if (ig(y)) {
11740
+ if (sg(y)) {
11741
11741
  if (!Sa(A))
11742
11742
  throw new TypeError(`Expected ServerResponse, got ${A}`);
11743
11743
  return c(y, A, ...O);
11744
11744
  }
11745
- if (lg(y))
11745
+ if (fg(y))
11746
11746
  return f(y, A, ...O);
11747
11747
  if (Sa(A))
11748
11748
  throw new TypeError("Got Node response without Node request");
11749
- return hg(y) ? rg(y) ? g(y, ...S) : p(y.request, y, ...S) : v(y, ...S);
11749
+ return gg(y) ? og(y) ? g(y, ...S) : p(y.request, y, ...S) : v(y, ...S);
11750
11750
  }, R = {
11751
11751
  handleRequest: p,
11752
11752
  fetch: v,
@@ -11781,7 +11781,7 @@ ${q.stack || q.message || q}`);
11781
11781
  });
11782
11782
  return x;
11783
11783
  }
11784
- function mg(t, e) {
11784
+ function bg(t, e) {
11785
11785
  var r, s;
11786
11786
  const n = t.headers.get("origin");
11787
11787
  if (e === !1 || n == null)
@@ -11801,11 +11801,11 @@ function mg(t, e) {
11801
11801
  }
11802
11802
  return e.credentials != null ? e.credentials === !0 && (i["Access-Control-Allow-Credentials"] = "true") : i["Access-Control-Allow-Origin"] !== "*" && (i["Access-Control-Allow-Credentials"] = "true"), e.exposedHeaders && (i["Access-Control-Expose-Headers"] = e.exposedHeaders.join(", ")), e.maxAge && (i["Access-Control-Max-Age"] = e.maxAge.toString()), i;
11803
11803
  }
11804
- async function yg(t, e, n) {
11804
+ async function wg(t, e, n) {
11805
11805
  const i = await e(t, n);
11806
- return mg(t, i);
11806
+ return bg(t, i);
11807
11807
  }
11808
- function bg(t) {
11808
+ function Eg(t) {
11809
11809
  let e = () => ({});
11810
11810
  if (t != null)
11811
11811
  if (typeof t == "function")
@@ -11832,14 +11832,14 @@ function bg(t) {
11832
11832
  }
11833
11833
  },
11834
11834
  async onResponse({ request: n, serverContext: i, response: r }) {
11835
- const s = await yg(n, e, i);
11835
+ const s = await wg(n, e, i);
11836
11836
  if (s != null)
11837
11837
  for (const o in s)
11838
11838
  r.headers.set(o, s[o]);
11839
11839
  }
11840
11840
  };
11841
11841
  }
11842
- function wg(t = cl) {
11842
+ function vg(t = cl) {
11843
11843
  return function(n) {
11844
11844
  return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
11845
11845
  status: n.status,
@@ -11850,10 +11850,10 @@ function wg(t = cl) {
11850
11850
  function As(t) {
11851
11851
  return t.error ? t.error() : new t(null, { status: 500 });
11852
11852
  }
11853
- function Eg(t) {
11853
+ function Tg(t) {
11854
11854
  return {
11855
11855
  onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: i }) {
11856
- const r = t || wg(i.Response);
11856
+ const r = t || vg(i.Response);
11857
11857
  n(function(o, a) {
11858
11858
  try {
11859
11859
  const u = e(o, a);
@@ -11874,7 +11874,7 @@ function gl(t) {
11874
11874
  extensions: r ? JSON.parse(r) : void 0
11875
11875
  };
11876
11876
  }
11877
- function vg(t) {
11877
+ function Sg(t) {
11878
11878
  const e = new oo(t);
11879
11879
  return gl(e);
11880
11880
  }
@@ -11882,32 +11882,32 @@ function Di(t, e) {
11882
11882
  let n = t.headers.get("content-type");
11883
11883
  return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
11884
11884
  }
11885
- function Tg(t) {
11885
+ function _g(t) {
11886
11886
  return t.method === "GET";
11887
11887
  }
11888
- function Sg(t) {
11888
+ function Ig(t) {
11889
11889
  const [, e = ""] = t.url.split("?"), n = new oo(e);
11890
11890
  return gl(n);
11891
11891
  }
11892
- function _g(t) {
11892
+ function Og(t) {
11893
11893
  return t.method === "POST" && Di(t, "application/x-www-form-urlencoded");
11894
11894
  }
11895
- async function Ig(t) {
11895
+ async function Ng(t) {
11896
11896
  const e = await t.text();
11897
- return vg(e);
11897
+ return Sg(e);
11898
11898
  }
11899
- function Og(t) {
11899
+ function Ag(t) {
11900
11900
  return t.method === "POST" && Di(t, "application/graphql");
11901
11901
  }
11902
- async function Ng(t) {
11902
+ async function xg(t) {
11903
11903
  return {
11904
11904
  query: await t.text()
11905
11905
  };
11906
11906
  }
11907
- function Ag(t) {
11907
+ function Fg(t) {
11908
11908
  return t.method === "POST" && (Di(t, "application/json") || Di(t, "application/graphql+json"));
11909
11909
  }
11910
- async function xg(t) {
11910
+ async function Rg(t) {
11911
11911
  let e;
11912
11912
  try {
11913
11913
  e = await t.json();
@@ -11944,15 +11944,15 @@ async function xg(t) {
11944
11944
  });
11945
11945
  return e;
11946
11946
  }
11947
- function Fg(t, e, n) {
11947
+ function Lg(t, e, n) {
11948
11948
  e.split && (e = e.split("."));
11949
11949
  for (var i = 0, r = e.length, s = t, o, a; i < r && (a = "" + e[i++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
11950
11950
  s = s[a] = i === r ? n : typeof (o = s[a]) == typeof e ? o : e[i] * 0 !== 0 || ~("" + e[i]).indexOf(".") ? {} : [];
11951
11951
  }
11952
- function Rg(t) {
11952
+ function Cg(t) {
11953
11953
  return t.method === "POST" && Di(t, "multipart/form-data");
11954
11954
  }
11955
- async function Lg(t) {
11955
+ async function kg(t) {
11956
11956
  let e;
11957
11957
  try {
11958
11958
  e = await t.formData();
@@ -11989,13 +11989,13 @@ async function Lg(t) {
11989
11989
  for (const o in s) {
11990
11990
  const a = e.get(o), u = s[o];
11991
11991
  for (const c of u)
11992
- Fg(i, c, a);
11992
+ Lg(i, c, a);
11993
11993
  }
11994
11994
  }
11995
11995
  return i;
11996
11996
  }
11997
- const Cg = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
11998
- function kg(t, e) {
11997
+ const Dg = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
11998
+ function $g(t, e) {
11999
11999
  if (t == null || typeof t != "object")
12000
12000
  throw X('Invalid "params" in the request body', {
12001
12001
  extensions: {
@@ -12006,7 +12006,7 @@ function kg(t, e) {
12006
12006
  }
12007
12007
  });
12008
12008
  for (const n in t)
12009
- if (t[n] != null && !Cg.has(n)) {
12009
+ if (t[n] != null && !Dg.has(n)) {
12010
12010
  if (e != null && e.includes(n))
12011
12011
  continue;
12012
12012
  throw X(`Unexpected parameter "${n}" in the request body.`, {
@@ -12018,8 +12018,8 @@ function kg(t, e) {
12018
12018
  });
12019
12019
  }
12020
12020
  }
12021
- function Dg(t, e) {
12022
- if (!jg(t))
12021
+ function jg(t, e) {
12022
+ if (!Mg(t))
12023
12023
  throw X(`Expected params to be an object but given ${Ni(t)}.`, {
12024
12024
  extensions: {
12025
12025
  http: {
@@ -12030,7 +12030,7 @@ function Dg(t, e) {
12030
12030
  }
12031
12031
  }
12032
12032
  });
12033
- if (kg(t, e), t.query == null)
12033
+ if ($g(t, e), t.query == null)
12034
12034
  throw X("Must provide query string.", {
12035
12035
  extensions: {
12036
12036
  http: {
@@ -12080,26 +12080,26 @@ function Dg(t, e) {
12080
12080
  });
12081
12081
  return t;
12082
12082
  }
12083
- function $g(t) {
12083
+ function Pg(t) {
12084
12084
  return {
12085
12085
  onParams({ params: e }) {
12086
- Dg(e, t);
12086
+ jg(e, t);
12087
12087
  }
12088
12088
  };
12089
12089
  }
12090
12090
  function Ni(t) {
12091
12091
  return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
12092
12092
  }
12093
- function jg(t) {
12093
+ function Mg(t) {
12094
12094
  return Ni(t) === "object";
12095
12095
  }
12096
- function Pg(t) {
12096
+ function Ug(t) {
12097
12097
  return t === "GET" || t === "POST";
12098
12098
  }
12099
- function Mg() {
12099
+ function Vg() {
12100
12100
  return {
12101
12101
  onRequestParse({ request: t }) {
12102
- if (!Pg(t.method))
12102
+ if (!Ug(t.method))
12103
12103
  throw X("GraphQL only supports GET and POST requests.", {
12104
12104
  extensions: {
12105
12105
  http: {
@@ -12113,7 +12113,7 @@ function Mg() {
12113
12113
  }
12114
12114
  };
12115
12115
  }
12116
- function Ug() {
12116
+ function Bg() {
12117
12117
  return {
12118
12118
  onValidate() {
12119
12119
  return ({ valid: t, result: e }) => {
@@ -12129,7 +12129,7 @@ function Ug() {
12129
12129
  }
12130
12130
  };
12131
12131
  }
12132
- function Vg(t) {
12132
+ function Gg(t) {
12133
12133
  return {
12134
12134
  onRequestParse() {
12135
12135
  return {
@@ -12157,7 +12157,7 @@ function Vg(t) {
12157
12157
  }
12158
12158
  };
12159
12159
  }
12160
- function Bg(t, e, n) {
12160
+ function qg(t, e, n) {
12161
12161
  const i = e ? eo(e, n) ?? void 0 : void 0;
12162
12162
  if (!i)
12163
12163
  throw X("Could not determine what operation to execute.", {
@@ -12179,7 +12179,7 @@ function Bg(t, e, n) {
12179
12179
  }
12180
12180
  });
12181
12181
  }
12182
- function Gg() {
12182
+ function zg() {
12183
12183
  return {
12184
12184
  onParse() {
12185
12185
  return ({ result: t, context: {
@@ -12194,13 +12194,13 @@ function Gg() {
12194
12194
  spec: !0,
12195
12195
  status: 400
12196
12196
  }), t;
12197
- Bg(e.method, t, n);
12197
+ qg(e.method, t, n);
12198
12198
  }
12199
12199
  };
12200
12200
  }
12201
12201
  };
12202
12202
  }
12203
- function qg({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
12203
+ function Qg({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
12204
12204
  return {
12205
12205
  onRequest({ endResponse: i, fetchAPI: r, request: s }) {
12206
12206
  if (s.url.endsWith(n)) {
@@ -12252,14 +12252,14 @@ if (typeof Lr > "u") {
12252
12252
  t && (t = !1, yl("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));
12253
12253
  };
12254
12254
  }
12255
- const zg = (t) => !ml.has(t), sn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), bl = (t) => sn(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? yr : null : null;
12255
+ const Wg = (t) => !ml.has(t), sn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), bl = (t) => sn(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? yr : null : null;
12256
12256
  let yr = class extends Array {
12257
12257
  constructor(e) {
12258
12258
  super(e), this.fill(0);
12259
12259
  }
12260
12260
  };
12261
12261
  var Ht, Kn;
12262
- let Qg = (Ht = class {
12262
+ let Hg = (Ht = class {
12263
12263
  constructor(e, n) {
12264
12264
  U(this, "heap");
12265
12265
  U(this, "length");
@@ -12284,7 +12284,7 @@ let Qg = (Ht = class {
12284
12284
  }, Kn = new WeakMap(), // private constructor
12285
12285
  H(Ht, Kn, !1), Ht);
12286
12286
  var Va, Ba, vt, rt, Tt, St, Xn, Zn, Ie, _t, Te, de, ee, Qe, st, Ge, Re, It, Le, Ot, Nt, ot, At, gn, We, V, Fs, Fn, en, $i, at, wl, Rn, ei, ji, on, an, Rs, br, wr, ce, Ls, Ai, un, Cs, ti;
12287
- let Wg = (ti = class {
12287
+ let Yg = (ti = class {
12288
12288
  constructor(e) {
12289
12289
  H(this, V);
12290
12290
  // options that cannot be changed without disaster
@@ -12412,7 +12412,7 @@ let Wg = (ti = class {
12412
12412
  throw new TypeError("memoMethod must be a function if defined");
12413
12413
  if ($(this, Zn, y), x !== void 0 && typeof x != "function")
12414
12414
  throw new TypeError("fetchMethod must be a function if specified");
12415
- if ($(this, Xn, x), $(this, gn, !!x), $(this, Te, /* @__PURE__ */ new Map()), $(this, de, new Array(n).fill(void 0)), $(this, ee, new Array(n).fill(void 0)), $(this, Qe, new _(n)), $(this, st, new _(n)), $(this, Ge, 0), $(this, Re, 0), $(this, It, Qg.create(n)), $(this, Ie, 0), $(this, _t, 0), typeof c == "function" && $(this, Tt, c), typeof f == "function" ? ($(this, St, f), $(this, Le, [])) : ($(this, St, void 0), $(this, Le, void 0)), $(this, At, !!l(this, Tt)), $(this, We, !!l(this, St)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!C, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
12415
+ if ($(this, Xn, x), $(this, gn, !!x), $(this, Te, /* @__PURE__ */ new Map()), $(this, de, new Array(n).fill(void 0)), $(this, ee, new Array(n).fill(void 0)), $(this, Qe, new _(n)), $(this, st, new _(n)), $(this, Ge, 0), $(this, Re, 0), $(this, It, Hg.create(n)), $(this, Ie, 0), $(this, _t, 0), typeof c == "function" && $(this, Tt, c), typeof f == "function" ? ($(this, St, f), $(this, Le, [])) : ($(this, St, void 0), $(this, Le, void 0)), $(this, At, !!l(this, Tt)), $(this, We, !!l(this, St)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!S, this.allowStaleOnFetchRejection = !!O, this.allowStaleOnFetchAbort = !!C, this.ignoreFetchAbort = !!T, this.maxEntrySize !== 0) {
12416
12416
  if (l(this, rt) !== 0 && !sn(l(this, rt)))
12417
12417
  throw new TypeError("maxSize must be a positive integer if specified");
12418
12418
  if (!sn(this.maxEntrySize))
@@ -12428,7 +12428,7 @@ let Wg = (ti = class {
12428
12428
  throw new TypeError("At least one of max, maxSize, or ttl is required");
12429
12429
  if (!this.ttlAutopurge && !l(this, vt) && !l(this, rt)) {
12430
12430
  const m = "LRU_CACHE_UNBOUNDED";
12431
- zg(m) && (ml.add(m), yl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, ti));
12431
+ Wg(m) && (ml.add(m), yl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, ti));
12432
12432
  }
12433
12433
  }
12434
12434
  /**
@@ -13147,11 +13147,11 @@ let Wg = (ti = class {
13147
13147
  (r = l(this, St)) == null || r.call(this, ...o);
13148
13148
  }
13149
13149
  }, ti);
13150
- const Hg = 1024, Yg = 36e5;
13151
- function ls({ max: t = Hg, ttl: e = Yg } = {}) {
13152
- return new Wg({ max: t, ttl: e });
13150
+ const Jg = 1024, Kg = 36e5;
13151
+ function ls({ max: t = Jg, ttl: e = Kg } = {}) {
13152
+ return new Yg({ max: t, ttl: e });
13153
13153
  }
13154
- function Jg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n = !0 }) {
13154
+ function Xg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n = !0 }) {
13155
13155
  const i = ls();
13156
13156
  return {
13157
13157
  onParse({ params: r, setParsedDocument: s }) {
@@ -13190,16 +13190,16 @@ function Jg({ documentCache: t = ls(), errorCache: e = ls(), validationCache: n
13190
13190
  }
13191
13191
  };
13192
13192
  }
13193
- const Kg = () => !0;
13193
+ const Zg = () => !0;
13194
13194
  function Ei(t) {
13195
- const e = t.match || Kg;
13195
+ const e = t.match || Zg;
13196
13196
  return {
13197
13197
  onRequestParse({ request: n, setRequestParser: i }) {
13198
13198
  e(n) && i(t.parse);
13199
13199
  }
13200
13200
  };
13201
13201
  }
13202
- function Xg(t) {
13202
+ function em(t) {
13203
13203
  const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
13204
13204
  for (const i of e) {
13205
13205
  const [r, ...s] = i.split(";");
@@ -13207,7 +13207,7 @@ function Xg(t) {
13207
13207
  }
13208
13208
  return n.reverse();
13209
13209
  }
13210
- function Zg(t, e) {
13210
+ function tm(t, e) {
13211
13211
  const [n, i] = t.split("/"), [r, s] = e.split("/");
13212
13212
  return (r === "*" || r === n) && (s === "*" || s === i);
13213
13213
  }
@@ -13246,7 +13246,7 @@ function El(t) {
13246
13246
  }
13247
13247
  return t;
13248
13248
  }
13249
- function em(t, e) {
13249
+ function nm(t, e) {
13250
13250
  const i = io(t, {
13251
13251
  Connection: "keep-alive",
13252
13252
  "Content-Type": 'multipart/mixed; boundary="-"',
@@ -13292,7 +13292,7 @@ function em(t, e) {
13292
13292
  });
13293
13293
  return new e.Response(o, i);
13294
13294
  }
13295
- function tm(t, e, n) {
13295
+ function im(t, e, n) {
13296
13296
  if (qr(t))
13297
13297
  return new e.Response(null, {
13298
13298
  status: 406,
@@ -13307,14 +13307,14 @@ function tm(t, e, n) {
13307
13307
  t,
13308
13308
  i,
13309
13309
  // prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
13310
- n === "application/json" && !Array.isArray(t) && Xh(t.errors) && t.errors.some((o) => {
13310
+ n === "application/json" && !Array.isArray(t) && ep(t.errors) && t.errors.some((o) => {
13311
13311
  var a;
13312
13312
  return !((a = o.extensions) != null && a.originalError) || li(o.extensions.originalError);
13313
13313
  })
13314
13314
  ), s = uo(t);
13315
13315
  return new e.Response(s, r);
13316
13316
  }
13317
- function nm() {
13317
+ function rm() {
13318
13318
  return function(e, n) {
13319
13319
  var f, g;
13320
13320
  let i = 12e3;
@@ -13374,40 +13374,40 @@ function nm() {
13374
13374
  return new n.Response(c, s);
13375
13375
  };
13376
13376
  }
13377
- const im = {
13377
+ const sm = {
13378
13378
  mediaTypes: ["multipart/mixed"],
13379
13379
  asyncIterables: !0,
13380
- processResult: em
13380
+ processResult: nm
13381
13381
  };
13382
- function rm() {
13382
+ function om() {
13383
13383
  return {
13384
13384
  mediaTypes: ["text/event-stream"],
13385
13385
  asyncIterables: !0,
13386
- processResult: nm()
13386
+ processResult: rm()
13387
13387
  };
13388
13388
  }
13389
13389
  const Ra = {
13390
13390
  mediaTypes: ["application/graphql-response+json", "application/json"],
13391
13391
  asyncIterables: !1,
13392
- processResult: tm
13392
+ processResult: im
13393
13393
  };
13394
- function sm() {
13395
- const t = /* @__PURE__ */ new WeakMap(), e = rm(), n = [e, im, Ra], i = [e, Ra];
13394
+ function am() {
13395
+ const t = /* @__PURE__ */ new WeakMap(), e = om(), n = [e, sm, Ra], i = [e, Ra];
13396
13396
  return {
13397
13397
  onSubscribe({ args: { contextValue: r } }) {
13398
13398
  r.request && t.set(r.request, !0);
13399
13399
  },
13400
13400
  onResultProcess({ request: r, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
13401
- const c = t.get(r) ? i : n, f = Xg(r), g = Qt(s);
13401
+ const c = t.get(r) ? i : n, f = em(r), g = Qt(s);
13402
13402
  for (const p of c)
13403
13403
  for (const v of f)
13404
13404
  if (!(g && !p.asyncIterables))
13405
13405
  for (const w of p.mediaTypes)
13406
- o.push(w), Zg(w, v) && a(p.processResult, w);
13406
+ o.push(w), tm(w, v) && a(p.processResult, w);
13407
13407
  }
13408
13408
  };
13409
13409
  }
13410
- const om = `<!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></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>
13410
+ const um = `<!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></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>
13411
13411
  <code>
13412
13412
  import { createYoga } from 'graphql-yoga';
13413
13413
 
@@ -13423,8 +13423,8 @@ const yoga = createYoga({
13423
13423
  graphqlEndpoint: '__REQUEST_PATH__',
13424
13424
  })
13425
13425
  </code>
13426
- </pre></section></main></body></html>`, am = function(e) {
13427
- return new e.fetchAPI.Response(om.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
13426
+ </pre></section></main></body></html>`, lm = function(e) {
13427
+ return new e.fetchAPI.Response(um.replace(/__GRAPHIQL_LINK__/g, e.graphqlEndpoint).replace(/__REQUEST_PATH__/g, e.url.pathname), {
13428
13428
  status: 200,
13429
13429
  statusText: "OK",
13430
13430
  headers: {
@@ -13432,14 +13432,14 @@ const yoga = createYoga({
13432
13432
  }
13433
13433
  });
13434
13434
  };
13435
- function um(t) {
13435
+ function cm(t) {
13436
13436
  let e;
13437
13437
  function n({ URLPattern: r }) {
13438
13438
  return e || (e = new r({
13439
13439
  pathname: t.graphqlEndpoint
13440
13440
  })), e;
13441
13441
  }
13442
- const i = t.landingPageRenderer || am;
13442
+ const i = t.landingPageRenderer || lm;
13443
13443
  return {
13444
13444
  onRequest({ request: r, fetchAPI: s, endResponse: o, url: a }) {
13445
13445
  var u, c;
@@ -13493,7 +13493,7 @@ async function La({ request: t, result: e, fetchAPI: n, onResultProcessHooks: i,
13493
13493
  }
13494
13494
  });
13495
13495
  }
13496
- async function lm({ params: t, enveloped: e }) {
13496
+ async function fm({ params: t, enveloped: e }) {
13497
13497
  const n = e.parse(t.query), i = e.validate(e.schema, n);
13498
13498
  if (i.length > 0)
13499
13499
  return { errors: i };
@@ -13506,7 +13506,7 @@ async function lm({ params: t, enveloped: e }) {
13506
13506
  }, o = eo(n, t.operationName);
13507
13507
  return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
13508
13508
  }
13509
- const cm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
13509
+ const dm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? void 0 : i.env)()) == null ? void 0 : r.NODE_ENV)() === "development") => {
13510
13510
  if (li(t)) {
13511
13511
  if (t.originalError) {
13512
13512
  if (t.originalError.name === "GraphQLError")
@@ -13538,7 +13538,7 @@ const cm = (t, e, n = ((r) => (r = ((i) => (i = globalThis.process) == null ? vo
13538
13538
  }
13539
13539
  });
13540
13540
  };
13541
- class fm {
13541
+ class hm {
13542
13542
  constructor(e) {
13543
13543
  /**
13544
13544
  * Instance of envelop
@@ -13608,7 +13608,7 @@ class fm {
13608
13608
  e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
13609
13609
  const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
13610
13610
  this.logger = typeof n == "boolean" ? n === !0 ? us() : us("silent") : typeof n == "string" ? us(n) : n;
13611
- const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || cm, r = /* @__PURE__ */ new WeakSet();
13611
+ const i = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || dm, r = /* @__PURE__ */ new WeakSet();
13612
13612
  this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
13613
13613
  errorMessage: "Unexpected error.",
13614
13614
  ...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
@@ -13625,24 +13625,24 @@ class fm {
13625
13625
  e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
13626
13626
  const a = this.graphqlEndpoint;
13627
13627
  this.plugins = [
13628
- yc({
13629
- parse: Qc,
13630
- validate: Cd,
13628
+ wc({
13629
+ parse: Hc,
13630
+ validate: Dd,
13631
13631
  execute: va,
13632
13632
  subscribe: va,
13633
13633
  specifiedRules: ju
13634
13634
  }),
13635
13635
  // Use the schema provided by the user
13636
- !!(e != null && e.schema) && ap(e.schema),
13637
- (e == null ? void 0 : e.context) != null && mc((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
13636
+ !!(e != null && e.schema) && lp(e.schema),
13637
+ (e == null ? void 0 : e.context) != null && bc((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
13638
13638
  // Middlewares before processing the incoming HTTP request
13639
- qg({
13639
+ Qg({
13640
13640
  id: this.id,
13641
13641
  logger: this.logger,
13642
13642
  endpoint: e == null ? void 0 : e.healthCheckEndpoint
13643
13643
  }),
13644
- (e == null ? void 0 : e.cors) !== !1 && bg(e == null ? void 0 : e.cors),
13645
- (e == null ? void 0 : e.graphiql) !== !1 && op({
13644
+ (e == null ? void 0 : e.cors) !== !1 && Eg(e == null ? void 0 : e.cors),
13645
+ (e == null ? void 0 : e.graphiql) !== !1 && up({
13646
13646
  graphqlEndpoint: a,
13647
13647
  options: e == null ? void 0 : e.graphiql,
13648
13648
  render: e == null ? void 0 : e.renderGraphiQL,
@@ -13650,28 +13650,28 @@ class fm {
13650
13650
  }),
13651
13651
  // Middlewares before the GraphQL execution
13652
13652
  Ei({
13653
- match: Tg,
13654
- parse: Sg
13653
+ match: _g,
13654
+ parse: Ig
13655
13655
  }),
13656
13656
  Ei({
13657
- match: Ag,
13658
- parse: xg
13657
+ match: Fg,
13658
+ parse: Rg
13659
13659
  }),
13660
13660
  (e == null ? void 0 : e.multipart) !== !1 && Ei({
13661
- match: Rg,
13662
- parse: Lg
13661
+ match: Cg,
13662
+ parse: kg
13663
13663
  }),
13664
13664
  Ei({
13665
- match: Og,
13666
- parse: Ng
13665
+ match: Ag,
13666
+ parse: xg
13667
13667
  }),
13668
13668
  Ei({
13669
- match: _g,
13670
- parse: Ig
13669
+ match: Og,
13670
+ parse: Ng
13671
13671
  }),
13672
13672
  // Middlewares after the GraphQL execution
13673
- sm(),
13674
- Eg((u, c, f) => {
13673
+ am(),
13674
+ Tg((u, c, f) => {
13675
13675
  const p = {
13676
13676
  errors: gr(u, this.maskedErrorsOpts, this.logger)
13677
13677
  };
@@ -13689,17 +13689,17 @@ class fm {
13689
13689
  onPluginInit({ addPlugin: u }) {
13690
13690
  (e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
13691
13691
  // @ts-expect-error Add plugins has context but this hook doesn't care
13692
- Jg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
13693
- ), u(Vg(o)), u($g(e == null ? void 0 : e.extraParamNames));
13692
+ Xg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
13693
+ ), u(Gg(o)), u(Pg(e == null ? void 0 : e.extraParamNames));
13694
13694
  const c = !!((e == null ? void 0 : e.landingPage) ?? !0);
13695
13695
  u(
13696
13696
  // @ts-expect-error Add plugins has context but this hook doesn't care
13697
- um({
13697
+ cm({
13698
13698
  graphqlEndpoint: a,
13699
13699
  showLandingPage: c,
13700
13700
  landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
13701
13701
  })
13702
- ), u(Mg()), u(Gg()), s && (u({
13702
+ ), u(Vg()), u(zg()), s && (u({
13703
13703
  onSubscribe() {
13704
13704
  return {
13705
13705
  onSubscribeError({ error: f }) {
@@ -13708,13 +13708,13 @@ class fm {
13708
13708
  }
13709
13709
  };
13710
13710
  }
13711
- }), u(gc(s))), u(
13711
+ }), u(yc(s))), u(
13712
13712
  // We handle validation errors at the end
13713
- Ug()
13713
+ Bg()
13714
13714
  );
13715
13715
  }
13716
13716
  }
13717
- ], this.getEnveloped = oc({
13717
+ ], this.getEnveloped = uc({
13718
13718
  plugins: this.plugins
13719
13719
  }), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onExecutionResultHooks = [], this.onResultProcessHooks = [];
13720
13720
  for (const u of this.plugins)
@@ -13746,7 +13746,7 @@ class fm {
13746
13746
  };
13747
13747
  o = Object.assign(i ? Object.create(r) : r, a);
13748
13748
  const u = this.getEnveloped(o);
13749
- this.logger.debug("Processing GraphQL Parameters"), s = await lm({
13749
+ this.logger.debug("Processing GraphQL Parameters"), s = await fm({
13750
13750
  params: e,
13751
13751
  enveloped: u
13752
13752
  }), this.logger.debug("Processing GraphQL Parameters done.");
@@ -13778,9 +13778,9 @@ class fm {
13778
13778
  return s;
13779
13779
  }
13780
13780
  }
13781
- function dm(t) {
13782
- const e = new fm(t);
13783
- return gg(e, {
13781
+ function pm(t) {
13782
+ const e = new hm(t);
13783
+ return yg(e, {
13784
13784
  fetchAPI: e.fetchAPI,
13785
13785
  plugins: e.plugins
13786
13786
  });
@@ -13821,7 +13821,7 @@ if (typeof Cr > "u") {
13821
13821
  t && (t = !1, Tl("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));
13822
13822
  };
13823
13823
  }
13824
- const hm = (t) => !vl.has(t), ln = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Sl = (t) => ln(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Er : null : null;
13824
+ const gm = (t) => !vl.has(t), ln = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Sl = (t) => ln(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Er : null : null;
13825
13825
  class Er extends Array {
13826
13826
  constructor(e) {
13827
13827
  super(e), this.fill(0);
@@ -13999,7 +13999,7 @@ const yo = class yo {
13999
13999
  throw new TypeError("At least one of max, maxSize, or ttl is required");
14000
14000
  if (!this.ttlAutopurge && !l(this, xt) && !l(this, ut)) {
14001
14001
  const m = "LRU_CACHE_UNBOUNDED";
14002
- hm(m) && (vl.add(m), Tl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, yo));
14002
+ gm(m) && (vl.add(m), Tl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, yo));
14003
14003
  }
14004
14004
  }
14005
14005
  /**
@@ -15498,22 +15498,22 @@ list should be an Array.`), h.length === 0) return new x(0);
15498
15498
  }, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
15499
15499
  });
15500
15500
  })(Il);
15501
- var pm = Il.exports;
15502
- const gm = /* @__PURE__ */ jl(pm);
15501
+ var mm = Il.exports;
15502
+ const ym = /* @__PURE__ */ Pl(mm);
15503
15503
  var On = {}, Tn = {}, lo = {};
15504
15504
  Object.defineProperty(lo, "__esModule", {
15505
15505
  value: !0
15506
15506
  });
15507
- lo.isObjectLike = mm;
15508
- function mm(t) {
15507
+ lo.isObjectLike = bm;
15508
+ function bm(t) {
15509
15509
  return typeof t == "object" && t !== null;
15510
15510
  }
15511
15511
  var Qr = {}, co = {};
15512
15512
  Object.defineProperty(co, "__esModule", {
15513
15513
  value: !0
15514
15514
  });
15515
- co.invariant = ym;
15516
- function ym(t, e) {
15515
+ co.invariant = wm;
15516
+ function wm(t, e) {
15517
15517
  if (!!!t)
15518
15518
  throw new Error(
15519
15519
  e ?? "Unexpected invariant triggered."
@@ -15522,13 +15522,13 @@ function ym(t, e) {
15522
15522
  Object.defineProperty(Qr, "__esModule", {
15523
15523
  value: !0
15524
15524
  });
15525
- Qr.getLocation = Em;
15526
- var bm = co;
15527
- const wm = /\r\n|[\n\r]/g;
15528
- function Em(t, e) {
15525
+ Qr.getLocation = Tm;
15526
+ var Em = co;
15527
+ const vm = /\r\n|[\n\r]/g;
15528
+ function Tm(t, e) {
15529
15529
  let n = 0, i = 1;
15530
- for (const r of t.body.matchAll(wm)) {
15531
- if (typeof r.index == "number" || (0, bm.invariant)(!1), r.index >= e)
15530
+ for (const r of t.body.matchAll(vm)) {
15531
+ if (typeof r.index == "number" || (0, Em.invariant)(!1), r.index >= e)
15532
15532
  break;
15533
15533
  n = r.index + r[0].length, i += 1;
15534
15534
  }
@@ -15541,13 +15541,13 @@ var Wr = {};
15541
15541
  Object.defineProperty(Wr, "__esModule", {
15542
15542
  value: !0
15543
15543
  });
15544
- Wr.printLocation = Tm;
15544
+ Wr.printLocation = _m;
15545
15545
  Wr.printSourceLocation = Ol;
15546
- var vm = Qr;
15547
- function Tm(t) {
15546
+ var Sm = Qr;
15547
+ function _m(t) {
15548
15548
  return Ol(
15549
15549
  t.source,
15550
- (0, vm.getLocation)(t.source, t.start)
15550
+ (0, Sm.getLocation)(t.source, t.start)
15551
15551
  );
15552
15552
  }
15553
15553
  function Ol(t, e) {
@@ -15581,10 +15581,10 @@ Object.defineProperty(Tn, "__esModule", {
15581
15581
  value: !0
15582
15582
  });
15583
15583
  Tn.GraphQLError = void 0;
15584
- Tn.formatError = Om;
15585
- Tn.printError = Im;
15586
- var Sm = lo, Da = Qr, $a = Wr;
15587
- function _m(t) {
15584
+ Tn.formatError = Am;
15585
+ Tn.printError = Nm;
15586
+ var Im = lo, Da = Qr, $a = Wr;
15587
+ function Om(t) {
15588
15588
  const e = t[0];
15589
15589
  return e == null || "kind" in e || "length" in e ? {
15590
15590
  nodes: e,
@@ -15636,7 +15636,7 @@ class fo extends Error {
15636
15636
  */
15637
15637
  constructor(e, ...n) {
15638
15638
  var i, r, s;
15639
- const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = _m(n);
15639
+ const { nodes: o, source: a, positions: u, path: c, originalError: f, extensions: g } = Om(n);
15640
15640
  super(e), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = f ?? void 0, this.nodes = ja(
15641
15641
  Array.isArray(o) ? o : o ? [o] : void 0
15642
15642
  );
@@ -15646,7 +15646,7 @@ class fo extends Error {
15646
15646
  this.source = a ?? (p == null || (r = p[0]) === null || r === void 0 ? void 0 : r.source), this.positions = u ?? (p == null ? void 0 : p.map((w) => w.start)), this.locations = u && a ? u.map((w) => (0, Da.getLocation)(a, w)) : p == null ? void 0 : p.map(
15647
15647
  (w) => (0, Da.getLocation)(w.source, w.start)
15648
15648
  );
15649
- const v = (0, Sm.isObjectLike)(
15649
+ const v = (0, Im.isObjectLike)(
15650
15650
  f == null ? void 0 : f.extensions
15651
15651
  ) ? f == null ? void 0 : f.extensions : void 0;
15652
15652
  this.extensions = (s = g ?? v) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -15707,20 +15707,20 @@ Tn.GraphQLError = fo;
15707
15707
  function ja(t) {
15708
15708
  return t === void 0 || t.length === 0 ? void 0 : t;
15709
15709
  }
15710
- function Im(t) {
15710
+ function Nm(t) {
15711
15711
  return t.toString();
15712
15712
  }
15713
- function Om(t) {
15713
+ function Am(t) {
15714
15714
  return t.toJSON();
15715
15715
  }
15716
15716
  var ho = {};
15717
15717
  Object.defineProperty(ho, "__esModule", {
15718
15718
  value: !0
15719
15719
  });
15720
- ho.syntaxError = Am;
15721
- var Nm = Tn;
15722
- function Am(t, e, n) {
15723
- return new Nm.GraphQLError(`Syntax Error: ${n}`, {
15720
+ ho.syntaxError = Fm;
15721
+ var xm = Tn;
15722
+ function Fm(t, e, n) {
15723
+ return new xm.GraphQLError(`Syntax Error: ${n}`, {
15724
15724
  source: t,
15725
15725
  positions: [e]
15726
15726
  });
@@ -15729,9 +15729,9 @@ var po = {}, go = {}, mo = {};
15729
15729
  Object.defineProperty(mo, "__esModule", {
15730
15730
  value: !0
15731
15731
  });
15732
- mo.inspect = Fm;
15733
- const xm = 10, Nl = 2;
15734
- function Fm(t) {
15732
+ mo.inspect = Lm;
15733
+ const Rm = 10, Nl = 2;
15734
+ function Lm(t) {
15735
15735
  return Hr(t, []);
15736
15736
  }
15737
15737
  function Hr(t, e) {
@@ -15741,45 +15741,45 @@ function Hr(t, e) {
15741
15741
  case "function":
15742
15742
  return t.name ? `[function ${t.name}]` : "[function]";
15743
15743
  case "object":
15744
- return Rm(t, e);
15744
+ return Cm(t, e);
15745
15745
  default:
15746
15746
  return String(t);
15747
15747
  }
15748
15748
  }
15749
- function Rm(t, e) {
15749
+ function Cm(t, e) {
15750
15750
  if (t === null)
15751
15751
  return "null";
15752
15752
  if (e.includes(t))
15753
15753
  return "[Circular]";
15754
15754
  const n = [...e, t];
15755
- if (Lm(t)) {
15755
+ if (km(t)) {
15756
15756
  const i = t.toJSON();
15757
15757
  if (i !== t)
15758
15758
  return typeof i == "string" ? i : Hr(i, n);
15759
15759
  } else if (Array.isArray(t))
15760
- return km(t, n);
15761
- return Cm(t, n);
15760
+ return $m(t, n);
15761
+ return Dm(t, n);
15762
15762
  }
15763
- function Lm(t) {
15763
+ function km(t) {
15764
15764
  return typeof t.toJSON == "function";
15765
15765
  }
15766
- function Cm(t, e) {
15766
+ function Dm(t, e) {
15767
15767
  const n = Object.entries(t);
15768
- return n.length === 0 ? "{}" : e.length > Nl ? "[" + Dm(t) + "]" : "{ " + n.map(
15768
+ return n.length === 0 ? "{}" : e.length > Nl ? "[" + jm(t) + "]" : "{ " + n.map(
15769
15769
  ([r, s]) => r + ": " + Hr(s, e)
15770
15770
  ).join(", ") + " }";
15771
15771
  }
15772
- function km(t, e) {
15772
+ function $m(t, e) {
15773
15773
  if (t.length === 0)
15774
15774
  return "[]";
15775
15775
  if (e.length > Nl)
15776
15776
  return "[Array]";
15777
- const n = Math.min(xm, t.length), i = t.length - n, r = [];
15777
+ const n = Math.min(Rm, t.length), i = t.length - n, r = [];
15778
15778
  for (let s = 0; s < n; ++s)
15779
15779
  r.push(Hr(t[s], e));
15780
15780
  return i === 1 ? r.push("... 1 more item") : i > 1 && r.push(`... ${i} more items`), "[" + r.join(", ") + "]";
15781
15781
  }
15782
- function Dm(t) {
15782
+ function jm(t) {
15783
15783
  const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
15784
15784
  if (e === "Object" && typeof t.constructor == "function") {
15785
15785
  const n = t.constructor.name;
@@ -15791,25 +15791,25 @@ function Dm(t) {
15791
15791
  Object.defineProperty(go, "__esModule", {
15792
15792
  value: !0
15793
15793
  });
15794
- go.toError = jm;
15795
- var $m = mo;
15796
- function jm(t) {
15797
- return t instanceof Error ? t : new Pm(t);
15794
+ go.toError = Mm;
15795
+ var Pm = mo;
15796
+ function Mm(t) {
15797
+ return t instanceof Error ? t : new Um(t);
15798
15798
  }
15799
- class Pm extends Error {
15799
+ class Um extends Error {
15800
15800
  constructor(e) {
15801
- super("Unexpected error value: " + (0, $m.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
15801
+ super("Unexpected error value: " + (0, Pm.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
15802
15802
  }
15803
15803
  }
15804
15804
  Object.defineProperty(po, "__esModule", {
15805
15805
  value: !0
15806
15806
  });
15807
- po.locatedError = Vm;
15808
- var Mm = go, Um = Tn;
15809
- function Vm(t, e, n) {
15807
+ po.locatedError = Gm;
15808
+ var Vm = go, Bm = Tn;
15809
+ function Gm(t, e, n) {
15810
15810
  var i;
15811
- const r = (0, Mm.toError)(t);
15812
- return Bm(r) ? r : new Um.GraphQLError(r.message, {
15811
+ const r = (0, Vm.toError)(t);
15812
+ return qm(r) ? r : new Bm.GraphQLError(r.message, {
15813
15813
  nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
15814
15814
  source: r.source,
15815
15815
  positions: r.positions,
@@ -15817,7 +15817,7 @@ function Vm(t, e, n) {
15817
15817
  originalError: r
15818
15818
  });
15819
15819
  }
15820
- function Bm(t) {
15820
+ function qm(t) {
15821
15821
  return Array.isArray(t.path);
15822
15822
  }
15823
15823
  (function(t) {
@@ -15863,7 +15863,7 @@ var Al = {};
15863
15863
  })(e.HttpMethods || (e.HttpMethods = {}));
15864
15864
  }(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
15865
15865
  })(Al);
15866
- const cs = /* @__PURE__ */ new Map(), Gm = (t, e) => {
15866
+ const cs = /* @__PURE__ */ new Map(), zm = (t, e) => {
15867
15867
  cs.has(t) || cs.set(t, /* @__PURE__ */ new Map());
15868
15868
  const n = cs.get(t);
15869
15869
  if (n.has(e))
@@ -15873,11 +15873,11 @@ const cs = /* @__PURE__ */ new Map(), Gm = (t, e) => {
15873
15873
  for (const s of i)
15874
15874
  (!r || typeof r != "object") && (r = null), r = r[s] ?? null;
15875
15875
  return n.set(e, r), r;
15876
- }, fs = /* @__PURE__ */ new Map(), qm = (t) => t !== null && typeof t == "object", zm = async (t, e = []) => {
15876
+ }, fs = /* @__PURE__ */ new Map(), Qm = (t) => t !== null && typeof t == "object", Wm = async (t, e = []) => {
15877
15877
  if (fs.has(t))
15878
15878
  return fs.get(t);
15879
15879
  const n = structuredClone(t), i = /* @__PURE__ */ new Set(), r = async (o, a) => {
15880
- if (qm(o)) {
15880
+ if (Qm(o)) {
15881
15881
  if (i.has(o))
15882
15882
  return o;
15883
15883
  if (i.add(o), Array.isArray(o))
@@ -15889,7 +15889,7 @@ const cs = /* @__PURE__ */ new Map(), Gm = (t, e) => {
15889
15889
  const c = await u(o.$ref);
15890
15890
  if (c) return c;
15891
15891
  }
15892
- return await Gm(n, o.$ref);
15892
+ return await zm(n, o.$ref);
15893
15893
  }
15894
15894
  for (const u in o)
15895
15895
  o[u] = await r(o[u]);
@@ -15907,7 +15907,7 @@ function hn(t, e) {
15907
15907
  ) : typeof r == "object" && r !== null ? n[i] = hn(r, e) : n[i] = r;
15908
15908
  return e(n);
15909
15909
  }
15910
- const Qm = (t) => {
15910
+ const Hm = (t) => {
15911
15911
  var e;
15912
15912
  return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = hn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = hn(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 = hn(t, (n) => (n.example !== void 0 && (n.examples = {
15913
15913
  default: {
@@ -15927,7 +15927,7 @@ const Qm = (t) => {
15927
15927
  type: "string",
15928
15928
  contentEncoding: "base64"
15929
15929
  } : n), t;
15930
- }, Wm = Object.values(Al.OpenAPIV3.HttpMethods), Hm = async (t) => {
15930
+ }, Ym = Object.values(Al.OpenAPIV3.HttpMethods), Jm = async (t) => {
15931
15931
  if (typeof t == "string") {
15932
15932
  if (t.trim().startsWith("{"))
15933
15933
  try {
@@ -15966,22 +15966,22 @@ const Qm = (t) => {
15966
15966
  }
15967
15967
  if (typeof t == "object") return t;
15968
15968
  throw new On.GraphQLError("Unsupported schema input: " + t);
15969
- }, Ym = async (t) => {
15970
- const e = await Hm(t);
15969
+ }, Km = async (t) => {
15970
+ const e = await Jm(t);
15971
15971
  if (!e.openapi)
15972
15972
  throw new On.GraphQLError("OpenAPI version is not defined");
15973
- const n = await zm(e);
15974
- return Qm(n);
15975
- }, Jm = (t, e, n) => {
15973
+ const n = await Wm(e);
15974
+ return Hm(n);
15975
+ }, Xm = (t, e, n) => {
15976
15976
  const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
15977
15977
  return t(
15978
15978
  (n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
15979
15979
  );
15980
- }, Km = new $s({
15980
+ }, Zm = new $s({
15981
15981
  ttl: 60 * 10 * 1e3,
15982
15982
  ttlAutopurge: !0,
15983
- fetchMethod: (t, e, { context: n }) => Ym(n)
15984
- }), Me = new Fh({}), ci = Me.addScalarType("JSON", Rh), Xm = Me.addScalarType("JSONObject", Lh), xl = (t) => {
15983
+ fetchMethod: (t, e, { context: n }) => Km(n)
15984
+ }), Me = new Lh({}), ci = Me.addScalarType("JSON", Ch), ey = Me.addScalarType("JSONObject", kh), xl = (t) => {
15985
15985
  const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
15986
15986
  (r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
15987
15987
  ), i = [...new Set(n)].filter(
@@ -15989,9 +15989,9 @@ const Qm = (t) => {
15989
15989
  );
15990
15990
  return [...e, ...i.map((r) => ({ name: r }))];
15991
15991
  }, Fl = (t, e) => {
15992
- const n = $l();
15992
+ const n = jl();
15993
15993
  return Object.entries(t ?? {}).flatMap(
15994
- ([i, r]) => Wm.flatMap((s) => {
15994
+ ([i, r]) => Ym.flatMap((s) => {
15995
15995
  if (!(r != null && r[s])) return [];
15996
15996
  const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], c = [
15997
15997
  ...a.filter(
@@ -16013,11 +16013,11 @@ const Qm = (t) => {
16013
16013
  path: i,
16014
16014
  parameters: c,
16015
16015
  tags: o.tags ?? [],
16016
- slug: Jm(n, f, e)
16016
+ slug: Xm(n, f, e)
16017
16017
  };
16018
16018
  })
16019
16019
  );
16020
- }, Zm = Me.objectRef("SchemaTag").implement({
16020
+ }, ty = Me.objectRef("SchemaTag").implement({
16021
16021
  fields: (t) => ({
16022
16022
  name: t.exposeString("name", { nullable: !0 }),
16023
16023
  description: t.exposeString("description", { nullable: !0 }),
@@ -16032,26 +16032,26 @@ const Qm = (t) => {
16032
16032
  }
16033
16033
  })
16034
16034
  })
16035
- }), ey = Me.objectRef("Server").implement({
16035
+ }), ny = Me.objectRef("Server").implement({
16036
16036
  fields: (t) => ({
16037
16037
  url: t.exposeString("url"),
16038
16038
  description: t.exposeString("description", { nullable: !0 })
16039
16039
  })
16040
- }), ty = Me.objectRef("PathItem").implement({
16040
+ }), iy = Me.objectRef("PathItem").implement({
16041
16041
  fields: (t) => ({
16042
16042
  path: t.exposeString("path"),
16043
16043
  methods: t.exposeStringList("methods")
16044
16044
  })
16045
- }), ny = Me.objectRef("TagItem").implement({
16045
+ }), ry = Me.objectRef("TagItem").implement({
16046
16046
  fields: (t) => ({
16047
16047
  name: t.exposeString("name"),
16048
16048
  description: t.exposeString("description", { nullable: !0 })
16049
16049
  })
16050
- }), iy = Me.objectRef("EncodingItem").implement({
16050
+ }), sy = Me.objectRef("EncodingItem").implement({
16051
16051
  fields: (t) => ({
16052
16052
  name: t.exposeString("name"),
16053
16053
  contentType: t.exposeString("contentType", { nullable: !0 }),
16054
- headers: t.expose("headers", { type: Xm, nullable: !0 }),
16054
+ headers: t.expose("headers", { type: ey, nullable: !0 }),
16055
16055
  style: t.exposeString("style", { nullable: !0 }),
16056
16056
  explode: t.exposeBoolean("explode", { nullable: !0 }),
16057
16057
  allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
@@ -16064,13 +16064,13 @@ const Qm = (t) => {
16064
16064
  value: t.expose("value", { type: ci, nullable: !0 }),
16065
16065
  externalValue: t.exposeString("externalValue", { nullable: !0 })
16066
16066
  })
16067
- }), ry = Me.enumType("ParameterIn", {
16067
+ }), oy = Me.enumType("ParameterIn", {
16068
16068
  values: ["query", "header", "path", "cookie"]
16069
- }), sy = Me.objectRef("ParameterItem").implement({
16069
+ }), ay = Me.objectRef("ParameterItem").implement({
16070
16070
  fields: (t) => ({
16071
16071
  name: t.exposeString("name"),
16072
16072
  in: t.field({
16073
- type: ry,
16073
+ type: oy,
16074
16074
  resolve: (e) => e.in
16075
16075
  }),
16076
16076
  description: t.exposeString("description", { nullable: !0 }),
@@ -16095,15 +16095,15 @@ const Qm = (t) => {
16095
16095
  mediaType: t.exposeString("mediaType"),
16096
16096
  schema: t.expose("schema", { type: ci, nullable: !0 }),
16097
16097
  examples: t.expose("examples", { type: [Rl], nullable: !0 }),
16098
- encoding: t.expose("encoding", { type: [iy], nullable: !0 })
16098
+ encoding: t.expose("encoding", { type: [sy], nullable: !0 })
16099
16099
  })
16100
- }), oy = Me.objectRef("RequestBodyObject").implement({
16100
+ }), uy = Me.objectRef("RequestBodyObject").implement({
16101
16101
  fields: (t) => ({
16102
16102
  description: t.exposeString("description", { nullable: !0 }),
16103
16103
  content: t.expose("content", { type: [Ll], nullable: !0 }),
16104
16104
  required: t.exposeBoolean("required", { nullable: !0 })
16105
16105
  })
16106
- }), ay = Me.objectRef("ResponseItem").implement({
16106
+ }), ly = Me.objectRef("ResponseItem").implement({
16107
16107
  fields: (t) => ({
16108
16108
  statusCode: t.exposeString("statusCode"),
16109
16109
  description: t.exposeString("description", { nullable: !0 }),
@@ -16126,11 +16126,11 @@ const Qm = (t) => {
16126
16126
  }
16127
16127
  }),
16128
16128
  parameters: t.expose("parameters", {
16129
- type: [sy],
16129
+ type: [ay],
16130
16130
  nullable: !0
16131
16131
  }),
16132
16132
  requestBody: t.field({
16133
- type: oy,
16133
+ type: uy,
16134
16134
  resolve: (e) => {
16135
16135
  var n, i, r;
16136
16136
  return {
@@ -16153,7 +16153,7 @@ const Qm = (t) => {
16153
16153
  nullable: !0
16154
16154
  }),
16155
16155
  responses: t.field({
16156
- type: [ay],
16156
+ type: [ly],
16157
16157
  resolve: (e) => Object.entries(e.responses ?? {}).map(
16158
16158
  ([n, i]) => ({
16159
16159
  statusCode: n,
@@ -16173,7 +16173,7 @@ const Qm = (t) => {
16173
16173
  )
16174
16174
  }),
16175
16175
  tags: t.field({
16176
- type: [ny],
16176
+ type: [ry],
16177
16177
  resolve: (e, n, i) => {
16178
16178
  var r;
16179
16179
  return (r = e.tags) == null ? void 0 : r.map((s) => {
@@ -16188,7 +16188,7 @@ const Qm = (t) => {
16188
16188
  }),
16189
16189
  deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
16190
16190
  })
16191
- }), uy = Me.objectRef("Schema").implement({
16191
+ }), cy = Me.objectRef("Schema").implement({
16192
16192
  fields: (t) => ({
16193
16193
  openapi: t.string({ resolve: (e) => e.openapi }),
16194
16194
  url: t.string({ resolve: (e) => {
@@ -16196,7 +16196,7 @@ const Qm = (t) => {
16196
16196
  return ((i = (n = e.servers) == null ? void 0 : n.at(0)) == null ? void 0 : i.url) ?? "/";
16197
16197
  } }),
16198
16198
  servers: t.field({
16199
- type: [ey],
16199
+ type: [ny],
16200
16200
  resolve: (e) => e.servers ?? []
16201
16201
  }),
16202
16202
  title: t.string({ resolve: (e) => e.info.title }),
@@ -16206,7 +16206,7 @@ const Qm = (t) => {
16206
16206
  nullable: !0
16207
16207
  }),
16208
16208
  paths: t.field({
16209
- type: [ty],
16209
+ type: [iy],
16210
16210
  resolve: (e) => Object.entries(e.paths ?? {}).map(([n, i]) => ({
16211
16211
  path: n,
16212
16212
  methods: Object.keys(i)
@@ -16216,7 +16216,7 @@ const Qm = (t) => {
16216
16216
  args: {
16217
16217
  name: t.arg.string()
16218
16218
  },
16219
- type: [Zm],
16219
+ type: [ty],
16220
16220
  resolve: (e, n) => {
16221
16221
  const i = [...xl(e), { name: "" }];
16222
16222
  return n.name ? i.filter((r) => r.name === n.name) : i;
@@ -16235,42 +16235,48 @@ const Qm = (t) => {
16235
16235
  )
16236
16236
  })
16237
16237
  })
16238
- }), ly = async (t) => {
16239
- const e = gm(t);
16240
- return await Km.forceFetch(e, { context: t });
16241
- }, cy = Me.enumType("SchemaType", {
16238
+ }), fy = async (t) => {
16239
+ const e = ym(t);
16240
+ return await Zm.forceFetch(e, { context: t });
16241
+ }, dy = Me.enumType("SchemaType", {
16242
16242
  values: ["url", "file", "raw"]
16243
16243
  });
16244
16244
  Me.queryType({
16245
16245
  fields: (t) => ({
16246
16246
  // https://tan-cow-main-bce8a06.d2.zuplo.dev/openapi
16247
16247
  schema: t.field({
16248
- type: uy,
16248
+ type: cy,
16249
16249
  args: {
16250
- type: t.arg({ type: cy, required: !0 }),
16250
+ type: t.arg({ type: dy, required: !0 }),
16251
16251
  input: t.arg({ type: ci, required: !0 })
16252
16252
  },
16253
16253
  resolve: async (e, n, i) => {
16254
- const r = await ly(n.input);
16254
+ const r = await fy(n.input);
16255
16255
  return i.schema = r, r;
16256
16256
  }
16257
16257
  })
16258
16258
  })
16259
16259
  });
16260
- const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16260
+ const hy = Me.toSchema(), py = (t) => pm({ schema: hy, ...t }), gy = () => py({
16261
16261
  plugins: [
16262
16262
  // eslint-disable-next-line react-hooks/rules-of-hooks
16263
- ac({
16263
+ lc({
16264
16264
  logFn: (t, { args: e }) => {
16265
16265
  }
16266
16266
  })
16267
16267
  ]
16268
- }), py = hy(), gy = () => new Qa({
16268
+ }), my = gy(), yy = (
16269
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
16270
+ typeof window < "u" ? window.__URQL_DATA__ : void 0
16271
+ ), kl = Ml({
16272
+ isClient: typeof window < "u",
16273
+ initialState: yy
16274
+ }), by = () => new Qa({
16269
16275
  url: "/__z/graphql",
16270
16276
  // Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
16271
16277
  fetch: async (t, e) => {
16272
16278
  if (!(e != null && e.body)) throw new Error("No body");
16273
- return await py.fetch(
16279
+ return await my.fetch(
16274
16280
  new Request("http://localhost/__z/graphql", {
16275
16281
  method: "POST",
16276
16282
  body: e.body,
@@ -16288,13 +16294,14 @@ const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16288
16294
  console.error(t), console.groupCollapsed("Operation info"), console.log("body", (n = e.query.loc) == null ? void 0 : n.source.body.trim()), console.log("variables", e.variables), console.groupEnd();
16289
16295
  }
16290
16296
  }),
16297
+ kl,
16291
16298
  Ya
16292
16299
  ]
16293
- }), my = Jl(), Ay = ({
16300
+ }), wy = Xl(), Ry = ({
16294
16301
  useMemoryClient: t
16295
16302
  }) => {
16296
16303
  if (t || typeof SharedWorker > "u")
16297
- return gy();
16304
+ return by();
16298
16305
  const e = new SharedWorker(new URL(
16299
16306
  /* @vite-ignore */
16300
16307
  "./assets/worker-YA-aCP3P.js",
@@ -16305,7 +16312,7 @@ const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16305
16312
  e.onerror = (r) => {
16306
16313
  console.error(r);
16307
16314
  }, e.port.start();
16308
- const [n, i] = Xl();
16315
+ const [n, i] = ec();
16309
16316
  return e.port.onmessage = (r) => {
16310
16317
  i(r.data.id, r.data.body);
16311
16318
  }, new Qa({
@@ -16313,7 +16320,7 @@ const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16313
16320
  // Custom fetch to send the GraphQL request to the worker and convert the response back to a `Response` object
16314
16321
  fetch: async (r, s) => {
16315
16322
  if (!(s != null && s.body)) throw new Error("No body");
16316
- const o = my();
16323
+ const o = wy();
16317
16324
  e.port.postMessage({
16318
16325
  id: o,
16319
16326
  body: s.body
@@ -16333,11 +16340,12 @@ const fy = Me.toSchema(), dy = (t) => dm({ schema: fy, ...t }), hy = () => dy({
16333
16340
  console.error(r), console.groupCollapsed("Operation info"), console.log("body", (o = s.query.loc) == null ? void 0 : o.source.body.trim()), console.log("variables", s.variables), console.groupEnd();
16334
16341
  }
16335
16342
  }),
16343
+ kl,
16336
16344
  Ya
16337
16345
  ]
16338
16346
  });
16339
16347
  };
16340
16348
  export {
16341
- Ay as createClient
16349
+ Ry as createClient
16342
16350
  };
16343
16351
  //# sourceMappingURL=zudoku.openapi-worker.js.map