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