zudoku 0.23.9 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +1 -1
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/lib/components/index.d.ts +17 -13
- package/dist/lib/components/index.js +6 -2
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +1 -1
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.d.ts +1 -0
- package/dist/lib/oas/parser/dereference/index.js +6 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +7 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
- package/dist/vite/dev-server.d.ts +1 -0
- package/dist/vite/dev-server.js +4 -0
- package/dist/vite/dev-server.js.map +1 -1
- package/lib/{AuthenticationPlugin-fB7viE7A.js → AuthenticationPlugin-DVLEc6cm.js} +2 -2
- package/lib/{AuthenticationPlugin-fB7viE7A.js.map → AuthenticationPlugin-DVLEc6cm.js.map} +1 -1
- package/lib/{MdxPage-CPBw4_lf.js → MdxPage-DKMbBROv.js} +2 -2
- package/lib/{MdxPage-CPBw4_lf.js.map → MdxPage-DKMbBROv.js.map} +1 -1
- package/lib/{OperationList-ChQR0IcQ.js → OperationList-CqLL5P5l.js} +574 -568
- package/lib/{OperationList-ChQR0IcQ.js.map → OperationList-CqLL5P5l.js.map} +1 -1
- package/lib/{Route-Ag5MH86N.js → Route-DYwKZ_c_.js} +2 -2
- package/lib/{Route-Ag5MH86N.js.map → Route-DYwKZ_c_.js.map} +1 -1
- package/lib/{Select-D3XuKKuH.js → Select-B_IxRUUC.js} +3 -3
- package/lib/{Select-D3XuKKuH.js.map → Select-B_IxRUUC.js.map} +1 -1
- package/lib/{utils-B4O1uet5.js → ZudokuContext-hmLMUdf2.js} +37 -37
- package/lib/ZudokuContext-hmLMUdf2.js.map +1 -0
- package/lib/assets/{worker-D2kRl-cG.js → worker-DV9Ecqy9.js} +348 -346
- package/lib/assets/{worker-D2kRl-cG.js.map → worker-DV9Ecqy9.js.map} +1 -1
- package/lib/{createServer-69sLlmQA.js → createServer-C4C0OO0m.js} +1250 -1285
- package/lib/createServer-C4C0OO0m.js.map +1 -0
- package/lib/{hook-DgGeo5iL.js → hook-CHq7pFyz.js} +2 -2
- package/lib/{hook-DgGeo5iL.js.map → hook-CHq7pFyz.js.map} +1 -1
- package/lib/index-DyBL--Kz.js +826 -0
- package/lib/index-DyBL--Kz.js.map +1 -0
- package/lib/{index-DtJxZrbj.js → index-DzRORsY1.js} +7 -7
- package/lib/{index-DtJxZrbj.js.map → index-DzRORsY1.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +2 -2
- package/lib/zudoku.components.js +173 -172
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +3 -3
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/package.json +3 -3
- package/src/lib/components/index.ts +7 -3
- package/src/lib/components/navigation/SidebarItem.tsx +1 -1
- package/src/lib/oas/parser/dereference/index.ts +9 -4
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +25 -1
- package/lib/createServer-69sLlmQA.js.map +0 -1
- package/lib/object_hash-BNWPnMN9.js +0 -787
- package/lib/object_hash-BNWPnMN9.js.map +0 -1
- package/lib/utils-B4O1uet5.js.map +0 -1
|
@@ -99,7 +99,7 @@ const Ro = (t) => (...e) => t(Yl(e));
|
|
|
99
99
|
function Wt(t) {
|
|
100
100
|
return typeof t == "object" && t != null && typeof t[Symbol.asyncIterator] == "function";
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Co(t, e) {
|
|
103
103
|
if (Wt(t.result))
|
|
104
104
|
return { onNext: e };
|
|
105
105
|
e({
|
|
@@ -108,7 +108,7 @@ function Lo(t, e) {
|
|
|
108
108
|
setResult: t.setResult
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Lo(t, e) {
|
|
112
112
|
const n = t[Symbol.asyncIterator]();
|
|
113
113
|
let i = !1;
|
|
114
114
|
const r = {
|
|
@@ -250,7 +250,7 @@ function Jl({ plugins: t }) {
|
|
|
250
250
|
return zl.set(S, R.toString()), S;
|
|
251
251
|
} : () => i, m = l.validate.length ? (A) => (R, x, S, y, T) => {
|
|
252
252
|
let p = S ? [...S] : void 0, b = r, d = null;
|
|
253
|
-
const O = A,
|
|
253
|
+
const O = A, L = [];
|
|
254
254
|
for (const Y of l.validate) {
|
|
255
255
|
const J = Y({
|
|
256
256
|
context: O,
|
|
@@ -275,12 +275,12 @@ function Jl({ plugins: t }) {
|
|
|
275
275
|
d = V;
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
J &&
|
|
278
|
+
J && L.push(J);
|
|
279
279
|
}
|
|
280
280
|
if (d || (d = b(R, x, p, y, T)), !d)
|
|
281
281
|
return;
|
|
282
282
|
const Z = d.length === 0;
|
|
283
|
-
for (const Y of
|
|
283
|
+
for (const Y of L)
|
|
284
284
|
Y({
|
|
285
285
|
valid: Z,
|
|
286
286
|
result: d,
|
|
@@ -331,22 +331,22 @@ function Jl({ plugins: t }) {
|
|
|
331
331
|
});
|
|
332
332
|
throw T;
|
|
333
333
|
}
|
|
334
|
-
} : (A) => (R) => (R && Object.assign(A, R), A), E = l.subscribe.length,
|
|
334
|
+
} : (A) => (R) => (R && Object.assign(A, R), A), E = l.subscribe.length, C = xo(E ? async (A) => {
|
|
335
335
|
let R = o;
|
|
336
336
|
const x = [], S = [], y = A.contextValue || {};
|
|
337
337
|
let T;
|
|
338
338
|
for (const d of l.subscribe) {
|
|
339
339
|
const O = await d({
|
|
340
340
|
subscribeFn: R,
|
|
341
|
-
setSubscribeFn: (
|
|
342
|
-
R =
|
|
341
|
+
setSubscribeFn: (L) => {
|
|
342
|
+
R = L;
|
|
343
343
|
},
|
|
344
|
-
extendContext: (
|
|
345
|
-
Object.assign(y,
|
|
344
|
+
extendContext: (L) => {
|
|
345
|
+
Object.assign(y, L);
|
|
346
346
|
},
|
|
347
347
|
args: A,
|
|
348
|
-
setResultAndStopExecution: (
|
|
349
|
-
T =
|
|
348
|
+
setResultAndStopExecution: (L) => {
|
|
349
|
+
T = L;
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
352
|
if (O && (O.onSubscribeResult && x.push(O.onSubscribeResult), O.onSubscribeError && S.push(O.onSubscribeError)), T !== void 0)
|
|
@@ -364,8 +364,8 @@ function Jl({ plugins: t }) {
|
|
|
364
364
|
const O = d({
|
|
365
365
|
args: A,
|
|
366
366
|
result: T,
|
|
367
|
-
setResult: (
|
|
368
|
-
T =
|
|
367
|
+
setResult: (L) => {
|
|
368
|
+
T = L;
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
371
|
O && (O.onNext && p.push(O.onNext), O.onEnd && b.push(O.onEnd));
|
|
@@ -375,16 +375,16 @@ function Jl({ plugins: t }) {
|
|
|
375
375
|
await O({
|
|
376
376
|
args: A,
|
|
377
377
|
result: d,
|
|
378
|
-
setResult: (
|
|
378
|
+
setResult: (L) => d = L
|
|
379
379
|
});
|
|
380
380
|
return d;
|
|
381
|
-
})), b.length && Wt(T) && (T =
|
|
381
|
+
})), b.length && Wt(T) && (T = Lo(T, () => {
|
|
382
382
|
for (const d of b)
|
|
383
383
|
d();
|
|
384
384
|
})), S.length && Wt(T) && (T = Hl(T, (d) => {
|
|
385
385
|
let O = d;
|
|
386
|
-
for (const
|
|
387
|
-
|
|
386
|
+
for (const L of S)
|
|
387
|
+
L({
|
|
388
388
|
error: O,
|
|
389
389
|
setError: (Z) => {
|
|
390
390
|
O = Z;
|
|
@@ -440,7 +440,7 @@ function Jl({ plugins: t }) {
|
|
|
440
440
|
}
|
|
441
441
|
});
|
|
442
442
|
return b;
|
|
443
|
-
})), p.length && Wt(x) && (x =
|
|
443
|
+
})), p.length && Wt(x) && (x = Lo(x, () => {
|
|
444
444
|
for (const b of p)
|
|
445
445
|
b();
|
|
446
446
|
})), x;
|
|
@@ -459,7 +459,7 @@ function Jl({ plugins: t }) {
|
|
|
459
459
|
parse: g,
|
|
460
460
|
validate: m,
|
|
461
461
|
execute: _,
|
|
462
|
-
subscribe:
|
|
462
|
+
subscribe: C,
|
|
463
463
|
contextFactory: w
|
|
464
464
|
};
|
|
465
465
|
}
|
|
@@ -554,14 +554,14 @@ function ac(t) {
|
|
|
554
554
|
onExecute() {
|
|
555
555
|
return {
|
|
556
556
|
onExecuteDone(r) {
|
|
557
|
-
return
|
|
557
|
+
return Co(r, i);
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
},
|
|
561
561
|
onSubscribe() {
|
|
562
562
|
return {
|
|
563
563
|
onSubscribeResult(r) {
|
|
564
|
-
return
|
|
564
|
+
return Co(r, i);
|
|
565
565
|
},
|
|
566
566
|
onSubscribeError({ error: r, setError: s }) {
|
|
567
567
|
s(e(r, n));
|
|
@@ -634,11 +634,11 @@ function uu(t, e) {
|
|
|
634
634
|
`, f = i.split(/\r\n|[\n\r]/g), g = f[r];
|
|
635
635
|
if (g.length > 120) {
|
|
636
636
|
const m = Math.floor(u / 80), w = u % 80, E = [];
|
|
637
|
-
for (let
|
|
638
|
-
E.push(g.slice(
|
|
637
|
+
for (let C = 0; C < g.length; C += 80)
|
|
638
|
+
E.push(g.slice(C, C + 80));
|
|
639
639
|
return l + Do([
|
|
640
640
|
[`${o} |`, E[0]],
|
|
641
|
-
...E.slice(1, m + 1).map((
|
|
641
|
+
...E.slice(1, m + 1).map((C) => ["|", C]),
|
|
642
642
|
["|", "^".padStart(w)],
|
|
643
643
|
["|", E[m + 1]]
|
|
644
644
|
]);
|
|
@@ -1053,7 +1053,7 @@ function pu(t) {
|
|
|
1053
1053
|
function gu(t) {
|
|
1054
1054
|
return t >= 56320 && t <= 57343;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Ln(t, e) {
|
|
1057
1057
|
const n = t.source.body.codePointAt(e);
|
|
1058
1058
|
if (n === void 0)
|
|
1059
1059
|
return D.EOF;
|
|
@@ -1158,7 +1158,7 @@ function vc(t, e) {
|
|
|
1158
1158
|
throw $e(
|
|
1159
1159
|
t.source,
|
|
1160
1160
|
r,
|
|
1161
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : di(s) || zr(n, r) ? `Unexpected character: ${
|
|
1161
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : di(s) || zr(n, r) ? `Unexpected character: ${Ln(t, r)}.` : `Invalid character: ${Ln(t, r)}.`
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
1164
1164
|
return _e(t, D.EOF, i, i);
|
|
@@ -1193,7 +1193,7 @@ function Sc(t, e, n) {
|
|
|
1193
1193
|
throw $e(
|
|
1194
1194
|
t.source,
|
|
1195
1195
|
r,
|
|
1196
|
-
`Invalid number, unexpected digit after 0: ${
|
|
1196
|
+
`Invalid number, unexpected digit after 0: ${Ln(
|
|
1197
1197
|
t,
|
|
1198
1198
|
r
|
|
1199
1199
|
)}.`
|
|
@@ -1204,7 +1204,7 @@ function Sc(t, e, n) {
|
|
|
1204
1204
|
throw $e(
|
|
1205
1205
|
t.source,
|
|
1206
1206
|
r,
|
|
1207
|
-
`Invalid number, expected digit but got: ${
|
|
1207
|
+
`Invalid number, expected digit but got: ${Ln(
|
|
1208
1208
|
t,
|
|
1209
1209
|
r
|
|
1210
1210
|
)}.`
|
|
@@ -1222,7 +1222,7 @@ function us(t, e, n) {
|
|
|
1222
1222
|
throw $e(
|
|
1223
1223
|
t.source,
|
|
1224
1224
|
e,
|
|
1225
|
-
`Invalid number, expected digit but got: ${
|
|
1225
|
+
`Invalid number, expected digit but got: ${Ln(
|
|
1226
1226
|
t,
|
|
1227
1227
|
e
|
|
1228
1228
|
)}.`
|
|
@@ -1256,7 +1256,7 @@ function _c(t, e) {
|
|
|
1256
1256
|
throw $e(
|
|
1257
1257
|
t.source,
|
|
1258
1258
|
r,
|
|
1259
|
-
`Invalid character within String: ${
|
|
1259
|
+
`Invalid character within String: ${Ln(
|
|
1260
1260
|
t,
|
|
1261
1261
|
r
|
|
1262
1262
|
)}.`
|
|
@@ -1405,7 +1405,7 @@ function Ac(t, e) {
|
|
|
1405
1405
|
throw $e(
|
|
1406
1406
|
t.source,
|
|
1407
1407
|
s,
|
|
1408
|
-
`Invalid character within String: ${
|
|
1408
|
+
`Invalid character within String: ${Ln(
|
|
1409
1409
|
t,
|
|
1410
1410
|
s
|
|
1411
1411
|
)}.`
|
|
@@ -1453,18 +1453,18 @@ function Rc(t, e) {
|
|
|
1453
1453
|
if (e.includes(t))
|
|
1454
1454
|
return "[Circular]";
|
|
1455
1455
|
const n = [...e, t];
|
|
1456
|
-
if (
|
|
1456
|
+
if (Cc(t)) {
|
|
1457
1457
|
const i = t.toJSON();
|
|
1458
1458
|
if (i !== t)
|
|
1459
1459
|
return typeof i == "string" ? i : Qr(i, n);
|
|
1460
1460
|
} else if (Array.isArray(t))
|
|
1461
1461
|
return kc(t, n);
|
|
1462
|
-
return
|
|
1462
|
+
return Lc(t, n);
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function Cc(t) {
|
|
1465
1465
|
return typeof t.toJSON == "function";
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function Lc(t, e) {
|
|
1468
1468
|
const n = Object.entries(t);
|
|
1469
1469
|
return n.length === 0 ? "{}" : e.length > mu ? "[" + Dc(t) + "]" : "{ " + n.map(
|
|
1470
1470
|
([r, s]) => r + ": " + Qr(s, e)
|
|
@@ -2770,13 +2770,13 @@ class Bc {
|
|
|
2770
2770
|
const g = u[(f - 1) % 3], m = u[f % 3];
|
|
2771
2771
|
let w = m[0] = f;
|
|
2772
2772
|
for (let E = 1; E <= a; E++) {
|
|
2773
|
-
const
|
|
2773
|
+
const C = r[f - 1] === s[E - 1] ? 0 : 1;
|
|
2774
2774
|
let I = Math.min(
|
|
2775
2775
|
g[E] + 1,
|
|
2776
2776
|
// delete
|
|
2777
2777
|
m[E - 1] + 1,
|
|
2778
2778
|
// insert
|
|
2779
|
-
g[E - 1] +
|
|
2779
|
+
g[E - 1] + C
|
|
2780
2780
|
// substitute
|
|
2781
2781
|
);
|
|
2782
2782
|
if (f > 1 && E > 1 && r[f - 1] === s[E - 2] && r[f - 2] === s[E - 1]) {
|
|
@@ -3016,9 +3016,9 @@ function Zs(t, e, n = fu) {
|
|
|
3016
3016
|
}
|
|
3017
3017
|
let R;
|
|
3018
3018
|
if (!Array.isArray(l)) {
|
|
3019
|
-
var E,
|
|
3019
|
+
var E, C;
|
|
3020
3020
|
_s(l) || ue(!1, `Invalid AST Node: ${G(l)}.`);
|
|
3021
|
-
const x = _ ? (E = i.get(l.kind)) === null || E === void 0 ? void 0 : E.leave : (
|
|
3021
|
+
const x = _ ? (E = i.get(l.kind)) === null || E === void 0 ? void 0 : E.leave : (C = i.get(l.kind)) === null || C === void 0 ? void 0 : C.enter;
|
|
3022
3022
|
if (R = x == null ? void 0 : x.call(e, l, f, g, m, w), R === _i)
|
|
3023
3023
|
break;
|
|
3024
3024
|
if (R === !1) {
|
|
@@ -4347,7 +4347,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4347
4347
|
},
|
|
4348
4348
|
locations: {
|
|
4349
4349
|
type: new ie(
|
|
4350
|
-
new Ue(new ie(
|
|
4350
|
+
new Ue(new ie(Cu))
|
|
4351
4351
|
),
|
|
4352
4352
|
resolve: (t) => t.locations
|
|
4353
4353
|
},
|
|
@@ -4366,7 +4366,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
4368
4368
|
})
|
|
4369
|
-
}),
|
|
4369
|
+
}), Cu = new ai({
|
|
4370
4370
|
name: "__DirectiveLocation",
|
|
4371
4371
|
description: "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
|
|
4372
4372
|
values: {
|
|
@@ -4489,7 +4489,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4489
4489
|
resolve: (t) => "specifiedByURL" in t ? t.specifiedByURL : void 0
|
|
4490
4490
|
},
|
|
4491
4491
|
fields: {
|
|
4492
|
-
type: new Ue(new ie(
|
|
4492
|
+
type: new Ue(new ie(Lu)),
|
|
4493
4493
|
args: {
|
|
4494
4494
|
includeDeprecated: {
|
|
4495
4495
|
type: Pe,
|
|
@@ -4559,7 +4559,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
|
|
|
4559
4559
|
}
|
|
4560
4560
|
}
|
|
4561
4561
|
})
|
|
4562
|
-
}),
|
|
4562
|
+
}), Lu = new tt({
|
|
4563
4563
|
name: "__Field",
|
|
4564
4564
|
description: "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",
|
|
4565
4565
|
fields: () => ({
|
|
@@ -4734,9 +4734,9 @@ const Du = new ai({
|
|
|
4734
4734
|
}, $u = Object.freeze([
|
|
4735
4735
|
ro,
|
|
4736
4736
|
Ru,
|
|
4737
|
-
Lu,
|
|
4738
|
-
Vt,
|
|
4739
4737
|
Cu,
|
|
4738
|
+
Vt,
|
|
4739
|
+
Lu,
|
|
4740
4740
|
Jr,
|
|
4741
4741
|
ku,
|
|
4742
4742
|
Du
|
|
@@ -5660,7 +5660,7 @@ function Rf(t) {
|
|
|
5660
5660
|
const e = t[t.length - 1];
|
|
5661
5661
|
switch ("kind" in e || Jt(!1), e.kind) {
|
|
5662
5662
|
case N.OPERATION_DEFINITION:
|
|
5663
|
-
return
|
|
5663
|
+
return Cf(e.operation);
|
|
5664
5664
|
case N.FIELD:
|
|
5665
5665
|
return K.FIELD;
|
|
5666
5666
|
case N.FRAGMENT_SPREAD:
|
|
@@ -5706,7 +5706,7 @@ function Rf(t) {
|
|
|
5706
5706
|
Jt(!1, "Unexpected kind: " + G(e.kind));
|
|
5707
5707
|
}
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5709
|
+
function Cf(t) {
|
|
5710
5710
|
switch (t) {
|
|
5711
5711
|
case Je.QUERY:
|
|
5712
5712
|
return K.QUERY;
|
|
@@ -5716,7 +5716,7 @@ function Lf(t) {
|
|
|
5716
5716
|
return K.SUBSCRIPTION;
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
5719
|
-
function
|
|
5719
|
+
function Lf(t) {
|
|
5720
5720
|
return {
|
|
5721
5721
|
FragmentSpread(e) {
|
|
5722
5722
|
const n = e.name.value;
|
|
@@ -6183,7 +6183,7 @@ function Qf(t, e, n, i, r, s, o, a, u) {
|
|
|
6183
6183
|
E
|
|
6184
6184
|
);
|
|
6185
6185
|
for (const E of g)
|
|
6186
|
-
for (const
|
|
6186
|
+
for (const C of w)
|
|
6187
6187
|
Mr(
|
|
6188
6188
|
t,
|
|
6189
6189
|
l,
|
|
@@ -6192,7 +6192,7 @@ function Qf(t, e, n, i, r, s, o, a, u) {
|
|
|
6192
6192
|
i,
|
|
6193
6193
|
r,
|
|
6194
6194
|
E,
|
|
6195
|
-
|
|
6195
|
+
C
|
|
6196
6196
|
);
|
|
6197
6197
|
return l;
|
|
6198
6198
|
}
|
|
@@ -6252,12 +6252,12 @@ function Gu(t, e, n, i, r, s, o, a) {
|
|
|
6252
6252
|
[m]
|
|
6253
6253
|
];
|
|
6254
6254
|
}
|
|
6255
|
-
const
|
|
6256
|
-
if (
|
|
6255
|
+
const C = f == null ? void 0 : f.type, I = w == null ? void 0 : w.type;
|
|
6256
|
+
if (C && I && xs(C, I))
|
|
6257
6257
|
return [
|
|
6258
6258
|
[
|
|
6259
6259
|
s,
|
|
6260
|
-
`they return conflicting types "${G(
|
|
6260
|
+
`they return conflicting types "${G(C)}" and "${G(
|
|
6261
6261
|
I
|
|
6262
6262
|
)}"`
|
|
6263
6263
|
],
|
|
@@ -6272,7 +6272,7 @@ function Gu(t, e, n, i, r, s, o, a) {
|
|
|
6272
6272
|
n,
|
|
6273
6273
|
i,
|
|
6274
6274
|
E,
|
|
6275
|
-
Ut(
|
|
6275
|
+
Ut(C),
|
|
6276
6276
|
_,
|
|
6277
6277
|
Ut(I),
|
|
6278
6278
|
A
|
|
@@ -6485,10 +6485,10 @@ function ed(t) {
|
|
|
6485
6485
|
const g = (f = a.arguments) !== null && f !== void 0 ? f : [], m = new Set(g.map((w) => w.name.value));
|
|
6486
6486
|
for (const [w, E] of Object.entries(l))
|
|
6487
6487
|
if (!m.has(w)) {
|
|
6488
|
-
const
|
|
6488
|
+
const C = eo(E.type) ? G(E.type) : Ee(E.type);
|
|
6489
6489
|
t.reportError(
|
|
6490
6490
|
new P(
|
|
6491
|
-
`Directive "@${u}" argument "${w}" of type "${
|
|
6491
|
+
`Directive "@${u}" argument "${w}" of type "${C}" is required, but it was not provided.`,
|
|
6492
6492
|
{
|
|
6493
6493
|
nodes: a
|
|
6494
6494
|
}
|
|
@@ -7320,7 +7320,7 @@ const Td = Object.freeze([jf]), Yu = Object.freeze([
|
|
|
7320
7320
|
nd,
|
|
7321
7321
|
_f,
|
|
7322
7322
|
hd,
|
|
7323
|
-
|
|
7323
|
+
Lf,
|
|
7324
7324
|
Vf,
|
|
7325
7325
|
Kf,
|
|
7326
7326
|
Mf,
|
|
@@ -7687,7 +7687,7 @@ function gi(t, e, n) {
|
|
|
7687
7687
|
}) : t[e] = n, t;
|
|
7688
7688
|
}
|
|
7689
7689
|
const mi = /* @__PURE__ */ new WeakMap();
|
|
7690
|
-
class
|
|
7690
|
+
class Cd {
|
|
7691
7691
|
/**
|
|
7692
7692
|
* Called for each type defined with the SchemaBuilder
|
|
7693
7693
|
* @param {PothosTypeConfig} typeConfig - Config object describing the added type
|
|
@@ -7796,7 +7796,7 @@ class Ld {
|
|
|
7796
7796
|
gi(this, "name", void 0), gi(this, "builder", void 0), gi(this, "buildCache", void 0), gi(this, "options", void 0), gi(this, "requestDataMap", Rd((i) => this.createRequestData(i))), this.name = n, this.builder = e.builder, this.buildCache = e, this.options = e.options;
|
|
7797
7797
|
}
|
|
7798
7798
|
}
|
|
7799
|
-
function
|
|
7799
|
+
function Ld(t, e, n) {
|
|
7800
7800
|
return e in t ? Object.defineProperty(t, e, {
|
|
7801
7801
|
value: n,
|
|
7802
7802
|
enumerable: !0,
|
|
@@ -7804,7 +7804,7 @@ function Cd(t, e, n) {
|
|
|
7804
7804
|
writable: !0
|
|
7805
7805
|
}) : t[e] = n, t;
|
|
7806
7806
|
}
|
|
7807
|
-
class kd extends
|
|
7807
|
+
class kd extends Cd {
|
|
7808
7808
|
onTypeConfig(e) {
|
|
7809
7809
|
return this.plugins.reduceRight((n, i) => n === null ? n : i.onTypeConfig(n), e);
|
|
7810
7810
|
}
|
|
@@ -7837,7 +7837,7 @@ class kd extends Ld {
|
|
|
7837
7837
|
return this.plugins.reduceRight((i, r) => r.wrapIsTypeOf(i, n), e);
|
|
7838
7838
|
}
|
|
7839
7839
|
constructor(e, n) {
|
|
7840
|
-
super(e, "PothosMergedPlugin"),
|
|
7840
|
+
super(e, "PothosMergedPlugin"), Ld(this, "plugins", void 0), this.plugins = n;
|
|
7841
7841
|
}
|
|
7842
7842
|
}
|
|
7843
7843
|
const Pn = Symbol.for("Pothos.outputShapeKey"), hi = Symbol.for("Pothos.parentShapeKey"), Ji = Symbol.for("Pothos.inputShapeKey"), Dd = Symbol.for("Pothos.inputFieldShapeKey"), $d = Symbol.for("Pothos.outputFieldShapeKey"), Vr = Symbol.for("Pothos.typeBrandKey");
|
|
@@ -7937,18 +7937,18 @@ function zd(t, e) {
|
|
|
7937
7937
|
};
|
|
7938
7938
|
}), n;
|
|
7939
7939
|
}
|
|
7940
|
-
function
|
|
7940
|
+
function Cs(t, e, n) {
|
|
7941
7941
|
const i = typeof n == "object" ? n.items : !1, r = typeof n == "object" ? n.list : !!n;
|
|
7942
7942
|
if (Array.isArray(t))
|
|
7943
7943
|
return {
|
|
7944
7944
|
kind: "List",
|
|
7945
|
-
type:
|
|
7945
|
+
type: Cs(t[0], e, i),
|
|
7946
7946
|
nullable: r
|
|
7947
7947
|
};
|
|
7948
7948
|
if (t instanceof Xr)
|
|
7949
7949
|
return {
|
|
7950
7950
|
kind: "List",
|
|
7951
|
-
type:
|
|
7951
|
+
type: Cs(t.listType, e, t.nullable),
|
|
7952
7952
|
nullable: r
|
|
7953
7953
|
};
|
|
7954
7954
|
const s = e.getOutputTypeRef(t), o = s instanceof Ne ? s.kind : e.getTypeConfig(s).graphqlKind, a = s instanceof Ne ? s.name : e.getTypeConfig(s).name;
|
|
@@ -7960,18 +7960,18 @@ function Ls(t, e, n) {
|
|
|
7960
7960
|
};
|
|
7961
7961
|
throw new re(`Expected input param ${a} to be an output type but got ${o}`);
|
|
7962
7962
|
}
|
|
7963
|
-
function
|
|
7963
|
+
function Ls(t, e, n) {
|
|
7964
7964
|
const i = typeof n == "object" ? n.items : !0, r = typeof n == "object" ? n.list : !!n;
|
|
7965
7965
|
if (Array.isArray(t))
|
|
7966
7966
|
return {
|
|
7967
7967
|
kind: "List",
|
|
7968
|
-
type:
|
|
7968
|
+
type: Ls(t[0], e, i),
|
|
7969
7969
|
required: r
|
|
7970
7970
|
};
|
|
7971
7971
|
if (t instanceof Kr)
|
|
7972
7972
|
return {
|
|
7973
7973
|
kind: "List",
|
|
7974
|
-
type:
|
|
7974
|
+
type: Ls(t.listType, e, t.required),
|
|
7975
7975
|
required: r
|
|
7976
7976
|
};
|
|
7977
7977
|
const s = e.getInputTypeRef(t), o = s instanceof Ne ? s.kind : e.getTypeConfig(s).graphqlKind, a = s instanceof Ne ? s.name : e.getTypeConfig(s).name;
|
|
@@ -8678,7 +8678,7 @@ class Ds {
|
|
|
8678
8678
|
kind: this.kind,
|
|
8679
8679
|
graphqlKind: this.kind,
|
|
8680
8680
|
parentType: s.name,
|
|
8681
|
-
type:
|
|
8681
|
+
type: Ls(e.type, this.builder.configStore, (o = e.required) !== null && o !== void 0 ? o : this.builder.defaultInputFieldRequiredness),
|
|
8682
8682
|
pothosOptions: e,
|
|
8683
8683
|
description: e.description,
|
|
8684
8684
|
deprecationReason: e.deprecationReason,
|
|
@@ -8762,7 +8762,7 @@ class oh {
|
|
|
8762
8762
|
parentType: o.name,
|
|
8763
8763
|
name: r,
|
|
8764
8764
|
args: u,
|
|
8765
|
-
type:
|
|
8765
|
+
type: Cs(e.type, this.builder.configStore, (m = e.nullable) !== null && m !== void 0 ? m : this.builder.defaultFieldNullability),
|
|
8766
8766
|
pothosOptions: e,
|
|
8767
8767
|
extensions: {
|
|
8768
8768
|
pothosOriginalResolve: f,
|
|
@@ -11584,7 +11584,7 @@ function po(t, e, n) {
|
|
|
11584
11584
|
throw new TypeError(t + " cannot represent value: " + Ee(e));
|
|
11585
11585
|
}
|
|
11586
11586
|
}
|
|
11587
|
-
var
|
|
11587
|
+
var Ch = new Bt({
|
|
11588
11588
|
name: "JSON",
|
|
11589
11589
|
description: "The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
11590
11590
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -11593,7 +11593,7 @@ var Lh = new Bt({
|
|
|
11593
11593
|
parseLiteral: function(e, n) {
|
|
11594
11594
|
return po("JSON", e, n);
|
|
11595
11595
|
}
|
|
11596
|
-
}),
|
|
11596
|
+
}), Lh = new Bt({
|
|
11597
11597
|
name: "JSONObject",
|
|
11598
11598
|
description: "The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).",
|
|
11599
11599
|
specifiedByUrl: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf",
|
|
@@ -11812,10 +11812,10 @@ function qh(t) {
|
|
|
11812
11812
|
u.set(r, w);
|
|
11813
11813
|
const E = /* @__PURE__ */ new WeakMap();
|
|
11814
11814
|
w.set(s, E);
|
|
11815
|
-
const
|
|
11816
|
-
E.set(o,
|
|
11815
|
+
const C = /* @__PURE__ */ new WeakMap();
|
|
11816
|
+
E.set(o, C);
|
|
11817
11817
|
const I = t(i, r, s, o, a);
|
|
11818
|
-
return
|
|
11818
|
+
return C.set(a, I), I;
|
|
11819
11819
|
}
|
|
11820
11820
|
let l = u.get(r);
|
|
11821
11821
|
if (!l) {
|
|
@@ -11824,8 +11824,8 @@ function qh(t) {
|
|
|
11824
11824
|
l.set(s, w);
|
|
11825
11825
|
const E = /* @__PURE__ */ new WeakMap();
|
|
11826
11826
|
w.set(o, E);
|
|
11827
|
-
const
|
|
11828
|
-
return E.set(a,
|
|
11827
|
+
const C = t(i, r, s, o, a);
|
|
11828
|
+
return E.set(a, C), C;
|
|
11829
11829
|
}
|
|
11830
11830
|
let f = l.get(s);
|
|
11831
11831
|
if (!f) {
|
|
@@ -12597,7 +12597,7 @@ const Tp = ts(function(e) {
|
|
|
12597
12597
|
return n;
|
|
12598
12598
|
});
|
|
12599
12599
|
function dl(t) {
|
|
12600
|
-
var
|
|
12600
|
+
var C;
|
|
12601
12601
|
const { schema: e, document: n, rootValue: i, contextValue: r, variableValues: s, operationName: o, fieldResolver: a, typeResolver: u, subscribeFieldResolver: l, signal: f } = t;
|
|
12602
12602
|
Mu(e);
|
|
12603
12603
|
const g = Tp(n);
|
|
@@ -12611,7 +12611,7 @@ function dl(t) {
|
|
|
12611
12611
|
X("Must provide operation name if query contains multiple operations.")
|
|
12612
12612
|
];
|
|
12613
12613
|
m = I;
|
|
12614
|
-
} else ((
|
|
12614
|
+
} else ((C = I.name) == null ? void 0 : C.value) === o && (m = I);
|
|
12615
12615
|
break;
|
|
12616
12616
|
}
|
|
12617
12617
|
if (m == null)
|
|
@@ -12690,21 +12690,21 @@ function hl(t, e, n, i, r, s) {
|
|
|
12690
12690
|
try {
|
|
12691
12691
|
const g = sl(a, i[0], t.variableValues), m = t.contextValue, w = l(n, g, m, f);
|
|
12692
12692
|
let E;
|
|
12693
|
-
return Ae(w) ? E = w.then((
|
|
12694
|
-
if (
|
|
12695
|
-
return new AggregateError(
|
|
12693
|
+
return Ae(w) ? E = w.then((C) => Tn(t, u, i, f, r, C, s)) : E = Tn(t, u, i, f, r, w, s), Ae(E) ? E.then(void 0, (C) => {
|
|
12694
|
+
if (C instanceof AggregateError)
|
|
12695
|
+
return new AggregateError(C.errors.map((A) => {
|
|
12696
12696
|
A = Yt(A);
|
|
12697
12697
|
const R = nt(A, i, Ve(r)), x = yt(R, u, o);
|
|
12698
12698
|
return ht(t, r, s), x;
|
|
12699
12699
|
}));
|
|
12700
|
-
|
|
12701
|
-
const I = nt(
|
|
12700
|
+
C = Yt(C);
|
|
12701
|
+
const I = nt(C, i, Ve(r)), _ = yt(I, u, o);
|
|
12702
12702
|
return ht(t, r, s), _;
|
|
12703
12703
|
}) : E;
|
|
12704
12704
|
} catch (g) {
|
|
12705
12705
|
if (g instanceof AggregateError)
|
|
12706
|
-
return new AggregateError(g.errors.map((
|
|
12707
|
-
const I = Yt(
|
|
12706
|
+
return new AggregateError(g.errors.map((C) => {
|
|
12707
|
+
const I = Yt(C), _ = nt(I, i, Ve(r));
|
|
12708
12708
|
return yt(_, u, o);
|
|
12709
12709
|
}));
|
|
12710
12710
|
const m = Yt(g), w = nt(m, i, Ve(r)), E = yt(w, u, o);
|
|
@@ -12784,7 +12784,7 @@ async function Np(t, e, n, i, r, s, o) {
|
|
|
12784
12784
|
if (w = await s.next(), w.done)
|
|
12785
12785
|
break;
|
|
12786
12786
|
} catch (E) {
|
|
12787
|
-
const
|
|
12787
|
+
const C = Yt(E), I = nt(C, n, Ve(m));
|
|
12788
12788
|
f.push(yt(I, e, a));
|
|
12789
12789
|
break;
|
|
12790
12790
|
}
|
|
@@ -12805,12 +12805,12 @@ function Ap(t, e, n, i, r, s, o) {
|
|
|
12805
12805
|
const m = [];
|
|
12806
12806
|
let w = 0;
|
|
12807
12807
|
for (const E of s) {
|
|
12808
|
-
const
|
|
12808
|
+
const C = pi(r, w, void 0);
|
|
12809
12809
|
if (l && typeof l.initialCount == "number" && w >= l.initialCount) {
|
|
12810
|
-
g = $p(r,
|
|
12810
|
+
g = $p(r, C, E, t, n, i, a, l.label, g), w++;
|
|
12811
12811
|
continue;
|
|
12812
12812
|
}
|
|
12813
|
-
ml(E, m, u, t, a, n, i,
|
|
12813
|
+
ml(E, m, u, t, a, n, i, C, o) && (f = !0), w++;
|
|
12814
12814
|
}
|
|
12815
12815
|
return f ? Promise.all(m) : m;
|
|
12816
12816
|
}
|
|
@@ -12917,7 +12917,7 @@ const Rp = function(t, e, n, i) {
|
|
|
12917
12917
|
return typeof r == "function" ? t[i.fieldName](e, n, i) : r;
|
|
12918
12918
|
}
|
|
12919
12919
|
};
|
|
12920
|
-
function
|
|
12920
|
+
function Cp(t) {
|
|
12921
12921
|
const e = dl(t);
|
|
12922
12922
|
if (!("schema" in e))
|
|
12923
12923
|
return {
|
|
@@ -12962,11 +12962,11 @@ function yl(t) {
|
|
|
12962
12962
|
}
|
|
12963
12963
|
};
|
|
12964
12964
|
}
|
|
12965
|
-
async function*
|
|
12965
|
+
async function* Lp(t) {
|
|
12966
12966
|
"initialResult" in t ? yield* yl(t) : yield t;
|
|
12967
12967
|
}
|
|
12968
12968
|
function wa(t, e) {
|
|
12969
|
-
return ns(e) ? yp(ol(e, async (n) =>
|
|
12969
|
+
return ns(e) ? yp(ol(e, async (n) => Lp(await fl(Sp(t, n))), (n) => {
|
|
12970
12970
|
throw n instanceof AggregateError ? new AggregateError(n.errors.map((i) => va(i, t.operation)), n.message) : va(n, t.operation);
|
|
12971
12971
|
})) : e;
|
|
12972
12972
|
}
|
|
@@ -12997,7 +12997,7 @@ function Dp(t) {
|
|
|
12997
12997
|
});
|
|
12998
12998
|
const m = pi(void 0, u, o.name), w = pl(t, g, l, o, m);
|
|
12999
12999
|
try {
|
|
13000
|
-
const E = sl(g, l[0], r),
|
|
13000
|
+
const E = sl(g, l[0], r), C = t.contextValue, _ = (g.subscribe ?? t.subscribeFieldResolver)(s, E, C, w);
|
|
13001
13001
|
return Ae(_) ? _.then(Ta).then(void 0, (A) => {
|
|
13002
13002
|
throw nt(A, l, Ve(m));
|
|
13003
13003
|
}) : Ta(_, t.signal);
|
|
@@ -13100,9 +13100,9 @@ async function jp(t, e, n, i, r, s, o, a, u) {
|
|
|
13100
13100
|
});
|
|
13101
13101
|
return;
|
|
13102
13102
|
}
|
|
13103
|
-
const { done: E, value:
|
|
13103
|
+
const { done: E, value: C } = w;
|
|
13104
13104
|
let I;
|
|
13105
|
-
if (Ae(
|
|
13105
|
+
if (Ae(C) ? I = C.then((_) => [_], (_) => (m.errors.push(_), ht(n, o, m), null)) : I = [C], m.addItems(I), E)
|
|
13106
13106
|
break;
|
|
13107
13107
|
f = m, l++;
|
|
13108
13108
|
}
|
|
@@ -13253,7 +13253,7 @@ function Sa(t) {
|
|
|
13253
13253
|
const e = co(t.document, t.operationName);
|
|
13254
13254
|
if (e == null)
|
|
13255
13255
|
throw new Error("Must provide an operation.");
|
|
13256
|
-
return e.operation === "subscription" ?
|
|
13256
|
+
return e.operation === "subscription" ? Cp(t) : new gt(() => vp(t)).then((n) => "initialResult" in n ? yl(n) : n).resolve();
|
|
13257
13257
|
}
|
|
13258
13258
|
function vl(t) {
|
|
13259
13259
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -13347,8 +13347,8 @@ function Yp(t, e, n) {
|
|
|
13347
13347
|
if (e.Request !== globalThis.Request)
|
|
13348
13348
|
s = new _l(), w = () => s.sendAbort();
|
|
13349
13349
|
else {
|
|
13350
|
-
const
|
|
13351
|
-
s =
|
|
13350
|
+
const C = new AbortController();
|
|
13351
|
+
s = C.signal, w = () => C.abort();
|
|
13352
13352
|
}
|
|
13353
13353
|
const E = () => {
|
|
13354
13354
|
s && !s.aborted && (i.aborted = !0, w());
|
|
@@ -13378,14 +13378,14 @@ function Yp(t, e, n) {
|
|
|
13378
13378
|
signal: s
|
|
13379
13379
|
});
|
|
13380
13380
|
return (f = w.headers.get("content-type")) != null && f.includes("json") || w.headers.set("content-type", "application/json; charset=utf-8"), new Proxy(w, {
|
|
13381
|
-
get: (E,
|
|
13382
|
-
switch (
|
|
13381
|
+
get: (E, C, I) => {
|
|
13382
|
+
switch (C) {
|
|
13383
13383
|
case "json":
|
|
13384
13384
|
return async () => u;
|
|
13385
13385
|
case "text":
|
|
13386
13386
|
return async () => JSON.stringify(u);
|
|
13387
13387
|
default:
|
|
13388
|
-
return Reflect.get(E,
|
|
13388
|
+
return Reflect.get(E, C, I);
|
|
13389
13389
|
}
|
|
13390
13390
|
}
|
|
13391
13391
|
});
|
|
@@ -13664,8 +13664,8 @@ function ag({ req: t, res: e, fetchAPI: n, signal: i }) {
|
|
|
13664
13664
|
w.append(S, y);
|
|
13665
13665
|
});
|
|
13666
13666
|
let E = `http://localhost${t.getUrl()}`;
|
|
13667
|
-
const
|
|
13668
|
-
|
|
13667
|
+
const C = t.getQuery();
|
|
13668
|
+
C && (E += `?${C}`);
|
|
13669
13669
|
let I;
|
|
13670
13670
|
function _() {
|
|
13671
13671
|
return m ? l ? R() : m() : null;
|
|
@@ -13740,7 +13740,7 @@ function ug(t, e) {
|
|
|
13740
13740
|
}
|
|
13741
13741
|
});
|
|
13742
13742
|
}
|
|
13743
|
-
function
|
|
13743
|
+
function Ca(t, e, n, i) {
|
|
13744
13744
|
if (!e) {
|
|
13745
13745
|
t.writeStatus("404 Not Found"), t.end();
|
|
13746
13746
|
return;
|
|
@@ -13859,7 +13859,7 @@ function fg(t, e) {
|
|
|
13859
13859
|
b = V, V && J();
|
|
13860
13860
|
}
|
|
13861
13861
|
}));
|
|
13862
|
-
function
|
|
13862
|
+
function L(Y) {
|
|
13863
13863
|
if (s.length === 0)
|
|
13864
13864
|
return Y;
|
|
13865
13865
|
const J = {
|
|
@@ -13876,9 +13876,9 @@ function fg(t, e) {
|
|
|
13876
13876
|
function Z() {
|
|
13877
13877
|
if (!b) {
|
|
13878
13878
|
const Y = p(y, T);
|
|
13879
|
-
return mt(Y) ? Y.then(
|
|
13879
|
+
return mt(Y) ? Y.then(L) : L(Y);
|
|
13880
13880
|
}
|
|
13881
|
-
return
|
|
13881
|
+
return L(b);
|
|
13882
13882
|
}
|
|
13883
13883
|
return mt(O) ? O.then(Z) : Z();
|
|
13884
13884
|
} : i;
|
|
@@ -13919,10 +13919,10 @@ function fg(t, e) {
|
|
|
13919
13919
|
res: S,
|
|
13920
13920
|
req: y,
|
|
13921
13921
|
waitUntil: l
|
|
13922
|
-
}, d = T.filter((ee) => ee != null).length > 0 ? Fi(p, ...T) : p, O = new _l(),
|
|
13922
|
+
}, d = T.filter((ee) => ee != null).length > 0 ? Fi(p, ...T) : p, O = new _l(), L = S.end.bind(S);
|
|
13923
13923
|
let Z = !1;
|
|
13924
13924
|
S.end = function(ee) {
|
|
13925
|
-
return Z = !0,
|
|
13925
|
+
return Z = !0, L(ee);
|
|
13926
13926
|
}, S.onAborted.bind(S)(function() {
|
|
13927
13927
|
O.sendAbort();
|
|
13928
13928
|
}), S.onAborted = function(ee) {
|
|
@@ -13943,20 +13943,20 @@ function fg(t, e) {
|
|
|
13943
13943
|
if (mt(V))
|
|
13944
13944
|
return V.catch((ee) => hr(ee, n.Response)).then((ee) => {
|
|
13945
13945
|
if (!O.aborted && !Z)
|
|
13946
|
-
return
|
|
13946
|
+
return Ca(S, ee, O, n);
|
|
13947
13947
|
}).catch((ee) => {
|
|
13948
13948
|
console.error(`Unexpected error while handling request:
|
|
13949
13949
|
${ee.stack || ee.message || ee}`);
|
|
13950
13950
|
});
|
|
13951
13951
|
try {
|
|
13952
13952
|
if (!O.aborted && !Z)
|
|
13953
|
-
return
|
|
13953
|
+
return Ca(S, V, O, n);
|
|
13954
13954
|
} catch (ee) {
|
|
13955
13955
|
console.error(`Unexpected error while handling request:
|
|
13956
13956
|
${ee.stack || ee.message || ee}`);
|
|
13957
13957
|
}
|
|
13958
13958
|
}
|
|
13959
|
-
function
|
|
13959
|
+
function C(S, ...y) {
|
|
13960
13960
|
if (!S.respondWith || !S.request)
|
|
13961
13961
|
throw new TypeError(`Expected FetchEvent, got ${S}`);
|
|
13962
13962
|
const T = y.filter((d) => d != null), p = T.length > 0 ? Fi({}, S, ...T) : xa(S), b = f(S.request, p);
|
|
@@ -13970,8 +13970,8 @@ ${ee.stack || ee.message || ee}`);
|
|
|
13970
13970
|
if (typeof S == "string" || "href" in S) {
|
|
13971
13971
|
const [p, ...b] = y;
|
|
13972
13972
|
if (tg(p)) {
|
|
13973
|
-
const O = new n.Request(S, p),
|
|
13974
|
-
return Fa(
|
|
13973
|
+
const O = new n.Request(S, p), L = I(O, ...b);
|
|
13974
|
+
return Fa(L, p == null ? void 0 : p.signal);
|
|
13975
13975
|
}
|
|
13976
13976
|
const d = new n.Request(S);
|
|
13977
13977
|
return I(d, ...y);
|
|
@@ -13989,14 +13989,14 @@ ${ee.stack || ee.message || ee}`);
|
|
|
13989
13989
|
return E(S, T, ...p);
|
|
13990
13990
|
if (Oa(T))
|
|
13991
13991
|
throw new TypeError("Got Node response without Node request");
|
|
13992
|
-
return lg(S) ? Kp(S) ?
|
|
13992
|
+
return lg(S) ? Kp(S) ? C(S, ...y) : I(S.request, S, ...y) : _(S, ...y);
|
|
13993
13993
|
}, R = {
|
|
13994
13994
|
handleRequest: I,
|
|
13995
13995
|
fetch: _,
|
|
13996
13996
|
handleNodeRequest: g,
|
|
13997
13997
|
handleNodeRequestAndResponse: m,
|
|
13998
13998
|
requestListener: w,
|
|
13999
|
-
handleEvent:
|
|
13999
|
+
handleEvent: C,
|
|
14000
14000
|
handleUWS: E,
|
|
14001
14001
|
handle: A,
|
|
14002
14002
|
get disposableStack() {
|
|
@@ -14271,7 +14271,7 @@ function Fg(t, e) {
|
|
|
14271
14271
|
}
|
|
14272
14272
|
}
|
|
14273
14273
|
function Rg(t, e) {
|
|
14274
|
-
if (!
|
|
14274
|
+
if (!Lg(t))
|
|
14275
14275
|
throw X(`Expected params to be an object but given ${Ri(t)}.`, {
|
|
14276
14276
|
extensions: {
|
|
14277
14277
|
http: {
|
|
@@ -14332,7 +14332,7 @@ function Rg(t, e) {
|
|
|
14332
14332
|
});
|
|
14333
14333
|
return t;
|
|
14334
14334
|
}
|
|
14335
|
-
function
|
|
14335
|
+
function Cg(t) {
|
|
14336
14336
|
return {
|
|
14337
14337
|
onParams({ params: e }) {
|
|
14338
14338
|
Rg(e, t);
|
|
@@ -14342,7 +14342,7 @@ function Lg(t) {
|
|
|
14342
14342
|
function Ri(t) {
|
|
14343
14343
|
return t === null ? "null" : Array.isArray(t) ? "array" : typeof t;
|
|
14344
14344
|
}
|
|
14345
|
-
function
|
|
14345
|
+
function Lg(t) {
|
|
14346
14346
|
return Ri(t) === "object";
|
|
14347
14347
|
}
|
|
14348
14348
|
function kg(t) {
|
|
@@ -14471,10 +14471,10 @@ function Ug({ id: t = Date.now().toString(), logger: e = console, endpoint: n =
|
|
|
14471
14471
|
const Bn = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Ol = /* @__PURE__ */ new Set(), Us = typeof process == "object" && process ? process : {}, Nl = (t, e, n, i) => {
|
|
14472
14472
|
typeof Us.emitWarning == "function" ? Us.emitWarning(t, e, n, i) : console.error(`[${n}] ${e}: ${t}`);
|
|
14473
14473
|
};
|
|
14474
|
-
let qr = globalThis.AbortController,
|
|
14474
|
+
let qr = globalThis.AbortController, La = globalThis.AbortSignal;
|
|
14475
14475
|
var eu;
|
|
14476
14476
|
if (typeof qr > "u") {
|
|
14477
|
-
|
|
14477
|
+
La = class {
|
|
14478
14478
|
constructor() {
|
|
14479
14479
|
U(this, "onabort");
|
|
14480
14480
|
U(this, "_onabort", []);
|
|
@@ -14486,7 +14486,7 @@ if (typeof qr > "u") {
|
|
|
14486
14486
|
}
|
|
14487
14487
|
}, qr = class {
|
|
14488
14488
|
constructor() {
|
|
14489
|
-
U(this, "signal", new
|
|
14489
|
+
U(this, "signal", new La());
|
|
14490
14490
|
e();
|
|
14491
14491
|
}
|
|
14492
14492
|
abort(i) {
|
|
@@ -14535,7 +14535,7 @@ let Bg = (Ht = class {
|
|
|
14535
14535
|
}
|
|
14536
14536
|
}, Kn = new WeakMap(), // private constructor
|
|
14537
14537
|
W(Ht, Kn, !1), Ht);
|
|
14538
|
-
var tu, nu, Tt, st, St, _t, Xn, Zn, Ie, It, Te, he, te, Qe, ot, qe, Re, Ot,
|
|
14538
|
+
var tu, nu, Tt, st, St, _t, Xn, Zn, Ie, It, Te, he, te, Qe, ot, qe, Re, Ot, Ce, Nt, At, at, xt, mn, We, B, Vs, xn, tn, Mi, ut, xl, Fn, ei, Ui, un, ln, Bs, xr, Fr, fe, qs, Ci, cn, Gs, ti;
|
|
14539
14539
|
let qg = (ti = class {
|
|
14540
14540
|
constructor(e) {
|
|
14541
14541
|
W(this, B);
|
|
@@ -14617,7 +14617,7 @@ let qg = (ti = class {
|
|
|
14617
14617
|
W(this, qe);
|
|
14618
14618
|
W(this, Re);
|
|
14619
14619
|
W(this, Ot);
|
|
14620
|
-
W(this,
|
|
14620
|
+
W(this, Ce);
|
|
14621
14621
|
W(this, Nt);
|
|
14622
14622
|
W(this, At);
|
|
14623
14623
|
W(this, at);
|
|
@@ -14648,13 +14648,13 @@ let qg = (ti = class {
|
|
|
14648
14648
|
* `Object.prototype.toString`.
|
|
14649
14649
|
*/
|
|
14650
14650
|
U(this, tu, "LRUCache");
|
|
14651
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: l, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: m, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation:
|
|
14651
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: l, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: m, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation: C, fetchMethod: I, memoMethod: _, noDeleteOnFetchRejection: A, noDeleteOnStaleGet: R, allowStaleOnFetchRejection: x, allowStaleOnFetchAbort: S, ignoreFetchAbort: y } = e;
|
|
14652
14652
|
if (n !== 0 && !an(n))
|
|
14653
14653
|
throw new TypeError("max option must be a nonnegative integer");
|
|
14654
14654
|
const T = n ? Al(n) : Array;
|
|
14655
14655
|
if (!T)
|
|
14656
14656
|
throw new Error("invalid max value: " + n);
|
|
14657
|
-
if ($(this, Tt, n), $(this, st, w), this.maxEntrySize = E || c(this, st), this.sizeCalculation =
|
|
14657
|
+
if ($(this, Tt, n), $(this, st, w), this.maxEntrySize = E || c(this, st), this.sizeCalculation = C, this.sizeCalculation) {
|
|
14658
14658
|
if (!c(this, st) && !this.maxEntrySize)
|
|
14659
14659
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
14660
14660
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -14664,7 +14664,7 @@ let qg = (ti = class {
|
|
|
14664
14664
|
throw new TypeError("memoMethod must be a function if defined");
|
|
14665
14665
|
if ($(this, Zn, _), I !== void 0 && typeof I != "function")
|
|
14666
14666
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
14667
|
-
if ($(this, Xn, I), $(this, mn, !!I), $(this, Te, /* @__PURE__ */ new Map()), $(this, he, new Array(n).fill(void 0)), $(this, te, new Array(n).fill(void 0)), $(this, Qe, new T(n)), $(this, ot, new T(n)), $(this, qe, 0), $(this, Re, 0), $(this, Ot, Bg.create(n)), $(this, Ie, 0), $(this, It, 0), typeof l == "function" && $(this, St, l), typeof f == "function" ? ($(this, _t, f), $(this,
|
|
14667
|
+
if ($(this, Xn, I), $(this, mn, !!I), $(this, Te, /* @__PURE__ */ new Map()), $(this, he, new Array(n).fill(void 0)), $(this, te, new Array(n).fill(void 0)), $(this, Qe, new T(n)), $(this, ot, new T(n)), $(this, qe, 0), $(this, Re, 0), $(this, Ot, Bg.create(n)), $(this, Ie, 0), $(this, It, 0), typeof l == "function" && $(this, St, l), typeof f == "function" ? ($(this, _t, f), $(this, Ce, [])) : ($(this, _t, void 0), $(this, Ce, void 0)), $(this, xt, !!c(this, St)), $(this, We, !!c(this, _t)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!A, this.allowStaleOnFetchRejection = !!x, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!y, this.maxEntrySize !== 0) {
|
|
14668
14668
|
if (c(this, st) !== 0 && !an(c(this, st)))
|
|
14669
14669
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
14670
14670
|
if (!an(this.maxEntrySize))
|
|
@@ -14721,7 +14721,7 @@ let qg = (ti = class {
|
|
|
14721
14721
|
},
|
|
14722
14722
|
moveToTail: (n) => {
|
|
14723
14723
|
var i;
|
|
14724
|
-
return k(i = e, B,
|
|
14724
|
+
return k(i = e, B, Ci).call(i, n);
|
|
14725
14725
|
},
|
|
14726
14726
|
indexes: (n) => {
|
|
14727
14727
|
var i;
|
|
@@ -15011,7 +15011,7 @@ let qg = (ti = class {
|
|
|
15011
15011
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
15012
15012
|
*/
|
|
15013
15013
|
set(e, n, i = {}) {
|
|
15014
|
-
var m, w, E,
|
|
15014
|
+
var m, w, E, C, I;
|
|
15015
15015
|
if (n === void 0)
|
|
15016
15016
|
return this.delete(e), this;
|
|
15017
15017
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -15023,14 +15023,14 @@ let qg = (ti = class {
|
|
|
15023
15023
|
if (g === void 0)
|
|
15024
15024
|
g = c(this, Ie) === 0 ? c(this, Re) : c(this, Ot).length !== 0 ? c(this, Ot).pop() : c(this, Ie) === c(this, Tt) ? k(this, B, xr).call(this, !1) : c(this, Ie), c(this, he)[g] = e, c(this, te)[g] = n, c(this, Te).set(e, g), c(this, Qe)[c(this, Re)] = g, c(this, ot)[g] = c(this, Re), $(this, Re, g), Sn(this, Ie)._++, c(this, ei).call(this, g, f, u), u && (u.set = "add"), l = !1;
|
|
15025
15025
|
else {
|
|
15026
|
-
k(this, B,
|
|
15026
|
+
k(this, B, Ci).call(this, g);
|
|
15027
15027
|
const _ = c(this, te)[g];
|
|
15028
15028
|
if (n !== _) {
|
|
15029
15029
|
if (c(this, mn) && k(this, B, fe).call(this, _)) {
|
|
15030
15030
|
_.__abortController.abort(new Error("replaced"));
|
|
15031
15031
|
const { __staleWhileFetching: A } = _;
|
|
15032
|
-
A !== void 0 && !o && (c(this, xt) && ((m = c(this, St)) == null || m.call(this, A, e, "set")), c(this, We) && ((w = c(this,
|
|
15033
|
-
} else o || (c(this, xt) && ((E = c(this, St)) == null || E.call(this, _, e, "set")), c(this, We) && ((
|
|
15032
|
+
A !== void 0 && !o && (c(this, xt) && ((m = c(this, St)) == null || m.call(this, A, e, "set")), c(this, We) && ((w = c(this, Ce)) == null || w.push([A, e, "set"])));
|
|
15033
|
+
} else o || (c(this, xt) && ((E = c(this, St)) == null || E.call(this, _, e, "set")), c(this, We) && ((C = c(this, Ce)) == null || C.push([_, e, "set"])));
|
|
15034
15034
|
if (c(this, Fn).call(this, g), c(this, ei).call(this, g, f, u), c(this, te)[g] = n, u) {
|
|
15035
15035
|
u.set = "replace";
|
|
15036
15036
|
const A = _ && k(this, B, fe).call(this, _) ? _.__staleWhileFetching : _;
|
|
@@ -15038,8 +15038,8 @@ let qg = (ti = class {
|
|
|
15038
15038
|
}
|
|
15039
15039
|
} else u && (u.set = "update");
|
|
15040
15040
|
}
|
|
15041
|
-
if (r !== 0 && !c(this, at) && k(this, B, Vs).call(this), c(this, at) && (l || c(this, Mi).call(this, g, r, s), u && c(this, tn).call(this, u, g)), !o && c(this, We) && c(this,
|
|
15042
|
-
const _ = c(this,
|
|
15041
|
+
if (r !== 0 && !c(this, at) && k(this, B, Vs).call(this), c(this, at) && (l || c(this, Mi).call(this, g, r, s), u && c(this, tn).call(this, u, g)), !o && c(this, We) && c(this, Ce)) {
|
|
15042
|
+
const _ = c(this, Ce);
|
|
15043
15043
|
let A;
|
|
15044
15044
|
for (; A = _ == null ? void 0 : _.shift(); )
|
|
15045
15045
|
(I = c(this, _t)) == null || I.call(this, ...A);
|
|
@@ -15062,8 +15062,8 @@ let qg = (ti = class {
|
|
|
15062
15062
|
return n;
|
|
15063
15063
|
}
|
|
15064
15064
|
} finally {
|
|
15065
|
-
if (c(this, We) && c(this,
|
|
15066
|
-
const n = c(this,
|
|
15065
|
+
if (c(this, We) && c(this, Ce)) {
|
|
15066
|
+
const n = c(this, Ce);
|
|
15067
15067
|
let i;
|
|
15068
15068
|
for (; i = n == null ? void 0 : n.shift(); )
|
|
15069
15069
|
(e = c(this, _t)) == null || e.call(this, ...i);
|
|
@@ -15129,7 +15129,7 @@ let qg = (ti = class {
|
|
|
15129
15129
|
allowStaleOnFetchRejection: m = this.allowStaleOnFetchRejection,
|
|
15130
15130
|
ignoreFetchAbort: w = this.ignoreFetchAbort,
|
|
15131
15131
|
allowStaleOnFetchAbort: E = this.allowStaleOnFetchAbort,
|
|
15132
|
-
context:
|
|
15132
|
+
context: C,
|
|
15133
15133
|
forceRefresh: I = !1,
|
|
15134
15134
|
status: _,
|
|
15135
15135
|
signal: A
|
|
@@ -15160,7 +15160,7 @@ let qg = (ti = class {
|
|
|
15160
15160
|
let x = c(this, Te).get(e);
|
|
15161
15161
|
if (x === void 0) {
|
|
15162
15162
|
_ && (_.fetch = "miss");
|
|
15163
|
-
const S = k(this, B, Fr).call(this, e, x, R,
|
|
15163
|
+
const S = k(this, B, Fr).call(this, e, x, R, C);
|
|
15164
15164
|
return S.__returned = S;
|
|
15165
15165
|
} else {
|
|
15166
15166
|
const S = c(this, te)[x];
|
|
@@ -15170,8 +15170,8 @@ let qg = (ti = class {
|
|
|
15170
15170
|
}
|
|
15171
15171
|
const y = c(this, ut).call(this, x);
|
|
15172
15172
|
if (!I && !y)
|
|
15173
|
-
return _ && (_.fetch = "hit"), k(this, B,
|
|
15174
|
-
const T = k(this, B, Fr).call(this, e, x, R,
|
|
15173
|
+
return _ && (_.fetch = "hit"), k(this, B, Ci).call(this, x), r && c(this, xn).call(this, x), _ && c(this, tn).call(this, _, x), S;
|
|
15174
|
+
const T = k(this, B, Fr).call(this, e, x, R, C), b = T.__staleWhileFetching !== void 0 && i;
|
|
15175
15175
|
return _ && (_.fetch = y ? "stale" : "refresh", b && y && (_.returnedStale = !0)), b ? T.__staleWhileFetching : T.__returned = T;
|
|
15176
15176
|
}
|
|
15177
15177
|
}
|
|
@@ -15204,7 +15204,7 @@ let qg = (ti = class {
|
|
|
15204
15204
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = c(this, Te).get(e);
|
|
15205
15205
|
if (a !== void 0) {
|
|
15206
15206
|
const u = c(this, te)[a], l = k(this, B, fe).call(this, u);
|
|
15207
|
-
return o && c(this, tn).call(this, o, a), c(this, ut).call(this, a) ? (o && (o.get = "stale"), l ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, cn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), l ? u.__staleWhileFetching : (k(this, B,
|
|
15207
|
+
return o && c(this, tn).call(this, o, a), c(this, ut).call(this, a) ? (o && (o.get = "stale"), l ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, B, cn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), l ? u.__staleWhileFetching : (k(this, B, Ci).call(this, a), r && c(this, xn).call(this, a), u));
|
|
15208
15208
|
} else o && (o.get = "miss");
|
|
15209
15209
|
}
|
|
15210
15210
|
/**
|
|
@@ -15221,7 +15221,7 @@ let qg = (ti = class {
|
|
|
15221
15221
|
clear() {
|
|
15222
15222
|
return k(this, B, Gs).call(this, "delete");
|
|
15223
15223
|
}
|
|
15224
|
-
}, Tt = new WeakMap(), st = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Xn = new WeakMap(), Zn = new WeakMap(), Ie = new WeakMap(), It = new WeakMap(), Te = new WeakMap(), he = new WeakMap(), te = new WeakMap(), Qe = new WeakMap(), ot = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), Ot = new WeakMap(),
|
|
15224
|
+
}, Tt = new WeakMap(), st = new WeakMap(), St = new WeakMap(), _t = new WeakMap(), Xn = new WeakMap(), Zn = new WeakMap(), Ie = new WeakMap(), It = new WeakMap(), Te = new WeakMap(), he = new WeakMap(), te = new WeakMap(), Qe = new WeakMap(), ot = new WeakMap(), qe = new WeakMap(), Re = new WeakMap(), Ot = new WeakMap(), Ce = new WeakMap(), Nt = new WeakMap(), At = new WeakMap(), at = new WeakMap(), xt = new WeakMap(), mn = new WeakMap(), We = new WeakMap(), B = new WeakSet(), Vs = function() {
|
|
15225
15225
|
const e = new Ar(c(this, Tt)), n = new Ar(c(this, Tt));
|
|
15226
15226
|
$(this, at, e), $(this, At, n), $(this, Mi, (s, o, a = Bn.now()) => {
|
|
15227
15227
|
if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
|
|
@@ -15302,7 +15302,7 @@ let qg = (ti = class {
|
|
|
15302
15302
|
}, xr = function(e) {
|
|
15303
15303
|
var s, o;
|
|
15304
15304
|
const n = c(this, qe), i = c(this, he)[n], r = c(this, te)[n];
|
|
15305
|
-
return c(this, mn) && k(this, B, fe).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, xt) || c(this, We)) && (c(this, xt) && ((s = c(this, St)) == null || s.call(this, r, i, "evict")), c(this, We) && ((o = c(this,
|
|
15305
|
+
return c(this, mn) && k(this, B, fe).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, xt) || c(this, We)) && (c(this, xt) && ((s = c(this, St)) == null || s.call(this, r, i, "evict")), c(this, We) && ((o = c(this, Ce)) == null || o.push([r, i, "evict"]))), c(this, Fn).call(this, n), e && (c(this, he)[n] = void 0, c(this, te)[n] = void 0, c(this, Ot).push(n)), c(this, Ie) === 1 ? ($(this, qe, $(this, Re, 0)), c(this, Ot).length = 0) : $(this, qe, c(this, Qe)[n]), c(this, Te).delete(i), Sn(this, Ie)._--, n;
|
|
15306
15306
|
}, Fr = function(e, n, i, r) {
|
|
15307
15307
|
const s = n === void 0 ? void 0 : c(this, te)[n];
|
|
15308
15308
|
if (k(this, B, fe).call(this, s))
|
|
@@ -15315,23 +15315,23 @@ let qg = (ti = class {
|
|
|
15315
15315
|
signal: o.signal,
|
|
15316
15316
|
options: i,
|
|
15317
15317
|
context: r
|
|
15318
|
-
}, l = (
|
|
15319
|
-
const { aborted: _ } = o.signal, A = i.ignoreFetchAbort &&
|
|
15318
|
+
}, l = (C, I = !1) => {
|
|
15319
|
+
const { aborted: _ } = o.signal, A = i.ignoreFetchAbort && C !== void 0;
|
|
15320
15320
|
if (i.status && (_ && !I ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, A && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), _ && !A && !I)
|
|
15321
15321
|
return g(o.signal.reason);
|
|
15322
15322
|
const R = w;
|
|
15323
|
-
return c(this, te)[n] === w && (
|
|
15324
|
-
}, f = (
|
|
15323
|
+
return c(this, te)[n] === w && (C === void 0 ? R.__staleWhileFetching ? c(this, te)[n] = R.__staleWhileFetching : k(this, B, cn).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, C, u.options))), C;
|
|
15324
|
+
}, f = (C) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = C), g(C)), g = (C) => {
|
|
15325
15325
|
const { aborted: I } = o.signal, _ = I && i.allowStaleOnFetchAbort, A = _ || i.allowStaleOnFetchRejection, R = A || i.noDeleteOnFetchRejection, x = w;
|
|
15326
15326
|
if (c(this, te)[n] === w && (!R || x.__staleWhileFetching === void 0 ? k(this, B, cn).call(this, e, "fetch") : _ || (c(this, te)[n] = x.__staleWhileFetching)), A)
|
|
15327
15327
|
return i.status && x.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), x.__staleWhileFetching;
|
|
15328
15328
|
if (x.__returned === x)
|
|
15329
|
-
throw
|
|
15330
|
-
}, m = (
|
|
15329
|
+
throw C;
|
|
15330
|
+
}, m = (C, I) => {
|
|
15331
15331
|
var A;
|
|
15332
15332
|
const _ = (A = c(this, Xn)) == null ? void 0 : A.call(this, e, s, u);
|
|
15333
|
-
_ && _ instanceof Promise && _.then((R) =>
|
|
15334
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
15333
|
+
_ && _ instanceof Promise && _.then((R) => C(R === void 0 ? void 0 : R), I), o.signal.addEventListener("abort", () => {
|
|
15334
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (C(void 0), i.allowStaleOnFetchAbort && (C = (R) => l(R, !0)));
|
|
15335
15335
|
});
|
|
15336
15336
|
};
|
|
15337
15337
|
i.status && (i.status.fetchDispatched = !0);
|
|
@@ -15348,7 +15348,7 @@ let qg = (ti = class {
|
|
|
15348
15348
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof qr;
|
|
15349
15349
|
}, qs = function(e, n) {
|
|
15350
15350
|
c(this, ot)[n] = e, c(this, Qe)[e] = n;
|
|
15351
|
-
},
|
|
15351
|
+
}, Ci = function(e) {
|
|
15352
15352
|
e !== c(this, Re) && (e === c(this, qe) ? $(this, qe, c(this, Qe)[e]) : k(this, B, qs).call(this, c(this, ot)[e], c(this, Qe)[e]), k(this, B, qs).call(this, c(this, Re), e), $(this, Re, e));
|
|
15353
15353
|
}, cn = function(e, n) {
|
|
15354
15354
|
var r, s, o, a;
|
|
@@ -15361,7 +15361,7 @@ let qg = (ti = class {
|
|
|
15361
15361
|
else {
|
|
15362
15362
|
c(this, Fn).call(this, u);
|
|
15363
15363
|
const l = c(this, te)[u];
|
|
15364
|
-
if (k(this, B, fe).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (c(this, xt) || c(this, We)) && (c(this, xt) && ((r = c(this, St)) == null || r.call(this, l, e, n)), c(this, We) && ((s = c(this,
|
|
15364
|
+
if (k(this, B, fe).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (c(this, xt) || c(this, We)) && (c(this, xt) && ((r = c(this, St)) == null || r.call(this, l, e, n)), c(this, We) && ((s = c(this, Ce)) == null || s.push([l, e, n]))), c(this, Te).delete(e), c(this, he)[u] = void 0, c(this, te)[u] = void 0, u === c(this, Re))
|
|
15365
15365
|
$(this, Re, c(this, ot)[u]);
|
|
15366
15366
|
else if (u === c(this, qe))
|
|
15367
15367
|
$(this, qe, c(this, Qe)[u]);
|
|
@@ -15374,8 +15374,8 @@ let qg = (ti = class {
|
|
|
15374
15374
|
Sn(this, Ie)._--, c(this, Ot).push(u);
|
|
15375
15375
|
}
|
|
15376
15376
|
}
|
|
15377
|
-
if (c(this, We) && ((o = c(this,
|
|
15378
|
-
const u = c(this,
|
|
15377
|
+
if (c(this, We) && ((o = c(this, Ce)) != null && o.length)) {
|
|
15378
|
+
const u = c(this, Ce);
|
|
15379
15379
|
let l;
|
|
15380
15380
|
for (; l = u == null ? void 0 : u.shift(); )
|
|
15381
15381
|
(a = c(this, _t)) == null || a.call(this, ...l);
|
|
@@ -15389,11 +15389,11 @@ let qg = (ti = class {
|
|
|
15389
15389
|
o.__abortController.abort(new Error("deleted"));
|
|
15390
15390
|
else {
|
|
15391
15391
|
const a = c(this, he)[s];
|
|
15392
|
-
c(this, xt) && ((n = c(this, St)) == null || n.call(this, o, a, e)), c(this, We) && ((i = c(this,
|
|
15392
|
+
c(this, xt) && ((n = c(this, St)) == null || n.call(this, o, a, e)), c(this, We) && ((i = c(this, Ce)) == null || i.push([o, a, e]));
|
|
15393
15393
|
}
|
|
15394
15394
|
}
|
|
15395
|
-
if (c(this, Te).clear(), c(this, te).fill(void 0), c(this, he).fill(void 0), c(this, at) && c(this, At) && (c(this, at).fill(0), c(this, At).fill(0)), c(this, Nt) && c(this, Nt).fill(0), $(this, qe, 0), $(this, Re, 0), c(this, Ot).length = 0, $(this, It, 0), $(this, Ie, 0), c(this, We) && c(this,
|
|
15396
|
-
const s = c(this,
|
|
15395
|
+
if (c(this, Te).clear(), c(this, te).fill(void 0), c(this, he).fill(void 0), c(this, at) && c(this, At) && (c(this, at).fill(0), c(this, At).fill(0)), c(this, Nt) && c(this, Nt).fill(0), $(this, qe, 0), $(this, Re, 0), c(this, Ot).length = 0, $(this, It, 0), $(this, Ie, 0), c(this, We) && c(this, Ce)) {
|
|
15396
|
+
const s = c(this, Ce);
|
|
15397
15397
|
let o;
|
|
15398
15398
|
for (; o = s == null ? void 0 : s.shift(); )
|
|
15399
15399
|
(r = c(this, _t)) == null || r.call(this, ...o);
|
|
@@ -15942,7 +15942,7 @@ class am {
|
|
|
15942
15942
|
(e == null ? void 0 : e.parserAndValidationCache) !== !1 && u(
|
|
15943
15943
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
15944
15944
|
Qg(!(e != null && e.parserAndValidationCache) || (e == null ? void 0 : e.parserAndValidationCache) === !0 ? {} : e == null ? void 0 : e.parserAndValidationCache)
|
|
15945
|
-
), u(Pg(o)), u(
|
|
15945
|
+
), u(Pg(o)), u(Cg(e == null ? void 0 : e.extraParamNames));
|
|
15946
15946
|
const l = !!((e == null ? void 0 : e.landingPage) ?? !0);
|
|
15947
15947
|
u(
|
|
15948
15948
|
// @ts-expect-error Add plugins has context but this hook doesn't care
|
|
@@ -16038,7 +16038,7 @@ function um(t) {
|
|
|
16038
16038
|
plugins: e.plugins
|
|
16039
16039
|
});
|
|
16040
16040
|
}
|
|
16041
|
-
const qn = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Rl = /* @__PURE__ */ new Set(), zs = typeof process == "object" && process ? process : {},
|
|
16041
|
+
const qn = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Rl = /* @__PURE__ */ new Set(), zs = typeof process == "object" && process ? process : {}, Cl = (t, e, n, i) => {
|
|
16042
16042
|
typeof zs.emitWarning == "function" ? zs.emitWarning(t, e, n, i) : console.error(`[${n}] ${e}: ${t}`);
|
|
16043
16043
|
};
|
|
16044
16044
|
let Gr = globalThis.AbortController, Pa = globalThis.AbortSignal;
|
|
@@ -16071,10 +16071,10 @@ if (typeof Gr > "u") {
|
|
|
16071
16071
|
};
|
|
16072
16072
|
let t = ((iu = zs.env) == null ? void 0 : iu.LRU_CACHE_IGNORE_AC_WARNING) !== "1";
|
|
16073
16073
|
const e = () => {
|
|
16074
|
-
t && (t = !1,
|
|
16074
|
+
t && (t = !1, Cl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", e));
|
|
16075
16075
|
};
|
|
16076
16076
|
}
|
|
16077
|
-
const lm = (t) => !Rl.has(t), fn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t),
|
|
16077
|
+
const lm = (t) => !Rl.has(t), fn = (t) => t && t === Math.floor(t) && t > 0 && isFinite(t), Ll = (t) => fn(t) ? t <= Math.pow(2, 8) ? Uint8Array : t <= Math.pow(2, 16) ? Uint16Array : t <= Math.pow(2, 32) ? Uint32Array : t <= Number.MAX_SAFE_INTEGER ? Rr : null : null;
|
|
16078
16078
|
class Rr extends Array {
|
|
16079
16079
|
constructor(e) {
|
|
16080
16080
|
super(e), this.fill(0);
|
|
@@ -16090,7 +16090,7 @@ const Nn = class Nn {
|
|
|
16090
16090
|
this.heap = new n(e), this.length = 0;
|
|
16091
16091
|
}
|
|
16092
16092
|
static create(e) {
|
|
16093
|
-
const n =
|
|
16093
|
+
const n = Ll(e);
|
|
16094
16094
|
if (!n)
|
|
16095
16095
|
return [];
|
|
16096
16096
|
$(Nn, ni, !0);
|
|
@@ -16107,7 +16107,7 @@ const Nn = class Nn {
|
|
|
16107
16107
|
ni = new WeakMap(), // private constructor
|
|
16108
16108
|
W(Nn, ni, !1);
|
|
16109
16109
|
let Qs = Nn;
|
|
16110
|
-
var ru, su, Ft, lt, Rt,
|
|
16110
|
+
var ru, su, Ft, lt, Rt, Ct, ii, ri, Oe, Lt, Se, pe, ne, Ye, ct, Ge, Le, kt, ke, Dt, $t, ft, Pt, yn, He, q, Ys, Rn, nn, Vi, dt, kl, Cn, si, Bi, dn, hn, Hs, Cr, Lr, de, Js, Li, pn, Ks;
|
|
16111
16111
|
const So = class So {
|
|
16112
16112
|
constructor(e) {
|
|
16113
16113
|
W(this, q);
|
|
@@ -16115,7 +16115,7 @@ const So = class So {
|
|
|
16115
16115
|
W(this, Ft);
|
|
16116
16116
|
W(this, lt);
|
|
16117
16117
|
W(this, Rt);
|
|
16118
|
-
W(this,
|
|
16118
|
+
W(this, Ct);
|
|
16119
16119
|
W(this, ii);
|
|
16120
16120
|
W(this, ri);
|
|
16121
16121
|
/**
|
|
@@ -16180,14 +16180,14 @@ const So = class So {
|
|
|
16180
16180
|
U(this, "ignoreFetchAbort");
|
|
16181
16181
|
// computed properties
|
|
16182
16182
|
W(this, Oe);
|
|
16183
|
-
W(this,
|
|
16183
|
+
W(this, Lt);
|
|
16184
16184
|
W(this, Se);
|
|
16185
16185
|
W(this, pe);
|
|
16186
16186
|
W(this, ne);
|
|
16187
16187
|
W(this, Ye);
|
|
16188
16188
|
W(this, ct);
|
|
16189
16189
|
W(this, Ge);
|
|
16190
|
-
W(this,
|
|
16190
|
+
W(this, Le);
|
|
16191
16191
|
W(this, kt);
|
|
16192
16192
|
W(this, ke);
|
|
16193
16193
|
W(this, Dt);
|
|
@@ -16205,7 +16205,7 @@ const So = class So {
|
|
|
16205
16205
|
});
|
|
16206
16206
|
/* c8 ignore stop */
|
|
16207
16207
|
W(this, dt, () => !1);
|
|
16208
|
-
W(this,
|
|
16208
|
+
W(this, Cn, (e) => {
|
|
16209
16209
|
});
|
|
16210
16210
|
W(this, si, (e, n, i) => {
|
|
16211
16211
|
});
|
|
@@ -16220,13 +16220,13 @@ const So = class So {
|
|
|
16220
16220
|
* `Object.prototype.toString`.
|
|
16221
16221
|
*/
|
|
16222
16222
|
U(this, ru, "LRUCache");
|
|
16223
|
-
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: l, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: m, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation:
|
|
16223
|
+
const { max: n = 0, ttl: i, ttlResolution: r = 1, ttlAutopurge: s, updateAgeOnGet: o, updateAgeOnHas: a, allowStale: u, dispose: l, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: m, maxSize: w = 0, maxEntrySize: E = 0, sizeCalculation: C, fetchMethod: I, memoMethod: _, noDeleteOnFetchRejection: A, noDeleteOnStaleGet: R, allowStaleOnFetchRejection: x, allowStaleOnFetchAbort: S, ignoreFetchAbort: y } = e;
|
|
16224
16224
|
if (n !== 0 && !fn(n))
|
|
16225
16225
|
throw new TypeError("max option must be a nonnegative integer");
|
|
16226
|
-
const T = n ?
|
|
16226
|
+
const T = n ? Ll(n) : Array;
|
|
16227
16227
|
if (!T)
|
|
16228
16228
|
throw new Error("invalid max value: " + n);
|
|
16229
|
-
if ($(this, Ft, n), $(this, lt, w), this.maxEntrySize = E || c(this, lt), this.sizeCalculation =
|
|
16229
|
+
if ($(this, Ft, n), $(this, lt, w), this.maxEntrySize = E || c(this, lt), this.sizeCalculation = C, this.sizeCalculation) {
|
|
16230
16230
|
if (!c(this, lt) && !this.maxEntrySize)
|
|
16231
16231
|
throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
16232
16232
|
if (typeof this.sizeCalculation != "function")
|
|
@@ -16236,7 +16236,7 @@ const So = class So {
|
|
|
16236
16236
|
throw new TypeError("memoMethod must be a function if defined");
|
|
16237
16237
|
if ($(this, ri, _), I !== void 0 && typeof I != "function")
|
|
16238
16238
|
throw new TypeError("fetchMethod must be a function if specified");
|
|
16239
|
-
if ($(this, ii, I), $(this, yn, !!I), $(this, Se, /* @__PURE__ */ new Map()), $(this, pe, new Array(n).fill(void 0)), $(this, ne, new Array(n).fill(void 0)), $(this, Ye, new T(n)), $(this, ct, new T(n)), $(this, Ge, 0), $(this,
|
|
16239
|
+
if ($(this, ii, I), $(this, yn, !!I), $(this, Se, /* @__PURE__ */ new Map()), $(this, pe, new Array(n).fill(void 0)), $(this, ne, new Array(n).fill(void 0)), $(this, Ye, new T(n)), $(this, ct, new T(n)), $(this, Ge, 0), $(this, Le, 0), $(this, kt, Qs.create(n)), $(this, Oe, 0), $(this, Lt, 0), typeof l == "function" && $(this, Rt, l), typeof f == "function" ? ($(this, Ct, f), $(this, ke, [])) : ($(this, Ct, void 0), $(this, ke, void 0)), $(this, Pt, !!c(this, Rt)), $(this, He, !!c(this, Ct)), this.noDisposeOnSet = !!g, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!A, this.allowStaleOnFetchRejection = !!x, this.allowStaleOnFetchAbort = !!S, this.ignoreFetchAbort = !!y, this.maxEntrySize !== 0) {
|
|
16240
16240
|
if (c(this, lt) !== 0 && !fn(c(this, lt)))
|
|
16241
16241
|
throw new TypeError("maxSize must be a positive integer if specified");
|
|
16242
16242
|
if (!fn(this.maxEntrySize))
|
|
@@ -16252,7 +16252,7 @@ const So = class So {
|
|
|
16252
16252
|
throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
16253
16253
|
if (!this.ttlAutopurge && !c(this, Ft) && !c(this, lt)) {
|
|
16254
16254
|
const p = "LRU_CACHE_UNBOUNDED";
|
|
16255
|
-
lm(p) && (Rl.add(p),
|
|
16255
|
+
lm(p) && (Rl.add(p), Cl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", p, So));
|
|
16256
16256
|
}
|
|
16257
16257
|
}
|
|
16258
16258
|
/**
|
|
@@ -16279,7 +16279,7 @@ const So = class So {
|
|
|
16279
16279
|
return c(e, Ge);
|
|
16280
16280
|
},
|
|
16281
16281
|
get tail() {
|
|
16282
|
-
return c(e,
|
|
16282
|
+
return c(e, Le);
|
|
16283
16283
|
},
|
|
16284
16284
|
free: c(e, kt),
|
|
16285
16285
|
// methods
|
|
@@ -16289,11 +16289,11 @@ const So = class So {
|
|
|
16289
16289
|
},
|
|
16290
16290
|
backgroundFetch: (n, i, r, s) => {
|
|
16291
16291
|
var o;
|
|
16292
|
-
return k(o = e, q,
|
|
16292
|
+
return k(o = e, q, Lr).call(o, n, i, r, s);
|
|
16293
16293
|
},
|
|
16294
16294
|
moveToTail: (n) => {
|
|
16295
16295
|
var i;
|
|
16296
|
-
return k(i = e, q,
|
|
16296
|
+
return k(i = e, q, Li).call(i, n);
|
|
16297
16297
|
},
|
|
16298
16298
|
indexes: (n) => {
|
|
16299
16299
|
var i;
|
|
@@ -16326,7 +16326,7 @@ const So = class So {
|
|
|
16326
16326
|
* The total computed size of items in the cache (read-only)
|
|
16327
16327
|
*/
|
|
16328
16328
|
get calculatedSize() {
|
|
16329
|
-
return c(this,
|
|
16329
|
+
return c(this, Lt);
|
|
16330
16330
|
}
|
|
16331
16331
|
/**
|
|
16332
16332
|
* The number of items stored in the cache (read-only)
|
|
@@ -16353,7 +16353,7 @@ const So = class So {
|
|
|
16353
16353
|
* {@link LRUCache.OptionsBase.disposeAfter} (read-only)
|
|
16354
16354
|
*/
|
|
16355
16355
|
get disposeAfter() {
|
|
16356
|
-
return c(this,
|
|
16356
|
+
return c(this, Ct);
|
|
16357
16357
|
}
|
|
16358
16358
|
/**
|
|
16359
16359
|
* Return the number of ms left in the item's TTL. If item is not in cache,
|
|
@@ -16583,7 +16583,7 @@ const So = class So {
|
|
|
16583
16583
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
16584
16584
|
*/
|
|
16585
16585
|
set(e, n, i = {}) {
|
|
16586
|
-
var m, w, E,
|
|
16586
|
+
var m, w, E, C, I;
|
|
16587
16587
|
if (n === void 0)
|
|
16588
16588
|
return this.delete(e), this;
|
|
16589
16589
|
const { ttl: r = this.ttl, start: s, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: u } = i;
|
|
@@ -16593,17 +16593,17 @@ const So = class So {
|
|
|
16593
16593
|
return u && (u.set = "miss", u.maxEntrySizeExceeded = !0), k(this, q, pn).call(this, e, "set"), this;
|
|
16594
16594
|
let g = c(this, Oe) === 0 ? void 0 : c(this, Se).get(e);
|
|
16595
16595
|
if (g === void 0)
|
|
16596
|
-
g = c(this, Oe) === 0 ? c(this,
|
|
16596
|
+
g = c(this, Oe) === 0 ? c(this, Le) : c(this, kt).length !== 0 ? c(this, kt).pop() : c(this, Oe) === c(this, Ft) ? k(this, q, Cr).call(this, !1) : c(this, Oe), c(this, pe)[g] = e, c(this, ne)[g] = n, c(this, Se).set(e, g), c(this, Ye)[c(this, Le)] = g, c(this, ct)[g] = c(this, Le), $(this, Le, g), Sn(this, Oe)._++, c(this, si).call(this, g, f, u), u && (u.set = "add"), l = !1;
|
|
16597
16597
|
else {
|
|
16598
|
-
k(this, q,
|
|
16598
|
+
k(this, q, Li).call(this, g);
|
|
16599
16599
|
const _ = c(this, ne)[g];
|
|
16600
16600
|
if (n !== _) {
|
|
16601
16601
|
if (c(this, yn) && k(this, q, de).call(this, _)) {
|
|
16602
16602
|
_.__abortController.abort(new Error("replaced"));
|
|
16603
16603
|
const { __staleWhileFetching: A } = _;
|
|
16604
16604
|
A !== void 0 && !o && (c(this, Pt) && ((m = c(this, Rt)) == null || m.call(this, A, e, "set")), c(this, He) && ((w = c(this, ke)) == null || w.push([A, e, "set"])));
|
|
16605
|
-
} else o || (c(this, Pt) && ((E = c(this, Rt)) == null || E.call(this, _, e, "set")), c(this, He) && ((
|
|
16606
|
-
if (c(this,
|
|
16605
|
+
} else o || (c(this, Pt) && ((E = c(this, Rt)) == null || E.call(this, _, e, "set")), c(this, He) && ((C = c(this, ke)) == null || C.push([_, e, "set"])));
|
|
16606
|
+
if (c(this, Cn).call(this, g), c(this, si).call(this, g, f, u), c(this, ne)[g] = n, u) {
|
|
16607
16607
|
u.set = "replace";
|
|
16608
16608
|
const A = _ && k(this, q, de).call(this, _) ? _.__staleWhileFetching : _;
|
|
16609
16609
|
A !== void 0 && (u.oldValue = A);
|
|
@@ -16614,7 +16614,7 @@ const So = class So {
|
|
|
16614
16614
|
const _ = c(this, ke);
|
|
16615
16615
|
let A;
|
|
16616
16616
|
for (; A = _ == null ? void 0 : _.shift(); )
|
|
16617
|
-
(I = c(this,
|
|
16617
|
+
(I = c(this, Ct)) == null || I.call(this, ...A);
|
|
16618
16618
|
}
|
|
16619
16619
|
return this;
|
|
16620
16620
|
}
|
|
@@ -16627,7 +16627,7 @@ const So = class So {
|
|
|
16627
16627
|
try {
|
|
16628
16628
|
for (; c(this, Oe); ) {
|
|
16629
16629
|
const n = c(this, ne)[c(this, Ge)];
|
|
16630
|
-
if (k(this, q,
|
|
16630
|
+
if (k(this, q, Cr).call(this, !0), k(this, q, de).call(this, n)) {
|
|
16631
16631
|
if (n.__staleWhileFetching)
|
|
16632
16632
|
return n.__staleWhileFetching;
|
|
16633
16633
|
} else if (n !== void 0)
|
|
@@ -16638,7 +16638,7 @@ const So = class So {
|
|
|
16638
16638
|
const n = c(this, ke);
|
|
16639
16639
|
let i;
|
|
16640
16640
|
for (; i = n == null ? void 0 : n.shift(); )
|
|
16641
|
-
(e = c(this,
|
|
16641
|
+
(e = c(this, Ct)) == null || e.call(this, ...i);
|
|
16642
16642
|
}
|
|
16643
16643
|
}
|
|
16644
16644
|
}
|
|
@@ -16701,7 +16701,7 @@ const So = class So {
|
|
|
16701
16701
|
allowStaleOnFetchRejection: m = this.allowStaleOnFetchRejection,
|
|
16702
16702
|
ignoreFetchAbort: w = this.ignoreFetchAbort,
|
|
16703
16703
|
allowStaleOnFetchAbort: E = this.allowStaleOnFetchAbort,
|
|
16704
|
-
context:
|
|
16704
|
+
context: C,
|
|
16705
16705
|
forceRefresh: I = !1,
|
|
16706
16706
|
status: _,
|
|
16707
16707
|
signal: A
|
|
@@ -16732,7 +16732,7 @@ const So = class So {
|
|
|
16732
16732
|
let x = c(this, Se).get(e);
|
|
16733
16733
|
if (x === void 0) {
|
|
16734
16734
|
_ && (_.fetch = "miss");
|
|
16735
|
-
const S = k(this, q,
|
|
16735
|
+
const S = k(this, q, Lr).call(this, e, x, R, C);
|
|
16736
16736
|
return S.__returned = S;
|
|
16737
16737
|
} else {
|
|
16738
16738
|
const S = c(this, ne)[x];
|
|
@@ -16742,8 +16742,8 @@ const So = class So {
|
|
|
16742
16742
|
}
|
|
16743
16743
|
const y = c(this, dt).call(this, x);
|
|
16744
16744
|
if (!I && !y)
|
|
16745
|
-
return _ && (_.fetch = "hit"), k(this, q,
|
|
16746
|
-
const T = k(this, q,
|
|
16745
|
+
return _ && (_.fetch = "hit"), k(this, q, Li).call(this, x), r && c(this, Rn).call(this, x), _ && c(this, nn).call(this, _, x), S;
|
|
16746
|
+
const T = k(this, q, Lr).call(this, e, x, R, C), b = T.__staleWhileFetching !== void 0 && i;
|
|
16747
16747
|
return _ && (_.fetch = y ? "stale" : "refresh", b && y && (_.returnedStale = !0)), b ? T.__staleWhileFetching : T.__returned = T;
|
|
16748
16748
|
}
|
|
16749
16749
|
}
|
|
@@ -16776,7 +16776,7 @@ const So = class So {
|
|
|
16776
16776
|
const { allowStale: i = this.allowStale, updateAgeOnGet: r = this.updateAgeOnGet, noDeleteOnStaleGet: s = this.noDeleteOnStaleGet, status: o } = n, a = c(this, Se).get(e);
|
|
16777
16777
|
if (a !== void 0) {
|
|
16778
16778
|
const u = c(this, ne)[a], l = k(this, q, de).call(this, u);
|
|
16779
|
-
return o && c(this, nn).call(this, o, a), c(this, dt).call(this, a) ? (o && (o.get = "stale"), l ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, q, pn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), l ? u.__staleWhileFetching : (k(this, q,
|
|
16779
|
+
return o && c(this, nn).call(this, o, a), c(this, dt).call(this, a) ? (o && (o.get = "stale"), l ? (o && i && u.__staleWhileFetching !== void 0 && (o.returnedStale = !0), i ? u.__staleWhileFetching : void 0) : (s || k(this, q, pn).call(this, e, "expire"), o && i && (o.returnedStale = !0), i ? u : void 0)) : (o && (o.get = "hit"), l ? u.__staleWhileFetching : (k(this, q, Li).call(this, a), r && c(this, Rn).call(this, a), u));
|
|
16780
16780
|
} else o && (o.get = "miss");
|
|
16781
16781
|
}
|
|
16782
16782
|
/**
|
|
@@ -16794,7 +16794,7 @@ const So = class So {
|
|
|
16794
16794
|
return k(this, q, Ks).call(this, "delete");
|
|
16795
16795
|
}
|
|
16796
16796
|
};
|
|
16797
|
-
Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(),
|
|
16797
|
+
Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Ct = new WeakMap(), ii = new WeakMap(), ri = new WeakMap(), Oe = new WeakMap(), Lt = new WeakMap(), Se = new WeakMap(), pe = new WeakMap(), ne = new WeakMap(), Ye = new WeakMap(), ct = new WeakMap(), Ge = new WeakMap(), Le = new WeakMap(), kt = new WeakMap(), ke = new WeakMap(), Dt = new WeakMap(), $t = new WeakMap(), ft = new WeakMap(), Pt = new WeakMap(), yn = new WeakMap(), He = new WeakMap(), q = new WeakSet(), Ys = function() {
|
|
16798
16798
|
const e = new Rr(c(this, Ft)), n = new Rr(c(this, Ft));
|
|
16799
16799
|
$(this, ft, e), $(this, $t, n), $(this, Vi, (s, o, a = qn.now()) => {
|
|
16800
16800
|
if (n[s] = o !== 0 ? a : 0, e[s] = o, o !== 0 && this.ttlAutopurge) {
|
|
@@ -16840,8 +16840,8 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16840
16840
|
});
|
|
16841
16841
|
}, Rn = new WeakMap(), nn = new WeakMap(), Vi = new WeakMap(), dt = new WeakMap(), kl = function() {
|
|
16842
16842
|
const e = new Rr(c(this, Ft));
|
|
16843
|
-
$(this,
|
|
16844
|
-
$(this,
|
|
16843
|
+
$(this, Lt, 0), $(this, Dt, e), $(this, Cn, (n) => {
|
|
16844
|
+
$(this, Lt, c(this, Lt) - e[n]), e[n] = 0;
|
|
16845
16845
|
}), $(this, Bi, (n, i, r, s) => {
|
|
16846
16846
|
if (k(this, q, de).call(this, i))
|
|
16847
16847
|
return 0;
|
|
@@ -16857,26 +16857,26 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16857
16857
|
}), $(this, si, (n, i, r) => {
|
|
16858
16858
|
if (e[n] = i, c(this, lt)) {
|
|
16859
16859
|
const s = c(this, lt) - e[n];
|
|
16860
|
-
for (; c(this,
|
|
16861
|
-
k(this, q,
|
|
16860
|
+
for (; c(this, Lt) > s; )
|
|
16861
|
+
k(this, q, Cr).call(this, !0);
|
|
16862
16862
|
}
|
|
16863
|
-
$(this,
|
|
16863
|
+
$(this, Lt, c(this, Lt) + e[n]), r && (r.entrySize = i, r.totalCalculatedSize = c(this, Lt));
|
|
16864
16864
|
});
|
|
16865
|
-
},
|
|
16865
|
+
}, Cn = new WeakMap(), si = new WeakMap(), Bi = new WeakMap(), dn = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
16866
16866
|
if (c(this, Oe))
|
|
16867
|
-
for (let n = c(this,
|
|
16867
|
+
for (let n = c(this, Le); !(!k(this, q, Hs).call(this, n) || ((e || !c(this, dt).call(this, n)) && (yield n), n === c(this, Ge))); )
|
|
16868
16868
|
n = c(this, ct)[n];
|
|
16869
16869
|
}, hn = function* ({ allowStale: e = this.allowStale } = {}) {
|
|
16870
16870
|
if (c(this, Oe))
|
|
16871
|
-
for (let n = c(this, Ge); !(!k(this, q, Hs).call(this, n) || ((e || !c(this, dt).call(this, n)) && (yield n), n === c(this,
|
|
16871
|
+
for (let n = c(this, Ge); !(!k(this, q, Hs).call(this, n) || ((e || !c(this, dt).call(this, n)) && (yield n), n === c(this, Le))); )
|
|
16872
16872
|
n = c(this, Ye)[n];
|
|
16873
16873
|
}, Hs = function(e) {
|
|
16874
16874
|
return e !== void 0 && c(this, Se).get(c(this, pe)[e]) === e;
|
|
16875
|
-
},
|
|
16875
|
+
}, Cr = function(e) {
|
|
16876
16876
|
var s, o;
|
|
16877
16877
|
const n = c(this, Ge), i = c(this, pe)[n], r = c(this, ne)[n];
|
|
16878
|
-
return c(this, yn) && k(this, q, de).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, Pt) || c(this, He)) && (c(this, Pt) && ((s = c(this, Rt)) == null || s.call(this, r, i, "evict")), c(this, He) && ((o = c(this, ke)) == null || o.push([r, i, "evict"]))), c(this,
|
|
16879
|
-
},
|
|
16878
|
+
return c(this, yn) && k(this, q, de).call(this, r) ? r.__abortController.abort(new Error("evicted")) : (c(this, Pt) || c(this, He)) && (c(this, Pt) && ((s = c(this, Rt)) == null || s.call(this, r, i, "evict")), c(this, He) && ((o = c(this, ke)) == null || o.push([r, i, "evict"]))), c(this, Cn).call(this, n), e && (c(this, pe)[n] = void 0, c(this, ne)[n] = void 0, c(this, kt).push(n)), c(this, Oe) === 1 ? ($(this, Ge, $(this, Le, 0)), c(this, kt).length = 0) : $(this, Ge, c(this, Ye)[n]), c(this, Se).delete(i), Sn(this, Oe)._--, n;
|
|
16879
|
+
}, Lr = function(e, n, i, r) {
|
|
16880
16880
|
const s = n === void 0 ? void 0 : c(this, ne)[n];
|
|
16881
16881
|
if (k(this, q, de).call(this, s))
|
|
16882
16882
|
return s;
|
|
@@ -16888,23 +16888,23 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16888
16888
|
signal: o.signal,
|
|
16889
16889
|
options: i,
|
|
16890
16890
|
context: r
|
|
16891
|
-
}, l = (
|
|
16892
|
-
const { aborted: _ } = o.signal, A = i.ignoreFetchAbort &&
|
|
16891
|
+
}, l = (C, I = !1) => {
|
|
16892
|
+
const { aborted: _ } = o.signal, A = i.ignoreFetchAbort && C !== void 0;
|
|
16893
16893
|
if (i.status && (_ && !I ? (i.status.fetchAborted = !0, i.status.fetchError = o.signal.reason, A && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), _ && !A && !I)
|
|
16894
16894
|
return g(o.signal.reason);
|
|
16895
16895
|
const R = w;
|
|
16896
|
-
return c(this, ne)[n] === w && (
|
|
16897
|
-
}, f = (
|
|
16896
|
+
return c(this, ne)[n] === w && (C === void 0 ? R.__staleWhileFetching ? c(this, ne)[n] = R.__staleWhileFetching : k(this, q, pn).call(this, e, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.set(e, C, u.options))), C;
|
|
16897
|
+
}, f = (C) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = C), g(C)), g = (C) => {
|
|
16898
16898
|
const { aborted: I } = o.signal, _ = I && i.allowStaleOnFetchAbort, A = _ || i.allowStaleOnFetchRejection, R = A || i.noDeleteOnFetchRejection, x = w;
|
|
16899
16899
|
if (c(this, ne)[n] === w && (!R || x.__staleWhileFetching === void 0 ? k(this, q, pn).call(this, e, "fetch") : _ || (c(this, ne)[n] = x.__staleWhileFetching)), A)
|
|
16900
16900
|
return i.status && x.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), x.__staleWhileFetching;
|
|
16901
16901
|
if (x.__returned === x)
|
|
16902
|
-
throw
|
|
16903
|
-
}, m = (
|
|
16902
|
+
throw C;
|
|
16903
|
+
}, m = (C, I) => {
|
|
16904
16904
|
var A;
|
|
16905
16905
|
const _ = (A = c(this, ii)) == null ? void 0 : A.call(this, e, s, u);
|
|
16906
|
-
_ && _ instanceof Promise && _.then((R) =>
|
|
16907
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
16906
|
+
_ && _ instanceof Promise && _.then((R) => C(R === void 0 ? void 0 : R), I), o.signal.addEventListener("abort", () => {
|
|
16907
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (C(void 0), i.allowStaleOnFetchAbort && (C = (R) => l(R, !0)));
|
|
16908
16908
|
});
|
|
16909
16909
|
};
|
|
16910
16910
|
i.status && (i.status.fetchDispatched = !0);
|
|
@@ -16921,8 +16921,8 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16921
16921
|
return !!n && n instanceof Promise && n.hasOwnProperty("__staleWhileFetching") && n.__abortController instanceof Gr;
|
|
16922
16922
|
}, Js = function(e, n) {
|
|
16923
16923
|
c(this, ct)[n] = e, c(this, Ye)[e] = n;
|
|
16924
|
-
},
|
|
16925
|
-
e !== c(this,
|
|
16924
|
+
}, Li = function(e) {
|
|
16925
|
+
e !== c(this, Le) && (e === c(this, Ge) ? $(this, Ge, c(this, Ye)[e]) : k(this, q, Js).call(this, c(this, ct)[e], c(this, Ye)[e]), k(this, q, Js).call(this, c(this, Le), e), $(this, Le, e));
|
|
16926
16926
|
}, pn = function(e, n) {
|
|
16927
16927
|
var r, s, o, a;
|
|
16928
16928
|
let i = !1;
|
|
@@ -16932,10 +16932,10 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16932
16932
|
if (i = !0, c(this, Oe) === 1)
|
|
16933
16933
|
k(this, q, Ks).call(this, n);
|
|
16934
16934
|
else {
|
|
16935
|
-
c(this,
|
|
16935
|
+
c(this, Cn).call(this, u);
|
|
16936
16936
|
const l = c(this, ne)[u];
|
|
16937
|
-
if (k(this, q, de).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (c(this, Pt) || c(this, He)) && (c(this, Pt) && ((r = c(this, Rt)) == null || r.call(this, l, e, n)), c(this, He) && ((s = c(this, ke)) == null || s.push([l, e, n]))), c(this, Se).delete(e), c(this, pe)[u] = void 0, c(this, ne)[u] = void 0, u === c(this,
|
|
16938
|
-
$(this,
|
|
16937
|
+
if (k(this, q, de).call(this, l) ? l.__abortController.abort(new Error("deleted")) : (c(this, Pt) || c(this, He)) && (c(this, Pt) && ((r = c(this, Rt)) == null || r.call(this, l, e, n)), c(this, He) && ((s = c(this, ke)) == null || s.push([l, e, n]))), c(this, Se).delete(e), c(this, pe)[u] = void 0, c(this, ne)[u] = void 0, u === c(this, Le))
|
|
16938
|
+
$(this, Le, c(this, ct)[u]);
|
|
16939
16939
|
else if (u === c(this, Ge))
|
|
16940
16940
|
$(this, Ge, c(this, Ye)[u]);
|
|
16941
16941
|
else {
|
|
@@ -16951,7 +16951,7 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16951
16951
|
const u = c(this, ke);
|
|
16952
16952
|
let l;
|
|
16953
16953
|
for (; l = u == null ? void 0 : u.shift(); )
|
|
16954
|
-
(a = c(this,
|
|
16954
|
+
(a = c(this, Ct)) == null || a.call(this, ...l);
|
|
16955
16955
|
}
|
|
16956
16956
|
return i;
|
|
16957
16957
|
}, Ks = function(e) {
|
|
@@ -16965,11 +16965,11 @@ Ft = new WeakMap(), lt = new WeakMap(), Rt = new WeakMap(), Lt = new WeakMap(),
|
|
|
16965
16965
|
c(this, Pt) && ((n = c(this, Rt)) == null || n.call(this, o, a, e)), c(this, He) && ((i = c(this, ke)) == null || i.push([o, a, e]));
|
|
16966
16966
|
}
|
|
16967
16967
|
}
|
|
16968
|
-
if (c(this, Se).clear(), c(this, ne).fill(void 0), c(this, pe).fill(void 0), c(this, ft) && c(this, $t) && (c(this, ft).fill(0), c(this, $t).fill(0)), c(this, Dt) && c(this, Dt).fill(0), $(this, Ge, 0), $(this,
|
|
16968
|
+
if (c(this, Se).clear(), c(this, ne).fill(void 0), c(this, pe).fill(void 0), c(this, ft) && c(this, $t) && (c(this, ft).fill(0), c(this, $t).fill(0)), c(this, Dt) && c(this, Dt).fill(0), $(this, Ge, 0), $(this, Le, 0), c(this, kt).length = 0, $(this, Lt, 0), $(this, Oe, 0), c(this, He) && c(this, ke)) {
|
|
16969
16969
|
const s = c(this, ke);
|
|
16970
16970
|
let o;
|
|
16971
16971
|
for (; o = s == null ? void 0 : s.shift(); )
|
|
16972
|
-
(r = c(this,
|
|
16972
|
+
(r = c(this, Ct)) == null || r.call(this, ...o);
|
|
16973
16973
|
}
|
|
16974
16974
|
};
|
|
16975
16975
|
let Ws = So;
|
|
@@ -17003,19 +17003,19 @@ function cm() {
|
|
|
17003
17003
|
}({ 1: [function(n, i, r) {
|
|
17004
17004
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17005
17005
|
var E = n("crypto");
|
|
17006
|
-
function
|
|
17006
|
+
function C(y, T) {
|
|
17007
17007
|
T = A(y, T);
|
|
17008
17008
|
var p;
|
|
17009
17009
|
return (p = T.algorithm !== "passthrough" ? E.createHash(T.algorithm) : new S()).write === void 0 && (p.write = p.update, p.end = p.update), x(T, p).dispatch(y), p.update || p.end(""), p.digest ? p.digest(T.encoding === "buffer" ? void 0 : T.encoding) : (y = p.read(), T.encoding !== "buffer" ? y.toString(T.encoding) : y);
|
|
17010
17010
|
}
|
|
17011
|
-
(r = i.exports =
|
|
17012
|
-
return
|
|
17011
|
+
(r = i.exports = C).sha1 = function(y) {
|
|
17012
|
+
return C(y);
|
|
17013
17013
|
}, r.keys = function(y) {
|
|
17014
|
-
return
|
|
17014
|
+
return C(y, { excludeValues: !0, algorithm: "sha1", encoding: "hex" });
|
|
17015
17015
|
}, r.MD5 = function(y) {
|
|
17016
|
-
return
|
|
17016
|
+
return C(y, { algorithm: "md5", encoding: "hex" });
|
|
17017
17017
|
}, r.keysMD5 = function(y) {
|
|
17018
|
-
return
|
|
17018
|
+
return C(y, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
|
|
17019
17019
|
};
|
|
17020
17020
|
var I = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], _ = (I.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
|
|
17021
17021
|
function A(y, T) {
|
|
@@ -17037,12 +17037,12 @@ function cm() {
|
|
|
17037
17037
|
return { dispatch: function(d) {
|
|
17038
17038
|
return this["_" + ((d = y.replacer ? y.replacer(d) : d) === null ? "null" : typeof d)](d);
|
|
17039
17039
|
}, _object: function(d) {
|
|
17040
|
-
var O,
|
|
17041
|
-
if (Z = (Z = Z ? Z[1] : "unknown:[" +
|
|
17040
|
+
var O, L = Object.prototype.toString.call(d), Z = /\[object (.*)\]/i.exec(L);
|
|
17041
|
+
if (Z = (Z = Z ? Z[1] : "unknown:[" + L + "]").toLowerCase(), 0 <= (L = p.indexOf(d))) return this.dispatch("[CIRCULAR:" + L + "]");
|
|
17042
17042
|
if (p.push(d), a !== void 0 && a.isBuffer && a.isBuffer(d)) return b("buffer:"), b(d);
|
|
17043
|
-
if (Z === "object" || Z === "function" || Z === "asyncfunction") return
|
|
17043
|
+
if (Z === "object" || Z === "function" || Z === "asyncfunction") return L = Object.keys(d), y.unorderedObjects && (L = L.sort()), y.respectType === !1 || R(d) || L.splice(0, 0, "prototype", "__proto__", "constructor"), y.excludeKeys && (L = L.filter(function(Y) {
|
|
17044
17044
|
return !y.excludeKeys(Y);
|
|
17045
|
-
})), b("object:" +
|
|
17045
|
+
})), b("object:" + L.length + ":"), O = this, L.forEach(function(Y) {
|
|
17046
17046
|
O.dispatch(Y), b(":"), y.excludeValues || O.dispatch(d[Y]), b(",");
|
|
17047
17047
|
});
|
|
17048
17048
|
if (!this["_" + Z]) {
|
|
@@ -17052,9 +17052,9 @@ function cm() {
|
|
|
17052
17052
|
this["_" + Z](d);
|
|
17053
17053
|
}, _array: function(d, Y) {
|
|
17054
17054
|
Y = Y !== void 0 ? Y : y.unorderedArrays !== !1;
|
|
17055
|
-
var
|
|
17055
|
+
var L = this;
|
|
17056
17056
|
if (b("array:" + d.length + ":"), !Y || d.length <= 1) return d.forEach(function(J) {
|
|
17057
|
-
return
|
|
17057
|
+
return L.dispatch(J);
|
|
17058
17058
|
});
|
|
17059
17059
|
var Z = [], Y = d.map(function(J) {
|
|
17060
17060
|
var V = new S(), ee = p.slice();
|
|
@@ -17173,25 +17173,25 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
17173
17173
|
}, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(n, i, r) {
|
|
17174
17174
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17175
17175
|
(function(E) {
|
|
17176
|
-
var
|
|
17176
|
+
var C = typeof Uint8Array < "u" ? Uint8Array : Array, I = 43, _ = 47, A = 48, R = 97, x = 65, S = 45, y = 95;
|
|
17177
17177
|
function T(p) {
|
|
17178
17178
|
return p = p.charCodeAt(0), p === I || p === S ? 62 : p === _ || p === y ? 63 : p < A ? -1 : p < A + 10 ? p - A + 26 + 26 : p < x + 26 ? p - x : p < R + 26 ? p - R + 26 : void 0;
|
|
17179
17179
|
}
|
|
17180
17180
|
E.toByteArray = function(p) {
|
|
17181
17181
|
var b, d;
|
|
17182
17182
|
if (0 < p.length % 4) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
17183
|
-
var O = p.length, O = p.charAt(O - 2) === "=" ? 2 : p.charAt(O - 1) === "=" ? 1 : 0,
|
|
17183
|
+
var O = p.length, O = p.charAt(O - 2) === "=" ? 2 : p.charAt(O - 1) === "=" ? 1 : 0, L = new C(3 * p.length / 4 - O), Z = 0 < O ? p.length - 4 : p.length, Y = 0;
|
|
17184
17184
|
function J(V) {
|
|
17185
|
-
|
|
17185
|
+
L[Y++] = V;
|
|
17186
17186
|
}
|
|
17187
17187
|
for (b = 0; b < Z; b += 4, 0) J((16711680 & (d = T(p.charAt(b)) << 18 | T(p.charAt(b + 1)) << 12 | T(p.charAt(b + 2)) << 6 | T(p.charAt(b + 3)))) >> 16), J((65280 & d) >> 8), J(255 & d);
|
|
17188
|
-
return O == 2 ? J(255 & (d = T(p.charAt(b)) << 2 | T(p.charAt(b + 1)) >> 4)) : O == 1 && (J((d = T(p.charAt(b)) << 10 | T(p.charAt(b + 1)) << 4 | T(p.charAt(b + 2)) >> 2) >> 8 & 255), J(255 & d)),
|
|
17188
|
+
return O == 2 ? J(255 & (d = T(p.charAt(b)) << 2 | T(p.charAt(b + 1)) >> 4)) : O == 1 && (J((d = T(p.charAt(b)) << 10 | T(p.charAt(b + 1)) << 4 | T(p.charAt(b + 2)) >> 2) >> 8 & 255), J(255 & d)), L;
|
|
17189
17189
|
}, E.fromByteArray = function(p) {
|
|
17190
|
-
var b, d, O,
|
|
17190
|
+
var b, d, O, L, Z = p.length % 3, Y = "";
|
|
17191
17191
|
function J(V) {
|
|
17192
17192
|
return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(V);
|
|
17193
17193
|
}
|
|
17194
|
-
for (b = 0, O = p.length - Z; b < O; b += 3) d = (p[b] << 16) + (p[b + 1] << 8) + p[b + 2], Y += J((
|
|
17194
|
+
for (b = 0, O = p.length - Z; b < O; b += 3) d = (p[b] << 16) + (p[b + 1] << 8) + p[b + 2], Y += J((L = d) >> 18 & 63) + J(L >> 12 & 63) + J(L >> 6 & 63) + J(63 & L);
|
|
17195
17195
|
switch (Z) {
|
|
17196
17196
|
case 1:
|
|
17197
17197
|
Y = (Y += J((d = p[p.length - 1]) >> 2)) + J(d << 4 & 63) + "==";
|
|
@@ -17205,7 +17205,7 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
17205
17205
|
}).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");
|
|
17206
17206
|
}, { buffer: 3, lYpoI2: 11 }], 3: [function(n, i, r) {
|
|
17207
17207
|
(function(s, o, I, u, l, f, g, m, w) {
|
|
17208
|
-
var E = n("base64-js"),
|
|
17208
|
+
var E = n("base64-js"), C = n("ieee754");
|
|
17209
17209
|
function I(h, v, F) {
|
|
17210
17210
|
if (!(this instanceof I)) return new I(h, v, F);
|
|
17211
17211
|
var M, j, Q, ae, be = typeof h;
|
|
@@ -17257,10 +17257,10 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
17257
17257
|
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 = S(h, v, F, !0), 2147483648 & M ? -1 * (4294967295 - M + 1) : M;
|
|
17258
17258
|
}
|
|
17259
17259
|
function p(h, v, F, M) {
|
|
17260
|
-
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 3 < h.length, "Trying to read beyond buffer length")),
|
|
17260
|
+
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 3 < h.length, "Trying to read beyond buffer length")), C.read(h, v, F, 23, 4);
|
|
17261
17261
|
}
|
|
17262
17262
|
function b(h, v, F, M) {
|
|
17263
|
-
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 7 < h.length, "Trying to read beyond buffer length")),
|
|
17263
|
+
return M || (z(typeof F == "boolean", "missing or invalid endian"), z(v + 7 < h.length, "Trying to read beyond buffer length")), C.read(h, v, F, 52, 8);
|
|
17264
17264
|
}
|
|
17265
17265
|
function d(h, v, F, M, j) {
|
|
17266
17266
|
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"), rs(v, 65535)), j = h.length, !(j <= F)) for (var Q = 0, ae = Math.min(j - F, 2); Q < ae; Q++) h[F + Q] = (v & 255 << 8 * (M ? Q : 1 - Q)) >>> 8 * (M ? Q : 1 - Q);
|
|
@@ -17268,17 +17268,17 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
17268
17268
|
function O(h, v, F, M, j) {
|
|
17269
17269
|
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"), rs(v, 4294967295)), j = h.length, !(j <= F)) for (var Q = 0, ae = Math.min(j - F, 4); Q < ae; Q++) h[F + Q] = v >>> 8 * (M ? Q : 3 - Q) & 255;
|
|
17270
17270
|
}
|
|
17271
|
-
function
|
|
17271
|
+
function L(h, v, F, M, j) {
|
|
17272
17272
|
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"), ss(v, 32767, -32768)), h.length <= F || d(h, 0 <= v ? v : 65535 + v + 1, F, M, j);
|
|
17273
17273
|
}
|
|
17274
17274
|
function Z(h, v, F, M, j) {
|
|
17275
17275
|
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"), ss(v, 2147483647, -2147483648)), h.length <= F || O(h, 0 <= v ? v : 4294967295 + v + 1, F, M, j);
|
|
17276
17276
|
}
|
|
17277
17277
|
function Y(h, v, F, M, j) {
|
|
17278
|
-
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"), Oo(v, 34028234663852886e22, -34028234663852886e22)), h.length <= F ||
|
|
17278
|
+
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"), Oo(v, 34028234663852886e22, -34028234663852886e22)), h.length <= F || C.write(h, v, F, M, 23, 4);
|
|
17279
17279
|
}
|
|
17280
17280
|
function J(h, v, F, M, j) {
|
|
17281
|
-
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"), Oo(v, 17976931348623157e292, -17976931348623157e292)), h.length <= F ||
|
|
17281
|
+
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"), Oo(v, 17976931348623157e292, -17976931348623157e292)), h.length <= F || C.write(h, v, F, M, 52, 8);
|
|
17282
17282
|
}
|
|
17283
17283
|
r.Buffer = I, r.SlowBuffer = I, r.INSPECT_MAX_BYTES = 50, I.poolSize = 8192, I._useTypedArrays = function() {
|
|
17284
17284
|
try {
|
|
@@ -17483,9 +17483,9 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17483
17483
|
}, I.prototype.writeInt8 = function(h, v, F) {
|
|
17484
17484
|
F || (z(h != null, "missing value"), z(v != null, "missing offset"), z(v < this.length, "Trying to write beyond buffer length"), ss(h, 127, -128)), v >= this.length || (0 <= h ? this.writeUInt8(h, v, F) : this.writeUInt8(255 + h + 1, v, F));
|
|
17485
17485
|
}, I.prototype.writeInt16LE = function(h, v, F) {
|
|
17486
|
-
|
|
17486
|
+
L(this, h, v, !0, F);
|
|
17487
17487
|
}, I.prototype.writeInt16BE = function(h, v, F) {
|
|
17488
|
-
|
|
17488
|
+
L(this, h, v, !1, F);
|
|
17489
17489
|
}, I.prototype.writeInt32LE = function(h, v, F) {
|
|
17490
17490
|
Z(this, h, v, !0, F);
|
|
17491
17491
|
}, I.prototype.writeInt32BE = function(h, v, F) {
|
|
@@ -17570,11 +17570,11 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17570
17570
|
}).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");
|
|
17571
17571
|
}, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(n, i, r) {
|
|
17572
17572
|
(function(s, o, E, u, l, f, g, m, w) {
|
|
17573
|
-
var E = n("buffer").Buffer,
|
|
17573
|
+
var E = n("buffer").Buffer, C = 4, I = new E(C);
|
|
17574
17574
|
I.fill(0), i.exports = { hash: function(_, A, R, x) {
|
|
17575
17575
|
for (var S = A(function(d, O) {
|
|
17576
|
-
d.length %
|
|
17577
|
-
for (var
|
|
17576
|
+
d.length % C != 0 && (L = d.length + (C - d.length % C), d = E.concat([d, I], L));
|
|
17577
|
+
for (var L, Z = [], Y = O ? d.readInt32BE : d.readInt32LE, J = 0; J < d.length; J += C) Z.push(Y.call(d, J));
|
|
17578
17578
|
return Z;
|
|
17579
17579
|
}(_ = E.isBuffer(_) ? _ : new E(_), x), 8 * _.length), A = x, y = new E(R), T = A ? y.writeInt32BE : y.writeInt32LE, p = 0; p < S.length; p++) T.call(y, S[p], 4 * p, !0);
|
|
17580
17580
|
return y;
|
|
@@ -17582,17 +17582,17 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17582
17582
|
}).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");
|
|
17583
17583
|
}, { buffer: 3, lYpoI2: 11 }], 5: [function(n, i, r) {
|
|
17584
17584
|
(function(s, o, E, u, l, f, g, m, w) {
|
|
17585
|
-
var E = n("buffer").Buffer,
|
|
17585
|
+
var E = n("buffer").Buffer, C = n("./sha"), I = n("./sha256"), _ = n("./rng"), A = { sha1: C, sha256: I, md5: n("./md5") }, R = 64, x = new E(R);
|
|
17586
17586
|
function S(d, O) {
|
|
17587
|
-
var
|
|
17588
|
-
return
|
|
17587
|
+
var L = A[d = d || "sha1"], Z = [];
|
|
17588
|
+
return L || y("algorithm:", d, "is not yet supported"), { update: function(Y) {
|
|
17589
17589
|
return E.isBuffer(Y) || (Y = new E(Y)), Z.push(Y), Y.length, this;
|
|
17590
17590
|
}, digest: function(Y) {
|
|
17591
17591
|
var J = E.concat(Z), J = O ? function(V, ee, Be) {
|
|
17592
17592
|
E.isBuffer(ee) || (ee = new E(ee)), E.isBuffer(Be) || (Be = new E(Be)), ee.length > R ? ee = V(ee) : ee.length < R && (ee = E.concat([ee, x], R));
|
|
17593
17593
|
for (var ye = new E(R), ce = new E(R), Xt = 0; Xt < R; Xt++) ye[Xt] = 54 ^ ee[Xt], ce[Xt] = 92 ^ ee[Xt];
|
|
17594
17594
|
return Be = V(E.concat([ye, Be])), V(E.concat([ce, Be]));
|
|
17595
|
-
}(
|
|
17595
|
+
}(L, O, J) : L(J);
|
|
17596
17596
|
return Z = null, Y ? J.toString(Y) : J;
|
|
17597
17597
|
} };
|
|
17598
17598
|
}
|
|
@@ -17607,8 +17607,8 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17607
17607
|
if (!O || !O.call) return new E(_(d));
|
|
17608
17608
|
try {
|
|
17609
17609
|
O.call(this, void 0, new E(_(d)));
|
|
17610
|
-
} catch (
|
|
17611
|
-
O(
|
|
17610
|
+
} catch (L) {
|
|
17611
|
+
O(L);
|
|
17612
17612
|
}
|
|
17613
17613
|
};
|
|
17614
17614
|
var T, p = ["createCredentials", "createCipher", "createCipheriv", "createDecipher", "createDecipheriv", "createSign", "createVerify", "createDiffieHellman", "pbkdf2"], b = function(d) {
|
|
@@ -17621,57 +17621,57 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17621
17621
|
}, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(n, i, r) {
|
|
17622
17622
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17623
17623
|
var E = n("./helpers");
|
|
17624
|
-
function
|
|
17624
|
+
function C(y, T) {
|
|
17625
17625
|
y[T >> 5] |= 128 << T % 32, y[14 + (T + 64 >>> 9 << 4)] = T;
|
|
17626
|
-
for (var p = 1732584193, b = -271733879, d = -1732584194, O = 271733878,
|
|
17627
|
-
var Z = p, Y = b, J = d, V = O, p = _(p, b, d, O, y[
|
|
17628
|
-
p = _(p, b, d, O, y[
|
|
17626
|
+
for (var p = 1732584193, b = -271733879, d = -1732584194, O = 271733878, L = 0; L < y.length; L += 16) {
|
|
17627
|
+
var Z = p, Y = b, J = d, V = O, p = _(p, b, d, O, y[L + 0], 7, -680876936), O = _(O, p, b, d, y[L + 1], 12, -389564586), d = _(d, O, p, b, y[L + 2], 17, 606105819), b = _(b, d, O, p, y[L + 3], 22, -1044525330);
|
|
17628
|
+
p = _(p, b, d, O, y[L + 4], 7, -176418897), O = _(O, p, b, d, y[L + 5], 12, 1200080426), d = _(d, O, p, b, y[L + 6], 17, -1473231341), b = _(b, d, O, p, y[L + 7], 22, -45705983), p = _(p, b, d, O, y[L + 8], 7, 1770035416), O = _(O, p, b, d, y[L + 9], 12, -1958414417), d = _(d, O, p, b, y[L + 10], 17, -42063), b = _(b, d, O, p, y[L + 11], 22, -1990404162), p = _(p, b, d, O, y[L + 12], 7, 1804603682), O = _(O, p, b, d, y[L + 13], 12, -40341101), d = _(d, O, p, b, y[L + 14], 17, -1502002290), p = A(p, b = _(b, d, O, p, y[L + 15], 22, 1236535329), d, O, y[L + 1], 5, -165796510), O = A(O, p, b, d, y[L + 6], 9, -1069501632), d = A(d, O, p, b, y[L + 11], 14, 643717713), b = A(b, d, O, p, y[L + 0], 20, -373897302), p = A(p, b, d, O, y[L + 5], 5, -701558691), O = A(O, p, b, d, y[L + 10], 9, 38016083), d = A(d, O, p, b, y[L + 15], 14, -660478335), b = A(b, d, O, p, y[L + 4], 20, -405537848), p = A(p, b, d, O, y[L + 9], 5, 568446438), O = A(O, p, b, d, y[L + 14], 9, -1019803690), d = A(d, O, p, b, y[L + 3], 14, -187363961), b = A(b, d, O, p, y[L + 8], 20, 1163531501), p = A(p, b, d, O, y[L + 13], 5, -1444681467), O = A(O, p, b, d, y[L + 2], 9, -51403784), d = A(d, O, p, b, y[L + 7], 14, 1735328473), p = R(p, b = A(b, d, O, p, y[L + 12], 20, -1926607734), d, O, y[L + 5], 4, -378558), O = R(O, p, b, d, y[L + 8], 11, -2022574463), d = R(d, O, p, b, y[L + 11], 16, 1839030562), b = R(b, d, O, p, y[L + 14], 23, -35309556), p = R(p, b, d, O, y[L + 1], 4, -1530992060), O = R(O, p, b, d, y[L + 4], 11, 1272893353), d = R(d, O, p, b, y[L + 7], 16, -155497632), b = R(b, d, O, p, y[L + 10], 23, -1094730640), p = R(p, b, d, O, y[L + 13], 4, 681279174), O = R(O, p, b, d, y[L + 0], 11, -358537222), d = R(d, O, p, b, y[L + 3], 16, -722521979), b = R(b, d, O, p, y[L + 6], 23, 76029189), p = R(p, b, d, O, y[L + 9], 4, -640364487), O = R(O, p, b, d, y[L + 12], 11, -421815835), d = R(d, O, p, b, y[L + 15], 16, 530742520), p = x(p, b = R(b, d, O, p, y[L + 2], 23, -995338651), d, O, y[L + 0], 6, -198630844), O = x(O, p, b, d, y[L + 7], 10, 1126891415), d = x(d, O, p, b, y[L + 14], 15, -1416354905), b = x(b, d, O, p, y[L + 5], 21, -57434055), p = x(p, b, d, O, y[L + 12], 6, 1700485571), O = x(O, p, b, d, y[L + 3], 10, -1894986606), d = x(d, O, p, b, y[L + 10], 15, -1051523), b = x(b, d, O, p, y[L + 1], 21, -2054922799), p = x(p, b, d, O, y[L + 8], 6, 1873313359), O = x(O, p, b, d, y[L + 15], 10, -30611744), d = x(d, O, p, b, y[L + 6], 15, -1560198380), b = x(b, d, O, p, y[L + 13], 21, 1309151649), p = x(p, b, d, O, y[L + 4], 6, -145523070), O = x(O, p, b, d, y[L + 11], 10, -1120210379), d = x(d, O, p, b, y[L + 2], 15, 718787259), b = x(b, d, O, p, y[L + 9], 21, -343485551), p = S(p, Z), b = S(b, Y), d = S(d, J), O = S(O, V);
|
|
17629
17629
|
}
|
|
17630
17630
|
return Array(p, b, d, O);
|
|
17631
17631
|
}
|
|
17632
17632
|
function I(y, T, p, b, d, O) {
|
|
17633
17633
|
return S((T = S(S(T, y), S(b, O))) << d | T >>> 32 - d, p);
|
|
17634
17634
|
}
|
|
17635
|
-
function _(y, T, p, b, d, O,
|
|
17636
|
-
return I(T & p | ~T & b, y, T, d, O,
|
|
17635
|
+
function _(y, T, p, b, d, O, L) {
|
|
17636
|
+
return I(T & p | ~T & b, y, T, d, O, L);
|
|
17637
17637
|
}
|
|
17638
|
-
function A(y, T, p, b, d, O,
|
|
17639
|
-
return I(T & b | p & ~b, y, T, d, O,
|
|
17638
|
+
function A(y, T, p, b, d, O, L) {
|
|
17639
|
+
return I(T & b | p & ~b, y, T, d, O, L);
|
|
17640
17640
|
}
|
|
17641
|
-
function R(y, T, p, b, d, O,
|
|
17642
|
-
return I(T ^ p ^ b, y, T, d, O,
|
|
17641
|
+
function R(y, T, p, b, d, O, L) {
|
|
17642
|
+
return I(T ^ p ^ b, y, T, d, O, L);
|
|
17643
17643
|
}
|
|
17644
|
-
function x(y, T, p, b, d, O,
|
|
17645
|
-
return I(p ^ (T | ~b), y, T, d, O,
|
|
17644
|
+
function x(y, T, p, b, d, O, L) {
|
|
17645
|
+
return I(p ^ (T | ~b), y, T, d, O, L);
|
|
17646
17646
|
}
|
|
17647
17647
|
function S(y, T) {
|
|
17648
17648
|
var p = (65535 & y) + (65535 & T);
|
|
17649
17649
|
return (y >> 16) + (T >> 16) + (p >> 16) << 16 | 65535 & p;
|
|
17650
17650
|
}
|
|
17651
17651
|
i.exports = function(y) {
|
|
17652
|
-
return E.hash(y,
|
|
17652
|
+
return E.hash(y, C, 16);
|
|
17653
17653
|
};
|
|
17654
17654
|
}).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");
|
|
17655
17655
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(n, i, r) {
|
|
17656
17656
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17657
17657
|
i.exports = function(E) {
|
|
17658
|
-
for (var
|
|
17658
|
+
for (var C, I = new Array(E), _ = 0; _ < E; _++) !(3 & _) && (C = 4294967296 * Math.random()), I[_] = C >>> ((3 & _) << 3) & 255;
|
|
17659
17659
|
return I;
|
|
17660
17660
|
};
|
|
17661
17661
|
}).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");
|
|
17662
17662
|
}, { buffer: 3, lYpoI2: 11 }], 8: [function(n, i, r) {
|
|
17663
17663
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17664
17664
|
var E = n("./helpers");
|
|
17665
|
-
function
|
|
17665
|
+
function C(A, R) {
|
|
17666
17666
|
A[R >> 5] |= 128 << 24 - R % 32, A[15 + (R + 64 >> 9 << 4)] = R;
|
|
17667
|
-
for (var x, S, y, T = Array(80), p = 1732584193, b = -271733879, d = -1732584194, O = 271733878,
|
|
17668
|
-
for (var Y = p, J = b, V = d, ee = O, Be =
|
|
17667
|
+
for (var x, S, y, T = Array(80), p = 1732584193, b = -271733879, d = -1732584194, O = 271733878, L = -1009589776, Z = 0; Z < A.length; Z += 16) {
|
|
17668
|
+
for (var Y = p, J = b, V = d, ee = O, Be = L, ye = 0; ye < 80; ye++) {
|
|
17669
17669
|
T[ye] = ye < 16 ? A[Z + ye] : _(T[ye - 3] ^ T[ye - 8] ^ T[ye - 14] ^ T[ye - 16], 1);
|
|
17670
|
-
var ce = I(I(_(p, 5), (ce = b, S = d, y = O, (x = ye) < 20 ? ce & S | ~ce & y : !(x < 40) && x < 60 ? ce & S | ce & y | S & y : ce ^ S ^ y)), I(I(
|
|
17670
|
+
var ce = I(I(_(p, 5), (ce = b, S = d, y = O, (x = ye) < 20 ? ce & S | ~ce & y : !(x < 40) && x < 60 ? ce & S | ce & y | S & y : ce ^ S ^ y)), I(I(L, T[ye]), (x = ye) < 20 ? 1518500249 : x < 40 ? 1859775393 : x < 60 ? -1894007588 : -899497514)), L = O, O = d, d = _(b, 30), b = p, p = ce;
|
|
17671
17671
|
}
|
|
17672
|
-
p = I(p, Y), b = I(b, J), d = I(d, V), O = I(O, ee),
|
|
17672
|
+
p = I(p, Y), b = I(b, J), d = I(d, V), O = I(O, ee), L = I(L, Be);
|
|
17673
17673
|
}
|
|
17674
|
-
return Array(p, b, d, O,
|
|
17674
|
+
return Array(p, b, d, O, L);
|
|
17675
17675
|
}
|
|
17676
17676
|
function I(A, R) {
|
|
17677
17677
|
var x = (65535 & A) + (65535 & R);
|
|
@@ -17681,7 +17681,7 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17681
17681
|
return A << R | A >>> 32 - R;
|
|
17682
17682
|
}
|
|
17683
17683
|
i.exports = function(A) {
|
|
17684
|
-
return E.hash(A,
|
|
17684
|
+
return E.hash(A, C, 20, !0);
|
|
17685
17685
|
};
|
|
17686
17686
|
}).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");
|
|
17687
17687
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(n, i, r) {
|
|
@@ -17690,12 +17690,12 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17690
17690
|
var S = (65535 & R) + (65535 & x);
|
|
17691
17691
|
return (R >> 16) + (x >> 16) + (S >> 16) << 16 | 65535 & S;
|
|
17692
17692
|
}
|
|
17693
|
-
function
|
|
17693
|
+
function C(R, x) {
|
|
17694
17694
|
var S, y = 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), T = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), p = new Array(64);
|
|
17695
17695
|
R[x >> 5] |= 128 << 24 - x % 32, R[15 + (x + 64 >> 9 << 4)] = x;
|
|
17696
17696
|
for (var b, d, O = 0; O < R.length; O += 16) {
|
|
17697
|
-
for (var
|
|
17698
|
-
T[0] = E(
|
|
17697
|
+
for (var L = T[0], Z = T[1], Y = T[2], J = T[3], V = T[4], ee = T[5], Be = T[6], ye = T[7], ce = 0; ce < 64; ce++) p[ce] = ce < 16 ? R[ce + O] : E(E(E((d = p[ce - 2], _(d, 17) ^ _(d, 19) ^ A(d, 10)), p[ce - 7]), (d = p[ce - 15], _(d, 7) ^ _(d, 18) ^ A(d, 3))), p[ce - 16]), S = E(E(E(E(ye, _(d = V, 6) ^ _(d, 11) ^ _(d, 25)), V & ee ^ ~V & Be), y[ce]), p[ce]), b = E(_(b = L, 2) ^ _(b, 13) ^ _(b, 22), L & Z ^ L & Y ^ Z & Y), ye = Be, Be = ee, ee = V, V = E(J, S), J = Y, Y = Z, Z = L, L = E(S, b);
|
|
17698
|
+
T[0] = E(L, T[0]), T[1] = E(Z, T[1]), T[2] = E(Y, T[2]), T[3] = E(J, T[3]), T[4] = E(V, T[4]), T[5] = E(ee, T[5]), T[6] = E(Be, T[6]), T[7] = E(ye, T[7]);
|
|
17699
17699
|
}
|
|
17700
17700
|
return T;
|
|
17701
17701
|
}
|
|
@@ -17705,34 +17705,34 @@ list should be an Array.`), h.length === 0) return new I(0);
|
|
|
17705
17705
|
return R >>> x;
|
|
17706
17706
|
};
|
|
17707
17707
|
i.exports = function(R) {
|
|
17708
|
-
return I.hash(R,
|
|
17708
|
+
return I.hash(R, C, 32, !0);
|
|
17709
17709
|
};
|
|
17710
17710
|
}).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");
|
|
17711
17711
|
}, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(n, i, r) {
|
|
17712
17712
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17713
|
-
r.read = function(E,
|
|
17714
|
-
var R, x, S = 8 * O - _ - 1, y = (1 << S) - 1, T = y >> 1, p = -7, b = I ? O - 1 : 0, d = I ? -1 : 1, O = E[
|
|
17715
|
-
for (b += d, R = O & (1 << -p) - 1, O >>= -p, p += S; 0 < p; R = 256 * R + E[
|
|
17716
|
-
for (x = R & (1 << -p) - 1, R >>= -p, p += _; 0 < p; x = 256 * x + E[
|
|
17713
|
+
r.read = function(E, C, I, _, O) {
|
|
17714
|
+
var R, x, S = 8 * O - _ - 1, y = (1 << S) - 1, T = y >> 1, p = -7, b = I ? O - 1 : 0, d = I ? -1 : 1, O = E[C + b];
|
|
17715
|
+
for (b += d, R = O & (1 << -p) - 1, O >>= -p, p += S; 0 < p; R = 256 * R + E[C + b], b += d, p -= 8) ;
|
|
17716
|
+
for (x = R & (1 << -p) - 1, R >>= -p, p += _; 0 < p; x = 256 * x + E[C + b], b += d, p -= 8) ;
|
|
17717
17717
|
if (R === 0) R = 1 - T;
|
|
17718
17718
|
else {
|
|
17719
17719
|
if (R === y) return x ? NaN : 1 / 0 * (O ? -1 : 1);
|
|
17720
17720
|
x += Math.pow(2, _), R -= T;
|
|
17721
17721
|
}
|
|
17722
17722
|
return (O ? -1 : 1) * x * Math.pow(2, R - _);
|
|
17723
|
-
}, r.write = function(E,
|
|
17724
|
-
var x, S, y = 8 *
|
|
17725
|
-
for (
|
|
17723
|
+
}, r.write = function(E, C, I, _, A, L) {
|
|
17724
|
+
var x, S, y = 8 * L - A - 1, T = (1 << y) - 1, p = T >> 1, b = A === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, d = _ ? 0 : L - 1, O = _ ? 1 : -1, L = C < 0 || C === 0 && 1 / C < 0 ? 1 : 0;
|
|
17725
|
+
for (C = Math.abs(C), isNaN(C) || C === 1 / 0 ? (S = isNaN(C) ? 1 : 0, x = T) : (x = Math.floor(Math.log(C) / Math.LN2), C * (_ = Math.pow(2, -x)) < 1 && (x--, _ *= 2), 2 <= (C += 1 <= x + p ? b / _ : b * Math.pow(2, 1 - p)) * _ && (x++, _ /= 2), T <= x + p ? (S = 0, x = T) : 1 <= x + p ? (S = (C * _ - 1) * Math.pow(2, A), x += p) : (S = C * Math.pow(2, p - 1) * Math.pow(2, A), x = 0)); 8 <= A; E[I + d] = 255 & S, d += O, S /= 256, A -= 8) ;
|
|
17726
17726
|
for (x = x << A | S, y += A; 0 < y; E[I + d] = 255 & x, d += O, x /= 256, y -= 8) ;
|
|
17727
|
-
E[I + d - O] |= 128 *
|
|
17727
|
+
E[I + d - O] |= 128 * L;
|
|
17728
17728
|
};
|
|
17729
17729
|
}).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");
|
|
17730
17730
|
}, { buffer: 3, lYpoI2: 11 }], 11: [function(n, i, r) {
|
|
17731
17731
|
(function(s, o, a, u, l, f, g, m, w) {
|
|
17732
|
-
var E,
|
|
17732
|
+
var E, C, I;
|
|
17733
17733
|
function _() {
|
|
17734
17734
|
}
|
|
17735
|
-
(s = i.exports = {}).nextTick = (
|
|
17735
|
+
(s = i.exports = {}).nextTick = (C = typeof window < "u" && window.setImmediate, I = typeof window < "u" && window.postMessage && window.addEventListener, C ? function(A) {
|
|
17736
17736
|
return window.setImmediate(A);
|
|
17737
17737
|
} : I ? (E = [], window.addEventListener("message", function(A) {
|
|
17738
17738
|
var R = A.source;
|
|
@@ -17815,11 +17815,11 @@ function gm() {
|
|
|
17815
17815
|
}
|
|
17816
17816
|
function n(r, s) {
|
|
17817
17817
|
const o = r.locationOffset.column - 1, a = "".padStart(o) + r.body, u = s.line - 1, l = r.locationOffset.line - 1, f = s.line + l, g = s.line === 1 ? o : 0, m = s.column + g, w = `${r.name}:${f}:${m}
|
|
17818
|
-
`, E = a.split(/\r\n|[\n\r]/g),
|
|
17819
|
-
if (
|
|
17818
|
+
`, E = a.split(/\r\n|[\n\r]/g), C = E[u];
|
|
17819
|
+
if (C.length > 120) {
|
|
17820
17820
|
const I = Math.floor(m / 80), _ = m % 80, A = [];
|
|
17821
|
-
for (let R = 0; R <
|
|
17822
|
-
A.push(
|
|
17821
|
+
for (let R = 0; R < C.length; R += 80)
|
|
17822
|
+
A.push(C.slice(R, R + 80));
|
|
17823
17823
|
return w + i([
|
|
17824
17824
|
[`${f} |`, A[0]],
|
|
17825
17825
|
...A.slice(1, I + 1).map((R) => ["|", R]),
|
|
@@ -17830,7 +17830,7 @@ function gm() {
|
|
|
17830
17830
|
return w + i([
|
|
17831
17831
|
// Lines specified like this: ["prefix", "string"],
|
|
17832
17832
|
[`${f - 1} |`, E[u - 1]],
|
|
17833
|
-
[`${f} |`,
|
|
17833
|
+
[`${f} |`, C],
|
|
17834
17834
|
["|", "^".padStart(m)],
|
|
17835
17835
|
[`${f + 1} |`, E[u + 1]]
|
|
17836
17836
|
]);
|
|
@@ -17901,14 +17901,14 @@ function To() {
|
|
|
17901
17901
|
*/
|
|
17902
17902
|
constructor(l, ...f) {
|
|
17903
17903
|
var g, m, w;
|
|
17904
|
-
const { nodes: E, source:
|
|
17904
|
+
const { nodes: E, source: C, positions: I, path: _, originalError: A, extensions: R } = i(f);
|
|
17905
17905
|
super(l), this.name = "GraphQLError", this.path = _ ?? void 0, this.originalError = A ?? void 0, this.nodes = s(
|
|
17906
17906
|
Array.isArray(E) ? E : E ? [E] : void 0
|
|
17907
17907
|
);
|
|
17908
17908
|
const x = s(
|
|
17909
17909
|
(g = this.nodes) === null || g === void 0 ? void 0 : g.map((y) => y.loc).filter((y) => y != null)
|
|
17910
17910
|
);
|
|
17911
|
-
this.source =
|
|
17911
|
+
this.source = C ?? (x == null || (m = x[0]) === null || m === void 0 ? void 0 : m.source), this.positions = I ?? (x == null ? void 0 : x.map((y) => y.start)), this.locations = I && C ? I.map((y) => (0, e.getLocation)(C, y)) : x == null ? void 0 : x.map(
|
|
17912
17912
|
(y) => (0, e.getLocation)(y.source, y.start)
|
|
17913
17913
|
);
|
|
17914
17914
|
const S = (0, t.isObjectLike)(
|
|
@@ -18160,27 +18160,29 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18160
18160
|
for (const s of i)
|
|
18161
18161
|
(!r || typeof r != "object") && (r = null), r = r[s] ?? null;
|
|
18162
18162
|
return n.set(e, r), r;
|
|
18163
|
-
}, Ts = /* @__PURE__ */ new Map(),
|
|
18163
|
+
}, _m = "$[Circular Reference]", Ts = /* @__PURE__ */ new Map(), Im = (t) => t !== null && typeof t == "object", Om = async (t, e = []) => {
|
|
18164
18164
|
if (Ts.has(t))
|
|
18165
18165
|
return Ts.get(t);
|
|
18166
18166
|
const n = structuredClone(t), i = /* @__PURE__ */ new Set(), r = async (o, a) => {
|
|
18167
|
-
if (
|
|
18167
|
+
if (Im(o)) {
|
|
18168
18168
|
if (i.has(o))
|
|
18169
|
-
return
|
|
18169
|
+
return _m;
|
|
18170
18170
|
if (i.add(o), Array.isArray(o))
|
|
18171
18171
|
for (let u = 0; u < o.length; u++)
|
|
18172
18172
|
o[u] = await r(o[u]);
|
|
18173
18173
|
else {
|
|
18174
18174
|
if ("$ref" in o && typeof o.$ref == "string") {
|
|
18175
|
-
for (const
|
|
18176
|
-
const
|
|
18177
|
-
if (
|
|
18175
|
+
for (const l of e) {
|
|
18176
|
+
const f = await l(o.$ref);
|
|
18177
|
+
if (f) return await r(f);
|
|
18178
18178
|
}
|
|
18179
|
-
|
|
18179
|
+
const u = await Sm(n, o.$ref);
|
|
18180
|
+
return await r(u);
|
|
18180
18181
|
}
|
|
18181
18182
|
for (const u in o)
|
|
18182
18183
|
o[u] = await r(o[u]);
|
|
18183
18184
|
}
|
|
18185
|
+
i.delete(o);
|
|
18184
18186
|
}
|
|
18185
18187
|
return o;
|
|
18186
18188
|
}, s = await r(n);
|
|
@@ -18192,7 +18194,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18192
18194
|
(s) => typeof s == "object" && s !== null ? gn(s, e) : s
|
|
18193
18195
|
) : typeof r == "object" && r !== null ? n[i] = gn(r, e) : n[i] = r;
|
|
18194
18196
|
return e(n);
|
|
18195
|
-
},
|
|
18197
|
+
}, Nm = (t) => {
|
|
18196
18198
|
var e;
|
|
18197
18199
|
return (e = t.openapi) != null && e.startsWith("3.0") && (t.openapi = "3.1.0"), t = gn(t, (n) => (n.type !== "undefined" && n.nullable === !0 && (n.type = ["null", n.type], delete n.nullable), n)), t = gn(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 = gn(t, (n) => (n.example !== void 0 && (n.examples = {
|
|
18198
18200
|
default: n.example
|
|
@@ -18210,7 +18212,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18210
18212
|
type: "string",
|
|
18211
18213
|
contentEncoding: "base64"
|
|
18212
18214
|
} : n), t;
|
|
18213
|
-
},
|
|
18215
|
+
}, Am = Object.values(Tm.OpenAPIV3.HttpMethods), xm = async (t) => {
|
|
18214
18216
|
if (typeof t == "string") {
|
|
18215
18217
|
if (t.trim().startsWith("{"))
|
|
18216
18218
|
try {
|
|
@@ -18249,22 +18251,22 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18249
18251
|
}
|
|
18250
18252
|
if (typeof t == "object") return t;
|
|
18251
18253
|
throw new Gn.GraphQLError("Unsupported schema input: " + t);
|
|
18252
|
-
},
|
|
18253
|
-
const e = await
|
|
18254
|
+
}, Fm = async (t) => {
|
|
18255
|
+
const e = await xm(t);
|
|
18254
18256
|
if (!e.openapi)
|
|
18255
18257
|
throw new Gn.GraphQLError("OpenAPI version is not defined");
|
|
18256
|
-
const n = await
|
|
18257
|
-
return
|
|
18258
|
-
},
|
|
18258
|
+
const n = await Om(e);
|
|
18259
|
+
return Nm(n);
|
|
18260
|
+
}, Rm = (t, e, n) => {
|
|
18259
18261
|
const i = (e.summary ?? "") + (e.operationId ? "-" + e.operationId.slice(0, (e.summary, 1 / 0)) : "");
|
|
18260
18262
|
return t(
|
|
18261
18263
|
(n ? n + "-" : "") + (i || `${e.method}-${e.path}`)
|
|
18262
18264
|
);
|
|
18263
|
-
},
|
|
18265
|
+
}, Cm = new Ws({
|
|
18264
18266
|
ttl: 60 * 10 * 1e3,
|
|
18265
18267
|
ttlAutopurge: !0,
|
|
18266
|
-
fetchMethod: (t, e, { context: n }) =>
|
|
18267
|
-
}), Me = new Th({}), fi = Me.addScalarType("JSON",
|
|
18268
|
+
fetchMethod: (t, e, { context: n }) => Fm(n)
|
|
18269
|
+
}), Me = new Th({}), fi = Me.addScalarType("JSON", Ch), Lm = Me.addScalarType("JSONObject", Lh), Pl = (t) => {
|
|
18268
18270
|
const e = t.tags ?? [], n = Object.values(t.paths ?? {}).flatMap((r) => Object.values(r ?? {})).flatMap(
|
|
18269
18271
|
(r) => typeof r == "object" && "tags" in r ? r.tags ?? [] : []
|
|
18270
18272
|
), i = [...new Set(n)].filter(
|
|
@@ -18274,7 +18276,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18274
18276
|
}, jl = (t, e) => {
|
|
18275
18277
|
const n = Rh();
|
|
18276
18278
|
return Object.entries(t ?? {}).flatMap(
|
|
18277
|
-
([i, r]) =>
|
|
18279
|
+
([i, r]) => Am.flatMap((s) => {
|
|
18278
18280
|
if (!(r != null && r[s])) return [];
|
|
18279
18281
|
const o = r[s], a = r.parameters ?? [], u = o.parameters ?? [], l = [
|
|
18280
18282
|
...a.filter(
|
|
@@ -18296,11 +18298,11 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18296
18298
|
path: i,
|
|
18297
18299
|
parameters: l,
|
|
18298
18300
|
tags: o.tags ?? [],
|
|
18299
|
-
slug:
|
|
18301
|
+
slug: Rm(n, f, e)
|
|
18300
18302
|
};
|
|
18301
18303
|
})
|
|
18302
18304
|
);
|
|
18303
|
-
},
|
|
18305
|
+
}, km = Me.objectRef("SchemaTag").implement({
|
|
18304
18306
|
fields: (t) => ({
|
|
18305
18307
|
name: t.exposeString("name", { nullable: !0 }),
|
|
18306
18308
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -18315,22 +18317,22 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18315
18317
|
}
|
|
18316
18318
|
})
|
|
18317
18319
|
})
|
|
18318
|
-
}),
|
|
18320
|
+
}), Dm = Me.objectRef("Server").implement({
|
|
18319
18321
|
fields: (t) => ({
|
|
18320
18322
|
url: t.exposeString("url"),
|
|
18321
18323
|
description: t.exposeString("description", { nullable: !0 })
|
|
18322
18324
|
})
|
|
18323
|
-
}),
|
|
18325
|
+
}), $m = Me.objectRef("PathItem").implement({
|
|
18324
18326
|
fields: (t) => ({
|
|
18325
18327
|
path: t.exposeString("path"),
|
|
18326
18328
|
methods: t.exposeStringList("methods")
|
|
18327
18329
|
})
|
|
18328
|
-
}),
|
|
18330
|
+
}), Pm = Me.objectRef("TagItem").implement({
|
|
18329
18331
|
fields: (t) => ({
|
|
18330
18332
|
name: t.exposeString("name"),
|
|
18331
18333
|
description: t.exposeString("description", { nullable: !0 })
|
|
18332
18334
|
})
|
|
18333
|
-
}),
|
|
18335
|
+
}), jm = Me.objectRef("EncodingItem").implement({
|
|
18334
18336
|
fields: (t) => ({
|
|
18335
18337
|
name: t.exposeString("name"),
|
|
18336
18338
|
contentType: t.exposeString("contentType", { nullable: !0 }),
|
|
@@ -18347,13 +18349,13 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18347
18349
|
value: t.expose("value", { type: fi, nullable: !0 }),
|
|
18348
18350
|
externalValue: t.exposeString("externalValue", { nullable: !0 })
|
|
18349
18351
|
})
|
|
18350
|
-
}),
|
|
18352
|
+
}), Mm = Me.enumType("ParameterIn", {
|
|
18351
18353
|
values: ["query", "header", "path", "cookie"]
|
|
18352
|
-
}),
|
|
18354
|
+
}), Um = Me.objectRef("ParameterItem").implement({
|
|
18353
18355
|
fields: (t) => ({
|
|
18354
18356
|
name: t.exposeString("name"),
|
|
18355
18357
|
in: t.field({
|
|
18356
|
-
type:
|
|
18358
|
+
type: Mm,
|
|
18357
18359
|
resolve: (e) => e.in
|
|
18358
18360
|
}),
|
|
18359
18361
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -18378,15 +18380,15 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18378
18380
|
mediaType: t.exposeString("mediaType"),
|
|
18379
18381
|
schema: t.expose("schema", { type: fi, nullable: !0 }),
|
|
18380
18382
|
examples: t.expose("examples", { type: [Ml], nullable: !0 }),
|
|
18381
|
-
encoding: t.expose("encoding", { type: [
|
|
18383
|
+
encoding: t.expose("encoding", { type: [jm], nullable: !0 })
|
|
18382
18384
|
})
|
|
18383
|
-
}),
|
|
18385
|
+
}), Vm = Me.objectRef("RequestBodyObject").implement({
|
|
18384
18386
|
fields: (t) => ({
|
|
18385
18387
|
description: t.exposeString("description", { nullable: !0 }),
|
|
18386
18388
|
content: t.expose("content", { type: [Ul], nullable: !0 }),
|
|
18387
18389
|
required: t.exposeBoolean("required", { nullable: !0 })
|
|
18388
18390
|
})
|
|
18389
|
-
}),
|
|
18391
|
+
}), Bm = Me.objectRef("ResponseItem").implement({
|
|
18390
18392
|
fields: (t) => ({
|
|
18391
18393
|
statusCode: t.exposeString("statusCode"),
|
|
18392
18394
|
description: t.exposeString("description", { nullable: !0 }),
|
|
@@ -18409,11 +18411,11 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18409
18411
|
}
|
|
18410
18412
|
}),
|
|
18411
18413
|
parameters: t.expose("parameters", {
|
|
18412
|
-
type: [
|
|
18414
|
+
type: [Um],
|
|
18413
18415
|
nullable: !0
|
|
18414
18416
|
}),
|
|
18415
18417
|
requestBody: t.field({
|
|
18416
|
-
type:
|
|
18418
|
+
type: Vm,
|
|
18417
18419
|
resolve: (e) => {
|
|
18418
18420
|
var n, i, r;
|
|
18419
18421
|
return {
|
|
@@ -18436,7 +18438,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18436
18438
|
nullable: !0
|
|
18437
18439
|
}),
|
|
18438
18440
|
responses: t.field({
|
|
18439
|
-
type: [
|
|
18441
|
+
type: [Bm],
|
|
18440
18442
|
resolve: (e) => Object.entries(e.responses ?? {}).map(
|
|
18441
18443
|
([n, i]) => ({
|
|
18442
18444
|
statusCode: n,
|
|
@@ -18456,7 +18458,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18456
18458
|
)
|
|
18457
18459
|
}),
|
|
18458
18460
|
tags: t.field({
|
|
18459
|
-
type: [
|
|
18461
|
+
type: [Pm],
|
|
18460
18462
|
resolve: (e, n, i) => {
|
|
18461
18463
|
var r;
|
|
18462
18464
|
return (r = e.tags) == null ? void 0 : r.map((s) => {
|
|
@@ -18471,7 +18473,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18471
18473
|
}),
|
|
18472
18474
|
deprecated: t.exposeBoolean("deprecated", { nullable: !0 })
|
|
18473
18475
|
})
|
|
18474
|
-
}),
|
|
18476
|
+
}), qm = Me.objectRef("Schema").implement({
|
|
18475
18477
|
fields: (t) => ({
|
|
18476
18478
|
openapi: t.string({ resolve: (e) => e.openapi }),
|
|
18477
18479
|
url: t.string({ resolve: (e) => {
|
|
@@ -18479,7 +18481,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18479
18481
|
return ((i = (n = e.servers) == null ? void 0 : n.at(0)) == null ? void 0 : i.url) ?? "/";
|
|
18480
18482
|
} }),
|
|
18481
18483
|
servers: t.field({
|
|
18482
|
-
type: [
|
|
18484
|
+
type: [Dm],
|
|
18483
18485
|
resolve: (e) => e.servers ?? []
|
|
18484
18486
|
}),
|
|
18485
18487
|
title: t.string({ resolve: (e) => e.info.title }),
|
|
@@ -18493,7 +18495,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18493
18495
|
nullable: !0
|
|
18494
18496
|
}),
|
|
18495
18497
|
paths: t.field({
|
|
18496
|
-
type: [
|
|
18498
|
+
type: [$m],
|
|
18497
18499
|
resolve: (e) => Object.entries(e.paths ?? {}).map(([n, i]) => ({
|
|
18498
18500
|
path: n,
|
|
18499
18501
|
methods: Object.keys(i)
|
|
@@ -18503,7 +18505,7 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18503
18505
|
args: {
|
|
18504
18506
|
name: t.arg.string()
|
|
18505
18507
|
},
|
|
18506
|
-
type: [
|
|
18508
|
+
type: [km],
|
|
18507
18509
|
resolve: (e, n) => {
|
|
18508
18510
|
const i = [...Pl(e), { name: "" }];
|
|
18509
18511
|
return n.name ? i.filter((r) => r.name === n.name) : i;
|
|
@@ -18522,28 +18524,28 @@ const vs = /* @__PURE__ */ new Map(), Sm = (t, e) => {
|
|
|
18522
18524
|
)
|
|
18523
18525
|
})
|
|
18524
18526
|
})
|
|
18525
|
-
}),
|
|
18527
|
+
}), Gm = async (t) => {
|
|
18526
18528
|
const e = dm(t);
|
|
18527
|
-
return await
|
|
18528
|
-
},
|
|
18529
|
+
return await Cm.forceFetch(e, { context: t });
|
|
18530
|
+
}, zm = Me.enumType("SchemaType", {
|
|
18529
18531
|
values: ["url", "file", "raw"]
|
|
18530
18532
|
});
|
|
18531
18533
|
Me.queryType({
|
|
18532
18534
|
fields: (t) => ({
|
|
18533
18535
|
schema: t.field({
|
|
18534
|
-
type:
|
|
18536
|
+
type: qm,
|
|
18535
18537
|
args: {
|
|
18536
|
-
type: t.arg({ type:
|
|
18538
|
+
type: t.arg({ type: zm, required: !0 }),
|
|
18537
18539
|
input: t.arg({ type: fi, required: !0 })
|
|
18538
18540
|
},
|
|
18539
18541
|
resolve: async (e, n, i) => {
|
|
18540
|
-
const r = await
|
|
18542
|
+
const r = await Gm(n.input);
|
|
18541
18543
|
return i.schema = r, r;
|
|
18542
18544
|
}
|
|
18543
18545
|
})
|
|
18544
18546
|
})
|
|
18545
18547
|
});
|
|
18546
|
-
const
|
|
18548
|
+
const Qm = Me.toSchema(), Wm = (t) => um({ schema: Qm, ...t }), Ym = () => Wm({
|
|
18547
18549
|
plugins: [
|
|
18548
18550
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
18549
18551
|
Zl({
|
|
@@ -18551,14 +18553,14 @@ const zm = Me.toSchema(), Qm = (t) => um({ schema: zm, ...t }), Wm = () => Qm({
|
|
|
18551
18553
|
}
|
|
18552
18554
|
})
|
|
18553
18555
|
]
|
|
18554
|
-
}),
|
|
18555
|
-
|
|
18556
|
+
}), Hm = Ym(), Jm = self;
|
|
18557
|
+
Jm.addEventListener("connect", (t) => {
|
|
18556
18558
|
const e = t.ports[0];
|
|
18557
18559
|
e.onmessage = (n) => {
|
|
18558
18560
|
if (n.data.port) {
|
|
18559
18561
|
const i = n.data.port;
|
|
18560
18562
|
i.onmessage = async (r) => {
|
|
18561
|
-
const { id: s, body: o } = r.data, u = await (await
|
|
18563
|
+
const { id: s, body: o } = r.data, u = await (await Hm.fetch(
|
|
18562
18564
|
new Request("/__z/graphql", {
|
|
18563
18565
|
method: "POST",
|
|
18564
18566
|
body: o,
|
|
@@ -18575,4 +18577,4 @@ Hm.addEventListener("connect", (t) => {
|
|
|
18575
18577
|
}
|
|
18576
18578
|
}, e.start();
|
|
18577
18579
|
});
|
|
18578
|
-
//# sourceMappingURL=worker-
|
|
18580
|
+
//# sourceMappingURL=worker-DV9Ecqy9.js.map
|