zudoku 0.3.0-dev.99 → 0.3.1-dev.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.
- package/dist/app/demo.js +5 -9
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +9 -7
- package/dist/app/main.js.map +1 -1
- package/dist/app/standalone.js +12 -8
- package/dist/app/standalone.js.map +1 -1
- package/dist/cli/dev/handler.js +1 -1
- package/dist/config/validators/SidebarSchema.js +9 -4
- package/dist/config/validators/SidebarSchema.js.map +1 -1
- package/dist/lib/components/ClientOnly.d.ts +3 -0
- package/dist/lib/components/ClientOnly.js +7 -0
- package/dist/lib/components/ClientOnly.js.map +1 -0
- package/dist/lib/components/Header.js +3 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Markdown.js +3 -2
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/Search.js +5 -8
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/SlotletProvider.js +7 -2
- package/dist/lib/components/SlotletProvider.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +6 -2
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +2 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +1 -1
- package/dist/lib/core/plugins.js +1 -1
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/oas/graphql/index.js +18 -3
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +5 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -1
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +5 -9
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.d.ts +3 -1
- package/dist/lib/plugins/openapi/Sidecar.js +11 -5
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +1 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.js +2 -3
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +5 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +13 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +28 -0
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +6 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +58 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
- package/dist/lib/plugins/openapi/schema/utils.js +6 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -0
- package/dist/lib/plugins/search-inkeep/index.js +3 -5
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/themeToggle.d.ts +1 -0
- package/dist/lib/themeToggle.js +7 -0
- package/dist/lib/themeToggle.js.map +1 -0
- package/dist/lib/util/MdxComponents.js +4 -4
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/vite/config.d.ts +4 -5
- package/dist/vite/config.js +7 -4
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +2 -2
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/dev-server.d.ts +0 -1
- package/dist/vite/dev-server.js +2 -21
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/html.js +2 -11
- package/dist/vite/html.js.map +1 -1
- package/dist/vite/plugin-api-keys.d.ts +3 -3
- package/dist/vite/plugin-api-keys.js +2 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +3 -3
- package/dist/vite/plugin-api.js +2 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +3 -3
- package/dist/vite/plugin-auth.js +2 -1
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +3 -3
- package/dist/vite/plugin-component.js +17 -14
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -0
- package/dist/vite/plugin-config-reload.js +24 -0
- package/dist/vite/plugin-config-reload.js.map +1 -0
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-css.d.ts +3 -3
- package/dist/vite/plugin-custom-css.js +2 -1
- package/dist/vite/plugin-custom-css.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +3 -3
- package/dist/vite/plugin-docs.js +3 -2
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-html-transform.d.ts +2 -0
- package/dist/vite/plugin-html-transform.js +15 -0
- package/dist/vite/plugin-html-transform.js.map +1 -0
- package/dist/vite/plugin-mdx.d.ts +3 -3
- package/dist/vite/plugin-mdx.js +2 -1
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-metadata.d.ts +1 -1
- package/dist/vite/plugin-redirect.d.ts +3 -3
- package/dist/vite/plugin-redirect.js +2 -1
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +3 -3
- package/dist/vite/plugin-sidebar.js +5 -4
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin.d.ts +3 -2
- package/dist/vite/plugin.js +16 -11
- package/dist/vite/plugin.js.map +1 -1
- package/lib/{CategoryHeading-BWq12Bfa.js → CategoryHeading-z15xh7Jb.js} +2 -2
- package/lib/{CategoryHeading-BWq12Bfa.js.map → CategoryHeading-z15xh7Jb.js.map} +1 -1
- package/lib/{Combination-D-9IH0zy.js → Combination-DTfV-c98.js} +2 -2
- package/lib/{Combination-D-9IH0zy.js.map → Combination-DTfV-c98.js.map} +1 -1
- package/lib/{Input-HmAaR6kw.js → Input-DB9VROFR.js} +3 -3
- package/lib/{Input-HmAaR6kw.js.map → Input-DB9VROFR.js.map} +1 -1
- package/lib/Markdown-CEccPMI_.js +20508 -0
- package/lib/Markdown-CEccPMI_.js.map +1 -0
- package/lib/{MdxPage-oN3huD58.js → MdxPage-CnqOoqvp.js} +12 -15
- package/lib/MdxPage-CnqOoqvp.js.map +1 -0
- package/lib/OperationList-Cxiw2Z-v.js +457 -0
- package/lib/OperationList-Cxiw2Z-v.js.map +1 -0
- package/lib/{Route-DAF15JAU.js → Route-DfAFiR7v.js} +2 -2
- package/lib/{Route-DAF15JAU.js.map → Route-DfAFiR7v.js.map} +1 -1
- package/lib/SlotletProvider-ByLSCZQa.js +262 -0
- package/lib/SlotletProvider-ByLSCZQa.js.map +1 -0
- package/lib/{Spinner-BCz1kNGw.js → Spinner-BT_AYFrA.js} +3 -3
- package/lib/{Spinner-BCz1kNGw.js.map → Spinner-BT_AYFrA.js.map} +1 -1
- package/lib/assets/{worker-CR7aeKop.js → worker-CzHUifWA.js} +710 -703
- package/lib/assets/{worker-CR7aeKop.js.map → worker-CzHUifWA.js.map} +1 -1
- package/lib/{index-CtKkHGcd.js → index-D-9zqIOh.js} +1159 -1147
- package/lib/index-D-9zqIOh.js.map +1 -0
- package/lib/{index-D-9Z7HSn.js → index-Dz4LyXZI.js} +3 -3
- package/lib/{index-D-9Z7HSn.js.map → index-Dz4LyXZI.js.map} +1 -1
- package/lib/zudoku.components.js +775 -759
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +734 -727
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-search-inkeep.js +23 -22
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/package.json +99 -78
- package/src/app/demo-cdn.html +1 -1
- package/src/app/demo.html +1 -1
- package/src/app/demo.tsx +7 -9
- package/src/app/main.css +22 -0
- package/src/app/main.tsx +11 -8
- package/src/app/standalone.html +1 -1
- package/src/app/standalone.tsx +13 -8
- package/src/lib/components/ClientOnly.tsx +13 -0
- package/src/lib/components/Header.tsx +3 -0
- package/src/lib/components/Markdown.tsx +3 -2
- package/src/lib/components/Search.tsx +7 -7
- package/src/lib/components/SlotletProvider.tsx +10 -5
- package/src/lib/components/navigation/SidebarCategory.tsx +13 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +20 -18
- package/src/lib/core/plugins.ts +2 -2
- package/src/lib/oas/graphql/index.ts +26 -7
- package/src/lib/plugins/markdown/MdxPage.tsx +0 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +22 -17
- package/src/lib/plugins/openapi/ParameterList.tsx +10 -8
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +51 -39
- package/src/lib/plugins/openapi/Sidecar.tsx +34 -19
- package/src/lib/plugins/openapi/index.tsx +1 -1
- package/src/lib/plugins/openapi/playground/Playground.tsx +3 -6
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -5
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +126 -0
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +172 -0
- package/src/lib/plugins/openapi/schema/utils.ts +10 -0
- package/src/lib/plugins/search-inkeep/index.tsx +11 -9
- package/src/lib/themeToggle.ts +7 -0
- package/src/lib/util/MdxComponents.tsx +12 -12
- package/LICENSE.md +0 -21
- package/dist/lib/plugins/openapi/SchemaListView.d.ts +0 -7
- package/dist/lib/plugins/openapi/SchemaListView.js +0 -27
- package/dist/lib/plugins/openapi/SchemaListView.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItem.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItem.js +0 -25
- package/dist/lib/plugins/openapi/SchemaListViewItem.js.map +0 -1
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.d.ts +0 -8
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js +0 -17
- package/dist/lib/plugins/openapi/SchemaListViewItemGroup.js.map +0 -1
- package/lib/Markdown-B_Gax7at.js +0 -14108
- package/lib/Markdown-B_Gax7at.js.map +0 -1
- package/lib/MdxPage-oN3huD58.js.map +0 -1
- package/lib/OperationList-Ctj0ihBN.js +0 -448
- package/lib/OperationList-Ctj0ihBN.js.map +0 -1
- package/lib/SlotletProvider-CzMAO73_.js +0 -82
- package/lib/SlotletProvider-CzMAO73_.js.map +0 -1
- package/lib/index-CtKkHGcd.js.map +0 -1
- package/src/lib/plugins/openapi/SchemaListView.tsx +0 -75
- package/src/lib/plugins/openapi/SchemaListViewItem.tsx +0 -125
- package/src/lib/plugins/openapi/SchemaListViewItemGroup.tsx +0 -63
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
1
|
+
var cu = Object.defineProperty;
|
|
2
2
|
var ps = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var te = (t, e, n) =>
|
|
5
|
+
var fu = (t, e, n) => e in t ? cu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var te = (t, e, n) => fu(t, typeof e != "symbol" ? e + "" : e, n), ei = (t, e, n) => e.has(t) || ps("Cannot " + n);
|
|
7
7
|
var m = (t, e, n) => (ei(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ie = (t, e, n) => e.has(t) ? ps("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), J = (t, e, n, r) => (ei(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Q = (t, e, n) => (ei(t, e, "access private method"), n);
|
|
8
8
|
var er = (t, e, n, r) => ({
|
|
9
9
|
set _(i) {
|
|
@@ -13,7 +13,7 @@ var er = (t, e, n, r) => ({
|
|
|
13
13
|
return m(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
function
|
|
16
|
+
function du(t, e) {
|
|
17
17
|
return e.forEach(function(n) {
|
|
18
18
|
n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
|
|
19
19
|
if (r !== "default" && !(r in t)) {
|
|
@@ -28,11 +28,11 @@ function fu(t, e) {
|
|
|
28
28
|
});
|
|
29
29
|
}), Object.freeze(t);
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
function
|
|
31
|
+
const hu = /* @__PURE__ */ new WeakMap(), ti = Symbol("ENVELOP_IS_INTROSPECTION");
|
|
32
|
+
function pu(t) {
|
|
33
33
|
return (typeof t == "string" ? t : t.body).indexOf("__schema") !== -1;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function gu(t) {
|
|
36
36
|
return t.length === 1 ? t[0] : {
|
|
37
37
|
schema: t[0],
|
|
38
38
|
document: t[1],
|
|
@@ -44,7 +44,7 @@ function pu(t) {
|
|
|
44
44
|
subscribeFieldResolver: t[7]
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
const gs = (t) => (...e) => t(
|
|
47
|
+
const gs = (t) => (...e) => t(gu(e));
|
|
48
48
|
function ms(t, e) {
|
|
49
49
|
const n = t[Symbol.asyncIterator]();
|
|
50
50
|
async function r(s) {
|
|
@@ -83,7 +83,7 @@ function ms(t, e) {
|
|
|
83
83
|
};
|
|
84
84
|
return i;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function mu(t) {
|
|
87
87
|
return t.length === 1 ? t[0] : {
|
|
88
88
|
schema: t[0],
|
|
89
89
|
document: t[1],
|
|
@@ -95,7 +95,7 @@ function gu(t) {
|
|
|
95
95
|
typeResolver: t[7]
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
const ys = (t) => (...e) => t(
|
|
98
|
+
const ys = (t) => (...e) => t(mu(e));
|
|
99
99
|
function wt(t) {
|
|
100
100
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
101
101
|
}
|
|
@@ -134,7 +134,7 @@ function vs(t, e) {
|
|
|
134
134
|
};
|
|
135
135
|
return i;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function yu(t, e) {
|
|
138
138
|
const n = t[Symbol.asyncIterator](), r = {
|
|
139
139
|
[Symbol.asyncIterator]() {
|
|
140
140
|
return r;
|
|
@@ -164,7 +164,7 @@ function mu(t, e) {
|
|
|
164
164
|
function tr(t) {
|
|
165
165
|
throw Error(`No \`${t}\` function found! Register it using "useEngine" plugin.`);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function bu({ plugins: t }) {
|
|
168
168
|
let e = null, n = !1;
|
|
169
169
|
const r = () => tr("parse"), i = () => tr("validate"), s = () => tr("execute"), o = () => tr("subscribe"), a = (A, x = -1) => {
|
|
170
170
|
if (e = A, n)
|
|
@@ -247,7 +247,7 @@ function yu({ plugins: t }) {
|
|
|
247
247
|
throw new Error("Failed to parse document.");
|
|
248
248
|
if (R instanceof Error)
|
|
249
249
|
throw R;
|
|
250
|
-
return
|
|
250
|
+
return hu.set(R, x.toString()), R;
|
|
251
251
|
} : () => r, g = l.validate.length ? (A) => (x, F, R, w, O) => {
|
|
252
252
|
let h = R ? [...R] : void 0, y = i, f = null;
|
|
253
253
|
const I = A, L = [];
|
|
@@ -381,7 +381,7 @@ function yu({ plugins: t }) {
|
|
|
381
381
|
})), y.length && wt(O) && (O = vs(O, () => {
|
|
382
382
|
for (const f of y)
|
|
383
383
|
f();
|
|
384
|
-
})), R.length && wt(O) && (O =
|
|
384
|
+
})), R.length && wt(O) && (O = yu(O, (f) => {
|
|
385
385
|
let I = f;
|
|
386
386
|
for (const L of R)
|
|
387
387
|
L({
|
|
@@ -463,11 +463,11 @@ function yu({ plugins: t }) {
|
|
|
463
463
|
contextFactory: S
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function vu(t) {
|
|
467
467
|
return t != null;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
470
|
-
const e = t.plugins.filter(
|
|
469
|
+
function Eu(t) {
|
|
470
|
+
const e = t.plugins.filter(vu), n = bu({
|
|
471
471
|
plugins: e
|
|
472
472
|
}), r = (i = {}) => {
|
|
473
473
|
const s = n;
|
|
@@ -484,14 +484,14 @@ function vu(t) {
|
|
|
484
484
|
}
|
|
485
485
|
const Es = {
|
|
486
486
|
logFn: console.log
|
|
487
|
-
},
|
|
487
|
+
}, wu = (t = Es) => {
|
|
488
488
|
const e = {
|
|
489
489
|
DEFAULT_OPTIONS: Es,
|
|
490
490
|
...t
|
|
491
491
|
};
|
|
492
492
|
return {
|
|
493
493
|
onParse({ extendContext: n, params: r }) {
|
|
494
|
-
e.skipIntrospection &&
|
|
494
|
+
e.skipIntrospection && pu(r.source) && n({
|
|
495
495
|
[ti]: !0
|
|
496
496
|
});
|
|
497
497
|
},
|
|
@@ -512,14 +512,14 @@ const Es = {
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
},
|
|
516
|
-
function
|
|
515
|
+
}, Tu = "Unexpected error.";
|
|
516
|
+
function Su(t) {
|
|
517
517
|
return t instanceof Error && t.name === "GraphQLError";
|
|
518
518
|
}
|
|
519
519
|
function Fo(t) {
|
|
520
|
-
return
|
|
520
|
+
return Su(t) ? t.originalError != null ? Fo(t.originalError) : !0 : !1;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Iu(t, e, n) {
|
|
523
523
|
const r = new Error(t);
|
|
524
524
|
if (r.name = "GraphQLError", n) {
|
|
525
525
|
const i = e instanceof Error ? { message: e.message, stack: e.stack } : { message: String(e) };
|
|
@@ -538,13 +538,13 @@ function Su(t, e, n) {
|
|
|
538
538
|
}
|
|
539
539
|
}), r;
|
|
540
540
|
}
|
|
541
|
-
const
|
|
541
|
+
const _u = (t) => (e, n) => Fo(e) ? e : Iu(n, e, t);
|
|
542
542
|
var _o, Oo;
|
|
543
|
-
const
|
|
543
|
+
const Ou = ((Oo = (_o = globalThis.process) == null ? void 0 : _o.env) == null ? void 0 : Oo.NODE_ENV) === "development", Nu = _u(Ou), Au = (t, e) => ({ result: n, setResult: r }) => {
|
|
544
544
|
n.errors != null && r({ ...n, errors: n.errors.map((i) => t(i, e)) });
|
|
545
545
|
};
|
|
546
|
-
function
|
|
547
|
-
const e = (t == null ? void 0 : t.maskError) ??
|
|
546
|
+
function xu(t) {
|
|
547
|
+
const e = (t == null ? void 0 : t.maskError) ?? Nu, n = (t == null ? void 0 : t.errorMessage) || Tu, r = Au(e, n);
|
|
548
548
|
return {
|
|
549
549
|
onPluginInit(i) {
|
|
550
550
|
i.registerContextErrorHandler(({ error: s, setError: o }) => {
|
|
@@ -570,11 +570,11 @@ function Au(t) {
|
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const Fu = (t) => ({
|
|
574
574
|
async onContextBuilding({ context: e, extendContext: n }) {
|
|
575
575
|
n(await t(e));
|
|
576
576
|
}
|
|
577
|
-
}),
|
|
577
|
+
}), Lu = (t) => ({
|
|
578
578
|
onExecute: ({ setExecuteFn: e }) => {
|
|
579
579
|
t.execute && e(t.execute);
|
|
580
580
|
},
|
|
@@ -588,7 +588,7 @@ const xu = (t) => ({
|
|
|
588
588
|
onSubscribe: ({ setSubscribeFn: e }) => {
|
|
589
589
|
t.subscribe && e(t.subscribe);
|
|
590
590
|
}
|
|
591
|
-
}),
|
|
591
|
+
}), Cu = Object.freeze({
|
|
592
592
|
major: 16,
|
|
593
593
|
minor: 9,
|
|
594
594
|
patch: 0,
|
|
@@ -598,7 +598,7 @@ function se(t, e) {
|
|
|
598
598
|
if (!!!t)
|
|
599
599
|
throw new Error(e);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Ru(t) {
|
|
602
602
|
return typeof (t == null ? void 0 : t.then) == "function";
|
|
603
603
|
}
|
|
604
604
|
function It(t) {
|
|
@@ -610,10 +610,10 @@ function Tt(t, e) {
|
|
|
610
610
|
e ?? "Unexpected invariant triggered."
|
|
611
611
|
);
|
|
612
612
|
}
|
|
613
|
-
const
|
|
613
|
+
const ku = /\r\n|[\n\r]/g;
|
|
614
614
|
function gi(t, e) {
|
|
615
615
|
let n = 0, r = 1;
|
|
616
|
-
for (const i of t.body.matchAll(
|
|
616
|
+
for (const i of t.body.matchAll(ku)) {
|
|
617
617
|
if (typeof i.index == "number" || Tt(!1), i.index >= e)
|
|
618
618
|
break;
|
|
619
619
|
n = i.index + i[0].length, r += 1;
|
|
@@ -623,7 +623,7 @@ function gi(t, e) {
|
|
|
623
623
|
column: e + 1 - n
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function Du(t) {
|
|
627
627
|
return Lo(
|
|
628
628
|
t.source,
|
|
629
629
|
gi(t.source, t.start)
|
|
@@ -656,7 +656,7 @@ function ws(t) {
|
|
|
656
656
|
return e.map(([r, i]) => r.padStart(n) + (i ? " " + i : "")).join(`
|
|
657
657
|
`);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function $u(t) {
|
|
660
660
|
const e = t[0];
|
|
661
661
|
return e == null || "kind" in e || "length" in e ? {
|
|
662
662
|
nodes: e,
|
|
@@ -708,7 +708,7 @@ let D = class Co extends Error {
|
|
|
708
708
|
*/
|
|
709
709
|
constructor(e, ...n) {
|
|
710
710
|
var r, i, s;
|
|
711
|
-
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } =
|
|
711
|
+
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } = $u(n);
|
|
712
712
|
super(e), this.name = "GraphQLError", this.path = l ?? void 0, this.originalError = c ?? void 0, this.nodes = Ts(
|
|
713
713
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
714
714
|
);
|
|
@@ -758,7 +758,7 @@ let D = class Co extends Error {
|
|
|
758
758
|
for (const n of this.nodes)
|
|
759
759
|
n.loc && (e += `
|
|
760
760
|
|
|
761
|
-
` +
|
|
761
|
+
` + Du(n.loc));
|
|
762
762
|
else if (this.source && this.locations)
|
|
763
763
|
for (const n of this.locations)
|
|
764
764
|
e += `
|
|
@@ -782,7 +782,7 @@ function Ne(t, e, n) {
|
|
|
782
782
|
positions: [e]
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
-
class
|
|
785
|
+
class ju {
|
|
786
786
|
/**
|
|
787
787
|
* The character offset at which this Node begins.
|
|
788
788
|
*/
|
|
@@ -927,10 +927,10 @@ const ko = {
|
|
|
927
927
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
928
928
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
929
929
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
930
|
-
},
|
|
930
|
+
}, Pu = new Set(Object.keys(ko));
|
|
931
931
|
function mi(t) {
|
|
932
932
|
const e = t == null ? void 0 : t.kind;
|
|
933
|
-
return typeof e == "string" &&
|
|
933
|
+
return typeof e == "string" && Pu.has(e);
|
|
934
934
|
}
|
|
935
935
|
var Me;
|
|
936
936
|
(function(t) {
|
|
@@ -960,12 +960,12 @@ function Di(t) {
|
|
|
960
960
|
function $o(t) {
|
|
961
961
|
return Do(t) || Un(t) || t === 95;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Mu(t) {
|
|
964
964
|
var e;
|
|
965
965
|
let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
|
|
966
966
|
for (let o = 0; o < t.length; ++o) {
|
|
967
967
|
var s;
|
|
968
|
-
const a = t[o], u =
|
|
968
|
+
const a = t[o], u = Uu(a);
|
|
969
969
|
u !== a.length && (r = (s = r) !== null && s !== void 0 ? s : o, i = o, o !== 0 && u < n && (n = u));
|
|
970
970
|
}
|
|
971
971
|
return t.map((o, a) => a === 0 ? o : o.slice(n)).slice(
|
|
@@ -973,13 +973,13 @@ function Pu(t) {
|
|
|
973
973
|
i + 1
|
|
974
974
|
);
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function Uu(t) {
|
|
977
977
|
let e = 0;
|
|
978
978
|
for (; e < t.length && yi(t.charCodeAt(e)); )
|
|
979
979
|
++e;
|
|
980
980
|
return e;
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Vu(t, e) {
|
|
983
983
|
const n = t.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, s = r.length > 1 && r.slice(1).every((S) => S.length === 0 || yi(S.charCodeAt(0))), o = n.endsWith('\\"""'), a = t.endsWith('"') && !o, u = t.endsWith("\\"), l = a || u, c = (
|
|
984
984
|
// add leading and trailing new lines only if it improves readability
|
|
985
985
|
!i || t.length > 70 || l || s || o
|
|
@@ -994,7 +994,7 @@ var k;
|
|
|
994
994
|
(function(t) {
|
|
995
995
|
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";
|
|
996
996
|
})(k || (k = {}));
|
|
997
|
-
class
|
|
997
|
+
class Bu {
|
|
998
998
|
/**
|
|
999
999
|
* The previously focused non-ignored token.
|
|
1000
1000
|
*/
|
|
@@ -1031,14 +1031,14 @@ class Vu {
|
|
|
1031
1031
|
if (e.next)
|
|
1032
1032
|
e = e.next;
|
|
1033
1033
|
else {
|
|
1034
|
-
const n =
|
|
1034
|
+
const n = qu(this, e.end);
|
|
1035
1035
|
e.next = n, n.prev = e, e = n;
|
|
1036
1036
|
}
|
|
1037
1037
|
while (e.kind === k.COMMENT);
|
|
1038
1038
|
return e;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function Gu(t) {
|
|
1042
1042
|
return t === k.BANG || t === k.DOLLAR || t === k.AMP || t === k.PAREN_L || t === k.PAREN_R || t === k.SPREAD || t === k.COLON || t === k.EQUALS || t === k.AT || t === k.BRACKET_L || t === k.BRACKET_R || t === k.BRACE_L || t === k.PIPE || t === k.BRACE_R;
|
|
1043
1043
|
}
|
|
1044
1044
|
function vn(t) {
|
|
@@ -1067,7 +1067,7 @@ function be(t, e, n, r, i) {
|
|
|
1067
1067
|
const s = t.line, o = 1 + n - t.lineStart;
|
|
1068
1068
|
return new Ro(e, n, r, s, o, i);
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function qu(t, e) {
|
|
1071
1071
|
const n = t.source.body, r = n.length;
|
|
1072
1072
|
let i = e;
|
|
1073
1073
|
for (; i < r; ) {
|
|
@@ -1086,7 +1086,7 @@ function Gu(t, e) {
|
|
|
1086
1086
|
n.charCodeAt(i + 1) === 10 ? i += 2 : ++i, ++t.line, t.lineStart = i;
|
|
1087
1087
|
continue;
|
|
1088
1088
|
case 35:
|
|
1089
|
-
return
|
|
1089
|
+
return Qu(t, i);
|
|
1090
1090
|
case 33:
|
|
1091
1091
|
return be(t, k.BANG, i, i + 1);
|
|
1092
1092
|
case 36:
|
|
@@ -1118,12 +1118,12 @@ function Gu(t, e) {
|
|
|
1118
1118
|
case 125:
|
|
1119
1119
|
return be(t, k.BRACE_R, i, i + 1);
|
|
1120
1120
|
case 34:
|
|
1121
|
-
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ?
|
|
1121
|
+
return n.charCodeAt(i + 1) === 34 && n.charCodeAt(i + 2) === 34 ? Ku(t, i) : Yu(t, i);
|
|
1122
1122
|
}
|
|
1123
1123
|
if (Un(s) || s === 45)
|
|
1124
|
-
return
|
|
1124
|
+
return zu(t, i, s);
|
|
1125
1125
|
if (Di(s))
|
|
1126
|
-
return
|
|
1126
|
+
return Xu(t, i);
|
|
1127
1127
|
throw Ne(
|
|
1128
1128
|
t.source,
|
|
1129
1129
|
i,
|
|
@@ -1132,7 +1132,7 @@ function Gu(t, e) {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
return be(t, k.EOF, r, r);
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function Qu(t, e) {
|
|
1136
1136
|
const n = t.source.body, r = n.length;
|
|
1137
1137
|
let i = e + 1;
|
|
1138
1138
|
for (; i < r; ) {
|
|
@@ -1154,7 +1154,7 @@ function qu(t, e) {
|
|
|
1154
1154
|
n.slice(e + 1, i)
|
|
1155
1155
|
);
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function zu(t, e, n) {
|
|
1158
1158
|
const r = t.source.body;
|
|
1159
1159
|
let i = e, s = n, o = !1;
|
|
1160
1160
|
if (s === 45 && (s = r.charCodeAt(++i)), s === 48) {
|
|
@@ -1202,7 +1202,7 @@ function ni(t, e, n) {
|
|
|
1202
1202
|
++i;
|
|
1203
1203
|
return i;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function Yu(t, e) {
|
|
1206
1206
|
const n = t.source.body, r = n.length;
|
|
1207
1207
|
let i = e + 1, s = i, o = "";
|
|
1208
1208
|
for (; i < r; ) {
|
|
@@ -1211,7 +1211,7 @@ function zu(t, e) {
|
|
|
1211
1211
|
return o += n.slice(s, i), be(t, k.STRING, e, i + 1, o);
|
|
1212
1212
|
if (a === 92) {
|
|
1213
1213
|
o += n.slice(s, i);
|
|
1214
|
-
const u = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ?
|
|
1214
|
+
const u = n.charCodeAt(i + 1) === 117 ? n.charCodeAt(i + 2) === 123 ? Ju(t, i) : Hu(t, i) : Wu(t, i);
|
|
1215
1215
|
o += u.value, i += u.size, s = i;
|
|
1216
1216
|
continue;
|
|
1217
1217
|
}
|
|
@@ -1233,7 +1233,7 @@ function zu(t, e) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
throw Ne(t.source, i, "Unterminated string.");
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function Ju(t, e) {
|
|
1237
1237
|
const n = t.source.body;
|
|
1238
1238
|
let r = 0, i = 3;
|
|
1239
1239
|
for (; i < 12; ) {
|
|
@@ -1258,7 +1258,7 @@ function Yu(t, e) {
|
|
|
1258
1258
|
)}".`
|
|
1259
1259
|
);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Hu(t, e) {
|
|
1262
1262
|
const n = t.source.body, r = Ss(n, e + 2);
|
|
1263
1263
|
if (vn(r))
|
|
1264
1264
|
return {
|
|
@@ -1285,7 +1285,7 @@ function Ss(t, e) {
|
|
|
1285
1285
|
function xn(t) {
|
|
1286
1286
|
return t >= 48 && t <= 57 ? t - 48 : t >= 65 && t <= 70 ? t - 55 : t >= 97 && t <= 102 ? t - 87 : -1;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Wu(t, e) {
|
|
1289
1289
|
const n = t.source.body;
|
|
1290
1290
|
switch (n.charCodeAt(e + 1)) {
|
|
1291
1291
|
case 34:
|
|
@@ -1339,7 +1339,7 @@ function Hu(t, e) {
|
|
|
1339
1339
|
)}".`
|
|
1340
1340
|
);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Ku(t, e) {
|
|
1343
1343
|
const n = t.source.body, r = n.length;
|
|
1344
1344
|
let i = t.lineStart, s = e + 3, o = s, a = "";
|
|
1345
1345
|
const u = [];
|
|
@@ -1353,7 +1353,7 @@ function Wu(t, e) {
|
|
|
1353
1353
|
e,
|
|
1354
1354
|
s + 3,
|
|
1355
1355
|
// Return a string of the lines joined with U+000A.
|
|
1356
|
-
|
|
1356
|
+
Mu(u).join(`
|
|
1357
1357
|
`)
|
|
1358
1358
|
);
|
|
1359
1359
|
return t.line += u.length - 1, t.lineStart = i, c;
|
|
@@ -1382,7 +1382,7 @@ function Wu(t, e) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
throw Ne(t.source, s, "Unterminated string.");
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Xu(t, e) {
|
|
1386
1386
|
const n = t.source.body, r = n.length;
|
|
1387
1387
|
let i = e + 1;
|
|
1388
1388
|
for (; i < r; ) {
|
|
@@ -1400,7 +1400,7 @@ function Ku(t, e) {
|
|
|
1400
1400
|
n.slice(e, i)
|
|
1401
1401
|
);
|
|
1402
1402
|
}
|
|
1403
|
-
const
|
|
1403
|
+
const Zu = 10, Mo = 2;
|
|
1404
1404
|
function P(t) {
|
|
1405
1405
|
return Pr(t, []);
|
|
1406
1406
|
}
|
|
@@ -1411,45 +1411,45 @@ function Pr(t, e) {
|
|
|
1411
1411
|
case "function":
|
|
1412
1412
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
1413
1413
|
case "object":
|
|
1414
|
-
return
|
|
1414
|
+
return el(t, e);
|
|
1415
1415
|
default:
|
|
1416
1416
|
return String(t);
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function el(t, e) {
|
|
1420
1420
|
if (t === null)
|
|
1421
1421
|
return "null";
|
|
1422
1422
|
if (e.includes(t))
|
|
1423
1423
|
return "[Circular]";
|
|
1424
1424
|
const n = [...e, t];
|
|
1425
|
-
if (
|
|
1425
|
+
if (tl(t)) {
|
|
1426
1426
|
const r = t.toJSON();
|
|
1427
1427
|
if (r !== t)
|
|
1428
1428
|
return typeof r == "string" ? r : Pr(r, n);
|
|
1429
1429
|
} else if (Array.isArray(t))
|
|
1430
|
-
return
|
|
1431
|
-
return
|
|
1430
|
+
return rl(t, n);
|
|
1431
|
+
return nl(t, n);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function tl(t) {
|
|
1434
1434
|
return typeof t.toJSON == "function";
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function nl(t, e) {
|
|
1437
1437
|
const n = Object.entries(t);
|
|
1438
|
-
return n.length === 0 ? "{}" : e.length > Mo ? "[" +
|
|
1438
|
+
return n.length === 0 ? "{}" : e.length > Mo ? "[" + il(t) + "]" : "{ " + n.map(
|
|
1439
1439
|
([i, s]) => i + ": " + Pr(s, e)
|
|
1440
1440
|
).join(", ") + " }";
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function rl(t, e) {
|
|
1443
1443
|
if (t.length === 0)
|
|
1444
1444
|
return "[]";
|
|
1445
1445
|
if (e.length > Mo)
|
|
1446
1446
|
return "[Array]";
|
|
1447
|
-
const n = Math.min(
|
|
1447
|
+
const n = Math.min(Zu, t.length), r = t.length - n, i = [];
|
|
1448
1448
|
for (let s = 0; s < n; ++s)
|
|
1449
1449
|
i.push(Pr(t[s], e));
|
|
1450
1450
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function il(t) {
|
|
1453
1453
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
1454
1454
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
1455
1455
|
const n = t.constructor.name;
|
|
@@ -1458,11 +1458,11 @@ function rl(t) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return e;
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const sl = globalThis.process && // eslint-disable-next-line no-undef
|
|
1462
1462
|
process.env.NODE_ENV === "production", vt = (
|
|
1463
1463
|
/* c8 ignore next 6 */
|
|
1464
1464
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
1465
|
-
|
|
1465
|
+
sl ? function(e, n) {
|
|
1466
1466
|
return e instanceof n;
|
|
1467
1467
|
} : function(e, n) {
|
|
1468
1468
|
if (e instanceof n)
|
|
@@ -1509,16 +1509,16 @@ class Uo {
|
|
|
1509
1509
|
return "Source";
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function ol(t) {
|
|
1513
1513
|
return vt(t, Uo);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1516
|
-
return new
|
|
1515
|
+
function al(t, e) {
|
|
1516
|
+
return new ul(t, e).parseDocument();
|
|
1517
1517
|
}
|
|
1518
|
-
class
|
|
1518
|
+
class ul {
|
|
1519
1519
|
constructor(e, n = {}) {
|
|
1520
|
-
const r =
|
|
1521
|
-
this._lexer = new
|
|
1520
|
+
const r = ol(e) ? e : new Uo(e);
|
|
1521
|
+
this._lexer = new Bu(r), this._options = n, this._tokenCounter = 0;
|
|
1522
1522
|
}
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Converts a name lex token into a name parse node.
|
|
@@ -2485,7 +2485,7 @@ class al {
|
|
|
2485
2485
|
* given parsed object.
|
|
2486
2486
|
*/
|
|
2487
2487
|
node(e, n) {
|
|
2488
|
-
return this._options.noLocation !== !0 && (n.loc = new
|
|
2488
|
+
return this._options.noLocation !== !0 && (n.loc = new ju(
|
|
2489
2489
|
e,
|
|
2490
2490
|
this._lexer.lastToken,
|
|
2491
2491
|
this._lexer.source
|
|
@@ -2621,9 +2621,9 @@ function nr(t) {
|
|
|
2621
2621
|
return Vo(t.kind) + (e != null ? ` "${e}"` : "");
|
|
2622
2622
|
}
|
|
2623
2623
|
function Vo(t) {
|
|
2624
|
-
return
|
|
2624
|
+
return Gu(t) ? `"${t}"` : t;
|
|
2625
2625
|
}
|
|
2626
|
-
const
|
|
2626
|
+
const ll = 5;
|
|
2627
2627
|
function jt(t, e) {
|
|
2628
2628
|
const [n, r] = e ? [t, e] : [void 0, t];
|
|
2629
2629
|
let i = " Did you mean ";
|
|
@@ -2637,7 +2637,7 @@ function jt(t, e) {
|
|
|
2637
2637
|
case 2:
|
|
2638
2638
|
return i + s[0] + " or " + s[1] + "?";
|
|
2639
2639
|
}
|
|
2640
|
-
const o = s.slice(0,
|
|
2640
|
+
const o = s.slice(0, ll), a = o.pop();
|
|
2641
2641
|
return i + o.join(", ") + ", or " + a + "?";
|
|
2642
2642
|
}
|
|
2643
2643
|
function Is(t) {
|
|
@@ -2688,12 +2688,12 @@ function Qn(t, e) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return t.length - e.length;
|
|
2690
2690
|
}
|
|
2691
|
-
const bi = 48,
|
|
2691
|
+
const bi = 48, cl = 57;
|
|
2692
2692
|
function rr(t) {
|
|
2693
|
-
return !isNaN(t) && bi <= t && t <=
|
|
2693
|
+
return !isNaN(t) && bi <= t && t <= cl;
|
|
2694
2694
|
}
|
|
2695
2695
|
function Xt(t, e) {
|
|
2696
|
-
const n = /* @__PURE__ */ Object.create(null), r = new
|
|
2696
|
+
const n = /* @__PURE__ */ Object.create(null), r = new fl(t), i = Math.floor(t.length * 0.4) + 1;
|
|
2697
2697
|
for (const s of e) {
|
|
2698
2698
|
const o = r.measure(s, i);
|
|
2699
2699
|
o !== void 0 && (n[s] = o);
|
|
@@ -2703,7 +2703,7 @@ function Xt(t, e) {
|
|
|
2703
2703
|
return a !== 0 ? a : Qn(s, o);
|
|
2704
2704
|
});
|
|
2705
2705
|
}
|
|
2706
|
-
class
|
|
2706
|
+
class fl {
|
|
2707
2707
|
constructor(e) {
|
|
2708
2708
|
this._input = e, this._inputLowerCase = e.toLowerCase(), this._inputArray = _s(this._inputLowerCase), this._rows = [
|
|
2709
2709
|
new Array(e.length + 1).fill(0),
|
|
@@ -2770,14 +2770,14 @@ function et(t) {
|
|
|
2770
2770
|
e[n] = r;
|
|
2771
2771
|
return e;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2774
|
-
return `"${t.replace(
|
|
2773
|
+
function dl(t) {
|
|
2774
|
+
return `"${t.replace(hl, pl)}"`;
|
|
2775
2775
|
}
|
|
2776
|
-
const
|
|
2777
|
-
function
|
|
2778
|
-
return
|
|
2776
|
+
const hl = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2777
|
+
function pl(t) {
|
|
2778
|
+
return gl[t.charCodeAt(0)];
|
|
2779
2779
|
}
|
|
2780
|
-
const
|
|
2780
|
+
const gl = [
|
|
2781
2781
|
"\\u0000",
|
|
2782
2782
|
"\\u0001",
|
|
2783
2783
|
"\\u0002",
|
|
@@ -3011,7 +3011,7 @@ function $i(t, e, n = ko) {
|
|
|
3011
3011
|
} while (i !== void 0);
|
|
3012
3012
|
return u.length !== 0 ? u[u.length - 1][1] : t;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function ml(t) {
|
|
3015
3015
|
const e = new Array(t.length).fill(null), n = /* @__PURE__ */ Object.create(null);
|
|
3016
3016
|
for (const r of Object.values(T)) {
|
|
3017
3017
|
let i = !1;
|
|
@@ -3065,9 +3065,9 @@ function Or(t, e) {
|
|
|
3065
3065
|
};
|
|
3066
3066
|
}
|
|
3067
3067
|
function pe(t) {
|
|
3068
|
-
return $i(t,
|
|
3068
|
+
return $i(t, bl);
|
|
3069
3069
|
}
|
|
3070
|
-
const
|
|
3070
|
+
const yl = 80, bl = {
|
|
3071
3071
|
Name: {
|
|
3072
3072
|
leave: (t) => t.value
|
|
3073
3073
|
},
|
|
@@ -3103,7 +3103,7 @@ const ml = 80, yl = {
|
|
|
3103
3103
|
leave({ alias: t, name: e, arguments: n, directives: r, selectionSet: i }) {
|
|
3104
3104
|
const s = ne("", t, ": ") + e;
|
|
3105
3105
|
let o = s + ne("(", G(n, ", "), ")");
|
|
3106
|
-
return o.length >
|
|
3106
|
+
return o.length > yl && (o = s + ne(`(
|
|
3107
3107
|
`, br(G(n, `
|
|
3108
3108
|
`)), `
|
|
3109
3109
|
)`)), G([o, G(r, " "), i], " ");
|
|
@@ -3141,7 +3141,7 @@ const ml = 80, yl = {
|
|
|
3141
3141
|
leave: ({ value: t }) => t
|
|
3142
3142
|
},
|
|
3143
3143
|
StringValue: {
|
|
3144
|
-
leave: ({ value: t, block: e }) => e ?
|
|
3144
|
+
leave: ({ value: t, block: e }) => e ? Vu(t) : dl(t)
|
|
3145
3145
|
},
|
|
3146
3146
|
BooleanValue: {
|
|
3147
3147
|
leave: ({ value: t }) => t ? "true" : "false"
|
|
@@ -3366,7 +3366,7 @@ function Et(t) {
|
|
|
3366
3366
|
);
|
|
3367
3367
|
return t;
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function vl(t) {
|
|
3370
3370
|
if (t === "true" || t === "false" || t === "null")
|
|
3371
3371
|
throw new D(`Enum values cannot be named: ${t}`);
|
|
3372
3372
|
return Et(t);
|
|
@@ -3429,7 +3429,7 @@ class Ce {
|
|
|
3429
3429
|
}
|
|
3430
3430
|
class X {
|
|
3431
3431
|
constructor(e) {
|
|
3432
|
-
|
|
3432
|
+
El(e) || se(
|
|
3433
3433
|
!1,
|
|
3434
3434
|
`Expected ${P(e)} to be a GraphQL nullable type.`
|
|
3435
3435
|
), this.ofType = e;
|
|
@@ -3447,14 +3447,14 @@ class X {
|
|
|
3447
3447
|
function Pi(t) {
|
|
3448
3448
|
return xe(t) || ee(t);
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function El(t) {
|
|
3451
3451
|
return ji(t) && !ee(t);
|
|
3452
3452
|
}
|
|
3453
3453
|
function Bo(t) {
|
|
3454
3454
|
if (t)
|
|
3455
3455
|
return ee(t) ? t.ofType : t;
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function wl(t) {
|
|
3458
3458
|
return Zt(t) || ce(t) || ge(t) || yt(t) || bt(t) || $e(t);
|
|
3459
3459
|
}
|
|
3460
3460
|
function pt(t) {
|
|
@@ -3668,7 +3668,7 @@ class qt {
|
|
|
3668
3668
|
class an {
|
|
3669
3669
|
constructor(e) {
|
|
3670
3670
|
var n;
|
|
3671
|
-
this.name = Et(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = et(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types =
|
|
3671
|
+
this.name = Et(e.name), this.description = e.description, this.resolveType = e.resolveType, this.extensions = et(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this._types = Tl.bind(void 0, e), e.resolveType == null || typeof e.resolveType == "function" || se(
|
|
3672
3672
|
!1,
|
|
3673
3673
|
`${this.name} must provide "resolveType" as a function, but got: ${P(e.resolveType)}.`
|
|
3674
3674
|
);
|
|
@@ -3697,7 +3697,7 @@ class an {
|
|
|
3697
3697
|
return this.toString();
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function Tl(t) {
|
|
3701
3701
|
const e = Go(t.types);
|
|
3702
3702
|
return Array.isArray(e) || se(
|
|
3703
3703
|
!1,
|
|
@@ -3806,7 +3806,7 @@ function Ns(t, e) {
|
|
|
3806
3806
|
!1,
|
|
3807
3807
|
`${t}.${n} must refer to an object with a "value" key representing an internal value but got: ${P(r)}.`
|
|
3808
3808
|
), {
|
|
3809
|
-
name:
|
|
3809
|
+
name: vl(n),
|
|
3810
3810
|
description: r.description,
|
|
3811
3811
|
value: r.value !== void 0 ? r.value : n,
|
|
3812
3812
|
deprecationReason: r.deprecationReason,
|
|
@@ -3817,7 +3817,7 @@ function Ns(t, e) {
|
|
|
3817
3817
|
class Pn {
|
|
3818
3818
|
constructor(e) {
|
|
3819
3819
|
var n, r;
|
|
3820
|
-
this.name = Et(e.name), this.description = e.description, this.extensions = et(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (r = e.isOneOf) !== null && r !== void 0 ? r : !1, this._fields =
|
|
3820
|
+
this.name = Et(e.name), this.description = e.description, this.extensions = et(e.extensions), this.astNode = e.astNode, this.extensionASTNodes = (n = e.extensionASTNodes) !== null && n !== void 0 ? n : [], this.isOneOf = (r = e.isOneOf) !== null && r !== void 0 ? r : !1, this._fields = Sl.bind(void 0, e);
|
|
3821
3821
|
}
|
|
3822
3822
|
get [Symbol.toStringTag]() {
|
|
3823
3823
|
return "GraphQLInputObjectType";
|
|
@@ -3851,7 +3851,7 @@ class Pn {
|
|
|
3851
3851
|
return this.toString();
|
|
3852
3852
|
}
|
|
3853
3853
|
}
|
|
3854
|
-
function
|
|
3854
|
+
function Sl(t) {
|
|
3855
3855
|
const e = qo(t.fields);
|
|
3856
3856
|
return cn(e) || se(
|
|
3857
3857
|
!1,
|
|
@@ -4049,7 +4049,7 @@ const ri = 2147483647, ii = -2147483648, Yn = new mt({
|
|
|
4049
4049
|
);
|
|
4050
4050
|
return t.value;
|
|
4051
4051
|
}
|
|
4052
|
-
}),
|
|
4052
|
+
}), Il = Object.freeze([
|
|
4053
4053
|
oe,
|
|
4054
4054
|
Yn,
|
|
4055
4055
|
Vr,
|
|
@@ -4130,7 +4130,7 @@ const Mi = new Ft({
|
|
|
4130
4130
|
description: "Skipped when true."
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
|
-
}),
|
|
4133
|
+
}), _l = "No longer supported", Xo = new Ft({
|
|
4134
4134
|
name: "deprecated",
|
|
4135
4135
|
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
4136
4136
|
locations: [
|
|
@@ -4143,10 +4143,10 @@ const Mi = new Ft({
|
|
|
4143
4143
|
reason: {
|
|
4144
4144
|
type: oe,
|
|
4145
4145
|
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/).",
|
|
4146
|
-
defaultValue:
|
|
4146
|
+
defaultValue: _l
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
}),
|
|
4149
|
+
}), Ol = new Ft({
|
|
4150
4150
|
name: "specifiedBy",
|
|
4151
4151
|
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
4152
4152
|
locations: [z.SCALAR],
|
|
@@ -4156,7 +4156,7 @@ const Mi = new Ft({
|
|
|
4156
4156
|
description: "The URL that specifies the behavior of this scalar."
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
}),
|
|
4159
|
+
}), Nl = new Ft({
|
|
4160
4160
|
name: "oneOf",
|
|
4161
4161
|
description: "Indicates exactly one field must be supplied and this field must not be `null`.",
|
|
4162
4162
|
locations: [z.INPUT_OBJECT],
|
|
@@ -4165,8 +4165,8 @@ const Mi = new Ft({
|
|
|
4165
4165
|
Mi,
|
|
4166
4166
|
Ui,
|
|
4167
4167
|
Xo,
|
|
4168
|
-
|
|
4169
|
-
|
|
4168
|
+
Ol,
|
|
4169
|
+
Nl
|
|
4170
4170
|
]);
|
|
4171
4171
|
function Zo(t) {
|
|
4172
4172
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
@@ -4709,7 +4709,7 @@ function oa(t) {
|
|
|
4709
4709
|
function aa(t) {
|
|
4710
4710
|
return vt(t, Bi);
|
|
4711
4711
|
}
|
|
4712
|
-
function
|
|
4712
|
+
function Al(t) {
|
|
4713
4713
|
if (!aa(t))
|
|
4714
4714
|
throw new Error(`Expected ${P(t)} to be a GraphQL schema.`);
|
|
4715
4715
|
return t;
|
|
@@ -4863,22 +4863,22 @@ function dt(t, e) {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
return e;
|
|
4865
4865
|
}
|
|
4866
|
-
function
|
|
4867
|
-
if (
|
|
4866
|
+
function xl(t) {
|
|
4867
|
+
if (Al(t), t.__validationErrors)
|
|
4868
4868
|
return t.__validationErrors;
|
|
4869
|
-
const e = new
|
|
4870
|
-
|
|
4869
|
+
const e = new Fl(t);
|
|
4870
|
+
Ll(e), Cl(e), Rl(e);
|
|
4871
4871
|
const n = e.getErrors();
|
|
4872
4872
|
return t.__validationErrors = n, n;
|
|
4873
4873
|
}
|
|
4874
4874
|
function ua(t) {
|
|
4875
|
-
const e =
|
|
4875
|
+
const e = xl(t);
|
|
4876
4876
|
if (e.length !== 0)
|
|
4877
4877
|
throw new Error(e.map((n) => n.message).join(`
|
|
4878
4878
|
|
|
4879
4879
|
`));
|
|
4880
4880
|
}
|
|
4881
|
-
class
|
|
4881
|
+
class Fl {
|
|
4882
4882
|
constructor(e) {
|
|
4883
4883
|
this._errors = [], this.schema = e;
|
|
4884
4884
|
}
|
|
@@ -4894,7 +4894,7 @@ class xl {
|
|
|
4894
4894
|
return this._errors;
|
|
4895
4895
|
}
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4897
|
+
function Ll(t) {
|
|
4898
4898
|
const e = t.schema, n = e.getQueryType();
|
|
4899
4899
|
if (!n)
|
|
4900
4900
|
t.reportError("Query root type must be provided.", e.astNode);
|
|
@@ -4946,7 +4946,7 @@ function si(t, e) {
|
|
|
4946
4946
|
}
|
|
4947
4947
|
).find((r) => r.operation === e)) === null || n === void 0 ? void 0 : n.type;
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4949
|
+
function Cl(t) {
|
|
4950
4950
|
for (const n of t.schema.getDirectives()) {
|
|
4951
4951
|
if (!Ko(n)) {
|
|
4952
4952
|
t.reportError(
|
|
@@ -4978,17 +4978,17 @@ function Kt(t, e) {
|
|
|
4978
4978
|
e.astNode
|
|
4979
4979
|
);
|
|
4980
4980
|
}
|
|
4981
|
-
function
|
|
4982
|
-
const e =
|
|
4981
|
+
function Rl(t) {
|
|
4982
|
+
const e = Ul(t), n = t.schema.getTypeMap();
|
|
4983
4983
|
for (const r of Object.values(n)) {
|
|
4984
|
-
if (!
|
|
4984
|
+
if (!wl(r)) {
|
|
4985
4985
|
t.reportError(
|
|
4986
4986
|
`Expected GraphQL named type but got: ${P(r)}.`,
|
|
4987
4987
|
r.astNode
|
|
4988
4988
|
);
|
|
4989
4989
|
continue;
|
|
4990
4990
|
}
|
|
4991
|
-
oa(r) || Kt(t, r), ce(r) || ge(r) ? (Fs(t, r), Ls(t, r)) : yt(r) ?
|
|
4991
|
+
oa(r) || Kt(t, r), ce(r) || ge(r) ? (Fs(t, r), Ls(t, r)) : yt(r) ? $l(t, r) : bt(r) ? jl(t, r) : $e(r) && (Pl(t, r), e(r));
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
function Fs(t, e) {
|
|
@@ -5051,10 +5051,10 @@ function Ls(t, e) {
|
|
|
5051
5051
|
);
|
|
5052
5052
|
continue;
|
|
5053
5053
|
}
|
|
5054
|
-
n[r.name] = !0,
|
|
5054
|
+
n[r.name] = !0, Dl(t, e, r), kl(t, e, r);
|
|
5055
5055
|
}
|
|
5056
5056
|
}
|
|
5057
|
-
function
|
|
5057
|
+
function kl(t, e, n) {
|
|
5058
5058
|
const r = e.getFields();
|
|
5059
5059
|
for (const u of Object.values(n.getFields())) {
|
|
5060
5060
|
const l = u.name, c = r[l];
|
|
@@ -5104,7 +5104,7 @@ function Rl(t, e, n) {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
}
|
|
5106
5106
|
}
|
|
5107
|
-
function
|
|
5107
|
+
function Dl(t, e, n) {
|
|
5108
5108
|
const r = e.getInterfaces();
|
|
5109
5109
|
for (const i of n.getInterfaces())
|
|
5110
5110
|
r.includes(i) || t.reportError(
|
|
@@ -5115,7 +5115,7 @@ function kl(t, e, n) {
|
|
|
5115
5115
|
]
|
|
5116
5116
|
);
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function $l(t, e) {
|
|
5119
5119
|
const n = e.getTypes();
|
|
5120
5120
|
n.length === 0 && t.reportError(
|
|
5121
5121
|
`Union type ${e.name} must define one or more member types.`,
|
|
@@ -5136,7 +5136,7 @@ function Dl(t, e) {
|
|
|
5136
5136
|
);
|
|
5137
5137
|
}
|
|
5138
5138
|
}
|
|
5139
|
-
function
|
|
5139
|
+
function jl(t, e) {
|
|
5140
5140
|
const n = e.getValues();
|
|
5141
5141
|
n.length === 0 && t.reportError(
|
|
5142
5142
|
`Enum type ${e.name} must define one or more values.`,
|
|
@@ -5145,7 +5145,7 @@ function $l(t, e) {
|
|
|
5145
5145
|
for (const r of n)
|
|
5146
5146
|
Kt(t, r);
|
|
5147
5147
|
}
|
|
5148
|
-
function
|
|
5148
|
+
function Pl(t, e) {
|
|
5149
5149
|
const n = Object.values(e.getFields());
|
|
5150
5150
|
n.length === 0 && t.reportError(
|
|
5151
5151
|
`Input Object type ${e.name} must define one or more fields.`,
|
|
@@ -5169,10 +5169,10 @@ function jl(t, e) {
|
|
|
5169
5169
|
]
|
|
5170
5170
|
);
|
|
5171
5171
|
}
|
|
5172
|
-
e.isOneOf &&
|
|
5172
|
+
e.isOneOf && Ml(e, s, t);
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
|
-
function
|
|
5175
|
+
function Ml(t, e, n) {
|
|
5176
5176
|
if (ee(e.type)) {
|
|
5177
5177
|
var r;
|
|
5178
5178
|
n.reportError(
|
|
@@ -5185,7 +5185,7 @@ function Pl(t, e, n) {
|
|
|
5185
5185
|
e.astNode
|
|
5186
5186
|
);
|
|
5187
5187
|
}
|
|
5188
|
-
function
|
|
5188
|
+
function Ul(t) {
|
|
5189
5189
|
const e = /* @__PURE__ */ Object.create(null), n = [], r = /* @__PURE__ */ Object.create(null);
|
|
5190
5190
|
return i;
|
|
5191
5191
|
function i(s) {
|
|
@@ -5252,7 +5252,7 @@ function Qe(t, e) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
class la {
|
|
5254
5254
|
constructor(e, n, r) {
|
|
5255
|
-
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = r ??
|
|
5255
|
+
this._schema = e, this._typeStack = [], this._parentTypeStack = [], this._inputTypeStack = [], this._fieldDefStack = [], this._defaultValueStack = [], this._directive = null, this._argument = null, this._enumValue = null, this._getFieldDef = r ?? Vl, n && (ht(n) && this._inputTypeStack.push(n), Mt(n) && this._parentTypeStack.push(n), jn(n) && this._typeStack.push(n));
|
|
5256
5256
|
}
|
|
5257
5257
|
get [Symbol.toStringTag]() {
|
|
5258
5258
|
return "TypeInfo";
|
|
@@ -5391,7 +5391,7 @@ class la {
|
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
|
-
function
|
|
5394
|
+
function Vl(t, e, n) {
|
|
5395
5395
|
const r = n.name.value;
|
|
5396
5396
|
if (r === Nr.name && t.getQueryType() === e)
|
|
5397
5397
|
return Nr;
|
|
@@ -5420,26 +5420,26 @@ function ca(t, e) {
|
|
|
5420
5420
|
}
|
|
5421
5421
|
};
|
|
5422
5422
|
}
|
|
5423
|
-
function
|
|
5423
|
+
function Bl(t) {
|
|
5424
5424
|
return t.kind === T.OPERATION_DEFINITION || t.kind === T.FRAGMENT_DEFINITION;
|
|
5425
5425
|
}
|
|
5426
|
-
function
|
|
5426
|
+
function Gl(t) {
|
|
5427
5427
|
return t.kind === T.SCHEMA_DEFINITION || qi(t) || t.kind === T.DIRECTIVE_DEFINITION;
|
|
5428
5428
|
}
|
|
5429
5429
|
function qi(t) {
|
|
5430
5430
|
return t.kind === T.SCALAR_TYPE_DEFINITION || t.kind === T.OBJECT_TYPE_DEFINITION || t.kind === T.INTERFACE_TYPE_DEFINITION || t.kind === T.UNION_TYPE_DEFINITION || t.kind === T.ENUM_TYPE_DEFINITION || t.kind === T.INPUT_OBJECT_TYPE_DEFINITION;
|
|
5431
5431
|
}
|
|
5432
|
-
function
|
|
5432
|
+
function ql(t) {
|
|
5433
5433
|
return t.kind === T.SCHEMA_EXTENSION || fa(t);
|
|
5434
5434
|
}
|
|
5435
5435
|
function fa(t) {
|
|
5436
5436
|
return t.kind === T.SCALAR_TYPE_EXTENSION || t.kind === T.OBJECT_TYPE_EXTENSION || t.kind === T.INTERFACE_TYPE_EXTENSION || t.kind === T.UNION_TYPE_EXTENSION || t.kind === T.ENUM_TYPE_EXTENSION || t.kind === T.INPUT_OBJECT_TYPE_EXTENSION;
|
|
5437
5437
|
}
|
|
5438
|
-
function
|
|
5438
|
+
function Ql(t) {
|
|
5439
5439
|
return {
|
|
5440
5440
|
Document(e) {
|
|
5441
5441
|
for (const n of e.definitions)
|
|
5442
|
-
if (!
|
|
5442
|
+
if (!Bl(n)) {
|
|
5443
5443
|
const r = n.kind === T.SCHEMA_DEFINITION || n.kind === T.SCHEMA_EXTENSION ? "schema" : '"' + n.name.value + '"';
|
|
5444
5444
|
t.reportError(
|
|
5445
5445
|
new D(`The ${r} definition is not executable.`, {
|
|
@@ -5451,7 +5451,7 @@ function ql(t) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
};
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function zl(t) {
|
|
5455
5455
|
return {
|
|
5456
5456
|
Field(e) {
|
|
5457
5457
|
const n = t.getParentType();
|
|
@@ -5459,9 +5459,9 @@ function Ql(t) {
|
|
|
5459
5459
|
const i = t.getSchema(), s = e.name.value;
|
|
5460
5460
|
let o = jt(
|
|
5461
5461
|
"to use an inline fragment on",
|
|
5462
|
-
|
|
5462
|
+
Yl(i, n, s)
|
|
5463
5463
|
);
|
|
5464
|
-
o === "" && (o = jt(
|
|
5464
|
+
o === "" && (o = jt(Jl(n, s))), t.reportError(
|
|
5465
5465
|
new D(
|
|
5466
5466
|
`Cannot query field "${s}" on type "${n.name}".` + o,
|
|
5467
5467
|
{
|
|
@@ -5473,7 +5473,7 @@ function Ql(t) {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
5475
5475
|
}
|
|
5476
|
-
function
|
|
5476
|
+
function Yl(t, e, n) {
|
|
5477
5477
|
if (!xt(e))
|
|
5478
5478
|
return [];
|
|
5479
5479
|
const r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ Object.create(null);
|
|
@@ -5490,14 +5490,14 @@ function zl(t, e, n) {
|
|
|
5490
5490
|
return u !== 0 ? u : ge(o) && t.isSubType(o, a) ? -1 : ge(a) && t.isSubType(a, o) ? 1 : Qn(o.name, a.name);
|
|
5491
5491
|
}).map((o) => o.name);
|
|
5492
5492
|
}
|
|
5493
|
-
function
|
|
5493
|
+
function Jl(t, e) {
|
|
5494
5494
|
if (ce(t) || ge(t)) {
|
|
5495
5495
|
const n = Object.keys(t.getFields());
|
|
5496
5496
|
return Xt(e, n);
|
|
5497
5497
|
}
|
|
5498
5498
|
return [];
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function Hl(t) {
|
|
5501
5501
|
return {
|
|
5502
5502
|
InlineFragment(e) {
|
|
5503
5503
|
const n = e.typeCondition;
|
|
@@ -5532,10 +5532,10 @@ function Jl(t) {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
};
|
|
5534
5534
|
}
|
|
5535
|
-
function
|
|
5535
|
+
function Wl(t) {
|
|
5536
5536
|
return {
|
|
5537
5537
|
// eslint-disable-next-line new-cap
|
|
5538
|
-
...
|
|
5538
|
+
...Kl(t),
|
|
5539
5539
|
Argument(e) {
|
|
5540
5540
|
const n = t.getArgument(), r = t.getFieldDef(), i = t.getParentType();
|
|
5541
5541
|
if (!n && r && i) {
|
|
@@ -5552,7 +5552,7 @@ function Hl(t) {
|
|
|
5552
5552
|
}
|
|
5553
5553
|
};
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function Kl(t) {
|
|
5556
5556
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : Wn;
|
|
5557
5557
|
for (const o of r)
|
|
5558
5558
|
e[o.name] = o.args.map((a) => a.name);
|
|
@@ -5585,7 +5585,7 @@ function Wl(t) {
|
|
|
5585
5585
|
}
|
|
5586
5586
|
};
|
|
5587
5587
|
}
|
|
5588
|
-
function
|
|
5588
|
+
function Xl(t) {
|
|
5589
5589
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : Wn;
|
|
5590
5590
|
for (const s of r)
|
|
5591
5591
|
e[s.name] = s.locations;
|
|
@@ -5603,7 +5603,7 @@ function Kl(t) {
|
|
|
5603
5603
|
);
|
|
5604
5604
|
return;
|
|
5605
5605
|
}
|
|
5606
|
-
const g =
|
|
5606
|
+
const g = Zl(l);
|
|
5607
5607
|
g && !p.includes(g) && t.reportError(
|
|
5608
5608
|
new D(
|
|
5609
5609
|
`Directive "@${c}" may not be used on ${g}.`,
|
|
@@ -5615,11 +5615,11 @@ function Kl(t) {
|
|
|
5615
5615
|
}
|
|
5616
5616
|
};
|
|
5617
5617
|
}
|
|
5618
|
-
function
|
|
5618
|
+
function Zl(t) {
|
|
5619
5619
|
const e = t[t.length - 1];
|
|
5620
5620
|
switch ("kind" in e || Tt(!1), e.kind) {
|
|
5621
5621
|
case T.OPERATION_DEFINITION:
|
|
5622
|
-
return
|
|
5622
|
+
return ec(e.operation);
|
|
5623
5623
|
case T.FIELD:
|
|
5624
5624
|
return z.FIELD;
|
|
5625
5625
|
case T.FRAGMENT_SPREAD:
|
|
@@ -5663,7 +5663,7 @@ function Xl(t) {
|
|
|
5663
5663
|
Tt(!1, "Unexpected kind: " + P(e.kind));
|
|
5664
5664
|
}
|
|
5665
5665
|
}
|
|
5666
|
-
function
|
|
5666
|
+
function ec(t) {
|
|
5667
5667
|
switch (t) {
|
|
5668
5668
|
case Me.QUERY:
|
|
5669
5669
|
return z.QUERY;
|
|
@@ -5673,7 +5673,7 @@ function Zl(t) {
|
|
|
5673
5673
|
return z.SUBSCRIPTION;
|
|
5674
5674
|
}
|
|
5675
5675
|
}
|
|
5676
|
-
function
|
|
5676
|
+
function tc(t) {
|
|
5677
5677
|
return {
|
|
5678
5678
|
FragmentSpread(e) {
|
|
5679
5679
|
const n = e.name.value;
|
|
@@ -5685,7 +5685,7 @@ function ec(t) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
};
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5688
|
+
function nc(t) {
|
|
5689
5689
|
const e = t.getSchema(), n = e ? e.getTypeMap() : /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
5690
5690
|
for (const s of t.getDocument().definitions)
|
|
5691
5691
|
qi(s) && (r[s.name.value] = !0);
|
|
@@ -5698,7 +5698,7 @@ function tc(t) {
|
|
|
5698
5698
|
const c = s.name.value;
|
|
5699
5699
|
if (!n[c] && !r[c]) {
|
|
5700
5700
|
var p;
|
|
5701
|
-
const g = (p = l[2]) !== null && p !== void 0 ? p : a, S = g != null &&
|
|
5701
|
+
const g = (p = l[2]) !== null && p !== void 0 ? p : a, S = g != null && rc(g);
|
|
5702
5702
|
if (S && Rs.includes(c))
|
|
5703
5703
|
return;
|
|
5704
5704
|
const v = Xt(
|
|
@@ -5717,13 +5717,13 @@ function tc(t) {
|
|
|
5717
5717
|
}
|
|
5718
5718
|
};
|
|
5719
5719
|
}
|
|
5720
|
-
const Rs = [...
|
|
5720
|
+
const Rs = [...Il, ...sa].map(
|
|
5721
5721
|
(t) => t.name
|
|
5722
5722
|
);
|
|
5723
|
-
function nc(t) {
|
|
5724
|
-
return "kind" in t && (Bl(t) || Gl(t));
|
|
5725
|
-
}
|
|
5726
5723
|
function rc(t) {
|
|
5724
|
+
return "kind" in t && (Gl(t) || ql(t));
|
|
5725
|
+
}
|
|
5726
|
+
function ic(t) {
|
|
5727
5727
|
let e = 0;
|
|
5728
5728
|
return {
|
|
5729
5729
|
Document(n) {
|
|
@@ -5743,8 +5743,8 @@ function rc(t) {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
};
|
|
5745
5745
|
}
|
|
5746
|
-
const
|
|
5747
|
-
function
|
|
5746
|
+
const sc = 3;
|
|
5747
|
+
function oc(t) {
|
|
5748
5748
|
function e(n, r = /* @__PURE__ */ Object.create(null), i = 0) {
|
|
5749
5749
|
if (n.kind === T.FRAGMENT_SPREAD) {
|
|
5750
5750
|
const s = n.name.value;
|
|
@@ -5760,7 +5760,7 @@ function sc(t) {
|
|
|
5760
5760
|
}
|
|
5761
5761
|
}
|
|
5762
5762
|
if (n.kind === T.FIELD && // check all introspection lists
|
|
5763
|
-
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (i++, i >=
|
|
5763
|
+
(n.name.value === "fields" || n.name.value === "interfaces" || n.name.value === "possibleTypes" || n.name.value === "inputFields") && (i++, i >= sc))
|
|
5764
5764
|
return !0;
|
|
5765
5765
|
if ("selectionSet" in n && n.selectionSet) {
|
|
5766
5766
|
for (const s of n.selectionSet.selections)
|
|
@@ -5780,7 +5780,7 @@ function sc(t) {
|
|
|
5780
5780
|
}
|
|
5781
5781
|
};
|
|
5782
5782
|
}
|
|
5783
|
-
function
|
|
5783
|
+
function ac(t) {
|
|
5784
5784
|
const e = /* @__PURE__ */ Object.create(null), n = [], r = /* @__PURE__ */ Object.create(null);
|
|
5785
5785
|
return {
|
|
5786
5786
|
OperationDefinition: () => !1,
|
|
@@ -5818,7 +5818,7 @@ function oc(t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function uc(t) {
|
|
5822
5822
|
let e = /* @__PURE__ */ Object.create(null);
|
|
5823
5823
|
return {
|
|
5824
5824
|
OperationDefinition: {
|
|
@@ -5845,7 +5845,7 @@ function ac(t) {
|
|
|
5845
5845
|
}
|
|
5846
5846
|
};
|
|
5847
5847
|
}
|
|
5848
|
-
function
|
|
5848
|
+
function lc(t) {
|
|
5849
5849
|
const e = [], n = [];
|
|
5850
5850
|
return {
|
|
5851
5851
|
OperationDefinition(r) {
|
|
@@ -5874,7 +5874,7 @@ function uc(t) {
|
|
|
5874
5874
|
}
|
|
5875
5875
|
};
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function cc(t) {
|
|
5878
5878
|
let e = [];
|
|
5879
5879
|
return {
|
|
5880
5880
|
OperationDefinition: {
|
|
@@ -5906,7 +5906,7 @@ function lc(t) {
|
|
|
5906
5906
|
function Qi(t) {
|
|
5907
5907
|
switch (t.kind) {
|
|
5908
5908
|
case T.OBJECT:
|
|
5909
|
-
return { ...t, fields:
|
|
5909
|
+
return { ...t, fields: fc(t.fields) };
|
|
5910
5910
|
case T.LIST:
|
|
5911
5911
|
return { ...t, values: t.values.map(Qi) };
|
|
5912
5912
|
case T.INT:
|
|
@@ -5919,7 +5919,7 @@ function Qi(t) {
|
|
|
5919
5919
|
return t;
|
|
5920
5920
|
}
|
|
5921
5921
|
}
|
|
5922
|
-
function
|
|
5922
|
+
function fc(t) {
|
|
5923
5923
|
return t.map((e) => ({
|
|
5924
5924
|
...e,
|
|
5925
5925
|
value: Qi(e.value)
|
|
@@ -5932,11 +5932,11 @@ function da(t) {
|
|
|
5932
5932
|
([e, n]) => `subfields "${e}" conflict because ` + da(n)
|
|
5933
5933
|
).join(" and ") : t;
|
|
5934
5934
|
}
|
|
5935
|
-
function
|
|
5936
|
-
const e = new
|
|
5935
|
+
function dc(t) {
|
|
5936
|
+
const e = new bc(), n = /* @__PURE__ */ new Map();
|
|
5937
5937
|
return {
|
|
5938
5938
|
SelectionSet(r) {
|
|
5939
|
-
const i =
|
|
5939
|
+
const i = hc(
|
|
5940
5940
|
t,
|
|
5941
5941
|
n,
|
|
5942
5942
|
e,
|
|
@@ -5957,14 +5957,14 @@ function fc(t) {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
};
|
|
5959
5959
|
}
|
|
5960
|
-
function
|
|
5960
|
+
function hc(t, e, n, r, i) {
|
|
5961
5961
|
const s = [], [o, a] = Cr(
|
|
5962
5962
|
t,
|
|
5963
5963
|
e,
|
|
5964
5964
|
r,
|
|
5965
5965
|
i
|
|
5966
5966
|
);
|
|
5967
|
-
if (
|
|
5967
|
+
if (gc(
|
|
5968
5968
|
t,
|
|
5969
5969
|
s,
|
|
5970
5970
|
e,
|
|
@@ -6083,7 +6083,7 @@ function Lr(t, e, n, r, i, s, o) {
|
|
|
6083
6083
|
o
|
|
6084
6084
|
);
|
|
6085
6085
|
}
|
|
6086
|
-
function
|
|
6086
|
+
function pc(t, e, n, r, i, s, o, a) {
|
|
6087
6087
|
const u = [], [l, c] = Cr(
|
|
6088
6088
|
t,
|
|
6089
6089
|
e,
|
|
@@ -6137,7 +6137,7 @@ function hc(t, e, n, r, i, s, o, a) {
|
|
|
6137
6137
|
);
|
|
6138
6138
|
return u;
|
|
6139
6139
|
}
|
|
6140
|
-
function
|
|
6140
|
+
function gc(t, e, n, r, i) {
|
|
6141
6141
|
for (const [s, o] of Object.entries(i))
|
|
6142
6142
|
if (o.length > 1)
|
|
6143
6143
|
for (let a = 0; a < o.length; a++)
|
|
@@ -6184,7 +6184,7 @@ function ha(t, e, n, r, i, s, o) {
|
|
|
6184
6184
|
[u],
|
|
6185
6185
|
[p]
|
|
6186
6186
|
];
|
|
6187
|
-
if (!
|
|
6187
|
+
if (!mc(u, p))
|
|
6188
6188
|
return [
|
|
6189
6189
|
[i, "they have differing arguments"],
|
|
6190
6190
|
[u],
|
|
@@ -6205,7 +6205,7 @@ function ha(t, e, n, r, i, s, o) {
|
|
|
6205
6205
|
];
|
|
6206
6206
|
const E = u.selectionSet, _ = p.selectionSet;
|
|
6207
6207
|
if (E && _) {
|
|
6208
|
-
const A =
|
|
6208
|
+
const A = pc(
|
|
6209
6209
|
t,
|
|
6210
6210
|
e,
|
|
6211
6211
|
n,
|
|
@@ -6215,10 +6215,10 @@ function ha(t, e, n, r, i, s, o) {
|
|
|
6215
6215
|
pt(C),
|
|
6216
6216
|
_
|
|
6217
6217
|
);
|
|
6218
|
-
return
|
|
6218
|
+
return yc(A, i, u, p);
|
|
6219
6219
|
}
|
|
6220
6220
|
}
|
|
6221
|
-
function
|
|
6221
|
+
function mc(t, e) {
|
|
6222
6222
|
const n = t.arguments, r = e.arguments;
|
|
6223
6223
|
if (n === void 0 || n.length === 0)
|
|
6224
6224
|
return r === void 0 || r.length === 0;
|
|
@@ -6290,7 +6290,7 @@ function pa(t, e, n, r, i) {
|
|
|
6290
6290
|
}
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
|
-
function
|
|
6293
|
+
function yc(t, e, n, r) {
|
|
6294
6294
|
if (t.length > 0)
|
|
6295
6295
|
return [
|
|
6296
6296
|
[e, t.map(([i]) => i)],
|
|
@@ -6298,7 +6298,7 @@ function mc(t, e, n, r) {
|
|
|
6298
6298
|
[r, ...t.map(([, , i]) => i).flat()]
|
|
6299
6299
|
];
|
|
6300
6300
|
}
|
|
6301
|
-
class
|
|
6301
|
+
class bc {
|
|
6302
6302
|
constructor() {
|
|
6303
6303
|
this._data = /* @__PURE__ */ new Map();
|
|
6304
6304
|
}
|
|
@@ -6312,7 +6312,7 @@ class yc {
|
|
|
6312
6312
|
o === void 0 ? this._data.set(i, /* @__PURE__ */ new Map([[s, r]])) : o.set(s, r);
|
|
6313
6313
|
}
|
|
6314
6314
|
}
|
|
6315
|
-
function
|
|
6315
|
+
function vc(t) {
|
|
6316
6316
|
return {
|
|
6317
6317
|
InlineFragment(e) {
|
|
6318
6318
|
const n = t.getType(), r = t.getParentType();
|
|
@@ -6329,7 +6329,7 @@ function bc(t) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
},
|
|
6331
6331
|
FragmentSpread(e) {
|
|
6332
|
-
const n = e.name.value, r =
|
|
6332
|
+
const n = e.name.value, r = Ec(t, n), i = t.getParentType();
|
|
6333
6333
|
if (r && i && !As(t.getSchema(), r, i)) {
|
|
6334
6334
|
const s = P(i), o = P(r);
|
|
6335
6335
|
t.reportError(
|
|
@@ -6344,7 +6344,7 @@ function bc(t) {
|
|
|
6344
6344
|
}
|
|
6345
6345
|
};
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function Ec(t, e) {
|
|
6348
6348
|
const n = t.getFragment(e);
|
|
6349
6349
|
if (n) {
|
|
6350
6350
|
const r = Qe(t.getSchema(), n.typeCondition);
|
|
@@ -6352,10 +6352,10 @@ function vc(t, e) {
|
|
|
6352
6352
|
return r;
|
|
6353
6353
|
}
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function wc(t) {
|
|
6356
6356
|
return {
|
|
6357
6357
|
// eslint-disable-next-line new-cap
|
|
6358
|
-
...
|
|
6358
|
+
...Tc(t),
|
|
6359
6359
|
Field: {
|
|
6360
6360
|
// Validate on leave to allow for deeper errors to appear first.
|
|
6361
6361
|
leave(e) {
|
|
@@ -6384,7 +6384,7 @@ function Ec(t) {
|
|
|
6384
6384
|
}
|
|
6385
6385
|
};
|
|
6386
6386
|
}
|
|
6387
|
-
function
|
|
6387
|
+
function Tc(t) {
|
|
6388
6388
|
var e;
|
|
6389
6389
|
const n = /* @__PURE__ */ Object.create(null), r = t.getSchema(), i = (e = r == null ? void 0 : r.getDirectives()) !== null && e !== void 0 ? e : Wn;
|
|
6390
6390
|
for (const a of i)
|
|
@@ -6398,7 +6398,7 @@ function wc(t) {
|
|
|
6398
6398
|
var o;
|
|
6399
6399
|
const u = (o = a.arguments) !== null && o !== void 0 ? o : [];
|
|
6400
6400
|
n[a.name.value] = gn(
|
|
6401
|
-
u.filter(
|
|
6401
|
+
u.filter(Sc),
|
|
6402
6402
|
(l) => l.name.value
|
|
6403
6403
|
);
|
|
6404
6404
|
}
|
|
@@ -6427,10 +6427,10 @@ function wc(t) {
|
|
|
6427
6427
|
}
|
|
6428
6428
|
};
|
|
6429
6429
|
}
|
|
6430
|
-
function
|
|
6430
|
+
function Sc(t) {
|
|
6431
6431
|
return t.type.kind === T.NON_NULL_TYPE && t.defaultValue == null;
|
|
6432
6432
|
}
|
|
6433
|
-
function
|
|
6433
|
+
function Ic(t) {
|
|
6434
6434
|
return {
|
|
6435
6435
|
Field(e) {
|
|
6436
6436
|
const n = t.getType(), r = e.selectionSet;
|
|
@@ -6462,7 +6462,7 @@ function Sc(t) {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
};
|
|
6464
6464
|
}
|
|
6465
|
-
function
|
|
6465
|
+
function _c(t) {
|
|
6466
6466
|
return t.map(
|
|
6467
6467
|
(e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e
|
|
6468
6468
|
).join("");
|
|
@@ -6481,12 +6481,12 @@ function Ot(t) {
|
|
|
6481
6481
|
e.push(n.key), n = n.prev;
|
|
6482
6482
|
return e.reverse();
|
|
6483
6483
|
}
|
|
6484
|
-
function
|
|
6484
|
+
function Oc(t, e, n = Nc) {
|
|
6485
6485
|
return Cn(t, e, n, void 0);
|
|
6486
6486
|
}
|
|
6487
|
-
function
|
|
6487
|
+
function Nc(t, e, n) {
|
|
6488
6488
|
let r = "Invalid value " + P(e);
|
|
6489
|
-
throw t.length > 0 && (r += ` at "value${
|
|
6489
|
+
throw t.length > 0 && (r += ` at "value${_c(t)}"`), n.message = r + ": " + n.message, n;
|
|
6490
6490
|
}
|
|
6491
6491
|
function Cn(t, e, n, r) {
|
|
6492
6492
|
if (ee(e)) {
|
|
@@ -6671,7 +6671,7 @@ function Yt(t, e, n) {
|
|
|
6671
6671
|
function $s(t, e) {
|
|
6672
6672
|
return t.kind === T.VARIABLE && (e == null || e[t.name.value] === void 0);
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function Ac(t, e, n) {
|
|
6675
6675
|
var r;
|
|
6676
6676
|
const i = {}, s = (r = e.arguments) !== null && r !== void 0 ? r : [], o = gn(s, (a) => a.name.value);
|
|
6677
6677
|
for (const a of t.args) {
|
|
@@ -6692,7 +6692,7 @@ function Nc(t, e, n) {
|
|
|
6692
6692
|
let g = p.kind === T.NULL;
|
|
6693
6693
|
if (p.kind === T.VARIABLE) {
|
|
6694
6694
|
const v = p.name.value;
|
|
6695
|
-
if (n == null || !
|
|
6695
|
+
if (n == null || !xc(n, v)) {
|
|
6696
6696
|
if (a.defaultValue !== void 0)
|
|
6697
6697
|
i[u] = a.defaultValue;
|
|
6698
6698
|
else if (ee(l))
|
|
@@ -6731,12 +6731,12 @@ function yn(t, e, n) {
|
|
|
6731
6731
|
(s) => s.name.value === t.name
|
|
6732
6732
|
);
|
|
6733
6733
|
if (i)
|
|
6734
|
-
return
|
|
6734
|
+
return Ac(t, i, n);
|
|
6735
6735
|
}
|
|
6736
|
-
function
|
|
6736
|
+
function xc(t, e) {
|
|
6737
6737
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
6738
6738
|
}
|
|
6739
|
-
function
|
|
6739
|
+
function Fc(t, e, n, r, i) {
|
|
6740
6740
|
const s = /* @__PURE__ */ new Map();
|
|
6741
6741
|
return Si(
|
|
6742
6742
|
t,
|
|
@@ -6754,7 +6754,7 @@ function Si(t, e, n, r, i, s, o) {
|
|
|
6754
6754
|
case T.FIELD: {
|
|
6755
6755
|
if (!oi(n, a))
|
|
6756
6756
|
continue;
|
|
6757
|
-
const u =
|
|
6757
|
+
const u = Lc(a), l = s.get(u);
|
|
6758
6758
|
l !== void 0 ? l.push(a) : s.set(u, [a]);
|
|
6759
6759
|
break;
|
|
6760
6760
|
}
|
|
@@ -6811,10 +6811,10 @@ function js(t, e, n) {
|
|
|
6811
6811
|
const i = Qe(t, r);
|
|
6812
6812
|
return i === n ? !0 : xt(i) ? t.isSubType(i, n) : !1;
|
|
6813
6813
|
}
|
|
6814
|
-
function
|
|
6814
|
+
function Lc(t) {
|
|
6815
6815
|
return t.alias ? t.alias.value : t.name.value;
|
|
6816
6816
|
}
|
|
6817
|
-
function
|
|
6817
|
+
function Cc(t) {
|
|
6818
6818
|
return {
|
|
6819
6819
|
OperationDefinition(e) {
|
|
6820
6820
|
if (e.operation === "subscription") {
|
|
@@ -6823,7 +6823,7 @@ function Lc(t) {
|
|
|
6823
6823
|
const i = e.name ? e.name.value : null, s = /* @__PURE__ */ Object.create(null), o = t.getDocument(), a = /* @__PURE__ */ Object.create(null);
|
|
6824
6824
|
for (const l of o.definitions)
|
|
6825
6825
|
l.kind === T.FRAGMENT_DEFINITION && (a[l.name.value] = l);
|
|
6826
|
-
const u =
|
|
6826
|
+
const u = Fc(
|
|
6827
6827
|
n,
|
|
6828
6828
|
a,
|
|
6829
6829
|
s,
|
|
@@ -6863,7 +6863,7 @@ function ga(t, e) {
|
|
|
6863
6863
|
}
|
|
6864
6864
|
return n;
|
|
6865
6865
|
}
|
|
6866
|
-
function
|
|
6866
|
+
function Rc(t) {
|
|
6867
6867
|
return {
|
|
6868
6868
|
Field: e,
|
|
6869
6869
|
Directive: e
|
|
@@ -6882,7 +6882,7 @@ function Cc(t) {
|
|
|
6882
6882
|
);
|
|
6883
6883
|
}
|
|
6884
6884
|
}
|
|
6885
|
-
function
|
|
6885
|
+
function kc(t) {
|
|
6886
6886
|
const e = /* @__PURE__ */ Object.create(null), n = t.getSchema(), r = n ? n.getDirectives() : Wn;
|
|
6887
6887
|
for (const a of r)
|
|
6888
6888
|
e[a.name] = !a.isRepeatable;
|
|
@@ -6919,7 +6919,7 @@ function Rc(t) {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
};
|
|
6921
6921
|
}
|
|
6922
|
-
function
|
|
6922
|
+
function Dc(t) {
|
|
6923
6923
|
const e = /* @__PURE__ */ Object.create(null);
|
|
6924
6924
|
return {
|
|
6925
6925
|
OperationDefinition: () => !1,
|
|
@@ -6936,7 +6936,7 @@ function kc(t) {
|
|
|
6936
6936
|
}
|
|
6937
6937
|
};
|
|
6938
6938
|
}
|
|
6939
|
-
function
|
|
6939
|
+
function $c(t) {
|
|
6940
6940
|
const e = [];
|
|
6941
6941
|
let n = /* @__PURE__ */ Object.create(null);
|
|
6942
6942
|
return {
|
|
@@ -6962,7 +6962,7 @@ function Dc(t) {
|
|
|
6962
6962
|
}
|
|
6963
6963
|
};
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function jc(t) {
|
|
6966
6966
|
const e = /* @__PURE__ */ Object.create(null);
|
|
6967
6967
|
return {
|
|
6968
6968
|
OperationDefinition(n) {
|
|
@@ -6982,7 +6982,7 @@ function $c(t) {
|
|
|
6982
6982
|
FragmentDefinition: () => !1
|
|
6983
6983
|
};
|
|
6984
6984
|
}
|
|
6985
|
-
function
|
|
6985
|
+
function Pc(t) {
|
|
6986
6986
|
return {
|
|
6987
6987
|
OperationDefinition(e) {
|
|
6988
6988
|
var n;
|
|
@@ -7002,7 +7002,7 @@ function jc(t) {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
};
|
|
7004
7004
|
}
|
|
7005
|
-
function
|
|
7005
|
+
function Mc(t) {
|
|
7006
7006
|
let e = {};
|
|
7007
7007
|
return {
|
|
7008
7008
|
OperationDefinition: {
|
|
@@ -7035,7 +7035,7 @@ function Pc(t) {
|
|
|
7035
7035
|
)
|
|
7036
7036
|
);
|
|
7037
7037
|
}
|
|
7038
|
-
r.isOneOf &&
|
|
7038
|
+
r.isOneOf && Uc(
|
|
7039
7039
|
t,
|
|
7040
7040
|
n,
|
|
7041
7041
|
r,
|
|
@@ -7124,7 +7124,7 @@ function Gt(t, e) {
|
|
|
7124
7124
|
);
|
|
7125
7125
|
}
|
|
7126
7126
|
}
|
|
7127
|
-
function
|
|
7127
|
+
function Uc(t, e, n, r, i) {
|
|
7128
7128
|
var s;
|
|
7129
7129
|
const o = Object.keys(r);
|
|
7130
7130
|
if (o.length !== 1) {
|
|
@@ -7159,7 +7159,7 @@ function Mc(t, e, n, r, i) {
|
|
|
7159
7159
|
);
|
|
7160
7160
|
}
|
|
7161
7161
|
}
|
|
7162
|
-
function
|
|
7162
|
+
function Vc(t) {
|
|
7163
7163
|
return {
|
|
7164
7164
|
VariableDefinition(e) {
|
|
7165
7165
|
const n = Qe(t.getSchema(), e.type);
|
|
@@ -7177,7 +7177,7 @@ function Uc(t) {
|
|
|
7177
7177
|
}
|
|
7178
7178
|
};
|
|
7179
7179
|
}
|
|
7180
|
-
function
|
|
7180
|
+
function Bc(t) {
|
|
7181
7181
|
let e = /* @__PURE__ */ Object.create(null);
|
|
7182
7182
|
return {
|
|
7183
7183
|
OperationDefinition: {
|
|
@@ -7190,7 +7190,7 @@ function Vc(t) {
|
|
|
7190
7190
|
const a = i.name.value, u = e[a];
|
|
7191
7191
|
if (u && s) {
|
|
7192
7192
|
const l = t.getSchema(), c = Qe(l, u.type);
|
|
7193
|
-
if (c && !
|
|
7193
|
+
if (c && !Gc(
|
|
7194
7194
|
l,
|
|
7195
7195
|
c,
|
|
7196
7196
|
u.defaultValue,
|
|
@@ -7216,7 +7216,7 @@ function Vc(t) {
|
|
|
7216
7216
|
}
|
|
7217
7217
|
};
|
|
7218
7218
|
}
|
|
7219
|
-
function
|
|
7219
|
+
function Gc(t, e, n, r, i) {
|
|
7220
7220
|
if (ee(r) && !ee(e)) {
|
|
7221
7221
|
if (!(n != null && n.kind !== T.NULL) && !(i !== void 0))
|
|
7222
7222
|
return !1;
|
|
@@ -7225,36 +7225,36 @@ function Bc(t, e, n, r, i) {
|
|
|
7225
7225
|
}
|
|
7226
7226
|
return fn(t, e, r);
|
|
7227
7227
|
}
|
|
7228
|
-
const
|
|
7229
|
-
ql,
|
|
7230
|
-
$c,
|
|
7231
|
-
rc,
|
|
7232
|
-
Lc,
|
|
7233
|
-
tc,
|
|
7234
|
-
Jl,
|
|
7235
|
-
Uc,
|
|
7236
|
-
Sc,
|
|
7228
|
+
const qc = Object.freeze([oc]), ma = Object.freeze([
|
|
7237
7229
|
Ql,
|
|
7238
|
-
kc,
|
|
7239
|
-
ec,
|
|
7240
|
-
uc,
|
|
7241
|
-
bc,
|
|
7242
|
-
oc,
|
|
7243
7230
|
jc,
|
|
7244
|
-
|
|
7245
|
-
lc,
|
|
7246
|
-
Kl,
|
|
7247
|
-
Rc,
|
|
7248
|
-
Hl,
|
|
7231
|
+
ic,
|
|
7249
7232
|
Cc,
|
|
7250
|
-
|
|
7251
|
-
|
|
7233
|
+
nc,
|
|
7234
|
+
Hl,
|
|
7252
7235
|
Vc,
|
|
7253
|
-
|
|
7236
|
+
Ic,
|
|
7237
|
+
zl,
|
|
7254
7238
|
Dc,
|
|
7255
|
-
|
|
7239
|
+
tc,
|
|
7240
|
+
lc,
|
|
7241
|
+
vc,
|
|
7242
|
+
ac,
|
|
7243
|
+
Pc,
|
|
7244
|
+
uc,
|
|
7245
|
+
cc,
|
|
7246
|
+
Xl,
|
|
7247
|
+
kc,
|
|
7248
|
+
Wl,
|
|
7249
|
+
Rc,
|
|
7250
|
+
Mc,
|
|
7251
|
+
wc,
|
|
7252
|
+
Bc,
|
|
7253
|
+
dc,
|
|
7254
|
+
$c,
|
|
7255
|
+
...qc
|
|
7256
7256
|
]);
|
|
7257
|
-
class
|
|
7257
|
+
class Qc {
|
|
7258
7258
|
constructor(e, n) {
|
|
7259
7259
|
this._ast = e, this._fragments = void 0, this._fragmentSpreads = /* @__PURE__ */ new Map(), this._recursivelyReferencedFragments = /* @__PURE__ */ new Map(), this._onError = n;
|
|
7260
7260
|
}
|
|
@@ -7312,7 +7312,7 @@ class qc {
|
|
|
7312
7312
|
return n;
|
|
7313
7313
|
}
|
|
7314
7314
|
}
|
|
7315
|
-
class
|
|
7315
|
+
class zc extends Qc {
|
|
7316
7316
|
constructor(e, n, r, i) {
|
|
7317
7317
|
super(n, i), this._schema = e, this._typeInfo = r, this._variableUsages = /* @__PURE__ */ new Map(), this._recursiveVariableUsages = /* @__PURE__ */ new Map();
|
|
7318
7318
|
}
|
|
@@ -7377,11 +7377,11 @@ class Qc extends qc {
|
|
|
7377
7377
|
return this._typeInfo.getEnumValue();
|
|
7378
7378
|
}
|
|
7379
7379
|
}
|
|
7380
|
-
function
|
|
7380
|
+
function Yc(t, e, n = ma, r, i = new la(t)) {
|
|
7381
7381
|
var s;
|
|
7382
7382
|
const o = (s = r == null ? void 0 : r.maxErrors) !== null && s !== void 0 ? s : 100;
|
|
7383
7383
|
e || se(!1, "Must provide document."), ua(t);
|
|
7384
|
-
const a = Object.freeze({}), u = [], l = new
|
|
7384
|
+
const a = Object.freeze({}), u = [], l = new zc(
|
|
7385
7385
|
t,
|
|
7386
7386
|
e,
|
|
7387
7387
|
i,
|
|
@@ -7394,7 +7394,7 @@ function zc(t, e, n = ma, r, i = new la(t)) {
|
|
|
7394
7394
|
), a;
|
|
7395
7395
|
u.push(p);
|
|
7396
7396
|
}
|
|
7397
|
-
), c =
|
|
7397
|
+
), c = ml(n.map((p) => p(l)));
|
|
7398
7398
|
try {
|
|
7399
7399
|
$i(e, ca(i, c));
|
|
7400
7400
|
} catch (p) {
|
|
@@ -7403,18 +7403,18 @@ function zc(t, e, n = ma, r, i = new la(t)) {
|
|
|
7403
7403
|
}
|
|
7404
7404
|
return u;
|
|
7405
7405
|
}
|
|
7406
|
-
function
|
|
7407
|
-
return t instanceof Error ? t : new
|
|
7406
|
+
function Jc(t) {
|
|
7407
|
+
return t instanceof Error ? t : new Hc(t);
|
|
7408
7408
|
}
|
|
7409
|
-
let
|
|
7409
|
+
let Hc = class extends Error {
|
|
7410
7410
|
constructor(e) {
|
|
7411
7411
|
super("Unexpected error value: " + P(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
7412
7412
|
}
|
|
7413
7413
|
};
|
|
7414
7414
|
function Ze(t, e, n) {
|
|
7415
7415
|
var r;
|
|
7416
|
-
const i =
|
|
7417
|
-
return
|
|
7416
|
+
const i = Jc(t);
|
|
7417
|
+
return Wc(i) ? i : new D(i.message, {
|
|
7418
7418
|
nodes: (r = i.nodes) !== null && r !== void 0 ? r : e,
|
|
7419
7419
|
source: i.source,
|
|
7420
7420
|
positions: i.positions,
|
|
@@ -7422,7 +7422,7 @@ function Ze(t, e, n) {
|
|
|
7422
7422
|
originalError: i
|
|
7423
7423
|
});
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7425
|
+
function Wc(t) {
|
|
7426
7426
|
return Array.isArray(t.path);
|
|
7427
7427
|
}
|
|
7428
7428
|
const Ps = function(t, e, n, r) {
|
|
@@ -7433,7 +7433,7 @@ const Ps = function(t, e, n, r) {
|
|
|
7433
7433
|
const a = i[o];
|
|
7434
7434
|
if (a.isTypeOf) {
|
|
7435
7435
|
const u = a.isTypeOf(t, e, n);
|
|
7436
|
-
if (
|
|
7436
|
+
if (Ru(u))
|
|
7437
7437
|
s[o] = u;
|
|
7438
7438
|
else if (u)
|
|
7439
7439
|
return a.name;
|
|
@@ -7465,7 +7465,7 @@ function Yi(t, e) {
|
|
|
7465
7465
|
}
|
|
7466
7466
|
return n;
|
|
7467
7467
|
}
|
|
7468
|
-
function
|
|
7468
|
+
function Kc(t) {
|
|
7469
7469
|
const e = t.toConfig(), n = Mr(
|
|
7470
7470
|
ai(e.types),
|
|
7471
7471
|
(g) => g.name,
|
|
@@ -7583,11 +7583,11 @@ class Z extends Kn {
|
|
|
7583
7583
|
super(e, n), this.name = "PothosSchemaError";
|
|
7584
7584
|
}
|
|
7585
7585
|
}
|
|
7586
|
-
const
|
|
7587
|
-
function
|
|
7586
|
+
const Xc = Symbol.for("Pothos.contextCache");
|
|
7587
|
+
function Zc(t) {
|
|
7588
7588
|
const e = /* @__PURE__ */ new WeakMap();
|
|
7589
7589
|
return (n, ...r) => {
|
|
7590
|
-
const i = n[
|
|
7590
|
+
const i = n[Xc] || n;
|
|
7591
7591
|
if (e.has(i))
|
|
7592
7592
|
return e.get(i);
|
|
7593
7593
|
const s = t(n, ...r);
|
|
@@ -7603,7 +7603,7 @@ function Tn(t, e, n) {
|
|
|
7603
7603
|
}) : t[e] = n, t;
|
|
7604
7604
|
}
|
|
7605
7605
|
const Sn = /* @__PURE__ */ new WeakMap();
|
|
7606
|
-
class
|
|
7606
|
+
class ef {
|
|
7607
7607
|
/**
|
|
7608
7608
|
* Called for each type defined with the SchemaBuilder
|
|
7609
7609
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -7709,10 +7709,10 @@ class Zc {
|
|
|
7709
7709
|
return this.requestDataMap(e);
|
|
7710
7710
|
}
|
|
7711
7711
|
constructor(e, n) {
|
|
7712
|
-
Tn(this, "name", void 0), Tn(this, "builder", void 0), Tn(this, "buildCache", void 0), Tn(this, "options", void 0), Tn(this, "requestDataMap",
|
|
7712
|
+
Tn(this, "name", void 0), Tn(this, "builder", void 0), Tn(this, "buildCache", void 0), Tn(this, "options", void 0), Tn(this, "requestDataMap", Zc((r) => this.createRequestData(r))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
|
-
function
|
|
7715
|
+
function tf(t, e, n) {
|
|
7716
7716
|
return e in t ? Object.defineProperty(t, e, {
|
|
7717
7717
|
value: n,
|
|
7718
7718
|
enumerable: !0,
|
|
@@ -7720,7 +7720,7 @@ function ef(t, e, n) {
|
|
|
7720
7720
|
writable: !0
|
|
7721
7721
|
}) : t[e] = n, t;
|
|
7722
7722
|
}
|
|
7723
|
-
class
|
|
7723
|
+
class nf extends ef {
|
|
7724
7724
|
onTypeConfig(e) {
|
|
7725
7725
|
return this.plugins.reduceRight((n, r) => n === null ? n : r.onTypeConfig(n), e);
|
|
7726
7726
|
}
|
|
@@ -7753,10 +7753,10 @@ class tf extends Zc {
|
|
|
7753
7753
|
return this.plugins.reduceRight((r, i) => i.wrapIsTypeOf(r, n), e);
|
|
7754
7754
|
}
|
|
7755
7755
|
constructor(e, n) {
|
|
7756
|
-
super(e, "PothosMergedPlugin"),
|
|
7756
|
+
super(e, "PothosMergedPlugin"), tf(this, "plugins", void 0), this.plugins = n;
|
|
7757
7757
|
}
|
|
7758
7758
|
}
|
|
7759
|
-
const en = Symbol.for("Pothos.outputShapeKey"), En = Symbol.for("Pothos.parentShapeKey"), Xn = Symbol.for("Pothos.inputShapeKey"),
|
|
7759
|
+
const en = Symbol.for("Pothos.outputShapeKey"), En = Symbol.for("Pothos.parentShapeKey"), Xn = Symbol.for("Pothos.inputShapeKey"), rf = Symbol.for("Pothos.inputFieldShapeKey"), sf = Symbol.for("Pothos.outputFieldShapeKey"), Rr = Symbol.for("Pothos.typeBrandKey");
|
|
7760
7760
|
function Ms(t, e, n) {
|
|
7761
7761
|
return e in t ? Object.defineProperty(t, e, {
|
|
7762
7762
|
value: n,
|
|
@@ -7781,13 +7781,13 @@ function nn(t, e, n) {
|
|
|
7781
7781
|
writable: !0
|
|
7782
7782
|
}) : t[e] = n, t;
|
|
7783
7783
|
}
|
|
7784
|
-
let
|
|
7784
|
+
let of = en, af = En, uf = Xn;
|
|
7785
7785
|
class ba extends we {
|
|
7786
7786
|
constructor(e) {
|
|
7787
|
-
super("Scalar", e), nn(this, "kind", "Scalar"), nn(this, "$inferType", void 0), nn(this, "$inferInput", void 0), nn(this,
|
|
7787
|
+
super("Scalar", e), nn(this, "kind", "Scalar"), nn(this, "$inferType", void 0), nn(this, "$inferInput", void 0), nn(this, of, void 0), nn(this, af, void 0), nn(this, uf, void 0);
|
|
7788
7788
|
}
|
|
7789
7789
|
}
|
|
7790
|
-
function
|
|
7790
|
+
function lf(t, e, n) {
|
|
7791
7791
|
return e in t ? Object.defineProperty(t, e, {
|
|
7792
7792
|
value: n,
|
|
7793
7793
|
enumerable: !0,
|
|
@@ -7797,7 +7797,7 @@ function uf(t, e, n) {
|
|
|
7797
7797
|
}
|
|
7798
7798
|
class va extends ba {
|
|
7799
7799
|
constructor(e) {
|
|
7800
|
-
super(e.name),
|
|
7800
|
+
super(e.name), lf(this, "type", void 0), this.type = e;
|
|
7801
7801
|
}
|
|
7802
7802
|
}
|
|
7803
7803
|
function In(t, e, n) {
|
|
@@ -7808,10 +7808,10 @@ function In(t, e, n) {
|
|
|
7808
7808
|
writable: !0
|
|
7809
7809
|
}) : t[e] = n, t;
|
|
7810
7810
|
}
|
|
7811
|
-
let
|
|
7811
|
+
let cf = Xn;
|
|
7812
7812
|
class Gr extends we {
|
|
7813
7813
|
constructor(e, n) {
|
|
7814
|
-
super("InputList", `InputList<${String(e)}>`), In(this, "kind", "InputList"), In(this,
|
|
7814
|
+
super("InputList", `InputList<${String(e)}>`), In(this, "kind", "InputList"), In(this, cf, void 0), In(this, "$inferInput", void 0), In(this, "listType", void 0), In(this, "required", void 0), this.listType = e, this.required = n;
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
function rn(t, e, n) {
|
|
@@ -7822,13 +7822,13 @@ function rn(t, e, n) {
|
|
|
7822
7822
|
writable: !0
|
|
7823
7823
|
}) : t[e] = n, t;
|
|
7824
7824
|
}
|
|
7825
|
-
let
|
|
7825
|
+
let ff = en, df = En;
|
|
7826
7826
|
class qr extends we {
|
|
7827
7827
|
constructor(e, n) {
|
|
7828
|
-
super("List", `List<${String(e)}>`), rn(this, "kind", "List"), rn(this, "$inferType", void 0), rn(this,
|
|
7828
|
+
super("List", `List<${String(e)}>`), rn(this, "kind", "List"), rn(this, "$inferType", void 0), rn(this, ff, void 0), rn(this, df, void 0), rn(this, "listType", void 0), rn(this, "nullable", void 0), this.listType = e, this.nullable = n;
|
|
7829
7829
|
}
|
|
7830
7830
|
}
|
|
7831
|
-
function
|
|
7831
|
+
function hf(t) {
|
|
7832
7832
|
const e = {};
|
|
7833
7833
|
return Array.isArray(t) ? t.forEach((n) => {
|
|
7834
7834
|
e[String(n)] = {
|
|
@@ -7843,7 +7843,7 @@ function df(t) {
|
|
|
7843
7843
|
});
|
|
7844
7844
|
}), e;
|
|
7845
7845
|
}
|
|
7846
|
-
function
|
|
7846
|
+
function pf(t, e) {
|
|
7847
7847
|
const n = {};
|
|
7848
7848
|
return Object.keys(t).filter((r) => typeof t[t[r]] != "number").forEach((r) => {
|
|
7849
7849
|
n[r] = {
|
|
@@ -7899,10 +7899,10 @@ function _i(t, e, n) {
|
|
|
7899
7899
|
};
|
|
7900
7900
|
throw new Z(`Expected input param ${a} to be an InputObject, Enum, or Scalar but got ${o}`);
|
|
7901
7901
|
}
|
|
7902
|
-
function
|
|
7902
|
+
function gf(t) {
|
|
7903
7903
|
throw new TypeError(`Unexpected value: ${t}`);
|
|
7904
7904
|
}
|
|
7905
|
-
function
|
|
7905
|
+
function mf(t) {
|
|
7906
7906
|
return !!(t && (typeof t == "object" || typeof t == "function") && typeof t.then == "function");
|
|
7907
7907
|
}
|
|
7908
7908
|
function Nt(t) {
|
|
@@ -7937,7 +7937,7 @@ builder.objectType('MyObject', {
|
|
|
7937
7937
|
`);
|
|
7938
7938
|
}
|
|
7939
7939
|
}
|
|
7940
|
-
function
|
|
7940
|
+
function yf(t) {
|
|
7941
7941
|
return typeof t == "object" && t !== null && Rr in t ? t[Rr] : null;
|
|
7942
7942
|
}
|
|
7943
7943
|
function Oi(t) {
|
|
@@ -7951,7 +7951,7 @@ function We(t, e, n) {
|
|
|
7951
7951
|
writable: !0
|
|
7952
7952
|
}) : t[e] = n, t;
|
|
7953
7953
|
}
|
|
7954
|
-
class
|
|
7954
|
+
class bf {
|
|
7955
7955
|
getTypeConfig(e, n) {
|
|
7956
7956
|
const r = this.configStore.getTypeConfig(e, n);
|
|
7957
7957
|
return this.typeConfigs.has(r.name) || this.typeConfigs.set(r.name, this.plugin.onTypeConfig(r)), this.typeConfigs.get(r.name);
|
|
@@ -8018,7 +8018,7 @@ class yf {
|
|
|
8018
8018
|
this.addType(r, this.buildObject(n));
|
|
8019
8019
|
break;
|
|
8020
8020
|
default:
|
|
8021
|
-
|
|
8021
|
+
gf(n);
|
|
8022
8022
|
}
|
|
8023
8023
|
}
|
|
8024
8024
|
addType(e, n) {
|
|
@@ -8193,7 +8193,7 @@ class yf {
|
|
|
8193
8193
|
}
|
|
8194
8194
|
buildInterface(e) {
|
|
8195
8195
|
const n = (i, s, o) => {
|
|
8196
|
-
const a =
|
|
8196
|
+
const a = yf(i);
|
|
8197
8197
|
if (a)
|
|
8198
8198
|
return typeof a == "string" ? a : this.getTypeConfig(a).name;
|
|
8199
8199
|
var u;
|
|
@@ -8230,7 +8230,7 @@ class yf {
|
|
|
8230
8230
|
}
|
|
8231
8231
|
return l;
|
|
8232
8232
|
};
|
|
8233
|
-
return
|
|
8233
|
+
return mf(a) ? a.then(u) : u(a);
|
|
8234
8234
|
};
|
|
8235
8235
|
return new an({
|
|
8236
8236
|
...e,
|
|
@@ -8290,7 +8290,7 @@ class yf {
|
|
|
8290
8290
|
if (!o)
|
|
8291
8291
|
throw new Kn(`No plugin named ${s} was registered`);
|
|
8292
8292
|
return r[s] = new o(this, s), r[s];
|
|
8293
|
-
}), this.pluginMap = r, this.plugin = new
|
|
8293
|
+
}), this.pluginMap = r, this.plugin = new nf(this, this.pluginList);
|
|
8294
8294
|
}
|
|
8295
8295
|
}
|
|
8296
8296
|
function ui(t, e, n) {
|
|
@@ -8301,10 +8301,10 @@ function ui(t, e, n) {
|
|
|
8301
8301
|
writable: !0
|
|
8302
8302
|
}) : t[e] = n, t;
|
|
8303
8303
|
}
|
|
8304
|
-
let
|
|
8305
|
-
class
|
|
8304
|
+
let vf = Xn;
|
|
8305
|
+
class Ef extends we {
|
|
8306
8306
|
constructor(e, n) {
|
|
8307
|
-
super(e, n), ui(this, "kind", void 0), ui(this, "$inferInput", void 0), ui(this,
|
|
8307
|
+
super(e, n), ui(this, "kind", void 0), ui(this, "$inferInput", void 0), ui(this, vf, void 0), this.kind = e;
|
|
8308
8308
|
}
|
|
8309
8309
|
}
|
|
8310
8310
|
function or(t, e, n) {
|
|
@@ -8315,10 +8315,10 @@ function or(t, e, n) {
|
|
|
8315
8315
|
writable: !0
|
|
8316
8316
|
}) : t[e] = n, t;
|
|
8317
8317
|
}
|
|
8318
|
-
let
|
|
8319
|
-
class
|
|
8318
|
+
let wf = en, Tf = En;
|
|
8319
|
+
class Sf extends we {
|
|
8320
8320
|
constructor(e, n) {
|
|
8321
|
-
super(e, n), or(this, "kind", void 0), or(this, "$inferType", void 0), or(this,
|
|
8321
|
+
super(e, n), or(this, "kind", void 0), or(this, "$inferType", void 0), or(this, wf, void 0), or(this, Tf, void 0), this.kind = e;
|
|
8322
8322
|
}
|
|
8323
8323
|
}
|
|
8324
8324
|
function rt(t, e, n) {
|
|
@@ -8329,7 +8329,7 @@ function rt(t, e, n) {
|
|
|
8329
8329
|
writable: !0
|
|
8330
8330
|
}) : t[e] = n, t;
|
|
8331
8331
|
}
|
|
8332
|
-
class
|
|
8332
|
+
class If {
|
|
8333
8333
|
hasConfig(e) {
|
|
8334
8334
|
return typeof e == "string" ? this.typeConfigs.has(e) : this.refsToName.has(e);
|
|
8335
8335
|
}
|
|
@@ -8425,7 +8425,7 @@ class Sf {
|
|
|
8425
8425
|
const n = this.typeConfigs.get(e);
|
|
8426
8426
|
if (n.graphqlKind !== "InputObject" && n.graphqlKind !== "Enum" && n.graphqlKind !== "Scalar")
|
|
8427
8427
|
throw new Z(`Expected ${n.name} to be an input type but got ${n.graphqlKind}`);
|
|
8428
|
-
const r = new
|
|
8428
|
+
const r = new Ef(n.graphqlKind, n.name);
|
|
8429
8429
|
return this.refsToName.set(r, n.name), r;
|
|
8430
8430
|
}
|
|
8431
8431
|
}
|
|
@@ -8446,7 +8446,7 @@ class Sf {
|
|
|
8446
8446
|
const n = this.typeConfigs.get(e);
|
|
8447
8447
|
if (n.graphqlKind === "InputObject")
|
|
8448
8448
|
throw new Z(`Expected ${n.name} to be an output type but got ${n.graphqlKind}`);
|
|
8449
|
-
const r = new
|
|
8449
|
+
const r = new Sf(n.graphqlKind, n.name);
|
|
8450
8450
|
return this.refsToName.set(r, n.name), r;
|
|
8451
8451
|
}
|
|
8452
8452
|
}
|
|
@@ -8546,8 +8546,8 @@ function sn(t, e, n) {
|
|
|
8546
8546
|
writable: !0
|
|
8547
8547
|
}) : t[e] = n, t;
|
|
8548
8548
|
}
|
|
8549
|
-
let
|
|
8550
|
-
class
|
|
8549
|
+
let _f = rf;
|
|
8550
|
+
class Of {
|
|
8551
8551
|
toString() {
|
|
8552
8552
|
var e;
|
|
8553
8553
|
if (this.kind !== "Arg")
|
|
@@ -8559,7 +8559,7 @@ class _f {
|
|
|
8559
8559
|
return `${this.parentTypename}.${r}(${s})`;
|
|
8560
8560
|
}
|
|
8561
8561
|
constructor(e, n) {
|
|
8562
|
-
sn(this, "kind", void 0), sn(this, "parentTypename", void 0), sn(this, "fieldName", void 0), sn(this, "argFor", void 0), sn(this, "$inferInput", void 0), sn(this,
|
|
8562
|
+
sn(this, "kind", void 0), sn(this, "parentTypename", void 0), sn(this, "fieldName", void 0), sn(this, "argFor", void 0), sn(this, "$inferInput", void 0), sn(this, _f, void 0), this.kind = e, this.parentTypename = n;
|
|
8563
8563
|
}
|
|
8564
8564
|
}
|
|
8565
8565
|
function Be(t, e, n) {
|
|
@@ -8585,7 +8585,7 @@ class Ni {
|
|
|
8585
8585
|
* @param {PothosSchemaTypes.InputFieldOptions} [options={}] - Options for this field
|
|
8586
8586
|
*/
|
|
8587
8587
|
field(e) {
|
|
8588
|
-
const n = new
|
|
8588
|
+
const n = new Of(this.kind, this.typename);
|
|
8589
8589
|
return this.builder.configStore.addFieldRef(n, e.type, {}, (r, i, s) => {
|
|
8590
8590
|
var o;
|
|
8591
8591
|
return {
|
|
@@ -8637,13 +8637,13 @@ function _n(t, e, n) {
|
|
|
8637
8637
|
writable: !0
|
|
8638
8638
|
}) : t[e] = n, t;
|
|
8639
8639
|
}
|
|
8640
|
-
let
|
|
8641
|
-
class
|
|
8640
|
+
let Nf = sf;
|
|
8641
|
+
class Af {
|
|
8642
8642
|
toString() {
|
|
8643
8643
|
return this.fieldName ? `${this.parentTypename}.${this.fieldName}` : this.parentTypename;
|
|
8644
8644
|
}
|
|
8645
8645
|
constructor(e, n) {
|
|
8646
|
-
_n(this, "kind", void 0), _n(this, "parentTypename", void 0), _n(this, "fieldName", void 0), _n(this, "$inferType", void 0), _n(this,
|
|
8646
|
+
_n(this, "kind", void 0), _n(this, "parentTypename", void 0), _n(this, "fieldName", void 0), _n(this, "$inferType", void 0), _n(this, Nf, void 0), this.kind = e, this.parentTypename = n;
|
|
8647
8647
|
}
|
|
8648
8648
|
}
|
|
8649
8649
|
function ar(t, e, n) {
|
|
@@ -8654,9 +8654,9 @@ function ar(t, e, n) {
|
|
|
8654
8654
|
writable: !0
|
|
8655
8655
|
}) : t[e] = n, t;
|
|
8656
8656
|
}
|
|
8657
|
-
class
|
|
8657
|
+
class xf {
|
|
8658
8658
|
createField(e) {
|
|
8659
|
-
const n = new
|
|
8659
|
+
const n = new Af(this.kind, this.typename);
|
|
8660
8660
|
var r;
|
|
8661
8661
|
return this.builder.configStore.addFieldRef(n, e.type, (r = e.args) !== null && r !== void 0 ? r : {}, (i, s, o) => {
|
|
8662
8662
|
var a;
|
|
@@ -8706,7 +8706,7 @@ class Af {
|
|
|
8706
8706
|
ar(this, "typename", void 0), ar(this, "builder", void 0), ar(this, "kind", void 0), ar(this, "graphqlKind", void 0), this.typename = e, this.builder = n, this.kind = r, this.graphqlKind = i;
|
|
8707
8707
|
}
|
|
8708
8708
|
}
|
|
8709
|
-
function
|
|
8709
|
+
function Ff(t, e, n) {
|
|
8710
8710
|
return e in t ? Object.defineProperty(t, e, {
|
|
8711
8711
|
value: n,
|
|
8712
8712
|
enumerable: !0,
|
|
@@ -8714,7 +8714,7 @@ function xf(t, e, n) {
|
|
|
8714
8714
|
writable: !0
|
|
8715
8715
|
}) : t[e] = n, t;
|
|
8716
8716
|
}
|
|
8717
|
-
class Qr extends
|
|
8717
|
+
class Qr extends xf {
|
|
8718
8718
|
/**
|
|
8719
8719
|
* Create a Boolean field
|
|
8720
8720
|
* @param {PothosSchemaTypes.FieldOptions} options - Options for this field
|
|
@@ -8857,7 +8857,7 @@ class Qr extends Af {
|
|
|
8857
8857
|
return new qr(e, (r = n == null ? void 0 : n.nullable) !== null && r !== void 0 ? r : !1);
|
|
8858
8858
|
}
|
|
8859
8859
|
constructor(...e) {
|
|
8860
|
-
super(...e),
|
|
8860
|
+
super(...e), Ff(this, "arg", new Ni(this.builder, "Arg", this.typename).argBuilder());
|
|
8861
8861
|
}
|
|
8862
8862
|
}
|
|
8863
8863
|
class Ea extends Qr {
|
|
@@ -9034,10 +9034,10 @@ function On(t, e, n) {
|
|
|
9034
9034
|
writable: !0
|
|
9035
9035
|
}) : t[e] = n, t;
|
|
9036
9036
|
}
|
|
9037
|
-
let
|
|
9038
|
-
class
|
|
9037
|
+
let Lf = en, Cf = Xn;
|
|
9038
|
+
class Rf extends we {
|
|
9039
9039
|
constructor(e) {
|
|
9040
|
-
super("Enum", e), On(this, "kind", "Enum"), On(this, "$inferType", void 0), On(this, "$inferInput", void 0), On(this,
|
|
9040
|
+
super("Enum", e), On(this, "kind", "Enum"), On(this, "$inferType", void 0), On(this, "$inferInput", void 0), On(this, Lf, void 0), On(this, Cf, void 0);
|
|
9041
9041
|
}
|
|
9042
9042
|
}
|
|
9043
9043
|
function Er(t, e, n) {
|
|
@@ -9048,13 +9048,13 @@ function Er(t, e, n) {
|
|
|
9048
9048
|
writable: !0
|
|
9049
9049
|
}) : t[e] = n, t;
|
|
9050
9050
|
}
|
|
9051
|
-
let
|
|
9051
|
+
let kf = Xn;
|
|
9052
9052
|
class wa extends we {
|
|
9053
9053
|
constructor(e) {
|
|
9054
|
-
super("InputObject", e), Er(this, "kind", "InputObject"), Er(this, "$inferInput", void 0), Er(this,
|
|
9054
|
+
super("InputObject", e), Er(this, "kind", "InputObject"), Er(this, "$inferInput", void 0), Er(this, kf, void 0);
|
|
9055
9055
|
}
|
|
9056
9056
|
}
|
|
9057
|
-
class
|
|
9057
|
+
class Df extends wa {
|
|
9058
9058
|
implement(e) {
|
|
9059
9059
|
return this.builder.inputType(this, e), this;
|
|
9060
9060
|
}
|
|
@@ -9070,13 +9070,13 @@ function Rn(t, e, n) {
|
|
|
9070
9070
|
writable: !0
|
|
9071
9071
|
}) : t[e] = n, t;
|
|
9072
9072
|
}
|
|
9073
|
-
let
|
|
9073
|
+
let $f = en, jf = En;
|
|
9074
9074
|
class Ta extends we {
|
|
9075
9075
|
constructor(e) {
|
|
9076
|
-
super("Interface", e), Rn(this, "kind", "Interface"), Rn(this, "$inferType", void 0), Rn(this,
|
|
9076
|
+
super("Interface", e), Rn(this, "kind", "Interface"), Rn(this, "$inferType", void 0), Rn(this, $f, void 0), Rn(this, jf, void 0);
|
|
9077
9077
|
}
|
|
9078
9078
|
}
|
|
9079
|
-
class
|
|
9079
|
+
class Pf extends Ta {
|
|
9080
9080
|
implement(e) {
|
|
9081
9081
|
return this.builder.interfaceType(this, e);
|
|
9082
9082
|
}
|
|
@@ -9092,13 +9092,13 @@ function kn(t, e, n) {
|
|
|
9092
9092
|
writable: !0
|
|
9093
9093
|
}) : t[e] = n, t;
|
|
9094
9094
|
}
|
|
9095
|
-
let
|
|
9095
|
+
let Mf = en, Uf = En;
|
|
9096
9096
|
class Ai extends we {
|
|
9097
9097
|
constructor(e) {
|
|
9098
|
-
super("Object", e), kn(this, "kind", "Object"), kn(this, "$inferType", void 0), kn(this,
|
|
9098
|
+
super("Object", e), kn(this, "kind", "Object"), kn(this, "$inferType", void 0), kn(this, Mf, void 0), kn(this, Uf, void 0);
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
|
-
class
|
|
9101
|
+
class Vf extends Ai {
|
|
9102
9102
|
implement(e) {
|
|
9103
9103
|
return this.builder.objectType(this, e);
|
|
9104
9104
|
}
|
|
@@ -9114,10 +9114,10 @@ function hr(t, e, n) {
|
|
|
9114
9114
|
writable: !0
|
|
9115
9115
|
}) : t[e] = n, t;
|
|
9116
9116
|
}
|
|
9117
|
-
let
|
|
9118
|
-
class
|
|
9117
|
+
let Bf = en, Gf = En;
|
|
9118
|
+
class qf extends we {
|
|
9119
9119
|
constructor(e) {
|
|
9120
|
-
super("Union", e), hr(this, "kind", "Union"), hr(this, "$inferType", void 0), hr(this,
|
|
9120
|
+
super("Union", e), hr(this, "kind", "Union"), hr(this, "$inferType", void 0), hr(this, Bf, void 0), hr(this, Gf, void 0);
|
|
9121
9121
|
}
|
|
9122
9122
|
}
|
|
9123
9123
|
function un(t, e, n) {
|
|
@@ -9255,7 +9255,7 @@ let Ji = class {
|
|
|
9255
9255
|
});
|
|
9256
9256
|
}
|
|
9257
9257
|
unionType(e, n) {
|
|
9258
|
-
const r = new
|
|
9258
|
+
const r = new qf(e);
|
|
9259
9259
|
Array.isArray(n.types) && n.types.forEach((s) => {
|
|
9260
9260
|
Nt(s);
|
|
9261
9261
|
});
|
|
@@ -9273,11 +9273,11 @@ let Ji = class {
|
|
|
9273
9273
|
}
|
|
9274
9274
|
enumType(e, n) {
|
|
9275
9275
|
Nt(e);
|
|
9276
|
-
const r = typeof e == "string" ? e : n.name, i = new
|
|
9276
|
+
const r = typeof e == "string" ? e : n.name, i = new Rf(r), s = typeof e == "object" ? pf(
|
|
9277
9277
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
9278
9278
|
e,
|
|
9279
9279
|
n == null ? void 0 : n.values
|
|
9280
|
-
) :
|
|
9280
|
+
) : hf(n.values), o = {
|
|
9281
9281
|
kind: "Enum",
|
|
9282
9282
|
graphqlKind: "Enum",
|
|
9283
9283
|
name: r,
|
|
@@ -9327,13 +9327,13 @@ let Ji = class {
|
|
|
9327
9327
|
return this.configStore.addTypeConfig(s, i), this.configStore.addFields(i, () => n.fields(new Ni(this, "InputObject", r))), i;
|
|
9328
9328
|
}
|
|
9329
9329
|
inputRef(e) {
|
|
9330
|
-
return new
|
|
9330
|
+
return new Df(this, e);
|
|
9331
9331
|
}
|
|
9332
9332
|
objectRef(e) {
|
|
9333
|
-
return new
|
|
9333
|
+
return new Vf(this, e);
|
|
9334
9334
|
}
|
|
9335
9335
|
interfaceRef(e) {
|
|
9336
|
-
return new
|
|
9336
|
+
return new Pf(this, e);
|
|
9337
9337
|
}
|
|
9338
9338
|
toSchema(...e) {
|
|
9339
9339
|
const [n = {}] = e, { directives: r, extensions: i } = n;
|
|
@@ -9346,7 +9346,7 @@ let Ji = class {
|
|
|
9346
9346
|
].forEach((c) => {
|
|
9347
9347
|
this.configStore.hasConfig(c.name) || this.addScalarType(c.name, c);
|
|
9348
9348
|
});
|
|
9349
|
-
const o = new
|
|
9349
|
+
const o = new bf(this, n);
|
|
9350
9350
|
o.plugin.beforeBuild(), o.buildAll();
|
|
9351
9351
|
const a = [
|
|
9352
9352
|
...o.types.values()
|
|
@@ -9358,10 +9358,10 @@ let Ji = class {
|
|
|
9358
9358
|
directives: r,
|
|
9359
9359
|
types: a
|
|
9360
9360
|
}), l = o.plugin.afterBuild(u);
|
|
9361
|
-
return n.sortSchema === !1 ? l :
|
|
9361
|
+
return n.sortSchema === !1 ? l : Kc(l);
|
|
9362
9362
|
}
|
|
9363
9363
|
constructor(e) {
|
|
9364
|
-
un(this, "configStore", void 0), un(this, "options", void 0), un(this, "defaultFieldNullability", void 0), un(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new
|
|
9364
|
+
un(this, "configStore", void 0), un(this, "options", void 0), un(this, "defaultFieldNullability", void 0), un(this, "defaultInputFieldRequiredness", void 0), this.options = e, this.configStore = new If();
|
|
9365
9365
|
var n;
|
|
9366
9366
|
this.defaultFieldNullability = (n = e.defaultFieldNullability) !== null && n !== void 0 ? n : !1;
|
|
9367
9367
|
var r;
|
|
@@ -9370,7 +9370,7 @@ let Ji = class {
|
|
|
9370
9370
|
};
|
|
9371
9371
|
un(Ji, "plugins", {});
|
|
9372
9372
|
un(Ji, "allowPluginReRegistration", !1);
|
|
9373
|
-
const
|
|
9373
|
+
const Qf = Ji;
|
|
9374
9374
|
function Vs(t) {
|
|
9375
9375
|
return t;
|
|
9376
9376
|
}
|
|
@@ -9407,7 +9407,7 @@ function Hi(t, e, n) {
|
|
|
9407
9407
|
throw new TypeError(t + " cannot represent value: " + pe(e));
|
|
9408
9408
|
}
|
|
9409
9409
|
}
|
|
9410
|
-
var
|
|
9410
|
+
var zf = new mt({
|
|
9411
9411
|
name: "JSON",
|
|
9412
9412
|
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).",
|
|
9413
9413
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9416,7 +9416,7 @@ var Qf = new mt({
|
|
|
9416
9416
|
parseLiteral: function(e, n) {
|
|
9417
9417
|
return Hi("JSON", e, n);
|
|
9418
9418
|
}
|
|
9419
|
-
}),
|
|
9419
|
+
}), Yf = new mt({
|
|
9420
9420
|
name: "JSONObject",
|
|
9421
9421
|
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).",
|
|
9422
9422
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -9439,7 +9439,7 @@ function zr(t, e) {
|
|
|
9439
9439
|
case "function":
|
|
9440
9440
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
9441
9441
|
case "object":
|
|
9442
|
-
return
|
|
9442
|
+
return Jf(t, e);
|
|
9443
9443
|
default:
|
|
9444
9444
|
return String(t);
|
|
9445
9445
|
}
|
|
@@ -9448,7 +9448,7 @@ function Gs(t) {
|
|
|
9448
9448
|
return (t.name = "GraphQLError") ? t.toString() : `${t.name}: ${t.message};
|
|
9449
9449
|
${t.stack}`;
|
|
9450
9450
|
}
|
|
9451
|
-
function
|
|
9451
|
+
function Jf(t, e) {
|
|
9452
9452
|
if (t === null)
|
|
9453
9453
|
return "null";
|
|
9454
9454
|
if (t instanceof Error)
|
|
@@ -9457,20 +9457,20 @@ function Yf(t, e) {
|
|
|
9457
9457
|
if (e.includes(t))
|
|
9458
9458
|
return "[Circular]";
|
|
9459
9459
|
const n = [...e, t];
|
|
9460
|
-
if (
|
|
9460
|
+
if (Hf(t)) {
|
|
9461
9461
|
const r = t.toJSON();
|
|
9462
9462
|
if (r !== t)
|
|
9463
9463
|
return typeof r == "string" ? r : zr(r, n);
|
|
9464
9464
|
} else if (Array.isArray(t))
|
|
9465
9465
|
return qs(t, n);
|
|
9466
|
-
return
|
|
9466
|
+
return Wf(t, n);
|
|
9467
9467
|
}
|
|
9468
|
-
function
|
|
9468
|
+
function Hf(t) {
|
|
9469
9469
|
return typeof t.toJSON == "function";
|
|
9470
9470
|
}
|
|
9471
|
-
function
|
|
9471
|
+
function Wf(t, e) {
|
|
9472
9472
|
const n = Object.entries(t);
|
|
9473
|
-
return n.length === 0 ? "{}" : e.length > Ia ? "[" +
|
|
9473
|
+
return n.length === 0 ? "{}" : e.length > Ia ? "[" + Kf(t) + "]" : "{ " + n.map(([i, s]) => i + ": " + zr(s, e)).join(", ") + " }";
|
|
9474
9474
|
}
|
|
9475
9475
|
function qs(t, e) {
|
|
9476
9476
|
if (t.length === 0)
|
|
@@ -9482,7 +9482,7 @@ function qs(t, e) {
|
|
|
9482
9482
|
r.push(zr(t[i], e));
|
|
9483
9483
|
return "[" + r.join(", ") + "]";
|
|
9484
9484
|
}
|
|
9485
|
-
function
|
|
9485
|
+
function Kf(t) {
|
|
9486
9486
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
9487
9487
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
9488
9488
|
const n = t.constructor.name;
|
|
@@ -9491,7 +9491,7 @@ function Wf(t) {
|
|
|
9491
9491
|
}
|
|
9492
9492
|
return e;
|
|
9493
9493
|
}
|
|
9494
|
-
const
|
|
9494
|
+
const Xf = [
|
|
9495
9495
|
"message",
|
|
9496
9496
|
"locations",
|
|
9497
9497
|
"path",
|
|
@@ -9503,13 +9503,13 @@ const Kf = [
|
|
|
9503
9503
|
"stack",
|
|
9504
9504
|
"extensions"
|
|
9505
9505
|
];
|
|
9506
|
-
function
|
|
9507
|
-
return t != null && typeof t == "object" && Object.keys(t).every((e) =>
|
|
9506
|
+
function Zf(t) {
|
|
9507
|
+
return t != null && typeof t == "object" && Object.keys(t).every((e) => Xf.includes(e));
|
|
9508
9508
|
}
|
|
9509
9509
|
function q(t, e) {
|
|
9510
|
-
return e != null && e.originalError && !(e.originalError instanceof Error) &&
|
|
9510
|
+
return e != null && e.originalError && !(e.originalError instanceof Error) && Zf(e.originalError) && (e.originalError = q(e.originalError.message, e.originalError)), Cu.major >= 17 ? new D(t, e) : new D(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);
|
|
9511
9511
|
}
|
|
9512
|
-
function
|
|
9512
|
+
function ed(t) {
|
|
9513
9513
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
9514
9514
|
}
|
|
9515
9515
|
function _a(t) {
|
|
@@ -9518,7 +9518,7 @@ function _a(t) {
|
|
|
9518
9518
|
function Fe(t) {
|
|
9519
9519
|
return (t == null ? void 0 : t.then) != null;
|
|
9520
9520
|
}
|
|
9521
|
-
function
|
|
9521
|
+
function td(t, e, n) {
|
|
9522
9522
|
let r = n;
|
|
9523
9523
|
for (const i of t)
|
|
9524
9524
|
r = Fe(r) ? r.then((s) => e(s, i)) : e(r, i);
|
|
@@ -9582,7 +9582,7 @@ function Aa(t) {
|
|
|
9582
9582
|
return i;
|
|
9583
9583
|
};
|
|
9584
9584
|
}
|
|
9585
|
-
function
|
|
9585
|
+
function nd(t) {
|
|
9586
9586
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9587
9587
|
return function(r, i, s) {
|
|
9588
9588
|
let o = e.get(r);
|
|
@@ -9607,7 +9607,7 @@ function td(t) {
|
|
|
9607
9607
|
return u;
|
|
9608
9608
|
};
|
|
9609
9609
|
}
|
|
9610
|
-
function
|
|
9610
|
+
function rd(t) {
|
|
9611
9611
|
const e = /* @__PURE__ */ new WeakMap();
|
|
9612
9612
|
return function(r, i, s, o, a) {
|
|
9613
9613
|
let u = e.get(r);
|
|
@@ -9654,15 +9654,15 @@ function nd(t) {
|
|
|
9654
9654
|
return g;
|
|
9655
9655
|
};
|
|
9656
9656
|
}
|
|
9657
|
-
function
|
|
9658
|
-
const i =
|
|
9657
|
+
function id(t, e, n) {
|
|
9658
|
+
const i = sd(t).get(e);
|
|
9659
9659
|
if (i == null)
|
|
9660
9660
|
throw q(`Schema is not configured to execute ${e} operation.`, {
|
|
9661
9661
|
nodes: n
|
|
9662
9662
|
});
|
|
9663
9663
|
return i;
|
|
9664
9664
|
}
|
|
9665
|
-
const
|
|
9665
|
+
const sd = Aa(function(e) {
|
|
9666
9666
|
const n = /* @__PURE__ */ new Map(), r = e.getQueryType();
|
|
9667
9667
|
r && n.set("query", r);
|
|
9668
9668
|
const i = e.getMutationType();
|
|
@@ -9714,7 +9714,7 @@ class kr extends Map {
|
|
|
9714
9714
|
r === void 0 ? this.set(e, [n]) : r.push(n);
|
|
9715
9715
|
}
|
|
9716
9716
|
}
|
|
9717
|
-
const
|
|
9717
|
+
const od = new Ft({
|
|
9718
9718
|
name: "defer",
|
|
9719
9719
|
description: "Directs the executor to defer this fragment when the `if` argument is true or undefined.",
|
|
9720
9720
|
locations: [z.FRAGMENT_SPREAD, z.INLINE_FRAGMENT],
|
|
@@ -9729,7 +9729,7 @@ const sd = new Ft({
|
|
|
9729
9729
|
description: "Unique name"
|
|
9730
9730
|
}
|
|
9731
9731
|
}
|
|
9732
|
-
}),
|
|
9732
|
+
}), ad = new Ft({
|
|
9733
9733
|
name: "stream",
|
|
9734
9734
|
description: "Directs the executor to stream plural fields when the `if` argument is true or undefined.",
|
|
9735
9735
|
locations: [z.FIELD],
|
|
@@ -9756,7 +9756,7 @@ function ln(t, e, n, r, i, s, o, a) {
|
|
|
9756
9756
|
case T.FIELD: {
|
|
9757
9757
|
if (!li(n, u))
|
|
9758
9758
|
continue;
|
|
9759
|
-
s.add(
|
|
9759
|
+
s.add(ud(u), u);
|
|
9760
9760
|
break;
|
|
9761
9761
|
}
|
|
9762
9762
|
case T.INLINE_FRAGMENT: {
|
|
@@ -9813,17 +9813,17 @@ function Ys(t, e, n) {
|
|
|
9813
9813
|
const i = Qe(t, r);
|
|
9814
9814
|
return i === n ? !0 : xt(i) ? t.getPossibleTypes(i).includes(n) : !1;
|
|
9815
9815
|
}
|
|
9816
|
-
function
|
|
9816
|
+
function ud(t) {
|
|
9817
9817
|
return t.alias ? t.alias.value : t.name.value;
|
|
9818
9818
|
}
|
|
9819
9819
|
function Js(t, e) {
|
|
9820
|
-
const n = yn(
|
|
9820
|
+
const n = yn(od, e, t);
|
|
9821
9821
|
if (n && n.if !== !1)
|
|
9822
9822
|
return {
|
|
9823
9823
|
label: typeof n.label == "string" ? n.label : void 0
|
|
9824
9824
|
};
|
|
9825
9825
|
}
|
|
9826
|
-
const
|
|
9826
|
+
const ld = rd(function(e, n, r, i, s) {
|
|
9827
9827
|
const o = new kr(), a = /* @__PURE__ */ new Set(), u = [], l = {
|
|
9828
9828
|
fields: o,
|
|
9829
9829
|
patches: u
|
|
@@ -9845,13 +9845,13 @@ function Le(t) {
|
|
|
9845
9845
|
e.push(n.key), n = n.prev;
|
|
9846
9846
|
return e.reverse();
|
|
9847
9847
|
}
|
|
9848
|
-
function
|
|
9848
|
+
function cd(t) {
|
|
9849
9849
|
return t.map((e) => typeof e == "number" ? "[" + e.toString() + "]" : "." + e).join("");
|
|
9850
9850
|
}
|
|
9851
|
-
function
|
|
9851
|
+
function fd(t) {
|
|
9852
9852
|
return t != null && typeof t == "object" && "errors" in t;
|
|
9853
9853
|
}
|
|
9854
|
-
function
|
|
9854
|
+
function dd(t) {
|
|
9855
9855
|
return t != null && typeof t.toString == "function";
|
|
9856
9856
|
}
|
|
9857
9857
|
function bn(t) {
|
|
@@ -9862,7 +9862,7 @@ function La(t) {
|
|
|
9862
9862
|
}
|
|
9863
9863
|
function wr(t, e, n) {
|
|
9864
9864
|
const r = /* @__PURE__ */ new Set();
|
|
9865
|
-
if (
|
|
9865
|
+
if (fd(t))
|
|
9866
9866
|
for (const i of t.errors) {
|
|
9867
9867
|
const s = wr(i, e, n);
|
|
9868
9868
|
for (const o of s)
|
|
@@ -9879,7 +9879,7 @@ function wr(t, e, n) {
|
|
|
9879
9879
|
extensions: {
|
|
9880
9880
|
unexpected: !0
|
|
9881
9881
|
}
|
|
9882
|
-
})) :
|
|
9882
|
+
})) : dd(t) ? r.add(q(t.toString(), {
|
|
9883
9883
|
extensions: {
|
|
9884
9884
|
unexpected: !0
|
|
9885
9885
|
}
|
|
@@ -9909,7 +9909,7 @@ function Wi(t, e = {}, n = !1) {
|
|
|
9909
9909
|
headers: e
|
|
9910
9910
|
};
|
|
9911
9911
|
}
|
|
9912
|
-
function
|
|
9912
|
+
function hd(t) {
|
|
9913
9913
|
return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
|
|
9914
9914
|
t.some(bn);
|
|
9915
9915
|
}
|
|
@@ -9926,33 +9926,33 @@ const Ut = {
|
|
|
9926
9926
|
error: 3,
|
|
9927
9927
|
silent: 4
|
|
9928
9928
|
}, pr = () => {
|
|
9929
|
-
}, Jr = (t) => (...e) => console.log(t, ...e),
|
|
9929
|
+
}, Jr = (t) => (...e) => console.log(t, ...e), pd = console.debug ? (...t) => console.debug(Xs, ...t) : Jr(Xs), gd = console.info ? (...t) => console.info(Ws, ...t) : Jr(Ws), md = console.warn ? (...t) => console.warn(Hs, ...t) : Jr(Hs), yd = console.error ? (...t) => console.error(Ks, ...t) : Jr(Ks), ci = (t = ((e) => (e = globalThis.process) == null ? void 0 : e.env.DEBUG)() === "1" ? "debug" : "info") => {
|
|
9930
9930
|
const n = Nn[t];
|
|
9931
9931
|
return {
|
|
9932
|
-
debug: n > Nn.debug ? pr :
|
|
9933
|
-
info: n > Nn.info ? pr :
|
|
9934
|
-
warn: n > Nn.warn ? pr :
|
|
9935
|
-
error: n > Nn.error ? pr :
|
|
9932
|
+
debug: n > Nn.debug ? pr : pd,
|
|
9933
|
+
info: n > Nn.info ? pr : gd,
|
|
9934
|
+
warn: n > Nn.warn ? pr : md,
|
|
9935
|
+
error: n > Nn.error ? pr : yd
|
|
9936
9936
|
};
|
|
9937
9937
|
};
|
|
9938
|
-
var
|
|
9939
|
-
function
|
|
9938
|
+
var bd = '<!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.2.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.2.1/dist/yoga-graphiql.es.js";renderYogaGraphiQL(root,__OPTS__)<\/script></body></html>';
|
|
9939
|
+
function vd({ headers: t, method: e }) {
|
|
9940
9940
|
var n;
|
|
9941
9941
|
return e === "GET" && !!((n = t == null ? void 0 : t.get("accept")) != null && n.includes("text/html"));
|
|
9942
9942
|
}
|
|
9943
|
-
const
|
|
9944
|
-
function
|
|
9943
|
+
const Ed = (t) => bd.replace("__TITLE__", (t == null ? void 0 : t.title) || "Yoga GraphiQL").replace("__OPTS__", JSON.stringify(t ?? {}));
|
|
9944
|
+
function wd(t) {
|
|
9945
9945
|
const e = t.logger ?? console;
|
|
9946
9946
|
let n;
|
|
9947
9947
|
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 = () => ({});
|
|
9948
|
-
const r = (t == null ? void 0 : t.render) ??
|
|
9948
|
+
const r = (t == null ? void 0 : t.render) ?? Ed;
|
|
9949
9949
|
let i;
|
|
9950
9950
|
const s = ({ URLPattern: o }) => (i || (i = new o({
|
|
9951
9951
|
pathname: t.graphqlEndpoint
|
|
9952
9952
|
})), i);
|
|
9953
9953
|
return {
|
|
9954
9954
|
async onRequest({ request: o, serverContext: a, fetchAPI: u, endResponse: l, url: c }) {
|
|
9955
|
-
if (
|
|
9955
|
+
if (vd(o) && (o.url.endsWith(t.graphqlEndpoint) || o.url.endsWith(`${t.graphqlEndpoint}/`) || c.pathname === t.graphqlEndpoint || c.pathname === `${t.graphqlEndpoint}/` || s(u).test(c))) {
|
|
9956
9956
|
e.debug("Rendering GraphiQL");
|
|
9957
9957
|
const p = await n(o, a);
|
|
9958
9958
|
if (p) {
|
|
@@ -9970,7 +9970,7 @@ function Ed(t) {
|
|
|
9970
9970
|
}
|
|
9971
9971
|
};
|
|
9972
9972
|
}
|
|
9973
|
-
const
|
|
9973
|
+
const Td = (t) => {
|
|
9974
9974
|
if (t == null)
|
|
9975
9975
|
return {};
|
|
9976
9976
|
if (aa(t))
|
|
@@ -10019,10 +10019,10 @@ const wd = (t) => {
|
|
|
10019
10019
|
}
|
|
10020
10020
|
};
|
|
10021
10021
|
};
|
|
10022
|
-
function
|
|
10022
|
+
function Sd(t) {
|
|
10023
10023
|
return t != null && typeof t.then == "function";
|
|
10024
10024
|
}
|
|
10025
|
-
const
|
|
10025
|
+
const Id = (t) => {
|
|
10026
10026
|
throw t;
|
|
10027
10027
|
};
|
|
10028
10028
|
class Ke {
|
|
@@ -10035,7 +10035,7 @@ class Ke {
|
|
|
10035
10035
|
this.state = { status: "rejected", value: r };
|
|
10036
10036
|
return;
|
|
10037
10037
|
}
|
|
10038
|
-
if (
|
|
10038
|
+
if (Sd(n)) {
|
|
10039
10039
|
this.state = { status: "pending", value: n };
|
|
10040
10040
|
return;
|
|
10041
10041
|
}
|
|
@@ -10045,7 +10045,7 @@ class Ke {
|
|
|
10045
10045
|
const r = this.state;
|
|
10046
10046
|
if (r.status === "pending")
|
|
10047
10047
|
return new Ke(() => r.value.then(e, n));
|
|
10048
|
-
const i = typeof n == "function" ? n :
|
|
10048
|
+
const i = typeof n == "function" ? n : Id;
|
|
10049
10049
|
if (r.status === "rejected")
|
|
10050
10050
|
return new Ke(() => i(r.value));
|
|
10051
10051
|
try {
|
|
@@ -10085,7 +10085,7 @@ class Ke {
|
|
|
10085
10085
|
})) : new Ke(() => Promise.all(s)) : new Ke(() => s);
|
|
10086
10086
|
}
|
|
10087
10087
|
}
|
|
10088
|
-
function
|
|
10088
|
+
function _d(t) {
|
|
10089
10089
|
const e = t[Symbol.asyncIterator]();
|
|
10090
10090
|
let n, r, i = !1;
|
|
10091
10091
|
async function s() {
|
|
@@ -10137,10 +10137,10 @@ async function eo(t, e) {
|
|
|
10137
10137
|
})).then(() => r(), i);
|
|
10138
10138
|
}), n;
|
|
10139
10139
|
}
|
|
10140
|
-
function
|
|
10140
|
+
function Od(t, e, n, r) {
|
|
10141
10141
|
const i = [], s = r == null ? void 0 : r.maxErrors;
|
|
10142
10142
|
try {
|
|
10143
|
-
const o =
|
|
10143
|
+
const o = Nd(t, e, n, (a) => {
|
|
10144
10144
|
if (s != null && i.length >= s)
|
|
10145
10145
|
throw q("Too many errors processing variables, error limit reached. Execution aborted.");
|
|
10146
10146
|
i.push(a);
|
|
@@ -10152,7 +10152,7 @@ function _d(t, e, n, r) {
|
|
|
10152
10152
|
}
|
|
10153
10153
|
return { errors: i };
|
|
10154
10154
|
}
|
|
10155
|
-
function
|
|
10155
|
+
function Nd(t, e, n, r) {
|
|
10156
10156
|
const i = {};
|
|
10157
10157
|
for (const s of e) {
|
|
10158
10158
|
const o = s.variable.name.value, a = Qe(t, s.type);
|
|
@@ -10180,9 +10180,9 @@ function Od(t, e, n, r) {
|
|
|
10180
10180
|
}));
|
|
10181
10181
|
continue;
|
|
10182
10182
|
}
|
|
10183
|
-
i[o] =
|
|
10183
|
+
i[o] = Oc(u, a, (l, c, p) => {
|
|
10184
10184
|
let g = `Variable "$${o}" got invalid value ` + qe(c);
|
|
10185
|
-
l.length > 0 && (g += ` at "${o}${
|
|
10185
|
+
l.length > 0 && (g += ` at "${o}${cd(l)}"`), r(q(g + "; " + p.message, {
|
|
10186
10186
|
nodes: s,
|
|
10187
10187
|
originalError: p.originalError
|
|
10188
10188
|
}));
|
|
@@ -10190,8 +10190,8 @@ function Od(t, e, n, r) {
|
|
|
10190
10190
|
}
|
|
10191
10191
|
return i;
|
|
10192
10192
|
}
|
|
10193
|
-
const
|
|
10194
|
-
function
|
|
10193
|
+
const Ad = nd((t, e, n) => ld(t.schema, t.fragments, t.variableValues, e, n));
|
|
10194
|
+
function xd(t) {
|
|
10195
10195
|
const e = Ra(t);
|
|
10196
10196
|
return "schema" in e ? Ca(e) : {
|
|
10197
10197
|
errors: e.map((n) => {
|
|
@@ -10209,21 +10209,21 @@ function Ad(t) {
|
|
|
10209
10209
|
};
|
|
10210
10210
|
}
|
|
10211
10211
|
function Ca(t) {
|
|
10212
|
-
return new Ke(() =>
|
|
10212
|
+
return new Ke(() => Cd(t)).then((e) => {
|
|
10213
10213
|
const n = to(e, t.errors);
|
|
10214
10214
|
return t.subsequentPayloads.size > 0 ? {
|
|
10215
10215
|
initialResult: {
|
|
10216
10216
|
...n,
|
|
10217
10217
|
hasNext: !0
|
|
10218
10218
|
},
|
|
10219
|
-
subsequentResults:
|
|
10219
|
+
subsequentResults: Yd(t)
|
|
10220
10220
|
} : n;
|
|
10221
10221
|
}, (e) => (t.errors.push(e), to(null, t.errors))).resolve();
|
|
10222
10222
|
}
|
|
10223
10223
|
function to(t, e) {
|
|
10224
10224
|
return e.length === 0 ? { data: t } : { errors: e, data: t };
|
|
10225
10225
|
}
|
|
10226
|
-
const
|
|
10226
|
+
const Fd = Aa(function(e) {
|
|
10227
10227
|
const n = /* @__PURE__ */ Object.create(null);
|
|
10228
10228
|
for (const r of e.definitions)
|
|
10229
10229
|
r.kind === T.FRAGMENT_DEFINITION && (n[r.name.value] = r);
|
|
@@ -10233,7 +10233,7 @@ function Ra(t) {
|
|
|
10233
10233
|
var C;
|
|
10234
10234
|
const { schema: e, document: n, rootValue: r, contextValue: i, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: l, signal: c } = t;
|
|
10235
10235
|
ua(e);
|
|
10236
|
-
const p =
|
|
10236
|
+
const p = Fd(n);
|
|
10237
10237
|
let g;
|
|
10238
10238
|
for (const E of n.definitions)
|
|
10239
10239
|
switch (E.kind) {
|
|
@@ -10249,7 +10249,7 @@ function Ra(t) {
|
|
|
10249
10249
|
}
|
|
10250
10250
|
if (g == null)
|
|
10251
10251
|
return o != null ? [q(`Unknown operation named "${o}".`)] : [q("Must provide an operation.")];
|
|
10252
|
-
const S = g.variableDefinitions ?? [], v =
|
|
10252
|
+
const S = g.variableDefinitions ?? [], v = Od(e, S, s ?? {}, {
|
|
10253
10253
|
maxErrors: 50
|
|
10254
10254
|
});
|
|
10255
10255
|
return v.errors ? v.errors : {
|
|
@@ -10260,14 +10260,14 @@ function Ra(t) {
|
|
|
10260
10260
|
operation: g,
|
|
10261
10261
|
variableValues: v.coerced,
|
|
10262
10262
|
fieldResolver: a ?? so,
|
|
10263
|
-
typeResolver: u ??
|
|
10263
|
+
typeResolver: u ?? Pd,
|
|
10264
10264
|
subscribeFieldResolver: l ?? so,
|
|
10265
10265
|
subsequentPayloads: /* @__PURE__ */ new Set(),
|
|
10266
10266
|
errors: [],
|
|
10267
10267
|
signal: c
|
|
10268
10268
|
};
|
|
10269
10269
|
}
|
|
10270
|
-
function
|
|
10270
|
+
function Ld(t, e) {
|
|
10271
10271
|
return {
|
|
10272
10272
|
...t,
|
|
10273
10273
|
rootValue: e,
|
|
@@ -10275,23 +10275,23 @@ function Fd(t, e) {
|
|
|
10275
10275
|
errors: []
|
|
10276
10276
|
};
|
|
10277
10277
|
}
|
|
10278
|
-
function
|
|
10279
|
-
const { operation: e, schema: n, fragments: r, variableValues: i, rootValue: s } = t, o =
|
|
10278
|
+
function Cd(t) {
|
|
10279
|
+
const { operation: e, schema: n, fragments: r, variableValues: i, rootValue: s } = t, o = id(n, e.operation, [e]);
|
|
10280
10280
|
o == null && q(`Schema is not configured to execute ${e.operation} operation.`, {
|
|
10281
10281
|
nodes: e
|
|
10282
10282
|
});
|
|
10283
10283
|
const { fields: a, patches: u } = Fa(n, r, i, o, e.selectionSet), l = void 0;
|
|
10284
10284
|
let c;
|
|
10285
|
-
e.operation === "mutation" ? c =
|
|
10285
|
+
e.operation === "mutation" ? c = Rd(t, o, s, l, a) : c = Ki(t, o, s, l, a);
|
|
10286
10286
|
for (const p of u) {
|
|
10287
10287
|
const { label: g, fields: S } = p;
|
|
10288
10288
|
Ma(t, o, s, S, g, l);
|
|
10289
10289
|
}
|
|
10290
10290
|
return c;
|
|
10291
10291
|
}
|
|
10292
|
-
function
|
|
10292
|
+
function Rd(t, e, n, r, i) {
|
|
10293
10293
|
let s = !1;
|
|
10294
|
-
return
|
|
10294
|
+
return td(i, (o, [a, u]) => {
|
|
10295
10295
|
var c;
|
|
10296
10296
|
const l = wn(r, a, e.name);
|
|
10297
10297
|
return (c = t.signal) != null && c.aborted ? (o[a] = null, o) : new Ke(() => ka(t, e, n, u, l)).then((p) => {
|
|
@@ -10378,11 +10378,11 @@ function Vt(t, e, n, r, i, s, o) {
|
|
|
10378
10378
|
if (s == null)
|
|
10379
10379
|
return null;
|
|
10380
10380
|
if (xe(e))
|
|
10381
|
-
return
|
|
10381
|
+
return Dd(t, e, n, r, i, s, o);
|
|
10382
10382
|
if (Pt(e))
|
|
10383
|
-
return
|
|
10383
|
+
return $d(e, s);
|
|
10384
10384
|
if (xt(e))
|
|
10385
|
-
return
|
|
10385
|
+
return jd(t, e, n, r, i, s, o);
|
|
10386
10386
|
if (ce(e))
|
|
10387
10387
|
return xi(t, e, n, r, i, s, o);
|
|
10388
10388
|
console.assert(!1, "Cannot complete value of unexpected output type: " + qe(e));
|
|
@@ -10390,14 +10390,14 @@ function Vt(t, e, n, r, i, s, o) {
|
|
|
10390
10390
|
function $a(t, e, n) {
|
|
10391
10391
|
if (typeof n.key == "number")
|
|
10392
10392
|
return;
|
|
10393
|
-
const r = yn(
|
|
10393
|
+
const r = yn(ad, e[0], t.variableValues);
|
|
10394
10394
|
if (r && r.if !== !1)
|
|
10395
10395
|
return Zs(typeof r.initialCount == "number", "initialCount must be a number"), Zs(r.initialCount >= 0, "initialCount must be a positive integer"), {
|
|
10396
10396
|
initialCount: r.initialCount,
|
|
10397
10397
|
label: typeof r.label == "string" ? r.label : void 0
|
|
10398
10398
|
};
|
|
10399
10399
|
}
|
|
10400
|
-
async function
|
|
10400
|
+
async function kd(t, e, n, r, i, s, o) {
|
|
10401
10401
|
var g;
|
|
10402
10402
|
(g = t.signal) == null || g.addEventListener("abort", () => {
|
|
10403
10403
|
var S, v;
|
|
@@ -10413,7 +10413,7 @@ async function Rd(t, e, n, r, i, s, o) {
|
|
|
10413
10413
|
let p = 0;
|
|
10414
10414
|
for (; ; ) {
|
|
10415
10415
|
if (u && typeof u.initialCount == "number" && p >= u.initialCount) {
|
|
10416
|
-
|
|
10416
|
+
Qd(p, s, t, n, r, e, i, u.label, o);
|
|
10417
10417
|
break;
|
|
10418
10418
|
}
|
|
10419
10419
|
const S = wn(i, p, void 0);
|
|
@@ -10430,13 +10430,13 @@ async function Rd(t, e, n, r, i, s, o) {
|
|
|
10430
10430
|
}
|
|
10431
10431
|
return l ? Promise.all(c) : c;
|
|
10432
10432
|
}
|
|
10433
|
-
function
|
|
10433
|
+
function Dd(t, e, n, r, i, s, o) {
|
|
10434
10434
|
const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
|
|
10435
10435
|
if (Yr(s)) {
|
|
10436
10436
|
const v = s[Symbol.asyncIterator]();
|
|
10437
|
-
return
|
|
10437
|
+
return kd(t, a, n, r, i, v, o);
|
|
10438
10438
|
}
|
|
10439
|
-
if (!
|
|
10439
|
+
if (!ed(s))
|
|
10440
10440
|
throw q(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);
|
|
10441
10441
|
const l = $a(t, n, i);
|
|
10442
10442
|
let c = !1, p = o;
|
|
@@ -10445,7 +10445,7 @@ function kd(t, e, n, r, i, s, o) {
|
|
|
10445
10445
|
for (const v of s) {
|
|
10446
10446
|
const C = wn(i, S, void 0);
|
|
10447
10447
|
if (l && typeof l.initialCount == "number" && S >= l.initialCount) {
|
|
10448
|
-
p =
|
|
10448
|
+
p = Gd(i, C, v, t, n, r, a, l.label, p), S++;
|
|
10449
10449
|
continue;
|
|
10450
10450
|
}
|
|
10451
10451
|
ja(v, g, u, t, a, n, r, C, o) && (c = !0), S++;
|
|
@@ -10467,7 +10467,7 @@ function ja(t, e, n, r, i, s, o, a, u) {
|
|
|
10467
10467
|
}
|
|
10468
10468
|
return !1;
|
|
10469
10469
|
}
|
|
10470
|
-
function
|
|
10470
|
+
function $d(t, e) {
|
|
10471
10471
|
let n;
|
|
10472
10472
|
try {
|
|
10473
10473
|
n = t.serialize(e);
|
|
@@ -10478,7 +10478,7 @@ function Dd(t, e) {
|
|
|
10478
10478
|
throw new Error(`Expected \`${qe(t)}.serialize(${qe(e)})\` to return non-nullable value, returned: ${qe(n)}`);
|
|
10479
10479
|
return n;
|
|
10480
10480
|
}
|
|
10481
|
-
function
|
|
10481
|
+
function jd(t, e, n, r, i, s, o) {
|
|
10482
10482
|
const a = e.resolveType ?? t.typeResolver, u = t.contextValue, l = a(s, u, r, e);
|
|
10483
10483
|
return Fe(l) ? l.then((c) => xi(t, no(c, t, e, n, r, s), n, r, i, s, o)) : xi(t, no(l, t, e, n, r, s), n, r, i, s, o);
|
|
10484
10484
|
}
|
|
@@ -10518,14 +10518,14 @@ function ro(t, e, n) {
|
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
10520
10520
|
function io(t, e, n, r, i, s) {
|
|
10521
|
-
const { fields: o, patches: a } =
|
|
10521
|
+
const { fields: o, patches: a } = Ad(t, e, n), u = Ki(t, e, i, r, o, s);
|
|
10522
10522
|
for (const l of a) {
|
|
10523
10523
|
const { label: c, fields: p } = l;
|
|
10524
10524
|
Ma(t, e, i, p, c, r, s);
|
|
10525
10525
|
}
|
|
10526
10526
|
return u;
|
|
10527
10527
|
}
|
|
10528
|
-
const
|
|
10528
|
+
const Pd = function(t, e, n, r) {
|
|
10529
10529
|
if (_a(t) && typeof t.__typename == "string")
|
|
10530
10530
|
return t.__typename;
|
|
10531
10531
|
const i = n.schema.getPossibleTypes(r), s = [];
|
|
@@ -10551,7 +10551,7 @@ const jd = function(t, e, n, r) {
|
|
|
10551
10551
|
return typeof i == "function" ? t[r.fieldName](e, n, r) : i;
|
|
10552
10552
|
}
|
|
10553
10553
|
};
|
|
10554
|
-
function
|
|
10554
|
+
function Md(t) {
|
|
10555
10555
|
const e = Ra(t);
|
|
10556
10556
|
if (!("schema" in e))
|
|
10557
10557
|
return {
|
|
@@ -10568,7 +10568,7 @@ function Pd(t) {
|
|
|
10568
10568
|
}), r;
|
|
10569
10569
|
})
|
|
10570
10570
|
};
|
|
10571
|
-
const n =
|
|
10571
|
+
const n = Vd(e);
|
|
10572
10572
|
return Fe(n) ? n.then((r) => oo(e, r)) : oo(e, n);
|
|
10573
10573
|
}
|
|
10574
10574
|
function Pa(t, e) {
|
|
@@ -10598,26 +10598,26 @@ function Pa(t, e) {
|
|
|
10598
10598
|
}
|
|
10599
10599
|
};
|
|
10600
10600
|
}
|
|
10601
|
-
async function*
|
|
10601
|
+
async function* Ud(t, e) {
|
|
10602
10602
|
"initialResult" in t ? yield* Pa(t, e) : yield t;
|
|
10603
10603
|
}
|
|
10604
10604
|
function oo(t, e) {
|
|
10605
|
-
return Yr(e) ?
|
|
10605
|
+
return Yr(e) ? _d(xa(e[Symbol.asyncIterator](), async (n) => Ud(await Ca(Ld(t, n)), t.signal), (n) => {
|
|
10606
10606
|
throw q(n.message, {
|
|
10607
10607
|
originalError: n,
|
|
10608
10608
|
nodes: [t.operation]
|
|
10609
10609
|
});
|
|
10610
10610
|
})) : e;
|
|
10611
10611
|
}
|
|
10612
|
-
function
|
|
10612
|
+
function Vd(t) {
|
|
10613
10613
|
try {
|
|
10614
|
-
const e =
|
|
10614
|
+
const e = Bd(t);
|
|
10615
10615
|
return Fe(e) ? e.then(void 0, (n) => ({ errors: [n] })) : e;
|
|
10616
10616
|
} catch (e) {
|
|
10617
10617
|
return { errors: [e] };
|
|
10618
10618
|
}
|
|
10619
10619
|
}
|
|
10620
|
-
function
|
|
10620
|
+
function Bd(t) {
|
|
10621
10621
|
const { schema: e, fragments: n, operation: r, variableValues: i, rootValue: s } = t, o = e.getSubscriptionType();
|
|
10622
10622
|
if (o == null)
|
|
10623
10623
|
throw q("Schema is not configured to execute subscription operation.", {
|
|
@@ -10654,7 +10654,7 @@ function ao(t, e) {
|
|
|
10654
10654
|
};
|
|
10655
10655
|
}
|
|
10656
10656
|
function Ma(t, e, n, r, i, s, o) {
|
|
10657
|
-
const a = new
|
|
10657
|
+
const a = new Jd({
|
|
10658
10658
|
label: i,
|
|
10659
10659
|
path: s,
|
|
10660
10660
|
parentContext: o,
|
|
@@ -10668,7 +10668,7 @@ function Ma(t, e, n, r, i, s, o) {
|
|
|
10668
10668
|
}
|
|
10669
10669
|
a.addData(u);
|
|
10670
10670
|
}
|
|
10671
|
-
function
|
|
10671
|
+
function Gd(t, e, n, r, i, s, o, a, u) {
|
|
10672
10672
|
const l = new Ua({
|
|
10673
10673
|
label: a,
|
|
10674
10674
|
path: e,
|
|
@@ -10692,7 +10692,7 @@ function Bd(t, e, n, r, i, s, o, a, u) {
|
|
|
10692
10692
|
let p;
|
|
10693
10693
|
return Fe(c) ? p = c.then((g) => [g], (g) => (l.errors.push(g), Xe(r, t, l), null)) : p = [c], l.addItems(p), l;
|
|
10694
10694
|
}
|
|
10695
|
-
async function
|
|
10695
|
+
async function qd(t, e, n, r, i, s, o) {
|
|
10696
10696
|
let a;
|
|
10697
10697
|
try {
|
|
10698
10698
|
const { value: l, done: c } = await t.next();
|
|
@@ -10714,7 +10714,7 @@ async function Gd(t, e, n, r, i, s, o) {
|
|
|
10714
10714
|
return Xe(e, o, s), { done: !1, value: p };
|
|
10715
10715
|
}
|
|
10716
10716
|
}
|
|
10717
|
-
async function
|
|
10717
|
+
async function Qd(t, e, n, r, i, s, o, a, u) {
|
|
10718
10718
|
let l = t, c = u ?? void 0;
|
|
10719
10719
|
for (; ; ) {
|
|
10720
10720
|
const p = wn(o, l, void 0), g = new Ua({
|
|
@@ -10726,7 +10726,7 @@ async function qd(t, e, n, r, i, s, o, a, u) {
|
|
|
10726
10726
|
});
|
|
10727
10727
|
let S;
|
|
10728
10728
|
try {
|
|
10729
|
-
S = await
|
|
10729
|
+
S = await qd(e, n, r, i, s, g, p);
|
|
10730
10730
|
} catch (_) {
|
|
10731
10731
|
g.errors.push(_), Xe(n, o, g), g.addItems(null), e != null && e.return && e.return().catch(() => {
|
|
10732
10732
|
});
|
|
@@ -10752,7 +10752,7 @@ function Xe(t, e, n) {
|
|
|
10752
10752
|
}
|
|
10753
10753
|
});
|
|
10754
10754
|
}
|
|
10755
|
-
function
|
|
10755
|
+
function zd(t) {
|
|
10756
10756
|
const e = [];
|
|
10757
10757
|
for (const n of t.subsequentPayloads) {
|
|
10758
10758
|
const r = {};
|
|
@@ -10771,14 +10771,14 @@ function Qd(t) {
|
|
|
10771
10771
|
}
|
|
10772
10772
|
return e;
|
|
10773
10773
|
}
|
|
10774
|
-
function
|
|
10774
|
+
function Yd(t) {
|
|
10775
10775
|
let e = !1;
|
|
10776
10776
|
async function n() {
|
|
10777
10777
|
if (e)
|
|
10778
10778
|
return { value: void 0, done: !0 };
|
|
10779
10779
|
if (await Promise.race(Array.from(t.subsequentPayloads).map((o) => o.promise)), e)
|
|
10780
10780
|
return { value: void 0, done: !0 };
|
|
10781
|
-
const i =
|
|
10781
|
+
const i = zd(t), s = t.subsequentPayloads.size > 0;
|
|
10782
10782
|
return !i.length && s ? n() : (s || (e = !0), {
|
|
10783
10783
|
value: i.length ? { incremental: i, hasNext: s } : { hasNext: s },
|
|
10784
10784
|
done: !1
|
|
@@ -10804,7 +10804,7 @@ function zd(t) {
|
|
|
10804
10804
|
}
|
|
10805
10805
|
};
|
|
10806
10806
|
}
|
|
10807
|
-
class
|
|
10807
|
+
class Jd {
|
|
10808
10808
|
constructor(e) {
|
|
10809
10809
|
this.type = "defer", this.label = e.label, this.path = Le(e.path), this.parentContext = e.parentContext, this.errors = [], this._exeContext = e.exeContext, this._exeContext.subsequentPayloads.add(this), this.isCompleted = !1, this.data = null, this.promise = new Promise((n) => {
|
|
10810
10810
|
this._resolve = (r) => {
|
|
@@ -10858,62 +10858,62 @@ function uo(t) {
|
|
|
10858
10858
|
const e = Yi(t.document, t.operationName);
|
|
10859
10859
|
if (e == null)
|
|
10860
10860
|
throw new Error("Must provide an operation.");
|
|
10861
|
-
return e.operation === "subscription" ?
|
|
10861
|
+
return e.operation === "subscription" ? Md(t) : new Ke(() => xd(t)).then((n) => "initialResult" in n ? Pa(n, t.signal) : n).resolve();
|
|
10862
10862
|
}
|
|
10863
|
-
var
|
|
10863
|
+
var Hd = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10864
10864
|
function Ba(t) {
|
|
10865
10865
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
10866
10866
|
}
|
|
10867
|
-
var ve = {},
|
|
10867
|
+
var ve = {}, Wd = ve.fetch = globalThis.fetch, Kd = ve.Headers = globalThis.Headers, Xd = ve.Request = globalThis.Request, Ga = ve.Response = globalThis.Response, Zd = ve.FormData = globalThis.FormData, eh = ve.ReadableStream = globalThis.ReadableStream, th = ve.WritableStream = globalThis.WritableStream, nh = ve.TransformStream = globalThis.TransformStream, rh = ve.Blob = globalThis.Blob, ih = ve.File = globalThis.File, sh = ve.crypto = globalThis.crypto, oh = ve.btoa = globalThis.btoa, ah = ve.TextEncoder = globalThis.TextEncoder, uh = ve.TextDecoder = globalThis.TextDecoder, lh = ve.URLPattern = globalThis.URLPattern, qa = ve.URL = globalThis.URL, Zi = ve.URLSearchParams = globalThis.URLSearchParams, ch = ve.createFetch = () => globalThis, Qa = /* @__PURE__ */ du({
|
|
10868
10868
|
__proto__: null,
|
|
10869
|
-
Blob:
|
|
10870
|
-
File:
|
|
10871
|
-
FormData:
|
|
10872
|
-
Headers:
|
|
10873
|
-
ReadableStream:
|
|
10874
|
-
Request:
|
|
10869
|
+
Blob: rh,
|
|
10870
|
+
File: ih,
|
|
10871
|
+
FormData: Zd,
|
|
10872
|
+
Headers: Kd,
|
|
10873
|
+
ReadableStream: eh,
|
|
10874
|
+
Request: Xd,
|
|
10875
10875
|
Response: Ga,
|
|
10876
|
-
TextDecoder:
|
|
10877
|
-
TextEncoder:
|
|
10878
|
-
TransformStream:
|
|
10876
|
+
TextDecoder: uh,
|
|
10877
|
+
TextEncoder: ah,
|
|
10878
|
+
TransformStream: nh,
|
|
10879
10879
|
URL: qa,
|
|
10880
|
-
URLPattern:
|
|
10880
|
+
URLPattern: lh,
|
|
10881
10881
|
URLSearchParams: Zi,
|
|
10882
|
-
WritableStream:
|
|
10883
|
-
btoa:
|
|
10884
|
-
createFetch:
|
|
10885
|
-
crypto:
|
|
10882
|
+
WritableStream: th,
|
|
10883
|
+
btoa: oh,
|
|
10884
|
+
createFetch: ch,
|
|
10885
|
+
crypto: sh,
|
|
10886
10886
|
default: ve,
|
|
10887
|
-
fetch:
|
|
10887
|
+
fetch: Wd
|
|
10888
10888
|
}, [ve]);
|
|
10889
10889
|
function za(t) {
|
|
10890
10890
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
10891
10891
|
}
|
|
10892
|
-
function
|
|
10892
|
+
function fh(t) {
|
|
10893
10893
|
var r, i, s, o, a;
|
|
10894
10894
|
if ((r = t.socket) != null && r.localPort)
|
|
10895
10895
|
return (i = t.socket) == null ? void 0 : i.localPort;
|
|
10896
10896
|
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];
|
|
10897
10897
|
return n || 80;
|
|
10898
10898
|
}
|
|
10899
|
-
function
|
|
10899
|
+
function dh(t) {
|
|
10900
10900
|
var r, i, s, o, a;
|
|
10901
10901
|
if ((r = t.headers) != null && r[":authority"])
|
|
10902
10902
|
return (i = t.headers) == null ? void 0 : i[":authority"];
|
|
10903
10903
|
if ((s = t.headers) != null && s.host)
|
|
10904
10904
|
return (o = t.headers) == null ? void 0 : o.host;
|
|
10905
|
-
const e =
|
|
10905
|
+
const e = fh(t);
|
|
10906
10906
|
if (t.hostname)
|
|
10907
10907
|
return t.hostname + ":" + e;
|
|
10908
10908
|
const n = (a = t.socket) == null ? void 0 : a.localAddress;
|
|
10909
10909
|
return n && !(n != null && n.includes("::")) && !(n != null && n.includes("ffff")) ? `${n}:${e}` : "localhost";
|
|
10910
10910
|
}
|
|
10911
|
-
function
|
|
10911
|
+
function hh(t) {
|
|
10912
10912
|
var i;
|
|
10913
|
-
const e =
|
|
10913
|
+
const e = dh(t), n = t.protocol || ((i = t.socket) != null && i.encrypted ? "https" : "http"), r = t.originalUrl || t.url || "/graphql";
|
|
10914
10914
|
return `${n}://${e}${r}`;
|
|
10915
10915
|
}
|
|
10916
|
-
function
|
|
10916
|
+
function ph(t) {
|
|
10917
10917
|
const e = t[Symbol.toStringTag];
|
|
10918
10918
|
return !!(typeof t == "string" || e === "Uint8Array" || e === "Blob" || e === "FormData" || e === "URLSearchParams" || za(t));
|
|
10919
10919
|
}
|
|
@@ -10936,10 +10936,10 @@ class Ya extends EventTarget {
|
|
|
10936
10936
|
}
|
|
10937
10937
|
}
|
|
10938
10938
|
let lo = !1;
|
|
10939
|
-
function
|
|
10939
|
+
function gh(t, e) {
|
|
10940
10940
|
var o, a, u;
|
|
10941
10941
|
const n = t.raw || t.req || t;
|
|
10942
|
-
let r =
|
|
10942
|
+
let r = hh(n);
|
|
10943
10943
|
if (t.query) {
|
|
10944
10944
|
const l = new qa(r);
|
|
10945
10945
|
for (const c in t.query)
|
|
@@ -10965,7 +10965,7 @@ function ph(t, e) {
|
|
|
10965
10965
|
});
|
|
10966
10966
|
const s = t.body;
|
|
10967
10967
|
if (s != null && Object.keys(s).length > 0) {
|
|
10968
|
-
if (
|
|
10968
|
+
if (ph(s))
|
|
10969
10969
|
return new e(r, {
|
|
10970
10970
|
method: t.method,
|
|
10971
10971
|
headers: t.headers,
|
|
@@ -11021,23 +11021,23 @@ It will affect your performance. Please check our Bun integration recipe, and av
|
|
|
11021
11021
|
function es(t) {
|
|
11022
11022
|
return t.read != null;
|
|
11023
11023
|
}
|
|
11024
|
-
function
|
|
11024
|
+
function mh(t) {
|
|
11025
11025
|
return es(t);
|
|
11026
11026
|
}
|
|
11027
11027
|
function co(t) {
|
|
11028
11028
|
return t != null && t.setHeader != null && t.end != null && t.once != null && t.write != null;
|
|
11029
11029
|
}
|
|
11030
|
-
function
|
|
11030
|
+
function yh(t) {
|
|
11031
11031
|
return t != null && t.request != null && t.respondWith != null;
|
|
11032
11032
|
}
|
|
11033
|
-
function
|
|
11033
|
+
function bh(t) {
|
|
11034
11034
|
var e, n, r, i, s, o;
|
|
11035
11035
|
(n = (e = t == null ? void 0 : t.socket) == null ? void 0 : e.setTimeout) == null || n.call(e, 0), (i = (r = t == null ? void 0 : t.socket) == null ? void 0 : r.setNoDelay) == null || i.call(r, !0), (o = (s = t == null ? void 0 : t.socket) == null ? void 0 : s.setKeepAlive) == null || o.call(s, !0);
|
|
11036
11036
|
}
|
|
11037
11037
|
function Tr(t) {
|
|
11038
11038
|
t.end(null, null, null);
|
|
11039
11039
|
}
|
|
11040
|
-
async function
|
|
11040
|
+
async function vh(t, e) {
|
|
11041
11041
|
for await (const n of e)
|
|
11042
11042
|
if (!t.write(n))
|
|
11043
11043
|
break;
|
|
@@ -11080,16 +11080,16 @@ function fo(t, e, n) {
|
|
|
11080
11080
|
e.write(s), Tr(e);
|
|
11081
11081
|
return;
|
|
11082
11082
|
}
|
|
11083
|
-
if (
|
|
11083
|
+
if (bh(n), es(s)) {
|
|
11084
11084
|
e.once("close", () => {
|
|
11085
11085
|
s.destroy();
|
|
11086
11086
|
}), s.pipe(e);
|
|
11087
11087
|
return;
|
|
11088
11088
|
}
|
|
11089
11089
|
if (za(s))
|
|
11090
|
-
return
|
|
11090
|
+
return vh(e, s);
|
|
11091
11091
|
}
|
|
11092
|
-
function
|
|
11092
|
+
function Eh(t) {
|
|
11093
11093
|
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);
|
|
11094
11094
|
}
|
|
11095
11095
|
function gr(...t) {
|
|
@@ -11171,7 +11171,7 @@ function po(t, e) {
|
|
|
11171
11171
|
}
|
|
11172
11172
|
});
|
|
11173
11173
|
}
|
|
11174
|
-
function
|
|
11174
|
+
function wh() {
|
|
11175
11175
|
let t, e;
|
|
11176
11176
|
return {
|
|
11177
11177
|
promise: new Promise(function(i, s) {
|
|
@@ -11187,7 +11187,7 @@ function Eh() {
|
|
|
11187
11187
|
}
|
|
11188
11188
|
function go(t, e) {
|
|
11189
11189
|
if (Dt(t) && e) {
|
|
11190
|
-
const n =
|
|
11190
|
+
const n = wh();
|
|
11191
11191
|
return e.addEventListener("abort", function() {
|
|
11192
11192
|
n.reject(new DOMException("Aborted", "AbortError"));
|
|
11193
11193
|
}), t.then(function(i) {
|
|
@@ -11198,10 +11198,10 @@ function go(t, e) {
|
|
|
11198
11198
|
}
|
|
11199
11199
|
return t;
|
|
11200
11200
|
}
|
|
11201
|
-
function
|
|
11201
|
+
function Th(t) {
|
|
11202
11202
|
return !!t.onData;
|
|
11203
11203
|
}
|
|
11204
|
-
function
|
|
11204
|
+
function Sh({ req: t, res: e, fetchAPI: n }) {
|
|
11205
11205
|
let r;
|
|
11206
11206
|
const i = t.getMethod();
|
|
11207
11207
|
if (i !== "get" && i !== "head") {
|
|
@@ -11227,7 +11227,7 @@ function Th({ req: t, res: e, fetchAPI: n }) {
|
|
|
11227
11227
|
signal: new Ya()
|
|
11228
11228
|
});
|
|
11229
11229
|
}
|
|
11230
|
-
async function
|
|
11230
|
+
async function Ih(t, e) {
|
|
11231
11231
|
let n = !1;
|
|
11232
11232
|
t.onAborted(function() {
|
|
11233
11233
|
n = !0;
|
|
@@ -11270,21 +11270,21 @@ function mo(t, e) {
|
|
|
11270
11270
|
t.end();
|
|
11271
11271
|
return;
|
|
11272
11272
|
}
|
|
11273
|
-
return
|
|
11273
|
+
return Ih(t, e);
|
|
11274
11274
|
}
|
|
11275
11275
|
}
|
|
11276
|
-
async function
|
|
11276
|
+
async function _h(t) {
|
|
11277
11277
|
await Promise.allSettled(t);
|
|
11278
11278
|
}
|
|
11279
|
-
function
|
|
11279
|
+
function Oh(t) {
|
|
11280
11280
|
try {
|
|
11281
11281
|
return !!(t != null && t.request);
|
|
11282
11282
|
} catch {
|
|
11283
11283
|
return !1;
|
|
11284
11284
|
}
|
|
11285
11285
|
}
|
|
11286
|
-
const
|
|
11287
|
-
function
|
|
11286
|
+
const Nh = {};
|
|
11287
|
+
function Ah(t, e) {
|
|
11288
11288
|
const n = {
|
|
11289
11289
|
...Qa,
|
|
11290
11290
|
...e == null ? void 0 : e.fetchAPI
|
|
@@ -11296,7 +11296,7 @@ function Nh(t, e) {
|
|
|
11296
11296
|
let x = r, F;
|
|
11297
11297
|
if (i.length === 0)
|
|
11298
11298
|
return h();
|
|
11299
|
-
let R = new Proxy(
|
|
11299
|
+
let R = new Proxy(Nh, {
|
|
11300
11300
|
get(y, f, I) {
|
|
11301
11301
|
return R = new n.URL(_.url, "http://localhost"), Reflect.get(R, f, R);
|
|
11302
11302
|
}
|
|
@@ -11334,7 +11334,7 @@ function Nh(t, e) {
|
|
|
11334
11334
|
return Dt(w) ? w.then(h) : h();
|
|
11335
11335
|
} : r;
|
|
11336
11336
|
function a(E, ..._) {
|
|
11337
|
-
const A = _.length > 1 ? gr(..._) : _[0] || {}, x =
|
|
11337
|
+
const A = _.length > 1 ? gr(..._) : _[0] || {}, x = gh(E, n.Request);
|
|
11338
11338
|
return o(x, A);
|
|
11339
11339
|
}
|
|
11340
11340
|
function u(E, _, ...A) {
|
|
@@ -11368,7 +11368,7 @@ function Nh(t, e) {
|
|
|
11368
11368
|
waitUntil(f) {
|
|
11369
11369
|
x.push(f.catch((I) => console.error(I)));
|
|
11370
11370
|
}
|
|
11371
|
-
}, w = A.filter((f) => f != null).length > 0 ? gr(F, ...A) : F, O =
|
|
11371
|
+
}, w = A.filter((f) => f != null).length > 0 ? gr(F, ...A) : F, O = Sh({
|
|
11372
11372
|
req: _,
|
|
11373
11373
|
res: E,
|
|
11374
11374
|
fetchAPI: n
|
|
@@ -11406,12 +11406,12 @@ function Nh(t, e) {
|
|
|
11406
11406
|
const A = _.filter((w) => w != null);
|
|
11407
11407
|
let x;
|
|
11408
11408
|
const F = A.length > 1 ? gr(...A) : po(A[0], A[0] == null || A[0].waitUntil == null ? x = [] : void 0), R = o(E, F);
|
|
11409
|
-
return x != null && x.length ?
|
|
11409
|
+
return x != null && x.length ? _h(x).then(() => R) : R;
|
|
11410
11410
|
}
|
|
11411
11411
|
const g = (E, ..._) => {
|
|
11412
11412
|
if (typeof E == "string" || "href" in E) {
|
|
11413
11413
|
const [x, ...F] = _;
|
|
11414
|
-
if (
|
|
11414
|
+
if (Eh(x)) {
|
|
11415
11415
|
const w = new n.Request(E, x), O = p(w, ...F);
|
|
11416
11416
|
return go(O, x == null ? void 0 : x.signal);
|
|
11417
11417
|
}
|
|
@@ -11422,16 +11422,16 @@ function Nh(t, e) {
|
|
|
11422
11422
|
return go(A, E._signal);
|
|
11423
11423
|
}, S = (E, ..._) => {
|
|
11424
11424
|
const [A, ...x] = _;
|
|
11425
|
-
if (
|
|
11425
|
+
if (mh(E)) {
|
|
11426
11426
|
if (!co(A))
|
|
11427
11427
|
throw new TypeError(`Expected ServerResponse, got ${A}`);
|
|
11428
11428
|
return u(E, A, ...x);
|
|
11429
11429
|
}
|
|
11430
|
-
if (
|
|
11430
|
+
if (Th(E))
|
|
11431
11431
|
return l(E, A, ...x);
|
|
11432
11432
|
if (co(A))
|
|
11433
11433
|
throw new TypeError("Got Node response without Node request");
|
|
11434
|
-
return
|
|
11434
|
+
return Oh(E) ? yh(E) ? c(E, ..._) : p(E.request, E, ..._) : g(E, ..._);
|
|
11435
11435
|
}, v = {
|
|
11436
11436
|
handleRequest: o,
|
|
11437
11437
|
fetch: g,
|
|
@@ -11465,7 +11465,7 @@ function Nh(t, e) {
|
|
|
11465
11465
|
});
|
|
11466
11466
|
return C;
|
|
11467
11467
|
}
|
|
11468
|
-
function
|
|
11468
|
+
function xh(t, e) {
|
|
11469
11469
|
var i, s;
|
|
11470
11470
|
const n = t.headers.get("origin");
|
|
11471
11471
|
if (e === !1 || n == null)
|
|
@@ -11485,11 +11485,11 @@ function Ah(t, e) {
|
|
|
11485
11485
|
}
|
|
11486
11486
|
return e.credentials != null ? e.credentials === !0 && (r["Access-Control-Allow-Credentials"] = "true") : r["Access-Control-Allow-Origin"] !== "*" && (r["Access-Control-Allow-Credentials"] = "true"), e.exposedHeaders && (r["Access-Control-Expose-Headers"] = e.exposedHeaders.join(", ")), e.maxAge && (r["Access-Control-Max-Age"] = e.maxAge.toString()), r;
|
|
11487
11487
|
}
|
|
11488
|
-
async function
|
|
11488
|
+
async function Fh(t, e, n) {
|
|
11489
11489
|
const r = await e(t, n);
|
|
11490
|
-
return
|
|
11490
|
+
return xh(t, r);
|
|
11491
11491
|
}
|
|
11492
|
-
function
|
|
11492
|
+
function Lh(t) {
|
|
11493
11493
|
let e = () => ({});
|
|
11494
11494
|
if (t != null)
|
|
11495
11495
|
if (typeof t == "function")
|
|
@@ -11516,14 +11516,14 @@ function Fh(t) {
|
|
|
11516
11516
|
}
|
|
11517
11517
|
},
|
|
11518
11518
|
async onResponse({ request: n, serverContext: r, response: i }) {
|
|
11519
|
-
const s = await
|
|
11519
|
+
const s = await Fh(n, e, r);
|
|
11520
11520
|
if (s != null)
|
|
11521
11521
|
for (const o in s)
|
|
11522
11522
|
i.headers.set(o, s[o]);
|
|
11523
11523
|
}
|
|
11524
11524
|
};
|
|
11525
11525
|
}
|
|
11526
|
-
function
|
|
11526
|
+
function Ch(t = Ga) {
|
|
11527
11527
|
return function(n) {
|
|
11528
11528
|
return n.details || n.status || n.headers || n.name === "HTTPError" ? new t(typeof n.details == "object" ? JSON.stringify(n.details) : n.message, {
|
|
11529
11529
|
status: n.status,
|
|
@@ -11531,10 +11531,10 @@ function Lh(t = Ga) {
|
|
|
11531
11531
|
}) : (console.error(n), t.error ? t.error() : new t(null, { status: 500 }));
|
|
11532
11532
|
};
|
|
11533
11533
|
}
|
|
11534
|
-
function
|
|
11534
|
+
function Rh(t) {
|
|
11535
11535
|
return {
|
|
11536
11536
|
onRequest({ requestHandler: e, setRequestHandler: n, fetchAPI: r }) {
|
|
11537
|
-
const i = t ||
|
|
11537
|
+
const i = t || Ch(r.Response);
|
|
11538
11538
|
n(function(o, a) {
|
|
11539
11539
|
try {
|
|
11540
11540
|
const u = e(o, a);
|
|
@@ -11555,7 +11555,7 @@ function Ja(t) {
|
|
|
11555
11555
|
extensions: i ? JSON.parse(i) : void 0
|
|
11556
11556
|
};
|
|
11557
11557
|
}
|
|
11558
|
-
function
|
|
11558
|
+
function kh(t) {
|
|
11559
11559
|
const e = new Zi(t);
|
|
11560
11560
|
return Ja(e);
|
|
11561
11561
|
}
|
|
@@ -11563,32 +11563,32 @@ function Vn(t, e) {
|
|
|
11563
11563
|
let n = t.headers.get("content-type");
|
|
11564
11564
|
return n = (n == null ? void 0 : n.split(",")[0]) || null, n === e || !!(n != null && n.startsWith(`${e};`));
|
|
11565
11565
|
}
|
|
11566
|
-
function
|
|
11566
|
+
function Dh(t) {
|
|
11567
11567
|
return t.method === "GET";
|
|
11568
11568
|
}
|
|
11569
|
-
function
|
|
11569
|
+
function $h(t) {
|
|
11570
11570
|
const [, e = ""] = t.url.split("?"), n = new Zi(e);
|
|
11571
11571
|
return Ja(n);
|
|
11572
11572
|
}
|
|
11573
|
-
function
|
|
11573
|
+
function jh(t) {
|
|
11574
11574
|
return t.method === "POST" && Vn(t, "application/x-www-form-urlencoded");
|
|
11575
11575
|
}
|
|
11576
|
-
async function
|
|
11576
|
+
async function Ph(t) {
|
|
11577
11577
|
const e = await t.text();
|
|
11578
|
-
return
|
|
11578
|
+
return kh(e);
|
|
11579
11579
|
}
|
|
11580
|
-
function
|
|
11580
|
+
function Mh(t) {
|
|
11581
11581
|
return t.method === "POST" && Vn(t, "application/graphql");
|
|
11582
11582
|
}
|
|
11583
|
-
async function
|
|
11583
|
+
async function Uh(t) {
|
|
11584
11584
|
return {
|
|
11585
11585
|
query: await t.text()
|
|
11586
11586
|
};
|
|
11587
11587
|
}
|
|
11588
|
-
function
|
|
11588
|
+
function Vh(t) {
|
|
11589
11589
|
return t.method === "POST" && (Vn(t, "application/json") || Vn(t, "application/graphql+json"));
|
|
11590
11590
|
}
|
|
11591
|
-
async function
|
|
11591
|
+
async function Bh(t) {
|
|
11592
11592
|
let e;
|
|
11593
11593
|
try {
|
|
11594
11594
|
e = await t.json();
|
|
@@ -11625,15 +11625,15 @@ async function Vh(t) {
|
|
|
11625
11625
|
});
|
|
11626
11626
|
return e;
|
|
11627
11627
|
}
|
|
11628
|
-
function
|
|
11628
|
+
function Gh(t, e, n) {
|
|
11629
11629
|
e.split && (e = e.split("."));
|
|
11630
11630
|
for (var r = 0, i = e.length, s = t, o, a; r < i && (a = e[r++], !(a === "__proto__" || a === "constructor" || a === "prototype")); )
|
|
11631
11631
|
s = s[a] = r === i ? n : typeof (o = s[a]) == typeof e ? o : e[r] * 0 !== 0 || ~("" + e[r]).indexOf(".") ? {} : [];
|
|
11632
11632
|
}
|
|
11633
|
-
function
|
|
11633
|
+
function qh(t) {
|
|
11634
11634
|
return t.method === "POST" && Vn(t, "multipart/form-data");
|
|
11635
11635
|
}
|
|
11636
|
-
async function
|
|
11636
|
+
async function Qh(t) {
|
|
11637
11637
|
let e;
|
|
11638
11638
|
try {
|
|
11639
11639
|
e = await t.formData();
|
|
@@ -11670,13 +11670,13 @@ async function qh(t) {
|
|
|
11670
11670
|
for (const o in s) {
|
|
11671
11671
|
const a = e.get(o), u = s[o];
|
|
11672
11672
|
for (const l of u)
|
|
11673
|
-
|
|
11673
|
+
Gh(r, l, a);
|
|
11674
11674
|
}
|
|
11675
11675
|
}
|
|
11676
11676
|
return r;
|
|
11677
11677
|
}
|
|
11678
|
-
const
|
|
11679
|
-
function
|
|
11678
|
+
const zh = /* @__PURE__ */ new Set(["query", "variables", "operationName", "extensions"]);
|
|
11679
|
+
function Yh(t) {
|
|
11680
11680
|
if (t == null || typeof t != "object")
|
|
11681
11681
|
throw q('Invalid "params" in the request body', {
|
|
11682
11682
|
extensions: {
|
|
@@ -11687,7 +11687,7 @@ function zh(t) {
|
|
|
11687
11687
|
}
|
|
11688
11688
|
});
|
|
11689
11689
|
for (const e in t)
|
|
11690
|
-
if (t[e] != null && !
|
|
11690
|
+
if (t[e] != null && !zh.has(e))
|
|
11691
11691
|
throw q(`Unexpected parameter "${e}" in the request body.`, {
|
|
11692
11692
|
extensions: {
|
|
11693
11693
|
http: {
|
|
@@ -11696,8 +11696,8 @@ function zh(t) {
|
|
|
11696
11696
|
}
|
|
11697
11697
|
});
|
|
11698
11698
|
}
|
|
11699
|
-
function
|
|
11700
|
-
if (!
|
|
11699
|
+
function Jh(t) {
|
|
11700
|
+
if (!Wh(t))
|
|
11701
11701
|
throw q(`Expected params to be an object but given ${Dn(t)}.`, {
|
|
11702
11702
|
extensions: {
|
|
11703
11703
|
http: {
|
|
@@ -11708,7 +11708,7 @@ function Yh(t) {
|
|
|
11708
11708
|
}
|
|
11709
11709
|
}
|
|
11710
11710
|
});
|
|
11711
|
-
if (
|
|
11711
|
+
if (Yh(t), t.query == null)
|
|
11712
11712
|
throw q("Must provide query string.", {
|
|
11713
11713
|
extensions: {
|
|
11714
11714
|
http: {
|
|
@@ -11758,26 +11758,26 @@ function Yh(t) {
|
|
|
11758
11758
|
});
|
|
11759
11759
|
return t;
|
|
11760
11760
|
}
|
|
11761
|
-
function
|
|
11761
|
+
function Hh() {
|
|
11762
11762
|
return {
|
|
11763
11763
|
onParams({ params: t }) {
|
|
11764
|
-
|
|
11764
|
+
Jh(t);
|
|
11765
11765
|
}
|
|
11766
11766
|
};
|
|
11767
11767
|
}
|
|
11768
11768
|
function Dn(t) {
|
|
11769
11769
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
11770
11770
|
}
|
|
11771
|
-
function
|
|
11771
|
+
function Wh(t) {
|
|
11772
11772
|
return Dn(t) === "object";
|
|
11773
11773
|
}
|
|
11774
|
-
function
|
|
11774
|
+
function Kh(t) {
|
|
11775
11775
|
return t === "GET" || t === "POST";
|
|
11776
11776
|
}
|
|
11777
|
-
function
|
|
11777
|
+
function Xh() {
|
|
11778
11778
|
return {
|
|
11779
11779
|
onRequestParse({ request: t }) {
|
|
11780
|
-
if (!
|
|
11780
|
+
if (!Kh(t.method))
|
|
11781
11781
|
throw q("GraphQL only supports GET and POST requests.", {
|
|
11782
11782
|
extensions: {
|
|
11783
11783
|
http: {
|
|
@@ -11791,7 +11791,7 @@ function Kh() {
|
|
|
11791
11791
|
}
|
|
11792
11792
|
};
|
|
11793
11793
|
}
|
|
11794
|
-
function
|
|
11794
|
+
function Zh() {
|
|
11795
11795
|
return {
|
|
11796
11796
|
onValidate() {
|
|
11797
11797
|
return ({ valid: t, result: e }) => {
|
|
@@ -11807,7 +11807,7 @@ function Xh() {
|
|
|
11807
11807
|
}
|
|
11808
11808
|
};
|
|
11809
11809
|
}
|
|
11810
|
-
function
|
|
11810
|
+
function ep(t) {
|
|
11811
11811
|
return {
|
|
11812
11812
|
onRequestParse() {
|
|
11813
11813
|
return {
|
|
@@ -11835,7 +11835,7 @@ function Zh(t) {
|
|
|
11835
11835
|
}
|
|
11836
11836
|
};
|
|
11837
11837
|
}
|
|
11838
|
-
function
|
|
11838
|
+
function tp(t, e, n) {
|
|
11839
11839
|
const r = e ? Yi(e, n) ?? void 0 : void 0;
|
|
11840
11840
|
if (!r)
|
|
11841
11841
|
throw q("Could not determine what operation to execute.", {
|
|
@@ -11857,7 +11857,7 @@ function ep(t, e, n) {
|
|
|
11857
11857
|
}
|
|
11858
11858
|
});
|
|
11859
11859
|
}
|
|
11860
|
-
function
|
|
11860
|
+
function np() {
|
|
11861
11861
|
return {
|
|
11862
11862
|
onParse() {
|
|
11863
11863
|
return ({ result: t, context: {
|
|
@@ -11872,13 +11872,13 @@ function tp() {
|
|
|
11872
11872
|
spec: !0,
|
|
11873
11873
|
status: 400
|
|
11874
11874
|
}), t;
|
|
11875
|
-
|
|
11875
|
+
tp(e.method, t, n);
|
|
11876
11876
|
}
|
|
11877
11877
|
};
|
|
11878
11878
|
}
|
|
11879
11879
|
};
|
|
11880
11880
|
}
|
|
11881
|
-
function
|
|
11881
|
+
function rp({ id: t = Date.now().toString(), logger: e = console, endpoint: n = "/health" } = {}) {
|
|
11882
11882
|
return {
|
|
11883
11883
|
onRequest({ endResponse: r, fetchAPI: i, request: s }) {
|
|
11884
11884
|
if (s.url.endsWith(n)) {
|
|
@@ -11930,7 +11930,7 @@ if (typeof Dr > "u") {
|
|
|
11930
11930
|
t && (t = !1, Wa("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));
|
|
11931
11931
|
};
|
|
11932
11932
|
}
|
|
11933
|
-
const
|
|
11933
|
+
const ip = (t) => !Ha.has(t), Lt = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Ka = (t) => Lt(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Sr : null : null;
|
|
11934
11934
|
class Sr extends Array {
|
|
11935
11935
|
constructor(e) {
|
|
11936
11936
|
super(e), this.fill(0);
|
|
@@ -12106,7 +12106,7 @@ const ls = class ls {
|
|
|
12106
12106
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
12107
12107
|
if (!this.ttlAutopurge && !m(this, it) && !m(this, ze)) {
|
|
12108
12108
|
const O = "LRU_CACHE_UNBOUNDED";
|
|
12109
|
-
|
|
12109
|
+
ip(O) && (Ha.add(O), Wa("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", O, ls));
|
|
12110
12110
|
}
|
|
12111
12111
|
}
|
|
12112
12112
|
/**
|
|
@@ -12743,11 +12743,11 @@ it = new WeakMap(), ze = new WeakMap(), st = new WeakMap(), ot = new WeakMap(),
|
|
|
12743
12743
|
e !== m(this, Ie) && (e === m(this, De) ? J(this, De, m(this, je)[e]) : Q(this, B, ki).call(this, m(this, Ye)[e], m(this, je)[e]), Q(this, B, ki).call(this, m(this, Ie), e), J(this, Ie, e));
|
|
12744
12744
|
};
|
|
12745
12745
|
let $r = ls;
|
|
12746
|
-
const
|
|
12747
|
-
function fi({ max: t =
|
|
12746
|
+
const sp = 1024, op = 36e5;
|
|
12747
|
+
function fi({ max: t = sp, ttl: e = op } = {}) {
|
|
12748
12748
|
return new $r({ max: t, ttl: e });
|
|
12749
12749
|
}
|
|
12750
|
-
function
|
|
12750
|
+
function ap({ documentCache: t = fi(), errorCache: e = fi(), validationCache: n = !0 }) {
|
|
12751
12751
|
const r = fi();
|
|
12752
12752
|
return {
|
|
12753
12753
|
onParse({ params: i, setParsedDocument: s }) {
|
|
@@ -12786,16 +12786,16 @@ function op({ documentCache: t = fi(), errorCache: e = fi(), validationCache: n
|
|
|
12786
12786
|
}
|
|
12787
12787
|
};
|
|
12788
12788
|
}
|
|
12789
|
-
const
|
|
12789
|
+
const up = () => !0;
|
|
12790
12790
|
function An(t) {
|
|
12791
|
-
const e = t.match ||
|
|
12791
|
+
const e = t.match || up;
|
|
12792
12792
|
return {
|
|
12793
12793
|
onRequestParse({ request: n, setRequestParser: r }) {
|
|
12794
12794
|
e(n) && r(t.parse);
|
|
12795
12795
|
}
|
|
12796
12796
|
};
|
|
12797
12797
|
}
|
|
12798
|
-
function
|
|
12798
|
+
function lp(t) {
|
|
12799
12799
|
const e = (t.headers.get("accept") || "*/*").replace(/\s/g, "").toLowerCase().split(","), n = [];
|
|
12800
12800
|
for (const r of e) {
|
|
12801
12801
|
const [i, ...s] = r.split(";");
|
|
@@ -12803,7 +12803,7 @@ function up(t) {
|
|
|
12803
12803
|
}
|
|
12804
12804
|
return n.reverse();
|
|
12805
12805
|
}
|
|
12806
|
-
function
|
|
12806
|
+
function cp(t, e) {
|
|
12807
12807
|
const [n, r] = t.split("/"), [i, s] = e.split("/");
|
|
12808
12808
|
return (i === "*" || i === n) && (s === "*" || s === r);
|
|
12809
12809
|
}
|
|
@@ -12842,7 +12842,7 @@ function Za(t) {
|
|
|
12842
12842
|
}
|
|
12843
12843
|
return t;
|
|
12844
12844
|
}
|
|
12845
|
-
function
|
|
12845
|
+
function fp(t, e) {
|
|
12846
12846
|
const r = Wi(t, {
|
|
12847
12847
|
Connection: "keep-alive",
|
|
12848
12848
|
"Content-Type": 'multipart/mixed; boundary="-"',
|
|
@@ -12883,7 +12883,7 @@ function cp(t, e) {
|
|
|
12883
12883
|
});
|
|
12884
12884
|
return new e.Response(o, r);
|
|
12885
12885
|
}
|
|
12886
|
-
function
|
|
12886
|
+
function dp(t, e, n) {
|
|
12887
12887
|
if (Yr(t))
|
|
12888
12888
|
return new e.Response(null, {
|
|
12889
12889
|
status: 406,
|
|
@@ -12898,14 +12898,14 @@ function fp(t, e, n) {
|
|
|
12898
12898
|
t,
|
|
12899
12899
|
r,
|
|
12900
12900
|
// prefer 200 only if accepting application/json and all errors are exclusively GraphQL errors
|
|
12901
|
-
n === "application/json" && !Array.isArray(t) &&
|
|
12901
|
+
n === "application/json" && !Array.isArray(t) && hd(t.errors) && t.errors.some((o) => {
|
|
12902
12902
|
var a;
|
|
12903
12903
|
return !((a = o.extensions) != null && a.originalError) || bn(o.extensions.originalError);
|
|
12904
12904
|
})
|
|
12905
12905
|
), s = ts(t);
|
|
12906
12906
|
return new e.Response(s, i);
|
|
12907
12907
|
}
|
|
12908
|
-
function
|
|
12908
|
+
function hp() {
|
|
12909
12909
|
return function(e, n) {
|
|
12910
12910
|
var c, p;
|
|
12911
12911
|
let r = 12e3;
|
|
@@ -12960,40 +12960,40 @@ function dp() {
|
|
|
12960
12960
|
return new n.Response(l, s);
|
|
12961
12961
|
};
|
|
12962
12962
|
}
|
|
12963
|
-
const
|
|
12963
|
+
const pp = {
|
|
12964
12964
|
mediaTypes: ["multipart/mixed"],
|
|
12965
12965
|
asyncIterables: !0,
|
|
12966
|
-
processResult:
|
|
12966
|
+
processResult: fp
|
|
12967
12967
|
};
|
|
12968
|
-
function
|
|
12968
|
+
function gp() {
|
|
12969
12969
|
return {
|
|
12970
12970
|
mediaTypes: ["text/event-stream"],
|
|
12971
12971
|
asyncIterables: !0,
|
|
12972
|
-
processResult:
|
|
12972
|
+
processResult: hp()
|
|
12973
12973
|
};
|
|
12974
12974
|
}
|
|
12975
12975
|
const vo = {
|
|
12976
12976
|
mediaTypes: ["application/graphql-response+json", "application/json"],
|
|
12977
12977
|
asyncIterables: !1,
|
|
12978
|
-
processResult:
|
|
12978
|
+
processResult: dp
|
|
12979
12979
|
};
|
|
12980
|
-
function
|
|
12981
|
-
const t = /* @__PURE__ */ new WeakMap(), e =
|
|
12980
|
+
function mp() {
|
|
12981
|
+
const t = /* @__PURE__ */ new WeakMap(), e = gp(), n = [e, pp, vo], r = [e, vo];
|
|
12982
12982
|
return {
|
|
12983
12983
|
onSubscribe({ args: { contextValue: i } }) {
|
|
12984
12984
|
i.request && t.set(i.request, !0);
|
|
12985
12985
|
},
|
|
12986
12986
|
onResultProcess({ request: i, result: s, acceptableMediaTypes: o, setResultProcessor: a }) {
|
|
12987
|
-
const l = t.get(i) ? r : n, c =
|
|
12987
|
+
const l = t.get(i) ? r : n, c = lp(i), p = wt(s);
|
|
12988
12988
|
for (const g of l)
|
|
12989
12989
|
for (const S of c)
|
|
12990
12990
|
if (!(p && !g.asyncIterables))
|
|
12991
12991
|
for (const v of g.mediaTypes)
|
|
12992
|
-
o.push(v),
|
|
12992
|
+
o.push(v), cp(v, S) && a(g.processResult, v);
|
|
12993
12993
|
}
|
|
12994
12994
|
};
|
|
12995
12995
|
}
|
|
12996
|
-
var mp = `<!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>
|
|
12996
|
+
var yp = `<!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>
|
|
12997
12997
|
<code>
|
|
12998
12998
|
import { createYoga } from 'graphql-yoga';
|
|
12999
12999
|
|
|
@@ -13010,7 +13010,7 @@ const yoga = createYoga({
|
|
|
13010
13010
|
})
|
|
13011
13011
|
</code>
|
|
13012
13012
|
</pre></section></main></body></html>`;
|
|
13013
|
-
function
|
|
13013
|
+
function bp(t) {
|
|
13014
13014
|
let e;
|
|
13015
13015
|
function n({ URLPattern: r }) {
|
|
13016
13016
|
return e || (e = new r({
|
|
@@ -13022,7 +13022,7 @@ function yp(t) {
|
|
|
13022
13022
|
var a, u;
|
|
13023
13023
|
if (!r.url.endsWith(t.graphqlEndpoint) && !r.url.endsWith(`${t.graphqlEndpoint}/`) && o.pathname !== t.graphqlEndpoint && o.pathname !== `${t.graphqlEndpoint}/` && !n(i).test(o)) {
|
|
13024
13024
|
if (t.showLandingPage === !0 && r.method === "GET" && ((u = (a = r.headers) == null ? void 0 : a.get("accept")) != null && u.includes("text/html"))) {
|
|
13025
|
-
s(new i.Response(
|
|
13025
|
+
s(new i.Response(yp.replace(/__GRAPHIQL_LINK__/g, t.graphqlEndpoint).replace(/__REQUEST_PATH__/g, o.pathname), {
|
|
13026
13026
|
status: 200,
|
|
13027
13027
|
statusText: "OK",
|
|
13028
13028
|
headers: {
|
|
@@ -13064,7 +13064,7 @@ async function Eo({ request: t, result: e, fetchAPI: n, onResultProcessHooks: r
|
|
|
13064
13064
|
}
|
|
13065
13065
|
});
|
|
13066
13066
|
}
|
|
13067
|
-
async function
|
|
13067
|
+
async function vp({ params: t, enveloped: e }) {
|
|
13068
13068
|
const n = e.parse(t.query), r = e.validate(e.schema, n);
|
|
13069
13069
|
if (r.length > 0)
|
|
13070
13070
|
return { errors: r };
|
|
@@ -13077,7 +13077,7 @@ async function bp({ params: t, enveloped: e }) {
|
|
|
13077
13077
|
}, o = Yi(n, t.operationName);
|
|
13078
13078
|
return ((o == null ? void 0 : o.operation) === "subscription" ? e.subscribe : e.execute)(s);
|
|
13079
13079
|
}
|
|
13080
|
-
const
|
|
13080
|
+
const Ep = (t, e, n = ((i) => (i = ((r) => (r = globalThis.process) == null ? void 0 : r.env)()) == null ? void 0 : i.NODE_ENV)() === "development") => {
|
|
13081
13081
|
if (bn(t)) {
|
|
13082
13082
|
if (t.originalError) {
|
|
13083
13083
|
if (t.originalError.name === "GraphQLError")
|
|
@@ -13109,7 +13109,7 @@ const vp = (t, e, n = ((i) => (i = ((r) => (r = globalThis.process) == null ? vo
|
|
|
13109
13109
|
}
|
|
13110
13110
|
});
|
|
13111
13111
|
};
|
|
13112
|
-
class
|
|
13112
|
+
class wp {
|
|
13113
13113
|
constructor(e) {
|
|
13114
13114
|
/**
|
|
13115
13115
|
* Instance of envelop
|
|
@@ -13177,7 +13177,7 @@ class Ep {
|
|
|
13177
13177
|
e.fetchAPI[u] && (this.fetchAPI[u] = e.fetchAPI[u]);
|
|
13178
13178
|
const n = (e == null ? void 0 : e.logging) == null ? !0 : e.logging;
|
|
13179
13179
|
this.logger = typeof n == "boolean" ? n === !0 ? ci() : ci("silent") : typeof n == "string" ? ci(n) : n;
|
|
13180
|
-
const r = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError ||
|
|
13180
|
+
const r = typeof (e == null ? void 0 : e.maskedErrors) == "object" && e.maskedErrors.maskError || Ep, i = /* @__PURE__ */ new WeakSet();
|
|
13181
13181
|
this.maskedErrorsOpts = (e == null ? void 0 : e.maskedErrors) === !1 ? null : {
|
|
13182
13182
|
errorMessage: "Unexpected error.",
|
|
13183
13183
|
...typeof (e == null ? void 0 : e.maskedErrors) == "object" ? e.maskedErrors : {},
|
|
@@ -13194,24 +13194,24 @@ class Ep {
|
|
|
13194
13194
|
e != null && e.batching && (typeof e.batching == "boolean" ? o = 10 : o = e.batching.limit ?? 10), this.graphqlEndpoint = (e == null ? void 0 : e.graphqlEndpoint) || "/graphql";
|
|
13195
13195
|
const a = this.graphqlEndpoint;
|
|
13196
13196
|
this.plugins = [
|
|
13197
|
-
|
|
13198
|
-
parse:
|
|
13199
|
-
validate:
|
|
13197
|
+
Lu({
|
|
13198
|
+
parse: al,
|
|
13199
|
+
validate: Yc,
|
|
13200
13200
|
execute: uo,
|
|
13201
13201
|
subscribe: uo,
|
|
13202
13202
|
specifiedRules: ma
|
|
13203
13203
|
}),
|
|
13204
13204
|
// Use the schema provided by the user
|
|
13205
|
-
!!(e != null && e.schema) &&
|
|
13206
|
-
(e == null ? void 0 : e.context) != null &&
|
|
13205
|
+
!!(e != null && e.schema) && Td(e.schema),
|
|
13206
|
+
(e == null ? void 0 : e.context) != null && Fu((u) => e != null && e.context ? typeof e.context == "function" ? e.context(u) : e.context : {}),
|
|
13207
13207
|
// Middlewares before processing the incoming HTTP request
|
|
13208
|
-
|
|
13208
|
+
rp({
|
|
13209
13209
|
id: this.id,
|
|
13210
13210
|
logger: this.logger,
|
|
13211
13211
|
endpoint: e == null ? void 0 : e.healthCheckEndpoint
|
|
13212
13212
|
}),
|
|
13213
|
-
(e == null ? void 0 : e.cors) !== !1 &&
|
|
13214
|
-
(e == null ? void 0 : e.graphiql) !== !1 &&
|
|
13213
|
+
(e == null ? void 0 : e.cors) !== !1 && Lh(e == null ? void 0 : e.cors),
|
|
13214
|
+
(e == null ? void 0 : e.graphiql) !== !1 && wd({
|
|
13215
13215
|
graphqlEndpoint: a,
|
|
13216
13216
|
options: e == null ? void 0 : e.graphiql,
|
|
13217
13217
|
render: e == null ? void 0 : e.renderGraphiQL,
|
|
@@ -13219,28 +13219,28 @@ class Ep {
|
|
|
13219
13219
|
}),
|
|
13220
13220
|
// Middlewares before the GraphQL execution
|
|
13221
13221
|
An({
|
|
13222
|
-
match:
|
|
13223
|
-
parse:
|
|
13222
|
+
match: Dh,
|
|
13223
|
+
parse: $h
|
|
13224
13224
|
}),
|
|
13225
13225
|
An({
|
|
13226
|
-
match:
|
|
13227
|
-
parse:
|
|
13226
|
+
match: Vh,
|
|
13227
|
+
parse: Bh
|
|
13228
13228
|
}),
|
|
13229
13229
|
(e == null ? void 0 : e.multipart) !== !1 && An({
|
|
13230
|
-
match:
|
|
13231
|
-
parse:
|
|
13230
|
+
match: qh,
|
|
13231
|
+
parse: Qh
|
|
13232
13232
|
}),
|
|
13233
13233
|
An({
|
|
13234
|
-
match:
|
|
13235
|
-
parse:
|
|
13234
|
+
match: Mh,
|
|
13235
|
+
parse: Uh
|
|
13236
13236
|
}),
|
|
13237
13237
|
An({
|
|
13238
|
-
match:
|
|
13239
|
-
parse:
|
|
13238
|
+
match: jh,
|
|
13239
|
+
parse: Ph
|
|
13240
13240
|
}),
|
|
13241
13241
|
// Middlewares after the GraphQL execution
|
|
13242
|
-
|
|
13243
|
-
|
|
13242
|
+
mp(),
|
|
13243
|
+
Rh((u, l) => {
|
|
13244
13244
|
const p = {
|
|
13245
13245
|
errors: wr(u, this.maskedErrorsOpts, this.logger)
|
|
13246
13246
|
};
|
|
@@ -13257,20 +13257,20 @@ class Ep {
|
|
|
13257
13257
|
onPluginInit({ addPlugin: u }) {
|
|
13258
13258
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
|
|
13259
13259
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13260
|
-
|
|
13261
|
-
), u(
|
|
13260
|
+
ap(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
13261
|
+
), u(ep(o)), u(Hh()), u(
|
|
13262
13262
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
13263
|
-
|
|
13263
|
+
bp({
|
|
13264
13264
|
graphqlEndpoint: a,
|
|
13265
13265
|
showLandingPage: (e == null ? void 0 : e.landingPage) ?? !0
|
|
13266
13266
|
})
|
|
13267
|
-
), u(
|
|
13267
|
+
), u(Xh()), u(np()), s && u(xu(s)), u(
|
|
13268
13268
|
// We handle validation errors at the end
|
|
13269
|
-
|
|
13269
|
+
Zh()
|
|
13270
13270
|
);
|
|
13271
13271
|
}
|
|
13272
13272
|
}
|
|
13273
|
-
], this.getEnveloped =
|
|
13273
|
+
], this.getEnveloped = Eu({
|
|
13274
13274
|
plugins: this.plugins
|
|
13275
13275
|
}), this.plugins = this.getEnveloped._plugins, this.onRequestParseHooks = [], this.onParamsHooks = [], this.onResultProcessHooks = [];
|
|
13276
13276
|
for (const u of this.plugins)
|
|
@@ -13301,7 +13301,7 @@ class Ep {
|
|
|
13301
13301
|
request: n,
|
|
13302
13302
|
params: e
|
|
13303
13303
|
}, u = i[0] ? r ? Object.assign({}, i[0], a) : Object.assign(i[0], a) : a, l = this.getEnveloped(u);
|
|
13304
|
-
this.logger.debug("Processing GraphQL Parameters"), o = await
|
|
13304
|
+
this.logger.debug("Processing GraphQL Parameters"), o = await vp({
|
|
13305
13305
|
params: e,
|
|
13306
13306
|
enveloped: l
|
|
13307
13307
|
}), this.logger.debug("Processing GraphQL Parameters done.");
|
|
@@ -13320,9 +13320,9 @@ class Ep {
|
|
|
13320
13320
|
}
|
|
13321
13321
|
}
|
|
13322
13322
|
}
|
|
13323
|
-
function
|
|
13324
|
-
const e = new
|
|
13325
|
-
return
|
|
13323
|
+
function Tp(t) {
|
|
13324
|
+
const e = new wp(t);
|
|
13325
|
+
return Ah(e, {
|
|
13326
13326
|
fetchAPI: e.fetchAPI,
|
|
13327
13327
|
plugins: e.plugins
|
|
13328
13328
|
});
|
|
@@ -14105,11 +14105,11 @@ list should be an Array.`), d.length === 0) return new E(0);
|
|
|
14105
14105
|
}, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
|
|
14106
14106
|
});
|
|
14107
14107
|
})(eu);
|
|
14108
|
-
var
|
|
14108
|
+
var Sp = eu.exports, Ip = /* @__PURE__ */ Ba(Sp), tu = { exports: {} };
|
|
14109
14109
|
(function(t, e) {
|
|
14110
14110
|
(function(n, r, i) {
|
|
14111
14111
|
t.exports = i(), t.exports.default = i();
|
|
14112
|
-
})("slugify",
|
|
14112
|
+
})("slugify", Hd, function() {
|
|
14113
14113
|
var n = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), r = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
14114
14114
|
function i(s, o) {
|
|
14115
14115
|
if (typeof s != "string")
|
|
@@ -14126,20 +14126,20 @@ var Tp = eu.exports, Sp = /* @__PURE__ */ Ba(Tp), tu = { exports: {} };
|
|
|
14126
14126
|
}, i;
|
|
14127
14127
|
});
|
|
14128
14128
|
})(tu);
|
|
14129
|
-
var
|
|
14129
|
+
var _p = tu.exports, Op = /* @__PURE__ */ Ba(_p), Qt = {}, Bt = {}, ns = {};
|
|
14130
14130
|
Object.defineProperty(ns, "__esModule", {
|
|
14131
14131
|
value: !0
|
|
14132
14132
|
});
|
|
14133
|
-
ns.isObjectLike =
|
|
14134
|
-
function
|
|
14133
|
+
ns.isObjectLike = Np;
|
|
14134
|
+
function Np(t) {
|
|
14135
14135
|
return typeof t == "object" && t !== null;
|
|
14136
14136
|
}
|
|
14137
14137
|
var Hr = {}, rs = {};
|
|
14138
14138
|
Object.defineProperty(rs, "__esModule", {
|
|
14139
14139
|
value: !0
|
|
14140
14140
|
});
|
|
14141
|
-
rs.invariant =
|
|
14142
|
-
function
|
|
14141
|
+
rs.invariant = Ap;
|
|
14142
|
+
function Ap(t, e) {
|
|
14143
14143
|
if (!!!t)
|
|
14144
14144
|
throw new Error(
|
|
14145
14145
|
e ?? "Unexpected invariant triggered."
|
|
@@ -14148,13 +14148,13 @@ function Np(t, e) {
|
|
|
14148
14148
|
Object.defineProperty(Hr, "__esModule", {
|
|
14149
14149
|
value: !0
|
|
14150
14150
|
});
|
|
14151
|
-
Hr.getLocation =
|
|
14152
|
-
var
|
|
14153
|
-
const
|
|
14154
|
-
function
|
|
14151
|
+
Hr.getLocation = Lp;
|
|
14152
|
+
var xp = rs;
|
|
14153
|
+
const Fp = /\r\n|[\n\r]/g;
|
|
14154
|
+
function Lp(t, e) {
|
|
14155
14155
|
let n = 0, r = 1;
|
|
14156
|
-
for (const i of t.body.matchAll(
|
|
14157
|
-
if (typeof i.index == "number" || (0,
|
|
14156
|
+
for (const i of t.body.matchAll(Fp)) {
|
|
14157
|
+
if (typeof i.index == "number" || (0, xp.invariant)(!1), i.index >= e)
|
|
14158
14158
|
break;
|
|
14159
14159
|
n = i.index + i[0].length, r += 1;
|
|
14160
14160
|
}
|
|
@@ -14167,13 +14167,13 @@ var Wr = {};
|
|
|
14167
14167
|
Object.defineProperty(Wr, "__esModule", {
|
|
14168
14168
|
value: !0
|
|
14169
14169
|
});
|
|
14170
|
-
Wr.printLocation =
|
|
14170
|
+
Wr.printLocation = Rp;
|
|
14171
14171
|
Wr.printSourceLocation = nu;
|
|
14172
|
-
var
|
|
14173
|
-
function
|
|
14172
|
+
var Cp = Hr;
|
|
14173
|
+
function Rp(t) {
|
|
14174
14174
|
return nu(
|
|
14175
14175
|
t.source,
|
|
14176
|
-
(0,
|
|
14176
|
+
(0, Cp.getLocation)(t.source, t.start)
|
|
14177
14177
|
);
|
|
14178
14178
|
}
|
|
14179
14179
|
function nu(t, e) {
|
|
@@ -14207,10 +14207,10 @@ Object.defineProperty(Bt, "__esModule", {
|
|
|
14207
14207
|
value: !0
|
|
14208
14208
|
});
|
|
14209
14209
|
Bt.GraphQLError = void 0;
|
|
14210
|
-
Bt.formatError =
|
|
14211
|
-
Bt.printError =
|
|
14212
|
-
var
|
|
14213
|
-
function
|
|
14210
|
+
Bt.formatError = jp;
|
|
14211
|
+
Bt.printError = $p;
|
|
14212
|
+
var kp = ns, To = Hr, So = Wr;
|
|
14213
|
+
function Dp(t) {
|
|
14214
14214
|
const e = t[0];
|
|
14215
14215
|
return e == null || "kind" in e || "length" in e ? {
|
|
14216
14216
|
nodes: e,
|
|
@@ -14262,7 +14262,7 @@ class is extends Error {
|
|
|
14262
14262
|
*/
|
|
14263
14263
|
constructor(e, ...n) {
|
|
14264
14264
|
var r, i, s;
|
|
14265
|
-
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } =
|
|
14265
|
+
const { nodes: o, source: a, positions: u, path: l, originalError: c, extensions: p } = Dp(n);
|
|
14266
14266
|
super(e), this.name = "GraphQLError", this.path = l ?? void 0, this.originalError = c ?? void 0, this.nodes = Io(
|
|
14267
14267
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
14268
14268
|
);
|
|
@@ -14272,7 +14272,7 @@ class is extends Error {
|
|
|
14272
14272
|
this.source = a ?? (g == null || (i = g[0]) === null || i === void 0 ? void 0 : i.source), this.positions = u ?? (g == null ? void 0 : g.map((v) => v.start)), this.locations = u && a ? u.map((v) => (0, To.getLocation)(a, v)) : g == null ? void 0 : g.map(
|
|
14273
14273
|
(v) => (0, To.getLocation)(v.source, v.start)
|
|
14274
14274
|
);
|
|
14275
|
-
const S = (0,
|
|
14275
|
+
const S = (0, kp.isObjectLike)(
|
|
14276
14276
|
c == null ? void 0 : c.extensions
|
|
14277
14277
|
) ? c == null ? void 0 : c.extensions : void 0;
|
|
14278
14278
|
this.extensions = (s = p ?? S) !== null && s !== void 0 ? s : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -14333,20 +14333,20 @@ Bt.GraphQLError = is;
|
|
|
14333
14333
|
function Io(t) {
|
|
14334
14334
|
return t === void 0 || t.length === 0 ? void 0 : t;
|
|
14335
14335
|
}
|
|
14336
|
-
function
|
|
14336
|
+
function $p(t) {
|
|
14337
14337
|
return t.toString();
|
|
14338
14338
|
}
|
|
14339
|
-
function
|
|
14339
|
+
function jp(t) {
|
|
14340
14340
|
return t.toJSON();
|
|
14341
14341
|
}
|
|
14342
14342
|
var ss = {};
|
|
14343
14343
|
Object.defineProperty(ss, "__esModule", {
|
|
14344
14344
|
value: !0
|
|
14345
14345
|
});
|
|
14346
|
-
ss.syntaxError =
|
|
14347
|
-
var
|
|
14348
|
-
function
|
|
14349
|
-
return new
|
|
14346
|
+
ss.syntaxError = Mp;
|
|
14347
|
+
var Pp = Bt;
|
|
14348
|
+
function Mp(t, e, n) {
|
|
14349
|
+
return new Pp.GraphQLError(`Syntax Error: ${n}`, {
|
|
14350
14350
|
source: t,
|
|
14351
14351
|
positions: [e]
|
|
14352
14352
|
});
|
|
@@ -14355,9 +14355,9 @@ var os = {}, as = {}, us = {};
|
|
|
14355
14355
|
Object.defineProperty(us, "__esModule", {
|
|
14356
14356
|
value: !0
|
|
14357
14357
|
});
|
|
14358
|
-
us.inspect =
|
|
14359
|
-
const
|
|
14360
|
-
function
|
|
14358
|
+
us.inspect = Vp;
|
|
14359
|
+
const Up = 10, ru = 2;
|
|
14360
|
+
function Vp(t) {
|
|
14361
14361
|
return Kr(t, []);
|
|
14362
14362
|
}
|
|
14363
14363
|
function Kr(t, e) {
|
|
@@ -14367,45 +14367,45 @@ function Kr(t, e) {
|
|
|
14367
14367
|
case "function":
|
|
14368
14368
|
return t.name ? `[function ${t.name}]` : "[function]";
|
|
14369
14369
|
case "object":
|
|
14370
|
-
return
|
|
14370
|
+
return Bp(t, e);
|
|
14371
14371
|
default:
|
|
14372
14372
|
return String(t);
|
|
14373
14373
|
}
|
|
14374
14374
|
}
|
|
14375
|
-
function
|
|
14375
|
+
function Bp(t, e) {
|
|
14376
14376
|
if (t === null)
|
|
14377
14377
|
return "null";
|
|
14378
14378
|
if (e.includes(t))
|
|
14379
14379
|
return "[Circular]";
|
|
14380
14380
|
const n = [...e, t];
|
|
14381
|
-
if (
|
|
14381
|
+
if (Gp(t)) {
|
|
14382
14382
|
const r = t.toJSON();
|
|
14383
14383
|
if (r !== t)
|
|
14384
14384
|
return typeof r == "string" ? r : Kr(r, n);
|
|
14385
14385
|
} else if (Array.isArray(t))
|
|
14386
|
-
return
|
|
14387
|
-
return
|
|
14386
|
+
return Qp(t, n);
|
|
14387
|
+
return qp(t, n);
|
|
14388
14388
|
}
|
|
14389
|
-
function
|
|
14389
|
+
function Gp(t) {
|
|
14390
14390
|
return typeof t.toJSON == "function";
|
|
14391
14391
|
}
|
|
14392
|
-
function
|
|
14392
|
+
function qp(t, e) {
|
|
14393
14393
|
const n = Object.entries(t);
|
|
14394
|
-
return n.length === 0 ? "{}" : e.length > ru ? "[" +
|
|
14394
|
+
return n.length === 0 ? "{}" : e.length > ru ? "[" + zp(t) + "]" : "{ " + n.map(
|
|
14395
14395
|
([i, s]) => i + ": " + Kr(s, e)
|
|
14396
14396
|
).join(", ") + " }";
|
|
14397
14397
|
}
|
|
14398
|
-
function
|
|
14398
|
+
function Qp(t, e) {
|
|
14399
14399
|
if (t.length === 0)
|
|
14400
14400
|
return "[]";
|
|
14401
14401
|
if (e.length > ru)
|
|
14402
14402
|
return "[Array]";
|
|
14403
|
-
const n = Math.min(
|
|
14403
|
+
const n = Math.min(Up, t.length), r = t.length - n, i = [];
|
|
14404
14404
|
for (let s = 0; s < n; ++s)
|
|
14405
14405
|
i.push(Kr(t[s], e));
|
|
14406
14406
|
return r === 1 ? i.push("... 1 more item") : r > 1 && i.push(`... ${r} more items`), "[" + i.join(", ") + "]";
|
|
14407
14407
|
}
|
|
14408
|
-
function
|
|
14408
|
+
function zp(t) {
|
|
14409
14409
|
const e = Object.prototype.toString.call(t).replace(/^\[object /, "").replace(/]$/, "");
|
|
14410
14410
|
if (e === "Object" && typeof t.constructor == "function") {
|
|
14411
14411
|
const n = t.constructor.name;
|
|
@@ -14417,25 +14417,25 @@ function Qp(t) {
|
|
|
14417
14417
|
Object.defineProperty(as, "__esModule", {
|
|
14418
14418
|
value: !0
|
|
14419
14419
|
});
|
|
14420
|
-
as.toError =
|
|
14421
|
-
var
|
|
14422
|
-
function
|
|
14423
|
-
return t instanceof Error ? t : new
|
|
14420
|
+
as.toError = Jp;
|
|
14421
|
+
var Yp = us;
|
|
14422
|
+
function Jp(t) {
|
|
14423
|
+
return t instanceof Error ? t : new Hp(t);
|
|
14424
14424
|
}
|
|
14425
|
-
class
|
|
14425
|
+
class Hp extends Error {
|
|
14426
14426
|
constructor(e) {
|
|
14427
|
-
super("Unexpected error value: " + (0,
|
|
14427
|
+
super("Unexpected error value: " + (0, Yp.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
14428
14428
|
}
|
|
14429
14429
|
}
|
|
14430
14430
|
Object.defineProperty(os, "__esModule", {
|
|
14431
14431
|
value: !0
|
|
14432
14432
|
});
|
|
14433
|
-
os.locatedError =
|
|
14434
|
-
var
|
|
14435
|
-
function
|
|
14433
|
+
os.locatedError = Xp;
|
|
14434
|
+
var Wp = as, Kp = Bt;
|
|
14435
|
+
function Xp(t, e, n) {
|
|
14436
14436
|
var r;
|
|
14437
|
-
const i = (0,
|
|
14438
|
-
return
|
|
14437
|
+
const i = (0, Wp.toError)(t);
|
|
14438
|
+
return Zp(i) ? i : new Kp.GraphQLError(i.message, {
|
|
14439
14439
|
nodes: (r = i.nodes) !== null && r !== void 0 ? r : e,
|
|
14440
14440
|
source: i.source,
|
|
14441
14441
|
positions: i.positions,
|
|
@@ -14443,7 +14443,7 @@ function Kp(t, e, n) {
|
|
|
14443
14443
|
originalError: i
|
|
14444
14444
|
});
|
|
14445
14445
|
}
|
|
14446
|
-
function
|
|
14446
|
+
function Zp(t) {
|
|
14447
14447
|
return Array.isArray(t.path);
|
|
14448
14448
|
}
|
|
14449
14449
|
(function(t) {
|
|
@@ -14489,7 +14489,7 @@ var iu = {};
|
|
|
14489
14489
|
})(e.HttpMethods || (e.HttpMethods = {}));
|
|
14490
14490
|
}(t.OpenAPIV2 || (t.OpenAPIV2 = {}));
|
|
14491
14491
|
})(iu);
|
|
14492
|
-
const di = /* @__PURE__ */ new Map(),
|
|
14492
|
+
const di = /* @__PURE__ */ new Map(), eg = (t, e) => {
|
|
14493
14493
|
di.has(t) || di.set(t, /* @__PURE__ */ new Map());
|
|
14494
14494
|
const n = di.get(t);
|
|
14495
14495
|
if (n.has(e))
|
|
@@ -14499,11 +14499,11 @@ const di = /* @__PURE__ */ new Map(), Zp = (t, e) => {
|
|
|
14499
14499
|
for (const s of r)
|
|
14500
14500
|
(!i || typeof i != "object") && (i = null), i = i[s] ?? null;
|
|
14501
14501
|
return n.set(e, i), i;
|
|
14502
|
-
}, hi = /* @__PURE__ */ new Map(),
|
|
14502
|
+
}, hi = /* @__PURE__ */ new Map(), tg = (t) => t !== null && typeof t == "object", ng = async (t, e = []) => {
|
|
14503
14503
|
if (hi.has(t))
|
|
14504
14504
|
return hi.get(t);
|
|
14505
14505
|
const n = structuredClone(t), r = /* @__PURE__ */ new Set(), i = async (o, a) => {
|
|
14506
|
-
if (
|
|
14506
|
+
if (tg(o)) {
|
|
14507
14507
|
if (r.has(o))
|
|
14508
14508
|
return o;
|
|
14509
14509
|
if (r.add(o), Array.isArray(o))
|
|
@@ -14515,7 +14515,7 @@ const di = /* @__PURE__ */ new Map(), Zp = (t, e) => {
|
|
|
14515
14515
|
const l = await u(o.$ref);
|
|
14516
14516
|
if (l) return l;
|
|
14517
14517
|
}
|
|
14518
|
-
return await
|
|
14518
|
+
return await eg(n, o.$ref);
|
|
14519
14519
|
}
|
|
14520
14520
|
for (const u in o)
|
|
14521
14521
|
o[u] = await i(o[u]);
|
|
@@ -14533,7 +14533,7 @@ function kt(t, e) {
|
|
|
14533
14533
|
) : typeof i == "object" && i !== null ? n[r] = kt(i, e) : n[r] = i;
|
|
14534
14534
|
return e(n);
|
|
14535
14535
|
}
|
|
14536
|
-
const
|
|
14536
|
+
const rg = (t) => {
|
|
14537
14537
|
var e;
|
|
14538
14538
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = kt(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = kt(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 = kt(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
14539
14539
|
default: n.example
|
|
@@ -14551,7 +14551,7 @@ const ng = (t) => {
|
|
|
14551
14551
|
type: "string",
|
|
14552
14552
|
contentEncoding: "base64"
|
|
14553
14553
|
} : n), t;
|
|
14554
|
-
},
|
|
14554
|
+
}, ig = Object.values(iu.OpenAPIV3.HttpMethods), sg = async (t) => {
|
|
14555
14555
|
if (typeof t == "string") {
|
|
14556
14556
|
if (t.trim().startsWith("{"))
|
|
14557
14557
|
try {
|
|
@@ -14589,23 +14589,30 @@ const ng = (t) => {
|
|
|
14589
14589
|
}
|
|
14590
14590
|
if (typeof t == "object") return t;
|
|
14591
14591
|
throw new Qt.GraphQLError("Unsupported schema input: " + t);
|
|
14592
|
-
},
|
|
14593
|
-
const e = await
|
|
14592
|
+
}, og = async (t) => {
|
|
14593
|
+
const e = await sg(t);
|
|
14594
14594
|
if (!e.openapi)
|
|
14595
14595
|
throw new Qt.GraphQLError("OpenAPI version is not defined");
|
|
14596
|
-
const n = await
|
|
14597
|
-
return
|
|
14598
|
-
},
|
|
14596
|
+
const n = await ng(e);
|
|
14597
|
+
return rg(n);
|
|
14598
|
+
}, ag = (t, e) => {
|
|
14599
14599
|
const n = (t.summary ?? "") + (t.operationId ? "-" + t.operationId.slice(0, (t.summary, 1 / 0)) : "");
|
|
14600
|
-
return
|
|
14600
|
+
return Op(
|
|
14601
14601
|
(e ? e + "-" : "") + (n || `${t.method}-${t.path}`),
|
|
14602
14602
|
{ lower: !0, trim: !0 }
|
|
14603
14603
|
);
|
|
14604
14604
|
}, pi = new $r({
|
|
14605
14605
|
ttl: 60 * 10 * 1e3,
|
|
14606
14606
|
ttlAutopurge: !0
|
|
14607
|
-
}), Re = new
|
|
14608
|
-
|
|
14607
|
+
}), Re = new Qf({}), Bn = Re.addScalarType("JSON", zf), ug = Re.addScalarType("JSONObject", Yf), su = (t) => {
|
|
14608
|
+
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((i) => Object.values(i ?? {})).flatMap(
|
|
14609
|
+
(i) => typeof i == "object" && "tags" in i ? i.tags ?? [] : []
|
|
14610
|
+
), r = [...new Set(n)].filter(
|
|
14611
|
+
(i) => !e.some((s) => s.name === i)
|
|
14612
|
+
);
|
|
14613
|
+
return [...e, ...r.map((i) => ({ name: i }))];
|
|
14614
|
+
}, ou = (t, e) => Object.entries(t ?? {}).flatMap(
|
|
14615
|
+
([n, r]) => ig.flatMap((i) => {
|
|
14609
14616
|
if (!(r != null && r[i])) return [];
|
|
14610
14617
|
const s = r[i], o = r.parameters ?? [], a = s.parameters ?? [], u = [
|
|
14611
14618
|
...o.filter(
|
|
@@ -14622,7 +14629,7 @@ const ng = (t) => {
|
|
|
14622
14629
|
path: n,
|
|
14623
14630
|
parameters: u,
|
|
14624
14631
|
tags: s.tags ?? [],
|
|
14625
|
-
slug:
|
|
14632
|
+
slug: ag(
|
|
14626
14633
|
{
|
|
14627
14634
|
summary: s.summary,
|
|
14628
14635
|
operationId: s.operationId,
|
|
@@ -14633,42 +14640,41 @@ const ng = (t) => {
|
|
|
14633
14640
|
)
|
|
14634
14641
|
};
|
|
14635
14642
|
})
|
|
14636
|
-
),
|
|
14643
|
+
), lg = Re.objectRef("SchemaTag").implement({
|
|
14637
14644
|
fields: (t) => ({
|
|
14638
14645
|
name: t.exposeString("name", { nullable: !0 }),
|
|
14639
14646
|
description: t.exposeString("description", { nullable: !0 }),
|
|
14640
14647
|
operations: t.field({
|
|
14641
|
-
type: [
|
|
14648
|
+
type: [lu],
|
|
14642
14649
|
resolve: (e, n, r) => {
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
(o) =>
|
|
14647
|
-
o.tags.every((a) => !i.includes(a))
|
|
14650
|
+
const i = su(r.schema).map((s) => s.name);
|
|
14651
|
+
return ou(r.schema.paths, e.name).filter(
|
|
14652
|
+
(s) => e.name ? s.tags.includes(e.name) : s.tags.length === 0 || // If none of the tags are present in the root tags, then show them here
|
|
14653
|
+
s.tags.every((o) => !i.includes(o))
|
|
14648
14654
|
);
|
|
14649
14655
|
}
|
|
14650
14656
|
})
|
|
14651
14657
|
})
|
|
14652
|
-
}),
|
|
14658
|
+
}), cg = Re.objectRef("PathItem").implement({
|
|
14653
14659
|
fields: (t) => ({
|
|
14654
14660
|
path: t.exposeString("path"),
|
|
14655
14661
|
methods: t.exposeStringList("methods")
|
|
14656
14662
|
})
|
|
14657
|
-
}),
|
|
14663
|
+
}), fg = Re.objectRef("TagItem").implement({
|
|
14658
14664
|
fields: (t) => ({
|
|
14659
14665
|
name: t.exposeString("name"),
|
|
14660
14666
|
description: t.exposeString("description", { nullable: !0 })
|
|
14661
14667
|
})
|
|
14662
|
-
}),
|
|
14668
|
+
}), dg = Re.objectRef("EncodingItem").implement({
|
|
14663
14669
|
fields: (t) => ({
|
|
14664
14670
|
name: t.exposeString("name"),
|
|
14665
14671
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
14666
|
-
headers: t.expose("headers", { type:
|
|
14672
|
+
headers: t.expose("headers", { type: ug, nullable: !0 }),
|
|
14667
14673
|
style: t.exposeString("style", { nullable: !0 }),
|
|
14668
14674
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
14669
14675
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 })
|
|
14670
14676
|
})
|
|
14671
|
-
}),
|
|
14677
|
+
}), au = Re.objectRef("ExampleItem").implement({
|
|
14672
14678
|
fields: (t) => ({
|
|
14673
14679
|
name: t.exposeString("name"),
|
|
14674
14680
|
summary: t.exposeString("summary", { nullable: !0 }),
|
|
@@ -14676,13 +14682,13 @@ const ng = (t) => {
|
|
|
14676
14682
|
value: t.exposeString("value", { nullable: !0 }),
|
|
14677
14683
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
14678
14684
|
})
|
|
14679
|
-
}),
|
|
14685
|
+
}), hg = Re.enumType("ParameterIn", {
|
|
14680
14686
|
values: ["query", "header", "path", "cookie"]
|
|
14681
|
-
}),
|
|
14687
|
+
}), pg = Re.objectRef("ParameterItem").implement({
|
|
14682
14688
|
fields: (t) => ({
|
|
14683
14689
|
name: t.exposeString("name"),
|
|
14684
14690
|
in: t.field({
|
|
14685
|
-
type:
|
|
14691
|
+
type: hg,
|
|
14686
14692
|
resolve: (e) => e.in
|
|
14687
14693
|
}),
|
|
14688
14694
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -14693,7 +14699,7 @@ const ng = (t) => {
|
|
|
14693
14699
|
explode: t.exposeBoolean("explode", { nullable: !0 }),
|
|
14694
14700
|
allowReserved: t.exposeBoolean("allowReserved", { nullable: !0 }),
|
|
14695
14701
|
examples: t.field({
|
|
14696
|
-
type: [
|
|
14702
|
+
type: [au],
|
|
14697
14703
|
resolve: (e) => Object.entries(e.examples ?? {}).map(([n, r]) => ({
|
|
14698
14704
|
name: n,
|
|
14699
14705
|
...typeof r == "string" ? { value: r } : r
|
|
@@ -14702,28 +14708,28 @@ const ng = (t) => {
|
|
|
14702
14708
|
}),
|
|
14703
14709
|
schema: t.expose("schema", { type: Bn, nullable: !0 })
|
|
14704
14710
|
})
|
|
14705
|
-
}),
|
|
14711
|
+
}), uu = Re.objectRef("MediaTypeObject").implement({
|
|
14706
14712
|
fields: (t) => ({
|
|
14707
14713
|
mediaType: t.exposeString("mediaType"),
|
|
14708
14714
|
schema: t.expose("schema", { type: Bn, nullable: !0 }),
|
|
14709
|
-
examples: t.expose("examples", { type: [
|
|
14710
|
-
encoding: t.expose("encoding", { type: [
|
|
14715
|
+
examples: t.expose("examples", { type: [au], nullable: !0 }),
|
|
14716
|
+
encoding: t.expose("encoding", { type: [dg], nullable: !0 })
|
|
14711
14717
|
})
|
|
14712
|
-
}),
|
|
14718
|
+
}), gg = Re.objectRef("RequestBodyObject").implement({
|
|
14713
14719
|
fields: (t) => ({
|
|
14714
14720
|
description: t.exposeString("description", { nullable: !0 }),
|
|
14715
|
-
content: t.expose("content", { type: [
|
|
14721
|
+
content: t.expose("content", { type: [uu], nullable: !0 }),
|
|
14716
14722
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
14717
14723
|
})
|
|
14718
|
-
}),
|
|
14724
|
+
}), mg = Re.objectRef("ResponseItem").implement({
|
|
14719
14725
|
fields: (t) => ({
|
|
14720
14726
|
statusCode: t.exposeString("statusCode"),
|
|
14721
|
-
description: t.exposeString("description"),
|
|
14722
|
-
content: t.expose("content", { type: [
|
|
14727
|
+
description: t.exposeString("description", { nullable: !0 }),
|
|
14728
|
+
content: t.expose("content", { type: [uu], nullable: !0 }),
|
|
14723
14729
|
headers: t.expose("headers", { type: Bn, nullable: !0 }),
|
|
14724
14730
|
links: t.expose("links", { type: Bn, nullable: !0 })
|
|
14725
14731
|
})
|
|
14726
|
-
}),
|
|
14732
|
+
}), lu = Re.objectRef("OperationItem").implement({
|
|
14727
14733
|
fields: (t) => ({
|
|
14728
14734
|
slug: t.exposeString("slug"),
|
|
14729
14735
|
path: t.exposeString("path"),
|
|
@@ -14738,11 +14744,11 @@ const ng = (t) => {
|
|
|
14738
14744
|
}
|
|
14739
14745
|
}),
|
|
14740
14746
|
parameters: t.expose("parameters", {
|
|
14741
|
-
type: [
|
|
14747
|
+
type: [pg],
|
|
14742
14748
|
nullable: !0
|
|
14743
14749
|
}),
|
|
14744
14750
|
requestBody: t.field({
|
|
14745
|
-
type:
|
|
14751
|
+
type: gg,
|
|
14746
14752
|
resolve: (e) => {
|
|
14747
14753
|
var n, r, i;
|
|
14748
14754
|
return {
|
|
@@ -14765,7 +14771,7 @@ const ng = (t) => {
|
|
|
14765
14771
|
nullable: !0
|
|
14766
14772
|
}),
|
|
14767
14773
|
responses: t.field({
|
|
14768
|
-
type: [
|
|
14774
|
+
type: [mg],
|
|
14769
14775
|
resolve: (e) => Object.entries(e.responses ?? {}).map(
|
|
14770
14776
|
([n, r]) => ({
|
|
14771
14777
|
statusCode: n,
|
|
@@ -14785,7 +14791,7 @@ const ng = (t) => {
|
|
|
14785
14791
|
)
|
|
14786
14792
|
}),
|
|
14787
14793
|
tags: t.field({
|
|
14788
|
-
type: [
|
|
14794
|
+
type: [fg],
|
|
14789
14795
|
resolve: (e, n, r) => {
|
|
14790
14796
|
var i;
|
|
14791
14797
|
return (i = e.tags) == null ? void 0 : i.map((s) => {
|
|
@@ -14800,7 +14806,7 @@ const ng = (t) => {
|
|
|
14800
14806
|
}),
|
|
14801
14807
|
deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
|
|
14802
14808
|
})
|
|
14803
|
-
}),
|
|
14809
|
+
}), yg = Re.objectRef("Schema").implement({
|
|
14804
14810
|
fields: (t) => ({
|
|
14805
14811
|
openapi: t.string({ resolve: (e) => e.openapi }),
|
|
14806
14812
|
url: t.string({ resolve: (e) => {
|
|
@@ -14814,7 +14820,7 @@ const ng = (t) => {
|
|
|
14814
14820
|
nullable: !0
|
|
14815
14821
|
}),
|
|
14816
14822
|
paths: t.field({
|
|
14817
|
-
type: [
|
|
14823
|
+
type: [cg],
|
|
14818
14824
|
resolve: (e) => Object.entries(e.paths ?? {}).map(([n, r]) => ({
|
|
14819
14825
|
path: n,
|
|
14820
14826
|
methods: Object.keys(r)
|
|
@@ -14824,64 +14830,65 @@ const ng = (t) => {
|
|
|
14824
14830
|
args: {
|
|
14825
14831
|
name: t.arg.string()
|
|
14826
14832
|
},
|
|
14827
|
-
type: [
|
|
14828
|
-
resolve: (e, n) =>
|
|
14829
|
-
|
|
14830
|
-
|
|
14833
|
+
type: [lg],
|
|
14834
|
+
resolve: (e, n) => {
|
|
14835
|
+
const r = [...su(e), { name: "" }];
|
|
14836
|
+
return n.name ? r.filter((i) => i.name === n.name) : r;
|
|
14837
|
+
}
|
|
14831
14838
|
}),
|
|
14832
14839
|
operations: t.field({
|
|
14833
|
-
type: [
|
|
14840
|
+
type: [lu],
|
|
14834
14841
|
args: {
|
|
14835
14842
|
path: t.arg.string(),
|
|
14836
14843
|
method: t.arg.string(),
|
|
14837
14844
|
operationId: t.arg.string(),
|
|
14838
14845
|
tag: t.arg.string()
|
|
14839
14846
|
},
|
|
14840
|
-
resolve: (e, n) =>
|
|
14847
|
+
resolve: (e, n) => ou(e.paths).filter(
|
|
14841
14848
|
(r) => (!n.operationId || r.operationId === n.operationId) && (!n.path || r.path === n.path) && (!n.method || r.method === n.method) && (!n.tag || r.tags.includes(n.tag))
|
|
14842
14849
|
)
|
|
14843
14850
|
})
|
|
14844
14851
|
})
|
|
14845
|
-
}),
|
|
14846
|
-
const e =
|
|
14852
|
+
}), bg = async (t) => {
|
|
14853
|
+
const e = Ip(t);
|
|
14847
14854
|
if (pi.has(e))
|
|
14848
14855
|
return pi.get(e);
|
|
14849
|
-
const n =
|
|
14856
|
+
const n = og(t);
|
|
14850
14857
|
return pi.set(e, n), n;
|
|
14851
|
-
},
|
|
14858
|
+
}, vg = Re.enumType("SchemaType", {
|
|
14852
14859
|
values: ["url", "json", "yaml"]
|
|
14853
14860
|
});
|
|
14854
14861
|
Re.queryType({
|
|
14855
14862
|
fields: (t) => ({
|
|
14856
14863
|
// https://tan-cow-main-bce8a06.d2.zuplo.dev/openapi
|
|
14857
14864
|
schema: t.field({
|
|
14858
|
-
type:
|
|
14865
|
+
type: yg,
|
|
14859
14866
|
args: {
|
|
14860
|
-
type: t.arg({ type:
|
|
14867
|
+
type: t.arg({ type: vg, required: !0 }),
|
|
14861
14868
|
input: t.arg({ type: Bn, required: !0 })
|
|
14862
14869
|
},
|
|
14863
14870
|
resolve: async (e, n, r) => {
|
|
14864
|
-
const i = await
|
|
14871
|
+
const i = await bg(n.input);
|
|
14865
14872
|
return r.schema = i, i;
|
|
14866
14873
|
}
|
|
14867
14874
|
})
|
|
14868
14875
|
})
|
|
14869
14876
|
});
|
|
14870
|
-
const
|
|
14877
|
+
const Eg = Re.toSchema(), wg = (t) => Tp({ schema: Eg, ...t }), Tg = () => wg({
|
|
14871
14878
|
plugins: [
|
|
14872
14879
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14873
|
-
|
|
14880
|
+
wu({
|
|
14874
14881
|
logFn: (t, { args: e }) => {
|
|
14875
14882
|
}
|
|
14876
14883
|
})
|
|
14877
14884
|
]
|
|
14878
|
-
}),
|
|
14879
|
-
|
|
14885
|
+
}), Sg = Tg(), Ig = self;
|
|
14886
|
+
Ig.addEventListener(
|
|
14880
14887
|
"connect",
|
|
14881
14888
|
function(t) {
|
|
14882
14889
|
const e = t.ports[0];
|
|
14883
14890
|
e.onmessage = async function(n) {
|
|
14884
|
-
const r = await
|
|
14891
|
+
const r = await Sg.fetch(
|
|
14885
14892
|
new Request("/__z/graphql", {
|
|
14886
14893
|
method: "POST",
|
|
14887
14894
|
body: n.data.body,
|
|
@@ -14897,4 +14904,4 @@ Sg.addEventListener(
|
|
|
14897
14904
|
};
|
|
14898
14905
|
}
|
|
14899
14906
|
);
|
|
14900
|
-
//# sourceMappingURL=worker-
|
|
14907
|
+
//# sourceMappingURL=worker-CzHUifWA.js.map
|