zudoku 0.3.1-dev.13 → 0.3.1-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/authentication.d.ts +1 -0
- package/dist/lib/authentication/components/CallbackHandler.d.ts +3 -0
- package/dist/lib/authentication/components/CallbackHandler.js +33 -0
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -0
- package/dist/lib/authentication/providers/openid.d.ts +3 -3
- package/dist/lib/authentication/providers/openid.js +20 -20
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Layout.js +5 -1
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/context/ZudokuProvider.js +1 -3
- package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
- package/dist/lib/core/DevPortalContext.d.ts +1 -4
- package/dist/lib/core/DevPortalContext.js +2 -2
- package/dist/lib/core/DevPortalContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +2 -4
- package/dist/lib/core/plugins.js.map +1 -1
- package/lib/{AuthenticationPlugin-CH5NSVOu.js → AuthenticationPlugin-owbEUimP.js} +3 -3
- package/lib/{AuthenticationPlugin-CH5NSVOu.js.map → AuthenticationPlugin-owbEUimP.js.map} +1 -1
- package/lib/{CategoryHeading-z15xh7Jb.js → CategoryHeading-DnPprxtD.js} +2 -2
- package/lib/{CategoryHeading-z15xh7Jb.js.map → CategoryHeading-DnPprxtD.js.map} +1 -1
- package/lib/{Combination-DTfV-c98.js → Combination-DruV0zX_.js} +3 -3
- package/lib/{Combination-DTfV-c98.js.map → Combination-DruV0zX_.js.map} +1 -1
- package/lib/ErrorPage-PUg985n_.js +18 -0
- package/lib/ErrorPage-PUg985n_.js.map +1 -0
- package/lib/{Input-CzXNm7xb.js → Input-CBfi9Yjc.js} +4 -4
- package/lib/{Input-CzXNm7xb.js.map → Input-CBfi9Yjc.js.map} +1 -1
- package/lib/{Markdown-CEccPMI_.js → Markdown-Chb9VIBv.js} +2 -2
- package/lib/{Markdown-CEccPMI_.js.map → Markdown-Chb9VIBv.js.map} +1 -1
- package/lib/{MdxPage-CnqOoqvp.js → MdxPage-CIBHMwTd.js} +5 -5
- package/lib/{MdxPage-CnqOoqvp.js.map → MdxPage-CIBHMwTd.js.map} +1 -1
- package/lib/{OperationList-CYyaboNz.js → OperationList-BzC9sQKY.js} +23 -22
- package/lib/{OperationList-CYyaboNz.js.map → OperationList-BzC9sQKY.js.map} +1 -1
- package/lib/{Route-C3Jb0axy.js → Route-BGRXEhFQ.js} +3 -3
- package/lib/{Route-C3Jb0axy.js.map → Route-BGRXEhFQ.js.map} +1 -1
- package/lib/{SlotletProvider-ByLSCZQa.js → SlotletProvider-Dq80og6-.js} +4 -4
- package/lib/{SlotletProvider-ByLSCZQa.js.map → SlotletProvider-Dq80og6-.js.map} +1 -1
- package/lib/{Spinner-BT_AYFrA.js → Spinner-BxpiCVtl.js} +3 -3
- package/lib/{Spinner-BT_AYFrA.js.map → Spinner-BxpiCVtl.js.map} +1 -1
- package/lib/{ZudokuContext-BIZ8zHbZ.js → ZudokuContext-BQ45UjcB.js} +2 -2
- package/lib/{ZudokuContext-BIZ8zHbZ.js.map → ZudokuContext-BQ45UjcB.js.map} +1 -1
- package/lib/{index-Dz4LyXZI.js → index-CKQG-w6R.js} +3 -3
- package/lib/{index-Dz4LyXZI.js.map → index-CKQG-w6R.js.map} +1 -1
- package/lib/{index-B1he6g8N.js → index-DHMNxrEi.js} +453 -464
- package/lib/index-DHMNxrEi.js.map +1 -0
- package/lib/{index-7kcHaXD6.js → index-Yjb2PyPF.js} +4 -4
- package/lib/{index-7kcHaXD6.js.map → index-Yjb2PyPF.js.map} +1 -1
- package/lib/{utils-Bh4upQ0e.js → utils-pDHePxa0.js} +3 -3
- package/lib/{utils-Bh4upQ0e.js.map → utils-pDHePxa0.js.map} +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +465 -413
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +274 -277
- package/lib/zudoku.components.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 +1 -1
- package/src/lib/authentication/authentication.ts +1 -0
- package/src/lib/authentication/components/CallbackHandler.tsx +54 -0
- package/src/lib/authentication/providers/openid.tsx +20 -24
- package/src/lib/components/Header.tsx +1 -2
- package/src/lib/components/Layout.tsx +6 -1
- package/src/lib/components/context/ZudokuProvider.tsx +1 -4
- package/src/lib/core/DevPortalContext.ts +2 -7
- package/src/lib/core/plugins.ts +1 -2
- package/lib/index-B1he6g8N.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { j as f } from "./jsx-runtime-B6kdoens.js";
|
|
2
2
|
import { u as Pa, C as Ea, c as Ra, f as Aa } from "./urql-DrBfkb92.js";
|
|
3
|
-
import { v as Fa, w as qa } from "./ZudokuContext-
|
|
3
|
+
import { v as Fa, w as qa } from "./ZudokuContext-BQ45UjcB.js";
|
|
4
4
|
import { createClient as Ia } from "zudoku/openapi-worker";
|
|
5
|
-
import { a as dr, u as Yt, P as me, d as be, R as _a, S as fr, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, o as pr, n as rt, k as Va, B as qe, p as Wa } from "./Combination-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { g as Xt, h as Sn, C as Se, I as mr, i as to, u as no, a as ro, F as ao, S as oo, b as io, c as so, d as lo, f as wn, V as co } from "./Input-CzXNm7xb.js";
|
|
5
|
+
import { a as dr, u as Yt, P as me, d as be, R as _a, S as fr, h as La, e as Ua, F as Ma, D as Ha, q as Ba, m as Da, o as pr, n as rt, k as Va, B as qe, p as Wa } from "./Combination-DruV0zX_.js";
|
|
6
|
+
import { E as za } from "./ErrorPage-PUg985n_.js";
|
|
7
|
+
import { c as Ke, a as A, u as Ja, g as Ga, S as Qe } from "./Markdown-Chb9VIBv.js";
|
|
8
|
+
import { j as Ka } from "./joinPath-B7kNnUX4.js";
|
|
9
|
+
import { g as Xt, h as Sn, C as Se, I as mr, i as Qa, u as Ya, a as Xa, F as Za, S as eo, b as to, c as no, d as ro, f as wn, V as ao } from "./Input-CBfi9Yjc.js";
|
|
11
10
|
import * as j from "react";
|
|
12
|
-
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as
|
|
13
|
-
import { P as gt, c as vr, R as
|
|
14
|
-
import { a as
|
|
15
|
-
import {
|
|
11
|
+
import { useRef as hr, useEffect as yr, useState as gr, Fragment as at, createContext as oo, useContext as io, useTransition as so, useMemo as lo } from "react";
|
|
12
|
+
import { P as gt, c as vr, R as co, I as uo, a as jn, T as pe } from "./Spinner-BxpiCVtl.js";
|
|
13
|
+
import { a as fo, c as ot, g as po } from "./_commonjsHelpers-BVfed4GL.js";
|
|
14
|
+
import { c as mo, g as ho } from "./index-Yjb2PyPF.js";
|
|
15
|
+
import { m as yo } from "./router-BiRCp01d.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.378.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
21
|
*/
|
|
22
|
-
const
|
|
22
|
+
const go = Ke("ChevronsUpDown", [
|
|
23
23
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
24
24
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
25
25
|
]);
|
|
@@ -29,7 +29,7 @@ const xo = Ke("ChevronsUpDown", [
|
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
|
-
const
|
|
32
|
+
const vo = Ke("CirclePlay", [
|
|
33
33
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
34
34
|
["polygon", { points: "10 8 16 12 10 16 10 8", key: "1cimsy" }]
|
|
35
35
|
]);
|
|
@@ -56,7 +56,7 @@ const br = Ke("Eraser", [
|
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
|
-
const
|
|
59
|
+
const bo = Ke("LogIn", [
|
|
60
60
|
["path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4", key: "u53s6r" }],
|
|
61
61
|
["polyline", { points: "10 17 15 12 10 7", key: "1ail0h" }],
|
|
62
62
|
["line", { x1: "15", x2: "3", y1: "12", y2: "12", key: "v6grx8" }]
|
|
@@ -70,7 +70,7 @@ const $o = Ke("LogIn", [
|
|
|
70
70
|
const xr = Ke("X", [
|
|
71
71
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
72
72
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
73
|
-
]),
|
|
73
|
+
]), xo = {
|
|
74
74
|
kind: "Document",
|
|
75
75
|
definitions: [
|
|
76
76
|
{
|
|
@@ -215,7 +215,7 @@ const xr = Ke("X", [
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
]
|
|
218
|
-
},
|
|
218
|
+
}, ko = {
|
|
219
219
|
kind: "Document",
|
|
220
220
|
definitions: [
|
|
221
221
|
{
|
|
@@ -459,7 +459,7 @@ const xr = Ke("X", [
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
]
|
|
462
|
-
},
|
|
462
|
+
}, $o = {
|
|
463
463
|
kind: "Document",
|
|
464
464
|
definitions: [
|
|
465
465
|
{
|
|
@@ -525,7 +525,7 @@ const xr = Ke("X", [
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
]
|
|
528
|
-
},
|
|
528
|
+
}, So = {
|
|
529
529
|
kind: "Document",
|
|
530
530
|
definitions: [
|
|
531
531
|
{
|
|
@@ -641,26 +641,16 @@ const xr = Ke("X", [
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
]
|
|
644
|
-
},
|
|
645
|
-
"\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":
|
|
646
|
-
"\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":
|
|
647
|
-
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n":
|
|
648
|
-
"\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":
|
|
644
|
+
}, wo = {
|
|
645
|
+
"\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": xo,
|
|
646
|
+
"\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": ko,
|
|
647
|
+
"\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n }\n }\n": $o,
|
|
648
|
+
"\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": So
|
|
649
649
|
};
|
|
650
650
|
function kr(e) {
|
|
651
|
-
return
|
|
651
|
+
return wo[e] ?? {};
|
|
652
652
|
}
|
|
653
|
-
|
|
654
|
-
title: e = "An error occurred",
|
|
655
|
-
message: t,
|
|
656
|
-
category: n
|
|
657
|
-
}) => /* @__PURE__ */ f.jsxs("div", { className: Qa + " h-full pt-[--padding-content-top]", children: [
|
|
658
|
-
n && /* @__PURE__ */ f.jsx(Ka, { children: n }),
|
|
659
|
-
e && /* @__PURE__ */ f.jsx(Ya, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
660
|
-
/* @__PURE__ */ f.jsx("p", { children: t }),
|
|
661
|
-
/* @__PURE__ */ f.jsx(za, { to: "/", children: "Go back home" })
|
|
662
|
-
] });
|
|
663
|
-
var Zt = "Dialog", [$r, Ru] = dr(Zt), [Co, ie] = $r(Zt), Sr = (e) => {
|
|
653
|
+
var Zt = "Dialog", [$r, Ou] = dr(Zt), [jo, ie] = $r(Zt), Sr = (e) => {
|
|
664
654
|
const {
|
|
665
655
|
__scopeDialog: t,
|
|
666
656
|
children: n,
|
|
@@ -674,7 +664,7 @@ var Zt = "Dialog", [$r, Ru] = dr(Zt), [Co, ie] = $r(Zt), Sr = (e) => {
|
|
|
674
664
|
onChange: o
|
|
675
665
|
});
|
|
676
666
|
return /* @__PURE__ */ f.jsx(
|
|
677
|
-
|
|
667
|
+
jo,
|
|
678
668
|
{
|
|
679
669
|
scope: t,
|
|
680
670
|
triggerRef: i,
|
|
@@ -710,21 +700,21 @@ var wr = "DialogTrigger", jr = j.forwardRef(
|
|
|
710
700
|
}
|
|
711
701
|
);
|
|
712
702
|
jr.displayName = wr;
|
|
713
|
-
var en = "DialogPortal", [
|
|
703
|
+
var en = "DialogPortal", [No, Nr] = $r(en, {
|
|
714
704
|
forceMount: void 0
|
|
715
705
|
}), Tr = (e) => {
|
|
716
706
|
const { __scopeDialog: t, forceMount: n, children: a, container: s } = e, o = ie(en, t);
|
|
717
|
-
return /* @__PURE__ */ f.jsx(
|
|
707
|
+
return /* @__PURE__ */ f.jsx(No, { scope: t, forceMount: n, children: j.Children.map(a, (r) => /* @__PURE__ */ f.jsx(gt, { present: n || o.open, children: /* @__PURE__ */ f.jsx(Da, { asChild: !0, container: s, children: r }) })) });
|
|
718
708
|
};
|
|
719
709
|
Tr.displayName = en;
|
|
720
710
|
var ut = "DialogOverlay", Or = j.forwardRef(
|
|
721
711
|
(e, t) => {
|
|
722
712
|
const n = Nr(ut, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(ut, e.__scopeDialog);
|
|
723
|
-
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(
|
|
713
|
+
return o.modal ? /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: /* @__PURE__ */ f.jsx(To, { ...s, ref: t }) }) : null;
|
|
724
714
|
}
|
|
725
715
|
);
|
|
726
716
|
Or.displayName = ut;
|
|
727
|
-
var
|
|
717
|
+
var To = j.forwardRef(
|
|
728
718
|
(e, t) => {
|
|
729
719
|
const { __scopeDialog: n, ...a } = e, s = ie(ut, n);
|
|
730
720
|
return (
|
|
@@ -744,11 +734,11 @@ var Eo = j.forwardRef(
|
|
|
744
734
|
), Ne = "DialogContent", Cr = j.forwardRef(
|
|
745
735
|
(e, t) => {
|
|
746
736
|
const n = Nr(Ne, e.__scopeDialog), { forceMount: a = n.forceMount, ...s } = e, o = ie(Ne, e.__scopeDialog);
|
|
747
|
-
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(
|
|
737
|
+
return /* @__PURE__ */ f.jsx(gt, { present: a || o.open, children: o.modal ? /* @__PURE__ */ f.jsx(Oo, { ...s, ref: t }) : /* @__PURE__ */ f.jsx(Co, { ...s, ref: t }) });
|
|
748
738
|
}
|
|
749
739
|
);
|
|
750
740
|
Cr.displayName = Ne;
|
|
751
|
-
var
|
|
741
|
+
var Oo = j.forwardRef(
|
|
752
742
|
(e, t) => {
|
|
753
743
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(null), s = Yt(t, n.contentRef, a);
|
|
754
744
|
return j.useEffect(() => {
|
|
@@ -776,7 +766,7 @@ var Ro = j.forwardRef(
|
|
|
776
766
|
}
|
|
777
767
|
);
|
|
778
768
|
}
|
|
779
|
-
),
|
|
769
|
+
), Co = j.forwardRef(
|
|
780
770
|
(e, t) => {
|
|
781
771
|
const n = ie(Ne, e.__scopeDialog), a = j.useRef(!1), s = j.useRef(!1);
|
|
782
772
|
return /* @__PURE__ */ f.jsx(
|
|
@@ -827,8 +817,8 @@ var Ro = j.forwardRef(
|
|
|
827
817
|
}
|
|
828
818
|
),
|
|
829
819
|
/* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
830
|
-
/* @__PURE__ */ f.jsx(
|
|
831
|
-
/* @__PURE__ */ f.jsx(
|
|
820
|
+
/* @__PURE__ */ f.jsx(Po, { titleId: i.titleId }),
|
|
821
|
+
/* @__PURE__ */ f.jsx(Ro, { contentRef: l, descriptionId: i.descriptionId })
|
|
832
822
|
] })
|
|
833
823
|
] });
|
|
834
824
|
}
|
|
@@ -864,11 +854,11 @@ qr.displayName = Fr;
|
|
|
864
854
|
function nn(e) {
|
|
865
855
|
return e ? "open" : "closed";
|
|
866
856
|
}
|
|
867
|
-
var Ir = "DialogTitleWarning", [
|
|
857
|
+
var Ir = "DialogTitleWarning", [Cu, _r] = Ba(Ir, {
|
|
868
858
|
contentName: Ne,
|
|
869
859
|
titleName: tn,
|
|
870
860
|
docsSlug: "dialog"
|
|
871
|
-
}),
|
|
861
|
+
}), Po = ({ titleId: e }) => {
|
|
872
862
|
const t = _r(Ir), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
873
863
|
|
|
874
864
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -877,15 +867,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
877
867
|
return j.useEffect(() => {
|
|
878
868
|
e && (document.getElementById(e) || console.error(n));
|
|
879
869
|
}, [n, e]), null;
|
|
880
|
-
},
|
|
881
|
-
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(
|
|
870
|
+
}, Eo = "DialogDescriptionWarning", Ro = ({ contentRef: e, descriptionId: t }) => {
|
|
871
|
+
const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_r(Eo).contentName}}.`;
|
|
882
872
|
return j.useEffect(() => {
|
|
883
873
|
var o;
|
|
884
874
|
const s = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
885
875
|
t && s && (document.getElementById(t) || console.warn(a));
|
|
886
876
|
}, [a, e, t]), null;
|
|
887
|
-
},
|
|
888
|
-
const
|
|
877
|
+
}, Ao = Sr, Fo = jr, qo = Tr, Lr = Or, Ur = Cr, Mr = Er, Hr = Ar, Io = qr;
|
|
878
|
+
const _o = Ao, Lo = Fo, Uo = qo, Br = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
889
879
|
Lr,
|
|
890
880
|
{
|
|
891
881
|
ref: n,
|
|
@@ -897,7 +887,7 @@ const Ho = _o, Bo = Lo, Do = Uo, Br = j.forwardRef(({ className: e, ...t }, n) =
|
|
|
897
887
|
}
|
|
898
888
|
));
|
|
899
889
|
Br.displayName = Lr.displayName;
|
|
900
|
-
const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(
|
|
890
|
+
const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__ */ f.jsxs(Uo, { children: [
|
|
901
891
|
/* @__PURE__ */ f.jsx(Br, {}),
|
|
902
892
|
/* @__PURE__ */ f.jsxs(
|
|
903
893
|
Ur,
|
|
@@ -910,7 +900,7 @@ const Dr = j.forwardRef(({ className: e, children: t, ...n }, a) => /* @__PURE__
|
|
|
910
900
|
...n,
|
|
911
901
|
children: [
|
|
912
902
|
t,
|
|
913
|
-
/* @__PURE__ */ f.jsxs(
|
|
903
|
+
/* @__PURE__ */ f.jsxs(Io, { 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: [
|
|
914
904
|
/* @__PURE__ */ f.jsx(xr, { className: "h-4 w-4" }),
|
|
915
905
|
/* @__PURE__ */ f.jsx("span", { className: "sr-only", children: "Close" })
|
|
916
906
|
] })
|
|
@@ -931,7 +921,7 @@ const Vr = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
931
921
|
}
|
|
932
922
|
));
|
|
933
923
|
Vr.displayName = Mr.displayName;
|
|
934
|
-
const
|
|
924
|
+
const Mo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
935
925
|
Hr,
|
|
936
926
|
{
|
|
937
927
|
ref: n,
|
|
@@ -939,7 +929,7 @@ const Vo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
939
929
|
...t
|
|
940
930
|
}
|
|
941
931
|
));
|
|
942
|
-
|
|
932
|
+
Mo.displayName = Hr.displayName;
|
|
943
933
|
const rn = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
944
934
|
"div",
|
|
945
935
|
{
|
|
@@ -952,7 +942,7 @@ const rn = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
952
942
|
}
|
|
953
943
|
));
|
|
954
944
|
rn.displayName = "Card";
|
|
955
|
-
const
|
|
945
|
+
const Ho = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
956
946
|
"div",
|
|
957
947
|
{
|
|
958
948
|
ref: n,
|
|
@@ -960,8 +950,8 @@ const Wo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
960
950
|
...t
|
|
961
951
|
}
|
|
962
952
|
));
|
|
963
|
-
|
|
964
|
-
const
|
|
953
|
+
Ho.displayName = "CardHeader";
|
|
954
|
+
const Bo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
965
955
|
"h3",
|
|
966
956
|
{
|
|
967
957
|
ref: n,
|
|
@@ -969,8 +959,8 @@ const zo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
969
959
|
...t
|
|
970
960
|
}
|
|
971
961
|
));
|
|
972
|
-
|
|
973
|
-
const
|
|
962
|
+
Bo.displayName = "CardTitle";
|
|
963
|
+
const Do = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
974
964
|
"p",
|
|
975
965
|
{
|
|
976
966
|
ref: n,
|
|
@@ -978,10 +968,10 @@ const Jo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
978
968
|
...t
|
|
979
969
|
}
|
|
980
970
|
));
|
|
981
|
-
|
|
982
|
-
const
|
|
983
|
-
|
|
984
|
-
const
|
|
971
|
+
Do.displayName = "CardDescription";
|
|
972
|
+
const Vo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: A("p-6 pt-0", e), ...t }));
|
|
973
|
+
Vo.displayName = "CardContent";
|
|
974
|
+
const Wo = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
985
975
|
"div",
|
|
986
976
|
{
|
|
987
977
|
ref: n,
|
|
@@ -989,10 +979,10 @@ const Ko = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
989
979
|
...t
|
|
990
980
|
}
|
|
991
981
|
));
|
|
992
|
-
|
|
993
|
-
var an = "Tabs", [
|
|
982
|
+
Wo.displayName = "CardFooter";
|
|
983
|
+
var an = "Tabs", [zo, Pu] = dr(an, [
|
|
994
984
|
vr
|
|
995
|
-
]), Wr = vr(), [
|
|
985
|
+
]), Wr = vr(), [Jo, on] = zo(an), zr = j.forwardRef(
|
|
996
986
|
(e, t) => {
|
|
997
987
|
const {
|
|
998
988
|
__scopeTabs: n,
|
|
@@ -1009,7 +999,7 @@ var an = "Tabs", [Qo, Fu] = dr(an, [
|
|
|
1009
999
|
defaultProp: o
|
|
1010
1000
|
});
|
|
1011
1001
|
return /* @__PURE__ */ f.jsx(
|
|
1012
|
-
|
|
1002
|
+
Jo,
|
|
1013
1003
|
{
|
|
1014
1004
|
scope: n,
|
|
1015
1005
|
baseId: rt(),
|
|
@@ -1036,7 +1026,7 @@ var Jr = "TabsList", Gr = j.forwardRef(
|
|
|
1036
1026
|
(e, t) => {
|
|
1037
1027
|
const { __scopeTabs: n, loop: a = !0, ...s } = e, o = on(Jr, n), r = Wr(n);
|
|
1038
1028
|
return /* @__PURE__ */ f.jsx(
|
|
1039
|
-
|
|
1029
|
+
co,
|
|
1040
1030
|
{
|
|
1041
1031
|
asChild: !0,
|
|
1042
1032
|
...r,
|
|
@@ -1061,7 +1051,7 @@ var Kr = "TabsTrigger", Qr = j.forwardRef(
|
|
|
1061
1051
|
(e, t) => {
|
|
1062
1052
|
const { __scopeTabs: n, value: a, disabled: s = !1, ...o } = e, r = on(Kr, n), i = Wr(n), l = Zr(r.baseId, a), c = ea(r.baseId, a), u = a === r.value;
|
|
1063
1053
|
return /* @__PURE__ */ f.jsx(
|
|
1064
|
-
|
|
1054
|
+
uo,
|
|
1065
1055
|
{
|
|
1066
1056
|
asChild: !0,
|
|
1067
1057
|
...i,
|
|
@@ -1168,7 +1158,7 @@ const Pe = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ f.jsx(
|
|
|
1168
1158
|
}
|
|
1169
1159
|
));
|
|
1170
1160
|
Pe.displayName = cn.displayName;
|
|
1171
|
-
const
|
|
1161
|
+
const Go = async (e, t, n = 5e3) => {
|
|
1172
1162
|
const a = new AbortController(), s = a.signal, o = fetch(e, { ...t, signal: s }), r = new Promise((i, l) => {
|
|
1173
1163
|
const c = setTimeout(() => {
|
|
1174
1164
|
a.abort("Request timed out"), l(new Error("Request timed out"));
|
|
@@ -1178,12 +1168,12 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1178
1168
|
return Promise.race([o, r]);
|
|
1179
1169
|
}, kt = (e) => Math.abs(
|
|
1180
1170
|
isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
|
|
1181
|
-
), $t = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${kt(t) + kt(n)}`)) : kt(e),
|
|
1171
|
+
), $t = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, n) => `${kt(t) + kt(n)}`)) : kt(e), Ko = (e, t = {}) => {
|
|
1182
1172
|
const n = (3 * $t(e) + 2 * $t(e) + $t(e)) % 360, { saturation: a = 75, lightness: s = 60 } = t;
|
|
1183
1173
|
return `${n}deg ${a}% ${s}%`;
|
|
1184
|
-
}, St = "data-linked-param",
|
|
1185
|
-
const [t] =
|
|
1186
|
-
return
|
|
1174
|
+
}, St = "data-linked-param", Qo = (e) => {
|
|
1175
|
+
const [t] = Ja();
|
|
1176
|
+
return Ko(
|
|
1187
1177
|
e,
|
|
1188
1178
|
t ? void 0 : { saturation: 85, lightness: 50 }
|
|
1189
1179
|
);
|
|
@@ -1196,7 +1186,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1196
1186
|
children: o,
|
|
1197
1187
|
onClick: r
|
|
1198
1188
|
}) => {
|
|
1199
|
-
const i = hr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u =
|
|
1189
|
+
const i = hr(null), l = e.replace(/[{}]/g, ""), c = s == null ? void 0 : s.replace(/[{}]/g, ""), u = Qo(l), p = `hsl(${u} / ${a})`, d = `hsl(${u} / ${n})`;
|
|
1200
1190
|
return yr(() => {
|
|
1201
1191
|
if (!c || !i.current) return;
|
|
1202
1192
|
const m = () => {
|
|
@@ -1231,7 +1221,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1231
1221
|
]
|
|
1232
1222
|
}
|
|
1233
1223
|
);
|
|
1234
|
-
},
|
|
1224
|
+
}, Yo = (e, t, n) => {
|
|
1235
1225
|
const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
|
|
1236
1226
|
var l;
|
|
1237
1227
|
const r = o.replace(/[:{}]/g, "");
|
|
@@ -1240,7 +1230,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1240
1230
|
return n.queryParams.filter((o) => o.active).forEach((o) => {
|
|
1241
1231
|
s.searchParams.set(o.name, o.value);
|
|
1242
1232
|
}), s;
|
|
1243
|
-
},
|
|
1233
|
+
}, Xo = (e, t) => {
|
|
1244
1234
|
const n = j.forwardRef(({ className: a, asChild: s, ...o }, r) => {
|
|
1245
1235
|
const i = s ? fr : e;
|
|
1246
1236
|
return j.createElement(i, {
|
|
@@ -1250,10 +1240,10 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1250
1240
|
});
|
|
1251
1241
|
});
|
|
1252
1242
|
return n.displayName = `VariantComponent(${e})`, n;
|
|
1253
|
-
}, Lt =
|
|
1243
|
+
}, Lt = Xo(
|
|
1254
1244
|
"input",
|
|
1255
1245
|
"px-2 bg-transparent h-6 font-mono text-xs m-2"
|
|
1256
|
-
),
|
|
1246
|
+
), Zo = ({
|
|
1257
1247
|
control: e,
|
|
1258
1248
|
register: t
|
|
1259
1249
|
}) => {
|
|
@@ -1284,7 +1274,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1284
1274
|
autoComplete: "off"
|
|
1285
1275
|
}
|
|
1286
1276
|
),
|
|
1287
|
-
u && /* @__PURE__ */ f.jsx(
|
|
1277
|
+
u && /* @__PURE__ */ f.jsx(Ga, { size: 16, className: "text-amber-500" })
|
|
1288
1278
|
] }),
|
|
1289
1279
|
/* @__PURE__ */ f.jsx(
|
|
1290
1280
|
Lt,
|
|
@@ -1322,7 +1312,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1322
1312
|
}
|
|
1323
1313
|
)
|
|
1324
1314
|
] });
|
|
1325
|
-
},
|
|
1315
|
+
}, ei = ({
|
|
1326
1316
|
control: e
|
|
1327
1317
|
}) => {
|
|
1328
1318
|
const { fields: t } = Xt({
|
|
@@ -1396,14 +1386,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1396
1386
|
)
|
|
1397
1387
|
] }) })
|
|
1398
1388
|
] }, n.id)) }) });
|
|
1399
|
-
},
|
|
1389
|
+
}, ti = ({
|
|
1400
1390
|
control: e,
|
|
1401
1391
|
queryParams: t
|
|
1402
1392
|
}) => {
|
|
1403
1393
|
const { fields: n } = Xt({
|
|
1404
1394
|
control: e,
|
|
1405
1395
|
name: "queryParams"
|
|
1406
|
-
}), a =
|
|
1396
|
+
}), a = Qa(), s = t.map((i) => !!i.isRequired), r = a.watch("identity") !== Be;
|
|
1407
1397
|
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(
|
|
1408
1398
|
// TODO remove this hack for Accu or make it more generic
|
|
1409
1399
|
(i) => !(r && i.name === "apikey")
|
|
@@ -1505,8 +1495,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1505
1495
|
children: a.map((s) => /* @__PURE__ */ f.jsx("option", { value: s.value, children: s.label }, s.value))
|
|
1506
1496
|
}
|
|
1507
1497
|
),
|
|
1508
|
-
/* @__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(
|
|
1509
|
-
] }),
|
|
1498
|
+
/* @__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(go, { size: 14 }) })
|
|
1499
|
+
] }), ni = (e) => {
|
|
1510
1500
|
var n;
|
|
1511
1501
|
return (n = Object.entries({
|
|
1512
1502
|
"application/json": "json",
|
|
@@ -1519,20 +1509,20 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1519
1509
|
}).find(
|
|
1520
1510
|
([a]) => e.includes(a)
|
|
1521
1511
|
)) == null ? void 0 : n[1];
|
|
1522
|
-
},
|
|
1512
|
+
}, ri = (e) => {
|
|
1523
1513
|
const t = e.get("Content-Type") || "";
|
|
1524
|
-
return
|
|
1525
|
-
},
|
|
1514
|
+
return ni(t);
|
|
1515
|
+
}, ai = (e) => {
|
|
1526
1516
|
try {
|
|
1527
1517
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
1528
1518
|
} catch {
|
|
1529
1519
|
return null;
|
|
1530
1520
|
}
|
|
1531
|
-
},
|
|
1521
|
+
}, oi = ({
|
|
1532
1522
|
body: e = "",
|
|
1533
1523
|
headers: t
|
|
1534
1524
|
}) => {
|
|
1535
|
-
const n =
|
|
1525
|
+
const n = ri(t), a = ai(e), s = a || e, [o, r] = gr(
|
|
1536
1526
|
a ? "formatted" : "raw"
|
|
1537
1527
|
);
|
|
1538
1528
|
return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
@@ -1558,7 +1548,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1558
1548
|
}
|
|
1559
1549
|
) })
|
|
1560
1550
|
] });
|
|
1561
|
-
}, Be = "__none",
|
|
1551
|
+
}, Be = "__none", ii = {
|
|
1562
1552
|
200: "OK",
|
|
1563
1553
|
201: "Created",
|
|
1564
1554
|
202: "Accepted",
|
|
@@ -1569,7 +1559,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1569
1559
|
404: "Not Found",
|
|
1570
1560
|
405: "Method Not Allowed",
|
|
1571
1561
|
500: "Internal Server Error"
|
|
1572
|
-
},
|
|
1562
|
+
}, si = ({
|
|
1573
1563
|
server: e,
|
|
1574
1564
|
url: t,
|
|
1575
1565
|
method: n,
|
|
@@ -1579,7 +1569,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1579
1569
|
defaultBody: r = ""
|
|
1580
1570
|
}) => {
|
|
1581
1571
|
var w, S;
|
|
1582
|
-
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } =
|
|
1572
|
+
const { register: i, control: l, handleSubmit: c, watch: u, setValue: p, ...d } = Ya({
|
|
1583
1573
|
defaultValues: {
|
|
1584
1574
|
body: r,
|
|
1585
1575
|
queryParams: s.map((k) => ({
|
|
@@ -1604,17 +1594,17 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1604
1594
|
const k = (C = h.data) == null ? void 0 : C.at(0);
|
|
1605
1595
|
k && (p("identity", k.id), y.current = !0);
|
|
1606
1596
|
}, [p, h.data]);
|
|
1607
|
-
const v =
|
|
1597
|
+
const v = Xa({
|
|
1608
1598
|
mutationFn: async (k) => {
|
|
1609
1599
|
var I, H;
|
|
1610
|
-
const C =
|
|
1600
|
+
const C = Yo(e, t, k), P = performance.now(), R = new Request(C, {
|
|
1611
1601
|
method: n.toUpperCase(),
|
|
1612
1602
|
headers: Object.fromEntries(
|
|
1613
1603
|
k.headers.filter((L) => L.name).map((L) => [L.name, L.value])
|
|
1614
1604
|
)
|
|
1615
1605
|
});
|
|
1616
1606
|
k.identity !== Be && ((H = (I = h.data) == null ? void 0 : I.find((L) => L.id === k.identity)) == null || H.authorizeRequest(R));
|
|
1617
|
-
const q = await
|
|
1607
|
+
const q = await Go(R), G = performance.now() - P, K = await q.text();
|
|
1618
1608
|
return {
|
|
1619
1609
|
status: q.status,
|
|
1620
1610
|
headers: q.headers,
|
|
@@ -1649,7 +1639,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1649
1639
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
1650
1640
|
] }, k.name));
|
|
1651
1641
|
return /* @__PURE__ */ f.jsx(
|
|
1652
|
-
|
|
1642
|
+
Za,
|
|
1653
1643
|
{
|
|
1654
1644
|
register: i,
|
|
1655
1645
|
control: l,
|
|
@@ -1697,14 +1687,14 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1697
1687
|
/* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
1698
1688
|
"Auth:",
|
|
1699
1689
|
/* @__PURE__ */ f.jsxs(
|
|
1700
|
-
|
|
1690
|
+
eo,
|
|
1701
1691
|
{
|
|
1702
1692
|
onValueChange: (k) => p("identity", k),
|
|
1703
1693
|
value: m.identity,
|
|
1704
1694
|
defaultValue: m.identity,
|
|
1705
1695
|
children: [
|
|
1706
|
-
/* @__PURE__ */ f.jsx(
|
|
1707
|
-
/* @__PURE__ */ f.jsxs(
|
|
1696
|
+
/* @__PURE__ */ f.jsx(to, { className: "w-[180px] flex", children: h.isPending ? /* @__PURE__ */ f.jsx(jn, {}) : /* @__PURE__ */ f.jsx(no, {}) }),
|
|
1697
|
+
/* @__PURE__ */ f.jsxs(ro, { align: "center", children: [
|
|
1708
1698
|
/* @__PURE__ */ f.jsx(wn, { value: Be, children: "None" }),
|
|
1709
1699
|
(S = h.data) == null ? void 0 : S.map((k) => /* @__PURE__ */ f.jsx(wn, { value: k.id, children: k.label }, k.id))
|
|
1710
1700
|
] })
|
|
@@ -1713,15 +1703,15 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1713
1703
|
)
|
|
1714
1704
|
] })
|
|
1715
1705
|
] }),
|
|
1716
|
-
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsx(
|
|
1706
|
+
/* @__PURE__ */ f.jsx(Pe, { value: "headers", children: /* @__PURE__ */ f.jsx(Zo, { control: l, register: i }) }),
|
|
1717
1707
|
/* @__PURE__ */ f.jsxs(Pe, { value: "parameters", children: [
|
|
1718
1708
|
o.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1719
1709
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
|
|
1720
|
-
/* @__PURE__ */ f.jsx(
|
|
1710
|
+
/* @__PURE__ */ f.jsx(ei, { control: l })
|
|
1721
1711
|
] }),
|
|
1722
1712
|
s.length > 0 && /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
|
|
1723
1713
|
/* @__PURE__ */ f.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
|
|
1724
|
-
/* @__PURE__ */ f.jsx(
|
|
1714
|
+
/* @__PURE__ */ f.jsx(ti, { control: l, queryParams: s })
|
|
1725
1715
|
] })
|
|
1726
1716
|
] }),
|
|
1727
1717
|
/* @__PURE__ */ f.jsx(Pe, { value: "body", children: /* @__PURE__ */ f.jsx(
|
|
@@ -1745,7 +1735,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1745
1735
|
"Status: ",
|
|
1746
1736
|
v.data.status,
|
|
1747
1737
|
" ",
|
|
1748
|
-
|
|
1738
|
+
ii[v.data.status] ?? ""
|
|
1749
1739
|
] }),
|
|
1750
1740
|
/* @__PURE__ */ f.jsxs("div", { children: [
|
|
1751
1741
|
"Time: ",
|
|
@@ -1764,7 +1754,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1764
1754
|
/* @__PURE__ */ f.jsx(Ce, { value: "headers", children: g.length ? `Headers (${g.length})` : "No headers" })
|
|
1765
1755
|
] }),
|
|
1766
1756
|
/* @__PURE__ */ f.jsx(Pe, { value: "response", children: /* @__PURE__ */ f.jsx(
|
|
1767
|
-
|
|
1757
|
+
oi,
|
|
1768
1758
|
{
|
|
1769
1759
|
headers: v.data.headers,
|
|
1770
1760
|
body: v.data.body
|
|
@@ -1783,7 +1773,7 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1783
1773
|
] }) })
|
|
1784
1774
|
}
|
|
1785
1775
|
);
|
|
1786
|
-
},
|
|
1776
|
+
}, li = ({
|
|
1787
1777
|
className: e,
|
|
1788
1778
|
size: t = 16
|
|
1789
1779
|
}) => /* @__PURE__ */ f.jsx(
|
|
@@ -1806,10 +1796,10 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1806
1796
|
}
|
|
1807
1797
|
), ra = (e) => {
|
|
1808
1798
|
const [t, n] = gr(!1);
|
|
1809
|
-
return /* @__PURE__ */ f.jsxs(
|
|
1810
|
-
/* @__PURE__ */ f.jsx(
|
|
1799
|
+
return /* @__PURE__ */ f.jsxs(_o, { onOpenChange: (a) => n(a), children: [
|
|
1800
|
+
/* @__PURE__ */ f.jsx(Lo, { 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: [
|
|
1811
1801
|
"Test",
|
|
1812
|
-
/* @__PURE__ */ f.jsx(
|
|
1802
|
+
/* @__PURE__ */ f.jsx(li, { className: "", size: 14 })
|
|
1813
1803
|
] }) }),
|
|
1814
1804
|
/* @__PURE__ */ f.jsxs(
|
|
1815
1805
|
Dr,
|
|
@@ -1817,8 +1807,8 @@ const Xo = async (e, t, n = 5e3) => {
|
|
|
1817
1807
|
className: "max-w-screen-xl w-full h-5/6 overflow-auto p-0",
|
|
1818
1808
|
"aria-describedby": void 0,
|
|
1819
1809
|
children: [
|
|
1820
|
-
/* @__PURE__ */ f.jsx(
|
|
1821
|
-
t && /* @__PURE__ */ f.jsx(
|
|
1810
|
+
/* @__PURE__ */ f.jsx(ao, { children: /* @__PURE__ */ f.jsx(Vr, { children: "Playground" }) }),
|
|
1811
|
+
t && /* @__PURE__ */ f.jsx(si, { ...e })
|
|
1822
1812
|
]
|
|
1823
1813
|
}
|
|
1824
1814
|
)
|
|
@@ -1849,16 +1839,16 @@ var Tn = (e, t) => {
|
|
|
1849
1839
|
this.postProcessors = [...this.postProcessors, n];
|
|
1850
1840
|
}, this.indentationCharacter = e || On, this.lineJoin = t ?? Cn;
|
|
1851
1841
|
}
|
|
1852
|
-
},
|
|
1842
|
+
}, ci = function(e) {
|
|
1853
1843
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1854
|
-
},
|
|
1844
|
+
}, ui = function(e) {
|
|
1855
1845
|
var t = typeof e;
|
|
1856
1846
|
return e !== null && (t === "object" || t === "function");
|
|
1857
1847
|
}, dn = {};
|
|
1858
1848
|
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
1859
1849
|
dn.default = (e) => Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
1860
|
-
const
|
|
1861
|
-
var
|
|
1850
|
+
const di = ci, fi = ui, pi = dn.default;
|
|
1851
|
+
var mi = (e, t, n) => {
|
|
1862
1852
|
const a = [];
|
|
1863
1853
|
return function s(o, r, i) {
|
|
1864
1854
|
r = r || {}, r.indent = r.indent || " ", i = i || "";
|
|
@@ -1885,7 +1875,7 @@ var vi = (e, t, n) => {
|
|
|
1885
1875
|
};
|
|
1886
1876
|
if (a.indexOf(o) !== -1)
|
|
1887
1877
|
return '"[Circular]"';
|
|
1888
|
-
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" ||
|
|
1878
|
+
if (o == null || typeof o == "number" || typeof o == "boolean" || typeof o == "function" || typeof o == "symbol" || di(o))
|
|
1889
1879
|
return String(o);
|
|
1890
1880
|
if (o instanceof Date)
|
|
1891
1881
|
return `new Date('${o.toISOString()}')`;
|
|
@@ -1900,8 +1890,8 @@ var vi = (e, t, n) => {
|
|
|
1900
1890
|
}).join("") + l.pad + "]";
|
|
1901
1891
|
return a.pop(), c(u);
|
|
1902
1892
|
}
|
|
1903
|
-
if (
|
|
1904
|
-
let u = Object.keys(o).concat(
|
|
1893
|
+
if (fi(o)) {
|
|
1894
|
+
let u = Object.keys(o).concat(pi(o));
|
|
1905
1895
|
if (r.filter && (u = u.filter((d) => r.filter(o, d))), u.length === 0)
|
|
1906
1896
|
return "{}";
|
|
1907
1897
|
a.push(o);
|
|
@@ -1916,13 +1906,13 @@ var vi = (e, t, n) => {
|
|
|
1916
1906
|
` ? "\\n" : "\\r"), r.singleQuotes === !1 ? (o = o.replace(/"/g, '\\"'), `"${o}"`) : (o = o.replace(/\\?'/g, "\\'"), `'${o}'`);
|
|
1917
1907
|
}(e, t, n);
|
|
1918
1908
|
};
|
|
1919
|
-
const J = /* @__PURE__ */
|
|
1909
|
+
const J = /* @__PURE__ */ fo(mi);
|
|
1920
1910
|
function ze(e, t = {}) {
|
|
1921
1911
|
const { delimiter: n = '"', escapeChar: a = "\\", escapeNewlines: s = !0 } = t;
|
|
1922
1912
|
return [...e.toString()].map((r) => r === "\b" ? `${a}b` : r === " " ? `${a}t` : r === `
|
|
1923
1913
|
` ? 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("");
|
|
1924
1914
|
}
|
|
1925
|
-
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
1915
|
+
var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }), hi = {
|
|
1926
1916
|
info: {
|
|
1927
1917
|
key: "libcurl",
|
|
1928
1918
|
title: "Libcurl",
|
|
@@ -1938,7 +1928,7 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1938
1928
|
o(`headers = curl_slist_append(headers, "${c}: ${V(n[c])}");`);
|
|
1939
1929
|
}), o("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (r(), o(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), s.text && (r(), o(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), r(), o("CURLcode ret = curl_easy_perform(hnd);"), i();
|
|
1940
1930
|
}
|
|
1941
|
-
},
|
|
1931
|
+
}, yi = {
|
|
1942
1932
|
info: {
|
|
1943
1933
|
key: "c",
|
|
1944
1934
|
title: "C",
|
|
@@ -1946,19 +1936,19 @@ var Je = (e) => ze(e, { delimiter: "'" }), V = (e) => ze(e, { delimiter: '"' }),
|
|
|
1946
1936
|
cli: "c"
|
|
1947
1937
|
},
|
|
1948
1938
|
clientsById: {
|
|
1949
|
-
libcurl:
|
|
1939
|
+
libcurl: hi
|
|
1950
1940
|
}
|
|
1951
1941
|
}, Y = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), de = (e, t) => {
|
|
1952
1942
|
const n = Y(e, t);
|
|
1953
1943
|
if (n)
|
|
1954
1944
|
return e[n];
|
|
1955
|
-
}, vt = (e, t) => !!Y(e, t),
|
|
1945
|
+
}, vt = (e, t) => !!Y(e, t), gi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1956
1946
|
(t) => e.indexOf(t) > -1
|
|
1957
1947
|
), Pn = class {
|
|
1958
1948
|
constructor(e) {
|
|
1959
1949
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1960
1950
|
}
|
|
1961
|
-
},
|
|
1951
|
+
}, vi = class {
|
|
1962
1952
|
constructor(e) {
|
|
1963
1953
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1964
1954
|
}
|
|
@@ -1995,7 +1985,7 @@ ${n}`);
|
|
|
1995
1985
|
default:
|
|
1996
1986
|
return e.toString();
|
|
1997
1987
|
}
|
|
1998
|
-
},
|
|
1988
|
+
}, bi = {
|
|
1999
1989
|
info: {
|
|
2000
1990
|
key: "clj_http",
|
|
2001
1991
|
title: "clj-http",
|
|
@@ -2037,7 +2027,7 @@ ${n}`);
|
|
|
2037
2027
|
if (n.params) {
|
|
2038
2028
|
c.multipart = n.params.map((p) => p.fileName && !p.value ? {
|
|
2039
2029
|
name: p.name,
|
|
2040
|
-
content: new
|
|
2030
|
+
content: new vi(p.fileName)
|
|
2041
2031
|
} : {
|
|
2042
2032
|
name: p.name,
|
|
2043
2033
|
content: p.value
|
|
@@ -2066,16 +2056,16 @@ ${n}`);
|
|
|
2066
2056
|
}
|
|
2067
2057
|
return i();
|
|
2068
2058
|
}
|
|
2069
|
-
},
|
|
2059
|
+
}, xi = {
|
|
2070
2060
|
info: {
|
|
2071
2061
|
key: "clojure",
|
|
2072
2062
|
title: "Clojure",
|
|
2073
2063
|
default: "clj_http"
|
|
2074
2064
|
},
|
|
2075
2065
|
clientsById: {
|
|
2076
|
-
clj_http:
|
|
2066
|
+
clj_http: bi
|
|
2077
2067
|
}
|
|
2078
|
-
},
|
|
2068
|
+
}, ki = (e) => {
|
|
2079
2069
|
let t = de(e, "accept-encoding");
|
|
2080
2070
|
if (!t)
|
|
2081
2071
|
return [];
|
|
@@ -2092,7 +2082,7 @@ ${n}`);
|
|
|
2092
2082
|
}
|
|
2093
2083
|
});
|
|
2094
2084
|
}), a;
|
|
2095
|
-
},
|
|
2085
|
+
}, $i = {
|
|
2096
2086
|
info: {
|
|
2097
2087
|
key: "httpclient",
|
|
2098
2088
|
title: "HttpClient",
|
|
@@ -2108,7 +2098,7 @@ ${n}`);
|
|
|
2108
2098
|
}, { push: r, join: i } = new O({ indent: o.indent });
|
|
2109
2099
|
r("using System.Net.Http.Headers;");
|
|
2110
2100
|
let l = "";
|
|
2111
|
-
const c = !!e.cookie, u =
|
|
2101
|
+
const c = !!e.cookie, u = ki(e);
|
|
2112
2102
|
(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("{");
|
|
2113
2103
|
const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
2114
2104
|
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);
|
|
@@ -2145,10 +2135,10 @@ ${n}`);
|
|
|
2145
2135
|
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("}"), i();
|
|
2146
2136
|
}
|
|
2147
2137
|
};
|
|
2148
|
-
function
|
|
2138
|
+
function Si(e) {
|
|
2149
2139
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
2150
2140
|
}
|
|
2151
|
-
var
|
|
2141
|
+
var wi = {
|
|
2152
2142
|
info: {
|
|
2153
2143
|
key: "restsharp",
|
|
2154
2144
|
title: "RestSharp",
|
|
@@ -2198,11 +2188,11 @@ var Oi = {
|
|
|
2198
2188
|
if (!s.text) break;
|
|
2199
2189
|
r(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
|
|
2200
2190
|
}
|
|
2201
|
-
return r(`var response = await client.${
|
|
2191
|
+
return r(`var response = await client.${Si(e)}Async(request);
|
|
2202
2192
|
`), r(`Console.WriteLine("{0}", response.Content);
|
|
2203
2193
|
`), i();
|
|
2204
2194
|
}
|
|
2205
|
-
},
|
|
2195
|
+
}, ji = {
|
|
2206
2196
|
info: {
|
|
2207
2197
|
key: "csharp",
|
|
2208
2198
|
title: "C#",
|
|
@@ -2210,10 +2200,10 @@ var Oi = {
|
|
|
2210
2200
|
cli: "dotnet"
|
|
2211
2201
|
},
|
|
2212
2202
|
clientsById: {
|
|
2213
|
-
httpclient:
|
|
2214
|
-
restsharp:
|
|
2203
|
+
httpclient: $i,
|
|
2204
|
+
restsharp: wi
|
|
2215
2205
|
}
|
|
2216
|
-
},
|
|
2206
|
+
}, Ni = {
|
|
2217
2207
|
info: {
|
|
2218
2208
|
key: "native",
|
|
2219
2209
|
title: "NewRequest",
|
|
@@ -2231,7 +2221,7 @@ var Oi = {
|
|
|
2231
2221
|
r(`req.Header.Add("${g}", "${V(n[g])}")`, m);
|
|
2232
2222
|
}), o()), r(`res, ${d} := ${b}.Do(req)`, m), h(), u && (o(), r("defer res.Body.Close()", m), r(`body, ${d} := io.ReadAll(res.Body)`, m), h()), o(), u && r("fmt.Println(string(body))", m), l && (o(), r("}")), i();
|
|
2233
2223
|
}
|
|
2234
|
-
},
|
|
2224
|
+
}, Ti = {
|
|
2235
2225
|
info: {
|
|
2236
2226
|
key: "go",
|
|
2237
2227
|
title: "Go",
|
|
@@ -2239,10 +2229,10 @@ var Oi = {
|
|
|
2239
2229
|
cli: "go"
|
|
2240
2230
|
},
|
|
2241
2231
|
clientsById: {
|
|
2242
|
-
native:
|
|
2232
|
+
native: Ni
|
|
2243
2233
|
}
|
|
2244
2234
|
}, Rn = `\r
|
|
2245
|
-
`,
|
|
2235
|
+
`, Oi = {
|
|
2246
2236
|
info: {
|
|
2247
2237
|
key: "http1.1",
|
|
2248
2238
|
title: "HTTP/1.1",
|
|
@@ -2270,16 +2260,16 @@ var Oi = {
|
|
|
2270
2260
|
const m = u(), h = o.text || "";
|
|
2271
2261
|
return `${m}${Rn}${h}`;
|
|
2272
2262
|
}
|
|
2273
|
-
},
|
|
2263
|
+
}, Ci = {
|
|
2274
2264
|
info: {
|
|
2275
2265
|
key: "http",
|
|
2276
2266
|
title: "HTTP",
|
|
2277
2267
|
default: "http1.1"
|
|
2278
2268
|
},
|
|
2279
2269
|
clientsById: {
|
|
2280
|
-
"http1.1":
|
|
2270
|
+
"http1.1": Oi
|
|
2281
2271
|
}
|
|
2282
|
-
},
|
|
2272
|
+
}, Pi = {
|
|
2283
2273
|
info: {
|
|
2284
2274
|
key: "asynchttp",
|
|
2285
2275
|
title: "AsyncHttp",
|
|
@@ -2296,7 +2286,7 @@ var Oi = {
|
|
|
2296
2286
|
i(`.setHeader("${c}", "${V(t[c])}")`, 1);
|
|
2297
2287
|
}), n.text && i(`.setBody(${JSON.stringify(n.text)})`, 1), i(".execute()", 1), i(".toCompletableFuture()", 1), i(".thenAccept(System.out::println)", 1), i(".join();", 1), r(), i("client.close();"), l();
|
|
2298
2288
|
}
|
|
2299
|
-
},
|
|
2289
|
+
}, Ei = {
|
|
2300
2290
|
info: {
|
|
2301
2291
|
key: "nethttp",
|
|
2302
2292
|
title: "java.net.http",
|
|
@@ -2318,7 +2308,7 @@ var Oi = {
|
|
|
2318
2308
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
2319
2309
|
), r("System.out.println(response.body());"), i();
|
|
2320
2310
|
}
|
|
2321
|
-
},
|
|
2311
|
+
}, Ri = {
|
|
2322
2312
|
info: {
|
|
2323
2313
|
key: "okhttp",
|
|
2324
2314
|
title: "OkHttp",
|
|
@@ -2335,7 +2325,7 @@ var Oi = {
|
|
|
2335
2325
|
r(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2336
2326
|
}), r(".build();", 1), i(), r("Response response = client.newCall(request).execute();"), l();
|
|
2337
2327
|
}
|
|
2338
|
-
},
|
|
2328
|
+
}, Ai = {
|
|
2339
2329
|
info: {
|
|
2340
2330
|
key: "unirest",
|
|
2341
2331
|
title: "Unirest",
|
|
@@ -2352,19 +2342,19 @@ var Oi = {
|
|
|
2352
2342
|
i(`.header("${c}", "${V(t[c])}")`, 1);
|
|
2353
2343
|
}), n.text && i(`.body(${JSON.stringify(n.text)})`, 1), i(".asString();", 1), r();
|
|
2354
2344
|
}
|
|
2355
|
-
},
|
|
2345
|
+
}, Fi = {
|
|
2356
2346
|
info: {
|
|
2357
2347
|
key: "java",
|
|
2358
2348
|
title: "Java",
|
|
2359
2349
|
default: "unirest"
|
|
2360
2350
|
},
|
|
2361
2351
|
clientsById: {
|
|
2362
|
-
asynchttp:
|
|
2363
|
-
nethttp:
|
|
2364
|
-
okhttp:
|
|
2365
|
-
unirest:
|
|
2352
|
+
asynchttp: Pi,
|
|
2353
|
+
nethttp: Ei,
|
|
2354
|
+
okhttp: Ri,
|
|
2355
|
+
unirest: Ai
|
|
2366
2356
|
}
|
|
2367
|
-
},
|
|
2357
|
+
}, qi = {
|
|
2368
2358
|
info: {
|
|
2369
2359
|
key: "axios",
|
|
2370
2360
|
title: "Axios",
|
|
@@ -2408,7 +2398,7 @@ var Oi = {
|
|
|
2408
2398
|
}).replace('"[form]"', "form");
|
|
2409
2399
|
return l(`const options = ${d};`), i(), 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();
|
|
2410
2400
|
}
|
|
2411
|
-
},
|
|
2401
|
+
}, Ii = {
|
|
2412
2402
|
info: {
|
|
2413
2403
|
key: "fetch",
|
|
2414
2404
|
title: "fetch",
|
|
@@ -2461,7 +2451,7 @@ var Oi = {
|
|
|
2461
2451
|
})};`
|
|
2462
2452
|
), 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), i();
|
|
2463
2453
|
}
|
|
2464
|
-
},
|
|
2454
|
+
}, _i = {
|
|
2465
2455
|
info: {
|
|
2466
2456
|
key: "jquery",
|
|
2467
2457
|
title: "jQuery",
|
|
@@ -2505,7 +2495,7 @@ var Oi = {
|
|
|
2505
2495
|
const u = J(c, { indent: o.indent }).replace("'[form]'", "form");
|
|
2506
2496
|
return i(`const settings = ${u};`), r(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), l();
|
|
2507
2497
|
}
|
|
2508
|
-
},
|
|
2498
|
+
}, Li = {
|
|
2509
2499
|
info: {
|
|
2510
2500
|
key: "xhr",
|
|
2511
2501
|
title: "XMLHttpRequest",
|
|
@@ -2546,19 +2536,19 @@ var Oi = {
|
|
|
2546
2536
|
i(`xhr.setRequestHeader('${u}', '${Je(t[u])}');`);
|
|
2547
2537
|
}), r(), i("xhr.send(data);"), l();
|
|
2548
2538
|
}
|
|
2549
|
-
},
|
|
2539
|
+
}, Ui = {
|
|
2550
2540
|
info: {
|
|
2551
2541
|
key: "javascript",
|
|
2552
2542
|
title: "JavaScript",
|
|
2553
2543
|
default: "xhr"
|
|
2554
2544
|
},
|
|
2555
2545
|
clientsById: {
|
|
2556
|
-
xhr:
|
|
2557
|
-
axios:
|
|
2558
|
-
fetch:
|
|
2559
|
-
jquery:
|
|
2546
|
+
xhr: Li,
|
|
2547
|
+
axios: qi,
|
|
2548
|
+
fetch: Ii,
|
|
2549
|
+
jquery: _i
|
|
2560
2550
|
}
|
|
2561
|
-
},
|
|
2551
|
+
}, Mi = {
|
|
2562
2552
|
info: {
|
|
2563
2553
|
key: "native",
|
|
2564
2554
|
title: "Native JSON",
|
|
@@ -2592,16 +2582,16 @@ var Oi = {
|
|
|
2592
2582
|
}
|
|
2593
2583
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, n.indent);
|
|
2594
2584
|
}
|
|
2595
|
-
},
|
|
2585
|
+
}, Hi = {
|
|
2596
2586
|
info: {
|
|
2597
2587
|
key: "json",
|
|
2598
2588
|
title: "JSON",
|
|
2599
2589
|
default: "native"
|
|
2600
2590
|
},
|
|
2601
2591
|
clientsById: {
|
|
2602
|
-
native:
|
|
2592
|
+
native: Mi
|
|
2603
2593
|
}
|
|
2604
|
-
},
|
|
2594
|
+
}, Bi = {
|
|
2605
2595
|
info: {
|
|
2606
2596
|
key: "okhttp",
|
|
2607
2597
|
title: "OkHttp",
|
|
@@ -2618,16 +2608,16 @@ var Oi = {
|
|
|
2618
2608
|
l(`.addHeader("${p}", "${V(a[p])}")`, 1);
|
|
2619
2609
|
}), l(".build()", 1), r(), l("val response = client.newCall(request).execute()"), i();
|
|
2620
2610
|
}
|
|
2621
|
-
},
|
|
2611
|
+
}, Di = {
|
|
2622
2612
|
info: {
|
|
2623
2613
|
key: "kotlin",
|
|
2624
2614
|
title: "Kotlin",
|
|
2625
2615
|
default: "okhttp"
|
|
2626
2616
|
},
|
|
2627
2617
|
clientsById: {
|
|
2628
|
-
okhttp:
|
|
2618
|
+
okhttp: Bi
|
|
2629
2619
|
}
|
|
2630
|
-
},
|
|
2620
|
+
}, Vi = {
|
|
2631
2621
|
info: {
|
|
2632
2622
|
key: "axios",
|
|
2633
2623
|
title: "Axios",
|
|
@@ -2661,7 +2651,7 @@ var Oi = {
|
|
|
2661
2651
|
const p = J(u, { indent: " ", inlineCharacterLimit: 80 });
|
|
2662
2652
|
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), i();
|
|
2663
2653
|
}
|
|
2664
|
-
},
|
|
2654
|
+
}, Wi = {
|
|
2665
2655
|
info: {
|
|
2666
2656
|
key: "fetch",
|
|
2667
2657
|
title: "Fetch",
|
|
@@ -2721,7 +2711,7 @@ var Oi = {
|
|
|
2721
2711
|
});
|
|
2722
2712
|
return c(`const options = ${h};`), l(), i && 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")');
|
|
2723
2713
|
}
|
|
2724
|
-
},
|
|
2714
|
+
}, zi = {
|
|
2725
2715
|
info: {
|
|
2726
2716
|
key: "native",
|
|
2727
2717
|
title: "HTTP",
|
|
@@ -2760,7 +2750,7 @@ var Oi = {
|
|
|
2760
2750
|
}
|
|
2761
2751
|
return l("req.end();"), i();
|
|
2762
2752
|
}
|
|
2763
|
-
},
|
|
2753
|
+
}, Ji = {
|
|
2764
2754
|
info: {
|
|
2765
2755
|
key: "request",
|
|
2766
2756
|
title: "Request",
|
|
@@ -2813,7 +2803,7 @@ var Oi = {
|
|
|
2813
2803
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(y)}=${encodeURIComponent(v)}'), '${t}');`);
|
|
2814
2804
|
}), u(), m((y) => y.replace(/'JAR'/, "jar"))), l && d("const fs = require('fs');"), c(`const options = ${J(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();
|
|
2815
2805
|
}
|
|
2816
|
-
},
|
|
2806
|
+
}, Gi = {
|
|
2817
2807
|
info: {
|
|
2818
2808
|
key: "unirest",
|
|
2819
2809
|
title: "Unirest",
|
|
@@ -2854,7 +2844,7 @@ var Oi = {
|
|
|
2854
2844
|
}
|
|
2855
2845
|
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();
|
|
2856
2846
|
}
|
|
2857
|
-
},
|
|
2847
|
+
}, Ki = {
|
|
2858
2848
|
info: {
|
|
2859
2849
|
key: "node",
|
|
2860
2850
|
title: "Node.js",
|
|
@@ -2862,11 +2852,11 @@ var Oi = {
|
|
|
2862
2852
|
cli: "node %s"
|
|
2863
2853
|
},
|
|
2864
2854
|
clientsById: {
|
|
2865
|
-
native:
|
|
2866
|
-
request:
|
|
2867
|
-
unirest:
|
|
2868
|
-
axios:
|
|
2869
|
-
fetch:
|
|
2855
|
+
native: zi,
|
|
2856
|
+
request: Ji,
|
|
2857
|
+
unirest: Gi,
|
|
2858
|
+
axios: Vi,
|
|
2859
|
+
fetch: Wi
|
|
2870
2860
|
}
|
|
2871
2861
|
}, wt = (e, t, n, a) => {
|
|
2872
2862
|
const s = `${e} *${t} = `, o = Mt(n, a ? s.length : void 0);
|
|
@@ -2890,7 +2880,7 @@ var Oi = {
|
|
|
2890
2880
|
default:
|
|
2891
2881
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2892
2882
|
}
|
|
2893
|
-
},
|
|
2883
|
+
}, Qi = {
|
|
2894
2884
|
info: {
|
|
2895
2885
|
key: "nsurlsession",
|
|
2896
2886
|
title: "NSURLSession",
|
|
@@ -2947,16 +2937,16 @@ var Oi = {
|
|
|
2947
2937
|
2
|
|
2948
2938
|
), r(' NSLog(@"%@", httpResponse);', 2), r(" }", 1), r(" }];"), r("[dataTask resume];"), i();
|
|
2949
2939
|
}
|
|
2950
|
-
},
|
|
2940
|
+
}, Yi = {
|
|
2951
2941
|
info: {
|
|
2952
2942
|
key: "objc",
|
|
2953
2943
|
title: "Objective-C",
|
|
2954
2944
|
default: "nsurlsession"
|
|
2955
2945
|
},
|
|
2956
2946
|
clientsById: {
|
|
2957
|
-
nsurlsession:
|
|
2947
|
+
nsurlsession: Qi
|
|
2958
2948
|
}
|
|
2959
|
-
},
|
|
2949
|
+
}, Xi = {
|
|
2960
2950
|
info: {
|
|
2961
2951
|
key: "cohttp",
|
|
2962
2952
|
title: "CoHTTP",
|
|
@@ -2982,14 +2972,14 @@ var Oi = {
|
|
|
2982
2972
|
const p = u.length ? "~headers " : "", d = n.text ? "~body " : "", m = r.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2983
2973
|
return i(`Client.call ${p}${d}${m} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), c();
|
|
2984
2974
|
}
|
|
2985
|
-
},
|
|
2975
|
+
}, Zi = {
|
|
2986
2976
|
info: {
|
|
2987
2977
|
key: "ocaml",
|
|
2988
2978
|
title: "OCaml",
|
|
2989
2979
|
default: "cohttp"
|
|
2990
2980
|
},
|
|
2991
2981
|
clientsById: {
|
|
2992
|
-
cohttp:
|
|
2982
|
+
cohttp: Xi
|
|
2993
2983
|
}
|
|
2994
2984
|
}, F = (e, t, n) => {
|
|
2995
2985
|
switch (n = n || "", t = t || "", Object.prototype.toString.call(e)) {
|
|
@@ -3050,7 +3040,7 @@ ${n}]`;
|
|
|
3050
3040
|
"UNLOCK",
|
|
3051
3041
|
"UPDATE",
|
|
3052
3042
|
"VERSION_CONTROL"
|
|
3053
|
-
],
|
|
3043
|
+
], es = {
|
|
3054
3044
|
info: {
|
|
3055
3045
|
key: "curl",
|
|
3056
3046
|
title: "cURL",
|
|
@@ -3128,7 +3118,7 @@ ${c}` });
|
|
|
3128
3118
|
return S.length && (x.push("CURLOPT_HTTPHEADER => ["), x.push(S.join(`,
|
|
3129
3119
|
${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();
|
|
3130
3120
|
}
|
|
3131
|
-
},
|
|
3121
|
+
}, ts = {
|
|
3132
3122
|
info: {
|
|
3133
3123
|
key: "guzzle",
|
|
3134
3124
|
title: "Guzzle",
|
|
@@ -3179,7 +3169,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3179
3169
|
return h.length && m.push(`${r.indent}${r.indent}'cookie' => '${Je(h)}',`), m.length && (p("'headers' => [", 1), p(m.join(`
|
|
3180
3170
|
`)), p("],", 1)), i("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (i(`$response = $client->request('${n}', '${t}', [`), i(d()), i("]);")) : i(`$response = $client->request('${n}', '${t}');`), l(), i("echo $response->getBody();"), !r.noTags && r.closingTag && (l(), i("?>")), c();
|
|
3181
3171
|
}
|
|
3182
|
-
},
|
|
3172
|
+
}, ns = {
|
|
3183
3173
|
info: {
|
|
3184
3174
|
key: "http1",
|
|
3185
3175
|
title: "HTTP v1",
|
|
@@ -3201,7 +3191,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3201
3191
|
}
|
|
3202
3192
|
return p("try {"), p("$response = $request->send();", 1), d(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && i && (d(), p("?>")), m();
|
|
3203
3193
|
}
|
|
3204
|
-
},
|
|
3194
|
+
}, rs = {
|
|
3205
3195
|
info: {
|
|
3206
3196
|
key: "http2",
|
|
3207
3197
|
title: "HTTP v2",
|
|
@@ -3249,7 +3239,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3249
3239
|
}
|
|
3250
3240
|
return p(`$request->setRequestUrl(${F(o)});`), p(`$request->setRequestMethod(${F(n)});`), h && (p("$request->setBody($body);"), d()), Object.keys(a).length && (p(`$request->setQuery(new http\\QueryString(${F(a, l)}));`), d()), Object.keys(t).length && (p(`$request->setHeaders(${F(t, l)});`), d()), Object.keys(s).length && (d(), p(`$client->setCookies(${F(s, l)});`), d()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), d(), p("echo $response->getBody();"), !c && i && (d(), p("?>")), m();
|
|
3251
3241
|
}
|
|
3252
|
-
},
|
|
3242
|
+
}, as = {
|
|
3253
3243
|
info: {
|
|
3254
3244
|
key: "php",
|
|
3255
3245
|
title: "PHP",
|
|
@@ -3257,10 +3247,10 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3257
3247
|
cli: "php %s"
|
|
3258
3248
|
},
|
|
3259
3249
|
clientsById: {
|
|
3260
|
-
curl:
|
|
3261
|
-
guzzle:
|
|
3262
|
-
http1:
|
|
3263
|
-
http2:
|
|
3250
|
+
curl: es,
|
|
3251
|
+
guzzle: ts,
|
|
3252
|
+
http1: ns,
|
|
3253
|
+
http2: rs
|
|
3264
3254
|
}
|
|
3265
3255
|
}, ia = (e) => ({ method: n, headersObj: a, cookies: s, uriObj: o, fullUrl: r, postData: i, allHeaders: l }) => {
|
|
3266
3256
|
const { push: c, join: u } = new O();
|
|
@@ -3274,7 +3264,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3274
3264
|
}), d.push("-WebSession $session")), i.text && (d.push(
|
|
3275
3265
|
`-ContentType '${ze(de(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
3276
3266
|
), d.push(`-Body '${i.text}'`)), c(`$response = ${e} -Uri '${r}' -Method ${n} ${d.join(" ")}`.trim()), u();
|
|
3277
|
-
},
|
|
3267
|
+
}, os = {
|
|
3278
3268
|
info: {
|
|
3279
3269
|
key: "restmethod",
|
|
3280
3270
|
title: "Invoke-RestMethod",
|
|
@@ -3283,7 +3273,7 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3283
3273
|
extname: ".ps1"
|
|
3284
3274
|
},
|
|
3285
3275
|
convert: ia("Invoke-RestMethod")
|
|
3286
|
-
},
|
|
3276
|
+
}, is = {
|
|
3287
3277
|
info: {
|
|
3288
3278
|
key: "webrequest",
|
|
3289
3279
|
title: "Invoke-WebRequest",
|
|
@@ -3292,15 +3282,15 @@ ${c}${c}`), 1), x.push("],")), y(x.join(), 1), y("]);"), v(), y("$response = cur
|
|
|
3292
3282
|
extname: ".ps1"
|
|
3293
3283
|
},
|
|
3294
3284
|
convert: ia("Invoke-WebRequest")
|
|
3295
|
-
},
|
|
3285
|
+
}, ss = {
|
|
3296
3286
|
info: {
|
|
3297
3287
|
key: "powershell",
|
|
3298
3288
|
title: "Powershell",
|
|
3299
3289
|
default: "webrequest"
|
|
3300
3290
|
},
|
|
3301
3291
|
clientsById: {
|
|
3302
|
-
webrequest:
|
|
3303
|
-
restmethod:
|
|
3292
|
+
webrequest: is,
|
|
3293
|
+
restmethod: os
|
|
3304
3294
|
}
|
|
3305
3295
|
};
|
|
3306
3296
|
function Fn(e, t, n, a, s) {
|
|
@@ -3332,7 +3322,7 @@ var Re = (e, t, n) => {
|
|
|
3332
3322
|
default:
|
|
3333
3323
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3334
3324
|
}
|
|
3335
|
-
},
|
|
3325
|
+
}, ls = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], cs = {
|
|
3336
3326
|
info: {
|
|
3337
3327
|
key: "requests",
|
|
3338
3328
|
title: "Requests",
|
|
@@ -3395,10 +3385,10 @@ var Re = (e, t, n) => {
|
|
|
3395
3385
|
r(g !== v ? `"${x}": "${V(u[x])}",` : `"${x}": "${V(u[x])}"`, 1), g += 1;
|
|
3396
3386
|
}), r("}"), i();
|
|
3397
3387
|
}
|
|
3398
|
-
let b =
|
|
3388
|
+
let b = ls.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
3399
3389
|
return h && (y ? b += ", json=payload" : b += ", data=payload"), m && (b += ", files=files"), v > 0 && (b += ", headers=headers"), b += ")", r(b), i(), r("print(response.text)"), l();
|
|
3400
3390
|
}
|
|
3401
|
-
},
|
|
3391
|
+
}, us = {
|
|
3402
3392
|
info: {
|
|
3403
3393
|
key: "python",
|
|
3404
3394
|
title: "Python",
|
|
@@ -3406,9 +3396,9 @@ var Re = (e, t, n) => {
|
|
|
3406
3396
|
cli: "python3 %s"
|
|
3407
3397
|
},
|
|
3408
3398
|
clientsById: {
|
|
3409
|
-
requests:
|
|
3399
|
+
requests: cs
|
|
3410
3400
|
}
|
|
3411
|
-
},
|
|
3401
|
+
}, ds = {
|
|
3412
3402
|
info: {
|
|
3413
3403
|
key: "httr",
|
|
3414
3404
|
title: "httr",
|
|
@@ -3447,16 +3437,16 @@ var Re = (e, t, n) => {
|
|
|
3447
3437
|
const w = [g, v, y, h].filter((S) => !!S).join(", ");
|
|
3448
3438
|
return w && (x += `, ${w}`), (a.text || a.jsonObj || a.params) && (x += ", encode = encode"), x += ")", r(x), i(), r('content(response, "text")'), l();
|
|
3449
3439
|
}
|
|
3450
|
-
},
|
|
3440
|
+
}, fs = {
|
|
3451
3441
|
info: {
|
|
3452
3442
|
key: "r",
|
|
3453
3443
|
title: "R",
|
|
3454
3444
|
default: "httr"
|
|
3455
3445
|
},
|
|
3456
3446
|
clientsById: {
|
|
3457
|
-
httr:
|
|
3447
|
+
httr: ds
|
|
3458
3448
|
}
|
|
3459
|
-
},
|
|
3449
|
+
}, ps = {
|
|
3460
3450
|
info: {
|
|
3461
3451
|
key: "native",
|
|
3462
3452
|
title: "net::http",
|
|
@@ -3487,16 +3477,16 @@ var Re = (e, t, n) => {
|
|
|
3487
3477
|
o(`request["${d}"] = '${Je(s[d])}'`);
|
|
3488
3478
|
}), a.text && o(`request.body = ${JSON.stringify(a.text)}`), r(), o("response = http.request(request)"), o("puts response.read_body"), i();
|
|
3489
3479
|
}
|
|
3490
|
-
},
|
|
3480
|
+
}, ms = {
|
|
3491
3481
|
info: {
|
|
3492
3482
|
key: "ruby",
|
|
3493
3483
|
title: "Ruby",
|
|
3494
3484
|
default: "native"
|
|
3495
3485
|
},
|
|
3496
3486
|
clientsById: {
|
|
3497
|
-
native:
|
|
3487
|
+
native: ps
|
|
3498
3488
|
}
|
|
3499
|
-
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
3489
|
+
}, z = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, hs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ys = {
|
|
3500
3490
|
"http1.0": "0",
|
|
3501
3491
|
"url ": "",
|
|
3502
3492
|
cookie: "b",
|
|
@@ -3506,13 +3496,13 @@ var Re = (e, t, n) => {
|
|
|
3506
3496
|
header: "H",
|
|
3507
3497
|
insecure: "k",
|
|
3508
3498
|
request: "X"
|
|
3509
|
-
},
|
|
3499
|
+
}, gs = (e) => (t) => {
|
|
3510
3500
|
if (e) {
|
|
3511
|
-
const n =
|
|
3501
|
+
const n = ys[t];
|
|
3512
3502
|
return n ? `-${n}` : "";
|
|
3513
3503
|
}
|
|
3514
3504
|
return `--${t}`;
|
|
3515
|
-
},
|
|
3505
|
+
}, vs = {
|
|
3516
3506
|
info: {
|
|
3517
3507
|
key: "curl",
|
|
3518
3508
|
title: "cURL",
|
|
@@ -3526,7 +3516,7 @@ var Re = (e, t, n) => {
|
|
|
3526
3516
|
...typeof i == "string" ? { indent: i } : {},
|
|
3527
3517
|
join: i !== !1 ? ` \\
|
|
3528
3518
|
${i}` : " "
|
|
3529
|
-
}), h =
|
|
3519
|
+
}), h = gs(l);
|
|
3530
3520
|
let y = z(e);
|
|
3531
3521
|
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")), de(s, "accept-encoding") && d("--compressed"), o.mimeType === "multipart/form-data") {
|
|
3532
3522
|
const b = Y(a, "content-type");
|
|
@@ -3558,7 +3548,7 @@ ${i}` : " "
|
|
|
3558
3548
|
if (!o.text)
|
|
3559
3549
|
break;
|
|
3560
3550
|
let b = !1;
|
|
3561
|
-
if (
|
|
3551
|
+
if (gi(o.mimeType) && o.text.length > 20)
|
|
3562
3552
|
try {
|
|
3563
3553
|
const g = JSON.parse(o.text);
|
|
3564
3554
|
b = !0, o.text.indexOf("'") > 0 ? d(
|
|
@@ -3580,7 +3570,7 @@ ${JSON.stringify(g, null, p)}
|
|
|
3580
3570
|
}
|
|
3581
3571
|
return m();
|
|
3582
3572
|
}
|
|
3583
|
-
},
|
|
3573
|
+
}, bs = {
|
|
3584
3574
|
info: {
|
|
3585
3575
|
key: "httpie",
|
|
3586
3576
|
title: "HTTPie",
|
|
@@ -3629,7 +3619,7 @@ ${i.indent}` : " "
|
|
|
3629
3619
|
}
|
|
3630
3620
|
return c();
|
|
3631
3621
|
}
|
|
3632
|
-
},
|
|
3622
|
+
}, xs = {
|
|
3633
3623
|
info: {
|
|
3634
3624
|
key: "wget",
|
|
3635
3625
|
title: "Wget",
|
|
@@ -3651,9 +3641,9 @@ ${o.indent}` : " "
|
|
|
3651
3641
|
return o.verbose ? r(`wget ${o.short ? "-v" : "--verbose"}`) : r(`wget ${o.short ? "-q" : "--quiet"}`), r(`--method ${z(e)}`), Object.keys(n).forEach((l) => {
|
|
3652
3642
|
const c = `${l}: ${n[l]}`;
|
|
3653
3643
|
r(`--header ${z(c)}`);
|
|
3654
|
-
}), t.text && r(`--body-data ${
|
|
3644
|
+
}), t.text && r(`--body-data ${hs(z(t.text))}`), r(o.short ? "-O" : "--output-document"), r(`- ${z(a)}`), i();
|
|
3655
3645
|
}
|
|
3656
|
-
},
|
|
3646
|
+
}, ks = {
|
|
3657
3647
|
info: {
|
|
3658
3648
|
key: "shell",
|
|
3659
3649
|
title: "Shell",
|
|
@@ -3661,9 +3651,9 @@ ${o.indent}` : " "
|
|
|
3661
3651
|
cli: "%s"
|
|
3662
3652
|
},
|
|
3663
3653
|
clientsById: {
|
|
3664
|
-
curl:
|
|
3665
|
-
httpie:
|
|
3666
|
-
wget:
|
|
3654
|
+
curl: vs,
|
|
3655
|
+
httpie: bs,
|
|
3656
|
+
wget: xs
|
|
3667
3657
|
}
|
|
3668
3658
|
}, qn = (e, t) => t.repeat(e), In = (e, t, n, a) => {
|
|
3669
3659
|
const s = qn(a, n), o = qn(a - 1, n), r = t ? `,
|
|
@@ -3698,7 +3688,7 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3698
3688
|
default:
|
|
3699
3689
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
3700
3690
|
}
|
|
3701
|
-
},
|
|
3691
|
+
}, $s = {
|
|
3702
3692
|
info: {
|
|
3703
3693
|
key: "urlsession",
|
|
3704
3694
|
title: "URLSession",
|
|
@@ -3749,35 +3739,35 @@ ${o}]` : `[${e.join(r)}]`;
|
|
|
3749
3739
|
}
|
|
3750
3740
|
}), i("]"), i("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), i("var request = URLRequest(url: components.url!)")), i(`request.httpMethod = "${s}"`), i(`request.timeoutInterval = ${r.timeout}`), Object.keys(e).length && i(`request.allHTTPHeaderFields = ${dt(e, r)}`), u && i("request.httpBody = postData"), l(), i("let (data, _) = try await URLSession.shared.data(for: request)"), i("print(String(decoding: data, as: UTF8.self))"), c();
|
|
3751
3741
|
}
|
|
3752
|
-
},
|
|
3742
|
+
}, Ss = {
|
|
3753
3743
|
info: {
|
|
3754
3744
|
key: "swift",
|
|
3755
3745
|
title: "Swift",
|
|
3756
3746
|
default: "urlsession"
|
|
3757
3747
|
},
|
|
3758
3748
|
clientsById: {
|
|
3759
|
-
urlsession:
|
|
3760
|
-
}
|
|
3761
|
-
},
|
|
3762
|
-
c:
|
|
3763
|
-
clojure:
|
|
3764
|
-
csharp:
|
|
3765
|
-
go:
|
|
3766
|
-
http:
|
|
3767
|
-
java:
|
|
3768
|
-
javascript:
|
|
3769
|
-
json:
|
|
3770
|
-
kotlin:
|
|
3771
|
-
node:
|
|
3772
|
-
objc:
|
|
3773
|
-
ocaml:
|
|
3774
|
-
php:
|
|
3775
|
-
powershell:
|
|
3776
|
-
python:
|
|
3777
|
-
r:
|
|
3778
|
-
ruby:
|
|
3779
|
-
shell:
|
|
3780
|
-
swift:
|
|
3749
|
+
urlsession: $s
|
|
3750
|
+
}
|
|
3751
|
+
}, ws = {
|
|
3752
|
+
c: yi,
|
|
3753
|
+
clojure: xi,
|
|
3754
|
+
csharp: ji,
|
|
3755
|
+
go: Ti,
|
|
3756
|
+
http: Ci,
|
|
3757
|
+
java: Fi,
|
|
3758
|
+
javascript: Ui,
|
|
3759
|
+
json: Hi,
|
|
3760
|
+
kotlin: Di,
|
|
3761
|
+
node: Ki,
|
|
3762
|
+
objc: Yi,
|
|
3763
|
+
ocaml: Zi,
|
|
3764
|
+
php: as,
|
|
3765
|
+
powershell: ss,
|
|
3766
|
+
python: us,
|
|
3767
|
+
r: fs,
|
|
3768
|
+
ruby: ms,
|
|
3769
|
+
shell: ks,
|
|
3770
|
+
swift: Ss
|
|
3781
3771
|
}, ft = { exports: {} };
|
|
3782
3772
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3783
3773
|
ft.exports;
|
|
@@ -3899,7 +3889,7 @@ ft.exports;
|
|
|
3899
3889
|
n.punycode = r;
|
|
3900
3890
|
})(ot);
|
|
3901
3891
|
})(ft, ft.exports);
|
|
3902
|
-
var
|
|
3892
|
+
var js = ft.exports, Ns = Error, Ts = EvalError, Os = RangeError, Cs = ReferenceError, sa = SyntaxError, Ye = TypeError, Ps = URIError, Es = function() {
|
|
3903
3893
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3904
3894
|
return !1;
|
|
3905
3895
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3922,32 +3912,32 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3922
3912
|
return !1;
|
|
3923
3913
|
}
|
|
3924
3914
|
return !0;
|
|
3925
|
-
}, Ln = typeof Symbol < "u" && Symbol,
|
|
3926
|
-
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
3915
|
+
}, Ln = typeof Symbol < "u" && Symbol, Rs = Es, As = function() {
|
|
3916
|
+
return typeof Ln != "function" || typeof Symbol != "function" || typeof Ln("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Rs();
|
|
3927
3917
|
}, jt = {
|
|
3928
3918
|
__proto__: null,
|
|
3929
3919
|
foo: {}
|
|
3930
|
-
},
|
|
3931
|
-
return { __proto__: jt }.foo === jt.foo && !(jt instanceof
|
|
3932
|
-
},
|
|
3920
|
+
}, Fs = Object, qs = function() {
|
|
3921
|
+
return { __proto__: jt }.foo === jt.foo && !(jt instanceof Fs);
|
|
3922
|
+
}, Is = "Function.prototype.bind called on incompatible ", _s = Object.prototype.toString, Ls = Math.max, Us = "[object Function]", Un = function(t, n) {
|
|
3933
3923
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
3934
3924
|
a[s] = t[s];
|
|
3935
3925
|
for (var o = 0; o < n.length; o += 1)
|
|
3936
3926
|
a[o + t.length] = n[o];
|
|
3937
3927
|
return a;
|
|
3938
|
-
},
|
|
3928
|
+
}, Ms = function(t, n) {
|
|
3939
3929
|
for (var a = [], s = n, o = 0; s < t.length; s += 1, o += 1)
|
|
3940
3930
|
a[o] = t[s];
|
|
3941
3931
|
return a;
|
|
3942
|
-
},
|
|
3932
|
+
}, Hs = function(e, t) {
|
|
3943
3933
|
for (var n = "", a = 0; a < e.length; a += 1)
|
|
3944
3934
|
n += e[a], a + 1 < e.length && (n += t);
|
|
3945
3935
|
return n;
|
|
3946
|
-
},
|
|
3936
|
+
}, Bs = function(t) {
|
|
3947
3937
|
var n = this;
|
|
3948
|
-
if (typeof n != "function" ||
|
|
3949
|
-
throw new TypeError(
|
|
3950
|
-
for (var a =
|
|
3938
|
+
if (typeof n != "function" || _s.apply(n) !== Us)
|
|
3939
|
+
throw new TypeError(Is + n);
|
|
3940
|
+
for (var a = Ms(arguments, 1), s, o = function() {
|
|
3951
3941
|
if (this instanceof s) {
|
|
3952
3942
|
var u = n.apply(
|
|
3953
3943
|
this,
|
|
@@ -3959,15 +3949,15 @@ var Cs = ft.exports, Ps = Error, Es = EvalError, Rs = RangeError, As = Reference
|
|
|
3959
3949
|
t,
|
|
3960
3950
|
Un(a, arguments)
|
|
3961
3951
|
);
|
|
3962
|
-
}, r =
|
|
3952
|
+
}, r = Ls(0, n.length - a.length), i = [], l = 0; l < r; l++)
|
|
3963
3953
|
i[l] = "$" + l;
|
|
3964
|
-
if (s = Function("binder", "return function (" +
|
|
3954
|
+
if (s = Function("binder", "return function (" + Hs(i, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
|
|
3965
3955
|
var c = function() {
|
|
3966
3956
|
};
|
|
3967
3957
|
c.prototype = n.prototype, s.prototype = new c(), c.prototype = null;
|
|
3968
3958
|
}
|
|
3969
3959
|
return s;
|
|
3970
|
-
},
|
|
3960
|
+
}, Ds = Bs, fn = Function.prototype.bind || Ds, Vs = Function.prototype.call, Ws = Object.prototype.hasOwnProperty, zs = fn, Js = zs.call(Vs, Ws), T, Gs = Ns, Ks = Ts, Qs = Os, Ys = Cs, Ie = sa, Ae = Ye, Xs = Ps, la = Function, Nt = function(e) {
|
|
3971
3961
|
try {
|
|
3972
3962
|
return la('"use strict"; return (' + e + ").constructor;")();
|
|
3973
3963
|
} catch {
|
|
@@ -3981,7 +3971,7 @@ if (we)
|
|
|
3981
3971
|
}
|
|
3982
3972
|
var Tt = function() {
|
|
3983
3973
|
throw new Ae();
|
|
3984
|
-
},
|
|
3974
|
+
}, Zs = we ? function() {
|
|
3985
3975
|
try {
|
|
3986
3976
|
return arguments.callee, Tt;
|
|
3987
3977
|
} catch {
|
|
@@ -3991,9 +3981,9 @@ var Tt = function() {
|
|
|
3991
3981
|
return Tt;
|
|
3992
3982
|
}
|
|
3993
3983
|
}
|
|
3994
|
-
}() : Tt, Te =
|
|
3984
|
+
}() : Tt, Te = As(), el = qs(), D = Object.getPrototypeOf || (el ? function(e) {
|
|
3995
3985
|
return e.__proto__;
|
|
3996
|
-
} : null), Ee = {},
|
|
3986
|
+
} : null), Ee = {}, tl = typeof Uint8Array > "u" || !D ? T : D(Uint8Array), je = {
|
|
3997
3987
|
__proto__: null,
|
|
3998
3988
|
"%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
|
|
3999
3989
|
"%Array%": Array,
|
|
@@ -4015,10 +4005,10 @@ var Tt = function() {
|
|
|
4015
4005
|
"%decodeURIComponent%": decodeURIComponent,
|
|
4016
4006
|
"%encodeURI%": encodeURI,
|
|
4017
4007
|
"%encodeURIComponent%": encodeURIComponent,
|
|
4018
|
-
"%Error%":
|
|
4008
|
+
"%Error%": Gs,
|
|
4019
4009
|
"%eval%": eval,
|
|
4020
4010
|
// eslint-disable-line no-eval
|
|
4021
|
-
"%EvalError%":
|
|
4011
|
+
"%EvalError%": Ks,
|
|
4022
4012
|
"%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
|
|
4023
4013
|
"%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
|
|
4024
4014
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
|
|
@@ -4040,8 +4030,8 @@ var Tt = function() {
|
|
|
4040
4030
|
"%parseInt%": parseInt,
|
|
4041
4031
|
"%Promise%": typeof Promise > "u" ? T : Promise,
|
|
4042
4032
|
"%Proxy%": typeof Proxy > "u" ? T : Proxy,
|
|
4043
|
-
"%RangeError%":
|
|
4044
|
-
"%ReferenceError%":
|
|
4033
|
+
"%RangeError%": Qs,
|
|
4034
|
+
"%ReferenceError%": Ys,
|
|
4045
4035
|
"%Reflect%": typeof Reflect > "u" ? T : Reflect,
|
|
4046
4036
|
"%RegExp%": RegExp,
|
|
4047
4037
|
"%Set%": typeof Set > "u" ? T : Set,
|
|
@@ -4051,14 +4041,14 @@ var Tt = function() {
|
|
|
4051
4041
|
"%StringIteratorPrototype%": Te && D ? D(""[Symbol.iterator]()) : T,
|
|
4052
4042
|
"%Symbol%": Te ? Symbol : T,
|
|
4053
4043
|
"%SyntaxError%": Ie,
|
|
4054
|
-
"%ThrowTypeError%":
|
|
4055
|
-
"%TypedArray%":
|
|
4044
|
+
"%ThrowTypeError%": Zs,
|
|
4045
|
+
"%TypedArray%": tl,
|
|
4056
4046
|
"%TypeError%": Ae,
|
|
4057
4047
|
"%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
|
|
4058
4048
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
|
|
4059
4049
|
"%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
|
|
4060
4050
|
"%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
|
|
4061
|
-
"%URIError%":
|
|
4051
|
+
"%URIError%": Xs,
|
|
4062
4052
|
"%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
|
|
4063
4053
|
"%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
|
|
4064
4054
|
"%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
|
|
@@ -4067,10 +4057,10 @@ if (D)
|
|
|
4067
4057
|
try {
|
|
4068
4058
|
null.error;
|
|
4069
4059
|
} catch (e) {
|
|
4070
|
-
var
|
|
4071
|
-
je["%Error.prototype%"] =
|
|
4060
|
+
var nl = D(D(e));
|
|
4061
|
+
je["%Error.prototype%"] = nl;
|
|
4072
4062
|
}
|
|
4073
|
-
var
|
|
4063
|
+
var rl = function e(t) {
|
|
4074
4064
|
var n;
|
|
4075
4065
|
if (t === "%AsyncFunction%")
|
|
4076
4066
|
n = Nt("async function () {}");
|
|
@@ -4139,21 +4129,21 @@ var sl = function e(t) {
|
|
|
4139
4129
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4140
4130
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4141
4131
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4142
|
-
}, Xe = fn, pt =
|
|
4132
|
+
}, Xe = fn, pt = Js, al = Xe.call(Function.call, Array.prototype.concat), ol = Xe.call(Function.apply, Array.prototype.splice), Hn = Xe.call(Function.call, String.prototype.replace), mt = Xe.call(Function.call, String.prototype.slice), il = Xe.call(Function.call, RegExp.prototype.exec), sl = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ll = /\\(\\)?/g, cl = function(t) {
|
|
4143
4133
|
var n = mt(t, 0, 1), a = mt(t, -1);
|
|
4144
4134
|
if (n === "%" && a !== "%")
|
|
4145
4135
|
throw new Ie("invalid intrinsic syntax, expected closing `%`");
|
|
4146
4136
|
if (a === "%" && n !== "%")
|
|
4147
4137
|
throw new Ie("invalid intrinsic syntax, expected opening `%`");
|
|
4148
4138
|
var s = [];
|
|
4149
|
-
return Hn(t,
|
|
4150
|
-
s[s.length] = i ? Hn(l,
|
|
4139
|
+
return Hn(t, sl, function(o, r, i, l) {
|
|
4140
|
+
s[s.length] = i ? Hn(l, ll, "$1") : r || o;
|
|
4151
4141
|
}), s;
|
|
4152
|
-
},
|
|
4142
|
+
}, ul = function(t, n) {
|
|
4153
4143
|
var a = t, s;
|
|
4154
4144
|
if (pt(Mn, a) && (s = Mn[a], a = "%" + s[0] + "%"), pt(je, a)) {
|
|
4155
4145
|
var o = je[a];
|
|
4156
|
-
if (o === Ee && (o =
|
|
4146
|
+
if (o === Ee && (o = rl(a)), typeof o > "u" && !n)
|
|
4157
4147
|
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
4158
4148
|
return {
|
|
4159
4149
|
alias: s,
|
|
@@ -4167,10 +4157,10 @@ var sl = function e(t) {
|
|
|
4167
4157
|
throw new Ae("intrinsic name must be a non-empty string");
|
|
4168
4158
|
if (arguments.length > 1 && typeof n != "boolean")
|
|
4169
4159
|
throw new Ae('"allowMissing" argument must be a boolean');
|
|
4170
|
-
if (
|
|
4160
|
+
if (il(/^%?[^%]*%?$/, t) === null)
|
|
4171
4161
|
throw new Ie("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
4172
|
-
var a =
|
|
4173
|
-
c && (s = c[0],
|
|
4162
|
+
var a = cl(t), s = a.length > 0 ? a[0] : "", o = ul("%" + s + "%", n), r = o.name, i = o.value, l = !1, c = o.alias;
|
|
4163
|
+
c && (s = c[0], ol(a, al([0, 1], c)));
|
|
4174
4164
|
for (var u = 1, p = !0; u < a.length; u += 1) {
|
|
4175
4165
|
var d = a[u], m = mt(d, 0, 1), h = mt(d, -1);
|
|
4176
4166
|
if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
|
|
@@ -4205,14 +4195,14 @@ function pn() {
|
|
|
4205
4195
|
}
|
|
4206
4196
|
return Ot = t, Ot;
|
|
4207
4197
|
}
|
|
4208
|
-
var
|
|
4198
|
+
var dl = Ue, st = dl("%Object.getOwnPropertyDescriptor%", !0);
|
|
4209
4199
|
if (st)
|
|
4210
4200
|
try {
|
|
4211
4201
|
st([], "length");
|
|
4212
4202
|
} catch {
|
|
4213
4203
|
st = null;
|
|
4214
4204
|
}
|
|
4215
|
-
var ua = st, Dn = pn(),
|
|
4205
|
+
var ua = st, Dn = pn(), fl = sa, Oe = Ye, Vn = ua, pl = function(t, n, a) {
|
|
4216
4206
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
4217
4207
|
throw new Oe("`obj` must be an object or a function`");
|
|
4218
4208
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -4236,7 +4226,7 @@ var ua = st, Dn = pn(), yl = sa, Oe = Ye, Vn = ua, gl = function(t, n, a) {
|
|
|
4236
4226
|
else if (i || !s && !o && !r)
|
|
4237
4227
|
t[n] = a;
|
|
4238
4228
|
else
|
|
4239
|
-
throw new
|
|
4229
|
+
throw new fl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4240
4230
|
}, Ht = pn(), da = function() {
|
|
4241
4231
|
return !!Ht;
|
|
4242
4232
|
};
|
|
@@ -4249,17 +4239,17 @@ da.hasArrayLengthDefineBug = function() {
|
|
|
4249
4239
|
return !0;
|
|
4250
4240
|
}
|
|
4251
4241
|
};
|
|
4252
|
-
var
|
|
4242
|
+
var ml = da, hl = Ue, Wn = pl, yl = ml(), zn = ua, Jn = Ye, gl = hl("%Math.floor%"), vl = function(t, n) {
|
|
4253
4243
|
if (typeof t != "function")
|
|
4254
4244
|
throw new Jn("`fn` is not a function");
|
|
4255
|
-
if (typeof n != "number" || n < 0 || n > 4294967295 ||
|
|
4245
|
+
if (typeof n != "number" || n < 0 || n > 4294967295 || gl(n) !== n)
|
|
4256
4246
|
throw new Jn("`length` must be a positive 32-bit integer");
|
|
4257
4247
|
var a = arguments.length > 2 && !!arguments[2], s = !0, o = !0;
|
|
4258
4248
|
if ("length" in t && zn) {
|
|
4259
4249
|
var r = zn(t, "length");
|
|
4260
4250
|
r && !r.configurable && (s = !1), r && !r.writable && (o = !1);
|
|
4261
4251
|
}
|
|
4262
|
-
return (s || o || !a) && (
|
|
4252
|
+
return (s || o || !a) && (yl ? Wn(
|
|
4263
4253
|
/** @type {Parameters<define>[0]} */
|
|
4264
4254
|
t,
|
|
4265
4255
|
"length",
|
|
@@ -4274,7 +4264,7 @@ var vl = da, bl = Ue, Wn = gl, xl = vl(), zn = ua, Jn = Ye, kl = bl("%Math.floor
|
|
|
4274
4264
|
)), t;
|
|
4275
4265
|
};
|
|
4276
4266
|
(function(e) {
|
|
4277
|
-
var t = fn, n = Ue, a =
|
|
4267
|
+
var t = fn, n = Ue, a = vl, s = Ye, o = n("%Function.prototype.apply%"), r = n("%Function.prototype.call%"), i = n("%Reflect.apply%", !0) || t.call(r, o), l = pn(), c = n("%Math.max%");
|
|
4278
4268
|
e.exports = function(d) {
|
|
4279
4269
|
if (typeof d != "function")
|
|
4280
4270
|
throw new s("a function is required");
|
|
@@ -4290,15 +4280,15 @@ var vl = da, bl = Ue, Wn = gl, xl = vl(), zn = ua, Jn = Ye, kl = bl("%Math.floor
|
|
|
4290
4280
|
};
|
|
4291
4281
|
l ? l(e.exports, "apply", { value: u }) : e.exports.apply = u;
|
|
4292
4282
|
})(ca);
|
|
4293
|
-
var
|
|
4283
|
+
var bl = ca.exports, fa = Ue, pa = bl, xl = pa(fa("String.prototype.indexOf")), kl = function(t, n) {
|
|
4294
4284
|
var a = fa(t, !!n);
|
|
4295
|
-
return typeof a == "function" &&
|
|
4285
|
+
return typeof a == "function" && xl(t, ".prototype.") > -1 ? pa(a) : a;
|
|
4296
4286
|
};
|
|
4297
|
-
const
|
|
4287
|
+
const $l = {}, Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4298
4288
|
__proto__: null,
|
|
4299
|
-
default:
|
|
4300
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4301
|
-
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach,
|
|
4289
|
+
default: $l
|
|
4290
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ po(Sl);
|
|
4291
|
+
var mn = typeof Map == "function" && Map.prototype, Ct = Object.getOwnPropertyDescriptor && mn ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ht = mn && Ct && typeof Ct.get == "function" ? Ct.get : null, Gn = mn && Map.prototype.forEach, hn = typeof Set == "function" && Set.prototype, Pt = Object.getOwnPropertyDescriptor && hn ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, yt = hn && Pt && typeof Pt.get == "function" ? Pt.get : null, Kn = hn && Set.prototype.forEach, jl = typeof WeakMap == "function" && WeakMap.prototype, De = jl ? WeakMap.prototype.has : null, Nl = typeof WeakSet == "function" && WeakSet.prototype, Ve = Nl ? WeakSet.prototype.has : null, Tl = typeof WeakRef == "function" && WeakRef.prototype, Qn = Tl ? WeakRef.prototype.deref : null, Ol = Boolean.prototype.valueOf, Cl = Object.prototype.toString, Pl = Function.prototype.toString, El = String.prototype.match, yn = String.prototype.slice, ve = String.prototype.replace, Rl = String.prototype.toUpperCase, Yn = String.prototype.toLowerCase, ma = RegExp.prototype.test, Xn = Array.prototype.concat, ue = Array.prototype.join, Al = Array.prototype.slice, Zn = Math.floor, Bt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Et = Object.getOwnPropertySymbols, Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _e = typeof Symbol == "function" && typeof Symbol.iterator == "object", X = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _e || !0) ? Symbol.toStringTag : null, ha = Object.prototype.propertyIsEnumerable, er = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
|
|
4302
4292
|
return e.__proto__;
|
|
4303
4293
|
} : null);
|
|
4304
4294
|
function tr(e, t) {
|
|
@@ -4314,7 +4304,7 @@ function tr(e, t) {
|
|
|
4314
4304
|
}
|
|
4315
4305
|
return ve.call(t, n, "$&_");
|
|
4316
4306
|
}
|
|
4317
|
-
var Vt =
|
|
4307
|
+
var Vt = wl, nr = Vt.custom, rr = ga(nr) ? nr : null, Fl = function e(t, n, a, s) {
|
|
4318
4308
|
var o = n || {};
|
|
4319
4309
|
if (ge(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
4320
4310
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4349,13 +4339,13 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4349
4339
|
var u = typeof o.depth > "u" ? 5 : o.depth;
|
|
4350
4340
|
if (typeof a > "u" && (a = 0), a >= u && u > 0 && typeof t == "object")
|
|
4351
4341
|
return Wt(t) ? "[Array]" : "[Object]";
|
|
4352
|
-
var p =
|
|
4342
|
+
var p = Xl(o, a);
|
|
4353
4343
|
if (typeof s > "u")
|
|
4354
4344
|
s = [];
|
|
4355
4345
|
else if (va(s, t) >= 0)
|
|
4356
4346
|
return "[Circular]";
|
|
4357
4347
|
function d(I, H, L) {
|
|
4358
|
-
if (H && (s =
|
|
4348
|
+
if (H && (s = Al.call(s), s.push(H)), L) {
|
|
4359
4349
|
var ee = {
|
|
4360
4350
|
depth: o.depth
|
|
4361
4351
|
};
|
|
@@ -4364,25 +4354,25 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4364
4354
|
return e(I, o, a + 1, s);
|
|
4365
4355
|
}
|
|
4366
4356
|
if (typeof t == "function" && !ar(t)) {
|
|
4367
|
-
var m =
|
|
4357
|
+
var m = Dl(t), h = et(t, d);
|
|
4368
4358
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + ue.call(h, ", ") + " }" : "");
|
|
4369
4359
|
}
|
|
4370
4360
|
if (ga(t)) {
|
|
4371
4361
|
var y = _e ? ve.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(t);
|
|
4372
4362
|
return typeof t == "object" && !_e ? He(y) : y;
|
|
4373
4363
|
}
|
|
4374
|
-
if (
|
|
4364
|
+
if (Kl(t)) {
|
|
4375
4365
|
for (var v = "<" + Yn.call(String(t.nodeName)), b = t.attributes || [], g = 0; g < b.length; g++)
|
|
4376
|
-
v += " " + b[g].name + "=" + ya(
|
|
4366
|
+
v += " " + b[g].name + "=" + ya(ql(b[g].value), "double", o);
|
|
4377
4367
|
return v += ">", t.childNodes && t.childNodes.length && (v += "..."), v += "</" + Yn.call(String(t.nodeName)) + ">", v;
|
|
4378
4368
|
}
|
|
4379
4369
|
if (Wt(t)) {
|
|
4380
4370
|
if (t.length === 0)
|
|
4381
4371
|
return "[]";
|
|
4382
4372
|
var x = et(t, d);
|
|
4383
|
-
return p && !
|
|
4373
|
+
return p && !Yl(x) ? "[" + zt(x, p) + "]" : "[ " + ue.call(x, ", ") + " ]";
|
|
4384
4374
|
}
|
|
4385
|
-
if (
|
|
4375
|
+
if (_l(t)) {
|
|
4386
4376
|
var w = et(t, d);
|
|
4387
4377
|
return !("cause" in Error.prototype) && "cause" in t && !ha.call(t, "cause") ? "{ [" + String(t) + "] " + ue.call(Xn.call("[cause]: " + d(t.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + ue.call(w, ", ") + " }";
|
|
4388
4378
|
}
|
|
@@ -4392,37 +4382,37 @@ var Vt = Ol, nr = Vt.custom, rr = ga(nr) ? nr : null, Ll = function e(t, n, a, s
|
|
|
4392
4382
|
if (r !== "symbol" && typeof t.inspect == "function")
|
|
4393
4383
|
return t.inspect();
|
|
4394
4384
|
}
|
|
4395
|
-
if (
|
|
4385
|
+
if (Vl(t)) {
|
|
4396
4386
|
var S = [];
|
|
4397
4387
|
return Gn && Gn.call(t, function(I, H) {
|
|
4398
4388
|
S.push(d(H, t, !0) + " => " + d(I, t));
|
|
4399
4389
|
}), or("Map", ht.call(t), S, p);
|
|
4400
4390
|
}
|
|
4401
|
-
if (
|
|
4391
|
+
if (Jl(t)) {
|
|
4402
4392
|
var k = [];
|
|
4403
4393
|
return Kn && Kn.call(t, function(I) {
|
|
4404
4394
|
k.push(d(I, t));
|
|
4405
4395
|
}), or("Set", yt.call(t), k, p);
|
|
4406
4396
|
}
|
|
4407
|
-
if (
|
|
4397
|
+
if (Wl(t))
|
|
4408
4398
|
return Rt("WeakMap");
|
|
4409
|
-
if (
|
|
4399
|
+
if (Gl(t))
|
|
4410
4400
|
return Rt("WeakSet");
|
|
4411
|
-
if (
|
|
4401
|
+
if (zl(t))
|
|
4412
4402
|
return Rt("WeakRef");
|
|
4413
|
-
if (
|
|
4403
|
+
if (Ul(t))
|
|
4414
4404
|
return He(d(Number(t)));
|
|
4415
|
-
if (
|
|
4405
|
+
if (Hl(t))
|
|
4416
4406
|
return He(d(Bt.call(t)));
|
|
4417
|
-
if (
|
|
4418
|
-
return He(
|
|
4419
|
-
if (
|
|
4407
|
+
if (Ml(t))
|
|
4408
|
+
return He(Ol.call(t));
|
|
4409
|
+
if (Ll(t))
|
|
4420
4410
|
return He(d(String(t)));
|
|
4421
4411
|
if (typeof window < "u" && t === window)
|
|
4422
4412
|
return "{ [object Window] }";
|
|
4423
4413
|
if (t === ot)
|
|
4424
4414
|
return "{ [object globalThis] }";
|
|
4425
|
-
if (!
|
|
4415
|
+
if (!Il(t) && !ar(t)) {
|
|
4426
4416
|
var C = et(t, d), P = er ? er(t) === Object.prototype : t instanceof Object || t.constructor === Object, R = t instanceof Object ? "" : "null prototype", q = !P && X && Object(t) === t && X in t ? yn.call(xe(t), 8, -1) : R ? "Object" : "", G = P || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", K = G + (q || R ? "[" + ue.call(Xn.call([], q || [], R || []), ": ") + "] " : "");
|
|
4427
4417
|
return C.length === 0 ? K + "{}" : p ? K + "{" + zt(C, p) + "}" : K + "{ " + ue.call(C, ", ") + " }";
|
|
4428
4418
|
}
|
|
@@ -4432,28 +4422,28 @@ function ya(e, t, n) {
|
|
|
4432
4422
|
var a = (n.quoteStyle || t) === "double" ? '"' : "'";
|
|
4433
4423
|
return a + e + a;
|
|
4434
4424
|
}
|
|
4435
|
-
function
|
|
4425
|
+
function ql(e) {
|
|
4436
4426
|
return ve.call(String(e), /"/g, """);
|
|
4437
4427
|
}
|
|
4438
4428
|
function Wt(e) {
|
|
4439
4429
|
return xe(e) === "[object Array]" && (!X || !(typeof e == "object" && X in e));
|
|
4440
4430
|
}
|
|
4441
|
-
function
|
|
4431
|
+
function Il(e) {
|
|
4442
4432
|
return xe(e) === "[object Date]" && (!X || !(typeof e == "object" && X in e));
|
|
4443
4433
|
}
|
|
4444
4434
|
function ar(e) {
|
|
4445
4435
|
return xe(e) === "[object RegExp]" && (!X || !(typeof e == "object" && X in e));
|
|
4446
4436
|
}
|
|
4447
|
-
function
|
|
4437
|
+
function _l(e) {
|
|
4448
4438
|
return xe(e) === "[object Error]" && (!X || !(typeof e == "object" && X in e));
|
|
4449
4439
|
}
|
|
4450
|
-
function
|
|
4440
|
+
function Ll(e) {
|
|
4451
4441
|
return xe(e) === "[object String]" && (!X || !(typeof e == "object" && X in e));
|
|
4452
4442
|
}
|
|
4453
|
-
function
|
|
4443
|
+
function Ul(e) {
|
|
4454
4444
|
return xe(e) === "[object Number]" && (!X || !(typeof e == "object" && X in e));
|
|
4455
4445
|
}
|
|
4456
|
-
function
|
|
4446
|
+
function Ml(e) {
|
|
4457
4447
|
return xe(e) === "[object Boolean]" && (!X || !(typeof e == "object" && X in e));
|
|
4458
4448
|
}
|
|
4459
4449
|
function ga(e) {
|
|
@@ -4469,7 +4459,7 @@ function ga(e) {
|
|
|
4469
4459
|
}
|
|
4470
4460
|
return !1;
|
|
4471
4461
|
}
|
|
4472
|
-
function
|
|
4462
|
+
function Hl(e) {
|
|
4473
4463
|
if (!e || typeof e != "object" || !Bt)
|
|
4474
4464
|
return !1;
|
|
4475
4465
|
try {
|
|
@@ -4478,19 +4468,19 @@ function Wl(e) {
|
|
|
4478
4468
|
}
|
|
4479
4469
|
return !1;
|
|
4480
4470
|
}
|
|
4481
|
-
var
|
|
4471
|
+
var Bl = Object.prototype.hasOwnProperty || function(e) {
|
|
4482
4472
|
return e in this;
|
|
4483
4473
|
};
|
|
4484
4474
|
function ge(e, t) {
|
|
4485
|
-
return
|
|
4475
|
+
return Bl.call(e, t);
|
|
4486
4476
|
}
|
|
4487
4477
|
function xe(e) {
|
|
4488
|
-
return
|
|
4478
|
+
return Cl.call(e);
|
|
4489
4479
|
}
|
|
4490
|
-
function
|
|
4480
|
+
function Dl(e) {
|
|
4491
4481
|
if (e.name)
|
|
4492
4482
|
return e.name;
|
|
4493
|
-
var t =
|
|
4483
|
+
var t = El.call(Pl.call(e), /^function\s*([\w$]+)/);
|
|
4494
4484
|
return t ? t[1] : null;
|
|
4495
4485
|
}
|
|
4496
4486
|
function va(e, t) {
|
|
@@ -4501,7 +4491,7 @@ function va(e, t) {
|
|
|
4501
4491
|
return n;
|
|
4502
4492
|
return -1;
|
|
4503
4493
|
}
|
|
4504
|
-
function
|
|
4494
|
+
function Vl(e) {
|
|
4505
4495
|
if (!ht || !e || typeof e != "object")
|
|
4506
4496
|
return !1;
|
|
4507
4497
|
try {
|
|
@@ -4516,7 +4506,7 @@ function Gl(e) {
|
|
|
4516
4506
|
}
|
|
4517
4507
|
return !1;
|
|
4518
4508
|
}
|
|
4519
|
-
function
|
|
4509
|
+
function Wl(e) {
|
|
4520
4510
|
if (!De || !e || typeof e != "object")
|
|
4521
4511
|
return !1;
|
|
4522
4512
|
try {
|
|
@@ -4531,7 +4521,7 @@ function Kl(e) {
|
|
|
4531
4521
|
}
|
|
4532
4522
|
return !1;
|
|
4533
4523
|
}
|
|
4534
|
-
function
|
|
4524
|
+
function zl(e) {
|
|
4535
4525
|
if (!Qn || !e || typeof e != "object")
|
|
4536
4526
|
return !1;
|
|
4537
4527
|
try {
|
|
@@ -4540,7 +4530,7 @@ function Ql(e) {
|
|
|
4540
4530
|
}
|
|
4541
4531
|
return !1;
|
|
4542
4532
|
}
|
|
4543
|
-
function
|
|
4533
|
+
function Jl(e) {
|
|
4544
4534
|
if (!yt || !e || typeof e != "object")
|
|
4545
4535
|
return !1;
|
|
4546
4536
|
try {
|
|
@@ -4555,7 +4545,7 @@ function Yl(e) {
|
|
|
4555
4545
|
}
|
|
4556
4546
|
return !1;
|
|
4557
4547
|
}
|
|
4558
|
-
function
|
|
4548
|
+
function Gl(e) {
|
|
4559
4549
|
if (!Ve || !e || typeof e != "object")
|
|
4560
4550
|
return !1;
|
|
4561
4551
|
try {
|
|
@@ -4570,7 +4560,7 @@ function Xl(e) {
|
|
|
4570
4560
|
}
|
|
4571
4561
|
return !1;
|
|
4572
4562
|
}
|
|
4573
|
-
function
|
|
4563
|
+
function Kl(e) {
|
|
4574
4564
|
return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function";
|
|
4575
4565
|
}
|
|
4576
4566
|
function ba(e, t) {
|
|
@@ -4578,10 +4568,10 @@ function ba(e, t) {
|
|
|
4578
4568
|
var n = e.length - t.maxStringLength, a = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
4579
4569
|
return ba(yn.call(e, 0, t.maxStringLength), t) + a;
|
|
4580
4570
|
}
|
|
4581
|
-
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
4571
|
+
var s = ve.call(ve.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ql);
|
|
4582
4572
|
return ya(s, "single", t);
|
|
4583
4573
|
}
|
|
4584
|
-
function
|
|
4574
|
+
function Ql(e) {
|
|
4585
4575
|
var t = e.charCodeAt(0), n = {
|
|
4586
4576
|
8: "b",
|
|
4587
4577
|
9: "t",
|
|
@@ -4589,7 +4579,7 @@ function ec(e) {
|
|
|
4589
4579
|
12: "f",
|
|
4590
4580
|
13: "r"
|
|
4591
4581
|
}[t];
|
|
4592
|
-
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") +
|
|
4582
|
+
return n ? "\\" + n : "\\x" + (t < 16 ? "0" : "") + Rl.call(t.toString(16));
|
|
4593
4583
|
}
|
|
4594
4584
|
function He(e) {
|
|
4595
4585
|
return "Object(" + e + ")";
|
|
@@ -4601,14 +4591,14 @@ function or(e, t, n, a) {
|
|
|
4601
4591
|
var s = a ? zt(n, a) : ue.call(n, ", ");
|
|
4602
4592
|
return e + " (" + t + ") {" + s + "}";
|
|
4603
4593
|
}
|
|
4604
|
-
function
|
|
4594
|
+
function Yl(e) {
|
|
4605
4595
|
for (var t = 0; t < e.length; t++)
|
|
4606
4596
|
if (va(e[t], `
|
|
4607
4597
|
`) >= 0)
|
|
4608
4598
|
return !1;
|
|
4609
4599
|
return !0;
|
|
4610
4600
|
}
|
|
4611
|
-
function
|
|
4601
|
+
function Xl(e, t) {
|
|
4612
4602
|
var n;
|
|
4613
4603
|
if (e.indent === " ")
|
|
4614
4604
|
n = " ";
|
|
@@ -4649,15 +4639,15 @@ function et(e, t) {
|
|
|
4649
4639
|
ha.call(e, o[c]) && a.push("[" + t(o[c]) + "]: " + t(e[o[c]], e));
|
|
4650
4640
|
return a;
|
|
4651
4641
|
}
|
|
4652
|
-
var xa = Ue, Me =
|
|
4642
|
+
var xa = Ue, Me = kl, Zl = Fl, ec = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%", !0), tc = Me("WeakMap.prototype.get", !0), nc = Me("WeakMap.prototype.set", !0), rc = Me("WeakMap.prototype.has", !0), ac = Me("Map.prototype.get", !0), oc = Me("Map.prototype.set", !0), ic = Me("Map.prototype.has", !0), gn = function(e, t) {
|
|
4653
4643
|
for (var n = e, a; (a = n.next) !== null; n = a)
|
|
4654
4644
|
if (a.key === t)
|
|
4655
4645
|
return n.next = a.next, a.next = /** @type {NonNullable<typeof list.next>} */
|
|
4656
4646
|
e.next, e.next = a, a;
|
|
4657
|
-
},
|
|
4647
|
+
}, sc = function(e, t) {
|
|
4658
4648
|
var n = gn(e, t);
|
|
4659
4649
|
return n && n.value;
|
|
4660
|
-
},
|
|
4650
|
+
}, lc = function(e, t, n) {
|
|
4661
4651
|
var a = gn(e, t);
|
|
4662
4652
|
a ? a.value = n : e.next = /** @type {import('.').ListNode<typeof value>} */
|
|
4663
4653
|
{
|
|
@@ -4666,48 +4656,48 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4666
4656
|
next: e.next,
|
|
4667
4657
|
value: n
|
|
4668
4658
|
};
|
|
4669
|
-
},
|
|
4659
|
+
}, cc = function(e, t) {
|
|
4670
4660
|
return !!gn(e, t);
|
|
4671
|
-
},
|
|
4661
|
+
}, uc = function() {
|
|
4672
4662
|
var t, n, a, s = {
|
|
4673
4663
|
assert: function(o) {
|
|
4674
4664
|
if (!s.has(o))
|
|
4675
|
-
throw new
|
|
4665
|
+
throw new ec("Side channel does not contain " + Zl(o));
|
|
4676
4666
|
},
|
|
4677
4667
|
get: function(o) {
|
|
4678
4668
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4679
4669
|
if (t)
|
|
4680
|
-
return
|
|
4670
|
+
return tc(t, o);
|
|
4681
4671
|
} else if (nt) {
|
|
4682
4672
|
if (n)
|
|
4683
|
-
return
|
|
4673
|
+
return ac(n, o);
|
|
4684
4674
|
} else if (a)
|
|
4685
|
-
return
|
|
4675
|
+
return sc(a, o);
|
|
4686
4676
|
},
|
|
4687
4677
|
has: function(o) {
|
|
4688
4678
|
if (tt && o && (typeof o == "object" || typeof o == "function")) {
|
|
4689
4679
|
if (t)
|
|
4690
|
-
return
|
|
4680
|
+
return rc(t, o);
|
|
4691
4681
|
} else if (nt) {
|
|
4692
4682
|
if (n)
|
|
4693
|
-
return
|
|
4683
|
+
return ic(n, o);
|
|
4694
4684
|
} else if (a)
|
|
4695
|
-
return
|
|
4685
|
+
return cc(a, o);
|
|
4696
4686
|
return !1;
|
|
4697
4687
|
},
|
|
4698
4688
|
set: function(o, r) {
|
|
4699
|
-
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()),
|
|
4689
|
+
tt && o && (typeof o == "object" || typeof o == "function") ? (t || (t = new tt()), nc(t, o, r)) : nt ? (n || (n = new nt()), oc(n, o, r)) : (a || (a = { key: {}, next: null }), lc(a, o, r));
|
|
4700
4690
|
}
|
|
4701
4691
|
};
|
|
4702
4692
|
return s;
|
|
4703
|
-
},
|
|
4693
|
+
}, dc = String.prototype.replace, fc = /%20/g, At = {
|
|
4704
4694
|
RFC1738: "RFC1738",
|
|
4705
4695
|
RFC3986: "RFC3986"
|
|
4706
4696
|
}, vn = {
|
|
4707
4697
|
default: At.RFC3986,
|
|
4708
4698
|
formatters: {
|
|
4709
4699
|
RFC1738: function(e) {
|
|
4710
|
-
return
|
|
4700
|
+
return dc.call(e, fc, "+");
|
|
4711
4701
|
},
|
|
4712
4702
|
RFC3986: function(e) {
|
|
4713
4703
|
return String(e);
|
|
@@ -4715,11 +4705,11 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4715
4705
|
},
|
|
4716
4706
|
RFC1738: At.RFC1738,
|
|
4717
4707
|
RFC3986: At.RFC3986
|
|
4718
|
-
},
|
|
4708
|
+
}, pc = vn, Ft = Object.prototype.hasOwnProperty, $e = Array.isArray, le = function() {
|
|
4719
4709
|
for (var e = [], t = 0; t < 256; ++t)
|
|
4720
4710
|
e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
4721
4711
|
return e;
|
|
4722
|
-
}(),
|
|
4712
|
+
}(), mc = function(t) {
|
|
4723
4713
|
for (; t.length > 1; ) {
|
|
4724
4714
|
var n = t.pop(), a = n.obj[n.prop];
|
|
4725
4715
|
if ($e(a)) {
|
|
@@ -4732,7 +4722,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4732
4722
|
for (var a = n && n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < t.length; ++s)
|
|
4733
4723
|
typeof t[s] < "u" && (a[s] = t[s]);
|
|
4734
4724
|
return a;
|
|
4735
|
-
},
|
|
4725
|
+
}, hc = function e(t, n, a) {
|
|
4736
4726
|
if (!n)
|
|
4737
4727
|
return t;
|
|
4738
4728
|
if (typeof n != "object") {
|
|
@@ -4757,11 +4747,11 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4757
4747
|
var i = n[r];
|
|
4758
4748
|
return Ft.call(o, r) ? o[r] = e(o[r], i, a) : o[r] = i, o;
|
|
4759
4749
|
}, s);
|
|
4760
|
-
},
|
|
4750
|
+
}, yc = function(t, n) {
|
|
4761
4751
|
return Object.keys(n).reduce(function(a, s) {
|
|
4762
4752
|
return a[s] = n[s], a;
|
|
4763
4753
|
}, t);
|
|
4764
|
-
},
|
|
4754
|
+
}, gc = function(e, t, n) {
|
|
4765
4755
|
var a = e.replace(/\+/g, " ");
|
|
4766
4756
|
if (n === "iso-8859-1")
|
|
4767
4757
|
return a.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -4770,7 +4760,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4770
4760
|
} catch {
|
|
4771
4761
|
return a;
|
|
4772
4762
|
}
|
|
4773
|
-
}, qt = 1024,
|
|
4763
|
+
}, qt = 1024, vc = function(t, n, a, s, o) {
|
|
4774
4764
|
if (t.length === 0)
|
|
4775
4765
|
return t;
|
|
4776
4766
|
var r = t;
|
|
@@ -4781,7 +4771,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4781
4771
|
for (var i = "", l = 0; l < r.length; l += qt) {
|
|
4782
4772
|
for (var c = r.length >= qt ? r.slice(l, l + qt) : r, u = [], p = 0; p < c.length; ++p) {
|
|
4783
4773
|
var d = c.charCodeAt(p);
|
|
4784
|
-
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o ===
|
|
4774
|
+
if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || o === pc.RFC1738 && (d === 40 || d === 41)) {
|
|
4785
4775
|
u[u.length] = c.charAt(p);
|
|
4786
4776
|
continue;
|
|
4787
4777
|
}
|
|
@@ -4802,20 +4792,20 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4802
4792
|
i += u.join("");
|
|
4803
4793
|
}
|
|
4804
4794
|
return i;
|
|
4805
|
-
},
|
|
4795
|
+
}, bc = function(t) {
|
|
4806
4796
|
for (var n = [{ obj: { o: t }, prop: "o" }], a = [], s = 0; s < n.length; ++s)
|
|
4807
4797
|
for (var o = n[s], r = o.obj[o.prop], i = Object.keys(r), l = 0; l < i.length; ++l) {
|
|
4808
4798
|
var c = i[l], u = r[c];
|
|
4809
4799
|
typeof u == "object" && u !== null && a.indexOf(u) === -1 && (n.push({ obj: r, prop: c }), a.push(u));
|
|
4810
4800
|
}
|
|
4811
|
-
return
|
|
4812
|
-
},
|
|
4801
|
+
return mc(n), t;
|
|
4802
|
+
}, xc = function(t) {
|
|
4813
4803
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
4814
|
-
},
|
|
4804
|
+
}, kc = function(t) {
|
|
4815
4805
|
return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
|
|
4816
|
-
},
|
|
4806
|
+
}, $c = function(t, n) {
|
|
4817
4807
|
return [].concat(t, n);
|
|
4818
|
-
},
|
|
4808
|
+
}, Sc = function(t, n) {
|
|
4819
4809
|
if ($e(t)) {
|
|
4820
4810
|
for (var a = [], s = 0; s < t.length; s += 1)
|
|
4821
4811
|
a.push(n(t[s]));
|
|
@@ -4824,16 +4814,16 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4824
4814
|
return n(t);
|
|
4825
4815
|
}, $a = {
|
|
4826
4816
|
arrayToObject: ka,
|
|
4827
|
-
assign:
|
|
4828
|
-
combine:
|
|
4829
|
-
compact:
|
|
4830
|
-
decode:
|
|
4831
|
-
encode:
|
|
4832
|
-
isBuffer:
|
|
4833
|
-
isRegExp:
|
|
4834
|
-
maybeMap:
|
|
4835
|
-
merge:
|
|
4836
|
-
}, Sa =
|
|
4817
|
+
assign: yc,
|
|
4818
|
+
combine: $c,
|
|
4819
|
+
compact: bc,
|
|
4820
|
+
decode: gc,
|
|
4821
|
+
encode: vc,
|
|
4822
|
+
isBuffer: kc,
|
|
4823
|
+
isRegExp: xc,
|
|
4824
|
+
maybeMap: Sc,
|
|
4825
|
+
merge: hc
|
|
4826
|
+
}, Sa = uc, lt = $a, We = vn, wc = Object.prototype.hasOwnProperty, wa = {
|
|
4837
4827
|
brackets: function(t) {
|
|
4838
4828
|
return t + "[]";
|
|
4839
4829
|
},
|
|
@@ -4844,9 +4834,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4844
4834
|
repeat: function(t) {
|
|
4845
4835
|
return t;
|
|
4846
4836
|
}
|
|
4847
|
-
}, ce = Array.isArray,
|
|
4848
|
-
|
|
4849
|
-
},
|
|
4837
|
+
}, ce = Array.isArray, jc = Array.prototype.push, ja = function(e, t) {
|
|
4838
|
+
jc.apply(e, ce(t) ? t : [t]);
|
|
4839
|
+
}, Nc = Date.prototype.toISOString, ir = We.default, B = {
|
|
4850
4840
|
addQueryPrefix: !1,
|
|
4851
4841
|
allowDots: !1,
|
|
4852
4842
|
allowEmptyArrays: !1,
|
|
@@ -4863,13 +4853,13 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4863
4853
|
// deprecated
|
|
4864
4854
|
indices: !1,
|
|
4865
4855
|
serializeDate: function(t) {
|
|
4866
|
-
return
|
|
4856
|
+
return Nc.call(t);
|
|
4867
4857
|
},
|
|
4868
4858
|
skipNulls: !1,
|
|
4869
4859
|
strictNullHandling: !1
|
|
4870
|
-
},
|
|
4860
|
+
}, Tc = function(t) {
|
|
4871
4861
|
return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
|
|
4872
|
-
}, It = {},
|
|
4862
|
+
}, It = {}, Oc = function e(t, n, a, s, o, r, i, l, c, u, p, d, m, h, y, v, b, g) {
|
|
4873
4863
|
for (var x = t, w = g, S = 0, k = !1; (w = w.get(It)) !== void 0 && !k; ) {
|
|
4874
4864
|
var C = w.get(t);
|
|
4875
4865
|
if (S += 1, typeof C < "u") {
|
|
@@ -4886,7 +4876,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4886
4876
|
return c && !v ? c(n, B.encoder, b, "key", h) : n;
|
|
4887
4877
|
x = "";
|
|
4888
4878
|
}
|
|
4889
|
-
if (
|
|
4879
|
+
if (Tc(x) || lt.isBuffer(x)) {
|
|
4890
4880
|
if (c) {
|
|
4891
4881
|
var P = v ? n : c(n, B.encoder, b, "key", h);
|
|
4892
4882
|
return [y(P) + "=" + y(c(x, B.encoder, b, "value", h))];
|
|
@@ -4937,7 +4927,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4937
4927
|
}
|
|
4938
4928
|
}
|
|
4939
4929
|
return R;
|
|
4940
|
-
},
|
|
4930
|
+
}, Cc = function(t) {
|
|
4941
4931
|
if (!t)
|
|
4942
4932
|
return B;
|
|
4943
4933
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -4951,7 +4941,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4951
4941
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4952
4942
|
var a = We.default;
|
|
4953
4943
|
if (typeof t.format < "u") {
|
|
4954
|
-
if (!
|
|
4944
|
+
if (!wc.call(We.formatters, t.format))
|
|
4955
4945
|
throw new TypeError("Unknown format option provided.");
|
|
4956
4946
|
a = t.format;
|
|
4957
4947
|
}
|
|
@@ -4982,8 +4972,8 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4982
4972
|
sort: typeof t.sort == "function" ? t.sort : null,
|
|
4983
4973
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : B.strictNullHandling
|
|
4984
4974
|
};
|
|
4985
|
-
},
|
|
4986
|
-
var n = e, a =
|
|
4975
|
+
}, Pc = function(e, t) {
|
|
4976
|
+
var n = e, a = Cc(t), s, o;
|
|
4987
4977
|
typeof a.filter == "function" ? (o = a.filter, n = o("", n)) : ce(a.filter) && (o = a.filter, s = o);
|
|
4988
4978
|
var r = [];
|
|
4989
4979
|
if (typeof n != "object" || n === null)
|
|
@@ -4992,7 +4982,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
4992
4982
|
s || (s = Object.keys(n)), a.sort && s.sort(a.sort);
|
|
4993
4983
|
for (var c = Sa(), u = 0; u < s.length; ++u) {
|
|
4994
4984
|
var p = s[u];
|
|
4995
|
-
a.skipNulls && n[p] === null || ja(r,
|
|
4985
|
+
a.skipNulls && n[p] === null || ja(r, Oc(
|
|
4996
4986
|
n[p],
|
|
4997
4987
|
p,
|
|
4998
4988
|
i,
|
|
@@ -5015,7 +5005,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5015
5005
|
}
|
|
5016
5006
|
var d = r.join(a.delimiter), m = a.addQueryPrefix === !0 ? "?" : "";
|
|
5017
5007
|
return a.charsetSentinel && (a.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), d.length > 0 ? m + d : "";
|
|
5018
|
-
}, Le = $a, Jt = Object.prototype.hasOwnProperty,
|
|
5008
|
+
}, Le = $a, Jt = Object.prototype.hasOwnProperty, Ec = Array.isArray, M = {
|
|
5019
5009
|
allowDots: !1,
|
|
5020
5010
|
allowEmptyArrays: !1,
|
|
5021
5011
|
allowPrototypes: !1,
|
|
@@ -5035,17 +5025,17 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5035
5025
|
parseArrays: !0,
|
|
5036
5026
|
plainObjects: !1,
|
|
5037
5027
|
strictNullHandling: !1
|
|
5038
|
-
},
|
|
5028
|
+
}, Rc = function(e) {
|
|
5039
5029
|
return e.replace(/&#(\d+);/g, function(t, n) {
|
|
5040
5030
|
return String.fromCharCode(parseInt(n, 10));
|
|
5041
5031
|
});
|
|
5042
5032
|
}, Na = function(e, t) {
|
|
5043
5033
|
return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e;
|
|
5044
|
-
},
|
|
5034
|
+
}, Ac = "utf8=%26%2310003%3B", Fc = "utf8=%E2%9C%93", qc = function(t, n) {
|
|
5045
5035
|
var a = { __proto__: null }, s = n.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, r = s.split(n.delimiter, o), i = -1, l, c = n.charset;
|
|
5046
5036
|
if (n.charsetSentinel)
|
|
5047
5037
|
for (l = 0; l < r.length; ++l)
|
|
5048
|
-
r[l].indexOf("utf8=") === 0 && (r[l] ===
|
|
5038
|
+
r[l].indexOf("utf8=") === 0 && (r[l] === Fc ? c = "utf-8" : r[l] === Ac && (c = "iso-8859-1"), i = l, l = r.length);
|
|
5049
5039
|
for (l = 0; l < r.length; ++l)
|
|
5050
5040
|
if (l !== i) {
|
|
5051
5041
|
var u = r[l], p = u.indexOf("]="), d = p === -1 ? u.indexOf("=") : p + 1, m, h;
|
|
@@ -5054,12 +5044,12 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5054
5044
|
function(v) {
|
|
5055
5045
|
return n.decoder(v, M.decoder, c, "value");
|
|
5056
5046
|
}
|
|
5057
|
-
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h =
|
|
5047
|
+
)), h && n.interpretNumericEntities && c === "iso-8859-1" && (h = Rc(h)), u.indexOf("[]=") > -1 && (h = Ec(h) ? [h] : h);
|
|
5058
5048
|
var y = Jt.call(a, m);
|
|
5059
5049
|
y && n.duplicates === "combine" ? a[m] = Le.combine(a[m], h) : (!y || n.duplicates === "last") && (a[m] = h);
|
|
5060
5050
|
}
|
|
5061
5051
|
return a;
|
|
5062
|
-
},
|
|
5052
|
+
}, Ic = function(e, t, n, a) {
|
|
5063
5053
|
for (var s = a ? t : Na(t, n), o = e.length - 1; o >= 0; --o) {
|
|
5064
5054
|
var r, i = e[o];
|
|
5065
5055
|
if (i === "[]" && n.parseArrays)
|
|
@@ -5072,7 +5062,7 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5072
5062
|
s = r;
|
|
5073
5063
|
}
|
|
5074
5064
|
return s;
|
|
5075
|
-
},
|
|
5065
|
+
}, _c = function(t, n, a, s) {
|
|
5076
5066
|
if (t) {
|
|
5077
5067
|
var o = a.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, r = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = a.depth > 0 && r.exec(o), c = l ? o.slice(0, l.index) : o, u = [];
|
|
5078
5068
|
if (c) {
|
|
@@ -5085,9 +5075,9 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5085
5075
|
return;
|
|
5086
5076
|
u.push(l[1]);
|
|
5087
5077
|
}
|
|
5088
|
-
return l && u.push("[" + o.slice(l.index) + "]"),
|
|
5078
|
+
return l && u.push("[" + o.slice(l.index) + "]"), Ic(u, n, a, s);
|
|
5089
5079
|
}
|
|
5090
|
-
},
|
|
5080
|
+
}, Lc = function(t) {
|
|
5091
5081
|
if (!t)
|
|
5092
5082
|
return M;
|
|
5093
5083
|
if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
|
|
@@ -5124,24 +5114,24 @@ var xa = Ue, Me = jl, rc = Ll, ac = Ye, tt = xa("%WeakMap%", !0), nt = xa("%Map%
|
|
|
5124
5114
|
plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : M.plainObjects,
|
|
5125
5115
|
strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : M.strictNullHandling
|
|
5126
5116
|
};
|
|
5127
|
-
},
|
|
5128
|
-
var n =
|
|
5117
|
+
}, Uc = function(e, t) {
|
|
5118
|
+
var n = Lc(t);
|
|
5129
5119
|
if (e === "" || e === null || typeof e > "u")
|
|
5130
5120
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
5131
|
-
for (var a = typeof e == "string" ?
|
|
5132
|
-
var i = o[r], l =
|
|
5121
|
+
for (var a = typeof e == "string" ? qc(e, n) : e, s = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(a), r = 0; r < o.length; ++r) {
|
|
5122
|
+
var i = o[r], l = _c(i, a[i], n, typeof e == "string");
|
|
5133
5123
|
s = Le.merge(s, l, n);
|
|
5134
5124
|
}
|
|
5135
5125
|
return n.allowSparse === !0 ? s : Le.compact(s);
|
|
5136
|
-
},
|
|
5137
|
-
formats:
|
|
5138
|
-
parse:
|
|
5139
|
-
stringify:
|
|
5140
|
-
},
|
|
5126
|
+
}, Mc = Pc, Hc = Uc, Bc = vn, ct = {
|
|
5127
|
+
formats: Bc,
|
|
5128
|
+
parse: Hc,
|
|
5129
|
+
stringify: Mc
|
|
5130
|
+
}, Dc = js;
|
|
5141
5131
|
function oe() {
|
|
5142
5132
|
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;
|
|
5143
5133
|
}
|
|
5144
|
-
var
|
|
5134
|
+
var Vc = /^([a-z0-9.+-]+:)/i, Wc = /:[0-9]*$/, zc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Jc = [
|
|
5145
5135
|
"<",
|
|
5146
5136
|
">",
|
|
5147
5137
|
'"',
|
|
@@ -5151,14 +5141,14 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5151
5141
|
`
|
|
5152
5142
|
`,
|
|
5153
5143
|
" "
|
|
5154
|
-
],
|
|
5144
|
+
], Gc = [
|
|
5155
5145
|
"{",
|
|
5156
5146
|
"}",
|
|
5157
5147
|
"|",
|
|
5158
5148
|
"\\",
|
|
5159
5149
|
"^",
|
|
5160
5150
|
"`"
|
|
5161
|
-
].concat(
|
|
5151
|
+
].concat(Jc), Gt = ["'"].concat(Gc), sr = [
|
|
5162
5152
|
"%",
|
|
5163
5153
|
"/",
|
|
5164
5154
|
"?",
|
|
@@ -5168,7 +5158,7 @@ var Gc = /^([a-z0-9.+-]+:)/i, Kc = /:[0-9]*$/, Qc = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5168
5158
|
"/",
|
|
5169
5159
|
"?",
|
|
5170
5160
|
"#"
|
|
5171
|
-
],
|
|
5161
|
+
], Kc = 255, cr = /^[+a-z0-9A-Z_-]{0,63}$/, Qc = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Yc = {
|
|
5172
5162
|
javascript: !0,
|
|
5173
5163
|
"javascript:": !0
|
|
5174
5164
|
}, Kt = {
|
|
@@ -5199,11 +5189,11 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5199
5189
|
o[0] = o[0].replace(r, "/"), e = o.join(s);
|
|
5200
5190
|
var i = e;
|
|
5201
5191
|
if (i = i.trim(), !n && e.split("#").length === 1) {
|
|
5202
|
-
var l =
|
|
5192
|
+
var l = zc.exec(i);
|
|
5203
5193
|
if (l)
|
|
5204
5194
|
return this.path = i, this.href = i, this.pathname = l[1], l[2] ? (this.search = l[2], t ? this.query = Qt.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
|
|
5205
5195
|
}
|
|
5206
|
-
var c =
|
|
5196
|
+
var c = Vc.exec(i);
|
|
5207
5197
|
if (c) {
|
|
5208
5198
|
c = c[0];
|
|
5209
5199
|
var u = c.toLowerCase();
|
|
@@ -5233,17 +5223,17 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5233
5223
|
for (var S = "", k = 0, C = w.length; k < C; k++)
|
|
5234
5224
|
w.charCodeAt(k) > 127 ? S += "x" : S += w[k];
|
|
5235
5225
|
if (!S.match(cr)) {
|
|
5236
|
-
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(
|
|
5226
|
+
var P = g.slice(0, m), R = g.slice(m + 1), q = w.match(Qc);
|
|
5237
5227
|
q && (P.push(q[1]), R.unshift(q[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = P.join(".");
|
|
5238
5228
|
break;
|
|
5239
5229
|
}
|
|
5240
5230
|
}
|
|
5241
5231
|
}
|
|
5242
|
-
this.hostname.length >
|
|
5232
|
+
this.hostname.length > Kc ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), b || (this.hostname = Dc.toASCII(this.hostname));
|
|
5243
5233
|
var G = this.port ? ":" + this.port : "", K = this.hostname || "";
|
|
5244
5234
|
this.host = K + G, this.href += this.host, b && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
|
|
5245
5235
|
}
|
|
5246
|
-
if (!
|
|
5236
|
+
if (!Yc[u])
|
|
5247
5237
|
for (var m = 0, x = Gt.length; m < x; m++) {
|
|
5248
5238
|
var I = Gt[m];
|
|
5249
5239
|
if (i.indexOf(I) !== -1) {
|
|
@@ -5260,7 +5250,7 @@ oe.prototype.parse = function(e, t, n) {
|
|
|
5260
5250
|
}
|
|
5261
5251
|
return this.href = this.format(), this;
|
|
5262
5252
|
};
|
|
5263
|
-
function
|
|
5253
|
+
function Xc(e) {
|
|
5264
5254
|
return typeof e == "string" && (e = bn(e)), e instanceof oe ? e.format() : oe.prototype.format.call(e);
|
|
5265
5255
|
}
|
|
5266
5256
|
oe.prototype.format = function() {
|
|
@@ -5347,15 +5337,15 @@ oe.prototype.resolveObject = function(e) {
|
|
|
5347
5337
|
return v = v || n.host && g.length, v && !q && 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;
|
|
5348
5338
|
};
|
|
5349
5339
|
oe.prototype.parseHost = function() {
|
|
5350
|
-
var e = this.host, t =
|
|
5340
|
+
var e = this.host, t = Wc.exec(e);
|
|
5351
5341
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
5352
5342
|
};
|
|
5353
|
-
var
|
|
5343
|
+
var Zc = bn, ur = Xc, eu = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), tu = class {
|
|
5354
5344
|
constructor(e, t = {}) {
|
|
5355
5345
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
5356
5346
|
harIsAlreadyEncoded: !1,
|
|
5357
5347
|
...t
|
|
5358
|
-
}, this.requests = [],
|
|
5348
|
+
}, this.requests = [], eu(e) ? this.entries = e.log.entries : this.entries = [
|
|
5359
5349
|
{
|
|
5360
5350
|
request: e
|
|
5361
5351
|
}
|
|
@@ -5445,7 +5435,7 @@ var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5445
5435
|
const s = {
|
|
5446
5436
|
...n.allHeaders,
|
|
5447
5437
|
...n.headersObj
|
|
5448
|
-
}, o =
|
|
5438
|
+
}, o = Zc(n.url, !0, !0);
|
|
5449
5439
|
n.queryObj = {
|
|
5450
5440
|
...n.queryObj,
|
|
5451
5441
|
...o.query
|
|
@@ -5480,21 +5470,21 @@ var ru = bn, ur = nu, au = (e) => typeof e == "object" && "log" in e && typeof e
|
|
|
5480
5470
|
}
|
|
5481
5471
|
convert(e, t, n) {
|
|
5482
5472
|
this.initCalled || this.init(), !n && t && (n = t);
|
|
5483
|
-
const a =
|
|
5473
|
+
const a = ws[e];
|
|
5484
5474
|
if (!a)
|
|
5485
5475
|
return !1;
|
|
5486
5476
|
const { convert: s } = a.clientsById[t || a.info.default];
|
|
5487
5477
|
return this.requests.map((r) => s(r, n));
|
|
5488
5478
|
}
|
|
5489
5479
|
};
|
|
5490
|
-
const Ta =
|
|
5480
|
+
const Ta = oo(
|
|
5491
5481
|
void 0
|
|
5492
|
-
),
|
|
5493
|
-
const e =
|
|
5482
|
+
), Eu = Ta.Provider, nu = () => {
|
|
5483
|
+
const e = io(Ta);
|
|
5494
5484
|
if (!e)
|
|
5495
5485
|
throw new Error("useOasConfig must be used within a OasConfigProvider");
|
|
5496
5486
|
return e.config;
|
|
5497
|
-
},
|
|
5487
|
+
}, ru = ({
|
|
5498
5488
|
server: e,
|
|
5499
5489
|
operation: t
|
|
5500
5490
|
}) => {
|
|
@@ -5554,8 +5544,8 @@ const Ta = uo(
|
|
|
5554
5544
|
),
|
|
5555
5545
|
children: e
|
|
5556
5546
|
}
|
|
5557
|
-
),
|
|
5558
|
-
function
|
|
5547
|
+
), au = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Ge = (e, t) => e.example !== void 0 ? e.example : e.default !== void 0 ? e.default : e.examples && au(e.examples) ? Object.values(e.examples)[0] : ou(e);
|
|
5548
|
+
function ou(e, t) {
|
|
5559
5549
|
const n = Object.entries(e.properties ?? {}).concat(
|
|
5560
5550
|
Object.entries(e.additionalProperties ?? {})
|
|
5561
5551
|
);
|
|
@@ -5570,7 +5560,7 @@ function cu(e, t) {
|
|
|
5570
5560
|
return a !== void 0 ? [a] : [];
|
|
5571
5561
|
}
|
|
5572
5562
|
}
|
|
5573
|
-
const
|
|
5563
|
+
const iu = ({ content: e }) => {
|
|
5574
5564
|
var t;
|
|
5575
5565
|
return e.length ? /* @__PURE__ */ f.jsx(f.Fragment, { children: /* @__PURE__ */ f.jsxs(xn, { children: [
|
|
5576
5566
|
/* @__PURE__ */ f.jsx(kn, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ f.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
@@ -5589,7 +5579,7 @@ const uu = ({ content: e }) => {
|
|
|
5589
5579
|
}
|
|
5590
5580
|
) })
|
|
5591
5581
|
] }) }) : null;
|
|
5592
|
-
},
|
|
5582
|
+
}, su = ({
|
|
5593
5583
|
responses: e,
|
|
5594
5584
|
selectedResponse: t,
|
|
5595
5585
|
onSelectResponse: n
|
|
@@ -5637,7 +5627,7 @@ const uu = ({ content: e }) => {
|
|
|
5637
5627
|
]
|
|
5638
5628
|
}
|
|
5639
5629
|
) });
|
|
5640
|
-
},
|
|
5630
|
+
}, lu = (e, t) => {
|
|
5641
5631
|
let n;
|
|
5642
5632
|
switch (t) {
|
|
5643
5633
|
case "shell":
|
|
@@ -5687,7 +5677,7 @@ const uu = ({ content: e }) => {
|
|
|
5687
5677
|
}
|
|
5688
5678
|
}
|
|
5689
5679
|
`
|
|
5690
|
-
),
|
|
5680
|
+
), cu = { suspense: !0 }, uu = {
|
|
5691
5681
|
get: pe.green,
|
|
5692
5682
|
post: pe.blue,
|
|
5693
5683
|
put: pe.yellow,
|
|
@@ -5696,17 +5686,17 @@ const uu = ({ content: e }) => {
|
|
|
5696
5686
|
options: pe.indigo,
|
|
5697
5687
|
head: pe.gray,
|
|
5698
5688
|
trace: pe.gray
|
|
5699
|
-
},
|
|
5689
|
+
}, Ru = ({
|
|
5700
5690
|
operation: e,
|
|
5701
5691
|
selectedResponse: t,
|
|
5702
5692
|
onSelectResponse: n
|
|
5703
5693
|
}) => {
|
|
5704
5694
|
var m, h;
|
|
5705
|
-
const a =
|
|
5695
|
+
const a = nu(), [s] = Pa({
|
|
5706
5696
|
query: Ca,
|
|
5707
5697
|
variables: a,
|
|
5708
|
-
context:
|
|
5709
|
-
}), o =
|
|
5698
|
+
context: cu
|
|
5699
|
+
}), o = uu[e.method.toLocaleLowerCase()] ?? pe.gray, [r, i] = mo(), [, l] = so(), c = r.get("lang") ?? "shell", u = (m = e.requestBody) == null ? void 0 : m.content, p = e.path.split("/").map((y, v, b) => {
|
|
5710
5700
|
const x = y.startsWith("{") && y.endsWith("}") || y.startsWith(":") ? y.replace(/[:{}]/g, "") : void 0;
|
|
5711
5701
|
return (
|
|
5712
5702
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -5724,9 +5714,9 @@ const uu = ({ content: e }) => {
|
|
|
5724
5714
|
/* @__PURE__ */ f.jsx("wbr", {})
|
|
5725
5715
|
] }, y + v)
|
|
5726
5716
|
);
|
|
5727
|
-
}), d =
|
|
5717
|
+
}), d = lo(() => {
|
|
5728
5718
|
var b;
|
|
5729
|
-
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new
|
|
5719
|
+
const y = (b = u == null ? void 0 : u[0]) != null && b.schema ? Ge(u[0].schema) : void 0, v = new tu(
|
|
5730
5720
|
{
|
|
5731
5721
|
method: e.method.toLocaleUpperCase(),
|
|
5732
5722
|
url: e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
@@ -5738,7 +5728,7 @@ const uu = ({ content: e }) => {
|
|
|
5738
5728
|
}
|
|
5739
5729
|
// 👈 never touch this
|
|
5740
5730
|
);
|
|
5741
|
-
return
|
|
5731
|
+
return lu(v, c);
|
|
5742
5732
|
}, [c, e.method, e.path, u]);
|
|
5743
5733
|
return /* @__PURE__ */ f.jsxs("aside", { className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4", children: [
|
|
5744
5734
|
/* @__PURE__ */ f.jsxs(xn, { children: [
|
|
@@ -5749,7 +5739,7 @@ const uu = ({ content: e }) => {
|
|
|
5749
5739
|
p
|
|
5750
5740
|
] }),
|
|
5751
5741
|
/* @__PURE__ */ f.jsx(
|
|
5752
|
-
|
|
5742
|
+
ru,
|
|
5753
5743
|
{
|
|
5754
5744
|
server: ((h = s.data) == null ? void 0 : h.schema.url) ?? "",
|
|
5755
5745
|
operation: e
|
|
@@ -5794,9 +5784,9 @@ const uu = ({ content: e }) => {
|
|
|
5794
5784
|
)
|
|
5795
5785
|
] })
|
|
5796
5786
|
] }),
|
|
5797
|
-
u && /* @__PURE__ */ f.jsx(
|
|
5787
|
+
u && /* @__PURE__ */ f.jsx(iu, { content: u }),
|
|
5798
5788
|
e.responses.length > 0 && /* @__PURE__ */ f.jsx(
|
|
5799
|
-
|
|
5789
|
+
su,
|
|
5800
5790
|
{
|
|
5801
5791
|
selectedResponse: t,
|
|
5802
5792
|
onSelectResponse: n,
|
|
@@ -5804,7 +5794,7 @@ const uu = ({ content: e }) => {
|
|
|
5804
5794
|
}
|
|
5805
5795
|
)
|
|
5806
5796
|
] });
|
|
5807
|
-
},
|
|
5797
|
+
}, du = kr(`
|
|
5808
5798
|
query GetCategories($input: JSON!, $type: SchemaType!) {
|
|
5809
5799
|
schema(input: $input, type: $type) {
|
|
5810
5800
|
tags {
|
|
@@ -5822,10 +5812,10 @@ const uu = ({ content: e }) => {
|
|
|
5822
5812
|
}
|
|
5823
5813
|
}
|
|
5824
5814
|
}
|
|
5825
|
-
`),
|
|
5826
|
-
const e =
|
|
5827
|
-
return /* @__PURE__ */ f.jsx(
|
|
5828
|
-
},
|
|
5815
|
+
`), fu = () => {
|
|
5816
|
+
const e = ho(), t = e instanceof Error ? /* @__PURE__ */ f.jsx(Qe, { code: e.message }) : "An unknown error occurred";
|
|
5817
|
+
return /* @__PURE__ */ f.jsx(za, { category: "Error", title: "An error occurred", message: t });
|
|
5818
|
+
}, pu = {
|
|
5829
5819
|
get: "green",
|
|
5830
5820
|
post: "blue",
|
|
5831
5821
|
put: "yellow",
|
|
@@ -5833,8 +5823,8 @@ const uu = ({ content: e }) => {
|
|
|
5833
5823
|
patch: "purple",
|
|
5834
5824
|
options: "gray",
|
|
5835
5825
|
head: "gray"
|
|
5836
|
-
},
|
|
5837
|
-
const t =
|
|
5826
|
+
}, Au = (e) => {
|
|
5827
|
+
const t = Ka(e.navigationId ?? "/reference"), n = e.server ? new Ea({
|
|
5838
5828
|
url: e.server,
|
|
5839
5829
|
exchanges: [Ra, Aa]
|
|
5840
5830
|
}) : Ia({ useMemoryClient: e.inMemory ?? !1 });
|
|
@@ -5878,7 +5868,7 @@ const uu = ({ content: e }) => {
|
|
|
5878
5868
|
onClick: l.login,
|
|
5879
5869
|
children: [
|
|
5880
5870
|
"Login to open in Playground ",
|
|
5881
|
-
/* @__PURE__ */ f.jsx(
|
|
5871
|
+
/* @__PURE__ */ f.jsx(bo, { size: 16 })
|
|
5882
5872
|
]
|
|
5883
5873
|
}
|
|
5884
5874
|
) : /* @__PURE__ */ f.jsx(
|
|
@@ -5890,16 +5880,16 @@ const uu = ({ content: e }) => {
|
|
|
5890
5880
|
...i,
|
|
5891
5881
|
children: /* @__PURE__ */ f.jsxs(qe, { className: "gap-2 items-center", variant: "outline", children: [
|
|
5892
5882
|
"Open in Playground ",
|
|
5893
|
-
/* @__PURE__ */ f.jsx(
|
|
5883
|
+
/* @__PURE__ */ f.jsx(vo, { size: 16 })
|
|
5894
5884
|
] })
|
|
5895
5885
|
}
|
|
5896
5886
|
);
|
|
5897
5887
|
}
|
|
5898
5888
|
}),
|
|
5899
5889
|
getSidebar: async (a) => {
|
|
5900
|
-
if (!
|
|
5890
|
+
if (!yo({ path: t, end: !1 }, a))
|
|
5901
5891
|
return [];
|
|
5902
|
-
const { data: s } = await n.query(
|
|
5892
|
+
const { data: s } = await n.query(du, {
|
|
5903
5893
|
input: e.input,
|
|
5904
5894
|
type: e.type
|
|
5905
5895
|
});
|
|
@@ -5915,7 +5905,7 @@ const uu = ({ content: e }) => {
|
|
|
5915
5905
|
href: `#${i.slug}`,
|
|
5916
5906
|
badge: {
|
|
5917
5907
|
label: i.method,
|
|
5918
|
-
color:
|
|
5908
|
+
color: pu[i.method.toLowerCase()]
|
|
5919
5909
|
}
|
|
5920
5910
|
}))
|
|
5921
5911
|
}));
|
|
@@ -5928,12 +5918,12 @@ const uu = ({ content: e }) => {
|
|
|
5928
5918
|
getRoutes: () => [
|
|
5929
5919
|
{
|
|
5930
5920
|
async lazy() {
|
|
5931
|
-
const { OpenApiRoute: a } = await import("./Route-
|
|
5921
|
+
const { OpenApiRoute: a } = await import("./Route-BGRXEhFQ.js");
|
|
5932
5922
|
return {
|
|
5933
5923
|
element: /* @__PURE__ */ f.jsx(a, { client: n, config: e })
|
|
5934
5924
|
};
|
|
5935
5925
|
},
|
|
5936
|
-
errorElement: /* @__PURE__ */ f.jsx(
|
|
5926
|
+
errorElement: /* @__PURE__ */ f.jsx(fu, {}),
|
|
5937
5927
|
children: [
|
|
5938
5928
|
{
|
|
5939
5929
|
path: t,
|
|
@@ -5941,7 +5931,7 @@ const uu = ({ content: e }) => {
|
|
|
5941
5931
|
{
|
|
5942
5932
|
index: !0,
|
|
5943
5933
|
async lazy() {
|
|
5944
|
-
const { OperationList: a } = await import("./OperationList-
|
|
5934
|
+
const { OperationList: a } = await import("./OperationList-BzC9sQKY.js");
|
|
5945
5935
|
return { element: /* @__PURE__ */ f.jsx(a, {}) };
|
|
5946
5936
|
}
|
|
5947
5937
|
}
|
|
@@ -5954,19 +5944,18 @@ const uu = ({ content: e }) => {
|
|
|
5954
5944
|
};
|
|
5955
5945
|
export {
|
|
5956
5946
|
un as C,
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
Iu as S,
|
|
5947
|
+
Eu as O,
|
|
5948
|
+
Ru as S,
|
|
5960
5949
|
Nn as T,
|
|
5961
5950
|
rn as a,
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5951
|
+
Ho as b,
|
|
5952
|
+
Bo as c,
|
|
5953
|
+
Vo as d,
|
|
5965
5954
|
_t as e,
|
|
5966
5955
|
Ce as f,
|
|
5967
5956
|
Pe as g,
|
|
5968
5957
|
kr as h,
|
|
5969
|
-
|
|
5970
|
-
|
|
5958
|
+
Au as o,
|
|
5959
|
+
nu as u
|
|
5971
5960
|
};
|
|
5972
|
-
//# sourceMappingURL=index-
|
|
5961
|
+
//# sourceMappingURL=index-DHMNxrEi.js.map
|