zudoku 0.0.0-eff6f9b → 0.0.0-f5761c9
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/config/config.d.ts +2 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/oas/graphql/index.d.ts +2 -1
- package/dist/lib/oas/graphql/index.js +11 -9
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +2 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/openapi/index.js +2 -1
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
- package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
- package/dist/vite/config.d.ts +1 -1
- package/dist/vite/config.js +7 -3
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/dev-server.js +1 -1
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -7
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-config-reload.js +9 -4
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/lib/{AuthenticationPlugin-gtf8JS3V.js → AuthenticationPlugin-Bx9FK124.js} +2 -2
- package/lib/{AuthenticationPlugin-gtf8JS3V.js.map → AuthenticationPlugin-Bx9FK124.js.map} +1 -1
- package/lib/{CategoryHeading-XnFqN2lJ.js → CategoryHeading-EN3W3xEN.js} +2 -2
- package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-EN3W3xEN.js.map} +1 -1
- package/lib/{DeveloperHint-FBb2uXJe.js → DeveloperHint-CZ4VwuKw.js} +2 -2
- package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-CZ4VwuKw.js.map} +1 -1
- package/lib/{ErrorPage-knunPbKI.js → ErrorPage-C5Pnyfbg.js} +3 -3
- package/lib/{ErrorPage-knunPbKI.js.map → ErrorPage-C5Pnyfbg.js.map} +1 -1
- package/lib/{Input-B1kkVL1R.js → Input-DulGxZh-.js} +4 -4
- package/lib/{Input-B1kkVL1R.js.map → Input-DulGxZh-.js.map} +1 -1
- package/lib/{Markdown-B4aR03g6.js → Markdown-BUUIyZbc.js} +788 -792
- package/lib/Markdown-BUUIyZbc.js.map +1 -0
- package/lib/{MdxPage-BcftTg5g.js → MdxPage-COBmXj_4.js} +23 -23
- package/lib/MdxPage-COBmXj_4.js.map +1 -0
- package/lib/{OperationList-Da36LrGl.js → OperationList-BwJXexkA.js} +8 -8
- package/lib/{OperationList-Da36LrGl.js.map → OperationList-BwJXexkA.js.map} +1 -1
- package/lib/{Route-CWj1ECzh.js → Route-CX_-Q1HO.js} +2 -2
- package/lib/{Route-CWj1ECzh.js.map → Route-CX_-Q1HO.js.map} +1 -1
- package/lib/{SidebarBadge-DdvT2qep.js → SidebarBadge-gvlvsv3E.js} +3 -3
- package/lib/{SidebarBadge-DdvT2qep.js.map → SidebarBadge-gvlvsv3E.js.map} +1 -1
- package/lib/{SlotletProvider-DJMaOUDs.js → SlotletProvider-CULK8zmk.js} +4 -4
- package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-CULK8zmk.js.map} +1 -1
- package/lib/{ZudokuContext-em1gHkIY.js → ZudokuContext-cr-pTRY1.js} +4 -4
- package/lib/{ZudokuContext-em1gHkIY.js.map → ZudokuContext-cr-pTRY1.js.map} +1 -1
- package/lib/assets/{worker-TYRbYl6N.js → worker-DgVH8VJc.js} +3411 -1341
- package/lib/assets/worker-DgVH8VJc.js.map +1 -0
- package/lib/{index-BoXX7LeD.js → index-BfA1oLPP.js} +3 -3
- package/lib/{index-BoXX7LeD.js.map → index-BfA1oLPP.js.map} +1 -1
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/{index-DIkaYL-l.js → index-BuA1OA5H.js} +422 -418
- package/lib/index-BuA1OA5H.js.map +1 -0
- package/lib/index-LNp6rxyU.js +2094 -0
- package/lib/index-LNp6rxyU.js.map +1 -0
- package/lib/{index-B_9xr661.js → index-Q0TPJvr8.js} +3 -3
- package/lib/{index-B_9xr661.js.map → index-Q0TPJvr8.js.map} +1 -1
- package/lib/joinPath-B7kNnUX4.js +8 -0
- package/lib/joinPath-B7kNnUX4.js.map +1 -0
- package/lib/{utils-DtEHoAvg.js → utils-ByIc_KIM.js} +100 -103
- package/lib/utils-ByIc_KIM.js.map +1 -0
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.components.js +41 -40
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.openapi-worker.js +282 -283
- package/lib/zudoku.openapi-worker.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +6 -6
- package/lib/zudoku.plugin-custom-page.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/package.json +3 -3
- package/src/lib/oas/graphql/index.ts +20 -12
- package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
- package/src/lib/plugins/openapi/index.tsx +2 -1
- package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
- package/dist/lib/util/slugify.d.ts +0 -2
- package/dist/lib/util/slugify.js +0 -3
- package/dist/lib/util/slugify.js.map +0 -1
- package/lib/Markdown-B4aR03g6.js.map +0 -1
- package/lib/MdxPage-BcftTg5g.js.map +0 -1
- package/lib/assets/worker-TYRbYl6N.js.map +0 -1
- package/lib/index-DIkaYL-l.js.map +0 -1
- package/lib/slugify-DbLhpSPt.js +0 -28
- package/lib/slugify-DbLhpSPt.js.map +0 -1
- package/lib/utils-DtEHoAvg.js.map +0 -1
- package/src/lib/util/slugify.ts +0 -3
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { u as ta, C as na, c as ra, f as aa } from "./urql-YhcsXYy8.js";
|
|
3
|
-
import { z as ia, A as oa } from "./ZudokuContext-
|
|
3
|
+
import { z as ia, A as oa } from "./ZudokuContext-cr-pTRY1.js";
|
|
4
4
|
import { XIcon as Zn, EraserIcon as er, ChevronsUpDownIcon as sa, LogInIcon as la, CirclePlayIcon as ca } from "lucide-react";
|
|
5
5
|
import { createClient as ua } from "zudoku/openapi-worker";
|
|
6
|
-
import { c as da, g as fa, u as pa, a as ma, P as ft, b as yt, B as Se, S as ha, V as ya, m as ga } from "./index-
|
|
7
|
-
import { E as va } from "./ErrorPage-
|
|
8
|
-
import { a as q, b as ba, S as Je, C as xa } from "./Markdown-
|
|
6
|
+
import { c as da, g as fa, u as pa, a as ma, P as ft, b as yt, B as Se, S as ha, V as ya, m as ga } from "./index-BfA1oLPP.js";
|
|
7
|
+
import { E as va } from "./ErrorPage-C5Pnyfbg.js";
|
|
8
|
+
import { a as q, b as ba, S as Je, C as xa } from "./Markdown-BUUIyZbc.js";
|
|
9
|
+
import { j as $a } from "./joinPath-B7kNnUX4.js";
|
|
9
10
|
import * as H from "react";
|
|
10
|
-
import { useRef as tr, useEffect as nr, useState as rr, Fragment as Xe, createContext as
|
|
11
|
-
import { O as ar, C as ir, b as
|
|
12
|
-
import { g as Wt, I as at, C as xe, h as
|
|
11
|
+
import { useRef as tr, useEffect as nr, useState as rr, Fragment as Xe, createContext as ka, useContext as Sa, useTransition as wa, useMemo as ja } from "react";
|
|
12
|
+
import { O as ar, C as ir, b as Na, d as or, D as sr, a as Ta, e as Oa, T as Ca, c as lr, R as Pa, I as Ea, P as Ra, f as fe } from "./SidebarBadge-gvlvsv3E.js";
|
|
13
|
+
import { g as Wt, I as at, C as xe, h as Aa, u as qa, a as Fa, F as Ia, S as _a, b as La, c as Ua, d as Ha, f as fn } from "./Input-DulGxZh-.js";
|
|
13
14
|
import { S as pn } from "./Spinner-3cQDBVGr.js";
|
|
14
|
-
import { g as
|
|
15
|
-
import { u as
|
|
16
|
-
import { c as
|
|
17
|
-
const
|
|
15
|
+
import { g as Ma, c as Le, a as Ba } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
16
|
+
import { u as Va, d as za } from "./index-BG0g4WW0.js";
|
|
17
|
+
import { c as Ja } from "./router-D2p7Olpn.js";
|
|
18
|
+
const Wa = {
|
|
18
19
|
kind: "Document",
|
|
19
20
|
definitions: [
|
|
20
21
|
{
|
|
@@ -159,7 +160,7 @@ const Ja = {
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
]
|
|
162
|
-
},
|
|
163
|
+
}, Ga = {
|
|
163
164
|
kind: "Document",
|
|
164
165
|
definitions: [
|
|
165
166
|
{
|
|
@@ -403,7 +404,7 @@ const Ja = {
|
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
406
|
]
|
|
406
|
-
},
|
|
407
|
+
}, Da = {
|
|
407
408
|
kind: "Document",
|
|
408
409
|
definitions: [
|
|
409
410
|
{
|
|
@@ -469,7 +470,7 @@ const Ja = {
|
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
472
|
]
|
|
472
|
-
},
|
|
473
|
+
}, Ka = {
|
|
473
474
|
kind: "Document",
|
|
474
475
|
definitions: [
|
|
475
476
|
{
|
|
@@ -585,16 +586,16 @@ const Ja = {
|
|
|
585
586
|
}
|
|
586
587
|
}
|
|
587
588
|
]
|
|
588
|
-
},
|
|
589
|
-
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n":
|
|
590
|
-
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n":
|
|
591
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n":
|
|
592
|
-
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n":
|
|
589
|
+
}, Qa = {
|
|
590
|
+
"\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n parameters {\n name\n in\n description\n required\n schema\n style\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": Wa,
|
|
591
|
+
"\n query AllOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n description\n title\n url\n version\n tags {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n }\n }\n }\n": Ga,
|
|
592
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": Da,
|
|
593
|
+
"\n query GetCategories($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n __typename\n name\n operations {\n __typename\n slug\n deprecated\n method\n summary\n operationId\n path\n }\n }\n }\n }\n": Ka
|
|
593
594
|
};
|
|
594
595
|
function cr(e) {
|
|
595
|
-
return
|
|
596
|
+
return Qa[e] ?? {};
|
|
596
597
|
}
|
|
597
|
-
const
|
|
598
|
+
const Ya = Oa, Xa = Ca, Za = Ta, ur = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
598
599
|
ar,
|
|
599
600
|
{
|
|
600
601
|
ref: n,
|
|
@@ -606,7 +607,7 @@ const Qa = Ta, Ya = Oa, Xa = Na, ur = H.forwardRef(({ className: e, ...t }, n) =
|
|
|
606
607
|
}
|
|
607
608
|
));
|
|
608
609
|
ur.displayName = ar.displayName;
|
|
609
|
-
const dr = H.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(
|
|
610
|
+
const dr = H.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(Za, { children: [
|
|
610
611
|
/* @__PURE__ */ f.jsx(ur, {}),
|
|
611
612
|
/* @__PURE__ */ f.jsxs(
|
|
612
613
|
ir,
|
|
@@ -619,7 +620,7 @@ const dr = H.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
619
620
|
...n,
|
|
620
621
|
children: [
|
|
621
622
|
t,
|
|
622
|
-
/* @__PURE__ */ f.jsxs(
|
|
623
|
+
/* @__PURE__ */ f.jsxs(Na, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
623
624
|
/* @__PURE__ */ f.jsx(Zn, { className: "h-4 w-4" }),
|
|
624
625
|
/* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close" })
|
|
625
626
|
] })
|
|
@@ -640,7 +641,7 @@ const fr = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
640
641
|
}
|
|
641
642
|
));
|
|
642
643
|
fr.displayName = or.displayName;
|
|
643
|
-
const
|
|
644
|
+
const ei = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
644
645
|
sr,
|
|
645
646
|
{
|
|
646
647
|
ref: n,
|
|
@@ -648,7 +649,7 @@ const Za = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
648
649
|
...t
|
|
649
650
|
}
|
|
650
651
|
));
|
|
651
|
-
|
|
652
|
+
ei.displayName = sr.displayName;
|
|
652
653
|
const it = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
653
654
|
"div",
|
|
654
655
|
{
|
|
@@ -679,7 +680,7 @@ const mr = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
679
680
|
}
|
|
680
681
|
));
|
|
681
682
|
mr.displayName = "CardTitle";
|
|
682
|
-
const
|
|
683
|
+
const ti = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
683
684
|
"p",
|
|
684
685
|
{
|
|
685
686
|
ref: n,
|
|
@@ -687,10 +688,10 @@ const ei = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
687
688
|
...t
|
|
688
689
|
}
|
|
689
690
|
));
|
|
690
|
-
|
|
691
|
+
ti.displayName = "CardDescription";
|
|
691
692
|
const hr = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: q("p-6 pt-0", e), ...t }));
|
|
692
693
|
hr.displayName = "CardContent";
|
|
693
|
-
const
|
|
694
|
+
const ni = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
694
695
|
"div",
|
|
695
696
|
{
|
|
696
697
|
ref: n,
|
|
@@ -698,10 +699,10 @@ const ti = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
698
699
|
...t
|
|
699
700
|
}
|
|
700
701
|
));
|
|
701
|
-
|
|
702
|
-
var Gt = "Tabs", [
|
|
702
|
+
ni.displayName = "CardFooter";
|
|
703
|
+
var Gt = "Tabs", [ri, Bc] = da(Gt, [
|
|
703
704
|
lr
|
|
704
|
-
]), yr = lr(), [
|
|
705
|
+
]), yr = lr(), [ai, Dt] = ri(Gt), gr = H.forwardRef(
|
|
705
706
|
(e, t) => {
|
|
706
707
|
const {
|
|
707
708
|
__scopeTabs: n,
|
|
@@ -718,7 +719,7 @@ var Gt = "Tabs", [ni, Hc] = da(Gt, [
|
|
|
718
719
|
defaultProp: i
|
|
719
720
|
});
|
|
720
721
|
return /* @__PURE__ */ f.jsx(
|
|
721
|
-
|
|
722
|
+
ai,
|
|
722
723
|
{
|
|
723
724
|
scope: n,
|
|
724
725
|
baseId: ma(),
|
|
@@ -745,7 +746,7 @@ var vr = "TabsList", br = H.forwardRef(
|
|
|
745
746
|
(e, t) => {
|
|
746
747
|
const { __scopeTabs: n, loop: a = !0, ...s } = e, i = Dt(vr, n), r = yr(n);
|
|
747
748
|
return /* @__PURE__ */ f.jsx(
|
|
748
|
-
|
|
749
|
+
Pa,
|
|
749
750
|
{
|
|
750
751
|
asChild: !0,
|
|
751
752
|
...r,
|
|
@@ -770,7 +771,7 @@ var xr = "TabsTrigger", $r = H.forwardRef(
|
|
|
770
771
|
(e, t) => {
|
|
771
772
|
const { __scopeTabs: n, value: a, disabled: s = !1, ...i } = e, r = Dt(xr, n), o = yr(n), l = wr(r.baseId, a), c = jr(r.baseId, a), u = a === r.value;
|
|
772
773
|
return /* @__PURE__ */ f.jsx(
|
|
773
|
-
|
|
774
|
+
Ea,
|
|
774
775
|
{
|
|
775
776
|
asChild: !0,
|
|
776
777
|
...o,
|
|
@@ -812,7 +813,7 @@ var kr = "TabsContent", Sr = H.forwardRef(
|
|
|
812
813
|
return H.useEffect(() => {
|
|
813
814
|
const d = requestAnimationFrame(() => p.current = !1);
|
|
814
815
|
return () => cancelAnimationFrame(d);
|
|
815
|
-
}, []), /* @__PURE__ */ f.jsx(
|
|
816
|
+
}, []), /* @__PURE__ */ f.jsx(Ra, { present: s || u, children: ({ present: d }) => /* @__PURE__ */ f.jsx(
|
|
816
817
|
ft.div,
|
|
817
818
|
{
|
|
818
819
|
"data-state": u ? "active" : "inactive",
|
|
@@ -879,12 +880,12 @@ const Te = H.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
879
880
|
Te.displayName = Yt.displayName;
|
|
880
881
|
const gt = (e) => Math.abs(
|
|
881
882
|
isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
|
|
882
|
-
), vt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${gt(t) + gt(n)}`)) : gt(e),
|
|
883
|
+
), vt = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${gt(t) + gt(n)}`)) : gt(e), ii = (e, t = {}) => {
|
|
883
884
|
const n = (3 * vt(e) + 2 * vt(e) + vt(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
|
|
884
885
|
return `${n}deg ${a}% ${s}%`;
|
|
885
|
-
}, bt = "data-linked-param",
|
|
886
|
+
}, bt = "data-linked-param", oi = (e) => {
|
|
886
887
|
const [t] = ba();
|
|
887
|
-
return
|
|
888
|
+
return ii(
|
|
888
889
|
e,
|
|
889
890
|
t ? void 0 : { saturation: 85, lightness: 50 }
|
|
890
891
|
);
|
|
@@ -897,7 +898,7 @@ const gt = (e) => Math.abs(
|
|
|
897
898
|
children: i,
|
|
898
899
|
onClick: r
|
|
899
900
|
}) => {
|
|
900
|
-
const o = tr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u =
|
|
901
|
+
const o = tr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = oi(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
|
|
901
902
|
return nr(() => {
|
|
902
903
|
if (!c || !o.current) return;
|
|
903
904
|
const m = () => {
|
|
@@ -932,16 +933,19 @@ const gt = (e) => Math.abs(
|
|
|
932
933
|
]
|
|
933
934
|
}
|
|
934
935
|
);
|
|
935
|
-
},
|
|
936
|
+
}, si = (e, t, n) => {
|
|
936
937
|
const a = t.replace(/(:\w+|\{\w+})/g, (i) => {
|
|
937
938
|
var l;
|
|
938
939
|
const r = i.replace(/[:{}]/g, "");
|
|
939
940
|
return ((l = n.pathParams.find((c) => c.name === r)) == null ? void 0 : l.value) ?? i;
|
|
940
|
-
}), s = new URL(
|
|
941
|
+
}), s = new URL(
|
|
942
|
+
a.replace(/^\//, ""),
|
|
943
|
+
e.endsWith("/") ? e : `${e}/`
|
|
944
|
+
);
|
|
941
945
|
return n.queryParams.filter((i) => i.active).forEach((i) => {
|
|
942
946
|
s.searchParams.set(i.name, i.value);
|
|
943
947
|
}), s;
|
|
944
|
-
},
|
|
948
|
+
}, li = ({
|
|
945
949
|
control: e,
|
|
946
950
|
register: t
|
|
947
951
|
}) => {
|
|
@@ -1002,7 +1006,7 @@ const gt = (e) => Math.abs(
|
|
|
1002
1006
|
}
|
|
1003
1007
|
) })
|
|
1004
1008
|
] });
|
|
1005
|
-
},
|
|
1009
|
+
}, ci = ({
|
|
1006
1010
|
control: e
|
|
1007
1011
|
}) => {
|
|
1008
1012
|
const { fields: t } = Wt({
|
|
@@ -1074,7 +1078,7 @@ const gt = (e) => Math.abs(
|
|
|
1074
1078
|
)
|
|
1075
1079
|
] }) })
|
|
1076
1080
|
] }, n.id)) }) });
|
|
1077
|
-
},
|
|
1081
|
+
}, ui = (e, t) => {
|
|
1078
1082
|
const n = H.forwardRef(({ className: a, asChild: s, ...i }, r) => {
|
|
1079
1083
|
const o = s ? ha : e;
|
|
1080
1084
|
return H.createElement(o, {
|
|
@@ -1084,17 +1088,17 @@ const gt = (e) => Math.abs(
|
|
|
1084
1088
|
});
|
|
1085
1089
|
});
|
|
1086
1090
|
return n.displayName = `VariantComponent(${e})`, n;
|
|
1087
|
-
},
|
|
1091
|
+
}, di = ui(
|
|
1088
1092
|
"input",
|
|
1089
1093
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1090
|
-
),
|
|
1094
|
+
), fi = ({
|
|
1091
1095
|
control: e,
|
|
1092
1096
|
queryParams: t
|
|
1093
1097
|
}) => {
|
|
1094
1098
|
const { fields: n } = Wt({
|
|
1095
1099
|
control: e,
|
|
1096
1100
|
name: "queryParams"
|
|
1097
|
-
}), a =
|
|
1101
|
+
}), a = Aa(), s = t.map((o) => !!o.isRequired), r = a.watch("identity") !== Ze;
|
|
1098
1102
|
return /* @__PURE__ */ f.jsx("div", { className: "", children: /* @__PURE__ */ f.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ f.jsx("tbody", { children: n.filter(
|
|
1099
1103
|
// TODO remove this hack for Accu or make it more generic
|
|
1100
1104
|
(o) => !(r && o.name === "apikey")
|
|
@@ -1119,7 +1123,7 @@ const gt = (e) => Math.abs(
|
|
|
1119
1123
|
xe,
|
|
1120
1124
|
{
|
|
1121
1125
|
control: e,
|
|
1122
|
-
render: ({ field: c }) => /* @__PURE__ */ f.jsx(
|
|
1126
|
+
render: ({ field: c }) => /* @__PURE__ */ f.jsx(di, { asChild: !0, children: /* @__PURE__ */ f.jsxs(
|
|
1123
1127
|
"label",
|
|
1124
1128
|
{
|
|
1125
1129
|
className: "flex items-center cursor-pointer",
|
|
@@ -1197,7 +1201,7 @@ const gt = (e) => Math.abs(
|
|
|
1197
1201
|
}
|
|
1198
1202
|
),
|
|
1199
1203
|
/* @__PURE__ */ f.jsx("div", { className: "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none", children: /* @__PURE__ */ f.jsx(sa, { size: 14 }) })
|
|
1200
|
-
] }),
|
|
1204
|
+
] }), pi = (e) => {
|
|
1201
1205
|
var n;
|
|
1202
1206
|
return (n = Object.entries({
|
|
1203
1207
|
"application/json": "json",
|
|
@@ -1210,20 +1214,20 @@ const gt = (e) => Math.abs(
|
|
|
1210
1214
|
}).find(
|
|
1211
1215
|
([a]) => e.includes(a)
|
|
1212
1216
|
)) == null ? void 0 : n[1];
|
|
1213
|
-
}, pi = (e) => {
|
|
1214
|
-
const t = e.get("Content-Type") || "";
|
|
1215
|
-
return fi(t);
|
|
1216
1217
|
}, mi = (e) => {
|
|
1218
|
+
const t = e.get("Content-Type") || "";
|
|
1219
|
+
return pi(t);
|
|
1220
|
+
}, hi = (e) => {
|
|
1217
1221
|
try {
|
|
1218
1222
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
1219
1223
|
} catch {
|
|
1220
1224
|
return null;
|
|
1221
1225
|
}
|
|
1222
|
-
},
|
|
1226
|
+
}, yi = ({
|
|
1223
1227
|
body: e = "",
|
|
1224
1228
|
headers: t
|
|
1225
1229
|
}) => {
|
|
1226
|
-
const n =
|
|
1230
|
+
const n = mi(t), a = hi(e), s = a || e, [i, r] = rr(
|
|
1227
1231
|
a ? "formatted" : "raw"
|
|
1228
1232
|
);
|
|
1229
1233
|
return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -1249,7 +1253,7 @@ const gt = (e) => Math.abs(
|
|
|
1249
1253
|
}
|
|
1250
1254
|
) })
|
|
1251
1255
|
] });
|
|
1252
|
-
}, Ze = "__none",
|
|
1256
|
+
}, Ze = "__none", gi = {
|
|
1253
1257
|
200: "OK",
|
|
1254
1258
|
201: "Created",
|
|
1255
1259
|
202: "Accepted",
|
|
@@ -1260,7 +1264,7 @@ const gt = (e) => Math.abs(
|
|
|
1260
1264
|
404: "Not Found",
|
|
1261
1265
|
405: "Method Not Allowed",
|
|
1262
1266
|
500: "Internal Server Error"
|
|
1263
|
-
},
|
|
1267
|
+
}, vi = ({
|
|
1264
1268
|
server: e,
|
|
1265
1269
|
url: t,
|
|
1266
1270
|
method: n,
|
|
@@ -1270,7 +1274,7 @@ const gt = (e) => Math.abs(
|
|
|
1270
1274
|
defaultBody: r = ""
|
|
1271
1275
|
}) => {
|
|
1272
1276
|
var w, S;
|
|
1273
|
-
const { register: o, control: l, handleSubmit: c, watch: u, setValue: p, ...d } =
|
|
1277
|
+
const { register: o, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = qa({
|
|
1274
1278
|
defaultValues: {
|
|
1275
1279
|
body: r,
|
|
1276
1280
|
queryParams: s.map(($) => ({
|
|
@@ -1295,10 +1299,10 @@ const gt = (e) => Math.abs(
|
|
|
1295
1299
|
const $ = (O = h.data) == null ? void 0 : O.at(0);
|
|
1296
1300
|
$ && (p("identity", $.id), y.current = !0);
|
|
1297
1301
|
}, [p, h.data]);
|
|
1298
|
-
const v =
|
|
1302
|
+
const v = Fa({
|
|
1299
1303
|
mutationFn: async ($) => {
|
|
1300
1304
|
var F, J;
|
|
1301
|
-
const O =
|
|
1305
|
+
const O = si(e, t, $), C = performance.now(), E = new Request(O, {
|
|
1302
1306
|
method: n.toUpperCase(),
|
|
1303
1307
|
headers: Object.fromEntries(
|
|
1304
1308
|
$.headers.filter((R) => R.name).map((R) => [R.name, R.value])
|
|
@@ -1348,7 +1352,7 @@ const gt = (e) => Math.abs(
|
|
|
1348
1352
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
1349
1353
|
] }, $.name));
|
|
1350
1354
|
return /* @__PURE__ */ f.jsx(
|
|
1351
|
-
|
|
1355
|
+
Ia,
|
|
1352
1356
|
{
|
|
1353
1357
|
register: o,
|
|
1354
1358
|
control: l,
|
|
@@ -1396,14 +1400,14 @@ const gt = (e) => Math.abs(
|
|
|
1396
1400
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1397
1401
|
"Auth:",
|
|
1398
1402
|
/* @__PURE__ */ f.jsxs(
|
|
1399
|
-
|
|
1403
|
+
_a,
|
|
1400
1404
|
{
|
|
1401
1405
|
onValueChange: ($) => p("identity", $),
|
|
1402
1406
|
value: m.identity,
|
|
1403
1407
|
defaultValue: m.identity,
|
|
1404
1408
|
children: [
|
|
1405
|
-
/* @__PURE__ */ f.jsx(
|
|
1406
|
-
/* @__PURE__ */ f.jsxs(
|
|
1409
|
+
/* @__PURE__ */ f.jsx(La, { className: "w-[180px] flex", children: h.isPending ? /* @__PURE__ */ f.jsx(pn, {}) : /* @__PURE__ */ f.jsx(Ua, {}) }),
|
|
1410
|
+
/* @__PURE__ */ f.jsxs(Ha, { align: "center", children: [
|
|
1407
1411
|
/* @__PURE__ */ f.jsx(fn, { value: Ze, children: "None" }),
|
|
1408
1412
|
(S = h.data) == null ? void 0 : S.map(($) => /* @__PURE__ */ f.jsx(fn, { value: $.id, children: $.label }, $.id))
|
|
1409
1413
|
] })
|
|
@@ -1412,15 +1416,15 @@ const gt = (e) => Math.abs(
|
|
|
1412
1416
|
)
|
|
1413
1417
|
] })
|
|
1414
1418
|
] }),
|
|
1415
|
-
/* @__PURE__ */ f.jsx(Te, { value: "headers", children: /* @__PURE__ */ f.jsx(
|
|
1419
|
+
/* @__PURE__ */ f.jsx(Te, { value: "headers", children: /* @__PURE__ */ f.jsx(li, { control: l, register: o }) }),
|
|
1416
1420
|
/* @__PURE__ */ f.jsxs(Te, { value: "parameters", children: [
|
|
1417
1421
|
i.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1418
1422
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1419
|
-
/* @__PURE__ */ f.jsx(
|
|
1423
|
+
/* @__PURE__ */ f.jsx(ci, { control: l })
|
|
1420
1424
|
] }),
|
|
1421
1425
|
s.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1422
1426
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1423
|
-
/* @__PURE__ */ f.jsx(
|
|
1427
|
+
/* @__PURE__ */ f.jsx(fi, { control: l, queryParams: s })
|
|
1424
1428
|
] })
|
|
1425
1429
|
] }),
|
|
1426
1430
|
/* @__PURE__ */ f.jsx(Te, { value: "body", children: /* @__PURE__ */ f.jsx(
|
|
@@ -1450,7 +1454,7 @@ const gt = (e) => Math.abs(
|
|
|
1450
1454
|
"Status: ",
|
|
1451
1455
|
v.data.status,
|
|
1452
1456
|
" ",
|
|
1453
|
-
|
|
1457
|
+
gi[v.data.status] ?? ""
|
|
1454
1458
|
] }),
|
|
1455
1459
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1456
1460
|
"Time: ",
|
|
@@ -1469,7 +1473,7 @@ const gt = (e) => Math.abs(
|
|
|
1469
1473
|
/* @__PURE__ */ f.jsx(Ne, { value: "headers", children: g.length ? `Headers (${g.length})` : "No headers" })
|
|
1470
1474
|
] }),
|
|
1471
1475
|
/* @__PURE__ */ f.jsx(Te, { value: "response", children: /* @__PURE__ */ f.jsx(
|
|
1472
|
-
|
|
1476
|
+
yi,
|
|
1473
1477
|
{
|
|
1474
1478
|
headers: v.data.headers,
|
|
1475
1479
|
body: v.data.body
|
|
@@ -1494,7 +1498,7 @@ const gt = (e) => Math.abs(
|
|
|
1494
1498
|
] }) })
|
|
1495
1499
|
}
|
|
1496
1500
|
);
|
|
1497
|
-
},
|
|
1501
|
+
}, bi = ({
|
|
1498
1502
|
className: e,
|
|
1499
1503
|
size: t = 16
|
|
1500
1504
|
}) => /* @__PURE__ */ f.jsx(
|
|
@@ -1517,10 +1521,10 @@ const gt = (e) => Math.abs(
|
|
|
1517
1521
|
}
|
|
1518
1522
|
), Or = (e) => {
|
|
1519
1523
|
const [t, n] = rr(!1);
|
|
1520
|
-
return /* @__PURE__ */ f.jsxs(
|
|
1521
|
-
/* @__PURE__ */ f.jsx(
|
|
1524
|
+
return /* @__PURE__ */ f.jsxs(Ya, { onOpenChange: (a) => n(a), children: [
|
|
1525
|
+
/* @__PURE__ */ f.jsx(Xa, { asChild: !0, children: e.children ?? /* @__PURE__ */ f.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md bg-primary/80 hover:bg-primary transition text-primary-foreground text-xs", children: [
|
|
1522
1526
|
"Test",
|
|
1523
|
-
/* @__PURE__ */ f.jsx(
|
|
1527
|
+
/* @__PURE__ */ f.jsx(bi, { className: "", size: 14 })
|
|
1524
1528
|
] }) }),
|
|
1525
1529
|
/* @__PURE__ */ f.jsxs(
|
|
1526
1530
|
dr,
|
|
@@ -1529,7 +1533,7 @@ const gt = (e) => Math.abs(
|
|
|
1529
1533
|
"aria-describedby": void 0,
|
|
1530
1534
|
children: [
|
|
1531
1535
|
/* @__PURE__ */ f.jsx(ya, { children: /* @__PURE__ */ f.jsx(fr, { children: "Playground" }) }),
|
|
1532
|
-
t && /* @__PURE__ */ f.jsx(
|
|
1536
|
+
t && /* @__PURE__ */ f.jsx(vi, { ...e })
|
|
1533
1537
|
]
|
|
1534
1538
|
}
|
|
1535
1539
|
)
|
|
@@ -1560,16 +1564,16 @@ var hn = (e, t) => {
|
|
|
1560
1564
|
this.postProcessors = [...this.postProcessors, n];
|
|
1561
1565
|
}, this.indentationCharacter = e || yn, this.lineJoin = t ?? gn;
|
|
1562
1566
|
}
|
|
1563
|
-
}, bi = function(e) {
|
|
1564
|
-
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1565
1567
|
}, xi = function(e) {
|
|
1568
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1569
|
+
}, $i = function(e) {
|
|
1566
1570
|
var t = typeof e;
|
|
1567
1571
|
return e !== null && (t === "object" || t === "function");
|
|
1568
1572
|
}, Zt = {};
|
|
1569
1573
|
Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
1570
1574
|
Zt.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1571
|
-
const
|
|
1572
|
-
var
|
|
1575
|
+
const ki = xi, Si = $i, wi = Zt.default;
|
|
1576
|
+
var ji = (e, t, n) => {
|
|
1573
1577
|
const a = [];
|
|
1574
1578
|
return function s(i, r, o) {
|
|
1575
1579
|
r = r || {}, r.indent = r.indent || " ", o = o || "";
|
|
@@ -1596,7 +1600,7 @@ var wi = (e, t, n) => {
|
|
|
1596
1600
|
};
|
|
1597
1601
|
if (a.indexOf(i) !== -1)
|
|
1598
1602
|
return '"[Circular]"';
|
|
1599
|
-
if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" ||
|
|
1603
|
+
if (i == null || typeof i == "number" || typeof i == "boolean" || typeof i == "function" || typeof i == "symbol" || ki(i))
|
|
1600
1604
|
return String(i);
|
|
1601
1605
|
if (i instanceof Date)
|
|
1602
1606
|
return `new Date('${i.toISOString()}')`;
|
|
@@ -1611,8 +1615,8 @@ var wi = (e, t, n) => {
|
|
|
1611
1615
|
}).join("") + l.pad + "]";
|
|
1612
1616
|
return a.pop(), c(u);
|
|
1613
1617
|
}
|
|
1614
|
-
if (
|
|
1615
|
-
let u = Object.keys(i).concat(
|
|
1618
|
+
if (Si(i)) {
|
|
1619
|
+
let u = Object.keys(i).concat(wi(i));
|
|
1616
1620
|
if (r.filter && (u = u.filter((d) => r.filter(i, d))), u.length === 0)
|
|
1617
1621
|
return "{}";
|
|
1618
1622
|
a.push(i);
|
|
@@ -1627,13 +1631,13 @@ var wi = (e, t, n) => {
|
|
|
1627
1631
|
` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
|
|
1628
1632
|
}(e, t, n);
|
|
1629
1633
|
};
|
|
1630
|
-
const D = /* @__PURE__ */
|
|
1634
|
+
const D = /* @__PURE__ */ Ma(ji);
|
|
1631
1635
|
function Be(e, t = {}) {
|
|
1632
1636
|
const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
|
|
1633
1637
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
1634
1638
|
` ? s ? `${a}n` : r : r === "\f" ? `${a}f` : r === "\r" ? s ? `${a}r` : r : r === a ? a + a : r === n ? a + n : r < " " || r > "~" ? JSON.stringify(r).slice(1, -1) : r).join("");
|
|
1635
1639
|
}
|
|
1636
|
-
var Ve = (e) => Be(e, { delimiter: "'" }), z = (e) => Be(e, { delimiter: '"' }),
|
|
1640
|
+
var Ve = (e) => Be(e, { delimiter: "'" }), z = (e) => Be(e, { delimiter: '"' }), Ni = {
|
|
1637
1641
|
info: {
|
|
1638
1642
|
key: "libcurl",
|
|
1639
1643
|
title: "Libcurl",
|
|
@@ -1649,7 +1653,7 @@ var Ve = (e) => Be(e, { delimiter: "'" }), z = (e) => Be(e, { delimiter: '"' }),
|
|
|
1649
1653
|
i(`headers = curl_slist_append(headers, "${c}: ${z(n[c])}");`);
|
|
1650
1654
|
}), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), s.text && (r(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
1651
1655
|
}
|
|
1652
|
-
},
|
|
1656
|
+
}, Ti = {
|
|
1653
1657
|
info: {
|
|
1654
1658
|
key: "c",
|
|
1655
1659
|
title: "C",
|
|
@@ -1657,19 +1661,19 @@ var Ve = (e) => Be(e, { delimiter: "'" }), z = (e) => Be(e, { delimiter: '"' }),
|
|
|
1657
1661
|
cli: "c"
|
|
1658
1662
|
},
|
|
1659
1663
|
clientsById: {
|
|
1660
|
-
libcurl:
|
|
1664
|
+
libcurl: Ni
|
|
1661
1665
|
}
|
|
1662
1666
|
}, Q = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), ue = (e, t) => {
|
|
1663
1667
|
const n = Q(e, t);
|
|
1664
1668
|
if (n)
|
|
1665
1669
|
return e[n];
|
|
1666
|
-
}, pt = (e, t) => !!Q(e, t),
|
|
1670
|
+
}, pt = (e, t) => !!Q(e, t), Oi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1667
1671
|
(t) => e.indexOf(t) > -1
|
|
1668
1672
|
), vn = class {
|
|
1669
1673
|
constructor(e) {
|
|
1670
1674
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1671
1675
|
}
|
|
1672
|
-
},
|
|
1676
|
+
}, Ci = class {
|
|
1673
1677
|
constructor(e) {
|
|
1674
1678
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1675
1679
|
}
|
|
@@ -1706,7 +1710,7 @@ ${n}`);
|
|
|
1706
1710
|
default:
|
|
1707
1711
|
return e.toString();
|
|
1708
1712
|
}
|
|
1709
|
-
},
|
|
1713
|
+
}, Pi = {
|
|
1710
1714
|
info: {
|
|
1711
1715
|
key: "clj_http",
|
|
1712
1716
|
title: "clj-http",
|
|
@@ -1748,7 +1752,7 @@ ${n}`);
|
|
|
1748
1752
|
if (n.params) {
|
|
1749
1753
|
c.multipart = n.params.map((p) => p.fileName && !p.value ? {
|
|
1750
1754
|
name: p.name,
|
|
1751
|
-
content: new
|
|
1755
|
+
content: new Ci(p.fileName)
|
|
1752
1756
|
} : {
|
|
1753
1757
|
name: p.name,
|
|
1754
1758
|
content: p.value
|
|
@@ -1777,16 +1781,16 @@ ${n}`);
|
|
|
1777
1781
|
}
|
|
1778
1782
|
return o();
|
|
1779
1783
|
}
|
|
1780
|
-
},
|
|
1784
|
+
}, Ei = {
|
|
1781
1785
|
info: {
|
|
1782
1786
|
key: "clojure",
|
|
1783
1787
|
title: "Clojure",
|
|
1784
1788
|
default: "clj_http"
|
|
1785
1789
|
},
|
|
1786
1790
|
clientsById: {
|
|
1787
|
-
clj_http:
|
|
1791
|
+
clj_http: Pi
|
|
1788
1792
|
}
|
|
1789
|
-
},
|
|
1793
|
+
}, Ri = (e) => {
|
|
1790
1794
|
let t = ue(e, "accept-encoding");
|
|
1791
1795
|
if (!t)
|
|
1792
1796
|
return [];
|
|
@@ -1803,7 +1807,7 @@ ${n}`);
|
|
|
1803
1807
|
}
|
|
1804
1808
|
});
|
|
1805
1809
|
}), a;
|
|
1806
|
-
},
|
|
1810
|
+
}, Ai = {
|
|
1807
1811
|
info: {
|
|
1808
1812
|
key: "httpclient",
|
|
1809
1813
|
title: "HttpClient",
|
|
@@ -1819,7 +1823,7 @@ ${n}`);
|
|
|
1819
1823
|
}, { push: r, join: o } = new T({ indent: i.indent });
|
|
1820
1824
|
r("using System.Net.Http.Headers;");
|
|
1821
1825
|
let l = "";
|
|
1822
|
-
const c = !!e.cookie, u =
|
|
1826
|
+
const c = !!e.cookie, u = Ri(e);
|
|
1823
1827
|
(c || u.length) && (l = "clientHandler", r("var clientHandler = new HttpClientHandler"), r("{"), c && r("UseCookies = false,", 1), u.length && r(`AutomaticDecompression = ${u.join(" | ")},`, 1), r("};")), r(`var client = new HttpClient(${l});`), r("var request = new HttpRequestMessage"), r("{");
|
|
1824
1828
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
1825
1829
|
n = n.toUpperCase(), n && p.includes(n) ? n = `HttpMethod.${n[0]}${n.substring(1).toLowerCase()}` : n = `new HttpMethod("${n}")`, r(`Method = ${n},`, 1), r(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -1856,10 +1860,10 @@ ${n}`);
|
|
|
1856
1860
|
return r("};"), r("using (var response = await client.SendAsync(request))"), r("{"), r("response.EnsureSuccessStatusCode();", 1), r("var body = await response.Content.ReadAsStringAsync();", 1), r("Console.WriteLine(body);", 1), r("}"), o();
|
|
1857
1861
|
}
|
|
1858
1862
|
};
|
|
1859
|
-
function
|
|
1863
|
+
function qi(e) {
|
|
1860
1864
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
1861
1865
|
}
|
|
1862
|
-
var
|
|
1866
|
+
var Fi = {
|
|
1863
1867
|
info: {
|
|
1864
1868
|
key: "restsharp",
|
|
1865
1869
|
title: "RestSharp",
|
|
@@ -1909,11 +1913,11 @@ var qi = {
|
|
|
1909
1913
|
if (!s.text) break;
|
|
1910
1914
|
r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
|
|
1911
1915
|
}
|
|
1912
|
-
return r(`var response = await client.${
|
|
1916
|
+
return r(`var response = await client.${qi(e)}Async(request);
|
|
1913
1917
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
1914
1918
|
`), o();
|
|
1915
1919
|
}
|
|
1916
|
-
},
|
|
1920
|
+
}, Ii = {
|
|
1917
1921
|
info: {
|
|
1918
1922
|
key: "csharp",
|
|
1919
1923
|
title: "C#",
|
|
@@ -1921,10 +1925,10 @@ var qi = {
|
|
|
1921
1925
|
cli: "dotnet"
|
|
1922
1926
|
},
|
|
1923
1927
|
clientsById: {
|
|
1924
|
-
httpclient:
|
|
1925
|
-
restsharp:
|
|
1928
|
+
httpclient: Ai,
|
|
1929
|
+
restsharp: Fi
|
|
1926
1930
|
}
|
|
1927
|
-
},
|
|
1931
|
+
}, _i = {
|
|
1928
1932
|
info: {
|
|
1929
1933
|
key: "native",
|
|
1930
1934
|
title: "NewRequest",
|
|
@@ -1942,7 +1946,7 @@ var qi = {
|
|
|
1942
1946
|
r(`req.Header.Add("${g}", "${z(n[g])}")`, m);
|
|
1943
1947
|
}), i()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (i(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), i(), u && r("fmt.Println(string(body))", m), l && (i(), r("}")), o();
|
|
1944
1948
|
}
|
|
1945
|
-
},
|
|
1949
|
+
}, Li = {
|
|
1946
1950
|
info: {
|
|
1947
1951
|
key: "go",
|
|
1948
1952
|
title: "Go",
|
|
@@ -1950,10 +1954,10 @@ var qi = {
|
|
|
1950
1954
|
cli: "go"
|
|
1951
1955
|
},
|
|
1952
1956
|
clientsById: {
|
|
1953
|
-
native:
|
|
1957
|
+
native: _i
|
|
1954
1958
|
}
|
|
1955
1959
|
}, xn = `\r
|
|
1956
|
-
`,
|
|
1960
|
+
`, Ui = {
|
|
1957
1961
|
info: {
|
|
1958
1962
|
key: "http1.1",
|
|
1959
1963
|
title: "HTTP/1.1",
|
|
@@ -1981,16 +1985,16 @@ var qi = {
|
|
|
1981
1985
|
const m = u(), h = i.text || "";
|
|
1982
1986
|
return `${m}${xn}${h}`;
|
|
1983
1987
|
}
|
|
1984
|
-
},
|
|
1988
|
+
}, Hi = {
|
|
1985
1989
|
info: {
|
|
1986
1990
|
key: "http",
|
|
1987
1991
|
title: "HTTP",
|
|
1988
1992
|
default: "http1.1"
|
|
1989
1993
|
},
|
|
1990
1994
|
clientsById: {
|
|
1991
|
-
"http1.1":
|
|
1995
|
+
"http1.1": Ui
|
|
1992
1996
|
}
|
|
1993
|
-
},
|
|
1997
|
+
}, Mi = {
|
|
1994
1998
|
info: {
|
|
1995
1999
|
key: "asynchttp",
|
|
1996
2000
|
title: "AsyncHttp",
|
|
@@ -2007,7 +2011,7 @@ var qi = {
|
|
|
2007
2011
|
o(`.setHeader("${c}", "${z(t[c])}")`, 1);
|
|
2008
2012
|
}), n.text && o(`.setBody(${JSON.stringify(n.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), r(), o("client.close();"), l();
|
|
2009
2013
|
}
|
|
2010
|
-
},
|
|
2014
|
+
}, Bi = {
|
|
2011
2015
|
info: {
|
|
2012
2016
|
key: "nethttp",
|
|
2013
2017
|
title: "java.net.http",
|
|
@@ -2029,7 +2033,7 @@ var qi = {
|
|
|
2029
2033
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
2030
2034
|
), r("System.out.println(response.body());"), o();
|
|
2031
2035
|
}
|
|
2032
|
-
},
|
|
2036
|
+
}, Vi = {
|
|
2033
2037
|
info: {
|
|
2034
2038
|
key: "okhttp",
|
|
2035
2039
|
title: "OkHttp",
|
|
@@ -2046,7 +2050,7 @@ var qi = {
|
|
|
2046
2050
|
r(`.addHeader("${p}", "${z(a[p])}")`, 1);
|
|
2047
2051
|
}), r(".build();", 1), o(), r("Response response = client.newCall(request).execute();"), l();
|
|
2048
2052
|
}
|
|
2049
|
-
},
|
|
2053
|
+
}, zi = {
|
|
2050
2054
|
info: {
|
|
2051
2055
|
key: "unirest",
|
|
2052
2056
|
title: "Unirest",
|
|
@@ -2063,19 +2067,19 @@ var qi = {
|
|
|
2063
2067
|
o(`.header("${c}", "${z(t[c])}")`, 1);
|
|
2064
2068
|
}), n.text && o(`.body(${JSON.stringify(n.text)})`, 1), o(".asString();", 1), r();
|
|
2065
2069
|
}
|
|
2066
|
-
},
|
|
2070
|
+
}, Ji = {
|
|
2067
2071
|
info: {
|
|
2068
2072
|
key: "java",
|
|
2069
2073
|
title: "Java",
|
|
2070
2074
|
default: "unirest"
|
|
2071
2075
|
},
|
|
2072
2076
|
clientsById: {
|
|
2073
|
-
asynchttp:
|
|
2074
|
-
nethttp:
|
|
2075
|
-
okhttp:
|
|
2076
|
-
unirest:
|
|
2077
|
+
asynchttp: Mi,
|
|
2078
|
+
nethttp: Bi,
|
|
2079
|
+
okhttp: Vi,
|
|
2080
|
+
unirest: zi
|
|
2077
2081
|
}
|
|
2078
|
-
},
|
|
2082
|
+
}, Wi = {
|
|
2079
2083
|
info: {
|
|
2080
2084
|
key: "axios",
|
|
2081
2085
|
title: "Axios",
|
|
@@ -2119,7 +2123,7 @@ var qi = {
|
|
|
2119
2123
|
}).replace('"[form]"', "form");
|
|
2120
2124
|
return l(`const options = ${d};`), o(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
|
|
2121
2125
|
}
|
|
2122
|
-
},
|
|
2126
|
+
}, Gi = {
|
|
2123
2127
|
info: {
|
|
2124
2128
|
key: "fetch",
|
|
2125
2129
|
title: "fetch",
|
|
@@ -2172,7 +2176,7 @@ var qi = {
|
|
|
2172
2176
|
})};`
|
|
2173
2177
|
), r(), n.params && n.mimeType === "multipart/form-data" && (l("options.body = form;"), r()), l(`fetch('${a}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), o();
|
|
2174
2178
|
}
|
|
2175
|
-
},
|
|
2179
|
+
}, Di = {
|
|
2176
2180
|
info: {
|
|
2177
2181
|
key: "jquery",
|
|
2178
2182
|
title: "jQuery",
|
|
@@ -2216,7 +2220,7 @@ var qi = {
|
|
|
2216
2220
|
const u = D(c, { indent: i.indent }).replace("'[form]'", "form");
|
|
2217
2221
|
return o(`const settings = ${u};`), r(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), l();
|
|
2218
2222
|
}
|
|
2219
|
-
},
|
|
2223
|
+
}, Ki = {
|
|
2220
2224
|
info: {
|
|
2221
2225
|
key: "xhr",
|
|
2222
2226
|
title: "XMLHttpRequest",
|
|
@@ -2257,19 +2261,19 @@ var qi = {
|
|
|
2257
2261
|
o(`xhr.setRequestHeader('${u}', '${Ve(t[u])}');`);
|
|
2258
2262
|
}), r(), o("xhr.send(data);"), l();
|
|
2259
2263
|
}
|
|
2260
|
-
},
|
|
2264
|
+
}, Qi = {
|
|
2261
2265
|
info: {
|
|
2262
2266
|
key: "javascript",
|
|
2263
2267
|
title: "JavaScript",
|
|
2264
2268
|
default: "xhr"
|
|
2265
2269
|
},
|
|
2266
2270
|
clientsById: {
|
|
2267
|
-
xhr:
|
|
2268
|
-
axios:
|
|
2269
|
-
fetch:
|
|
2270
|
-
jquery:
|
|
2271
|
+
xhr: Ki,
|
|
2272
|
+
axios: Wi,
|
|
2273
|
+
fetch: Gi,
|
|
2274
|
+
jquery: Di
|
|
2271
2275
|
}
|
|
2272
|
-
},
|
|
2276
|
+
}, Yi = {
|
|
2273
2277
|
info: {
|
|
2274
2278
|
key: "native",
|
|
2275
2279
|
title: "Native JSON",
|
|
@@ -2303,16 +2307,16 @@ var qi = {
|
|
|
2303
2307
|
}
|
|
2304
2308
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
|
|
2305
2309
|
}
|
|
2306
|
-
},
|
|
2310
|
+
}, Xi = {
|
|
2307
2311
|
info: {
|
|
2308
2312
|
key: "json",
|
|
2309
2313
|
title: "JSON",
|
|
2310
2314
|
default: "native"
|
|
2311
2315
|
},
|
|
2312
2316
|
clientsById: {
|
|
2313
|
-
native:
|
|
2317
|
+
native: Yi
|
|
2314
2318
|
}
|
|
2315
|
-
},
|
|
2319
|
+
}, Zi = {
|
|
2316
2320
|
info: {
|
|
2317
2321
|
key: "okhttp",
|
|
2318
2322
|
title: "OkHttp",
|
|
@@ -2329,16 +2333,16 @@ var qi = {
|
|
|
2329
2333
|
l(`.addHeader("${p}", "${z(a[p])}")`, 1);
|
|
2330
2334
|
}), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), o();
|
|
2331
2335
|
}
|
|
2332
|
-
},
|
|
2336
|
+
}, eo = {
|
|
2333
2337
|
info: {
|
|
2334
2338
|
key: "kotlin",
|
|
2335
2339
|
title: "Kotlin",
|
|
2336
2340
|
default: "okhttp"
|
|
2337
2341
|
},
|
|
2338
2342
|
clientsById: {
|
|
2339
|
-
okhttp:
|
|
2343
|
+
okhttp: Zi
|
|
2340
2344
|
}
|
|
2341
|
-
},
|
|
2345
|
+
}, to = {
|
|
2342
2346
|
info: {
|
|
2343
2347
|
key: "axios",
|
|
2344
2348
|
title: "Axios",
|
|
@@ -2372,7 +2376,7 @@ var qi = {
|
|
|
2372
2376
|
const p = D(u, { indent: " ", inlineCharacterLimit: 80 });
|
|
2373
2377
|
return l(`const options = ${p};`), r(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), o();
|
|
2374
2378
|
}
|
|
2375
|
-
},
|
|
2379
|
+
}, no = {
|
|
2376
2380
|
info: {
|
|
2377
2381
|
key: "fetch",
|
|
2378
2382
|
title: "Fetch",
|
|
@@ -2432,7 +2436,7 @@ var qi = {
|
|
|
2432
2436
|
});
|
|
2433
2437
|
return c(`const options = ${h};`), l(), o && p("const fs = require('fs');"), n.params && n.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
2434
2438
|
}
|
|
2435
|
-
},
|
|
2439
|
+
}, ro = {
|
|
2436
2440
|
info: {
|
|
2437
2441
|
key: "native",
|
|
2438
2442
|
title: "HTTP",
|
|
@@ -2471,7 +2475,7 @@ var qi = {
|
|
|
2471
2475
|
}
|
|
2472
2476
|
return l("req.end();"), o();
|
|
2473
2477
|
}
|
|
2474
|
-
},
|
|
2478
|
+
}, ao = {
|
|
2475
2479
|
info: {
|
|
2476
2480
|
key: "request",
|
|
2477
2481
|
title: "Request",
|
|
@@ -2524,7 +2528,7 @@ var qi = {
|
|
|
2524
2528
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${t}');`);
|
|
2525
2529
|
}), u(), m((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${D(h, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), p();
|
|
2526
2530
|
}
|
|
2527
|
-
},
|
|
2531
|
+
}, io = {
|
|
2528
2532
|
info: {
|
|
2529
2533
|
key: "unirest",
|
|
2530
2534
|
title: "Unirest",
|
|
@@ -2565,7 +2569,7 @@ var qi = {
|
|
|
2565
2569
|
}
|
|
2566
2570
|
return l && m("const fs = require('fs');"), d("req.end(function (res) {"), d("if (res.error) throw new Error(res.error);", 1), u(), d("console.log(res.body);", 1), d("});"), p();
|
|
2567
2571
|
}
|
|
2568
|
-
},
|
|
2572
|
+
}, oo = {
|
|
2569
2573
|
info: {
|
|
2570
2574
|
key: "node",
|
|
2571
2575
|
title: "Node.js",
|
|
@@ -2573,11 +2577,11 @@ var qi = {
|
|
|
2573
2577
|
cli: "node %s"
|
|
2574
2578
|
},
|
|
2575
2579
|
clientsById: {
|
|
2576
|
-
native:
|
|
2577
|
-
request:
|
|
2578
|
-
unirest:
|
|
2579
|
-
axios:
|
|
2580
|
-
fetch:
|
|
2580
|
+
native: ro,
|
|
2581
|
+
request: ao,
|
|
2582
|
+
unirest: io,
|
|
2583
|
+
axios: to,
|
|
2584
|
+
fetch: no
|
|
2581
2585
|
}
|
|
2582
2586
|
}, xt = (e, t, n, a) => {
|
|
2583
2587
|
const s = `${e} *${t} = `, i = Ft(n, a ? s.length : void 0);
|
|
@@ -2601,7 +2605,7 @@ var qi = {
|
|
|
2601
2605
|
default:
|
|
2602
2606
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2603
2607
|
}
|
|
2604
|
-
},
|
|
2608
|
+
}, so = {
|
|
2605
2609
|
info: {
|
|
2606
2610
|
key: "nsurlsession",
|
|
2607
2611
|
title: "NSURLSession",
|
|
@@ -2658,16 +2662,16 @@ var qi = {
|
|
|
2658
2662
|
2
|
|
2659
2663
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), o();
|
|
2660
2664
|
}
|
|
2661
|
-
},
|
|
2665
|
+
}, lo = {
|
|
2662
2666
|
info: {
|
|
2663
2667
|
key: "objc",
|
|
2664
2668
|
title: "Objective-C",
|
|
2665
2669
|
default: "nsurlsession"
|
|
2666
2670
|
},
|
|
2667
2671
|
clientsById: {
|
|
2668
|
-
nsurlsession:
|
|
2672
|
+
nsurlsession: so
|
|
2669
2673
|
}
|
|
2670
|
-
},
|
|
2674
|
+
}, co = {
|
|
2671
2675
|
info: {
|
|
2672
2676
|
key: "cohttp",
|
|
2673
2677
|
title: "CoHTTP",
|
|
@@ -2693,14 +2697,14 @@ var qi = {
|
|
|
2693
2697
|
const p = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2694
2698
|
return o(`Client.call ${p}${d}${m} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), c();
|
|
2695
2699
|
}
|
|
2696
|
-
},
|
|
2700
|
+
}, uo = {
|
|
2697
2701
|
info: {
|
|
2698
2702
|
key: "ocaml",
|
|
2699
2703
|
title: "OCaml",
|
|
2700
2704
|
default: "cohttp"
|
|
2701
2705
|
},
|
|
2702
2706
|
clientsById: {
|
|
2703
|
-
cohttp:
|
|
2707
|
+
cohttp: co
|
|
2704
2708
|
}
|
|
2705
2709
|
}, A = (e, t, n) => {
|
|
2706
2710
|
switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
|
|
@@ -2761,7 +2765,7 @@ ${n}]`;
|
|
|
2761
2765
|
"UNLOCK",
|
|
2762
2766
|
"UPDATE",
|
|
2763
2767
|
"VERSION_CONTROL"
|
|
2764
|
-
],
|
|
2768
|
+
], fo = {
|
|
2765
2769
|
info: {
|
|
2766
2770
|
key: "curl",
|
|
2767
2771
|
title: "cURL",
|
|
@@ -2839,7 +2843,7 @@ ${c}` });
|
|
|
2839
2843
|
return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
|
|
2840
2844
|
${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = curl_exec($curl);"), y("$err = curl_error($curl);"), v(), y("curl_close($curl);"), v(), y("if ($err) {"), y(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), y("} else {"), y("echo $response;", 1), y("}"), !d && l && (v(), y("?>")), b();
|
|
2841
2845
|
}
|
|
2842
|
-
},
|
|
2846
|
+
}, po = {
|
|
2843
2847
|
info: {
|
|
2844
2848
|
key: "guzzle",
|
|
2845
2849
|
title: "Guzzle",
|
|
@@ -2890,7 +2894,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2890
2894
|
return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Ve(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
|
|
2891
2895
|
`)), p("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (o(`$response = $client->request('${n}', '${t}', [`), o(d()), o("]);")) : o(`$response = $client->request('${n}', '${t}');`), l(), o("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), o("?>")), c();
|
|
2892
2896
|
}
|
|
2893
|
-
},
|
|
2897
|
+
}, mo = {
|
|
2894
2898
|
info: {
|
|
2895
2899
|
key: "http1",
|
|
2896
2900
|
title: "HTTP v1",
|
|
@@ -2912,7 +2916,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2912
2916
|
}
|
|
2913
2917
|
return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && o && (d(), p("?>")), m();
|
|
2914
2918
|
}
|
|
2915
|
-
},
|
|
2919
|
+
}, ho = {
|
|
2916
2920
|
info: {
|
|
2917
2921
|
key: "http2",
|
|
2918
2922
|
title: "HTTP v2",
|
|
@@ -2960,7 +2964,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2960
2964
|
}
|
|
2961
2965
|
return p(`$request->setRequestUrl(${A(i)});`), p(`$request->setRequestMethod(${A(n)});`), h && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${A(a, l)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${A(t, l)});`), d()), Object.keys(s).length && (d(), p(`$client->setCookies(${A(s, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && o && (d(), p("?>")), m();
|
|
2962
2966
|
}
|
|
2963
|
-
},
|
|
2967
|
+
}, yo = {
|
|
2964
2968
|
info: {
|
|
2965
2969
|
key: "php",
|
|
2966
2970
|
title: "PHP",
|
|
@@ -2968,10 +2972,10 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2968
2972
|
cli: "php %s"
|
|
2969
2973
|
},
|
|
2970
2974
|
clientsById: {
|
|
2971
|
-
curl:
|
|
2972
|
-
guzzle:
|
|
2973
|
-
http1:
|
|
2974
|
-
http2:
|
|
2975
|
+
curl: fo,
|
|
2976
|
+
guzzle: po,
|
|
2977
|
+
http1: mo,
|
|
2978
|
+
http2: ho
|
|
2975
2979
|
}
|
|
2976
2980
|
}, Er = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: i, fullUrl: r, postData: o, allHeaders: l }) => {
|
|
2977
2981
|
const { push: c, join: u } = new T();
|
|
@@ -2985,7 +2989,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2985
2989
|
}), d.push("-WebSession $session")), o.text && (d.push(
|
|
2986
2990
|
`-ContentType '${Be(ue(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
2987
2991
|
), d.push(`-Body '${o.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
|
|
2988
|
-
},
|
|
2992
|
+
}, go = {
|
|
2989
2993
|
info: {
|
|
2990
2994
|
key: "restmethod",
|
|
2991
2995
|
title: "Invoke-RestMethod",
|
|
@@ -2994,7 +2998,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
2994
2998
|
extname: ".ps1"
|
|
2995
2999
|
},
|
|
2996
3000
|
convert: Er("Invoke-RestMethod")
|
|
2997
|
-
},
|
|
3001
|
+
}, vo = {
|
|
2998
3002
|
info: {
|
|
2999
3003
|
key: "webrequest",
|
|
3000
3004
|
title: "Invoke-WebRequest",
|
|
@@ -3003,15 +3007,15 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3003
3007
|
extname: ".ps1"
|
|
3004
3008
|
},
|
|
3005
3009
|
convert: Er("Invoke-WebRequest")
|
|
3006
|
-
},
|
|
3010
|
+
}, bo = {
|
|
3007
3011
|
info: {
|
|
3008
3012
|
key: "powershell",
|
|
3009
3013
|
title: "Powershell",
|
|
3010
3014
|
default: "webrequest"
|
|
3011
3015
|
},
|
|
3012
3016
|
clientsById: {
|
|
3013
|
-
webrequest:
|
|
3014
|
-
restmethod:
|
|
3017
|
+
webrequest: vo,
|
|
3018
|
+
restmethod: go
|
|
3015
3019
|
}
|
|
3016
3020
|
};
|
|
3017
3021
|
function kn(e, t, n, a, s) {
|
|
@@ -3043,7 +3047,7 @@ var Ce = (e, t, n) => {
|
|
|
3043
3047
|
default:
|
|
3044
3048
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3045
3049
|
}
|
|
3046
|
-
},
|
|
3050
|
+
}, xo = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], $o = {
|
|
3047
3051
|
info: {
|
|
3048
3052
|
key: "requests",
|
|
3049
3053
|
title: "Requests",
|
|
@@ -3106,10 +3110,10 @@ var Ce = (e, t, n) => {
|
|
|
3106
3110
|
r(g !== v ? `"${x}": "${z(u[x])}",` : `"${x}": "${z(u[x])}"`, 1), g += 1;
|
|
3107
3111
|
}), r("}"), o();
|
|
3108
3112
|
}
|
|
3109
|
-
let b =
|
|
3113
|
+
let b = xo.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
3110
3114
|
return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), v > 0 && (b += ", headers=headers"), b += ")", r(b), o(), r("print(response.text)"), l();
|
|
3111
3115
|
}
|
|
3112
|
-
},
|
|
3116
|
+
}, ko = {
|
|
3113
3117
|
info: {
|
|
3114
3118
|
key: "python",
|
|
3115
3119
|
title: "Python",
|
|
@@ -3117,9 +3121,9 @@ var Ce = (e, t, n) => {
|
|
|
3117
3121
|
cli: "python3 %s"
|
|
3118
3122
|
},
|
|
3119
3123
|
clientsById: {
|
|
3120
|
-
requests:
|
|
3124
|
+
requests: $o
|
|
3121
3125
|
}
|
|
3122
|
-
},
|
|
3126
|
+
}, So = {
|
|
3123
3127
|
info: {
|
|
3124
3128
|
key: "httr",
|
|
3125
3129
|
title: "httr",
|
|
@@ -3158,16 +3162,16 @@ var Ce = (e, t, n) => {
|
|
|
3158
3162
|
const w = [g, v, y, h].filter((S) => !!S).join(", ");
|
|
3159
3163
|
return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), o(), r('content(response, "text")'), l();
|
|
3160
3164
|
}
|
|
3161
|
-
},
|
|
3165
|
+
}, wo = {
|
|
3162
3166
|
info: {
|
|
3163
3167
|
key: "r",
|
|
3164
3168
|
title: "R",
|
|
3165
3169
|
default: "httr"
|
|
3166
3170
|
},
|
|
3167
3171
|
clientsById: {
|
|
3168
|
-
httr:
|
|
3172
|
+
httr: So
|
|
3169
3173
|
}
|
|
3170
|
-
},
|
|
3174
|
+
}, jo = {
|
|
3171
3175
|
info: {
|
|
3172
3176
|
key: "native",
|
|
3173
3177
|
title: "net::http",
|
|
@@ -3198,16 +3202,16 @@ var Ce = (e, t, n) => {
|
|
|
3198
3202
|
i(`request["${d}"] = '${Ve(s[d])}'`);
|
|
3199
3203
|
}), a.text && i(`request.body = ${JSON.stringify(a.text)}`), r(), i("response = http.request(request)"), i("puts response.read_body"), o();
|
|
3200
3204
|
}
|
|
3201
|
-
},
|
|
3205
|
+
}, No = {
|
|
3202
3206
|
info: {
|
|
3203
3207
|
key: "ruby",
|
|
3204
3208
|
title: "Ruby",
|
|
3205
3209
|
default: "native"
|
|
3206
3210
|
},
|
|
3207
3211
|
clientsById: {
|
|
3208
|
-
native:
|
|
3212
|
+
native: jo
|
|
3209
3213
|
}
|
|
3210
|
-
}, G = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
3214
|
+
}, G = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, To = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Oo = {
|
|
3211
3215
|
"http1.0": "0",
|
|
3212
3216
|
"url ": "",
|
|
3213
3217
|
cookie: "b",
|
|
@@ -3217,13 +3221,13 @@ var Ce = (e, t, n) => {
|
|
|
3217
3221
|
header: "H",
|
|
3218
3222
|
insecure: "k",
|
|
3219
3223
|
request: "X"
|
|
3220
|
-
},
|
|
3224
|
+
}, Co = (e) => (t) => {
|
|
3221
3225
|
if (e) {
|
|
3222
|
-
const n =
|
|
3226
|
+
const n = Oo[t];
|
|
3223
3227
|
return n ? `-${n}` : "";
|
|
3224
3228
|
}
|
|
3225
3229
|
return `--${t}`;
|
|
3226
|
-
},
|
|
3230
|
+
}, Po = {
|
|
3227
3231
|
info: {
|
|
3228
3232
|
key: "curl",
|
|
3229
3233
|
title: "cURL",
|
|
@@ -3237,7 +3241,7 @@ var Ce = (e, t, n) => {
|
|
|
3237
3241
|
...typeof o == "string" ? { indent: o } : {},
|
|
3238
3242
|
join: o !== !1 ? ` \\
|
|
3239
3243
|
${o}` : " "
|
|
3240
|
-
}), h =
|
|
3244
|
+
}), h = Co(l);
|
|
3241
3245
|
let y = G(e);
|
|
3242
3246
|
if (d(`curl ${h("request")} ${t}`), u && (y = unescape(y), d(h("globoff"))), d(`${h("url ")}${y}`), n === "HTTP/1.0" && d(h("http1.0")), ue(s, "accept-encoding") && d("--compressed"), i.mimeType === "multipart/form-data") {
|
|
3243
3247
|
const b = Q(a, "content-type");
|
|
@@ -3269,7 +3273,7 @@ ${o}` : " "
|
|
|
3269
3273
|
if (!i.text)
|
|
3270
3274
|
break;
|
|
3271
3275
|
let b = !1;
|
|
3272
|
-
if (
|
|
3276
|
+
if (Oi(i.mimeType) && i.text.length > 20)
|
|
3273
3277
|
try {
|
|
3274
3278
|
const g = JSON.parse(i.text);
|
|
3275
3279
|
b = !0, i.text.indexOf("'") > 0 ? d(
|
|
@@ -3291,7 +3295,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
3291
3295
|
}
|
|
3292
3296
|
return m();
|
|
3293
3297
|
}
|
|
3294
|
-
},
|
|
3298
|
+
}, Eo = {
|
|
3295
3299
|
info: {
|
|
3296
3300
|
key: "httpie",
|
|
3297
3301
|
title: "HTTPie",
|
|
@@ -3340,7 +3344,7 @@ ${o.indent}` : " "
|
|
|
3340
3344
|
}
|
|
3341
3345
|
return c();
|
|
3342
3346
|
}
|
|
3343
|
-
},
|
|
3347
|
+
}, Ro = {
|
|
3344
3348
|
info: {
|
|
3345
3349
|
key: "wget",
|
|
3346
3350
|
title: "Wget",
|
|
@@ -3362,9 +3366,9 @@ ${i.indent}` : " "
|
|
|
3362
3366
|
return i.verbose ? r(`wget ${i.short ? "-v" : "--verbose"}`) : r(`wget ${i.short ? "-q" : "--quiet"}`), r(`--method ${G(e)}`), Object.keys(n).forEach((l) => {
|
|
3363
3367
|
const c = `${l}: ${n[l]}`;
|
|
3364
3368
|
r(`--header ${G(c)}`);
|
|
3365
|
-
}), t.text && r(`--body-data ${
|
|
3369
|
+
}), t.text && r(`--body-data ${To(G(t.text))}`), r(i.short ? "-O" : "--output-document"), r(`- ${G(a)}`), o();
|
|
3366
3370
|
}
|
|
3367
|
-
},
|
|
3371
|
+
}, Ao = {
|
|
3368
3372
|
info: {
|
|
3369
3373
|
key: "shell",
|
|
3370
3374
|
title: "Shell",
|
|
@@ -3372,9 +3376,9 @@ ${i.indent}` : " "
|
|
|
3372
3376
|
cli: "%s"
|
|
3373
3377
|
},
|
|
3374
3378
|
clientsById: {
|
|
3375
|
-
curl:
|
|
3376
|
-
httpie:
|
|
3377
|
-
wget:
|
|
3379
|
+
curl: Po,
|
|
3380
|
+
httpie: Eo,
|
|
3381
|
+
wget: Ro
|
|
3378
3382
|
}
|
|
3379
3383
|
}, Sn = (e, t) => t.repeat(e), wn = (e, t, n, a) => {
|
|
3380
3384
|
const s = Sn(a, n), i = Sn(a - 1, n), r = t ? `,
|
|
@@ -3409,7 +3413,7 @@ ${i}]` : `[${e.join(r)}]`;
|
|
|
3409
3413
|
default:
|
|
3410
3414
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3411
3415
|
}
|
|
3412
|
-
},
|
|
3416
|
+
}, qo = {
|
|
3413
3417
|
info: {
|
|
3414
3418
|
key: "urlsession",
|
|
3415
3419
|
title: "URLSession",
|
|
@@ -3460,35 +3464,35 @@ ${i}]` : `[${e.join(r)}]`;
|
|
|
3460
3464
|
}
|
|
3461
3465
|
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${s}"`), o(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${ot(e, r)}`), u && o("request.httpBody = postData"), l(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), c();
|
|
3462
3466
|
}
|
|
3463
|
-
},
|
|
3467
|
+
}, Fo = {
|
|
3464
3468
|
info: {
|
|
3465
3469
|
key: "swift",
|
|
3466
3470
|
title: "Swift",
|
|
3467
3471
|
default: "urlsession"
|
|
3468
3472
|
},
|
|
3469
3473
|
clientsById: {
|
|
3470
|
-
urlsession:
|
|
3471
|
-
}
|
|
3472
|
-
},
|
|
3473
|
-
c:
|
|
3474
|
-
clojure:
|
|
3475
|
-
csharp:
|
|
3476
|
-
go:
|
|
3477
|
-
http:
|
|
3478
|
-
java:
|
|
3479
|
-
javascript:
|
|
3480
|
-
json:
|
|
3481
|
-
kotlin:
|
|
3482
|
-
node:
|
|
3483
|
-
objc:
|
|
3484
|
-
ocaml:
|
|
3485
|
-
php:
|
|
3486
|
-
powershell:
|
|
3487
|
-
python:
|
|
3488
|
-
r:
|
|
3489
|
-
ruby:
|
|
3490
|
-
shell:
|
|
3491
|
-
swift:
|
|
3474
|
+
urlsession: qo
|
|
3475
|
+
}
|
|
3476
|
+
}, Io = {
|
|
3477
|
+
c: Ti,
|
|
3478
|
+
clojure: Ei,
|
|
3479
|
+
csharp: Ii,
|
|
3480
|
+
go: Li,
|
|
3481
|
+
http: Hi,
|
|
3482
|
+
java: Ji,
|
|
3483
|
+
javascript: Qi,
|
|
3484
|
+
json: Xi,
|
|
3485
|
+
kotlin: eo,
|
|
3486
|
+
node: oo,
|
|
3487
|
+
objc: lo,
|
|
3488
|
+
ocaml: uo,
|
|
3489
|
+
php: yo,
|
|
3490
|
+
powershell: bo,
|
|
3491
|
+
python: ko,
|
|
3492
|
+
r: wo,
|
|
3493
|
+
ruby: No,
|
|
3494
|
+
shell: Ao,
|
|
3495
|
+
swift: Fo
|
|
3492
3496
|
}, st = { exports: {} };
|
|
3493
3497
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3494
3498
|
st.exports;
|
|
@@ -3610,7 +3614,7 @@ st.exports;
|
|
|
3610
3614
|
n.punycode = r;
|
|
3611
3615
|
})(Le);
|
|
3612
3616
|
})(st, st.exports);
|
|
3613
|
-
var
|
|
3617
|
+
var _o = st.exports, Lo = Error, Uo = EvalError, Ho = RangeError, Mo = ReferenceError, Rr = SyntaxError, We = TypeError, Bo = URIError, Vo = function() {
|
|
3614
3618
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3615
3619
|
return !1;
|
|
3616
3620
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3633,32 +3637,32 @@ var Io = st.exports, _o = Error, Lo = EvalError, Uo = RangeError, Ho = Reference
|
|
|
3633
3637
|
return !1;
|
|
3634
3638
|
}
|
|
3635
3639
|
return !0;
|
|
3636
|
-
}, Nn = typeof Symbol < "u" && Symbol,
|
|
3637
|
-
return typeof Nn != "function" || typeof Symbol != "function" || typeof Nn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
3640
|
+
}, Nn = typeof Symbol < "u" && Symbol, zo = Vo, Jo = function() {
|
|
3641
|
+
return typeof Nn != "function" || typeof Symbol != "function" || typeof Nn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : zo();
|
|
3638
3642
|
}, $t = {
|
|
3639
3643
|
__proto__: null,
|
|
3640
3644
|
foo: {}
|
|
3641
|
-
},
|
|
3642
|
-
return { __proto__: $t }.foo === $t.foo && !($t instanceof
|
|
3643
|
-
},
|
|
3645
|
+
}, Wo = Object, Go = function() {
|
|
3646
|
+
return { __proto__: $t }.foo === $t.foo && !($t instanceof Wo);
|
|
3647
|
+
}, Do = "Function.prototype.bind called on incompatible ", Ko = Object.prototype.toString, Qo = Math.max, Yo = "[object Function]", Tn = function(t, n) {
|
|
3644
3648
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
3645
3649
|
a[s] = t[s];
|
|
3646
3650
|
for (var i = 0; i < n.length; i += 1)
|
|
3647
3651
|
a[i + t.length] = n[i];
|
|
3648
3652
|
return a;
|
|
3649
|
-
},
|
|
3653
|
+
}, Xo = function(t, n) {
|
|
3650
3654
|
for (var a = [], s = n, i = 0; s < t.length; s += 1, i += 1)
|
|
3651
3655
|
a[i] = t[s];
|
|
3652
3656
|
return a;
|
|
3653
|
-
},
|
|
3657
|
+
}, Zo = function(e, t) {
|
|
3654
3658
|
for (var n = "", a = 0; a < e.length; a += 1)
|
|
3655
3659
|
n += e[a], a + 1 < e.length && (n += t);
|
|
3656
3660
|
return n;
|
|
3657
|
-
},
|
|
3661
|
+
}, es = function(t) {
|
|
3658
3662
|
var n = this;
|
|
3659
|
-
if (typeof n != "function" ||
|
|
3660
|
-
throw new TypeError(
|
|
3661
|
-
for (var a =
|
|
3663
|
+
if (typeof n != "function" || Ko.apply(n) !== Yo)
|
|
3664
|
+
throw new TypeError(Do + n);
|
|
3665
|
+
for (var a = Xo(arguments, 1), s, i = function() {
|
|
3662
3666
|
if (this instanceof s) {
|
|
3663
3667
|
var u = n.apply(
|
|
3664
3668
|
this,
|
|
@@ -3670,15 +3674,15 @@ var Io = st.exports, _o = Error, Lo = EvalError, Uo = RangeError, Ho = Reference
|
|
|
3670
3674
|
t,
|
|
3671
3675
|
Tn(a, arguments)
|
|
3672
3676
|
);
|
|
3673
|
-
}, r =
|
|
3677
|
+
}, r = Qo(0, n.length - a.length), o = [], l = 0; l < r; l++)
|
|
3674
3678
|
o[l] = "$" + l;
|
|
3675
|
-
if (s = Function("binder", "return function (" +
|
|
3679
|
+
if (s = Function("binder", "return function (" + Zo(o, ",") + "){ return binder.apply(this,arguments); }")(i), n.prototype) {
|
|
3676
3680
|
var c = function() {
|
|
3677
3681
|
};
|
|
3678
3682
|
c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
|
|
3679
3683
|
}
|
|
3680
3684
|
return s;
|
|
3681
|
-
},
|
|
3685
|
+
}, ts = es, en = Function.prototype.bind || ts, ns = Function.prototype.call, rs = Object.prototype.hasOwnProperty, as = en, is = as.call(ns, rs), N, os = Lo, ss = Uo, ls = Ho, cs = Mo, Re = Rr, Pe = We, us = Bo, Ar = Function, kt = function(e) {
|
|
3682
3686
|
try {
|
|
3683
3687
|
return Ar('"use strict"; return (' + e + ").constructor;")();
|
|
3684
3688
|
} catch {
|
|
@@ -3692,7 +3696,7 @@ if ($e)
|
|
|
3692
3696
|
}
|
|
3693
3697
|
var St = function() {
|
|
3694
3698
|
throw new Pe();
|
|
3695
|
-
},
|
|
3699
|
+
}, ds = $e ? function() {
|
|
3696
3700
|
try {
|
|
3697
3701
|
return arguments.callee, St;
|
|
3698
3702
|
} catch {
|
|
@@ -3702,9 +3706,9 @@ var St = function() {
|
|
|
3702
3706
|
return St;
|
|
3703
3707
|
}
|
|
3704
3708
|
}
|
|
3705
|
-
}() : St, we =
|
|
3709
|
+
}() : St, we = Jo(), fs = Go(), V = Object.getPrototypeOf || (fs ? function(e) {
|
|
3706
3710
|
return e.__proto__;
|
|
3707
|
-
} : null), Oe = {},
|
|
3711
|
+
} : null), Oe = {}, ps = typeof Uint8Array > "u" || !V ? N : V(Uint8Array), ke = {
|
|
3708
3712
|
__proto__: null,
|
|
3709
3713
|
"%AggregateError%": typeof AggregateError > "u" ? N : AggregateError,
|
|
3710
3714
|
"%Array%": Array,
|
|
@@ -3726,10 +3730,10 @@ var St = function() {
|
|
|
3726
3730
|
"%decodeURIComponent%": decodeURIComponent,
|
|
3727
3731
|
"%encodeURI%": encodeURI,
|
|
3728
3732
|
"%encodeURIComponent%": encodeURIComponent,
|
|
3729
|
-
"%Error%":
|
|
3733
|
+
"%Error%": os,
|
|
3730
3734
|
"%eval%": eval,
|
|
3731
3735
|
// eslint-disable-line no-eval
|
|
3732
|
-
"%EvalError%":
|
|
3736
|
+
"%EvalError%": ss,
|
|
3733
3737
|
"%Float32Array%": typeof Float32Array > "u" ? N : Float32Array,
|
|
3734
3738
|
"%Float64Array%": typeof Float64Array > "u" ? N : Float64Array,
|
|
3735
3739
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? N : FinalizationRegistry,
|
|
@@ -3751,8 +3755,8 @@ var St = function() {
|
|
|
3751
3755
|
"%parseInt%": parseInt,
|
|
3752
3756
|
"%Promise%": typeof Promise > "u" ? N : Promise,
|
|
3753
3757
|
"%Proxy%": typeof Proxy > "u" ? N : Proxy,
|
|
3754
|
-
"%RangeError%":
|
|
3755
|
-
"%ReferenceError%":
|
|
3758
|
+
"%RangeError%": ls,
|
|
3759
|
+
"%ReferenceError%": cs,
|
|
3756
3760
|
"%Reflect%": typeof Reflect > "u" ? N : Reflect,
|
|
3757
3761
|
"%RegExp%": RegExp,
|
|
3758
3762
|
"%Set%": typeof Set > "u" ? N : Set,
|
|
@@ -3762,14 +3766,14 @@ var St = function() {
|
|
|
3762
3766
|
"%StringIteratorPrototype%": we && V ? V(""[Symbol.iterator]()) : N,
|
|
3763
3767
|
"%Symbol%": we ? Symbol : N,
|
|
3764
3768
|
"%SyntaxError%": Re,
|
|
3765
|
-
"%ThrowTypeError%":
|
|
3766
|
-
"%TypedArray%":
|
|
3769
|
+
"%ThrowTypeError%": ds,
|
|
3770
|
+
"%TypedArray%": ps,
|
|
3767
3771
|
"%TypeError%": Pe,
|
|
3768
3772
|
"%Uint8Array%": typeof Uint8Array > "u" ? N : Uint8Array,
|
|
3769
3773
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? N : Uint8ClampedArray,
|
|
3770
3774
|
"%Uint16Array%": typeof Uint16Array > "u" ? N : Uint16Array,
|
|
3771
3775
|
"%Uint32Array%": typeof Uint32Array > "u" ? N : Uint32Array,
|
|
3772
|
-
"%URIError%":
|
|
3776
|
+
"%URIError%": us,
|
|
3773
3777
|
"%WeakMap%": typeof WeakMap > "u" ? N : WeakMap,
|
|
3774
3778
|
"%WeakRef%": typeof WeakRef > "u" ? N : WeakRef,
|
|
3775
3779
|
"%WeakSet%": typeof WeakSet > "u" ? N : WeakSet
|
|
@@ -3778,10 +3782,10 @@ if (V)
|
|
|
3778
3782
|
try {
|
|
3779
3783
|
null.error;
|
|
3780
3784
|
} catch (e) {
|
|
3781
|
-
var
|
|
3782
|
-
ke["%Error.prototype%"] =
|
|
3785
|
+
var ms = V(V(e));
|
|
3786
|
+
ke["%Error.prototype%"] = ms;
|
|
3783
3787
|
}
|
|
3784
|
-
var
|
|
3788
|
+
var hs = function e(t) {
|
|
3785
3789
|
var n;
|
|
3786
3790
|
if (t === "%AsyncFunction%")
|
|
3787
3791
|
n = kt("async function () {}");
|
|
@@ -3850,21 +3854,21 @@ var ms = function e(t) {
|
|
|
3850
3854
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3851
3855
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3852
3856
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3853
|
-
}, Ge = en, lt =
|
|
3857
|
+
}, Ge = en, lt = is, ys = Ge.call(Function.call, Array.prototype.concat), gs = Ge.call(Function.apply, Array.prototype.splice), Cn = Ge.call(Function.call, String.prototype.replace), ct = Ge.call(Function.call, String.prototype.slice), vs = Ge.call(Function.call, RegExp.prototype.exec), bs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, xs = /\\(\\)?/g, $s = function(t) {
|
|
3854
3858
|
var n = ct(t, 0, 1), a = ct(t, -1);
|
|
3855
3859
|
if (n === "%" && a !== "%")
|
|
3856
3860
|
throw new Re("invalid intrinsic syntax, expected closing `%`");
|
|
3857
3861
|
if (a === "%" && n !== "%")
|
|
3858
3862
|
throw new Re("invalid intrinsic syntax, expected opening `%`");
|
|
3859
3863
|
var s = [];
|
|
3860
|
-
return Cn(t,
|
|
3861
|
-
s[s.length] = o ? Cn(l,
|
|
3864
|
+
return Cn(t, bs, function(i, r, o, l) {
|
|
3865
|
+
s[s.length] = o ? Cn(l, xs, "$1") : r || i;
|
|
3862
3866
|
}), s;
|
|
3863
|
-
},
|
|
3867
|
+
}, ks = function(t, n) {
|
|
3864
3868
|
var a = t, s;
|
|
3865
3869
|
if (lt(On, a) && (s = On[a], a = "%" + s[0] + "%"), lt(ke, a)) {
|
|
3866
3870
|
var i = ke[a];
|
|
3867
|
-
if (i === Oe && (i =
|
|
3871
|
+
if (i === Oe && (i = hs(a)), typeof i > "u" && !n)
|
|
3868
3872
|
throw new Pe("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
3869
3873
|
return {
|
|
3870
3874
|
alias: s,
|
|
@@ -3878,10 +3882,10 @@ var ms = function e(t) {
|
|
|
3878
3882
|
throw new Pe("intrinsic name must be a non-empty string");
|
|
3879
3883
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
3880
3884
|
throw new Pe('"allowMissing" argument must be a boolean');
|
|
3881
|
-
if (
|
|
3885
|
+
if (vs(/^%?[^%]*%?$/, t) === null)
|
|
3882
3886
|
throw new Re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3883
|
-
var a =
|
|
3884
|
-
c && (s = c[0],
|
|
3887
|
+
var a = $s(t), s = a.length > 0 ? a[0] : "", i = ks("%" + s + "%", n), r = i.name, o = i.value, l = !1, c = i.alias;
|
|
3888
|
+
c && (s = c[0], gs(a, ys([0, 1], c)));
|
|
3885
3889
|
for (var u = 1, p = !0; u < a.length; u += 1) {
|
|
3886
3890
|
var d = a[u], m = ct(d, 0, 1), h = ct(d, -1);
|
|
3887
3891
|
if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
|
|
@@ -3916,14 +3920,14 @@ function tn() {
|
|
|
3916
3920
|
}
|
|
3917
3921
|
return wt = t, wt;
|
|
3918
3922
|
}
|
|
3919
|
-
var
|
|
3923
|
+
var Ss = Fe, tt = Ss("%Object.getOwnPropertyDescriptor%", !0);
|
|
3920
3924
|
if (tt)
|
|
3921
3925
|
try {
|
|
3922
3926
|
tt([], "length");
|
|
3923
3927
|
} catch {
|
|
3924
3928
|
tt = null;
|
|
3925
3929
|
}
|
|
3926
|
-
var Fr = tt, En = tn(),
|
|
3930
|
+
var Fr = tt, En = tn(), ws = Rr, je = We, Rn = Fr, js = function(t, n, a) {
|
|
3927
3931
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
3928
3932
|
throw new je("`obj` must be an object or a function`");
|
|
3929
3933
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -3947,7 +3951,7 @@ var Fr = tt, En = tn(), Ss = Rr, je = We, Rn = Fr, ws = function(t, n, a) {
|
|
|
3947
3951
|
else if (o || !s && !i && !r)
|
|
3948
3952
|
t[n] = a;
|
|
3949
3953
|
else
|
|
3950
|
-
throw new
|
|
3954
|
+
throw new ws("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3951
3955
|
}, It = tn(), Ir = function() {
|
|
3952
3956
|
return !!It;
|
|
3953
3957
|
};
|
|
@@ -3960,17 +3964,17 @@ Ir.hasArrayLengthDefineBug = function() {
|
|
|
3960
3964
|
return !0;
|
|
3961
3965
|
}
|
|
3962
3966
|
};
|
|
3963
|
-
var
|
|
3967
|
+
var Ns = Ir, Ts = Fe, An = js, Os = Ns(), qn = Fr, Fn = We, Cs = Ts("%Math.floor%"), Ps = function(t, n) {
|
|
3964
3968
|
if (typeof t != "function")
|
|
3965
3969
|
throw new Fn("`fn` is not a function");
|
|
3966
|
-
if (typeof n != "number" || n < 0 || n > 4294967295 ||
|
|
3970
|
+
if (typeof n != "number" || n < 0 || n > 4294967295 || Cs(n) !== n)
|
|
3967
3971
|
throw new Fn("`length` must be a positive 32-bit integer");
|
|
3968
3972
|
var a = arguments.length > 2 && !!arguments[2], s = !0, i = !0;
|
|
3969
3973
|
if ("length" in t && qn) {
|
|
3970
3974
|
var r = qn(t, "length");
|
|
3971
3975
|
r && !r.configurable && (s = !1), r && !r.writable && (i = !1);
|
|
3972
3976
|
}
|
|
3973
|
-
return (s || i || !a) && (
|
|
3977
|
+
return (s || i || !a) && (Os ? An(
|
|
3974
3978
|
/** @type {Parameters<define>[0]} */
|
|
3975
3979
|
t,
|
|
3976
3980
|
"length",
|
|
@@ -3985,7 +3989,7 @@ var js = Ir, Ns = Fe, An = ws, Ts = js(), qn = Fr, Fn = We, Os = Ns("%Math.floor
|
|
|
3985
3989
|
)), t;
|
|
3986
3990
|
};
|
|
3987
3991
|
(function(e) {
|
|
3988
|
-
var t = en, n = Fe, a =
|
|
3992
|
+
var t = en, n = Fe, a = Ps, s = We, i = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), o = n("%Reflect.apply%", !0) || t.call(r, i), l = tn(), c = n("%Math.max%");
|
|
3989
3993
|
e.exports = function(d) {
|
|
3990
3994
|
if (typeof d != "function")
|
|
3991
3995
|
throw new s("a function is required");
|
|
@@ -4001,15 +4005,15 @@ var js = Ir, Ns = Fe, An = ws, Ts = js(), qn = Fr, Fn = We, Os = Ns("%Math.floor
|
|
|
4001
4005
|
};
|
|
4002
4006
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
4003
4007
|
})(qr);
|
|
4004
|
-
var
|
|
4008
|
+
var Es = qr.exports, _r = Fe, Lr = Es, Rs = Lr(_r("String.prototype.indexOf")), As = function(t, n) {
|
|
4005
4009
|
var a = _r(t, !!n);
|
|
4006
|
-
return typeof a == "function" &&
|
|
4010
|
+
return typeof a == "function" && Rs(t, ".prototype.") > -1 ? Lr(a) : a;
|
|
4007
4011
|
};
|
|
4008
|
-
const
|
|
4012
|
+
const qs = {}, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4009
4013
|
__proto__: null,
|
|
4010
|
-
default:
|
|
4011
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4012
|
-
var nn = typeof Map == "function" && Map.prototype, jt = Object.getOwnPropertyDescriptor && nn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ut = nn && jt && typeof jt.get == "function" ? jt.get : null, In = nn && Map.prototype.forEach, rn = typeof Set == "function" && Set.prototype, Nt = Object.getOwnPropertyDescriptor && rn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, dt = rn && Nt && typeof Nt.get == "function" ? Nt.get : null, _n = rn && Set.prototype.forEach,
|
|
4014
|
+
default: qs
|
|
4015
|
+
}, Symbol.toStringTag, { value: "Module" })), Is = /* @__PURE__ */ Ba(Fs);
|
|
4016
|
+
var nn = typeof Map == "function" && Map.prototype, jt = Object.getOwnPropertyDescriptor && nn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ut = nn && jt && typeof jt.get == "function" ? jt.get : null, In = nn && Map.prototype.forEach, rn = typeof Set == "function" && Set.prototype, Nt = Object.getOwnPropertyDescriptor && rn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, dt = rn && Nt && typeof Nt.get == "function" ? Nt.get : null, _n = rn && Set.prototype.forEach, _s = typeof WeakMap == "function" && WeakMap.prototype, Ue = _s ? WeakMap.prototype.has : null, Ls = typeof WeakSet == "function" && WeakSet.prototype, He = Ls ? WeakSet.prototype.has : null, Us = typeof WeakRef == "function" && WeakRef.prototype, Ln = Us ? WeakRef.prototype.deref : null, Hs = Boolean.prototype.valueOf, Ms = Object.prototype.toString, Bs = Function.prototype.toString, Vs = String.prototype.match, an = String.prototype.slice, ye = String.prototype.replace, zs = String.prototype.toUpperCase, Un = String.prototype.toLowerCase, Ur = RegExp.prototype.test, Hn = Array.prototype.concat, ce = Array.prototype.join, Js = Array.prototype.slice, Mn = Math.floor, _t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Tt = Object.getOwnPropertySymbols, Lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ae = typeof Symbol == "function" && typeof Symbol.iterator == "object", Y = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ae || !0) ? Symbol.toStringTag : null, Hr = Object.prototype.propertyIsEnumerable, Bn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4013
4017
|
return e.__proto__;
|
|
4014
4018
|
} : null);
|
|
4015
4019
|
function Vn(e, t) {
|
|
@@ -4025,7 +4029,7 @@ function Vn(e, t) {
|
|
|
4025
4029
|
}
|
|
4026
4030
|
return ye.call(t, n, "$&_");
|
|
4027
4031
|
}
|
|
4028
|
-
var Ut =
|
|
4032
|
+
var Ut = Is, zn = Ut.custom, Jn = Br(zn) ? zn : null, Ws = function e(t, n, a, s) {
|
|
4029
4033
|
var i = n || {};
|
|
4030
4034
|
if (he(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
|
|
4031
4035
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4060,13 +4064,13 @@ var Ut = Fs, zn = Ut.custom, Jn = Br(zn) ? zn : null, Js = function e(t, n, a, s
|
|
|
4060
4064
|
var u = typeof i.depth > "u" ? 5 : i.depth;
|
|
4061
4065
|
if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
|
|
4062
4066
|
return Ht(t) ? "[Array]" : "[Object]";
|
|
4063
|
-
var p =
|
|
4067
|
+
var p = ul(i, a);
|
|
4064
4068
|
if (typeof s > "u")
|
|
4065
4069
|
s = [];
|
|
4066
4070
|
else if (Vr(s, t) >= 0)
|
|
4067
4071
|
return "[Circular]";
|
|
4068
4072
|
function d(I, M, X) {
|
|
4069
|
-
if (M && (s =
|
|
4073
|
+
if (M && (s = Js.call(s), s.push(M)), X) {
|
|
4070
4074
|
var ee = {
|
|
4071
4075
|
depth: i.depth
|
|
4072
4076
|
};
|
|
@@ -4075,25 +4079,25 @@ var Ut = Fs, zn = Ut.custom, Jn = Br(zn) ? zn : null, Js = function e(t, n, a, s
|
|
|
4075
4079
|
return e(I, i, a + 1, s);
|
|
4076
4080
|
}
|
|
4077
4081
|
if (typeof t == "function" && !Wn(t)) {
|
|
4078
|
-
var m =
|
|
4082
|
+
var m = tl(t), h = Ke(t, d);
|
|
4079
4083
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ce.call(h, ", ") + " }" : "");
|
|
4080
4084
|
}
|
|
4081
4085
|
if (Br(t)) {
|
|
4082
4086
|
var y = Ae ? ye.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Lt.call(t);
|
|
4083
4087
|
return typeof t == "object" && !Ae ? _e(y) : y;
|
|
4084
4088
|
}
|
|
4085
|
-
if (
|
|
4089
|
+
if (sl(t)) {
|
|
4086
4090
|
for (var v = "<" + Un.call(String(t.nodeName)), b = t.attributes || [], g = 0; g < b.length; g++)
|
|
4087
|
-
v += " " + b[g].name + "=" + Mr(
|
|
4091
|
+
v += " " + b[g].name + "=" + Mr(Gs(b[g].value), "double", i);
|
|
4088
4092
|
return v += ">", t.childNodes && t.childNodes.length && (v += "..."), v += "</" + Un.call(String(t.nodeName)) + ">", v;
|
|
4089
4093
|
}
|
|
4090
4094
|
if (Ht(t)) {
|
|
4091
4095
|
if (t.length === 0)
|
|
4092
4096
|
return "[]";
|
|
4093
4097
|
var x = Ke(t, d);
|
|
4094
|
-
return p && !
|
|
4098
|
+
return p && !cl(x) ? "[" + Mt(x, p) + "]" : "[ " + ce.call(x, ", ") + " ]";
|
|
4095
4099
|
}
|
|
4096
|
-
if (
|
|
4100
|
+
if (Ks(t)) {
|
|
4097
4101
|
var w = Ke(t, d);
|
|
4098
4102
|
return !("cause" in Error.prototype) && "cause" in t && !Hr.call(t, "cause") ? "{ [" + String(t) + "] " + ce.call(Hn.call("[cause]: " + d(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ce.call(w, ", ") + " }";
|
|
4099
4103
|
}
|
|
@@ -4103,37 +4107,37 @@ var Ut = Fs, zn = Ut.custom, Jn = Br(zn) ? zn : null, Js = function e(t, n, a, s
|
|
|
4103
4107
|
if (r !== "symbol" && typeof t.inspect == "function")
|
|
4104
4108
|
return t.inspect();
|
|
4105
4109
|
}
|
|
4106
|
-
if (
|
|
4110
|
+
if (nl(t)) {
|
|
4107
4111
|
var S = [];
|
|
4108
4112
|
return In && In.call(t, function(I, M) {
|
|
4109
4113
|
S.push(d(M, t, !0) + " => " + d(I, t));
|
|
4110
4114
|
}), Gn("Map", ut.call(t), S, p);
|
|
4111
4115
|
}
|
|
4112
|
-
if (
|
|
4116
|
+
if (il(t)) {
|
|
4113
4117
|
var $ = [];
|
|
4114
4118
|
return _n && _n.call(t, function(I) {
|
|
4115
4119
|
$.push(d(I, t));
|
|
4116
4120
|
}), Gn("Set", dt.call(t), $, p);
|
|
4117
4121
|
}
|
|
4118
|
-
if (
|
|
4122
|
+
if (rl(t))
|
|
4119
4123
|
return Ot("WeakMap");
|
|
4120
|
-
if (
|
|
4124
|
+
if (ol(t))
|
|
4121
4125
|
return Ot("WeakSet");
|
|
4122
|
-
if (
|
|
4126
|
+
if (al(t))
|
|
4123
4127
|
return Ot("WeakRef");
|
|
4124
|
-
if (
|
|
4128
|
+
if (Ys(t))
|
|
4125
4129
|
return _e(d(Number(t)));
|
|
4126
|
-
if (
|
|
4130
|
+
if (Zs(t))
|
|
4127
4131
|
return _e(d(_t.call(t)));
|
|
4128
|
-
if (
|
|
4129
|
-
return _e(
|
|
4130
|
-
if (
|
|
4132
|
+
if (Xs(t))
|
|
4133
|
+
return _e(Hs.call(t));
|
|
4134
|
+
if (Qs(t))
|
|
4131
4135
|
return _e(d(String(t)));
|
|
4132
4136
|
if (typeof window < "u" && t === window)
|
|
4133
4137
|
return "{ [object Window] }";
|
|
4134
4138
|
if (typeof globalThis < "u" && t === globalThis || typeof Le < "u" && t === Le)
|
|
4135
4139
|
return "{ [object globalThis] }";
|
|
4136
|
-
if (!
|
|
4140
|
+
if (!Ds(t) && !Wn(t)) {
|
|
4137
4141
|
var O = Ke(t, d), C = Bn ? Bn(t) === Object.prototype : t instanceof Object || t.constructor === Object, E = t instanceof Object ? "" : "null prototype", F = !C && Y && Object(t) === t && Y in t ? an.call(ge(t), 8, -1) : E ? "Object" : "", J = C || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", R = J + (F || E ? "[" + ce.call(Hn.call([], F || [], E || []), ": ") + "] " : "");
|
|
4138
4142
|
return O.length === 0 ? R + "{}" : p ? R + "{" + Mt(O, p) + "}" : R + "{ " + ce.call(O, ", ") + " }";
|
|
4139
4143
|
}
|
|
@@ -4143,28 +4147,28 @@ function Mr(e, t, n) {
|
|
|
4143
4147
|
var a = (n.quoteStyle || t) === "double" ? '"' : "'";
|
|
4144
4148
|
return a + e + a;
|
|
4145
4149
|
}
|
|
4146
|
-
function
|
|
4150
|
+
function Gs(e) {
|
|
4147
4151
|
return ye.call(String(e), /"/g, """);
|
|
4148
4152
|
}
|
|
4149
4153
|
function Ht(e) {
|
|
4150
4154
|
return ge(e) === "[object Array]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4151
4155
|
}
|
|
4152
|
-
function
|
|
4156
|
+
function Ds(e) {
|
|
4153
4157
|
return ge(e) === "[object Date]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4154
4158
|
}
|
|
4155
4159
|
function Wn(e) {
|
|
4156
4160
|
return ge(e) === "[object RegExp]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4157
4161
|
}
|
|
4158
|
-
function
|
|
4162
|
+
function Ks(e) {
|
|
4159
4163
|
return ge(e) === "[object Error]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4160
4164
|
}
|
|
4161
|
-
function
|
|
4165
|
+
function Qs(e) {
|
|
4162
4166
|
return ge(e) === "[object String]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4163
4167
|
}
|
|
4164
|
-
function
|
|
4168
|
+
function Ys(e) {
|
|
4165
4169
|
return ge(e) === "[object Number]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4166
4170
|
}
|
|
4167
|
-
function
|
|
4171
|
+
function Xs(e) {
|
|
4168
4172
|
return ge(e) === "[object Boolean]" && (!Y || !(typeof e == "object" && Y in e));
|
|
4169
4173
|
}
|
|
4170
4174
|
function Br(e) {
|
|
@@ -4180,7 +4184,7 @@ function Br(e) {
|
|
|
4180
4184
|
}
|
|
4181
4185
|
return !1;
|
|
4182
4186
|
}
|
|
4183
|
-
function
|
|
4187
|
+
function Zs(e) {
|
|
4184
4188
|
if (!e || typeof e != "object" || !_t)
|
|
4185
4189
|
return !1;
|
|
4186
4190
|
try {
|
|
@@ -4189,19 +4193,19 @@ function Xs(e) {
|
|
|
4189
4193
|
}
|
|
4190
4194
|
return !1;
|
|
4191
4195
|
}
|
|
4192
|
-
var
|
|
4196
|
+
var el = Object.prototype.hasOwnProperty || function(e) {
|
|
4193
4197
|
return e in this;
|
|
4194
4198
|
};
|
|
4195
4199
|
function he(e, t) {
|
|
4196
|
-
return
|
|
4200
|
+
return el.call(e, t);
|
|
4197
4201
|
}
|
|
4198
4202
|
function ge(e) {
|
|
4199
|
-
return
|
|
4203
|
+
return Ms.call(e);
|
|
4200
4204
|
}
|
|
4201
|
-
function
|
|
4205
|
+
function tl(e) {
|
|
4202
4206
|
if (e.name)
|
|
4203
4207
|
return e.name;
|
|
4204
|
-
var t =
|
|
4208
|
+
var t = Vs.call(Bs.call(e), /^function\s*([\w$]+)/);
|
|
4205
4209
|
return t ? t[1] : null;
|
|
4206
4210
|
}
|
|
4207
4211
|
function Vr(e, t) {
|
|
@@ -4212,7 +4216,7 @@ function Vr(e, t) {
|
|
|
4212
4216
|
return n;
|
|
4213
4217
|
return -1;
|
|
4214
4218
|
}
|
|
4215
|
-
function
|
|
4219
|
+
function nl(e) {
|
|
4216
4220
|
if (!ut || !e || typeof e != "object")
|
|
4217
4221
|
return !1;
|
|
4218
4222
|
try {
|
|
@@ -4227,7 +4231,7 @@ function tl(e) {
|
|
|
4227
4231
|
}
|
|
4228
4232
|
return !1;
|
|
4229
4233
|
}
|
|
4230
|
-
function
|
|
4234
|
+
function rl(e) {
|
|
4231
4235
|
if (!Ue || !e || typeof e != "object")
|
|
4232
4236
|
return !1;
|
|
4233
4237
|
try {
|
|
@@ -4242,7 +4246,7 @@ function nl(e) {
|
|
|
4242
4246
|
}
|
|
4243
4247
|
return !1;
|
|
4244
4248
|
}
|
|
4245
|
-
function
|
|
4249
|
+
function al(e) {
|
|
4246
4250
|
if (!Ln || !e || typeof e != "object")
|
|
4247
4251
|
return !1;
|
|
4248
4252
|
try {
|
|
@@ -4251,7 +4255,7 @@ function rl(e) {
|
|
|
4251
4255
|
}
|
|
4252
4256
|
return !1;
|
|
4253
4257
|
}
|
|
4254
|
-
function
|
|
4258
|
+
function il(e) {
|
|
4255
4259
|
if (!dt || !e || typeof e != "object")
|
|
4256
4260
|
return !1;
|
|
4257
4261
|
try {
|
|
@@ -4266,7 +4270,7 @@ function al(e) {
|
|
|
4266
4270
|
}
|
|
4267
4271
|
return !1;
|
|
4268
4272
|
}
|
|
4269
|
-
function
|
|
4273
|
+
function ol(e) {
|
|
4270
4274
|
if (!He || !e || typeof e != "object")
|
|
4271
4275
|
return !1;
|
|
4272
4276
|
try {
|
|
@@ -4281,7 +4285,7 @@ function il(e) {
|
|
|
4281
4285
|
}
|
|
4282
4286
|
return !1;
|
|
4283
4287
|
}
|
|
4284
|
-
function
|
|
4288
|
+
function sl(e) {
|
|
4285
4289
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
4286
4290
|
}
|
|
4287
4291
|
function zr(e, t) {
|
|
@@ -4289,10 +4293,10 @@ function zr(e, t) {
|
|
|
4289
4293
|
var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4290
4294
|
return zr(an.call(e, 0, t.maxStringLength), t) + a;
|
|
4291
4295
|
}
|
|
4292
|
-
var s = ye.call(ye.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
4296
|
+
var s = ye.call(ye.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, ll);
|
|
4293
4297
|
return Mr(s, "single", t);
|
|
4294
4298
|
}
|
|
4295
|
-
function
|
|
4299
|
+
function ll(e) {
|
|
4296
4300
|
var t = e.charCodeAt(0), n = {
|
|
4297
4301
|
8: "b",
|
|
4298
4302
|
9: "t",
|
|
@@ -4300,7 +4304,7 @@ function sl(e) {
|
|
|
4300
4304
|
12: "f",
|
|
4301
4305
|
13: "r"
|
|
4302
4306
|
}[t];
|
|
4303
|
-
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") +
|
|
4307
|
+
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + zs.call(t.toString(16));
|
|
4304
4308
|
}
|
|
4305
4309
|
function _e(e) {
|
|
4306
4310
|
return "Object(" + e + ")";
|
|
@@ -4312,14 +4316,14 @@ function Gn(e, t, n, a) {
|
|
|
4312
4316
|
var s = a ? Mt(n, a) : ce.call(n, ", ");
|
|
4313
4317
|
return e + " (" + t + ") {" + s + "}";
|
|
4314
4318
|
}
|
|
4315
|
-
function
|
|
4319
|
+
function cl(e) {
|
|
4316
4320
|
for (var t = 0; t < e.length; t++)
|
|
4317
4321
|
if (Vr(e[t], `
|
|
4318
4322
|
`) >= 0)
|
|
4319
4323
|
return !1;
|
|
4320
4324
|
return !0;
|
|
4321
4325
|
}
|
|
4322
|
-
function
|
|
4326
|
+
function ul(e, t) {
|
|
4323
4327
|
var n;
|
|
4324
4328
|
if (e.indent === " ")
|
|
4325
4329
|
n = " ";
|
|
@@ -4360,15 +4364,15 @@ function Ke(e, t) {
|
|
|
4360
4364
|
Hr.call(e, i[c]) && a.push("[" + t(i[c]) + "]: " + t(e[i[c]], e));
|
|
4361
4365
|
return a;
|
|
4362
4366
|
}
|
|
4363
|
-
var Jr = Fe, Ie =
|
|
4367
|
+
var Jr = Fe, Ie = As, dl = Ws, fl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%", !0), pl = Ie("WeakMap.prototype.get", !0), ml = Ie("WeakMap.prototype.set", !0), hl = Ie("WeakMap.prototype.has", !0), yl = Ie("Map.prototype.get", !0), gl = Ie("Map.prototype.set", !0), vl = Ie("Map.prototype.has", !0), on = function(e, t) {
|
|
4364
4368
|
for (var n = e, a; (a = n.next) !== null; n = a)
|
|
4365
4369
|
if (a.key === t)
|
|
4366
4370
|
return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
4367
4371
|
e.next, e.next = a, a;
|
|
4368
|
-
},
|
|
4372
|
+
}, bl = function(e, t) {
|
|
4369
4373
|
var n = on(e, t);
|
|
4370
4374
|
return n && n.value;
|
|
4371
|
-
},
|
|
4375
|
+
}, xl = function(e, t, n) {
|
|
4372
4376
|
var a = on(e, t);
|
|
4373
4377
|
a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
4374
4378
|
{
|
|
@@ -4377,48 +4381,48 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4377
4381
|
next: e.next,
|
|
4378
4382
|
value: n
|
|
4379
4383
|
};
|
|
4380
|
-
},
|
|
4384
|
+
}, $l = function(e, t) {
|
|
4381
4385
|
return !!on(e, t);
|
|
4382
|
-
},
|
|
4386
|
+
}, kl = function() {
|
|
4383
4387
|
var t, n, a, s = {
|
|
4384
4388
|
assert: function(i) {
|
|
4385
4389
|
if (!s.has(i))
|
|
4386
|
-
throw new
|
|
4390
|
+
throw new fl("Side channel does not contain " + dl(i));
|
|
4387
4391
|
},
|
|
4388
4392
|
get: function(i) {
|
|
4389
4393
|
if (Qe && i && (typeof i == "object" || typeof i == "function")) {
|
|
4390
4394
|
if (t)
|
|
4391
|
-
return
|
|
4395
|
+
return pl(t, i);
|
|
4392
4396
|
} else if (Ye) {
|
|
4393
4397
|
if (n)
|
|
4394
|
-
return
|
|
4398
|
+
return yl(n, i);
|
|
4395
4399
|
} else if (a)
|
|
4396
|
-
return
|
|
4400
|
+
return bl(a, i);
|
|
4397
4401
|
},
|
|
4398
4402
|
has: function(i) {
|
|
4399
4403
|
if (Qe && i && (typeof i == "object" || typeof i == "function")) {
|
|
4400
4404
|
if (t)
|
|
4401
|
-
return
|
|
4405
|
+
return hl(t, i);
|
|
4402
4406
|
} else if (Ye) {
|
|
4403
4407
|
if (n)
|
|
4404
|
-
return
|
|
4408
|
+
return vl(n, i);
|
|
4405
4409
|
} else if (a)
|
|
4406
|
-
return
|
|
4410
|
+
return $l(a, i);
|
|
4407
4411
|
return !1;
|
|
4408
4412
|
},
|
|
4409
4413
|
set: function(i, r) {
|
|
4410
|
-
Qe && i && (typeof i == "object" || typeof i == "function") ? (t || (t = new Qe()),
|
|
4414
|
+
Qe && i && (typeof i == "object" || typeof i == "function") ? (t || (t = new Qe()), ml(t, i, r)) : Ye ? (n || (n = new Ye()), gl(n, i, r)) : (a || (a = { key: {}, next: null }), xl(a, i, r));
|
|
4411
4415
|
}
|
|
4412
4416
|
};
|
|
4413
4417
|
return s;
|
|
4414
|
-
},
|
|
4418
|
+
}, Sl = String.prototype.replace, wl = /%20/g, Ct = {
|
|
4415
4419
|
RFC1738: "RFC1738",
|
|
4416
4420
|
RFC3986: "RFC3986"
|
|
4417
4421
|
}, sn = {
|
|
4418
4422
|
default: Ct.RFC3986,
|
|
4419
4423
|
formatters: {
|
|
4420
4424
|
RFC1738: function(e) {
|
|
4421
|
-
return
|
|
4425
|
+
return Sl.call(e, wl, "+");
|
|
4422
4426
|
},
|
|
4423
4427
|
RFC3986: function(e) {
|
|
4424
4428
|
return String(e);
|
|
@@ -4426,11 +4430,11 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4426
4430
|
},
|
|
4427
4431
|
RFC1738: Ct.RFC1738,
|
|
4428
4432
|
RFC3986: Ct.RFC3986
|
|
4429
|
-
},
|
|
4433
|
+
}, jl = sn, Pt = Object.prototype.hasOwnProperty, be = Array.isArray, se = function() {
|
|
4430
4434
|
for (var e = [], t = 0; t < 256; ++t)
|
|
4431
4435
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
4432
4436
|
return e;
|
|
4433
|
-
}(),
|
|
4437
|
+
}(), Nl = function(t) {
|
|
4434
4438
|
for (; t.length > 1; ) {
|
|
4435
4439
|
var n = t.pop(), a = n.obj[n.prop];
|
|
4436
4440
|
if (be(a)) {
|
|
@@ -4443,7 +4447,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4443
4447
|
for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
4444
4448
|
typeof t[s] < "u" && (a[s] = t[s]);
|
|
4445
4449
|
return a;
|
|
4446
|
-
},
|
|
4450
|
+
}, Tl = function e(t, n, a) {
|
|
4447
4451
|
if (!n)
|
|
4448
4452
|
return t;
|
|
4449
4453
|
if (typeof n != "object") {
|
|
@@ -4468,11 +4472,11 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4468
4472
|
var o = n[r];
|
|
4469
4473
|
return Pt.call(i, r) ? i[r] = e(i[r], o, a) : i[r] = o, i;
|
|
4470
4474
|
}, s);
|
|
4471
|
-
},
|
|
4475
|
+
}, Ol = function(t, n) {
|
|
4472
4476
|
return Object.keys(n).reduce(function(a, s) {
|
|
4473
4477
|
return a[s] = n[s], a;
|
|
4474
4478
|
}, t);
|
|
4475
|
-
},
|
|
4479
|
+
}, Cl = function(e, t, n) {
|
|
4476
4480
|
var a = e.replace(/\+/g, " ");
|
|
4477
4481
|
if (n === "iso-8859-1")
|
|
4478
4482
|
return a.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -4481,7 +4485,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4481
4485
|
} catch {
|
|
4482
4486
|
return a;
|
|
4483
4487
|
}
|
|
4484
|
-
}, Et = 1024,
|
|
4488
|
+
}, Et = 1024, Pl = function(t, n, a, s, i) {
|
|
4485
4489
|
if (t.length === 0)
|
|
4486
4490
|
return t;
|
|
4487
4491
|
var r = t;
|
|
@@ -4492,7 +4496,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4492
4496
|
for (var o = "", l = 0; l < r.length; l += Et) {
|
|
4493
4497
|
for (var c = r.length >= Et ? r.slice(l, l + Et) : r, u = [], p = 0; p < c.length; ++p) {
|
|
4494
4498
|
var d = c.charCodeAt(p);
|
|
4495
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i ===
|
|
4499
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || i === jl.RFC1738 && (d === 40 || d === 41)) {
|
|
4496
4500
|
u[u.length] = c.charAt(p);
|
|
4497
4501
|
continue;
|
|
4498
4502
|
}
|
|
@@ -4513,20 +4517,20 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4513
4517
|
o += u.join("");
|
|
4514
4518
|
}
|
|
4515
4519
|
return o;
|
|
4516
|
-
},
|
|
4520
|
+
}, El = function(t) {
|
|
4517
4521
|
for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
|
|
4518
4522
|
for (var i = n[s], r = i.obj[i.prop], o = Object.keys(r), l = 0; l < o.length; ++l) {
|
|
4519
4523
|
var c = o[l], u = r[c];
|
|
4520
4524
|
typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
|
|
4521
4525
|
}
|
|
4522
|
-
return
|
|
4523
|
-
}, El = function(t) {
|
|
4524
|
-
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4526
|
+
return Nl(n), t;
|
|
4525
4527
|
}, Rl = function(t) {
|
|
4528
|
+
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4529
|
+
}, Al = function(t) {
|
|
4526
4530
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
4527
|
-
}, Al = function(t, n) {
|
|
4528
|
-
return [].concat(t, n);
|
|
4529
4531
|
}, ql = function(t, n) {
|
|
4532
|
+
return [].concat(t, n);
|
|
4533
|
+
}, Fl = function(t, n) {
|
|
4530
4534
|
if (be(t)) {
|
|
4531
4535
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
4532
4536
|
a.push(n(t[s]));
|
|
@@ -4535,16 +4539,16 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4535
4539
|
return n(t);
|
|
4536
4540
|
}, Gr = {
|
|
4537
4541
|
arrayToObject: Wr,
|
|
4538
|
-
assign:
|
|
4539
|
-
combine:
|
|
4540
|
-
compact:
|
|
4541
|
-
decode:
|
|
4542
|
-
encode:
|
|
4543
|
-
isBuffer:
|
|
4544
|
-
isRegExp:
|
|
4545
|
-
maybeMap:
|
|
4546
|
-
merge:
|
|
4547
|
-
}, Dr =
|
|
4542
|
+
assign: Ol,
|
|
4543
|
+
combine: ql,
|
|
4544
|
+
compact: El,
|
|
4545
|
+
decode: Cl,
|
|
4546
|
+
encode: Pl,
|
|
4547
|
+
isBuffer: Al,
|
|
4548
|
+
isRegExp: Rl,
|
|
4549
|
+
maybeMap: Fl,
|
|
4550
|
+
merge: Tl
|
|
4551
|
+
}, Dr = kl, nt = Gr, Me = sn, Il = Object.prototype.hasOwnProperty, Kr = {
|
|
4548
4552
|
brackets: function(t) {
|
|
4549
4553
|
return t + "[]";
|
|
4550
4554
|
},
|
|
@@ -4555,9 +4559,9 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4555
4559
|
repeat: function(t) {
|
|
4556
4560
|
return t;
|
|
4557
4561
|
}
|
|
4558
|
-
}, le = Array.isArray,
|
|
4559
|
-
|
|
4560
|
-
},
|
|
4562
|
+
}, le = Array.isArray, _l = Array.prototype.push, Qr = function(e, t) {
|
|
4563
|
+
_l.apply(e, le(t) ? t : [t]);
|
|
4564
|
+
}, Ll = Date.prototype.toISOString, Dn = Me.default, B = {
|
|
4561
4565
|
addQueryPrefix: !1,
|
|
4562
4566
|
allowDots: !1,
|
|
4563
4567
|
allowEmptyArrays: !1,
|
|
@@ -4574,13 +4578,13 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4574
4578
|
// deprecated
|
|
4575
4579
|
indices: !1,
|
|
4576
4580
|
serializeDate: function(t) {
|
|
4577
|
-
return
|
|
4581
|
+
return Ll.call(t);
|
|
4578
4582
|
},
|
|
4579
4583
|
skipNulls: !1,
|
|
4580
4584
|
strictNullHandling: !1
|
|
4581
|
-
},
|
|
4585
|
+
}, Ul = function(t) {
|
|
4582
4586
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
4583
|
-
}, Rt = {},
|
|
4587
|
+
}, Rt = {}, Hl = function e(t, n, a, s, i, r, o, l, c, u, p, d, m, h, y, v, b, g) {
|
|
4584
4588
|
for (var x = t, w = g, S = 0, $ = !1; (w = w.get(Rt)) !== void 0 && !$; ) {
|
|
4585
4589
|
var O = w.get(t);
|
|
4586
4590
|
if (S += 1, typeof O < "u") {
|
|
@@ -4597,7 +4601,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4597
4601
|
return c && !v ? c(n, B.encoder, b, "key", h) : n;
|
|
4598
4602
|
x = "";
|
|
4599
4603
|
}
|
|
4600
|
-
if (
|
|
4604
|
+
if (Ul(x) || nt.isBuffer(x)) {
|
|
4601
4605
|
if (c) {
|
|
4602
4606
|
var C = v ? n : c(n, B.encoder, b, "key", h);
|
|
4603
4607
|
return [y(C) + "=" + y(c(x, B.encoder, b, "value", h))];
|
|
@@ -4648,7 +4652,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4648
4652
|
}
|
|
4649
4653
|
}
|
|
4650
4654
|
return E;
|
|
4651
|
-
},
|
|
4655
|
+
}, Ml = function(t) {
|
|
4652
4656
|
if (!t)
|
|
4653
4657
|
return B;
|
|
4654
4658
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -4662,7 +4666,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4662
4666
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4663
4667
|
var a = Me.default;
|
|
4664
4668
|
if (typeof t.format < "u") {
|
|
4665
|
-
if (!
|
|
4669
|
+
if (!Il.call(Me.formatters, t.format))
|
|
4666
4670
|
throw new TypeError("Unknown format option provided.");
|
|
4667
4671
|
a = t.format;
|
|
4668
4672
|
}
|
|
@@ -4693,8 +4697,8 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4693
4697
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
4694
4698
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
|
|
4695
4699
|
};
|
|
4696
|
-
},
|
|
4697
|
-
var n = e, a =
|
|
4700
|
+
}, Bl = function(e, t) {
|
|
4701
|
+
var n = e, a = Ml(t), s, i;
|
|
4698
4702
|
typeof a.filter == "function" ? (i = a.filter, n = i("", n)) : le(a.filter) && (i = a.filter, s = i);
|
|
4699
4703
|
var r = [];
|
|
4700
4704
|
if (typeof n != "object" || n === null)
|
|
@@ -4703,7 +4707,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4703
4707
|
s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
|
|
4704
4708
|
for (var c = Dr(), u = 0; u < s.length; ++u) {
|
|
4705
4709
|
var p = s[u];
|
|
4706
|
-
a.skipNulls && n[p] === null || Qr(r,
|
|
4710
|
+
a.skipNulls && n[p] === null || Qr(r, Hl(
|
|
4707
4711
|
n[p],
|
|
4708
4712
|
p,
|
|
4709
4713
|
o,
|
|
@@ -4726,7 +4730,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4726
4730
|
}
|
|
4727
4731
|
var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
|
|
4728
4732
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
|
|
4729
|
-
}, qe = Gr, Bt = Object.prototype.hasOwnProperty,
|
|
4733
|
+
}, qe = Gr, Bt = Object.prototype.hasOwnProperty, Vl = Array.isArray, U = {
|
|
4730
4734
|
allowDots: !1,
|
|
4731
4735
|
allowEmptyArrays: !1,
|
|
4732
4736
|
allowPrototypes: !1,
|
|
@@ -4746,17 +4750,17 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4746
4750
|
parseArrays: !0,
|
|
4747
4751
|
plainObjects: !1,
|
|
4748
4752
|
strictNullHandling: !1
|
|
4749
|
-
},
|
|
4753
|
+
}, zl = function(e) {
|
|
4750
4754
|
return e.replace(/&#(\d+);/g, function(t, n) {
|
|
4751
4755
|
return String.fromCharCode(parseInt(n, 10));
|
|
4752
4756
|
});
|
|
4753
4757
|
}, Yr = function(e, t) {
|
|
4754
4758
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
4755
|
-
},
|
|
4759
|
+
}, Jl = "utf8=%26%2310003%3B", Wl = "utf8=%E2%9C%93", Gl = function(t, n) {
|
|
4756
4760
|
var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, i), o = -1, l, c = n.charset;
|
|
4757
4761
|
if (n.charsetSentinel)
|
|
4758
4762
|
for (l = 0; l < r.length; ++l)
|
|
4759
|
-
r[l].indexOf("utf8=") === 0 && (r[l] ===
|
|
4763
|
+
r[l].indexOf("utf8=") === 0 && (r[l] === Wl ? c = "utf-8" : r[l] === Jl && (c = "iso-8859-1"), o = l, l = r.length);
|
|
4760
4764
|
for (l = 0; l < r.length; ++l)
|
|
4761
4765
|
if (l !== o) {
|
|
4762
4766
|
var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
|
|
@@ -4765,12 +4769,12 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4765
4769
|
function(v) {
|
|
4766
4770
|
return n.decoder(v, U.decoder, c, "value");
|
|
4767
4771
|
}
|
|
4768
|
-
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h =
|
|
4772
|
+
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = zl(h)), u.indexOf("[]=") > -1 && (h = Vl(h) ? [h] : h);
|
|
4769
4773
|
var y = Bt.call(a, m);
|
|
4770
4774
|
y && n.duplicates === "combine" ? a[m] = qe.combine(a[m], h) : (!y || n.duplicates === "last") && (a[m] = h);
|
|
4771
4775
|
}
|
|
4772
4776
|
return a;
|
|
4773
|
-
},
|
|
4777
|
+
}, Dl = function(e, t, n, a) {
|
|
4774
4778
|
for (var s = a ? t : Yr(t, n), i = e.length - 1; i >= 0; --i) {
|
|
4775
4779
|
var r, o = e[i];
|
|
4776
4780
|
if (o === "[]" && n.parseArrays)
|
|
@@ -4783,7 +4787,7 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4783
4787
|
s = r;
|
|
4784
4788
|
}
|
|
4785
4789
|
return s;
|
|
4786
|
-
},
|
|
4790
|
+
}, Kl = function(t, n, a, s) {
|
|
4787
4791
|
if (t) {
|
|
4788
4792
|
var i = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, o = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(i), c = l ? i.slice(0, l.index) : i, u = [];
|
|
4789
4793
|
if (c) {
|
|
@@ -4796,9 +4800,9 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4796
4800
|
return;
|
|
4797
4801
|
u.push(l[1]);
|
|
4798
4802
|
}
|
|
4799
|
-
return l && u.push("[" + i.slice(l.index) + "]"),
|
|
4803
|
+
return l && u.push("[" + i.slice(l.index) + "]"), Dl(u, n, a, s);
|
|
4800
4804
|
}
|
|
4801
|
-
},
|
|
4805
|
+
}, Ql = function(t) {
|
|
4802
4806
|
if (!t)
|
|
4803
4807
|
return U;
|
|
4804
4808
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -4835,24 +4839,24 @@ var Jr = Fe, Ie = Rs, ul = Js, dl = We, Qe = Jr("%WeakMap%", !0), Ye = Jr("%Map%
|
|
|
4835
4839
|
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : U.plainObjects,
|
|
4836
4840
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : U.strictNullHandling
|
|
4837
4841
|
};
|
|
4838
|
-
},
|
|
4839
|
-
var n =
|
|
4842
|
+
}, Yl = function(e, t) {
|
|
4843
|
+
var n = Ql(t);
|
|
4840
4844
|
if (e === "" || e === null || typeof e > "u")
|
|
4841
4845
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
4842
|
-
for (var a = typeof e == "string" ?
|
|
4843
|
-
var o = i[r], l =
|
|
4846
|
+
for (var a = typeof e == "string" ? Gl(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(a), r = 0; r < i.length; ++r) {
|
|
4847
|
+
var o = i[r], l = Kl(o, a[o], n, typeof e == "string");
|
|
4844
4848
|
s = qe.merge(s, l, n);
|
|
4845
4849
|
}
|
|
4846
4850
|
return n.allowSparse === !0 ? s : qe.compact(s);
|
|
4847
|
-
},
|
|
4848
|
-
formats:
|
|
4849
|
-
parse:
|
|
4850
|
-
stringify:
|
|
4851
|
-
},
|
|
4851
|
+
}, Xl = Bl, Zl = Yl, ec = sn, rt = {
|
|
4852
|
+
formats: ec,
|
|
4853
|
+
parse: Zl,
|
|
4854
|
+
stringify: Xl
|
|
4855
|
+
}, tc = _o;
|
|
4852
4856
|
function ie() {
|
|
4853
4857
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
4854
4858
|
}
|
|
4855
|
-
var
|
|
4859
|
+
var nc = /^([a-z0-9.+-]+:)/i, rc = /:[0-9]*$/, ac = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, ic = [
|
|
4856
4860
|
"<",
|
|
4857
4861
|
">",
|
|
4858
4862
|
'"',
|
|
@@ -4862,14 +4866,14 @@ var tc = /^([a-z0-9.+-]+:)/i, nc = /:[0-9]*$/, rc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
4862
4866
|
`
|
|
4863
4867
|
`,
|
|
4864
4868
|
" "
|
|
4865
|
-
],
|
|
4869
|
+
], oc = [
|
|
4866
4870
|
"{",
|
|
4867
4871
|
"}",
|
|
4868
4872
|
"|",
|
|
4869
4873
|
"\\",
|
|
4870
4874
|
"^",
|
|
4871
4875
|
"`"
|
|
4872
|
-
].concat(
|
|
4876
|
+
].concat(ic), Vt = ["'"].concat(oc), Kn = [
|
|
4873
4877
|
"%",
|
|
4874
4878
|
"/",
|
|
4875
4879
|
"?",
|
|
@@ -4879,7 +4883,7 @@ var tc = /^([a-z0-9.+-]+:)/i, nc = /:[0-9]*$/, rc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
4879
4883
|
"/",
|
|
4880
4884
|
"?",
|
|
4881
4885
|
"#"
|
|
4882
|
-
],
|
|
4886
|
+
], sc = 255, Yn = /^[+a-z0-9A-Z_-]{0,63}$/, lc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, cc = {
|
|
4883
4887
|
javascript: !0,
|
|
4884
4888
|
"javascript:": !0
|
|
4885
4889
|
}, zt = {
|
|
@@ -4910,11 +4914,11 @@ ie.prototype.parse = function(e, t, n) {
|
|
|
4910
4914
|
i[0] = i[0].replace(r, "/"), e = i.join(s);
|
|
4911
4915
|
var o = e;
|
|
4912
4916
|
if (o = o.trim(), !n && e.split("#").length === 1) {
|
|
4913
|
-
var l =
|
|
4917
|
+
var l = ac.exec(o);
|
|
4914
4918
|
if (l)
|
|
4915
4919
|
return this.path = o, this.href = o, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Jt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
4916
4920
|
}
|
|
4917
|
-
var c =
|
|
4921
|
+
var c = nc.exec(o);
|
|
4918
4922
|
if (c) {
|
|
4919
4923
|
c = c[0];
|
|
4920
4924
|
var u = c.toLowerCase();
|
|
@@ -4944,17 +4948,17 @@ ie.prototype.parse = function(e, t, n) {
|
|
|
4944
4948
|
for (var S = "", $ = 0, O = w.length; $ < O; $++)
|
|
4945
4949
|
w.charCodeAt($) > 127 ? S += "x" : S += w[$];
|
|
4946
4950
|
if (!S.match(Yn)) {
|
|
4947
|
-
var C = g.slice(0, m), E = g.slice(m + 1), F = w.match(
|
|
4951
|
+
var C = g.slice(0, m), E = g.slice(m + 1), F = w.match(lc);
|
|
4948
4952
|
F && (C.push(F[1]), E.unshift(F[2])), E.length && (o = "/" + E.join(".") + o), this.hostname = C.join(".");
|
|
4949
4953
|
break;
|
|
4950
4954
|
}
|
|
4951
4955
|
}
|
|
4952
4956
|
}
|
|
4953
|
-
this.hostname.length >
|
|
4957
|
+
this.hostname.length > sc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = tc.toASCII(this.hostname));
|
|
4954
4958
|
var J = this.port ? ":" + this.port : "", R = this.hostname || "";
|
|
4955
4959
|
this.host = R + J, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
|
|
4956
4960
|
}
|
|
4957
|
-
if (!
|
|
4961
|
+
if (!cc[u])
|
|
4958
4962
|
for (var m = 0, x = Vt.length; m < x; m++) {
|
|
4959
4963
|
var I = Vt[m];
|
|
4960
4964
|
if (o.indexOf(I) !== -1) {
|
|
@@ -4971,7 +4975,7 @@ ie.prototype.parse = function(e, t, n) {
|
|
|
4971
4975
|
}
|
|
4972
4976
|
return this.href = this.format(), this;
|
|
4973
4977
|
};
|
|
4974
|
-
function
|
|
4978
|
+
function uc(e) {
|
|
4975
4979
|
return typeof e == "string" && (e = ln(e)), e instanceof ie ? e.format() : ie.prototype.format.call(e);
|
|
4976
4980
|
}
|
|
4977
4981
|
ie.prototype.format = function() {
|
|
@@ -5058,15 +5062,15 @@ ie.prototype.resolveObject = function(e) {
|
|
|
5058
5062
|
return v = v || n.host && g.length, v && !F && g.unshift(""), g.length > 0 ? n.pathname = g.join("/") : (n.pathname = null, n.path = null), (n.pathname !== null || n.search !== null) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.auth = e.auth || n.auth, n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
|
|
5059
5063
|
};
|
|
5060
5064
|
ie.prototype.parseHost = function() {
|
|
5061
|
-
var e = this.host, t =
|
|
5065
|
+
var e = this.host, t = rc.exec(e);
|
|
5062
5066
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
5063
5067
|
};
|
|
5064
|
-
var
|
|
5068
|
+
var dc = ln, Xn = uc, fc = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), pc = class {
|
|
5065
5069
|
constructor(e, t = {}) {
|
|
5066
5070
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
5067
5071
|
harIsAlreadyEncoded: !1,
|
|
5068
5072
|
...t
|
|
5069
|
-
}, this.requests = [],
|
|
5073
|
+
}, this.requests = [], fc(e) ? this.entries = e.log.entries : this.entries = [
|
|
5070
5074
|
{
|
|
5071
5075
|
request: e
|
|
5072
5076
|
}
|
|
@@ -5156,7 +5160,7 @@ var uc = ln, Xn = cc, dc = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5156
5160
|
const s = {
|
|
5157
5161
|
...n.allHeaders,
|
|
5158
5162
|
...n.headersObj
|
|
5159
|
-
}, i =
|
|
5163
|
+
}, i = dc(n.url, !0, !0);
|
|
5160
5164
|
n.queryObj = {
|
|
5161
5165
|
...n.queryObj,
|
|
5162
5166
|
...i.query
|
|
@@ -5191,21 +5195,21 @@ var uc = ln, Xn = cc, dc = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5191
5195
|
}
|
|
5192
5196
|
convert(e, t, n) {
|
|
5193
5197
|
this.initCalled || this.init(), !n && t && (n = t);
|
|
5194
|
-
const a =
|
|
5198
|
+
const a = Io[e];
|
|
5195
5199
|
if (!a)
|
|
5196
5200
|
return !1;
|
|
5197
5201
|
const { convert: s } = a.clientsById[t || a.info.default];
|
|
5198
5202
|
return this.requests.map((r) => s(r, n));
|
|
5199
5203
|
}
|
|
5200
5204
|
};
|
|
5201
|
-
const Xr =
|
|
5205
|
+
const Xr = ka(
|
|
5202
5206
|
void 0
|
|
5203
|
-
),
|
|
5204
|
-
const e =
|
|
5207
|
+
), Vc = Xr.Provider, mc = () => {
|
|
5208
|
+
const e = Sa(Xr);
|
|
5205
5209
|
if (!e)
|
|
5206
5210
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
5207
5211
|
return e.config;
|
|
5208
|
-
},
|
|
5212
|
+
}, hc = ({
|
|
5209
5213
|
server: e,
|
|
5210
5214
|
operation: t
|
|
5211
5215
|
}) => {
|
|
@@ -5265,8 +5269,8 @@ const Xr = $a(
|
|
|
5265
5269
|
),
|
|
5266
5270
|
children: e
|
|
5267
5271
|
}
|
|
5268
|
-
),
|
|
5269
|
-
function
|
|
5272
|
+
), yc = (e) => typeof e == "object" && e !== null && !Array.isArray(e), ze = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && yc(e.examples) ? Object.values(e.examples)[0] : gc(e);
|
|
5273
|
+
function gc(e, t) {
|
|
5270
5274
|
const n = Object.entries(e.properties ?? {}).concat(
|
|
5271
5275
|
Object.entries(e.additionalProperties ?? {})
|
|
5272
5276
|
);
|
|
@@ -5281,7 +5285,7 @@ function yc(e, t) {
|
|
|
5281
5285
|
return a !== void 0 ? [a] : [];
|
|
5282
5286
|
}
|
|
5283
5287
|
}
|
|
5284
|
-
const
|
|
5288
|
+
const vc = ({ content: e }) => {
|
|
5285
5289
|
var t;
|
|
5286
5290
|
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(cn, { children: [
|
|
5287
5291
|
/* @__PURE__ */ f.jsx(un, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
@@ -5300,7 +5304,7 @@ const gc = ({ content: e }) => {
|
|
|
5300
5304
|
}
|
|
5301
5305
|
) })
|
|
5302
5306
|
] }) }) : null;
|
|
5303
|
-
},
|
|
5307
|
+
}, bc = ({
|
|
5304
5308
|
responses: e,
|
|
5305
5309
|
selectedResponse: t,
|
|
5306
5310
|
onSelectResponse: n
|
|
@@ -5348,7 +5352,7 @@ const gc = ({ content: e }) => {
|
|
|
5348
5352
|
]
|
|
5349
5353
|
}
|
|
5350
5354
|
) });
|
|
5351
|
-
},
|
|
5355
|
+
}, xc = (e, t) => {
|
|
5352
5356
|
let n;
|
|
5353
5357
|
switch (t) {
|
|
5354
5358
|
case "shell":
|
|
@@ -5398,7 +5402,7 @@ const gc = ({ content: e }) => {
|
|
|
5398
5402
|
}
|
|
5399
5403
|
}
|
|
5400
5404
|
`
|
|
5401
|
-
),
|
|
5405
|
+
), $c = { suspense: !0 }, kc = {
|
|
5402
5406
|
get: fe.green,
|
|
5403
5407
|
post: fe.blue,
|
|
5404
5408
|
put: fe.yellow,
|
|
@@ -5407,17 +5411,17 @@ const gc = ({ content: e }) => {
|
|
|
5407
5411
|
options: fe.indigo,
|
|
5408
5412
|
head: fe.gray,
|
|
5409
5413
|
trace: fe.gray
|
|
5410
|
-
},
|
|
5414
|
+
}, zc = ({
|
|
5411
5415
|
operation: e,
|
|
5412
5416
|
selectedResponse: t,
|
|
5413
5417
|
onSelectResponse: n
|
|
5414
5418
|
}) => {
|
|
5415
5419
|
var m, h;
|
|
5416
|
-
const a =
|
|
5420
|
+
const a = mc(), [s] = ta({
|
|
5417
5421
|
query: ea,
|
|
5418
5422
|
variables: a,
|
|
5419
|
-
context:
|
|
5420
|
-
}), i =
|
|
5423
|
+
context: $c
|
|
5424
|
+
}), i = kc[e.method.toLocaleLowerCase()] ?? fe.gray, [r, o] = Va(), [, l] = wa(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
|
|
5421
5425
|
const x = y.startsWith("{") && y.endsWith("}") || y.startsWith(":") ? y.replace(/[:{}]/g, "") : void 0;
|
|
5422
5426
|
return (
|
|
5423
5427
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -5435,9 +5439,9 @@ const gc = ({ content: e }) => {
|
|
|
5435
5439
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
5436
5440
|
] }, y + v)
|
|
5437
5441
|
);
|
|
5438
|
-
}), d =
|
|
5442
|
+
}), d = ja(() => {
|
|
5439
5443
|
var b, g;
|
|
5440
|
-
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? ze(u[0].schema) : void 0, v = new
|
|
5444
|
+
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? ze(u[0].schema) : void 0, v = new pc({
|
|
5441
5445
|
method: e.method.toLocaleUpperCase(),
|
|
5442
5446
|
url: (((g = s.data) == null ? void 0 : g.schema.url) ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5443
5447
|
postData: y ? {
|
|
@@ -5451,7 +5455,7 @@ const gc = ({ content: e }) => {
|
|
|
5451
5455
|
headersSize: 0,
|
|
5452
5456
|
bodySize: 0
|
|
5453
5457
|
});
|
|
5454
|
-
return
|
|
5458
|
+
return xc(v, c);
|
|
5455
5459
|
}, [c, e.method, e.path, u]);
|
|
5456
5460
|
return /* @__PURE__ */ f.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5457
5461
|
/* @__PURE__ */ f.jsxs(cn, { children: [
|
|
@@ -5462,7 +5466,7 @@ const gc = ({ content: e }) => {
|
|
|
5462
5466
|
p
|
|
5463
5467
|
] }),
|
|
5464
5468
|
/* @__PURE__ */ f.jsx(
|
|
5465
|
-
|
|
5469
|
+
hc,
|
|
5466
5470
|
{
|
|
5467
5471
|
server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
|
|
5468
5472
|
operation: e
|
|
@@ -5507,9 +5511,9 @@ const gc = ({ content: e }) => {
|
|
|
5507
5511
|
)
|
|
5508
5512
|
] })
|
|
5509
5513
|
] }),
|
|
5510
|
-
u && /* @__PURE__ */ f.jsx(
|
|
5514
|
+
u && /* @__PURE__ */ f.jsx(vc, { content: u }),
|
|
5511
5515
|
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5512
|
-
|
|
5516
|
+
bc,
|
|
5513
5517
|
{
|
|
5514
5518
|
selectedResponse: t,
|
|
5515
5519
|
onSelectResponse: n,
|
|
@@ -5517,7 +5521,7 @@ const gc = ({ content: e }) => {
|
|
|
5517
5521
|
}
|
|
5518
5522
|
)
|
|
5519
5523
|
] });
|
|
5520
|
-
},
|
|
5524
|
+
}, Sc = cr(`
|
|
5521
5525
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
5522
5526
|
schema(input: $input, type: $type) {
|
|
5523
5527
|
tags {
|
|
@@ -5535,10 +5539,10 @@ const gc = ({ content: e }) => {
|
|
|
5535
5539
|
}
|
|
5536
5540
|
}
|
|
5537
5541
|
}
|
|
5538
|
-
`),
|
|
5539
|
-
const e =
|
|
5542
|
+
`), wc = () => {
|
|
5543
|
+
const e = za(), t = e instanceof Error ? /* @__PURE__ */ f.jsx(Je, { code: e.message }) : "An unknown error occurred";
|
|
5540
5544
|
return /* @__PURE__ */ f.jsx(va, { category: "Error", title: "An error occurred", message: t });
|
|
5541
|
-
},
|
|
5545
|
+
}, jc = {
|
|
5542
5546
|
get: "green",
|
|
5543
5547
|
post: "blue",
|
|
5544
5548
|
put: "yellow",
|
|
@@ -5546,8 +5550,8 @@ const gc = ({ content: e }) => {
|
|
|
5546
5550
|
patch: "purple",
|
|
5547
5551
|
options: "gray",
|
|
5548
5552
|
head: "gray"
|
|
5549
|
-
},
|
|
5550
|
-
const t = "/reference", n = e.server ? new na({
|
|
5553
|
+
}, Jc = (e) => {
|
|
5554
|
+
const t = $a(e.navigationId ?? "/reference"), n = e.server ? new na({
|
|
5551
5555
|
url: e.server,
|
|
5552
5556
|
exchanges: [ra, aa]
|
|
5553
5557
|
}) : ua({ useMemoryClient: e.inMemory ?? !1 });
|
|
@@ -5610,9 +5614,9 @@ const gc = ({ content: e }) => {
|
|
|
5610
5614
|
}
|
|
5611
5615
|
}),
|
|
5612
5616
|
getSidebar: async (a) => {
|
|
5613
|
-
if (!
|
|
5617
|
+
if (!Ja({ path: t, end: !1 }, a))
|
|
5614
5618
|
return [];
|
|
5615
|
-
const { data: s } = await n.query(
|
|
5619
|
+
const { data: s } = await n.query(Sc, {
|
|
5616
5620
|
input: e.input,
|
|
5617
5621
|
type: e.type
|
|
5618
5622
|
});
|
|
@@ -5628,7 +5632,7 @@ const gc = ({ content: e }) => {
|
|
|
5628
5632
|
href: `#${o.slug}`,
|
|
5629
5633
|
badge: {
|
|
5630
5634
|
label: o.method,
|
|
5631
|
-
color:
|
|
5635
|
+
color: jc[o.method.toLowerCase()]
|
|
5632
5636
|
}
|
|
5633
5637
|
}))
|
|
5634
5638
|
}));
|
|
@@ -5641,12 +5645,12 @@ const gc = ({ content: e }) => {
|
|
|
5641
5645
|
getRoutes: () => [
|
|
5642
5646
|
{
|
|
5643
5647
|
async lazy() {
|
|
5644
|
-
const { OpenApiRoute: a } = await import("./Route-
|
|
5648
|
+
const { OpenApiRoute: a } = await import("./Route-CX_-Q1HO.js");
|
|
5645
5649
|
return {
|
|
5646
5650
|
element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
|
|
5647
5651
|
};
|
|
5648
5652
|
},
|
|
5649
|
-
errorElement: /* @__PURE__ */ f.jsx(
|
|
5653
|
+
errorElement: /* @__PURE__ */ f.jsx(wc, {}),
|
|
5650
5654
|
children: [
|
|
5651
5655
|
{
|
|
5652
5656
|
path: t,
|
|
@@ -5654,7 +5658,7 @@ const gc = ({ content: e }) => {
|
|
|
5654
5658
|
{
|
|
5655
5659
|
index: !0,
|
|
5656
5660
|
async lazy() {
|
|
5657
|
-
const { OperationList: a } = await import("./OperationList-
|
|
5661
|
+
const { OperationList: a } = await import("./OperationList-BwJXexkA.js");
|
|
5658
5662
|
return { element: /* @__PURE__ */ f.jsx(a, {}) };
|
|
5659
5663
|
}
|
|
5660
5664
|
}
|
|
@@ -5667,8 +5671,8 @@ const gc = ({ content: e }) => {
|
|
|
5667
5671
|
};
|
|
5668
5672
|
export {
|
|
5669
5673
|
Xt as C,
|
|
5670
|
-
|
|
5671
|
-
|
|
5674
|
+
Vc as O,
|
|
5675
|
+
zc as S,
|
|
5672
5676
|
mn as T,
|
|
5673
5677
|
it as a,
|
|
5674
5678
|
pr as b,
|
|
@@ -5678,7 +5682,7 @@ export {
|
|
|
5678
5682
|
Ne as f,
|
|
5679
5683
|
Te as g,
|
|
5680
5684
|
cr as h,
|
|
5681
|
-
|
|
5682
|
-
|
|
5685
|
+
Jc as o,
|
|
5686
|
+
mc as u
|
|
5683
5687
|
};
|
|
5684
|
-
//# sourceMappingURL=index-
|
|
5688
|
+
//# sourceMappingURL=index-BuA1OA5H.js.map
|