zudoku 0.18.2 → 0.18.4
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/cli/common/logger.js +9 -0
- package/dist/cli/common/logger.js.map +1 -1
- package/dist/config/validators/validate.d.ts +23 -3
- package/dist/config/validators/validate.js +7 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/lib/components/Header.js +2 -2
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
- package/dist/lib/oas/parser/upgrade/index.js +3 -20
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
- package/dist/lib/plugins/markdown/MdxPage.js +14 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.js +1 -1
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +12 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +4 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +2 -0
- package/dist/lib/util/traverse.js +18 -0
- package/dist/lib/util/traverse.js.map +1 -0
- package/dist/vite/config.js +12 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +3 -4
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/output.js +20 -0
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/plugin-api.js +23 -19
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-component.js +14 -19
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-docs.test.js +15 -23
- package/dist/vite/plugin-docs.test.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +3 -0
- package/dist/zuplo/with-zuplo.js +28 -0
- package/dist/zuplo/with-zuplo.js.map +1 -0
- package/lib/MdxPage-B2FpJ9KC.js +183 -0
- package/lib/MdxPage-B2FpJ9KC.js.map +1 -0
- package/lib/{OperationList-BwBl1xrD.js → OperationList-BkNQEsNs.js} +459 -457
- package/lib/OperationList-BkNQEsNs.js.map +1 -0
- package/lib/assets/{worker-CPsGZsve.js → worker-BHClFO3A.js} +434 -438
- package/lib/assets/worker-BHClFO3A.js.map +1 -0
- package/lib/{createServer-DK-g7kbB.js → createServer-CpJlUPtn.js} +4457 -5247
- package/lib/createServer-CpJlUPtn.js.map +1 -0
- package/lib/{index-DNxQ_rCt.js → index-C7SaIME0.js} +49 -45
- package/lib/index-C7SaIME0.js.map +1 -0
- package/lib/object_hash-CvlLgU-M.js +785 -0
- package/lib/object_hash-CvlLgU-M.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +11 -0
- package/lib/post-processors/removeExtensions.js.map +1 -0
- package/lib/post-processors/removePaths.js +28 -0
- package/lib/post-processors/removePaths.js.map +1 -0
- package/lib/post-processors/traverse.js +12 -0
- package/lib/post-processors/traverse.js.map +1 -0
- package/lib/zudoku.components.js +1 -2
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-markdown.js +15 -14
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +15 -5
- package/src/lib/components/Header.tsx +1 -2
- package/src/lib/oas/parser/upgrade/index.ts +4 -27
- package/src/lib/plugins/markdown/MdxPage.tsx +25 -1
- package/src/lib/plugins/markdown/index.tsx +1 -0
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +17 -0
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +5 -2
- package/src/lib/plugins/openapi/interfaces.ts +1 -1
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
- package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
- package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
- package/src/lib/util/traverse.ts +25 -0
- package/lib/MdxPage-Bwn-VSsH.js +0 -174
- package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
- package/lib/OperationList-BwBl1xrD.js.map +0 -1
- package/lib/assets/worker-CPsGZsve.js.map +0 -1
- package/lib/createServer-DK-g7kbB.js.map +0 -1
- package/lib/index-DNxQ_rCt.js.map +0 -1
|
@@ -45,7 +45,7 @@ function Ol(t) {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
const bo = (t) => (...e) => t(Ol(e));
|
|
48
|
-
function
|
|
48
|
+
function Eo(t, e) {
|
|
49
49
|
const n = t[Symbol.asyncIterator]();
|
|
50
50
|
async function i(s) {
|
|
51
51
|
var o;
|
|
@@ -95,7 +95,7 @@ function Nl(t) {
|
|
|
95
95
|
typeResolver: t[7]
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const vo = (t) => (...e) => t(Nl(e));
|
|
99
99
|
function zt(t) {
|
|
100
100
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
101
101
|
}
|
|
@@ -331,7 +331,7 @@ function xl({ plugins: t }) {
|
|
|
331
331
|
});
|
|
332
332
|
throw _;
|
|
333
333
|
}
|
|
334
|
-
} : (S) => (A) => (A && Object.assign(S, A), S),
|
|
334
|
+
} : (S) => (A) => (A && Object.assign(S, A), S), E = c.subscribe.length, R = bo(E ? async (S) => {
|
|
335
335
|
let A = o;
|
|
336
336
|
const O = [], C = [], T = S.contextValue || {};
|
|
337
337
|
let _;
|
|
@@ -370,7 +370,7 @@ function xl({ plugins: t }) {
|
|
|
370
370
|
});
|
|
371
371
|
N && (N.onNext && m.push(N.onNext), N.onEnd && b.push(N.onEnd));
|
|
372
372
|
}
|
|
373
|
-
return m.length && zt(_) && (_ =
|
|
373
|
+
return m.length && zt(_) && (_ = Eo(_, async (d) => {
|
|
374
374
|
for (const N of m)
|
|
375
375
|
await N({
|
|
376
376
|
args: S,
|
|
@@ -392,7 +392,7 @@ function xl({ plugins: t }) {
|
|
|
392
392
|
});
|
|
393
393
|
throw N;
|
|
394
394
|
})), _;
|
|
395
|
-
} : o), x = c.execute.length, y =
|
|
395
|
+
} : o), x = c.execute.length, y = vo(x ? async (S) => {
|
|
396
396
|
let A = s, O;
|
|
397
397
|
const C = [], T = S.contextValue || {};
|
|
398
398
|
for (const b of c.execute) {
|
|
@@ -430,7 +430,7 @@ function xl({ plugins: t }) {
|
|
|
430
430
|
});
|
|
431
431
|
d && (d.onNext && _.push(d.onNext), d.onEnd && m.push(d.onEnd));
|
|
432
432
|
}
|
|
433
|
-
return _.length && zt(O) && (O =
|
|
433
|
+
return _.length && zt(O) && (O = Eo(O, async (b) => {
|
|
434
434
|
for (const d of _)
|
|
435
435
|
await d({
|
|
436
436
|
args: S,
|
|
@@ -633,14 +633,14 @@ function Ma(t, e) {
|
|
|
633
633
|
const n = t.locationOffset.column - 1, i = "".padStart(n) + t.body, r = e.line - 1, s = t.locationOffset.line - 1, o = e.line + s, a = e.line === 1 ? n : 0, u = e.column + a, c = `${t.name}:${o}:${u}
|
|
634
634
|
`, f = i.split(/\r\n|[\n\r]/g), g = f[r];
|
|
635
635
|
if (g.length > 120) {
|
|
636
|
-
const p = Math.floor(u / 80), w = u % 80,
|
|
636
|
+
const p = Math.floor(u / 80), w = u % 80, E = [];
|
|
637
637
|
for (let R = 0; R < g.length; R += 80)
|
|
638
|
-
|
|
638
|
+
E.push(g.slice(R, R + 80));
|
|
639
639
|
return c + _o([
|
|
640
|
-
[`${o} |`,
|
|
641
|
-
...
|
|
640
|
+
[`${o} |`, E[0]],
|
|
641
|
+
...E.slice(1, p + 1).map((R) => ["|", R]),
|
|
642
642
|
["|", "^".padStart(w)],
|
|
643
|
-
["|",
|
|
643
|
+
["|", E[p + 1]]
|
|
644
644
|
]);
|
|
645
645
|
}
|
|
646
646
|
return c + _o([
|
|
@@ -713,9 +713,9 @@ let P = class Ua extends Error {
|
|
|
713
713
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
714
714
|
);
|
|
715
715
|
const p = Io(
|
|
716
|
-
(i = this.nodes) === null || i === void 0 ? void 0 : i.map((
|
|
716
|
+
(i = this.nodes) === null || i === void 0 ? void 0 : i.map((E) => E.loc).filter((E) => E != null)
|
|
717
717
|
);
|
|
718
|
-
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((
|
|
718
|
+
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((E) => E.start)), this.locations = u && a ? u.map((E) => as(a, E)) : p == null ? void 0 : p.map((E) => as(E.source, E.start));
|
|
719
719
|
const w = Ht(
|
|
720
720
|
f == null ? void 0 : f.extensions
|
|
721
721
|
) ? f == null ? void 0 : f.extensions : void 0;
|
|
@@ -2623,7 +2623,7 @@ function Qi(t) {
|
|
|
2623
2623
|
function Ha(t) {
|
|
2624
2624
|
return Zl(t) ? `"${t}"` : t;
|
|
2625
2625
|
}
|
|
2626
|
-
const
|
|
2626
|
+
const Ec = 5;
|
|
2627
2627
|
function mn(t, e) {
|
|
2628
2628
|
const [n, i] = e ? [t, e] : [void 0, t];
|
|
2629
2629
|
let r = " Did you mean ";
|
|
@@ -2637,7 +2637,7 @@ function mn(t, e) {
|
|
|
2637
2637
|
case 2:
|
|
2638
2638
|
return r + s[0] + " or " + s[1] + "?";
|
|
2639
2639
|
}
|
|
2640
|
-
const o = s.slice(0,
|
|
2640
|
+
const o = s.slice(0, Ec), a = o.pop();
|
|
2641
2641
|
return r + o.join(", ") + ", or " + a + "?";
|
|
2642
2642
|
}
|
|
2643
2643
|
function No(t) {
|
|
@@ -2688,9 +2688,9 @@ function $i(t, e) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return t.length - e.length;
|
|
2690
2690
|
}
|
|
2691
|
-
const cs = 48,
|
|
2691
|
+
const cs = 48, vc = 57;
|
|
2692
2692
|
function Wi(t) {
|
|
2693
|
-
return !isNaN(t) && cs <= t && t <=
|
|
2693
|
+
return !isNaN(t) && cs <= t && t <= vc;
|
|
2694
2694
|
}
|
|
2695
2695
|
function kn(t, e) {
|
|
2696
2696
|
const n = /* @__PURE__ */ Object.create(null), i = new wc(t), r = Math.floor(t.length * 0.4) + 1;
|
|
@@ -2731,21 +2731,21 @@ class wc {
|
|
|
2731
2731
|
for (let f = 1; f <= o; f++) {
|
|
2732
2732
|
const g = u[(f - 1) % 3], p = u[f % 3];
|
|
2733
2733
|
let w = p[0] = f;
|
|
2734
|
-
for (let
|
|
2735
|
-
const R = r[f - 1] === s[
|
|
2734
|
+
for (let E = 1; E <= a; E++) {
|
|
2735
|
+
const R = r[f - 1] === s[E - 1] ? 0 : 1;
|
|
2736
2736
|
let x = Math.min(
|
|
2737
|
-
g[
|
|
2737
|
+
g[E] + 1,
|
|
2738
2738
|
// delete
|
|
2739
|
-
p[
|
|
2739
|
+
p[E - 1] + 1,
|
|
2740
2740
|
// insert
|
|
2741
|
-
g[
|
|
2741
|
+
g[E - 1] + R
|
|
2742
2742
|
// substitute
|
|
2743
2743
|
);
|
|
2744
|
-
if (f > 1 &&
|
|
2745
|
-
const y = u[(f - 2) % 3][
|
|
2744
|
+
if (f > 1 && E > 1 && r[f - 1] === s[E - 2] && r[f - 2] === s[E - 1]) {
|
|
2745
|
+
const y = u[(f - 2) % 3][E - 2];
|
|
2746
2746
|
x = Math.min(x, y + 1);
|
|
2747
2747
|
}
|
|
2748
|
-
x < w && (w = x), p[
|
|
2748
|
+
x < w && (w = x), p[E] = x;
|
|
2749
2749
|
}
|
|
2750
2750
|
if (w > n)
|
|
2751
2751
|
return;
|
|
@@ -2943,11 +2943,11 @@ const Ic = [
|
|
|
2943
2943
|
"\\u009D",
|
|
2944
2944
|
"\\u009E",
|
|
2945
2945
|
"\\u009F"
|
|
2946
|
-
],
|
|
2946
|
+
], Ei = Object.freeze({});
|
|
2947
2947
|
function Ps(t, e, n = Ba) {
|
|
2948
2948
|
const i = /* @__PURE__ */ new Map();
|
|
2949
2949
|
for (const y of Object.values(I))
|
|
2950
|
-
i.set(y,
|
|
2950
|
+
i.set(y, Er(e, y));
|
|
2951
2951
|
let r, s = Array.isArray(t), o = [t], a = -1, u = [], c = t, f, g;
|
|
2952
2952
|
const p = [], w = [];
|
|
2953
2953
|
do {
|
|
@@ -2978,10 +2978,10 @@ function Ps(t, e, n = Ba) {
|
|
|
2978
2978
|
}
|
|
2979
2979
|
let A;
|
|
2980
2980
|
if (!Array.isArray(c)) {
|
|
2981
|
-
var
|
|
2981
|
+
var E, R;
|
|
2982
2982
|
us(c) || ae(!1, `Invalid AST Node: ${G(c)}.`);
|
|
2983
|
-
const O = y ? (
|
|
2984
|
-
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A ===
|
|
2983
|
+
const O = y ? (E = i.get(c.kind)) === null || E === void 0 ? void 0 : E.leave : (R = i.get(c.kind)) === null || R === void 0 ? void 0 : R.enter;
|
|
2984
|
+
if (A = O == null ? void 0 : O.call(e, c, f, g, p, w), A === Ei)
|
|
2985
2985
|
break;
|
|
2986
2986
|
if (A === !1) {
|
|
2987
2987
|
if (!y) {
|
|
@@ -3017,7 +3017,7 @@ function Oc(t) {
|
|
|
3017
3017
|
let r = !1;
|
|
3018
3018
|
const s = new Array(t.length).fill(void 0), o = new Array(t.length).fill(void 0);
|
|
3019
3019
|
for (let u = 0; u < t.length; ++u) {
|
|
3020
|
-
const { enter: c, leave: f } =
|
|
3020
|
+
const { enter: c, leave: f } = Er(t[u], i);
|
|
3021
3021
|
r || (r = c != null || f != null), s[u] = c, o[u] = f;
|
|
3022
3022
|
}
|
|
3023
3023
|
if (!r)
|
|
@@ -3031,8 +3031,8 @@ function Oc(t) {
|
|
|
3031
3031
|
const p = (f = s[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3032
3032
|
if (p === !1)
|
|
3033
3033
|
e[g] = c;
|
|
3034
|
-
else if (p ===
|
|
3035
|
-
e[g] =
|
|
3034
|
+
else if (p === Ei)
|
|
3035
|
+
e[g] = Ei;
|
|
3036
3036
|
else if (p !== void 0)
|
|
3037
3037
|
return p;
|
|
3038
3038
|
}
|
|
@@ -3043,8 +3043,8 @@ function Oc(t) {
|
|
|
3043
3043
|
if (e[g] === null) {
|
|
3044
3044
|
var f;
|
|
3045
3045
|
const p = (f = o[g]) === null || f === void 0 ? void 0 : f.apply(t[g], u);
|
|
3046
|
-
if (p ===
|
|
3047
|
-
e[g] =
|
|
3046
|
+
if (p === Ei)
|
|
3047
|
+
e[g] = Ei;
|
|
3048
3048
|
else if (p !== void 0 && p !== !1)
|
|
3049
3049
|
return p;
|
|
3050
3050
|
} else e[g] === c && (e[g] = null);
|
|
@@ -3054,7 +3054,7 @@ function Oc(t) {
|
|
|
3054
3054
|
}
|
|
3055
3055
|
return n;
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function Er(t, e) {
|
|
3058
3058
|
const n = t[e];
|
|
3059
3059
|
return typeof n == "object" ? n : typeof n == "function" ? {
|
|
3060
3060
|
enter: n,
|
|
@@ -3372,7 +3372,7 @@ function xc(t) {
|
|
|
3372
3372
|
return qt(t);
|
|
3373
3373
|
}
|
|
3374
3374
|
function js(t) {
|
|
3375
|
-
return Dn(t) || pe(t) ||
|
|
3375
|
+
return Dn(t) || pe(t) || ve(t) || Vt(t) || Bt(t) || ze(t) || je(t) || re(t);
|
|
3376
3376
|
}
|
|
3377
3377
|
function Dn(t) {
|
|
3378
3378
|
return Gt(t, Ut);
|
|
@@ -3380,7 +3380,7 @@ function Dn(t) {
|
|
|
3380
3380
|
function pe(t) {
|
|
3381
3381
|
return Gt(t, et);
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3383
|
+
function ve(t) {
|
|
3384
3384
|
return Gt(t, _n);
|
|
3385
3385
|
}
|
|
3386
3386
|
function Vt(t) {
|
|
@@ -3402,16 +3402,16 @@ function Pt(t) {
|
|
|
3402
3402
|
return Dn(t) || Bt(t) || ze(t) || Ms(t) && Pt(t.ofType);
|
|
3403
3403
|
}
|
|
3404
3404
|
function Ni(t) {
|
|
3405
|
-
return Dn(t) || pe(t) ||
|
|
3405
|
+
return Dn(t) || pe(t) || ve(t) || Vt(t) || Bt(t) || Ms(t) && Ni(t.ofType);
|
|
3406
3406
|
}
|
|
3407
3407
|
function yn(t) {
|
|
3408
3408
|
return Dn(t) || Bt(t);
|
|
3409
3409
|
}
|
|
3410
3410
|
function bn(t) {
|
|
3411
|
-
return pe(t) ||
|
|
3411
|
+
return pe(t) || ve(t) || Vt(t);
|
|
3412
3412
|
}
|
|
3413
3413
|
function tn(t) {
|
|
3414
|
-
return
|
|
3414
|
+
return ve(t) || Vt(t);
|
|
3415
3415
|
}
|
|
3416
3416
|
class Ue {
|
|
3417
3417
|
constructor(e) {
|
|
@@ -3455,7 +3455,7 @@ function Ja(t) {
|
|
|
3455
3455
|
return re(t) ? t.ofType : t;
|
|
3456
3456
|
}
|
|
3457
3457
|
function Rc(t) {
|
|
3458
|
-
return Dn(t) || pe(t) ||
|
|
3458
|
+
return Dn(t) || pe(t) || ve(t) || Vt(t) || Bt(t) || ze(t);
|
|
3459
3459
|
}
|
|
3460
3460
|
function jt(t) {
|
|
3461
3461
|
if (t) {
|
|
@@ -3876,7 +3876,7 @@ function ds(t, e) {
|
|
|
3876
3876
|
return t === e ? !0 : re(t) && re(e) || je(t) && je(e) ? ds(t.ofType, e.ofType) : !1;
|
|
3877
3877
|
}
|
|
3878
3878
|
function Wn(t, e, n) {
|
|
3879
|
-
return e === n ? !0 : re(n) ? re(e) ? Wn(t, e.ofType, n.ofType) : !1 : re(e) ? Wn(t, e.ofType, n) : je(n) ? je(e) ? Wn(t, e.ofType, n.ofType) : !1 : je(e) ? !1 : tn(n) && (
|
|
3879
|
+
return e === n ? !0 : re(n) ? re(e) ? Wn(t, e.ofType, n.ofType) : !1 : re(e) ? Wn(t, e.ofType, n) : je(n) ? je(e) ? Wn(t, e.ofType, n.ofType) : !1 : je(e) ? !1 : tn(n) && (ve(e) || pe(e)) && t.isSubType(n, e);
|
|
3880
3880
|
}
|
|
3881
3881
|
function Ro(t, e, n) {
|
|
3882
3882
|
return e === n ? !0 : tn(e) ? tn(n) ? t.getPossibleTypes(e).some((i) => t.isSubType(n, i)) : t.isSubType(e, n) : tn(n) ? t.isSubType(n, e) : !1;
|
|
@@ -4171,9 +4171,9 @@ const Us = new nn({
|
|
|
4171
4171
|
function au(t) {
|
|
4172
4172
|
return typeof t == "object" && typeof (t == null ? void 0 : t[Symbol.iterator]) == "function";
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function vi(t, e) {
|
|
4175
4175
|
if (re(e)) {
|
|
4176
|
-
const n =
|
|
4176
|
+
const n = vi(t, e.ofType);
|
|
4177
4177
|
return (n == null ? void 0 : n.kind) === I.NULL ? null : n;
|
|
4178
4178
|
}
|
|
4179
4179
|
if (t === null)
|
|
@@ -4187,7 +4187,7 @@ function Ei(t, e) {
|
|
|
4187
4187
|
if (au(t)) {
|
|
4188
4188
|
const i = [];
|
|
4189
4189
|
for (const r of t) {
|
|
4190
|
-
const s =
|
|
4190
|
+
const s = vi(r, n);
|
|
4191
4191
|
s != null && i.push(s);
|
|
4192
4192
|
}
|
|
4193
4193
|
return {
|
|
@@ -4195,14 +4195,14 @@ function Ei(t, e) {
|
|
|
4195
4195
|
values: i
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
return
|
|
4198
|
+
return vi(t, n);
|
|
4199
4199
|
}
|
|
4200
4200
|
if (ze(e)) {
|
|
4201
4201
|
if (!Ht(t))
|
|
4202
4202
|
return null;
|
|
4203
4203
|
const n = [];
|
|
4204
4204
|
for (const i of Object.values(e.getFields())) {
|
|
4205
|
-
const r =
|
|
4205
|
+
const r = vi(t[i.name], i.type);
|
|
4206
4206
|
r && n.push({
|
|
4207
4207
|
kind: I.OBJECT_FIELD,
|
|
4208
4208
|
name: {
|
|
@@ -4420,7 +4420,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4420
4420
|
return De.SCALAR;
|
|
4421
4421
|
if (pe(t))
|
|
4422
4422
|
return De.OBJECT;
|
|
4423
|
-
if (
|
|
4423
|
+
if (ve(t))
|
|
4424
4424
|
return De.INTERFACE;
|
|
4425
4425
|
if (Vt(t))
|
|
4426
4426
|
return De.UNION;
|
|
@@ -4459,7 +4459,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4459
4459
|
}
|
|
4460
4460
|
},
|
|
4461
4461
|
resolve(t, { includeDeprecated: e }) {
|
|
4462
|
-
if (pe(t) ||
|
|
4462
|
+
if (pe(t) || ve(t)) {
|
|
4463
4463
|
const n = Object.values(t.getFields());
|
|
4464
4464
|
return e ? n : n.filter((i) => i.deprecationReason == null);
|
|
4465
4465
|
}
|
|
@@ -4468,7 +4468,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4468
4468
|
interfaces: {
|
|
4469
4469
|
type: new Ue(new ne(Mt)),
|
|
4470
4470
|
resolve(t) {
|
|
4471
|
-
if (pe(t) ||
|
|
4471
|
+
if (pe(t) || ve(t))
|
|
4472
4472
|
return t.getInterfaces();
|
|
4473
4473
|
}
|
|
4474
4474
|
},
|
|
@@ -4580,7 +4580,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4580
4580
|
type: ue,
|
|
4581
4581
|
description: "A GraphQL-formatted string representing the default value for this input value.",
|
|
4582
4582
|
resolve(t) {
|
|
4583
|
-
const { type: e, defaultValue: n } = t, i =
|
|
4583
|
+
const { type: e, defaultValue: n } = t, i = vi(n, e);
|
|
4584
4584
|
return i ? be(i) : null;
|
|
4585
4585
|
}
|
|
4586
4586
|
},
|
|
@@ -4656,7 +4656,7 @@ const du = new ri({
|
|
|
4656
4656
|
description: "Indicates this type is a non-null. `ofType` is a valid field."
|
|
4657
4657
|
}
|
|
4658
4658
|
}
|
|
4659
|
-
}),
|
|
4659
|
+
}), vr = {
|
|
4660
4660
|
name: "__schema",
|
|
4661
4661
|
type: new ne(Bs),
|
|
4662
4662
|
description: "Access the current type schema of this server.",
|
|
@@ -4746,9 +4746,9 @@ class Gs {
|
|
|
4746
4746
|
throw new Error(
|
|
4747
4747
|
`Schema must contain uniquely named types but contains multiple types named "${o}".`
|
|
4748
4748
|
);
|
|
4749
|
-
if (this._typeMap[o] = s,
|
|
4749
|
+
if (this._typeMap[o] = s, ve(s)) {
|
|
4750
4750
|
for (const a of s.getInterfaces())
|
|
4751
|
-
if (
|
|
4751
|
+
if (ve(a)) {
|
|
4752
4752
|
let u = this._implementationsMap[a.name];
|
|
4753
4753
|
u === void 0 && (u = this._implementationsMap[a.name] = {
|
|
4754
4754
|
objects: [],
|
|
@@ -4757,7 +4757,7 @@ class Gs {
|
|
|
4757
4757
|
}
|
|
4758
4758
|
} else if (pe(s)) {
|
|
4759
4759
|
for (const a of s.getInterfaces())
|
|
4760
|
-
if (
|
|
4760
|
+
if (ve(a)) {
|
|
4761
4761
|
let u = this._implementationsMap[a.name];
|
|
4762
4762
|
u === void 0 && (u = this._implementationsMap[a.name] = {
|
|
4763
4763
|
objects: [],
|
|
@@ -4849,7 +4849,7 @@ function $t(t, e) {
|
|
|
4849
4849
|
if (e.add(n), Vt(n))
|
|
4850
4850
|
for (const i of n.getTypes())
|
|
4851
4851
|
$t(i, e);
|
|
4852
|
-
else if (pe(n) ||
|
|
4852
|
+
else if (pe(n) || ve(n)) {
|
|
4853
4853
|
for (const i of n.getInterfaces())
|
|
4854
4854
|
$t(i, e);
|
|
4855
4855
|
for (const i of Object.values(n.getFields())) {
|
|
@@ -4988,7 +4988,7 @@ function Gc(t) {
|
|
|
4988
4988
|
);
|
|
4989
4989
|
continue;
|
|
4990
4990
|
}
|
|
4991
|
-
pu(i) || Cn(t, i), pe(i) ||
|
|
4991
|
+
pu(i) || Cn(t, i), pe(i) || ve(i) ? (Co(t, i), ko(t, i)) : Vt(i) ? Qc(t, i) : Bt(i) ? Wc(t, i) : ze(i) && (Yc(t, i), e(i));
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
function Co(t, e) {
|
|
@@ -5030,7 +5030,7 @@ function Co(t, e) {
|
|
|
5030
5030
|
function ko(t, e) {
|
|
5031
5031
|
const n = /* @__PURE__ */ Object.create(null);
|
|
5032
5032
|
for (const i of e.getInterfaces()) {
|
|
5033
|
-
if (!
|
|
5033
|
+
if (!ve(i)) {
|
|
5034
5034
|
t.reportError(
|
|
5035
5035
|
`Type ${G(e)} must only implement Interface types, it cannot implement ${G(i)}.`,
|
|
5036
5036
|
xi(e, i)
|
|
@@ -5076,7 +5076,7 @@ function qc(t, e, n) {
|
|
|
5076
5076
|
);
|
|
5077
5077
|
}
|
|
5078
5078
|
for (const g of u.args) {
|
|
5079
|
-
const p = g.name, w = f.args.find((
|
|
5079
|
+
const p = g.name, w = f.args.find((E) => E.name === p);
|
|
5080
5080
|
if (!w) {
|
|
5081
5081
|
t.reportError(
|
|
5082
5082
|
`Interface field argument ${n.name}.${c}(${p}:) expected but ${e.name}.${c} does not provide it.`,
|
|
@@ -5097,7 +5097,7 @@ function qc(t, e, n) {
|
|
|
5097
5097
|
}
|
|
5098
5098
|
for (const g of f.args) {
|
|
5099
5099
|
const p = g.name;
|
|
5100
|
-
!u.args.find((
|
|
5100
|
+
!u.args.find((E) => E.name === p) && Pi(g) && t.reportError(
|
|
5101
5101
|
`Object field ${e.name}.${c} includes required argument ${p} that is missing from the Interface field ${n.name}.${c}.`,
|
|
5102
5102
|
[g.astNode, u.astNode]
|
|
5103
5103
|
);
|
|
@@ -5393,13 +5393,13 @@ class yu {
|
|
|
5393
5393
|
}
|
|
5394
5394
|
function Kc(t, e, n) {
|
|
5395
5395
|
const i = n.name.value;
|
|
5396
|
-
if (i ===
|
|
5397
|
-
return
|
|
5396
|
+
if (i === vr.name && t.getQueryType() === e)
|
|
5397
|
+
return vr;
|
|
5398
5398
|
if (i === wr.name && t.getQueryType() === e)
|
|
5399
5399
|
return wr;
|
|
5400
5400
|
if (i === Tr.name && bn(e))
|
|
5401
5401
|
return Tr;
|
|
5402
|
-
if (pe(e) ||
|
|
5402
|
+
if (pe(e) || ve(e))
|
|
5403
5403
|
return e.getFields()[i];
|
|
5404
5404
|
}
|
|
5405
5405
|
function bu(t, e) {
|
|
@@ -5407,14 +5407,14 @@ function bu(t, e) {
|
|
|
5407
5407
|
enter(...n) {
|
|
5408
5408
|
const i = n[0];
|
|
5409
5409
|
t.enter(i);
|
|
5410
|
-
const r =
|
|
5410
|
+
const r = Er(e, i.kind).enter;
|
|
5411
5411
|
if (r) {
|
|
5412
5412
|
const s = r.apply(e, n);
|
|
5413
5413
|
return s !== void 0 && (t.leave(i), us(s) && t.enter(s)), s;
|
|
5414
5414
|
}
|
|
5415
5415
|
},
|
|
5416
5416
|
leave(...n) {
|
|
5417
|
-
const i = n[0], r =
|
|
5417
|
+
const i = n[0], r = Er(e, i.kind).leave;
|
|
5418
5418
|
let s;
|
|
5419
5419
|
return r && (s = r.apply(e, n)), t.leave(i), s;
|
|
5420
5420
|
}
|
|
@@ -5430,9 +5430,9 @@ function zs(t) {
|
|
|
5430
5430
|
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;
|
|
5431
5431
|
}
|
|
5432
5432
|
function ef(t) {
|
|
5433
|
-
return t.kind === I.SCHEMA_EXTENSION ||
|
|
5433
|
+
return t.kind === I.SCHEMA_EXTENSION || Eu(t);
|
|
5434
5434
|
}
|
|
5435
|
-
function
|
|
5435
|
+
function Eu(t) {
|
|
5436
5436
|
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;
|
|
5437
5437
|
}
|
|
5438
5438
|
function tf(t) {
|
|
@@ -5487,11 +5487,11 @@ function rf(t, e, n) {
|
|
|
5487
5487
|
}
|
|
5488
5488
|
return [...i].sort((o, a) => {
|
|
5489
5489
|
const u = r[a.name] - r[o.name];
|
|
5490
|
-
return u !== 0 ? u :
|
|
5490
|
+
return u !== 0 ? u : ve(o) && t.isSubType(o, a) ? -1 : ve(a) && t.isSubType(a, o) ? 1 : $i(o.name, a.name);
|
|
5491
5491
|
}).map((o) => o.name);
|
|
5492
5492
|
}
|
|
5493
5493
|
function sf(t, e) {
|
|
5494
|
-
if (pe(t) ||
|
|
5494
|
+
if (pe(t) || ve(t)) {
|
|
5495
5495
|
const n = Object.keys(t.getFields());
|
|
5496
5496
|
return kn(e, n);
|
|
5497
5497
|
}
|
|
@@ -5701,13 +5701,13 @@ function hf(t) {
|
|
|
5701
5701
|
const p = (g = c[2]) !== null && g !== void 0 ? g : a, w = p != null && pf(p);
|
|
5702
5702
|
if (w && $o.includes(f))
|
|
5703
5703
|
return;
|
|
5704
|
-
const
|
|
5704
|
+
const E = kn(
|
|
5705
5705
|
f,
|
|
5706
5706
|
w ? $o.concat(r) : r
|
|
5707
5707
|
);
|
|
5708
5708
|
t.reportError(
|
|
5709
5709
|
new P(
|
|
5710
|
-
`Unknown type "${f}".` + mn(
|
|
5710
|
+
`Unknown type "${f}".` + mn(E),
|
|
5711
5711
|
{
|
|
5712
5712
|
nodes: s
|
|
5713
5713
|
}
|
|
@@ -5818,7 +5818,7 @@ function bf(t) {
|
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5821
|
+
function Ef(t) {
|
|
5822
5822
|
let e = /* @__PURE__ */ Object.create(null);
|
|
5823
5823
|
return {
|
|
5824
5824
|
OperationDefinition: {
|
|
@@ -5845,7 +5845,7 @@ function vf(t) {
|
|
|
5845
5845
|
}
|
|
5846
5846
|
};
|
|
5847
5847
|
}
|
|
5848
|
-
function
|
|
5848
|
+
function vf(t) {
|
|
5849
5849
|
const e = [], n = [];
|
|
5850
5850
|
return {
|
|
5851
5851
|
OperationDefinition(i) {
|
|
@@ -5927,9 +5927,9 @@ function Tf(t) {
|
|
|
5927
5927
|
(e, n) => $i(e.name.value, n.name.value)
|
|
5928
5928
|
);
|
|
5929
5929
|
}
|
|
5930
|
-
function
|
|
5930
|
+
function vu(t) {
|
|
5931
5931
|
return Array.isArray(t) ? t.map(
|
|
5932
|
-
([e, n]) => `subfields "${e}" conflict because ` +
|
|
5932
|
+
([e, n]) => `subfields "${e}" conflict because ` + vu(n)
|
|
5933
5933
|
).join(" and ") : t;
|
|
5934
5934
|
}
|
|
5935
5935
|
function Sf(t) {
|
|
@@ -5944,7 +5944,7 @@ function Sf(t) {
|
|
|
5944
5944
|
i
|
|
5945
5945
|
);
|
|
5946
5946
|
for (const [[s, o], a, u] of r) {
|
|
5947
|
-
const c =
|
|
5947
|
+
const c = vu(o);
|
|
5948
5948
|
t.reportError(
|
|
5949
5949
|
new P(
|
|
5950
5950
|
`Fields "${s}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,
|
|
@@ -6125,7 +6125,7 @@ function If(t, e, n, i, r, s, o, a) {
|
|
|
6125
6125
|
w
|
|
6126
6126
|
);
|
|
6127
6127
|
for (const w of f)
|
|
6128
|
-
for (const
|
|
6128
|
+
for (const E of p)
|
|
6129
6129
|
_r(
|
|
6130
6130
|
t,
|
|
6131
6131
|
u,
|
|
@@ -6133,7 +6133,7 @@ function If(t, e, n, i, r, s, o, a) {
|
|
|
6133
6133
|
n,
|
|
6134
6134
|
i,
|
|
6135
6135
|
w,
|
|
6136
|
-
|
|
6136
|
+
E
|
|
6137
6137
|
);
|
|
6138
6138
|
return u;
|
|
6139
6139
|
}
|
|
@@ -6191,12 +6191,12 @@ function wu(t, e, n, i, r, s, o) {
|
|
|
6191
6191
|
[g]
|
|
6192
6192
|
];
|
|
6193
6193
|
}
|
|
6194
|
-
const
|
|
6195
|
-
if (
|
|
6194
|
+
const E = c == null ? void 0 : c.type, R = p == null ? void 0 : p.type;
|
|
6195
|
+
if (E && R && hs(E, R))
|
|
6196
6196
|
return [
|
|
6197
6197
|
[
|
|
6198
6198
|
r,
|
|
6199
|
-
`they return conflicting types "${G(
|
|
6199
|
+
`they return conflicting types "${G(E)}" and "${G(
|
|
6200
6200
|
R
|
|
6201
6201
|
)}"`
|
|
6202
6202
|
],
|
|
@@ -6210,7 +6210,7 @@ function wu(t, e, n, i, r, s, o) {
|
|
|
6210
6210
|
e,
|
|
6211
6211
|
n,
|
|
6212
6212
|
w,
|
|
6213
|
-
jt(
|
|
6213
|
+
jt(E),
|
|
6214
6214
|
x,
|
|
6215
6215
|
jt(R),
|
|
6216
6216
|
y
|
|
@@ -6269,7 +6269,7 @@ function Tu(t, e, n, i, r) {
|
|
|
6269
6269
|
case I.FIELD: {
|
|
6270
6270
|
const o = s.name.value;
|
|
6271
6271
|
let a;
|
|
6272
|
-
(pe(e) ||
|
|
6272
|
+
(pe(e) || ve(e)) && (a = e.getFields()[o]);
|
|
6273
6273
|
const u = s.alias ? s.alias.value : o;
|
|
6274
6274
|
i[u] || (i[u] = []), i[u].push([e, s, a]);
|
|
6275
6275
|
break;
|
|
@@ -6410,9 +6410,9 @@ function Cf(t) {
|
|
|
6410
6410
|
if (c) {
|
|
6411
6411
|
var f;
|
|
6412
6412
|
const g = (f = a.arguments) !== null && f !== void 0 ? f : [], p = new Set(g.map((w) => w.name.value));
|
|
6413
|
-
for (const [w,
|
|
6413
|
+
for (const [w, E] of Object.entries(c))
|
|
6414
6414
|
if (!p.has(w)) {
|
|
6415
|
-
const R = js(
|
|
6415
|
+
const R = js(E.type) ? G(E.type) : be(E.type);
|
|
6416
6416
|
t.reportError(
|
|
6417
6417
|
new P(
|
|
6418
6418
|
`Directive "@${u}" argument "${w}" of type "${R}" is required, but it was not provided.`,
|
|
@@ -6691,20 +6691,20 @@ function Mf(t, e, n) {
|
|
|
6691
6691
|
const g = f.value;
|
|
6692
6692
|
let p = g.kind === I.NULL;
|
|
6693
6693
|
if (g.kind === I.VARIABLE) {
|
|
6694
|
-
const
|
|
6695
|
-
if (n == null || !Uf(n,
|
|
6694
|
+
const E = g.name.value;
|
|
6695
|
+
if (n == null || !Uf(n, E)) {
|
|
6696
6696
|
if (a.defaultValue !== void 0)
|
|
6697
6697
|
r[u] = a.defaultValue;
|
|
6698
6698
|
else if (re(c))
|
|
6699
6699
|
throw new P(
|
|
6700
|
-
`Argument "${u}" of required type "${G(c)}" was provided the variable "$${
|
|
6700
|
+
`Argument "${u}" of required type "${G(c)}" was provided the variable "$${E}" which was not provided a runtime value.`,
|
|
6701
6701
|
{
|
|
6702
6702
|
nodes: g
|
|
6703
6703
|
}
|
|
6704
6704
|
);
|
|
6705
6705
|
continue;
|
|
6706
6706
|
}
|
|
6707
|
-
p = n[
|
|
6707
|
+
p = n[E] == null;
|
|
6708
6708
|
}
|
|
6709
6709
|
if (p && re(c))
|
|
6710
6710
|
throw new P(
|
|
@@ -6900,7 +6900,7 @@ function zf(t) {
|
|
|
6900
6900
|
let u;
|
|
6901
6901
|
if (a.kind === I.SCHEMA_DEFINITION || a.kind === I.SCHEMA_EXTENSION)
|
|
6902
6902
|
u = s;
|
|
6903
|
-
else if (zs(a) ||
|
|
6903
|
+
else if (zs(a) || Eu(a)) {
|
|
6904
6904
|
const c = a.name.value;
|
|
6905
6905
|
u = o[c], u === void 0 && (o[c] = u = /* @__PURE__ */ Object.create(null));
|
|
6906
6906
|
} else
|
|
@@ -7237,11 +7237,11 @@ const td = Object.freeze([yf]), _u = Object.freeze([
|
|
|
7237
7237
|
nf,
|
|
7238
7238
|
Qf,
|
|
7239
7239
|
df,
|
|
7240
|
-
|
|
7240
|
+
vf,
|
|
7241
7241
|
Ff,
|
|
7242
7242
|
bf,
|
|
7243
7243
|
Hf,
|
|
7244
|
-
|
|
7244
|
+
Ef,
|
|
7245
7245
|
wf,
|
|
7246
7246
|
lf,
|
|
7247
7247
|
zf,
|
|
@@ -7492,7 +7492,7 @@ function ud(t) {
|
|
|
7492
7492
|
const w = p.toConfig();
|
|
7493
7493
|
return new nn({
|
|
7494
7494
|
...w,
|
|
7495
|
-
locations: Iu(w.locations, (
|
|
7495
|
+
locations: Iu(w.locations, (E) => E),
|
|
7496
7496
|
args: a(w.args)
|
|
7497
7497
|
});
|
|
7498
7498
|
}
|
|
@@ -7526,7 +7526,7 @@ function ud(t) {
|
|
|
7526
7526
|
fields: () => u(w.fields)
|
|
7527
7527
|
});
|
|
7528
7528
|
}
|
|
7529
|
-
if (
|
|
7529
|
+
if (ve(p)) {
|
|
7530
7530
|
const w = p.toConfig();
|
|
7531
7531
|
return new _n({
|
|
7532
7532
|
...w,
|
|
@@ -7545,7 +7545,7 @@ function ud(t) {
|
|
|
7545
7545
|
const w = p.toConfig();
|
|
7546
7546
|
return new ri({
|
|
7547
7547
|
...w,
|
|
7548
|
-
values: Hi(w.values, (
|
|
7548
|
+
values: Hi(w.values, (E) => E)
|
|
7549
7549
|
});
|
|
7550
7550
|
}
|
|
7551
7551
|
if (ze(p)) {
|
|
@@ -7787,7 +7787,7 @@ class Ou extends Ne {
|
|
|
7787
7787
|
super("Scalar", e), jn(this, "kind", "Scalar"), jn(this, "$inferType", void 0), jn(this, "$inferInput", void 0), jn(this, md, void 0), jn(this, yd, void 0), jn(this, bd, void 0);
|
|
7788
7788
|
}
|
|
7789
7789
|
}
|
|
7790
|
-
function
|
|
7790
|
+
function Ed(t, e, n) {
|
|
7791
7791
|
return e in t ? Object.defineProperty(t, e, {
|
|
7792
7792
|
value: n,
|
|
7793
7793
|
enumerable: !0,
|
|
@@ -7797,7 +7797,7 @@ function vd(t, e, n) {
|
|
|
7797
7797
|
}
|
|
7798
7798
|
class Nu extends Ou {
|
|
7799
7799
|
constructor(e) {
|
|
7800
|
-
super(e.name),
|
|
7800
|
+
super(e.name), Ed(this, "type", void 0), this.type = e;
|
|
7801
7801
|
}
|
|
7802
7802
|
}
|
|
7803
7803
|
function hi(t, e, n) {
|
|
@@ -7808,10 +7808,10 @@ function hi(t, e, n) {
|
|
|
7808
7808
|
writable: !0
|
|
7809
7809
|
}) : t[e] = n, t;
|
|
7810
7810
|
}
|
|
7811
|
-
let
|
|
7811
|
+
let vd = Gi;
|
|
7812
7812
|
class $r extends Ne {
|
|
7813
7813
|
constructor(e, n) {
|
|
7814
|
-
super("InputList", `InputList<${String(e)}>`), hi(this, "kind", "InputList"), hi(this,
|
|
7814
|
+
super("InputList", `InputList<${String(e)}>`), hi(this, "kind", "InputList"), hi(this, vd, void 0), hi(this, "$inferInput", void 0), hi(this, "listType", void 0), hi(this, "required", void 0), this.listType = e, this.required = n;
|
|
7815
7815
|
}
|
|
7816
7816
|
}
|
|
7817
7817
|
function Mn(t, e, n) {
|
|
@@ -8042,12 +8042,12 @@ class Ad {
|
|
|
8042
8042
|
const u = {
|
|
8043
8043
|
...a
|
|
8044
8044
|
}, c = /* @__PURE__ */ new Map();
|
|
8045
|
-
Object.keys(u.args).forEach((
|
|
8046
|
-
c.set(
|
|
8045
|
+
Object.keys(u.args).forEach((E) => {
|
|
8046
|
+
c.set(E, u.args[E]);
|
|
8047
8047
|
});
|
|
8048
8048
|
const f = this.buildInputFields(c), g = {};
|
|
8049
|
-
Object.keys(u.args).forEach((
|
|
8050
|
-
g[
|
|
8049
|
+
Object.keys(u.args).forEach((E) => {
|
|
8050
|
+
g[E] = this.inputFieldConfigs.get(u.args[E]);
|
|
8051
8051
|
}), u.args = g;
|
|
8052
8052
|
var i;
|
|
8053
8053
|
const p = this.plugin.wrapResolve((i = u.resolve) !== null && i !== void 0 ? i : lr, u), w = this.plugin.wrapSubscribe(u.subscribe, u);
|
|
@@ -8321,7 +8321,7 @@ class Cd extends Ne {
|
|
|
8321
8321
|
super(e, n), Ji(this, "kind", void 0), Ji(this, "$inferType", void 0), Ji(this, Rd, void 0), Ji(this, Ld, void 0), this.kind = e;
|
|
8322
8322
|
}
|
|
8323
8323
|
}
|
|
8324
|
-
function
|
|
8324
|
+
function Et(t, e, n) {
|
|
8325
8325
|
return e in t ? Object.defineProperty(t, e, {
|
|
8326
8326
|
value: n,
|
|
8327
8327
|
enumerable: !0,
|
|
@@ -8526,7 +8526,7 @@ class kd {
|
|
|
8526
8526
|
o.set(i, s), this.fieldRefsToConfigs.has(n) || this.fieldRefsToConfigs.set(n, []), this.fieldRefsToConfigs.get(n).push(s), this.fieldRefCallbacks.has(n) && this.fieldRefCallbacks.get(n).forEach((a) => void a(s));
|
|
8527
8527
|
}
|
|
8528
8528
|
constructor() {
|
|
8529
|
-
|
|
8529
|
+
Et(this, "typeConfigs", /* @__PURE__ */ new Map()), Et(this, "fieldRefs", /* @__PURE__ */ new WeakMap()), Et(this, "fields", /* @__PURE__ */ new Map()), Et(this, "pendingActions", []), Et(this, "refsToName", /* @__PURE__ */ new Map()), Et(this, "scalarsToRefs", /* @__PURE__ */ new Map()), Et(this, "fieldRefsToConfigs", /* @__PURE__ */ new Map()), Et(this, "pendingFields", /* @__PURE__ */ new Map()), Et(this, "pendingRefResolutions", /* @__PURE__ */ new Map()), Et(this, "fieldRefCallbacks", /* @__PURE__ */ new Map()), Et(this, "pending", !0), [
|
|
8530
8530
|
Mi,
|
|
8531
8531
|
ji,
|
|
8532
8532
|
kr,
|
|
@@ -8570,7 +8570,7 @@ function Ze(t, e, n) {
|
|
|
8570
8570
|
writable: !0
|
|
8571
8571
|
}) : t[e] = n, t;
|
|
8572
8572
|
}
|
|
8573
|
-
class
|
|
8573
|
+
class Es {
|
|
8574
8574
|
argBuilder() {
|
|
8575
8575
|
const e = this.field.bind(this), n = Object.keys(Object.getPrototypeOf(this)).filter((i) => typeof this[i] == "function" && Function.prototype[i] === void 0);
|
|
8576
8576
|
return [
|
|
@@ -8662,8 +8662,8 @@ class Md {
|
|
|
8662
8662
|
var a;
|
|
8663
8663
|
const u = {};
|
|
8664
8664
|
e.args && Object.keys(e.args).forEach((w) => {
|
|
8665
|
-
const
|
|
8666
|
-
u[w] = this.builder.configStore.createFieldConfig(
|
|
8665
|
+
const E = e.args[w];
|
|
8666
|
+
u[w] = this.builder.configStore.createFieldConfig(E, w, o, r, "Arg");
|
|
8667
8667
|
});
|
|
8668
8668
|
var c;
|
|
8669
8669
|
let f = (c = e.resolve) !== null && c !== void 0 ? c : () => {
|
|
@@ -8857,7 +8857,7 @@ class jr extends Md {
|
|
|
8857
8857
|
return new Pr(e, (i = n == null ? void 0 : n.nullable) !== null && i !== void 0 ? i : !1);
|
|
8858
8858
|
}
|
|
8859
8859
|
constructor(...e) {
|
|
8860
|
-
super(...e), Ud(this, "arg", new
|
|
8860
|
+
super(...e), Ud(this, "arg", new Es(this.builder, "Arg", this.typename).argBuilder());
|
|
8861
8861
|
}
|
|
8862
8862
|
}
|
|
8863
8863
|
class Au extends jr {
|
|
@@ -9093,12 +9093,12 @@ function Si(t, e, n) {
|
|
|
9093
9093
|
}) : t[e] = n, t;
|
|
9094
9094
|
}
|
|
9095
9095
|
let Hd = $n, Jd = li;
|
|
9096
|
-
class
|
|
9096
|
+
class vs extends Ne {
|
|
9097
9097
|
constructor(e) {
|
|
9098
9098
|
super("Object", e), Si(this, "kind", "Object"), Si(this, "$inferType", void 0), Si(this, Hd, void 0), Si(this, Jd, void 0);
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
|
-
class Kd extends
|
|
9101
|
+
class Kd extends vs {
|
|
9102
9102
|
implement(e) {
|
|
9103
9103
|
return this.builder.objectType(this, e);
|
|
9104
9104
|
}
|
|
@@ -9140,7 +9140,7 @@ let Hs = class {
|
|
|
9140
9140
|
const s = typeof e == "string" ? e : (r = n.name) !== null && r !== void 0 ? r : e.name;
|
|
9141
9141
|
if (s === "Query" || s === "Mutation" || s === "Subscription")
|
|
9142
9142
|
throw new ie(`Invalid object name ${s} use .create${s}Type() instead`);
|
|
9143
|
-
const o = e instanceof Ne ? e : new
|
|
9143
|
+
const o = e instanceof Ne ? e : new vs(s), a = {
|
|
9144
9144
|
kind: "Object",
|
|
9145
9145
|
graphqlKind: "Object",
|
|
9146
9146
|
name: s,
|
|
@@ -9175,7 +9175,7 @@ let Hs = class {
|
|
|
9175
9175
|
description: n.description,
|
|
9176
9176
|
pothosOptions: n,
|
|
9177
9177
|
extensions: n.extensions
|
|
9178
|
-
}, s = new
|
|
9178
|
+
}, s = new vs("Query");
|
|
9179
9179
|
return this.configStore.addTypeConfig(r, s), i && this.configStore.addFields("Query", () => i(new tr(this))), n.fields && this.configStore.addFields("Query", () => n.fields(new tr(this))), s;
|
|
9180
9180
|
}
|
|
9181
9181
|
queryFields(e) {
|
|
@@ -9225,7 +9225,7 @@ let Hs = class {
|
|
|
9225
9225
|
}));
|
|
9226
9226
|
}
|
|
9227
9227
|
args(e) {
|
|
9228
|
-
return e(new
|
|
9228
|
+
return e(new Es(this, "Arg", "[unknown]"));
|
|
9229
9229
|
}
|
|
9230
9230
|
interfaceType(e, n, i) {
|
|
9231
9231
|
Xt(e), Go(n.interfaces);
|
|
@@ -9324,7 +9324,7 @@ let Hs = class {
|
|
|
9324
9324
|
pothosOptions: n,
|
|
9325
9325
|
extensions: n.extensions
|
|
9326
9326
|
};
|
|
9327
|
-
return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new
|
|
9327
|
+
return this.configStore.addTypeConfig(s, r), this.configStore.addFields(r, () => n.fields(new Es(this, "InputObject", i))), r;
|
|
9328
9328
|
}
|
|
9329
9329
|
inputRef(e) {
|
|
9330
9330
|
return new zd(this, e);
|
|
@@ -11602,7 +11602,7 @@ function bh(t) {
|
|
|
11602
11602
|
function X(t, e) {
|
|
11603
11603
|
return e != null && e.originalError && !(e.originalError instanceof Error) && bh(e.originalError) && (e.originalError = X(e.originalError.message, e.originalError)), ja.major >= 17 ? new P(t, e) : new P(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);
|
|
11604
11604
|
}
|
|
11605
|
-
function
|
|
11605
|
+
function Eh(t) {
|
|
11606
11606
|
return t != null && typeof t == "object" && Symbol.iterator in t;
|
|
11607
11607
|
}
|
|
11608
11608
|
function Cu(t) {
|
|
@@ -11611,7 +11611,7 @@ function Cu(t) {
|
|
|
11611
11611
|
function Ae(t) {
|
|
11612
11612
|
return (t == null ? void 0 : t.then) != null;
|
|
11613
11613
|
}
|
|
11614
|
-
function
|
|
11614
|
+
function vh(t, e, n) {
|
|
11615
11615
|
let i = n;
|
|
11616
11616
|
for (const r of t)
|
|
11617
11617
|
i = Ae(i) ? i.then((s) => e(s, r)) : e(i, r);
|
|
@@ -11708,10 +11708,10 @@ function Th(t) {
|
|
|
11708
11708
|
u = /* @__PURE__ */ new WeakMap(), e.set(i, u);
|
|
11709
11709
|
const w = /* @__PURE__ */ new WeakMap();
|
|
11710
11710
|
u.set(r, w);
|
|
11711
|
-
const
|
|
11712
|
-
w.set(s,
|
|
11711
|
+
const E = /* @__PURE__ */ new WeakMap();
|
|
11712
|
+
w.set(s, E);
|
|
11713
11713
|
const R = /* @__PURE__ */ new WeakMap();
|
|
11714
|
-
|
|
11714
|
+
E.set(o, R);
|
|
11715
11715
|
const x = t(i, r, s, o, a);
|
|
11716
11716
|
return R.set(a, x), x;
|
|
11717
11717
|
}
|
|
@@ -11720,18 +11720,18 @@ function Th(t) {
|
|
|
11720
11720
|
c = /* @__PURE__ */ new WeakMap(), u.set(r, c);
|
|
11721
11721
|
const w = /* @__PURE__ */ new WeakMap();
|
|
11722
11722
|
c.set(s, w);
|
|
11723
|
-
const
|
|
11724
|
-
w.set(o,
|
|
11723
|
+
const E = /* @__PURE__ */ new WeakMap();
|
|
11724
|
+
w.set(o, E);
|
|
11725
11725
|
const R = t(i, r, s, o, a);
|
|
11726
|
-
return
|
|
11726
|
+
return E.set(a, R), R;
|
|
11727
11727
|
}
|
|
11728
11728
|
let f = c.get(s);
|
|
11729
11729
|
if (!f) {
|
|
11730
11730
|
f = /* @__PURE__ */ new WeakMap(), c.set(s, f);
|
|
11731
11731
|
const w = /* @__PURE__ */ new WeakMap();
|
|
11732
11732
|
f.set(o, w);
|
|
11733
|
-
const
|
|
11734
|
-
return w.set(a,
|
|
11733
|
+
const E = t(i, r, s, o, a);
|
|
11734
|
+
return w.set(a, E), E;
|
|
11735
11735
|
}
|
|
11736
11736
|
let g = f.get(o);
|
|
11737
11737
|
if (!g) {
|
|
@@ -12013,13 +12013,13 @@ function Lh(t) {
|
|
|
12013
12013
|
return Array.isArray(t) && t.length > 0 && // if one item in the array is a GraphQLError, we're good
|
|
12014
12014
|
t.some(oi);
|
|
12015
12015
|
}
|
|
12016
|
-
const
|
|
12016
|
+
const En = {
|
|
12017
12017
|
red: "\x1B[31m",
|
|
12018
12018
|
yellow: "\x1B[33m",
|
|
12019
12019
|
magenta: "\x1B[35m",
|
|
12020
12020
|
cyan: "\x1B[36m",
|
|
12021
12021
|
reset: "\x1B[0m"
|
|
12022
|
-
}, Xo =
|
|
12022
|
+
}, Xo = En.yellow + "WARN" + En.reset, Zo = En.cyan + "INFO" + En.reset, ea = En.red + "ERR" + En.reset, ta = En.magenta + "DEBUG" + En.reset, mi = {
|
|
12023
12023
|
debug: 0,
|
|
12024
12024
|
info: 1,
|
|
12025
12025
|
warn: 2,
|
|
@@ -12368,16 +12368,16 @@ function Bu(t) {
|
|
|
12368
12368
|
}
|
|
12369
12369
|
if (p == null)
|
|
12370
12370
|
return o != null ? [X(`Unknown operation named "${o}".`)] : [X("Must provide an operation.")];
|
|
12371
|
-
const w = p.variableDefinitions ?? [],
|
|
12371
|
+
const w = p.variableDefinitions ?? [], E = zh(e, w, s ?? {}, {
|
|
12372
12372
|
maxErrors: 50
|
|
12373
12373
|
});
|
|
12374
|
-
return
|
|
12374
|
+
return E.errors ? E.errors : {
|
|
12375
12375
|
schema: e,
|
|
12376
12376
|
fragments: g,
|
|
12377
12377
|
rootValue: i,
|
|
12378
12378
|
contextValue: r,
|
|
12379
12379
|
operation: p,
|
|
12380
|
-
variableValues:
|
|
12380
|
+
variableValues: E.coerced,
|
|
12381
12381
|
fieldResolver: a ?? ua,
|
|
12382
12382
|
typeResolver: u ?? rp,
|
|
12383
12383
|
subscribeFieldResolver: c ?? ua,
|
|
@@ -12409,7 +12409,7 @@ function Kh(t) {
|
|
|
12409
12409
|
return f;
|
|
12410
12410
|
}
|
|
12411
12411
|
function Xh(t, e, n, i, r) {
|
|
12412
|
-
return
|
|
12412
|
+
return vh(r, (s, [o, a]) => {
|
|
12413
12413
|
var c;
|
|
12414
12414
|
const u = ci(i, o, e.name);
|
|
12415
12415
|
if ((c = t.signal) != null && c.aborted)
|
|
@@ -12444,8 +12444,8 @@ function Gu(t, e, n, i, r, s) {
|
|
|
12444
12444
|
const u = a.type, c = a.resolve ?? t.fieldResolver, f = qu(t, a, i, e, r);
|
|
12445
12445
|
try {
|
|
12446
12446
|
const g = Du(a, i[0], t.variableValues), p = t.contextValue, w = c(n, g, p, f);
|
|
12447
|
-
let
|
|
12448
|
-
return Ae(w) ?
|
|
12447
|
+
let E;
|
|
12448
|
+
return Ae(w) ? E = w.then((R) => vn(t, u, i, f, r, R, s)) : E = vn(t, u, i, f, r, w, s), Ae(E) ? E.then(void 0, (R) => {
|
|
12449
12449
|
if (R instanceof AggregateError)
|
|
12450
12450
|
return new AggregateError(R.errors.map((S) => {
|
|
12451
12451
|
S = Qt(S);
|
|
@@ -12455,15 +12455,15 @@ function Gu(t, e, n, i, r, s) {
|
|
|
12455
12455
|
R = Qt(R);
|
|
12456
12456
|
const x = tt(R, i, Ve(r)), y = gt(x, u, o);
|
|
12457
12457
|
return dt(t, r, s), y;
|
|
12458
|
-
}) :
|
|
12458
|
+
}) : E;
|
|
12459
12459
|
} catch (g) {
|
|
12460
12460
|
if (g instanceof AggregateError)
|
|
12461
12461
|
return new AggregateError(g.errors.map((R) => {
|
|
12462
12462
|
const x = Qt(R), y = tt(x, i, Ve(r));
|
|
12463
12463
|
return gt(y, u, o);
|
|
12464
12464
|
}));
|
|
12465
|
-
const p = Qt(g), w = tt(p, i, Ve(r)),
|
|
12466
|
-
return dt(t, r, s),
|
|
12465
|
+
const p = Qt(g), w = tt(p, i, Ve(r)), E = gt(w, u, o);
|
|
12466
|
+
return dt(t, r, s), E;
|
|
12467
12467
|
}
|
|
12468
12468
|
}
|
|
12469
12469
|
function qu(t, e, n, i, r) {
|
|
@@ -12487,11 +12487,11 @@ function gt(t, e, n) {
|
|
|
12487
12487
|
throw t;
|
|
12488
12488
|
return n.push(t), null;
|
|
12489
12489
|
}
|
|
12490
|
-
function
|
|
12490
|
+
function vn(t, e, n, i, r, s, o) {
|
|
12491
12491
|
if (s instanceof Error)
|
|
12492
12492
|
throw s;
|
|
12493
12493
|
if (re(e)) {
|
|
12494
|
-
const a =
|
|
12494
|
+
const a = vn(t, e.ofType, n, i, r, s, o);
|
|
12495
12495
|
if (a === null)
|
|
12496
12496
|
throw new Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);
|
|
12497
12497
|
return a;
|
|
@@ -12534,45 +12534,45 @@ async function ep(t, e, n, i, r, s, o) {
|
|
|
12534
12534
|
break;
|
|
12535
12535
|
}
|
|
12536
12536
|
const w = ci(r, g, void 0);
|
|
12537
|
-
let
|
|
12537
|
+
let E;
|
|
12538
12538
|
try {
|
|
12539
|
-
if (
|
|
12539
|
+
if (E = await s.next(), E.done)
|
|
12540
12540
|
break;
|
|
12541
12541
|
} catch (R) {
|
|
12542
12542
|
const x = Qt(R), y = tt(x, n, Ve(w));
|
|
12543
12543
|
f.push(gt(y, e, a));
|
|
12544
12544
|
break;
|
|
12545
12545
|
}
|
|
12546
|
-
Qu(
|
|
12546
|
+
Qu(E.value, f, a, t, e, n, i, w, o) && (c = !0), g += 1;
|
|
12547
12547
|
}
|
|
12548
12548
|
return c ? Promise.all(f) : f;
|
|
12549
12549
|
}
|
|
12550
12550
|
function tp(t, e, n, i, r, s, o) {
|
|
12551
12551
|
const a = e.ofType, u = (o == null ? void 0 : o.errors) ?? t.errors;
|
|
12552
12552
|
if (Ur(s)) {
|
|
12553
|
-
const
|
|
12554
|
-
return ep(t, a, n, i, r,
|
|
12553
|
+
const E = s[Symbol.asyncIterator]();
|
|
12554
|
+
return ep(t, a, n, i, r, E, o);
|
|
12555
12555
|
}
|
|
12556
|
-
if (!
|
|
12556
|
+
if (!Eh(s))
|
|
12557
12557
|
throw X(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);
|
|
12558
12558
|
const c = zu(t, n, r);
|
|
12559
12559
|
let f = !1, g = o;
|
|
12560
12560
|
const p = [];
|
|
12561
12561
|
let w = 0;
|
|
12562
|
-
for (const
|
|
12562
|
+
for (const E of s) {
|
|
12563
12563
|
const R = ci(r, w, void 0);
|
|
12564
12564
|
if (c && typeof c.initialCount == "number" && w >= c.initialCount) {
|
|
12565
|
-
g = lp(r, R,
|
|
12565
|
+
g = lp(r, R, E, t, n, i, a, c.label, g), w++;
|
|
12566
12566
|
continue;
|
|
12567
12567
|
}
|
|
12568
|
-
Qu(
|
|
12568
|
+
Qu(E, p, u, t, a, n, i, R, o) && (f = !0), w++;
|
|
12569
12569
|
}
|
|
12570
12570
|
return f ? Promise.all(p) : p;
|
|
12571
12571
|
}
|
|
12572
12572
|
function Qu(t, e, n, i, r, s, o, a, u) {
|
|
12573
12573
|
try {
|
|
12574
12574
|
let c;
|
|
12575
|
-
if (Ae(t) ? c = t.then((f) =>
|
|
12575
|
+
if (Ae(t) ? c = t.then((f) => vn(i, r, s, o, a, f, u)) : c = vn(i, r, s, o, a, t, u), Ae(c))
|
|
12576
12576
|
return e.push(c.then(void 0, (f) => {
|
|
12577
12577
|
f = Qt(f);
|
|
12578
12578
|
const g = tt(f, s, Ve(a)), p = gt(g, r, n);
|
|
@@ -12751,12 +12751,12 @@ function up(t) {
|
|
|
12751
12751
|
});
|
|
12752
12752
|
const p = ci(void 0, u, o.name), w = qu(t, g, c, o, p);
|
|
12753
12753
|
try {
|
|
12754
|
-
const
|
|
12754
|
+
const E = Du(g, c[0], r), R = t.contextValue, y = (g.subscribe ?? t.subscribeFieldResolver)(s, E, R, w);
|
|
12755
12755
|
return Ae(y) ? y.then(fa).then(void 0, (S) => {
|
|
12756
12756
|
throw tt(S, c, Ve(p));
|
|
12757
12757
|
}) : fa(y, t.signal);
|
|
12758
|
-
} catch (
|
|
12759
|
-
throw tt(
|
|
12758
|
+
} catch (E) {
|
|
12759
|
+
throw tt(E, c, Ve(p));
|
|
12760
12760
|
}
|
|
12761
12761
|
}
|
|
12762
12762
|
function fa(t, e) {
|
|
@@ -12799,14 +12799,14 @@ function lp(t, e, n, i, r, s, o, a, u) {
|
|
|
12799
12799
|
let f;
|
|
12800
12800
|
try {
|
|
12801
12801
|
try {
|
|
12802
|
-
Ae(n) ? f = n.then((p) =>
|
|
12802
|
+
Ae(n) ? f = n.then((p) => vn(i, o, r, s, e, p, c)) : f = vn(i, o, r, s, e, n, c), Ae(f) && (f = f.then(void 0, (p) => {
|
|
12803
12803
|
p = Qt(p);
|
|
12804
|
-
const w = tt(p, r, Ve(e)),
|
|
12805
|
-
return dt(i, e, c),
|
|
12804
|
+
const w = tt(p, r, Ve(e)), E = gt(w, o, c.errors);
|
|
12805
|
+
return dt(i, e, c), E;
|
|
12806
12806
|
}));
|
|
12807
12807
|
} catch (p) {
|
|
12808
|
-
const w = Qt(p),
|
|
12809
|
-
f = gt(
|
|
12808
|
+
const w = Qt(p), E = tt(w, r, Ve(e));
|
|
12809
|
+
f = gt(E, o, c.errors), dt(i, e, c);
|
|
12810
12810
|
}
|
|
12811
12811
|
} catch (p) {
|
|
12812
12812
|
return c.errors.push(p), dt(i, t, c), c.addItems(null), c;
|
|
@@ -12827,7 +12827,7 @@ async function cp(t, e, n, i, r, s, o) {
|
|
|
12827
12827
|
}
|
|
12828
12828
|
let u;
|
|
12829
12829
|
try {
|
|
12830
|
-
return u =
|
|
12830
|
+
return u = vn(e, r, n, i, o, a, s), Ae(u) && (u = u.then(void 0, (c) => {
|
|
12831
12831
|
const f = tt(c, n, Ve(o)), g = gt(f, r, s.errors);
|
|
12832
12832
|
return dt(e, o, s), g;
|
|
12833
12833
|
})), { done: !1, value: u };
|
|
@@ -12854,9 +12854,9 @@ async function fp(t, e, n, i, r, s, o, a, u) {
|
|
|
12854
12854
|
});
|
|
12855
12855
|
return;
|
|
12856
12856
|
}
|
|
12857
|
-
const { done:
|
|
12857
|
+
const { done: E, value: R } = w;
|
|
12858
12858
|
let x;
|
|
12859
|
-
if (Ae(R) ? x = R.then((y) => [y], (y) => (p.errors.push(y), dt(n, o, p), null)) : x = [R], p.addItems(x),
|
|
12859
|
+
if (Ae(R) ? x = R.then((y) => [y], (y) => (p.errors.push(y), dt(n, o, p), null)) : x = [R], p.addItems(x), E)
|
|
12860
12860
|
break;
|
|
12861
12861
|
f = p, c++;
|
|
12862
12862
|
}
|
|
@@ -13006,7 +13006,7 @@ function eo(t) {
|
|
|
13006
13006
|
}
|
|
13007
13007
|
function Ju(t, e, n) {
|
|
13008
13008
|
const i = n.name.value;
|
|
13009
|
-
return i ===
|
|
13009
|
+
return i === vr.name && t.getQueryType() === e ? vr : i === wr.name && t.getQueryType() === e ? wr : i === Tr.name ? Tr : e.getFields()[i];
|
|
13010
13010
|
}
|
|
13011
13011
|
function da(t) {
|
|
13012
13012
|
const e = Ys(t.document, t.operationName);
|
|
@@ -13017,15 +13017,15 @@ function da(t) {
|
|
|
13017
13017
|
function gp(t) {
|
|
13018
13018
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
13019
13019
|
}
|
|
13020
|
-
var
|
|
13020
|
+
var Ee = {}, mp = Ee.fetch = globalThis.fetch, yp = Ee.Headers = globalThis.Headers, bp = Ee.Request = globalThis.Request, Ku = Ee.Response = globalThis.Response, Ep = Ee.FormData = globalThis.FormData, vp = Ee.ReadableStream = globalThis.ReadableStream, wp = Ee.WritableStream = globalThis.WritableStream, Tp = Ee.TransformStream = globalThis.TransformStream, Sp = Ee.CompressionStream = globalThis.CompressionStream, _p = Ee.DecompressionStream = globalThis.DecompressionStream, Ip = Ee.Blob = globalThis.Blob, Op = Ee.File = globalThis.File, Np = Ee.crypto = globalThis.crypto, Ap = Ee.btoa = globalThis.btoa, xp = Ee.TextEncoder = globalThis.TextEncoder, Fp = Ee.TextDecoder = globalThis.TextDecoder, Rp = Ee.URLPattern = globalThis.URLPattern, Xu = Ee.URL = globalThis.URL, to = Ee.URLSearchParams = globalThis.URLSearchParams, Lp = Ee.createFetch = () => globalThis, Zu = /* @__PURE__ */ Sl({
|
|
13021
13021
|
__proto__: null,
|
|
13022
13022
|
Blob: Ip,
|
|
13023
13023
|
CompressionStream: Sp,
|
|
13024
13024
|
DecompressionStream: _p,
|
|
13025
13025
|
File: Op,
|
|
13026
|
-
FormData:
|
|
13026
|
+
FormData: Ep,
|
|
13027
13027
|
Headers: yp,
|
|
13028
|
-
ReadableStream:
|
|
13028
|
+
ReadableStream: vp,
|
|
13029
13029
|
Request: bp,
|
|
13030
13030
|
Response: Ku,
|
|
13031
13031
|
TextDecoder: Fp,
|
|
@@ -13038,9 +13038,9 @@ var ve = {}, mp = ve.fetch = globalThis.fetch, yp = ve.Headers = globalThis.Head
|
|
|
13038
13038
|
btoa: Ap,
|
|
13039
13039
|
createFetch: Lp,
|
|
13040
13040
|
crypto: Np,
|
|
13041
|
-
default:
|
|
13041
|
+
default: Ee,
|
|
13042
13042
|
fetch: mp
|
|
13043
|
-
}, [
|
|
13043
|
+
}, [Ee]);
|
|
13044
13044
|
function el(t) {
|
|
13045
13045
|
return t != null && typeof t == "object" && typeof t[Symbol.asyncIterator] == "function";
|
|
13046
13046
|
}
|
|
@@ -13122,8 +13122,8 @@ function Pp(t, e) {
|
|
|
13122
13122
|
if (e !== globalThis.Request)
|
|
13123
13123
|
r = new tl(), p = () => r.sendAbort();
|
|
13124
13124
|
else {
|
|
13125
|
-
const
|
|
13126
|
-
r =
|
|
13125
|
+
const E = new AbortController();
|
|
13126
|
+
r = E.signal, p = () => E.abort();
|
|
13127
13127
|
}
|
|
13128
13128
|
const w = () => {
|
|
13129
13129
|
r && !r.aborted && (n.aborted = !0, p());
|
|
@@ -13153,14 +13153,14 @@ function Pp(t, e) {
|
|
|
13153
13153
|
signal: r
|
|
13154
13154
|
});
|
|
13155
13155
|
return (c = p.headers.get("content-type")) != null && c.includes("json") || p.headers.set("content-type", "application/json; charset=utf-8"), new Proxy(p, {
|
|
13156
|
-
get: (w,
|
|
13157
|
-
switch (
|
|
13156
|
+
get: (w, E, R) => {
|
|
13157
|
+
switch (E) {
|
|
13158
13158
|
case "json":
|
|
13159
13159
|
return async () => a;
|
|
13160
13160
|
case "text":
|
|
13161
13161
|
return async () => JSON.stringify(a);
|
|
13162
13162
|
default:
|
|
13163
|
-
return Reflect.get(w,
|
|
13163
|
+
return Reflect.get(w, E, R);
|
|
13164
13164
|
}
|
|
13165
13165
|
}
|
|
13166
13166
|
});
|
|
@@ -13415,8 +13415,8 @@ function zp({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
|
13415
13415
|
i.addEventListener("abort", () => {
|
|
13416
13416
|
g || (g = !0, c.close());
|
|
13417
13417
|
}), e.onData(function(p, w) {
|
|
13418
|
-
const
|
|
13419
|
-
c.enqueue(Buffer.from(
|
|
13418
|
+
const E = Buffer.from(p, 0, p.byteLength);
|
|
13419
|
+
c.enqueue(Buffer.from(E)), w && (g = !0, c.close());
|
|
13420
13420
|
});
|
|
13421
13421
|
}
|
|
13422
13422
|
}
|
|
@@ -13448,7 +13448,7 @@ async function Qp(t, e, n) {
|
|
|
13448
13448
|
t.end();
|
|
13449
13449
|
});
|
|
13450
13450
|
}
|
|
13451
|
-
function
|
|
13451
|
+
function Ea(t, e, n) {
|
|
13452
13452
|
if (!e) {
|
|
13453
13453
|
t.writeStatus("404 Not Found"), t.end();
|
|
13454
13454
|
return;
|
|
@@ -13608,14 +13608,14 @@ function Jp(t, e) {
|
|
|
13608
13608
|
if (hn(J))
|
|
13609
13609
|
return J.catch((q) => or(q, n.Response)).then((q) => {
|
|
13610
13610
|
if (!m.aborted && !d)
|
|
13611
|
-
return
|
|
13611
|
+
return Ea(y, q, m);
|
|
13612
13612
|
}).catch((q) => {
|
|
13613
13613
|
console.error(`Unexpected error while handling request:
|
|
13614
13614
|
${q.stack || q.message || q}`);
|
|
13615
13615
|
});
|
|
13616
13616
|
try {
|
|
13617
13617
|
if (!m.aborted && !d)
|
|
13618
|
-
return
|
|
13618
|
+
return Ea(y, J, m);
|
|
13619
13619
|
} catch (q) {
|
|
13620
13620
|
console.error(`Unexpected error while handling request:
|
|
13621
13621
|
${q.stack || q.message || q}`);
|
|
@@ -13645,7 +13645,7 @@ ${q.stack || q.message || q}`);
|
|
|
13645
13645
|
}
|
|
13646
13646
|
const A = p(y, ...S);
|
|
13647
13647
|
return ba(A, y._signal);
|
|
13648
|
-
},
|
|
13648
|
+
}, E = (y, ...S) => {
|
|
13649
13649
|
const [A, ...O] = S;
|
|
13650
13650
|
if (jp(y)) {
|
|
13651
13651
|
if (!pa(A))
|
|
@@ -13665,17 +13665,17 @@ ${q.stack || q.message || q}`);
|
|
|
13665
13665
|
requestListener: c,
|
|
13666
13666
|
handleEvent: g,
|
|
13667
13667
|
handleUWS: f,
|
|
13668
|
-
handle:
|
|
13669
|
-
}, x = new Proxy(
|
|
13668
|
+
handle: E
|
|
13669
|
+
}, x = new Proxy(E, {
|
|
13670
13670
|
// It should have all the attributes of the handler function and the server instance
|
|
13671
|
-
has: (y, S) => S in R || S in
|
|
13671
|
+
has: (y, S) => S in R || S in E || t && S in t,
|
|
13672
13672
|
get: (y, S) => {
|
|
13673
13673
|
const A = R[S];
|
|
13674
13674
|
if (A)
|
|
13675
13675
|
return A.bind ? A.bind(R) : A;
|
|
13676
|
-
const O =
|
|
13676
|
+
const O = E[S];
|
|
13677
13677
|
if (O)
|
|
13678
|
-
return O.bind ? O.bind(
|
|
13678
|
+
return O.bind ? O.bind(E) : O;
|
|
13679
13679
|
if (t) {
|
|
13680
13680
|
const C = t[S];
|
|
13681
13681
|
if (C)
|
|
@@ -13686,7 +13686,7 @@ ${q.stack || q.message || q}`);
|
|
|
13686
13686
|
}
|
|
13687
13687
|
},
|
|
13688
13688
|
apply(y, S, A) {
|
|
13689
|
-
return
|
|
13689
|
+
return E(...A);
|
|
13690
13690
|
}
|
|
13691
13691
|
});
|
|
13692
13692
|
return x;
|
|
@@ -14003,13 +14003,13 @@ function _i(t) {
|
|
|
14003
14003
|
function bg(t) {
|
|
14004
14004
|
return _i(t) === "object";
|
|
14005
14005
|
}
|
|
14006
|
-
function
|
|
14006
|
+
function Eg(t) {
|
|
14007
14007
|
return t === "GET" || t === "POST";
|
|
14008
14008
|
}
|
|
14009
|
-
function
|
|
14009
|
+
function vg() {
|
|
14010
14010
|
return {
|
|
14011
14011
|
onRequestParse({ request: t }) {
|
|
14012
|
-
if (!
|
|
14012
|
+
if (!Eg(t.method))
|
|
14013
14013
|
throw X("GraphQL only supports GET and POST requests.", {
|
|
14014
14014
|
extensions: {
|
|
14015
14015
|
http: {
|
|
@@ -14129,10 +14129,10 @@ function Ig({ id: t = Date.now().toString(), logger: e = console, endpoint: n =
|
|
|
14129
14129
|
const Vn = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, il = /* @__PURE__ */ new Set(), _s = typeof process == "object" && process ? process : {}, rl = (t, e, n, i) => {
|
|
14130
14130
|
typeof _s.emitWarning == "function" ? _s.emitWarning(t, e, n, i) : console.error(`[${n}] ${e}: ${t}`);
|
|
14131
14131
|
};
|
|
14132
|
-
let Ar = globalThis.AbortController,
|
|
14132
|
+
let Ar = globalThis.AbortController, va = globalThis.AbortSignal;
|
|
14133
14133
|
var Ra;
|
|
14134
14134
|
if (typeof Ar > "u") {
|
|
14135
|
-
|
|
14135
|
+
va = class {
|
|
14136
14136
|
constructor() {
|
|
14137
14137
|
U(this, "onabort");
|
|
14138
14138
|
U(this, "_onabort", []);
|
|
@@ -14144,7 +14144,7 @@ if (typeof Ar > "u") {
|
|
|
14144
14144
|
}
|
|
14145
14145
|
}, Ar = class {
|
|
14146
14146
|
constructor() {
|
|
14147
|
-
U(this, "signal", new
|
|
14147
|
+
U(this, "signal", new va());
|
|
14148
14148
|
e();
|
|
14149
14149
|
}
|
|
14150
14150
|
abort(i) {
|
|
@@ -14193,12 +14193,12 @@ let Ng = (Wt = class {
|
|
|
14193
14193
|
}
|
|
14194
14194
|
}, Yn = new WeakMap(), // private constructor
|
|
14195
14195
|
Y(Wt, Yn, !1), Wt);
|
|
14196
|
-
var La, Ca,
|
|
14196
|
+
var La, Ca, vt, rt, wt, Tt, Hn, Jn, Ie, St, Te, de, ee, Qe, st, Ge, Re, _t, Le, It, Ot, ot, Nt, pn, We, V, Is, An, Zt, Li, at, ol, xn, Kn, Ci, sn, on, Os, pr, gr, ce, Ns, Ii, an, As, Xn;
|
|
14197
14197
|
let Ag = (Xn = class {
|
|
14198
14198
|
constructor(e) {
|
|
14199
14199
|
Y(this, V);
|
|
14200
14200
|
// options that cannot be changed without disaster
|
|
14201
|
-
Y(this,
|
|
14201
|
+
Y(this, vt);
|
|
14202
14202
|
Y(this, rt);
|
|
14203
14203
|
Y(this, wt);
|
|
14204
14204
|
Y(this, Tt);
|
|
@@ -14306,13 +14306,13 @@ let Ag = (Xn = class {
|
|
|
14306
14306
|
* `Object.prototype.toString`.
|
|
14307
14307
|
*/
|
|
14308
14308
|
U(this, La, "LRUCache");
|
|
14309
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: w = 0, maxEntrySize:
|
|
14309
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation: R, fetchMethod: x, memoMethod: y, noDeleteOnFetchRejection: S, noDeleteOnStaleGet: A, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: C, ignoreFetchAbort: T } = e;
|
|
14310
14310
|
if (n !== 0 && !rn(n))
|
|
14311
14311
|
throw new TypeError("max option must be a nonnegative integer");
|
|
14312
14312
|
const _ = n ? sl(n) : Array;
|
|
14313
14313
|
if (!_)
|
|
14314
14314
|
throw new Error("invalid max value: " + n);
|
|
14315
|
-
if ($(this,
|
|
14315
|
+
if ($(this, vt, n), $(this, rt, w), this.maxEntrySize = E || l(this, rt), this.sizeCalculation = R, this.sizeCalculation) {
|
|
14316
14316
|
if (!l(this, rt) && !this.maxEntrySize)
|
|
14317
14317
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
14318
14318
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -14334,9 +14334,9 @@ let Ag = (Xn = class {
|
|
|
14334
14334
|
throw new TypeError("ttl must be a positive integer if specified");
|
|
14335
14335
|
k(this, V, Is).call(this);
|
|
14336
14336
|
}
|
|
14337
|
-
if (l(this,
|
|
14337
|
+
if (l(this, vt) === 0 && this.ttl === 0 && l(this, rt) === 0)
|
|
14338
14338
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
14339
|
-
if (!this.ttlAutopurge && !l(this,
|
|
14339
|
+
if (!this.ttlAutopurge && !l(this, vt) && !l(this, rt)) {
|
|
14340
14340
|
const m = "LRU_CACHE_UNBOUNDED";
|
|
14341
14341
|
Og(m) && (il.add(m), rl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", m, Xn));
|
|
14342
14342
|
}
|
|
@@ -14400,7 +14400,7 @@ let Ag = (Xn = class {
|
|
|
14400
14400
|
* {@link LRUCache.OptionsBase.max} (read-only)
|
|
14401
14401
|
*/
|
|
14402
14402
|
get max() {
|
|
14403
|
-
return l(this,
|
|
14403
|
+
return l(this, vt);
|
|
14404
14404
|
}
|
|
14405
14405
|
/**
|
|
14406
14406
|
* {@link LRUCache.OptionsBase.maxSize} (read-only)
|
|
@@ -14669,7 +14669,7 @@ let Ag = (Xn = class {
|
|
|
14669
14669
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
14670
14670
|
*/
|
|
14671
14671
|
set(e, n, i = {}) {
|
|
14672
|
-
var p, w,
|
|
14672
|
+
var p, w, E, R, x;
|
|
14673
14673
|
if (n === void 0)
|
|
14674
14674
|
return this.delete(e), this;
|
|
14675
14675
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -14679,7 +14679,7 @@ let Ag = (Xn = class {
|
|
|
14679
14679
|
return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), k(this, V, an).call(this, e, "set"), this;
|
|
14680
14680
|
let g = l(this, Ie) === 0 ? void 0 : l(this, Te).get(e);
|
|
14681
14681
|
if (g === void 0)
|
|
14682
|
-
g = l(this, Ie) === 0 ? l(this, Re) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this,
|
|
14682
|
+
g = l(this, Ie) === 0 ? l(this, Re) : l(this, _t).length !== 0 ? l(this, _t).pop() : l(this, Ie) === l(this, vt) ? k(this, V, pr).call(this, !1) : l(this, Ie), l(this, de)[g] = e, l(this, ee)[g] = n, l(this, Te).set(e, g), l(this, Qe)[l(this, Re)] = g, l(this, st)[g] = l(this, Re), $(this, Re, g), Tn(this, Ie)._++, l(this, Kn).call(this, g, f, u), u && (u.set = "add"), c = !1;
|
|
14683
14683
|
else {
|
|
14684
14684
|
k(this, V, Ii).call(this, g);
|
|
14685
14685
|
const y = l(this, ee)[g];
|
|
@@ -14688,7 +14688,7 @@ let Ag = (Xn = class {
|
|
|
14688
14688
|
y.__abortController.abort(new Error("replaced"));
|
|
14689
14689
|
const { __staleWhileFetching: S } = y;
|
|
14690
14690
|
S !== void 0 && !o && (l(this, Nt) && ((p = l(this, wt)) == null || p.call(this, S, e, "set")), l(this, We) && ((w = l(this, Le)) == null || w.push([S, e, "set"])));
|
|
14691
|
-
} else o || (l(this, Nt) && ((
|
|
14691
|
+
} else o || (l(this, Nt) && ((E = l(this, wt)) == null || E.call(this, y, e, "set")), l(this, We) && ((R = l(this, Le)) == null || R.push([y, e, "set"])));
|
|
14692
14692
|
if (l(this, xn).call(this, g), l(this, Kn).call(this, g, f, u), l(this, ee)[g] = n, u) {
|
|
14693
14693
|
u.set = "replace";
|
|
14694
14694
|
const S = y && k(this, V, ce).call(this, y) ? y.__staleWhileFetching : y;
|
|
@@ -14786,7 +14786,7 @@ let Ag = (Xn = class {
|
|
|
14786
14786
|
noDeleteOnFetchRejection: g = this.noDeleteOnFetchRejection,
|
|
14787
14787
|
allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection,
|
|
14788
14788
|
ignoreFetchAbort: w = this.ignoreFetchAbort,
|
|
14789
|
-
allowStaleOnFetchAbort:
|
|
14789
|
+
allowStaleOnFetchAbort: E = this.allowStaleOnFetchAbort,
|
|
14790
14790
|
context: R,
|
|
14791
14791
|
forceRefresh: x = !1,
|
|
14792
14792
|
status: y,
|
|
@@ -14810,7 +14810,7 @@ let Ag = (Xn = class {
|
|
|
14810
14810
|
noUpdateTTL: f,
|
|
14811
14811
|
noDeleteOnFetchRejection: g,
|
|
14812
14812
|
allowStaleOnFetchRejection: p,
|
|
14813
|
-
allowStaleOnFetchAbort:
|
|
14813
|
+
allowStaleOnFetchAbort: E,
|
|
14814
14814
|
ignoreFetchAbort: w,
|
|
14815
14815
|
status: y,
|
|
14816
14816
|
signal: S
|
|
@@ -14879,8 +14879,8 @@ let Ag = (Xn = class {
|
|
|
14879
14879
|
clear() {
|
|
14880
14880
|
return k(this, V, As).call(this, "delete");
|
|
14881
14881
|
}
|
|
14882
|
-
},
|
|
14883
|
-
const e = new hr(l(this,
|
|
14882
|
+
}, vt = new WeakMap(), rt = new WeakMap(), wt = new WeakMap(), Tt = new WeakMap(), Hn = new WeakMap(), Jn = new WeakMap(), Ie = new WeakMap(), St = new WeakMap(), Te = new WeakMap(), de = new WeakMap(), ee = new WeakMap(), Qe = new WeakMap(), st = new WeakMap(), Ge = new WeakMap(), Re = new WeakMap(), _t = new WeakMap(), Le = new WeakMap(), It = new WeakMap(), Ot = new WeakMap(), ot = new WeakMap(), Nt = new WeakMap(), pn = new WeakMap(), We = new WeakMap(), V = new WeakSet(), Is = function() {
|
|
14883
|
+
const e = new hr(l(this, vt)), n = new hr(l(this, vt));
|
|
14884
14884
|
$(this, ot, e), $(this, Ot, n), $(this, Li, (s, o, a = Vn.now()) => {
|
|
14885
14885
|
if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
|
|
14886
14886
|
const u = setTimeout(() => {
|
|
@@ -14924,7 +14924,7 @@ let Ag = (Xn = class {
|
|
|
14924
14924
|
return !!a && !!o && (i || r()) - o > a;
|
|
14925
14925
|
});
|
|
14926
14926
|
}, An = new WeakMap(), Zt = new WeakMap(), Li = new WeakMap(), at = new WeakMap(), ol = function() {
|
|
14927
|
-
const e = new hr(l(this,
|
|
14927
|
+
const e = new hr(l(this, vt));
|
|
14928
14928
|
$(this, St, 0), $(this, It, e), $(this, xn, (n) => {
|
|
14929
14929
|
$(this, St, l(this, St) - e[n]), e[n] = 0;
|
|
14930
14930
|
}), $(this, Ci, (n, i, r, s) => {
|
|
@@ -14993,12 +14993,12 @@ let Ag = (Xn = class {
|
|
|
14993
14993
|
});
|
|
14994
14994
|
};
|
|
14995
14995
|
i.status && (i.status.fetchDispatched = !0);
|
|
14996
|
-
const w = new Promise(p).then(c, f),
|
|
14996
|
+
const w = new Promise(p).then(c, f), E = Object.assign(w, {
|
|
14997
14997
|
__abortController: o,
|
|
14998
14998
|
__staleWhileFetching: s,
|
|
14999
14999
|
__returned: void 0
|
|
15000
15000
|
});
|
|
15001
|
-
return n === void 0 ? (this.set(e,
|
|
15001
|
+
return n === void 0 ? (this.set(e, E, { ...u.options, status: void 0 }), n = l(this, Te).get(e)) : l(this, ee)[n] = E, E;
|
|
15002
15002
|
}, ce = function(e) {
|
|
15003
15003
|
if (!l(this, pn))
|
|
15004
15004
|
return !1;
|
|
@@ -15263,8 +15263,8 @@ function Pg() {
|
|
|
15263
15263
|
if (w.value != null) {
|
|
15264
15264
|
p.enqueue(u.encode(`event: next
|
|
15265
15265
|
`));
|
|
15266
|
-
const
|
|
15267
|
-
p.enqueue(u.encode(`data: ${
|
|
15266
|
+
const E = io(w.value);
|
|
15267
|
+
p.enqueue(u.encode(`data: ${E}
|
|
15268
15268
|
|
|
15269
15269
|
`));
|
|
15270
15270
|
}
|
|
@@ -15312,8 +15312,8 @@ function Ug() {
|
|
|
15312
15312
|
for (const p of c)
|
|
15313
15313
|
for (const w of f)
|
|
15314
15314
|
if (!(g && !p.asyncIterables))
|
|
15315
|
-
for (const
|
|
15316
|
-
o.push(
|
|
15315
|
+
for (const E of p.mediaTypes)
|
|
15316
|
+
o.push(E), kg(E, w) && a(p.processResult, E);
|
|
15317
15317
|
}
|
|
15318
15318
|
};
|
|
15319
15319
|
}
|
|
@@ -15610,7 +15610,7 @@ class Qg {
|
|
|
15610
15610
|
showLandingPage: c,
|
|
15611
15611
|
landingPageRenderer: typeof (e == null ? void 0 : e.landingPage) == "function" ? e.landingPage : void 0
|
|
15612
15612
|
})
|
|
15613
|
-
), u(
|
|
15613
|
+
), u(vg()), u(_g()), s && (u({
|
|
15614
15614
|
onSubscribe() {
|
|
15615
15615
|
return {
|
|
15616
15616
|
onSubscribeError({ error: f }) {
|
|
@@ -15878,13 +15878,13 @@ const fo = class fo {
|
|
|
15878
15878
|
* `Object.prototype.toString`.
|
|
15879
15879
|
*/
|
|
15880
15880
|
U(this, Da, "LRUCache");
|
|
15881
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: w = 0, maxEntrySize:
|
|
15881
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation: R, fetchMethod: x, memoMethod: y, noDeleteOnFetchRejection: S, noDeleteOnStaleGet: A, allowStaleOnFetchRejection: O, allowStaleOnFetchAbort: C, ignoreFetchAbort: T } = e;
|
|
15882
15882
|
if (n !== 0 && !un(n))
|
|
15883
15883
|
throw new TypeError("max option must be a nonnegative integer");
|
|
15884
15884
|
const _ = n ? cl(n) : Array;
|
|
15885
15885
|
if (!_)
|
|
15886
15886
|
throw new Error("invalid max value: " + n);
|
|
15887
|
-
if ($(this, At, n), $(this, ut, w), this.maxEntrySize =
|
|
15887
|
+
if ($(this, At, n), $(this, ut, w), this.maxEntrySize = E || l(this, ut), this.sizeCalculation = R, this.sizeCalculation) {
|
|
15888
15888
|
if (!l(this, ut) && !this.maxEntrySize)
|
|
15889
15889
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
15890
15890
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -16241,7 +16241,7 @@ const fo = class fo {
|
|
|
16241
16241
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
16242
16242
|
*/
|
|
16243
16243
|
set(e, n, i = {}) {
|
|
16244
|
-
var p, w,
|
|
16244
|
+
var p, w, E, R, x;
|
|
16245
16245
|
if (n === void 0)
|
|
16246
16246
|
return this.delete(e), this;
|
|
16247
16247
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -16260,7 +16260,7 @@ const fo = class fo {
|
|
|
16260
16260
|
y.__abortController.abort(new Error("replaced"));
|
|
16261
16261
|
const { __staleWhileFetching: S } = y;
|
|
16262
16262
|
S !== void 0 && !o && (l(this, Dt) && ((p = l(this, xt)) == null || p.call(this, S, e, "set")), l(this, He) && ((w = l(this, ke)) == null || w.push([S, e, "set"])));
|
|
16263
|
-
} else o || (l(this, Dt) && ((
|
|
16263
|
+
} else o || (l(this, Dt) && ((E = l(this, xt)) == null || E.call(this, y, e, "set")), l(this, He) && ((R = l(this, ke)) == null || R.push([y, e, "set"])));
|
|
16264
16264
|
if (l(this, Rn).call(this, g), l(this, ni).call(this, g, f, u), l(this, te)[g] = n, u) {
|
|
16265
16265
|
u.set = "replace";
|
|
16266
16266
|
const S = y && k(this, B, fe).call(this, y) ? y.__staleWhileFetching : y;
|
|
@@ -16358,7 +16358,7 @@ const fo = class fo {
|
|
|
16358
16358
|
noDeleteOnFetchRejection: g = this.noDeleteOnFetchRejection,
|
|
16359
16359
|
allowStaleOnFetchRejection: p = this.allowStaleOnFetchRejection,
|
|
16360
16360
|
ignoreFetchAbort: w = this.ignoreFetchAbort,
|
|
16361
|
-
allowStaleOnFetchAbort:
|
|
16361
|
+
allowStaleOnFetchAbort: E = this.allowStaleOnFetchAbort,
|
|
16362
16362
|
context: R,
|
|
16363
16363
|
forceRefresh: x = !1,
|
|
16364
16364
|
status: y,
|
|
@@ -16382,7 +16382,7 @@ const fo = class fo {
|
|
|
16382
16382
|
noUpdateTTL: f,
|
|
16383
16383
|
noDeleteOnFetchRejection: g,
|
|
16384
16384
|
allowStaleOnFetchRejection: p,
|
|
16385
|
-
allowStaleOnFetchAbort:
|
|
16385
|
+
allowStaleOnFetchAbort: E,
|
|
16386
16386
|
ignoreFetchAbort: w,
|
|
16387
16387
|
status: y,
|
|
16388
16388
|
signal: S
|
|
@@ -16566,12 +16566,12 @@ At = new WeakMap(), ut = new WeakMap(), xt = new WeakMap(), Ft = new WeakMap(),
|
|
|
16566
16566
|
});
|
|
16567
16567
|
};
|
|
16568
16568
|
i.status && (i.status.fetchDispatched = !0);
|
|
16569
|
-
const w = new Promise(p).then(c, f),
|
|
16569
|
+
const w = new Promise(p).then(c, f), E = Object.assign(w, {
|
|
16570
16570
|
__abortController: o,
|
|
16571
16571
|
__staleWhileFetching: s,
|
|
16572
16572
|
__returned: void 0
|
|
16573
16573
|
});
|
|
16574
|
-
return n === void 0 ? (this.set(e,
|
|
16574
|
+
return n === void 0 ? (this.set(e, E, { ...u.options, status: void 0 }), n = l(this, Se).get(e)) : l(this, te)[n] = E, E;
|
|
16575
16575
|
}, fe = function(e) {
|
|
16576
16576
|
if (!l(this, gn))
|
|
16577
16577
|
return !1;
|
|
@@ -16659,11 +16659,11 @@ var dl = { exports: {} };
|
|
|
16659
16659
|
return o;
|
|
16660
16660
|
}({ 1: [function(n, i, r) {
|
|
16661
16661
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
16662
|
-
var
|
|
16662
|
+
var E = n("crypto");
|
|
16663
16663
|
function R(T, _) {
|
|
16664
16664
|
_ = S(T, _);
|
|
16665
16665
|
var m;
|
|
16666
|
-
return (m = _.algorithm !== "passthrough" ?
|
|
16666
|
+
return (m = _.algorithm !== "passthrough" ? E.createHash(_.algorithm) : new C()).write === void 0 && (m.write = m.update, m.end = m.update), O(_, m).dispatch(T), m.update || m.end(""), m.digest ? m.digest(_.encoding === "buffer" ? void 0 : _.encoding) : (T = m.read(), _.encoding !== "buffer" ? T.toString(_.encoding) : T);
|
|
16667
16667
|
}
|
|
16668
16668
|
(r = i.exports = R).sha1 = function(T) {
|
|
16669
16669
|
return R(T);
|
|
@@ -16674,7 +16674,7 @@ var dl = { exports: {} };
|
|
|
16674
16674
|
}, r.keysMD5 = function(T) {
|
|
16675
16675
|
return R(T, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
|
|
16676
16676
|
};
|
|
16677
|
-
var x =
|
|
16677
|
+
var x = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], y = (x.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
|
|
16678
16678
|
function S(T, _) {
|
|
16679
16679
|
var m = {};
|
|
16680
16680
|
if (m.algorithm = (_ = _ || {}).algorithm || "sha1", m.encoding = _.encoding || "hex", m.excludeValues = !!_.excludeValues, m.algorithm = m.algorithm.toLowerCase(), m.encoding = m.encoding.toLowerCase(), m.ignoreUnknown = _.ignoreUnknown === !0, m.respectType = _.respectType !== !1, m.respectFunctionNames = _.respectFunctionNames !== !1, m.respectFunctionProperties = _.respectFunctionProperties !== !1, m.unorderedArrays = _.unorderedArrays === !0, m.unorderedSets = _.unorderedSets !== !1, m.unorderedObjects = _.unorderedObjects !== !1, m.replacer = _.replacer || void 0, m.excludeKeys = _.excludeKeys || void 0, T === void 0) throw new Error("Object argument required.");
|
|
@@ -16829,12 +16829,12 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
16829
16829
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
|
|
16830
16830
|
}, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(n, i, r) {
|
|
16831
16831
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
16832
|
-
(function(
|
|
16832
|
+
(function(E) {
|
|
16833
16833
|
var R = typeof Uint8Array < "u" ? Uint8Array : Array, x = 43, y = 47, S = 48, A = 97, O = 65, C = 45, T = 95;
|
|
16834
16834
|
function _(m) {
|
|
16835
16835
|
return m = m.charCodeAt(0), m === x || m === C ? 62 : m === y || m === T ? 63 : m < S ? -1 : m < S + 10 ? m - S + 26 + 26 : m < O + 26 ? m - O : m < A + 26 ? m - A + 26 : void 0;
|
|
16836
16836
|
}
|
|
16837
|
-
|
|
16837
|
+
E.toByteArray = function(m) {
|
|
16838
16838
|
var b, d;
|
|
16839
16839
|
if (0 < m.length % 4) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
16840
16840
|
var N = m.length, N = m.charAt(N - 2) === "=" ? 2 : m.charAt(N - 1) === "=" ? 1 : 0, L = new R(3 * m.length / 4 - N), J = 0 < N ? m.length - 4 : m.length, q = 0;
|
|
@@ -16843,7 +16843,7 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
16843
16843
|
}
|
|
16844
16844
|
for (b = 0; b < J; b += 4, 0) Z((16711680 & (d = _(m.charAt(b)) << 18 | _(m.charAt(b + 1)) << 12 | _(m.charAt(b + 2)) << 6 | _(m.charAt(b + 3)))) >> 16), Z((65280 & d) >> 8), Z(255 & d);
|
|
16845
16845
|
return N == 2 ? Z(255 & (d = _(m.charAt(b)) << 2 | _(m.charAt(b + 1)) >> 4)) : N == 1 && (Z((d = _(m.charAt(b)) << 10 | _(m.charAt(b + 1)) << 4 | _(m.charAt(b + 2)) >> 2) >> 8 & 255), Z(255 & d)), L;
|
|
16846
|
-
},
|
|
16846
|
+
}, E.fromByteArray = function(m) {
|
|
16847
16847
|
var b, d, N, L, J = m.length % 3, q = "";
|
|
16848
16848
|
function Z(W) {
|
|
16849
16849
|
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(W);
|
|
@@ -16862,87 +16862,87 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
16862
16862
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
|
|
16863
16863
|
}, { buffer: 3, lYpoI2: 11 }], 3: [function(n, i, r) {
|
|
16864
16864
|
(function(s, o, x, u, c, f, g, p, w) {
|
|
16865
|
-
var
|
|
16866
|
-
function x(h,
|
|
16867
|
-
if (!(this instanceof x)) return new x(h,
|
|
16865
|
+
var E = n("base64-js"), R = n("ieee754");
|
|
16866
|
+
function x(h, v, F) {
|
|
16867
|
+
if (!(this instanceof x)) return new x(h, v, F);
|
|
16868
16868
|
var M, j, Q, oe, ye = typeof h;
|
|
16869
|
-
if (
|
|
16869
|
+
if (v === "base64" && ye == "string") for (h = (oe = h).trim ? oe.trim() : oe.replace(/^\s+|\s+$/g, ""); h.length % 4 != 0; ) h += "=";
|
|
16870
16870
|
if (ye == "number") M = Be(h);
|
|
16871
|
-
else if (ye == "string") M = x.byteLength(h,
|
|
16871
|
+
else if (ye == "string") M = x.byteLength(h, v);
|
|
16872
16872
|
else {
|
|
16873
16873
|
if (ye != "object") throw new Error("First argument needs to be a number, array or string.");
|
|
16874
16874
|
M = Be(h.length);
|
|
16875
16875
|
}
|
|
16876
16876
|
if (x._useTypedArrays ? j = x._augment(new Uint8Array(M)) : ((j = this).length = M, j._isBuffer = !0), x._useTypedArrays && typeof h.byteLength == "number") j._set(h);
|
|
16877
16877
|
else if (me(oe = h) || x.isBuffer(oe) || oe && typeof oe == "object" && typeof oe.length == "number") for (Q = 0; Q < M; Q++) x.isBuffer(h) ? j[Q] = h.readUInt8(Q) : j[Q] = h[Q];
|
|
16878
|
-
else if (ye == "string") j.write(h, 0,
|
|
16878
|
+
else if (ye == "string") j.write(h, 0, v);
|
|
16879
16879
|
else if (ye == "number" && !x._useTypedArrays && !F) for (Q = 0; Q < M; Q++) j[Q] = 0;
|
|
16880
16880
|
return j;
|
|
16881
16881
|
}
|
|
16882
|
-
function y(h,
|
|
16882
|
+
function y(h, v, F, M) {
|
|
16883
16883
|
return x._charsWritten = qi(function(j) {
|
|
16884
16884
|
for (var Q = [], oe = 0; oe < j.length; oe++) Q.push(255 & j.charCodeAt(oe));
|
|
16885
16885
|
return Q;
|
|
16886
|
-
}(
|
|
16886
|
+
}(v), h, F, M);
|
|
16887
16887
|
}
|
|
16888
|
-
function S(h,
|
|
16888
|
+
function S(h, v, F, M) {
|
|
16889
16889
|
return x._charsWritten = qi(function(j) {
|
|
16890
16890
|
for (var Q, oe, ye = [], xe = 0; xe < j.length; xe++) oe = j.charCodeAt(xe), Q = oe >> 8, oe = oe % 256, ye.push(oe), ye.push(Q);
|
|
16891
16891
|
return ye;
|
|
16892
|
-
}(
|
|
16892
|
+
}(v), h, F, M);
|
|
16893
16893
|
}
|
|
16894
|
-
function A(h,
|
|
16894
|
+
function A(h, v, F) {
|
|
16895
16895
|
var M = "";
|
|
16896
16896
|
F = Math.min(h.length, F);
|
|
16897
|
-
for (var j =
|
|
16897
|
+
for (var j = v; j < F; j++) M += String.fromCharCode(h[j]);
|
|
16898
16898
|
return M;
|
|
16899
16899
|
}
|
|
16900
|
-
function O(h,
|
|
16901
|
-
Q || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16900
|
+
function O(h, v, F, Q) {
|
|
16901
|
+
Q || (z(typeof F == "boolean", "missing or invalid endian"), z(v != null, "missing offset"), z(v + 1 < h.length, "Trying to read beyond buffer length"));
|
|
16902
16902
|
var j, Q = h.length;
|
|
16903
|
-
if (!(Q <=
|
|
16903
|
+
if (!(Q <= v)) return F ? (j = h[v], v + 1 < Q && (j |= h[v + 1] << 8)) : (j = h[v] << 8, v + 1 < Q && (j |= h[v + 1])), j;
|
|
16904
16904
|
}
|
|
16905
|
-
function C(h,
|
|
16906
|
-
Q || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16905
|
+
function C(h, v, F, Q) {
|
|
16906
|
+
Q || (z(typeof F == "boolean", "missing or invalid endian"), z(v != null, "missing offset"), z(v + 3 < h.length, "Trying to read beyond buffer length"));
|
|
16907
16907
|
var j, Q = h.length;
|
|
16908
|
-
if (!(Q <=
|
|
16908
|
+
if (!(Q <= v)) return F ? (v + 2 < Q && (j = h[v + 2] << 16), v + 1 < Q && (j |= h[v + 1] << 8), j |= h[v], v + 3 < Q && (j += h[v + 3] << 24 >>> 0)) : (v + 1 < Q && (j = h[v + 1] << 16), v + 2 < Q && (j |= h[v + 2] << 8), v + 3 < Q && (j |= h[v + 3]), j += h[v] << 24 >>> 0), j;
|
|
16909
16909
|
}
|
|
16910
|
-
function T(h,
|
|
16911
|
-
if (M || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16910
|
+
function T(h, v, F, M) {
|
|
16911
|
+
if (M || (z(typeof F == "boolean", "missing or invalid endian"), z(v != null, "missing offset"), z(v + 1 < h.length, "Trying to read beyond buffer length")), !(h.length <= v)) return M = O(h, v, F, !0), 32768 & M ? -1 * (65535 - M + 1) : M;
|
|
16912
16912
|
}
|
|
16913
|
-
function _(h,
|
|
16914
|
-
if (M || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16913
|
+
function _(h, v, F, M) {
|
|
16914
|
+
if (M || (z(typeof F == "boolean", "missing or invalid endian"), z(v != null, "missing offset"), z(v + 3 < h.length, "Trying to read beyond buffer length")), !(h.length <= v)) return M = C(h, v, F, !0), 2147483648 & M ? -1 * (4294967295 - M + 1) : M;
|
|
16915
16915
|
}
|
|
16916
|
-
function m(h,
|
|
16917
|
-
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16916
|
+
function m(h, v, F, M) {
|
|
16917
|
+
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 3 < h.length, "Trying to read beyond buffer length")), R.read(h, v, F, 23, 4);
|
|
16918
16918
|
}
|
|
16919
|
-
function b(h,
|
|
16920
|
-
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(
|
|
16919
|
+
function b(h, v, F, M) {
|
|
16920
|
+
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 7 < h.length, "Trying to read beyond buffer length")), R.read(h, v, F, 52, 8);
|
|
16921
16921
|
}
|
|
16922
|
-
function d(h,
|
|
16923
|
-
if (j || (z(
|
|
16922
|
+
function d(h, v, F, M, j) {
|
|
16923
|
+
if (j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 1 < h.length, "trying to write beyond buffer length"), zr(v, 65535)), j = h.length, !(j <= F)) for (var Q = 0, oe = Math.min(j - F, 2); Q < oe; Q++) h[F + Q] = (v & 255 << 8 * (M ? Q : 1 - Q)) >>> 8 * (M ? Q : 1 - Q);
|
|
16924
16924
|
}
|
|
16925
|
-
function N(h,
|
|
16926
|
-
if (j || (z(
|
|
16925
|
+
function N(h, v, F, M, j) {
|
|
16926
|
+
if (j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 3 < h.length, "trying to write beyond buffer length"), zr(v, 4294967295)), j = h.length, !(j <= F)) for (var Q = 0, oe = Math.min(j - F, 4); Q < oe; Q++) h[F + Q] = v >>> 8 * (M ? Q : 3 - Q) & 255;
|
|
16927
16927
|
}
|
|
16928
|
-
function L(h,
|
|
16929
|
-
j || (z(
|
|
16928
|
+
function L(h, v, F, M, j) {
|
|
16929
|
+
j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 1 < h.length, "Trying to write beyond buffer length"), Qr(v, 32767, -32768)), h.length <= F || d(h, 0 <= v ? v : 65535 + v + 1, F, M, j);
|
|
16930
16930
|
}
|
|
16931
|
-
function J(h,
|
|
16932
|
-
j || (z(
|
|
16931
|
+
function J(h, v, F, M, j) {
|
|
16932
|
+
j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 3 < h.length, "Trying to write beyond buffer length"), Qr(v, 2147483647, -2147483648)), h.length <= F || N(h, 0 <= v ? v : 4294967295 + v + 1, F, M, j);
|
|
16933
16933
|
}
|
|
16934
|
-
function q(h,
|
|
16935
|
-
j || (z(
|
|
16934
|
+
function q(h, v, F, M, j) {
|
|
16935
|
+
j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 3 < h.length, "Trying to write beyond buffer length"), go(v, 34028234663852886e22, -34028234663852886e22)), h.length <= F || R.write(h, v, F, M, 23, 4);
|
|
16936
16936
|
}
|
|
16937
|
-
function Z(h,
|
|
16938
|
-
j || (z(
|
|
16937
|
+
function Z(h, v, F, M, j) {
|
|
16938
|
+
j || (z(v != null, "missing value"), z(typeof M == "boolean", "missing or invalid endian"), z(F != null, "missing offset"), z(F + 7 < h.length, "Trying to write beyond buffer length"), go(v, 17976931348623157e292, -17976931348623157e292)), h.length <= F || R.write(h, v, F, M, 52, 8);
|
|
16939
16939
|
}
|
|
16940
16940
|
r.Buffer = x, r.SlowBuffer = x, r.INSPECT_MAX_BYTES = 50, x.poolSize = 8192, x._useTypedArrays = function() {
|
|
16941
16941
|
try {
|
|
16942
|
-
var h = new ArrayBuffer(0),
|
|
16943
|
-
return
|
|
16942
|
+
var h = new ArrayBuffer(0), v = new Uint8Array(h);
|
|
16943
|
+
return v.foo = function() {
|
|
16944
16944
|
return 42;
|
|
16945
|
-
},
|
|
16945
|
+
}, v.foo() === 42 && typeof v.subarray == "function";
|
|
16946
16946
|
} catch {
|
|
16947
16947
|
return !1;
|
|
16948
16948
|
}
|
|
@@ -16965,9 +16965,9 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
16965
16965
|
}
|
|
16966
16966
|
}, x.isBuffer = function(h) {
|
|
16967
16967
|
return !(h == null || !h._isBuffer);
|
|
16968
|
-
}, x.byteLength = function(h,
|
|
16968
|
+
}, x.byteLength = function(h, v) {
|
|
16969
16969
|
var F;
|
|
16970
|
-
switch (h += "",
|
|
16970
|
+
switch (h += "", v || "utf8") {
|
|
16971
16971
|
case "hex":
|
|
16972
16972
|
F = h.length / 2;
|
|
16973
16973
|
break;
|
|
@@ -16993,19 +16993,19 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
16993
16993
|
throw new Error("Unknown encoding");
|
|
16994
16994
|
}
|
|
16995
16995
|
return F;
|
|
16996
|
-
}, x.concat = function(h,
|
|
16996
|
+
}, x.concat = function(h, v) {
|
|
16997
16997
|
if (z(me(h), `Usage: Buffer.concat(list, [totalLength])
|
|
16998
16998
|
list should be an Array.`), h.length === 0) return new x(0);
|
|
16999
16999
|
if (h.length === 1) return h[0];
|
|
17000
|
-
if (typeof
|
|
17001
|
-
for (var F = new x(
|
|
17000
|
+
if (typeof v != "number") for (j = v = 0; j < h.length; j++) v += h[j].length;
|
|
17001
|
+
for (var F = new x(v), M = 0, j = 0; j < h.length; j++) {
|
|
17002
17002
|
var Q = h[j];
|
|
17003
17003
|
Q.copy(F, M), M += Q.length;
|
|
17004
17004
|
}
|
|
17005
17005
|
return F;
|
|
17006
|
-
}, x.prototype.write = function(h,
|
|
17007
|
-
isFinite(
|
|
17008
|
-
var j, Q, oe, ye, xe = this.length -
|
|
17006
|
+
}, x.prototype.write = function(h, v, F, M) {
|
|
17007
|
+
isFinite(v) ? isFinite(F) || (M = F, F = void 0) : (xe = M, M = v, v = F, F = xe), v = Number(v) || 0;
|
|
17008
|
+
var j, Q, oe, ye, xe = this.length - v;
|
|
17009
17009
|
switch ((!F || xe < (F = Number(F))) && (F = xe), M = String(M || "utf8").toLowerCase()) {
|
|
17010
17010
|
case "hex":
|
|
17011
17011
|
j = function(yt, Ke, Xe, Fe) {
|
|
@@ -17017,32 +17017,32 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17017
17017
|
z(!isNaN(mo), "Invalid hex string"), yt[Xe + Pn] = mo;
|
|
17018
17018
|
}
|
|
17019
17019
|
return x._charsWritten = 2 * Pn, Pn;
|
|
17020
|
-
}(this, h,
|
|
17020
|
+
}(this, h, v, F);
|
|
17021
17021
|
break;
|
|
17022
17022
|
case "utf8":
|
|
17023
17023
|
case "utf-8":
|
|
17024
|
-
Q = this, oe =
|
|
17024
|
+
Q = this, oe = v, ye = F, j = x._charsWritten = qi(Jt(h), Q, oe, ye);
|
|
17025
17025
|
break;
|
|
17026
17026
|
case "ascii":
|
|
17027
17027
|
case "binary":
|
|
17028
|
-
j = y(this, h,
|
|
17028
|
+
j = y(this, h, v, F);
|
|
17029
17029
|
break;
|
|
17030
17030
|
case "base64":
|
|
17031
|
-
Q = this, oe =
|
|
17031
|
+
Q = this, oe = v, ye = F, j = x._charsWritten = qi(ho(h), Q, oe, ye);
|
|
17032
17032
|
break;
|
|
17033
17033
|
case "ucs2":
|
|
17034
17034
|
case "ucs-2":
|
|
17035
17035
|
case "utf16le":
|
|
17036
17036
|
case "utf-16le":
|
|
17037
|
-
j = S(this, h,
|
|
17037
|
+
j = S(this, h, v, F);
|
|
17038
17038
|
break;
|
|
17039
17039
|
default:
|
|
17040
17040
|
throw new Error("Unknown encoding");
|
|
17041
17041
|
}
|
|
17042
17042
|
return j;
|
|
17043
|
-
}, x.prototype.toString = function(h,
|
|
17043
|
+
}, x.prototype.toString = function(h, v, F) {
|
|
17044
17044
|
var M, j, Q, oe, ye = this;
|
|
17045
|
-
if (h = String(h || "utf8").toLowerCase(),
|
|
17045
|
+
if (h = String(h || "utf8").toLowerCase(), v = Number(v) || 0, (F = F !== void 0 ? Number(F) : ye.length) === v) return "";
|
|
17046
17046
|
switch (h) {
|
|
17047
17047
|
case "hex":
|
|
17048
17048
|
M = function(xe, yt, Ke) {
|
|
@@ -17050,7 +17050,7 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17050
17050
|
(!yt || yt < 0) && (yt = 0), (!Ke || Ke < 0 || Xe < Ke) && (Ke = Xe);
|
|
17051
17051
|
for (var Fe = "", we = yt; we < Ke; we++) Fe += le(xe[we]);
|
|
17052
17052
|
return Fe;
|
|
17053
|
-
}(ye,
|
|
17053
|
+
}(ye, v, F);
|
|
17054
17054
|
break;
|
|
17055
17055
|
case "utf8":
|
|
17056
17056
|
case "utf-8":
|
|
@@ -17059,14 +17059,14 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17059
17059
|
Ke = Math.min(xe.length, Ke);
|
|
17060
17060
|
for (var we = yt; we < Ke; we++) xe[we] <= 127 ? (Xe += po(Fe) + String.fromCharCode(xe[we]), Fe = "") : Fe += "%" + xe[we].toString(16);
|
|
17061
17061
|
return Xe + po(Fe);
|
|
17062
|
-
}(ye,
|
|
17062
|
+
}(ye, v, F);
|
|
17063
17063
|
break;
|
|
17064
17064
|
case "ascii":
|
|
17065
17065
|
case "binary":
|
|
17066
|
-
M = A(ye,
|
|
17066
|
+
M = A(ye, v, F);
|
|
17067
17067
|
break;
|
|
17068
17068
|
case "base64":
|
|
17069
|
-
j = ye, oe = F, M = (Q =
|
|
17069
|
+
j = ye, oe = F, M = (Q = v) === 0 && oe === j.length ? E.fromByteArray(j) : E.fromByteArray(j.slice(Q, oe));
|
|
17070
17070
|
break;
|
|
17071
17071
|
case "ucs2":
|
|
17072
17072
|
case "ucs-2":
|
|
@@ -17075,7 +17075,7 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17075
17075
|
M = function(xe, yt, Ke) {
|
|
17076
17076
|
for (var Xe = xe.slice(yt, Ke), Fe = "", we = 0; we < Xe.length; we += 2) Fe += String.fromCharCode(Xe[we] + 256 * Xe[we + 1]);
|
|
17077
17077
|
return Fe;
|
|
17078
|
-
}(ye,
|
|
17078
|
+
}(ye, v, F);
|
|
17079
17079
|
break;
|
|
17080
17080
|
default:
|
|
17081
17081
|
throw new Error("Unknown encoding");
|
|
@@ -17083,85 +17083,85 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17083
17083
|
return M;
|
|
17084
17084
|
}, x.prototype.toJSON = function() {
|
|
17085
17085
|
return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
|
|
17086
|
-
}, x.prototype.copy = function(h,
|
|
17087
|
-
if (
|
|
17088
|
-
z(F <= M, "sourceEnd < sourceStart"), z(0 <=
|
|
17089
|
-
var j = (M = h.length -
|
|
17090
|
-
if (j < 100 || !x._useTypedArrays) for (var Q = 0; Q < j; Q++) h[Q +
|
|
17091
|
-
else h._set(this.subarray(F, F + j),
|
|
17086
|
+
}, x.prototype.copy = function(h, v, F, M) {
|
|
17087
|
+
if (v = v || 0, (M = M || M === 0 ? M : this.length) !== (F = F || 0) && h.length !== 0 && this.length !== 0) {
|
|
17088
|
+
z(F <= M, "sourceEnd < sourceStart"), z(0 <= v && v < h.length, "targetStart out of bounds"), z(0 <= F && F < this.length, "sourceStart out of bounds"), z(0 <= M && M <= this.length, "sourceEnd out of bounds"), M > this.length && (M = this.length);
|
|
17089
|
+
var j = (M = h.length - v < M - F ? h.length - v + F : M) - F;
|
|
17090
|
+
if (j < 100 || !x._useTypedArrays) for (var Q = 0; Q < j; Q++) h[Q + v] = this[Q + F];
|
|
17091
|
+
else h._set(this.subarray(F, F + j), v);
|
|
17092
17092
|
}
|
|
17093
|
-
}, x.prototype.slice = function(h,
|
|
17093
|
+
}, x.prototype.slice = function(h, v) {
|
|
17094
17094
|
var F = this.length;
|
|
17095
|
-
if (h = ge(h, F, 0),
|
|
17096
|
-
for (var M =
|
|
17095
|
+
if (h = ge(h, F, 0), v = ge(v, F, F), x._useTypedArrays) return x._augment(this.subarray(h, v));
|
|
17096
|
+
for (var M = v - h, j = new x(M, void 0, !0), Q = 0; Q < M; Q++) j[Q] = this[Q + h];
|
|
17097
17097
|
return j;
|
|
17098
17098
|
}, x.prototype.get = function(h) {
|
|
17099
17099
|
return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(h);
|
|
17100
|
-
}, x.prototype.set = function(h,
|
|
17101
|
-
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(h,
|
|
17102
|
-
}, x.prototype.readUInt8 = function(h,
|
|
17103
|
-
if (
|
|
17104
|
-
}, x.prototype.readUInt16LE = function(h,
|
|
17105
|
-
return O(this, h, !0,
|
|
17106
|
-
}, x.prototype.readUInt16BE = function(h,
|
|
17107
|
-
return O(this, h, !1,
|
|
17108
|
-
}, x.prototype.readUInt32LE = function(h,
|
|
17109
|
-
return C(this, h, !0,
|
|
17110
|
-
}, x.prototype.readUInt32BE = function(h,
|
|
17111
|
-
return C(this, h, !1,
|
|
17112
|
-
}, x.prototype.readInt8 = function(h,
|
|
17113
|
-
if (
|
|
17114
|
-
}, x.prototype.readInt16LE = function(h,
|
|
17115
|
-
return T(this, h, !0,
|
|
17116
|
-
}, x.prototype.readInt16BE = function(h,
|
|
17117
|
-
return T(this, h, !1,
|
|
17118
|
-
}, x.prototype.readInt32LE = function(h,
|
|
17119
|
-
return _(this, h, !0,
|
|
17120
|
-
}, x.prototype.readInt32BE = function(h,
|
|
17121
|
-
return _(this, h, !1,
|
|
17122
|
-
}, x.prototype.readFloatLE = function(h,
|
|
17123
|
-
return m(this, h, !0,
|
|
17124
|
-
}, x.prototype.readFloatBE = function(h,
|
|
17125
|
-
return m(this, h, !1,
|
|
17126
|
-
}, x.prototype.readDoubleLE = function(h,
|
|
17127
|
-
return b(this, h, !0,
|
|
17128
|
-
}, x.prototype.readDoubleBE = function(h,
|
|
17129
|
-
return b(this, h, !1,
|
|
17130
|
-
}, x.prototype.writeUInt8 = function(h,
|
|
17131
|
-
F || (z(h != null, "missing value"), z(
|
|
17132
|
-
}, x.prototype.writeUInt16LE = function(h,
|
|
17133
|
-
d(this, h,
|
|
17134
|
-
}, x.prototype.writeUInt16BE = function(h,
|
|
17135
|
-
d(this, h,
|
|
17136
|
-
}, x.prototype.writeUInt32LE = function(h,
|
|
17137
|
-
N(this, h,
|
|
17138
|
-
}, x.prototype.writeUInt32BE = function(h,
|
|
17139
|
-
N(this, h,
|
|
17140
|
-
}, x.prototype.writeInt8 = function(h,
|
|
17141
|
-
F || (z(h != null, "missing value"), z(
|
|
17142
|
-
}, x.prototype.writeInt16LE = function(h,
|
|
17143
|
-
L(this, h,
|
|
17144
|
-
}, x.prototype.writeInt16BE = function(h,
|
|
17145
|
-
L(this, h,
|
|
17146
|
-
}, x.prototype.writeInt32LE = function(h,
|
|
17147
|
-
J(this, h,
|
|
17148
|
-
}, x.prototype.writeInt32BE = function(h,
|
|
17149
|
-
J(this, h,
|
|
17150
|
-
}, x.prototype.writeFloatLE = function(h,
|
|
17151
|
-
q(this, h,
|
|
17152
|
-
}, x.prototype.writeFloatBE = function(h,
|
|
17153
|
-
q(this, h,
|
|
17154
|
-
}, x.prototype.writeDoubleLE = function(h,
|
|
17155
|
-
Z(this, h,
|
|
17156
|
-
}, x.prototype.writeDoubleBE = function(h,
|
|
17157
|
-
Z(this, h,
|
|
17158
|
-
}, x.prototype.fill = function(h,
|
|
17159
|
-
if (
|
|
17160
|
-
z(0 <=
|
|
17161
|
-
for (var M =
|
|
17100
|
+
}, x.prototype.set = function(h, v) {
|
|
17101
|
+
return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(h, v);
|
|
17102
|
+
}, x.prototype.readUInt8 = function(h, v) {
|
|
17103
|
+
if (v || (z(h != null, "missing offset"), z(h < this.length, "Trying to read beyond buffer length")), !(h >= this.length)) return this[h];
|
|
17104
|
+
}, x.prototype.readUInt16LE = function(h, v) {
|
|
17105
|
+
return O(this, h, !0, v);
|
|
17106
|
+
}, x.prototype.readUInt16BE = function(h, v) {
|
|
17107
|
+
return O(this, h, !1, v);
|
|
17108
|
+
}, x.prototype.readUInt32LE = function(h, v) {
|
|
17109
|
+
return C(this, h, !0, v);
|
|
17110
|
+
}, x.prototype.readUInt32BE = function(h, v) {
|
|
17111
|
+
return C(this, h, !1, v);
|
|
17112
|
+
}, x.prototype.readInt8 = function(h, v) {
|
|
17113
|
+
if (v || (z(h != null, "missing offset"), z(h < this.length, "Trying to read beyond buffer length")), !(h >= this.length)) return 128 & this[h] ? -1 * (255 - this[h] + 1) : this[h];
|
|
17114
|
+
}, x.prototype.readInt16LE = function(h, v) {
|
|
17115
|
+
return T(this, h, !0, v);
|
|
17116
|
+
}, x.prototype.readInt16BE = function(h, v) {
|
|
17117
|
+
return T(this, h, !1, v);
|
|
17118
|
+
}, x.prototype.readInt32LE = function(h, v) {
|
|
17119
|
+
return _(this, h, !0, v);
|
|
17120
|
+
}, x.prototype.readInt32BE = function(h, v) {
|
|
17121
|
+
return _(this, h, !1, v);
|
|
17122
|
+
}, x.prototype.readFloatLE = function(h, v) {
|
|
17123
|
+
return m(this, h, !0, v);
|
|
17124
|
+
}, x.prototype.readFloatBE = function(h, v) {
|
|
17125
|
+
return m(this, h, !1, v);
|
|
17126
|
+
}, x.prototype.readDoubleLE = function(h, v) {
|
|
17127
|
+
return b(this, h, !0, v);
|
|
17128
|
+
}, x.prototype.readDoubleBE = function(h, v) {
|
|
17129
|
+
return b(this, h, !1, v);
|
|
17130
|
+
}, x.prototype.writeUInt8 = function(h, v, F) {
|
|
17131
|
+
F || (z(h != null, "missing value"), z(v != null, "missing offset"), z(v < this.length, "trying to write beyond buffer length"), zr(h, 255)), v >= this.length || (this[v] = h);
|
|
17132
|
+
}, x.prototype.writeUInt16LE = function(h, v, F) {
|
|
17133
|
+
d(this, h, v, !0, F);
|
|
17134
|
+
}, x.prototype.writeUInt16BE = function(h, v, F) {
|
|
17135
|
+
d(this, h, v, !1, F);
|
|
17136
|
+
}, x.prototype.writeUInt32LE = function(h, v, F) {
|
|
17137
|
+
N(this, h, v, !0, F);
|
|
17138
|
+
}, x.prototype.writeUInt32BE = function(h, v, F) {
|
|
17139
|
+
N(this, h, v, !1, F);
|
|
17140
|
+
}, x.prototype.writeInt8 = function(h, v, F) {
|
|
17141
|
+
F || (z(h != null, "missing value"), z(v != null, "missing offset"), z(v < this.length, "Trying to write beyond buffer length"), Qr(h, 127, -128)), v >= this.length || (0 <= h ? this.writeUInt8(h, v, F) : this.writeUInt8(255 + h + 1, v, F));
|
|
17142
|
+
}, x.prototype.writeInt16LE = function(h, v, F) {
|
|
17143
|
+
L(this, h, v, !0, F);
|
|
17144
|
+
}, x.prototype.writeInt16BE = function(h, v, F) {
|
|
17145
|
+
L(this, h, v, !1, F);
|
|
17146
|
+
}, x.prototype.writeInt32LE = function(h, v, F) {
|
|
17147
|
+
J(this, h, v, !0, F);
|
|
17148
|
+
}, x.prototype.writeInt32BE = function(h, v, F) {
|
|
17149
|
+
J(this, h, v, !1, F);
|
|
17150
|
+
}, x.prototype.writeFloatLE = function(h, v, F) {
|
|
17151
|
+
q(this, h, v, !0, F);
|
|
17152
|
+
}, x.prototype.writeFloatBE = function(h, v, F) {
|
|
17153
|
+
q(this, h, v, !1, F);
|
|
17154
|
+
}, x.prototype.writeDoubleLE = function(h, v, F) {
|
|
17155
|
+
Z(this, h, v, !0, F);
|
|
17156
|
+
}, x.prototype.writeDoubleBE = function(h, v, F) {
|
|
17157
|
+
Z(this, h, v, !1, F);
|
|
17158
|
+
}, x.prototype.fill = function(h, v, F) {
|
|
17159
|
+
if (v = v || 0, F = F || this.length, z(typeof (h = typeof (h = h || 0) == "string" ? h.charCodeAt(0) : h) == "number" && !isNaN(h), "value is not a number"), z(v <= F, "end < start"), F !== v && this.length !== 0) {
|
|
17160
|
+
z(0 <= v && v < this.length, "start out of bounds"), z(0 <= F && F <= this.length, "end out of bounds");
|
|
17161
|
+
for (var M = v; M < F; M++) this[M] = h;
|
|
17162
17162
|
}
|
|
17163
17163
|
}, x.prototype.inspect = function() {
|
|
17164
|
-
for (var h = [],
|
|
17164
|
+
for (var h = [], v = this.length, F = 0; F < v; F++) if (h[F] = le(this[F]), F === r.INSPECT_MAX_BYTES) {
|
|
17165
17165
|
h[F + 1] = "...";
|
|
17166
17166
|
break;
|
|
17167
17167
|
}
|
|
@@ -17169,37 +17169,37 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17169
17169
|
}, x.prototype.toArrayBuffer = function() {
|
|
17170
17170
|
if (typeof Uint8Array > "u") throw new Error("Buffer.toArrayBuffer not supported in this browser");
|
|
17171
17171
|
if (x._useTypedArrays) return new x(this).buffer;
|
|
17172
|
-
for (var h = new Uint8Array(this.length),
|
|
17172
|
+
for (var h = new Uint8Array(this.length), v = 0, F = h.length; v < F; v += 1) h[v] = this[v];
|
|
17173
17173
|
return h.buffer;
|
|
17174
17174
|
};
|
|
17175
17175
|
var W = x.prototype;
|
|
17176
|
-
function ge(h,
|
|
17177
|
-
return typeof h != "number" ? F :
|
|
17176
|
+
function ge(h, v, F) {
|
|
17177
|
+
return typeof h != "number" ? F : v <= (h = ~~h) ? v : 0 <= h || 0 <= (h += v) ? h : 0;
|
|
17178
17178
|
}
|
|
17179
17179
|
function Be(h) {
|
|
17180
17180
|
return (h = ~~Math.ceil(+h)) < 0 ? 0 : h;
|
|
17181
17181
|
}
|
|
17182
17182
|
function me(h) {
|
|
17183
|
-
return (Array.isArray || function(
|
|
17184
|
-
return Object.prototype.toString.call(
|
|
17183
|
+
return (Array.isArray || function(v) {
|
|
17184
|
+
return Object.prototype.toString.call(v) === "[object Array]";
|
|
17185
17185
|
})(h);
|
|
17186
17186
|
}
|
|
17187
17187
|
function le(h) {
|
|
17188
17188
|
return h < 16 ? "0" + h.toString(16) : h.toString(16);
|
|
17189
17189
|
}
|
|
17190
17190
|
function Jt(h) {
|
|
17191
|
-
for (var
|
|
17191
|
+
for (var v = [], F = 0; F < h.length; F++) {
|
|
17192
17192
|
var M = h.charCodeAt(F);
|
|
17193
|
-
if (M <= 127)
|
|
17194
|
-
else for (var j = F, Q = (55296 <= M && M <= 57343 && F++, encodeURIComponent(h.slice(j, F + 1)).substr(1).split("%")), oe = 0; oe < Q.length; oe++)
|
|
17193
|
+
if (M <= 127) v.push(h.charCodeAt(F));
|
|
17194
|
+
else for (var j = F, Q = (55296 <= M && M <= 57343 && F++, encodeURIComponent(h.slice(j, F + 1)).substr(1).split("%")), oe = 0; oe < Q.length; oe++) v.push(parseInt(Q[oe], 16));
|
|
17195
17195
|
}
|
|
17196
|
-
return
|
|
17196
|
+
return v;
|
|
17197
17197
|
}
|
|
17198
17198
|
function ho(h) {
|
|
17199
|
-
return
|
|
17199
|
+
return E.toByteArray(h);
|
|
17200
17200
|
}
|
|
17201
|
-
function qi(h,
|
|
17202
|
-
for (var j = 0; j < M && !(j + F >=
|
|
17201
|
+
function qi(h, v, F, M) {
|
|
17202
|
+
for (var j = 0; j < M && !(j + F >= v.length || j >= h.length); j++) v[j + F] = h[j];
|
|
17203
17203
|
return j;
|
|
17204
17204
|
}
|
|
17205
17205
|
function po(h) {
|
|
@@ -17209,46 +17209,46 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17209
17209
|
return "�";
|
|
17210
17210
|
}
|
|
17211
17211
|
}
|
|
17212
|
-
function zr(h,
|
|
17213
|
-
z(typeof h == "number", "cannot write a non-number as a number"), z(0 <= h, "specified a negative value for writing an unsigned value"), z(h <=
|
|
17212
|
+
function zr(h, v) {
|
|
17213
|
+
z(typeof h == "number", "cannot write a non-number as a number"), z(0 <= h, "specified a negative value for writing an unsigned value"), z(h <= v, "value is larger than maximum value for type"), z(Math.floor(h) === h, "value has a fractional component");
|
|
17214
17214
|
}
|
|
17215
|
-
function Qr(h,
|
|
17216
|
-
z(typeof h == "number", "cannot write a non-number as a number"), z(h <=
|
|
17215
|
+
function Qr(h, v, F) {
|
|
17216
|
+
z(typeof h == "number", "cannot write a non-number as a number"), z(h <= v, "value larger than maximum allowed value"), z(F <= h, "value smaller than minimum allowed value"), z(Math.floor(h) === h, "value has a fractional component");
|
|
17217
17217
|
}
|
|
17218
|
-
function go(h,
|
|
17219
|
-
z(typeof h == "number", "cannot write a non-number as a number"), z(h <=
|
|
17218
|
+
function go(h, v, F) {
|
|
17219
|
+
z(typeof h == "number", "cannot write a non-number as a number"), z(h <= v, "value larger than maximum allowed value"), z(F <= h, "value smaller than minimum allowed value");
|
|
17220
17220
|
}
|
|
17221
|
-
function z(h,
|
|
17222
|
-
if (!h) throw new Error(
|
|
17221
|
+
function z(h, v) {
|
|
17222
|
+
if (!h) throw new Error(v || "Failed assertion");
|
|
17223
17223
|
}
|
|
17224
17224
|
x._augment = function(h) {
|
|
17225
17225
|
return h._isBuffer = !0, h._get = h.get, h._set = h.set, h.get = W.get, h.set = W.set, h.write = W.write, h.toString = W.toString, h.toLocaleString = W.toString, h.toJSON = W.toJSON, h.copy = W.copy, h.slice = W.slice, h.readUInt8 = W.readUInt8, h.readUInt16LE = W.readUInt16LE, h.readUInt16BE = W.readUInt16BE, h.readUInt32LE = W.readUInt32LE, h.readUInt32BE = W.readUInt32BE, h.readInt8 = W.readInt8, h.readInt16LE = W.readInt16LE, h.readInt16BE = W.readInt16BE, h.readInt32LE = W.readInt32LE, h.readInt32BE = W.readInt32BE, h.readFloatLE = W.readFloatLE, h.readFloatBE = W.readFloatBE, h.readDoubleLE = W.readDoubleLE, h.readDoubleBE = W.readDoubleBE, h.writeUInt8 = W.writeUInt8, h.writeUInt16LE = W.writeUInt16LE, h.writeUInt16BE = W.writeUInt16BE, h.writeUInt32LE = W.writeUInt32LE, h.writeUInt32BE = W.writeUInt32BE, h.writeInt8 = W.writeInt8, h.writeInt16LE = W.writeInt16LE, h.writeInt16BE = W.writeInt16BE, h.writeInt32LE = W.writeInt32LE, h.writeInt32BE = W.writeInt32BE, h.writeFloatLE = W.writeFloatLE, h.writeFloatBE = W.writeFloatBE, h.writeDoubleLE = W.writeDoubleLE, h.writeDoubleBE = W.writeDoubleBE, h.fill = W.fill, h.inspect = W.inspect, h.toArrayBuffer = W.toArrayBuffer, h;
|
|
17226
17226
|
};
|
|
17227
17227
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
|
|
17228
17228
|
}, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(n, i, r) {
|
|
17229
|
-
(function(s, o,
|
|
17230
|
-
var
|
|
17229
|
+
(function(s, o, E, u, c, f, g, p, w) {
|
|
17230
|
+
var E = n("buffer").Buffer, R = 4, x = new E(R);
|
|
17231
17231
|
x.fill(0), i.exports = { hash: function(y, S, A, O) {
|
|
17232
17232
|
for (var C = S(function(d, N) {
|
|
17233
|
-
d.length % R != 0 && (L = d.length + (R - d.length % R), d =
|
|
17233
|
+
d.length % R != 0 && (L = d.length + (R - d.length % R), d = E.concat([d, x], L));
|
|
17234
17234
|
for (var L, J = [], q = N ? d.readInt32BE : d.readInt32LE, Z = 0; Z < d.length; Z += R) J.push(q.call(d, Z));
|
|
17235
17235
|
return J;
|
|
17236
|
-
}(y =
|
|
17236
|
+
}(y = E.isBuffer(y) ? y : new E(y), O), 8 * y.length), S = O, T = new E(A), _ = S ? T.writeInt32BE : T.writeInt32LE, m = 0; m < C.length; m++) _.call(T, C[m], 4 * m, !0);
|
|
17237
17237
|
return T;
|
|
17238
17238
|
} };
|
|
17239
17239
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17240
17240
|
}, { buffer: 3, lYpoI2: 11 }], 5: [function(n, i, r) {
|
|
17241
|
-
(function(s, o,
|
|
17242
|
-
var
|
|
17241
|
+
(function(s, o, E, u, c, f, g, p, w) {
|
|
17242
|
+
var E = n("buffer").Buffer, R = n("./sha"), x = n("./sha256"), y = n("./rng"), S = { sha1: R, sha256: x, md5: n("./md5") }, A = 64, O = new E(A);
|
|
17243
17243
|
function C(d, N) {
|
|
17244
17244
|
var L = S[d = d || "sha1"], J = [];
|
|
17245
17245
|
return L || T("algorithm:", d, "is not yet supported"), { update: function(q) {
|
|
17246
|
-
return
|
|
17246
|
+
return E.isBuffer(q) || (q = new E(q)), J.push(q), q.length, this;
|
|
17247
17247
|
}, digest: function(q) {
|
|
17248
|
-
var Z =
|
|
17249
|
-
|
|
17250
|
-
for (var me = new
|
|
17251
|
-
return Be = W(
|
|
17248
|
+
var Z = E.concat(J), Z = N ? function(W, ge, Be) {
|
|
17249
|
+
E.isBuffer(ge) || (ge = new E(ge)), E.isBuffer(Be) || (Be = new E(Be)), ge.length > A ? ge = W(ge) : ge.length < A && (ge = E.concat([ge, O], A));
|
|
17250
|
+
for (var me = new E(A), le = new E(A), Jt = 0; Jt < A; Jt++) me[Jt] = 54 ^ ge[Jt], le[Jt] = 92 ^ ge[Jt];
|
|
17251
|
+
return Be = W(E.concat([me, Be])), W(E.concat([le, Be]));
|
|
17252
17252
|
}(L, N, Z) : L(Z);
|
|
17253
17253
|
return J = null, q ? Z.toString(q) : Z;
|
|
17254
17254
|
} };
|
|
@@ -17261,9 +17261,9 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17261
17261
|
O.fill(0), r.createHash = function(d) {
|
|
17262
17262
|
return C(d);
|
|
17263
17263
|
}, r.createHmac = C, r.randomBytes = function(d, N) {
|
|
17264
|
-
if (!N || !N.call) return new
|
|
17264
|
+
if (!N || !N.call) return new E(y(d));
|
|
17265
17265
|
try {
|
|
17266
|
-
N.call(this, void 0, new
|
|
17266
|
+
N.call(this, void 0, new E(y(d)));
|
|
17267
17267
|
} catch (L) {
|
|
17268
17268
|
N(L);
|
|
17269
17269
|
}
|
|
@@ -17277,7 +17277,7 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17277
17277
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17278
17278
|
}, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(n, i, r) {
|
|
17279
17279
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17280
|
-
var
|
|
17280
|
+
var E = n("./helpers");
|
|
17281
17281
|
function R(T, _) {
|
|
17282
17282
|
T[_ >> 5] |= 128 << _ % 32, T[14 + (_ + 64 >>> 9 << 4)] = _;
|
|
17283
17283
|
for (var m = 1732584193, b = -271733879, d = -1732584194, N = 271733878, L = 0; L < T.length; L += 16) {
|
|
@@ -17306,19 +17306,19 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17306
17306
|
return (T >> 16) + (_ >> 16) + (m >> 16) << 16 | 65535 & m;
|
|
17307
17307
|
}
|
|
17308
17308
|
i.exports = function(T) {
|
|
17309
|
-
return
|
|
17309
|
+
return E.hash(T, R, 16);
|
|
17310
17310
|
};
|
|
17311
17311
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17312
17312
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(n, i, r) {
|
|
17313
17313
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17314
|
-
i.exports = function(
|
|
17315
|
-
for (var R, x = new Array(
|
|
17314
|
+
i.exports = function(E) {
|
|
17315
|
+
for (var R, x = new Array(E), y = 0; y < E; y++) !(3 & y) && (R = 4294967296 * Math.random()), x[y] = R >>> ((3 & y) << 3) & 255;
|
|
17316
17316
|
return x;
|
|
17317
17317
|
};
|
|
17318
17318
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17319
17319
|
}, { buffer: 3, lYpoI2: 11 }], 8: [function(n, i, r) {
|
|
17320
17320
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17321
|
-
var
|
|
17321
|
+
var E = n("./helpers");
|
|
17322
17322
|
function R(S, A) {
|
|
17323
17323
|
S[A >> 5] |= 128 << 24 - A % 32, S[15 + (A + 64 >> 9 << 4)] = A;
|
|
17324
17324
|
for (var O, C, T, _ = Array(80), m = 1732584193, b = -271733879, d = -1732584194, N = 271733878, L = -1009589776, J = 0; J < S.length; J += 16) {
|
|
@@ -17338,12 +17338,12 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17338
17338
|
return S << A | S >>> 32 - A;
|
|
17339
17339
|
}
|
|
17340
17340
|
i.exports = function(S) {
|
|
17341
|
-
return
|
|
17341
|
+
return E.hash(S, R, 20, !0);
|
|
17342
17342
|
};
|
|
17343
17343
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17344
17344
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(n, i, r) {
|
|
17345
17345
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17346
|
-
function
|
|
17346
|
+
function E(A, O) {
|
|
17347
17347
|
var C = (65535 & A) + (65535 & O);
|
|
17348
17348
|
return (A >> 16) + (O >> 16) + (C >> 16) << 16 | 65535 & C;
|
|
17349
17349
|
}
|
|
@@ -17351,8 +17351,8 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17351
17351
|
var C, T = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), _ = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), m = new Array(64);
|
|
17352
17352
|
A[O >> 5] |= 128 << 24 - O % 32, A[15 + (O + 64 >> 9 << 4)] = O;
|
|
17353
17353
|
for (var b, d, N = 0; N < A.length; N += 16) {
|
|
17354
|
-
for (var L = _[0], J = _[1], q = _[2], Z = _[3], W = _[4], ge = _[5], Be = _[6], me = _[7], le = 0; le < 64; le++) m[le] = le < 16 ? A[le + N] :
|
|
17355
|
-
_[0] =
|
|
17354
|
+
for (var L = _[0], J = _[1], q = _[2], Z = _[3], W = _[4], ge = _[5], Be = _[6], me = _[7], le = 0; le < 64; le++) m[le] = le < 16 ? A[le + N] : E(E(E((d = m[le - 2], y(d, 17) ^ y(d, 19) ^ S(d, 10)), m[le - 7]), (d = m[le - 15], y(d, 7) ^ y(d, 18) ^ S(d, 3))), m[le - 16]), C = E(E(E(E(me, y(d = W, 6) ^ y(d, 11) ^ y(d, 25)), W & ge ^ ~W & Be), T[le]), m[le]), b = E(y(b = L, 2) ^ y(b, 13) ^ y(b, 22), L & J ^ L & q ^ J & q), me = Be, Be = ge, ge = W, W = E(Z, C), Z = q, q = J, J = L, L = E(C, b);
|
|
17355
|
+
_[0] = E(L, _[0]), _[1] = E(J, _[1]), _[2] = E(q, _[2]), _[3] = E(Z, _[3]), _[4] = E(W, _[4]), _[5] = E(ge, _[5]), _[6] = E(Be, _[6]), _[7] = E(me, _[7]);
|
|
17356
17356
|
}
|
|
17357
17357
|
return _;
|
|
17358
17358
|
}
|
|
@@ -17367,35 +17367,35 @@ list should be an Array.`), h.length === 0) return new x(0);
|
|
|
17367
17367
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
|
|
17368
17368
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(n, i, r) {
|
|
17369
17369
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17370
|
-
r.read = function(
|
|
17371
|
-
var A, O, C = 8 * N - y - 1, T = (1 << C) - 1, _ = T >> 1, m = -7, b = x ? N - 1 : 0, d = x ? -1 : 1, N =
|
|
17372
|
-
for (b += d, A = N & (1 << -m) - 1, N >>= -m, m += C; 0 < m; A = 256 * A +
|
|
17373
|
-
for (O = A & (1 << -m) - 1, A >>= -m, m += y; 0 < m; O = 256 * O +
|
|
17370
|
+
r.read = function(E, R, x, y, N) {
|
|
17371
|
+
var A, O, C = 8 * N - y - 1, T = (1 << C) - 1, _ = T >> 1, m = -7, b = x ? N - 1 : 0, d = x ? -1 : 1, N = E[R + b];
|
|
17372
|
+
for (b += d, A = N & (1 << -m) - 1, N >>= -m, m += C; 0 < m; A = 256 * A + E[R + b], b += d, m -= 8) ;
|
|
17373
|
+
for (O = A & (1 << -m) - 1, A >>= -m, m += y; 0 < m; O = 256 * O + E[R + b], b += d, m -= 8) ;
|
|
17374
17374
|
if (A === 0) A = 1 - _;
|
|
17375
17375
|
else {
|
|
17376
17376
|
if (A === T) return O ? NaN : 1 / 0 * (N ? -1 : 1);
|
|
17377
17377
|
O += Math.pow(2, y), A -= _;
|
|
17378
17378
|
}
|
|
17379
17379
|
return (N ? -1 : 1) * O * Math.pow(2, A - y);
|
|
17380
|
-
}, r.write = function(
|
|
17380
|
+
}, r.write = function(E, R, x, y, S, L) {
|
|
17381
17381
|
var O, C, T = 8 * L - S - 1, _ = (1 << T) - 1, m = _ >> 1, b = S === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, d = y ? 0 : L - 1, N = y ? 1 : -1, L = R < 0 || R === 0 && 1 / R < 0 ? 1 : 0;
|
|
17382
|
-
for (R = Math.abs(R), isNaN(R) || R === 1 / 0 ? (C = isNaN(R) ? 1 : 0, O = _) : (O = Math.floor(Math.log(R) / Math.LN2), R * (y = Math.pow(2, -O)) < 1 && (O--, y *= 2), 2 <= (R += 1 <= O + m ? b / y : b * Math.pow(2, 1 - m)) * y && (O++, y /= 2), _ <= O + m ? (C = 0, O = _) : 1 <= O + m ? (C = (R * y - 1) * Math.pow(2, S), O += m) : (C = R * Math.pow(2, m - 1) * Math.pow(2, S), O = 0)); 8 <= S;
|
|
17383
|
-
for (O = O << S | C, T += S; 0 < T;
|
|
17384
|
-
|
|
17382
|
+
for (R = Math.abs(R), isNaN(R) || R === 1 / 0 ? (C = isNaN(R) ? 1 : 0, O = _) : (O = Math.floor(Math.log(R) / Math.LN2), R * (y = Math.pow(2, -O)) < 1 && (O--, y *= 2), 2 <= (R += 1 <= O + m ? b / y : b * Math.pow(2, 1 - m)) * y && (O++, y /= 2), _ <= O + m ? (C = 0, O = _) : 1 <= O + m ? (C = (R * y - 1) * Math.pow(2, S), O += m) : (C = R * Math.pow(2, m - 1) * Math.pow(2, S), O = 0)); 8 <= S; E[x + d] = 255 & C, d += N, C /= 256, S -= 8) ;
|
|
17383
|
+
for (O = O << S | C, T += S; 0 < T; E[x + d] = 255 & O, d += N, O /= 256, T -= 8) ;
|
|
17384
|
+
E[x + d - N] |= 128 * L;
|
|
17385
17385
|
};
|
|
17386
17386
|
}).call(this, n("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, n("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
|
|
17387
17387
|
}, { buffer: 3, lYpoI2: 11 }], 11: [function(n, i, r) {
|
|
17388
17388
|
(function(s, o, a, u, c, f, g, p, w) {
|
|
17389
|
-
var
|
|
17389
|
+
var E, R, x;
|
|
17390
17390
|
function y() {
|
|
17391
17391
|
}
|
|
17392
17392
|
(s = i.exports = {}).nextTick = (R = typeof window < "u" && window.setImmediate, x = typeof window < "u" && window.postMessage && window.addEventListener, R ? function(S) {
|
|
17393
17393
|
return window.setImmediate(S);
|
|
17394
|
-
} : x ? (
|
|
17394
|
+
} : x ? (E = [], window.addEventListener("message", function(S) {
|
|
17395
17395
|
var A = S.source;
|
|
17396
|
-
A !== window && A !== null || S.data !== "process-tick" || (S.stopPropagation(), 0 <
|
|
17396
|
+
A !== window && A !== null || S.data !== "process-tick" || (S.stopPropagation(), 0 < E.length && E.shift()());
|
|
17397
17397
|
}, !0), function(S) {
|
|
17398
|
-
|
|
17398
|
+
E.push(S), window.postMessage("process-tick", "*");
|
|
17399
17399
|
}) : function(S) {
|
|
17400
17400
|
setTimeout(S, 0);
|
|
17401
17401
|
}), s.title = "browser", s.browser = !0, s.env = {}, s.argv = [], s.on = y, s.addListener = y, s.once = y, s.off = y, s.removeListener = y, s.removeAllListeners = y, s.emit = y, s.binding = function(S) {
|
|
@@ -17463,14 +17463,14 @@ function hl(t, e) {
|
|
|
17463
17463
|
const n = t.locationOffset.column - 1, i = "".padStart(n) + t.body, r = e.line - 1, s = t.locationOffset.line - 1, o = e.line + s, a = e.line === 1 ? n : 0, u = e.column + a, c = `${t.name}:${o}:${u}
|
|
17464
17464
|
`, f = i.split(/\r\n|[\n\r]/g), g = f[r];
|
|
17465
17465
|
if (g.length > 120) {
|
|
17466
|
-
const p = Math.floor(u / 80), w = u % 80,
|
|
17466
|
+
const p = Math.floor(u / 80), w = u % 80, E = [];
|
|
17467
17467
|
for (let R = 0; R < g.length; R += 80)
|
|
17468
|
-
|
|
17468
|
+
E.push(g.slice(R, R + 80));
|
|
17469
17469
|
return c + Ia([
|
|
17470
|
-
[`${o} |`,
|
|
17471
|
-
...
|
|
17470
|
+
[`${o} |`, E[0]],
|
|
17471
|
+
...E.slice(1, p + 1).map((R) => ["|", R]),
|
|
17472
17472
|
["|", "^".padStart(w)],
|
|
17473
|
-
["|",
|
|
17473
|
+
["|", E[p + 1]]
|
|
17474
17474
|
]);
|
|
17475
17475
|
}
|
|
17476
17476
|
return c + Ia([
|
|
@@ -17550,10 +17550,10 @@ class oo extends Error {
|
|
|
17550
17550
|
Array.isArray(o) ? o : o ? [o] : void 0
|
|
17551
17551
|
);
|
|
17552
17552
|
const p = Aa(
|
|
17553
|
-
(i = this.nodes) === null || i === void 0 ? void 0 : i.map((
|
|
17553
|
+
(i = this.nodes) === null || i === void 0 ? void 0 : i.map((E) => E.loc).filter((E) => E != null)
|
|
17554
17554
|
);
|
|
17555
|
-
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((
|
|
17556
|
-
(
|
|
17555
|
+
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((E) => E.start)), this.locations = u && a ? u.map((E) => (0, Oa.getLocation)(a, E)) : p == null ? void 0 : p.map(
|
|
17556
|
+
(E) => (0, Oa.getLocation)(E.source, E.start)
|
|
17557
17557
|
);
|
|
17558
17558
|
const w = (0, rm.isObjectLike)(
|
|
17559
17559
|
f == null ? void 0 : f.extensions
|
|
@@ -17703,9 +17703,9 @@ Object.defineProperty(lo, "__esModule", {
|
|
|
17703
17703
|
lo.toError = bm;
|
|
17704
17704
|
var ym = co;
|
|
17705
17705
|
function bm(t) {
|
|
17706
|
-
return t instanceof Error ? t : new
|
|
17706
|
+
return t instanceof Error ? t : new Em(t);
|
|
17707
17707
|
}
|
|
17708
|
-
class
|
|
17708
|
+
class Em extends Error {
|
|
17709
17709
|
constructor(e) {
|
|
17710
17710
|
super("Unexpected error value: " + (0, ym.inspect)(e)), this.name = "NonErrorThrown", this.thrownValue = e;
|
|
17711
17711
|
}
|
|
@@ -17714,10 +17714,10 @@ Object.defineProperty(uo, "__esModule", {
|
|
|
17714
17714
|
value: !0
|
|
17715
17715
|
});
|
|
17716
17716
|
uo.locatedError = Tm;
|
|
17717
|
-
var
|
|
17717
|
+
var vm = lo, wm = wn;
|
|
17718
17718
|
function Tm(t, e, n) {
|
|
17719
17719
|
var i;
|
|
17720
|
-
const r = (0,
|
|
17720
|
+
const r = (0, vm.toError)(t);
|
|
17721
17721
|
return Sm(r) ? r : new wm.GraphQLError(r.message, {
|
|
17722
17722
|
nodes: (i = r.nodes) !== null && i !== void 0 ? i : e,
|
|
17723
17723
|
source: r.source,
|
|
@@ -17807,21 +17807,17 @@ const ss = /* @__PURE__ */ new Map(), _m = (t, e) => {
|
|
|
17807
17807
|
return o;
|
|
17808
17808
|
}, s = await r(n);
|
|
17809
17809
|
return os.set(t, s), s;
|
|
17810
|
-
}
|
|
17811
|
-
function dn(t, e) {
|
|
17810
|
+
}, dn = (t, e) => {
|
|
17812
17811
|
const n = {};
|
|
17813
17812
|
for (const [i, r] of Object.entries(t))
|
|
17814
17813
|
Array.isArray(r) ? n[i] = r.map(
|
|
17815
17814
|
(s) => typeof s == "object" && s !== null ? dn(s, e) : s
|
|
17816
17815
|
) : typeof r == "object" && r !== null ? n[i] = dn(r, e) : n[i] = r;
|
|
17817
17816
|
return e(n);
|
|
17818
|
-
}
|
|
17819
|
-
const Nm = (t) => {
|
|
17817
|
+
}, Nm = (t) => {
|
|
17820
17818
|
var e;
|
|
17821
17819
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = dn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = dn(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 = dn(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
17822
|
-
default:
|
|
17823
|
-
value: n.example
|
|
17824
|
-
}
|
|
17820
|
+
default: n.example
|
|
17825
17821
|
}, delete n.example), n)), t = dn(t, (n) => {
|
|
17826
17822
|
if (n.type === "object" && n.properties !== void 0)
|
|
17827
17823
|
for (const [, i] of Object.entries(n.properties)) {
|
|
@@ -17931,7 +17927,7 @@ const Nm = (t) => {
|
|
|
17931
17927
|
name: t.exposeString("name", { nullable: !0 }),
|
|
17932
17928
|
description: t.exposeString("description", { nullable: !0 }),
|
|
17933
17929
|
operations: t.field({
|
|
17934
|
-
type: [
|
|
17930
|
+
type: [vl],
|
|
17935
17931
|
resolve: (e, n, i) => {
|
|
17936
17932
|
const r = ml(i.schema).map((s) => s.name);
|
|
17937
17933
|
return yl(i.schema.paths, e.name).filter(
|
|
@@ -17999,7 +17995,7 @@ const Nm = (t) => {
|
|
|
17999
17995
|
}),
|
|
18000
17996
|
schema: t.expose("schema", { type: ai, nullable: !0 })
|
|
18001
17997
|
})
|
|
18002
|
-
}),
|
|
17998
|
+
}), El = Me.objectRef("MediaTypeObject").implement({
|
|
18003
17999
|
fields: (t) => ({
|
|
18004
18000
|
mediaType: t.exposeString("mediaType"),
|
|
18005
18001
|
schema: t.expose("schema", { type: ai, nullable: !0 }),
|
|
@@ -18009,18 +18005,18 @@ const Nm = (t) => {
|
|
|
18009
18005
|
}), Vm = Me.objectRef("RequestBodyObject").implement({
|
|
18010
18006
|
fields: (t) => ({
|
|
18011
18007
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18012
|
-
content: t.expose("content", { type: [
|
|
18008
|
+
content: t.expose("content", { type: [El], nullable: !0 }),
|
|
18013
18009
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
18014
18010
|
})
|
|
18015
18011
|
}), Bm = Me.objectRef("ResponseItem").implement({
|
|
18016
18012
|
fields: (t) => ({
|
|
18017
18013
|
statusCode: t.exposeString("statusCode"),
|
|
18018
18014
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18019
|
-
content: t.expose("content", { type: [
|
|
18015
|
+
content: t.expose("content", { type: [El], nullable: !0 }),
|
|
18020
18016
|
headers: t.expose("headers", { type: ai, nullable: !0 }),
|
|
18021
18017
|
links: t.expose("links", { type: ai, nullable: !0 })
|
|
18022
18018
|
})
|
|
18023
|
-
}),
|
|
18019
|
+
}), vl = Me.objectRef("OperationItem").implement({
|
|
18024
18020
|
fields: (t) => ({
|
|
18025
18021
|
slug: t.exposeString("slug"),
|
|
18026
18022
|
path: t.exposeString("path"),
|
|
@@ -18132,7 +18128,7 @@ const Nm = (t) => {
|
|
|
18132
18128
|
}
|
|
18133
18129
|
}),
|
|
18134
18130
|
operations: t.field({
|
|
18135
|
-
type: [
|
|
18131
|
+
type: [vl],
|
|
18136
18132
|
args: {
|
|
18137
18133
|
path: t.arg.string(),
|
|
18138
18134
|
method: t.arg.string(),
|
|
@@ -18198,4 +18194,4 @@ Jm.addEventListener("connect", (t) => {
|
|
|
18198
18194
|
}
|
|
18199
18195
|
}, e.start();
|
|
18200
18196
|
});
|
|
18201
|
-
//# sourceMappingURL=worker-
|
|
18197
|
+
//# sourceMappingURL=worker-BHClFO3A.js.map
|