zudoku 0.35.6 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/app/entry.server.js +5 -1
- package/dist/app/entry.server.js.map +1 -1
- package/dist/config/validators/common.d.ts +428 -428
- package/dist/config/validators/common.js +12 -7
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/validate.d.ts +158 -158
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +1 -1
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +3 -14
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +1 -1
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +2 -2
- package/dist/lib/components/TopNavigation.js +9 -12
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.js +3 -1
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +7 -0
- package/dist/lib/components/cache.js +7 -0
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/ViewportAnchorContext.js +3 -6
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
- package/dist/lib/components/context/ZudokuContext.js +13 -7
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +10 -6
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +2 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +8 -6
- package/dist/lib/core/ZudokuContext.js +4 -2
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +3 -3
- package/dist/lib/hooks/useEvent.test.js +1 -1
- package/dist/lib/hooks/useEvent.test.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +13 -2
- package/dist/lib/oas/graphql/index.js +59 -39
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +19 -5
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.js +12 -4
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +2 -2
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +4 -4
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +33 -44
- package/dist/lib/plugins/openapi/graphql/graphql.js +19 -29
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +5 -10
- package/dist/lib/plugins/openapi/index.js +29 -60
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +3 -1
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +3 -3
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js +13 -6
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +5 -7
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Button.js +1 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +6 -6
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/traverse.js +2 -2
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +2 -0
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/schema-codegen.js +19 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +61 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/config.js +1 -1
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api.js +4 -12
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +1 -1
- package/dist/vite/plugin-docs.js +18 -1
- package/dist/vite/plugin-docs.js.map +1 -1
- package/lib/{AuthenticationPlugin-4ip08maU.js → AuthenticationPlugin-Cij2tPWa.js} +2 -2
- package/lib/{AuthenticationPlugin-4ip08maU.js.map → AuthenticationPlugin-Cij2tPWa.js.map} +1 -1
- package/lib/{Spinner-C6n4eOvh.js → Button-Fp19CMUr.js} +15 -18
- package/lib/Button-Fp19CMUr.js.map +1 -0
- package/lib/{Markdown-C0eXdzGn.js → Markdown-DT5Rrq8_.js} +3526 -3264
- package/lib/Markdown-DT5Rrq8_.js.map +1 -0
- package/lib/{MdxPage-BKkG1cm1.js → MdxPage-D2rD1vC4.js} +3 -3
- package/lib/{MdxPage-BKkG1cm1.js.map → MdxPage-D2rD1vC4.js.map} +1 -1
- package/lib/{OasProvider-CwhKwrwl.js → OasProvider-DdEBf2qS.js} +3 -3
- package/lib/{OasProvider-CwhKwrwl.js.map → OasProvider-DdEBf2qS.js.map} +1 -1
- package/lib/{OperationList-DGYoFitT.js → OperationList-DT4-gm_S.js} +1122 -1093
- package/lib/OperationList-DT4-gm_S.js.map +1 -0
- package/lib/{Select-FAYHOYTy.js → Select-z1Lwl0-J.js} +3 -3
- package/lib/{Select-FAYHOYTy.js.map → Select-z1Lwl0-J.js.map} +1 -1
- package/lib/{SlotletProvider-BJC58V32.js → SlotletProvider-D8OBnr77.js} +2 -2
- package/lib/{SlotletProvider-BJC58V32.js.map → SlotletProvider-D8OBnr77.js.map} +1 -1
- package/lib/Spinner-CE68iCm0.js +7 -0
- package/lib/Spinner-CE68iCm0.js.map +1 -0
- package/lib/{circular-v7K6lDDh.js → circular-ByJI6Mci.js} +4887 -4419
- package/lib/circular-ByJI6Mci.js.map +1 -0
- package/lib/{createServer-CbL1Uh2Q.js → createServer-DjgKDpGV.js} +3301 -3747
- package/lib/createServer-DjgKDpGV.js.map +1 -0
- package/lib/{hook-CfCFKZ-2.js → hook-DzQC8PzJ.js} +78 -73
- package/lib/hook-DzQC8PzJ.js.map +1 -0
- package/lib/{index-Dm1QJHVl.js → index-DdQSV2RF.js} +593 -633
- package/lib/index-DdQSV2RF.js.map +1 -0
- package/lib/{useQuery-CQUwWR9i.js → joinUrl-BjDooT-T.js} +240 -223
- package/lib/joinUrl-BjDooT-T.js.map +1 -0
- package/lib/{mutation-B81DztCT.js → mutation-_Z5C2wFZ.js} +2 -2
- package/lib/{mutation-B81DztCT.js.map → mutation-_Z5C2wFZ.js.map} +1 -1
- package/lib/post-processors/traverse.js +2 -2
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Button.js +1 -1
- package/lib/ui/Button.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-openid.js +3 -3
- package/lib/zudoku.components.js +438 -444
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +1 -1
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +5 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +15 -16
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +3 -1
- package/src/app/entry.server.tsx +7 -1
- package/src/lib/components/InlineCode.tsx +3 -1
- package/src/lib/components/Layout.tsx +3 -16
- package/src/lib/components/MobileTopNavigation.tsx +1 -1
- package/src/lib/components/TopNavigation.tsx +12 -16
- package/src/lib/components/Zudoku.tsx +5 -1
- package/src/lib/components/cache.ts +8 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +3 -6
- package/src/lib/components/context/ZudokuContext.ts +17 -8
- package/src/lib/components/navigation/SidebarCategory.tsx +15 -12
- package/src/lib/components/navigation/SidebarItem.tsx +2 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
- package/src/lib/core/ZudokuContext.ts +11 -8
- package/src/lib/core/plugins.ts +4 -4
- package/src/lib/hooks/useEvent.test.tsx +1 -1
- package/src/lib/oas/graphql/index.ts +104 -64
- package/src/lib/plugins/openapi/OperationList.tsx +30 -36
- package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
- package/src/lib/plugins/openapi/ParamInfos.tsx +27 -4
- package/src/lib/plugins/openapi/ParameterListItem.tsx +5 -1
- package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -1
- package/src/lib/plugins/openapi/graphql/gql.ts +17 -17
- package/src/lib/plugins/openapi/graphql/graphql.ts +57 -75
- package/src/lib/plugins/openapi/index.tsx +40 -84
- package/src/lib/plugins/openapi/interfaces.ts +4 -1
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +5 -2
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +48 -35
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +5 -7
- package/src/lib/ui/Button.tsx +1 -1
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/traverse.ts +2 -2
- package/src/lib/util/useScrollToAnchor.ts +2 -0
- package/lib/Markdown-C0eXdzGn.js.map +0 -1
- package/lib/OperationList-DGYoFitT.js.map +0 -1
- package/lib/Spinner-C6n4eOvh.js.map +0 -1
- package/lib/circular-v7K6lDDh.js.map +0 -1
- package/lib/createServer-CbL1Uh2Q.js.map +0 -1
- package/lib/hook-CfCFKZ-2.js.map +0 -1
- package/lib/index-Dm1QJHVl.js.map +0 -1
- package/lib/joinUrl-10po2Jdj.js +0 -20
- package/lib/joinUrl-10po2Jdj.js.map +0 -1
- package/lib/useQuery-CQUwWR9i.js.map +0 -1
|
@@ -1,40 +1,54 @@
|
|
|
1
1
|
import { j as u } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { d as Bo } from "./joinUrl-BjDooT-T.js";
|
|
3
|
+
import { b as Tr, k as Pr, l as Ho } from "./hook-DzQC8PzJ.js";
|
|
4
|
+
import { H as Mo } from "./index.esm-CltAN0Tf.js";
|
|
5
|
+
import { ChevronsUpDownIcon as ao, CheckIcon as zo, CopyIcon as Go, ChevronsLeftRightIcon as Wo, ChevronUpIcon as Jo, ChevronDownIcon as io, UnfoldVerticalIcon as Vo, FoldVerticalIcon as Do, CircleIcon as Ko, CircleDotIcon as Qo, CircleFadingPlusIcon as Yo, SquareMinusIcon as Xo, SquarePlusIcon as Zo, MinusIcon as ea, PlusIcon as ta, RefreshCcwDotIcon as ra, ChevronsDownUpIcon as na } from "lucide-react";
|
|
6
|
+
import { b as oa, a as aa } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
7
|
+
import { a as Ve, C as so, b as lo, c as co, d as xr, P as ia, m as uo, e as sa } from "./index-DdQSV2RF.js";
|
|
8
|
+
import { S as la, a as ca, b as ua, c as fa, e as pa } from "./Select-z1Lwl0-J.js";
|
|
9
|
+
import { C as da } from "./CategoryHeading-DpB47wvk.js";
|
|
10
|
+
import { I as fo, c as it, M as Le, H as He, P as ze } from "./Markdown-DT5Rrq8_.js";
|
|
10
11
|
import { c as se } from "./cn-qaFjX9_3.js";
|
|
11
|
-
import { useContext as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
12
|
+
import { useContext as ha, useTransition as po, useState as he, isValidElement as ya, useRef as ho, useEffect as Cr, useLayoutEffect as ma, useMemo as yo, useCallback as ga } from "react";
|
|
13
|
+
import { Button as mo } from "./ui/Button.js";
|
|
14
|
+
import { a as va, u as Nr } from "./context-DLCwaMXN.js";
|
|
15
|
+
import { i as ba, S as xa, L as ja, T as bt, a as $a, p as wa, C as Sa } from "./circular-ByJI6Mci.js";
|
|
16
|
+
import { VisuallyHidden as jr } from "@radix-ui/react-visually-hidden";
|
|
17
|
+
import { c as Oa } from "./index-CPNSgwSb.js";
|
|
18
|
+
import { Tabs as Ta, TabsList as Pa, TabsTrigger as Ca, TabsContent as Na } from "./ui/Tabs.js";
|
|
19
|
+
import { Card as ve, CardHeader as ka, CardTitle as qa, CardContent as Ra } from "./ui/Card.js";
|
|
20
|
+
import { B as $r } from "./Button-Fp19CMUr.js";
|
|
21
|
+
import { g as Ea, c as rt, a as Aa } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
22
|
+
import { S as go } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
23
|
+
import { useAuth as Ia } from "./zudoku.components.js";
|
|
24
|
+
import * as et from "@radix-ui/react-tabs";
|
|
23
25
|
import * as xe from "@radix-ui/react-collapsible";
|
|
24
|
-
import { o as
|
|
25
|
-
|
|
26
|
-
function Ca(e, r) {
|
|
26
|
+
import { o as La } from "./objectEntries-BS7aAgOm.js";
|
|
27
|
+
function Ua(e, r) {
|
|
27
28
|
return r;
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
const t =
|
|
30
|
+
function Fa(e) {
|
|
31
|
+
const r = ba(e) ? e : new xa(e), t = r.body, o = new ja(r);
|
|
32
|
+
let i = "", s = !1;
|
|
33
|
+
for (; o.advance().kind !== bt.EOF; ) {
|
|
34
|
+
const n = o.token, a = n.kind, l = !$a(n.kind);
|
|
35
|
+
s && (l || n.kind === bt.SPREAD) && (i += " ");
|
|
36
|
+
const c = t.slice(n.start, n.end);
|
|
37
|
+
a === bt.BLOCK_STRING ? i += wa(n.value, {
|
|
38
|
+
minimize: !0
|
|
39
|
+
}) : i += c, s = l;
|
|
40
|
+
}
|
|
41
|
+
return i;
|
|
42
|
+
}
|
|
43
|
+
const nt = (e, ...r) => {
|
|
44
|
+
const t = ha(va);
|
|
31
45
|
if (t === void 0)
|
|
32
46
|
throw new Error("useGraphQL must be used within a GraphQLProvider");
|
|
33
47
|
return {
|
|
34
48
|
queryFn: () => t.fetch(e, ...r),
|
|
35
|
-
queryKey: [e, r[0]]
|
|
49
|
+
queryKey: [Fa(e.toString()), r[0]]
|
|
36
50
|
};
|
|
37
|
-
},
|
|
51
|
+
}, ot = ({
|
|
38
52
|
value: e,
|
|
39
53
|
onChange: r,
|
|
40
54
|
className: t,
|
|
@@ -61,10 +75,10 @@ const Tr = (e, ...r) => {
|
|
|
61
75
|
!i && "hidden",
|
|
62
76
|
"row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
|
|
63
77
|
),
|
|
64
|
-
children: /* @__PURE__ */ u.jsx(
|
|
78
|
+
children: /* @__PURE__ */ u.jsx(ao, { size: 14 })
|
|
65
79
|
}
|
|
66
80
|
)
|
|
67
|
-
] }),
|
|
81
|
+
] }), _a = Ve(
|
|
68
82
|
/* GraphQL */
|
|
69
83
|
`
|
|
70
84
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -76,10 +90,10 @@ const Tr = (e, ...r) => {
|
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
92
|
`
|
|
79
|
-
),
|
|
80
|
-
const [r, t] =
|
|
93
|
+
), Wr = ({ url: e }) => {
|
|
94
|
+
const [r, t] = he(!1);
|
|
81
95
|
return /* @__PURE__ */ u.jsx(
|
|
82
|
-
|
|
96
|
+
mo,
|
|
83
97
|
{
|
|
84
98
|
onClick: () => {
|
|
85
99
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -88,23 +102,23 @@ const Tr = (e, ...r) => {
|
|
|
88
102
|
},
|
|
89
103
|
variant: "ghost",
|
|
90
104
|
size: "icon",
|
|
91
|
-
children: r ? /* @__PURE__ */ u.jsx(
|
|
105
|
+
children: r ? /* @__PURE__ */ u.jsx(zo, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ u.jsx(Go, { size: 14, strokeWidth: 1.3 })
|
|
92
106
|
}
|
|
93
107
|
);
|
|
94
|
-
},
|
|
95
|
-
const { input: e, type: r } =
|
|
108
|
+
}, Ba = () => {
|
|
109
|
+
const { input: e, type: r } = Nr(), t = nt(_a, { input: e, type: r }), o = Tr(t), [, i] = po(), { selectedServer: s, setSelectedServer: n } = Pr(
|
|
96
110
|
o.data.schema.servers
|
|
97
111
|
), { servers: a } = o.data.schema;
|
|
98
112
|
if (a.length === 0) return null;
|
|
99
113
|
const l = a.at(0);
|
|
100
114
|
return a.length === 1 ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
101
115
|
/* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
|
|
102
|
-
/* @__PURE__ */ u.jsx(
|
|
103
|
-
/* @__PURE__ */ u.jsx(
|
|
116
|
+
/* @__PURE__ */ u.jsx(fo, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: l.url }),
|
|
117
|
+
/* @__PURE__ */ u.jsx(Wr, { url: l.url })
|
|
104
118
|
] }) : /* @__PURE__ */ u.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
105
119
|
/* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
106
120
|
/* @__PURE__ */ u.jsx(
|
|
107
|
-
|
|
121
|
+
ot,
|
|
108
122
|
{
|
|
109
123
|
className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
|
|
110
124
|
onChange: (c) => i(() => n(c.target.value)),
|
|
@@ -116,9 +130,9 @@ const Tr = (e, ...r) => {
|
|
|
116
130
|
}))
|
|
117
131
|
}
|
|
118
132
|
),
|
|
119
|
-
/* @__PURE__ */ u.jsx(
|
|
133
|
+
/* @__PURE__ */ u.jsx(Wr, { url: s })
|
|
120
134
|
] });
|
|
121
|
-
},
|
|
135
|
+
}, Ha = Oa(
|
|
122
136
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
123
137
|
{
|
|
124
138
|
variants: {
|
|
@@ -135,16 +149,30 @@ const Tr = (e, ...r) => {
|
|
|
135
149
|
}
|
|
136
150
|
}
|
|
137
151
|
);
|
|
138
|
-
function
|
|
139
|
-
return /* @__PURE__ */ u.jsx("div", { className: se(
|
|
152
|
+
function Ma({ className: e, variant: r, ...t }) {
|
|
153
|
+
return /* @__PURE__ */ u.jsx("div", { className: se(Ha({ variant: r }), e), ...t });
|
|
140
154
|
}
|
|
141
|
-
const
|
|
155
|
+
const vo = (e, r) => e.reduce(
|
|
142
156
|
(t, o) => {
|
|
143
157
|
const i = r(o);
|
|
144
158
|
return t[i] || (t[i] = []), t[i].push(o), t;
|
|
145
159
|
},
|
|
146
160
|
{}
|
|
147
|
-
),
|
|
161
|
+
), za = (e, r) => e ? r(e) : void 0, Ga = ({ pattern: e }) => {
|
|
162
|
+
const [r, t] = he(!1), o = e.length > 20, i = o ? `${e.slice(0, 20)}…` : e;
|
|
163
|
+
return /* @__PURE__ */ u.jsxs(
|
|
164
|
+
fo,
|
|
165
|
+
{
|
|
166
|
+
className: se("text-xs", o && "cursor-pointer"),
|
|
167
|
+
onClick: () => t(!r),
|
|
168
|
+
selectOnClick: !1,
|
|
169
|
+
children: [
|
|
170
|
+
r ? e : i,
|
|
171
|
+
o && /* @__PURE__ */ u.jsx("button", { type: "button", className: "p-1 translate-y-[2px]", children: !r && /* @__PURE__ */ u.jsx(Wo, { size: 12 }) })
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}, Wa = (e) => e ? [
|
|
148
176
|
e.type === "array" && e.items.type ? `${e.items.type}[]` : Array.isArray(e.type) ? e.type.join(" | ") : e.type,
|
|
149
177
|
e.enum && "enum",
|
|
150
178
|
e.format,
|
|
@@ -162,43 +190,43 @@ const yo = (e, r) => e.reduce(
|
|
|
162
190
|
e.deprecated && "deprecated",
|
|
163
191
|
e.pattern && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
164
192
|
"pattern: ",
|
|
165
|
-
/* @__PURE__ */ u.jsx(
|
|
193
|
+
/* @__PURE__ */ u.jsx(Ga, { pattern: e.pattern })
|
|
166
194
|
] })
|
|
167
|
-
] : [],
|
|
195
|
+
] : [], we = ({
|
|
168
196
|
schema: e,
|
|
169
197
|
extraItems: r = [],
|
|
170
198
|
className: t
|
|
171
199
|
}) => {
|
|
172
|
-
const o = [...
|
|
173
|
-
(i) => typeof i == "string" ||
|
|
200
|
+
const o = [...Wa(e), ...r].flatMap(
|
|
201
|
+
(i) => typeof i == "string" || ya(i) ? i : []
|
|
174
202
|
);
|
|
175
|
-
return /* @__PURE__ */ u.jsx("
|
|
203
|
+
return /* @__PURE__ */ u.jsx("span", { className: t, children: o.map((i, s) => /* @__PURE__ */ u.jsxs("span", { className: "text-muted-foreground", children: [
|
|
176
204
|
i,
|
|
177
205
|
s < o.length - 1 && /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground/50", children: " · " })
|
|
178
206
|
] }, s)) });
|
|
179
|
-
},
|
|
207
|
+
}, Ne = ({
|
|
180
208
|
values: e,
|
|
181
209
|
className: r,
|
|
182
210
|
maxVisibleValues: t = 8
|
|
183
211
|
}) => {
|
|
184
|
-
const [o, i] =
|
|
212
|
+
const [o, i] = he(!1);
|
|
185
213
|
if (!e.length) return null;
|
|
186
214
|
const s = e.length > t, n = s && !o ? e.slice(0, t) : e;
|
|
187
215
|
return /* @__PURE__ */ u.jsxs("div", { className: se("flex flex-wrap gap-1.5 text-xs", r), children: [
|
|
188
216
|
/* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: "Enum values: " }),
|
|
189
|
-
n.map((a) => /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx(
|
|
217
|
+
n.map((a) => /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsx(it, { className: "border rounded px-1 font-mono cursor-pointer", children: a }) }, a)),
|
|
190
218
|
s && /* @__PURE__ */ u.jsx(
|
|
191
|
-
|
|
219
|
+
$r,
|
|
192
220
|
{
|
|
193
221
|
variant: "ghost",
|
|
194
222
|
size: "sm",
|
|
195
223
|
className: "h-fit px-0",
|
|
196
224
|
onClick: () => i(!o),
|
|
197
225
|
children: o ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
198
|
-
/* @__PURE__ */ u.jsx(
|
|
226
|
+
/* @__PURE__ */ u.jsx(Jo, { size: 12 }),
|
|
199
227
|
/* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: "show less" })
|
|
200
228
|
] }) : /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
201
|
-
/* @__PURE__ */ u.jsx(
|
|
229
|
+
/* @__PURE__ */ u.jsx(io, { size: 12 }),
|
|
202
230
|
/* @__PURE__ */ u.jsxs("span", { className: "text-muted-foreground", children: [
|
|
203
231
|
"show ",
|
|
204
232
|
e.length - t,
|
|
@@ -208,18 +236,18 @@ const yo = (e, r) => e.reduce(
|
|
|
208
236
|
}
|
|
209
237
|
)
|
|
210
238
|
] });
|
|
211
|
-
},
|
|
239
|
+
}, Ja = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
212
240
|
type: "string"
|
|
213
|
-
},
|
|
241
|
+
}, Va = ({
|
|
214
242
|
parameter: e,
|
|
215
243
|
group: r,
|
|
216
244
|
id: t
|
|
217
245
|
}) => {
|
|
218
|
-
const o =
|
|
246
|
+
const o = Ja(e);
|
|
219
247
|
return /* @__PURE__ */ u.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1.5", children: [
|
|
220
248
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
221
|
-
/* @__PURE__ */ u.jsx(
|
|
222
|
-
|
|
249
|
+
/* @__PURE__ */ u.jsx(it, { asChild: !0, children: /* @__PURE__ */ u.jsx("code", { children: r === "path" ? /* @__PURE__ */ u.jsx(
|
|
250
|
+
so,
|
|
223
251
|
{
|
|
224
252
|
name: e.name,
|
|
225
253
|
backgroundOpacity: "15%",
|
|
@@ -228,7 +256,7 @@ const yo = (e, r) => e.reduce(
|
|
|
228
256
|
}
|
|
229
257
|
) : e.name }) }),
|
|
230
258
|
/* @__PURE__ */ u.jsx(
|
|
231
|
-
|
|
259
|
+
we,
|
|
232
260
|
{
|
|
233
261
|
schema: o,
|
|
234
262
|
extraItems: [
|
|
@@ -240,29 +268,29 @@ const yo = (e, r) => e.reduce(
|
|
|
240
268
|
)
|
|
241
269
|
] }),
|
|
242
270
|
e.description && /* @__PURE__ */ u.jsx(
|
|
243
|
-
|
|
271
|
+
Le,
|
|
244
272
|
{
|
|
245
273
|
content: e.description,
|
|
246
274
|
className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
|
|
247
275
|
}
|
|
248
276
|
),
|
|
249
|
-
o.enum && /* @__PURE__ */ u.jsx(
|
|
277
|
+
o.type === "array" && o.items.enum ? /* @__PURE__ */ u.jsx(Ne, { values: o.items.enum }) : o.enum && /* @__PURE__ */ u.jsx(Ne, { values: o.enum })
|
|
250
278
|
] });
|
|
251
|
-
},
|
|
279
|
+
}, Da = ({
|
|
252
280
|
summary: e,
|
|
253
281
|
group: r,
|
|
254
282
|
parameters: t,
|
|
255
283
|
id: o
|
|
256
284
|
}) => /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
257
|
-
/* @__PURE__ */ u.jsxs(
|
|
258
|
-
e && /* @__PURE__ */ u.jsxs(
|
|
285
|
+
/* @__PURE__ */ u.jsxs(He, { level: 3, id: `${o}/${r}-parameters`, className: "capitalize", children: [
|
|
286
|
+
e && /* @__PURE__ */ u.jsxs(jr, { children: [
|
|
259
287
|
e,
|
|
260
288
|
" › "
|
|
261
289
|
] }),
|
|
262
290
|
r === "header" ? "Headers" : `${r} Parameters`
|
|
263
291
|
] }),
|
|
264
|
-
/* @__PURE__ */ u.jsx(
|
|
265
|
-
|
|
292
|
+
/* @__PURE__ */ u.jsx(ve, { children: /* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: t.sort((i, s) => i.required === s.required ? 0 : i.required ? -1 : 1).map((i) => /* @__PURE__ */ u.jsx(
|
|
293
|
+
Va,
|
|
266
294
|
{
|
|
267
295
|
parameter: i,
|
|
268
296
|
id: o,
|
|
@@ -271,17 +299,17 @@ const yo = (e, r) => e.reduce(
|
|
|
271
299
|
`${i.name}-${i.in}`
|
|
272
300
|
)) }) })
|
|
273
301
|
] });
|
|
274
|
-
var
|
|
302
|
+
var Jr = (e, r) => {
|
|
275
303
|
const t = e[r.name];
|
|
276
304
|
return t === void 0 ? (e[r.name] = r.value, e) : Array.isArray(t) ? (t.push(r.value), e) : (e[r.name] = [t, r.value], e);
|
|
277
|
-
},
|
|
305
|
+
}, Vr = "", Dr = `
|
|
278
306
|
`, V = class {
|
|
279
307
|
/**
|
|
280
308
|
* Helper object to format and aggragate lines of code.
|
|
281
309
|
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
|
|
282
310
|
*/
|
|
283
311
|
constructor({ indent: e, join: r } = {}) {
|
|
284
|
-
this.postProcessors = [], this.code = [], this.indentationCharacter =
|
|
312
|
+
this.postProcessors = [], this.code = [], this.indentationCharacter = Vr, this.lineJoin = Dr, this.indentLine = (t, o = 0) => `${this.indentationCharacter.repeat(o)}${t}`, this.unshift = (t, o) => {
|
|
285
313
|
const i = this.indentLine(t, o);
|
|
286
314
|
this.code.unshift(i);
|
|
287
315
|
}, this.push = (t, o) => {
|
|
@@ -294,31 +322,31 @@ var zr = (e, r) => {
|
|
|
294
322
|
return this.postProcessors.reduce((i, s) => s(i), t);
|
|
295
323
|
}, this.addPostProcessor = (t) => {
|
|
296
324
|
this.postProcessors = [...this.postProcessors, t];
|
|
297
|
-
}, this.indentationCharacter = e ||
|
|
325
|
+
}, this.indentationCharacter = e || Vr, this.lineJoin = r ?? Dr;
|
|
298
326
|
}
|
|
299
|
-
},
|
|
300
|
-
function
|
|
301
|
-
return
|
|
327
|
+
}, xt, Kr;
|
|
328
|
+
function Ka() {
|
|
329
|
+
return Kr || (Kr = 1, xt = function(e) {
|
|
302
330
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
303
|
-
}),
|
|
331
|
+
}), xt;
|
|
304
332
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
307
|
-
return
|
|
333
|
+
var jt, Qr;
|
|
334
|
+
function Qa() {
|
|
335
|
+
return Qr || (Qr = 1, jt = function(e) {
|
|
308
336
|
var r = typeof e;
|
|
309
337
|
return e !== null && (r === "object" || r === "function");
|
|
310
|
-
}),
|
|
338
|
+
}), jt;
|
|
311
339
|
}
|
|
312
|
-
var
|
|
313
|
-
function
|
|
314
|
-
return
|
|
340
|
+
var Ze = {}, Yr;
|
|
341
|
+
function Ya() {
|
|
342
|
+
return Yr || (Yr = 1, Object.defineProperty(Ze, "__esModule", { value: !0 }), Ze.default = (e) => Object.getOwnPropertySymbols(e).filter((r) => Object.prototype.propertyIsEnumerable.call(e, r))), Ze;
|
|
315
343
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
318
|
-
if (
|
|
319
|
-
|
|
320
|
-
const e =
|
|
321
|
-
return
|
|
344
|
+
var $t, Xr;
|
|
345
|
+
function Xa() {
|
|
346
|
+
if (Xr) return $t;
|
|
347
|
+
Xr = 1;
|
|
348
|
+
const e = Ka(), r = Qa(), t = Ya().default;
|
|
349
|
+
return $t = (o, i, s) => {
|
|
322
350
|
const n = [];
|
|
323
351
|
return function a(l, c, f) {
|
|
324
352
|
c = c || {}, c.indent = c.indent || " ", f = f || "";
|
|
@@ -366,7 +394,7 @@ function Ha() {
|
|
|
366
394
|
return "{}";
|
|
367
395
|
n.push(l);
|
|
368
396
|
const j = "{" + g.newLine + m.map((v, p) => {
|
|
369
|
-
const h = m.length - 1 === p ? g.newLine : "," + g.newLineOrSpace, y = typeof v == "symbol",
|
|
397
|
+
const h = m.length - 1 === p ? g.newLine : "," + g.newLineOrSpace, y = typeof v == "symbol", O = !y && /^[a-z$_][a-z$_0-9]*$/i.test(v), T = y || O ? v : a(v, c);
|
|
370
398
|
let d = a(l[v], c, f + c.indent);
|
|
371
399
|
return c.transform && (d = c.transform(l, v, d)), g.indent + String(T) + ": " + d + h;
|
|
372
400
|
}).join("") + g.pad + "}";
|
|
@@ -375,16 +403,16 @@ function Ha() {
|
|
|
375
403
|
return l = String(l).replace(/[\r\n]/g, (m) => m === `
|
|
376
404
|
` ? "\\n" : "\\r"), c.singleQuotes === !1 ? (l = l.replace(/"/g, '\\"'), `"${l}"`) : (l = l.replace(/\\?'/g, "\\'"), `'${l}'`);
|
|
377
405
|
}(o, i, s);
|
|
378
|
-
},
|
|
406
|
+
}, $t;
|
|
379
407
|
}
|
|
380
|
-
var
|
|
381
|
-
const fe = /* @__PURE__ */
|
|
382
|
-
function
|
|
408
|
+
var Za = Xa();
|
|
409
|
+
const fe = /* @__PURE__ */ Ea(Za);
|
|
410
|
+
function Ge(e, r = {}) {
|
|
383
411
|
const { delimiter: t = '"', escapeChar: o = "\\", escapeNewlines: i = !0 } = r;
|
|
384
412
|
return [...e.toString()].map((n) => n === "\b" ? `${o}b` : n === " " ? `${o}t` : n === `
|
|
385
413
|
` ? i ? `${o}n` : n : n === "\f" ? `${o}f` : n === "\r" ? i ? `${o}r` : n : n === o ? o + o : n === t ? o + t : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
|
|
386
414
|
}
|
|
387
|
-
var
|
|
415
|
+
var We = (e) => Ge(e, { delimiter: "'" }), ce = (e) => Ge(e, { delimiter: '"' }), ei = {
|
|
388
416
|
info: {
|
|
389
417
|
key: "libcurl",
|
|
390
418
|
title: "Libcurl",
|
|
@@ -400,7 +428,7 @@ var Me = (e) => He(e, { delimiter: "'" }), ce = (e) => He(e, { delimiter: '"' })
|
|
|
400
428
|
s(`headers = curl_slist_append(headers, "${c}: ${ce(t[c])}");`);
|
|
401
429
|
}), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), i.text && (n(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), n(), s("CURLcode ret = curl_easy_perform(hnd);"), a();
|
|
402
430
|
}
|
|
403
|
-
},
|
|
431
|
+
}, ti = {
|
|
404
432
|
info: {
|
|
405
433
|
key: "c",
|
|
406
434
|
title: "C",
|
|
@@ -408,30 +436,30 @@ var Me = (e) => He(e, { delimiter: "'" }), ce = (e) => He(e, { delimiter: '"' })
|
|
|
408
436
|
cli: "c"
|
|
409
437
|
},
|
|
410
438
|
clientsById: {
|
|
411
|
-
libcurl:
|
|
439
|
+
libcurl: ei
|
|
412
440
|
}
|
|
413
|
-
}, pe = (e, r) => Object.keys(e).find((t) => t.toLowerCase() === r.toLowerCase()),
|
|
441
|
+
}, pe = (e, r) => Object.keys(e).find((t) => t.toLowerCase() === r.toLowerCase()), be = (e, r) => {
|
|
414
442
|
const t = pe(e, r);
|
|
415
443
|
if (t)
|
|
416
444
|
return e[t];
|
|
417
|
-
},
|
|
445
|
+
}, st = (e, r) => !!pe(e, r), ri = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
418
446
|
(r) => e.indexOf(r) > -1
|
|
419
|
-
),
|
|
447
|
+
), Zr = class {
|
|
420
448
|
constructor(e) {
|
|
421
449
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
422
450
|
}
|
|
423
|
-
},
|
|
451
|
+
}, ni = class {
|
|
424
452
|
constructor(e) {
|
|
425
453
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
426
454
|
}
|
|
427
|
-
},
|
|
455
|
+
}, bo = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), xo = (e) => e === void 0 ? !0 : bo(e) === "object" ? Object.keys(e).length === 0 : !1, en = (e) => (Object.keys(e).filter((r) => xo(e[r])).forEach((r) => {
|
|
428
456
|
delete e[r];
|
|
429
|
-
}), e),
|
|
457
|
+
}), e), tt = (e, r) => {
|
|
430
458
|
const t = " ".repeat(e);
|
|
431
459
|
return r.replace(/\n/g, `
|
|
432
460
|
${t}`);
|
|
433
|
-
},
|
|
434
|
-
switch (
|
|
461
|
+
}, wr = (e) => {
|
|
462
|
+
switch (bo(e)) {
|
|
435
463
|
case "string":
|
|
436
464
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
437
465
|
case "file":
|
|
@@ -444,20 +472,20 @@ ${t}`);
|
|
|
444
472
|
return `#"${e.source}"`;
|
|
445
473
|
case "object": {
|
|
446
474
|
const r = Object.keys(e).reduce((t, o) => {
|
|
447
|
-
const i =
|
|
475
|
+
const i = tt(o.length + 2, wr(e[o]));
|
|
448
476
|
return `${t}:${o} ${i}
|
|
449
477
|
`;
|
|
450
478
|
}, "").trim();
|
|
451
|
-
return `{${
|
|
479
|
+
return `{${tt(1, r)}}`;
|
|
452
480
|
}
|
|
453
481
|
case "array": {
|
|
454
|
-
const r = e.reduce((t, o) => `${t} ${
|
|
455
|
-
return `[${
|
|
482
|
+
const r = e.reduce((t, o) => `${t} ${wr(o)}`, "").trim();
|
|
483
|
+
return `[${tt(1, r)}]`;
|
|
456
484
|
}
|
|
457
485
|
default:
|
|
458
486
|
return e.toString();
|
|
459
487
|
}
|
|
460
|
-
},
|
|
488
|
+
}, oi = {
|
|
461
489
|
info: {
|
|
462
490
|
key: "clj_http",
|
|
463
491
|
title: "clj-http",
|
|
@@ -476,7 +504,7 @@ ${t}`);
|
|
|
476
504
|
switch (t.mimeType) {
|
|
477
505
|
case "application/json":
|
|
478
506
|
{
|
|
479
|
-
c["content-type"] = new
|
|
507
|
+
c["content-type"] = new Zr("json"), c["form-params"] = t.jsonObj;
|
|
480
508
|
const f = pe(c.headers, "content-type");
|
|
481
509
|
f && delete c.headers[f];
|
|
482
510
|
}
|
|
@@ -499,7 +527,7 @@ ${t}`);
|
|
|
499
527
|
if (t.params) {
|
|
500
528
|
c.multipart = t.params.map((g) => g.fileName && !g.value ? {
|
|
501
529
|
name: g.name,
|
|
502
|
-
content: new
|
|
530
|
+
content: new ni(g.fileName)
|
|
503
531
|
} : {
|
|
504
532
|
name: g.name,
|
|
505
533
|
content: g.value
|
|
@@ -510,35 +538,35 @@ ${t}`);
|
|
|
510
538
|
break;
|
|
511
539
|
}
|
|
512
540
|
}
|
|
513
|
-
switch (
|
|
541
|
+
switch (be(c.headers, "accept")) {
|
|
514
542
|
case "application/json":
|
|
515
543
|
{
|
|
516
|
-
c.accept = new
|
|
544
|
+
c.accept = new Zr("json");
|
|
517
545
|
const f = pe(c.headers, "accept");
|
|
518
546
|
f && delete c.headers[f];
|
|
519
547
|
}
|
|
520
548
|
break;
|
|
521
549
|
}
|
|
522
550
|
if (n(`(require '[clj-http.client :as client])
|
|
523
|
-
`),
|
|
551
|
+
`), xo(en(c)))
|
|
524
552
|
n(`(client/${r} "${o}")`);
|
|
525
553
|
else {
|
|
526
|
-
const f = 11 + r.length + o.length, g =
|
|
554
|
+
const f = 11 + r.length + o.length, g = tt(f, wr(en(c)));
|
|
527
555
|
n(`(client/${r} "${o}" ${g})`);
|
|
528
556
|
}
|
|
529
557
|
return a();
|
|
530
558
|
}
|
|
531
|
-
},
|
|
559
|
+
}, ai = {
|
|
532
560
|
info: {
|
|
533
561
|
key: "clojure",
|
|
534
562
|
title: "Clojure",
|
|
535
563
|
default: "clj_http"
|
|
536
564
|
},
|
|
537
565
|
clientsById: {
|
|
538
|
-
clj_http:
|
|
566
|
+
clj_http: oi
|
|
539
567
|
}
|
|
540
|
-
},
|
|
541
|
-
let r =
|
|
568
|
+
}, ii = (e) => {
|
|
569
|
+
let r = be(e, "accept-encoding");
|
|
542
570
|
if (!r)
|
|
543
571
|
return [];
|
|
544
572
|
const t = {
|
|
@@ -554,7 +582,7 @@ ${t}`);
|
|
|
554
582
|
}
|
|
555
583
|
});
|
|
556
584
|
}), o;
|
|
557
|
-
},
|
|
585
|
+
}, si = {
|
|
558
586
|
info: {
|
|
559
587
|
key: "httpclient",
|
|
560
588
|
title: "HttpClient",
|
|
@@ -570,7 +598,7 @@ ${t}`);
|
|
|
570
598
|
}, { push: n, join: a } = new V({ indent: s.indent });
|
|
571
599
|
n("using System.Net.Http.Headers;");
|
|
572
600
|
let l = "";
|
|
573
|
-
const c = !!e.cookie, f =
|
|
601
|
+
const c = !!e.cookie, f = ii(e);
|
|
574
602
|
(c || f.length) && (l = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), f.length && n(`AutomaticDecompression = ${f.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${l});`), n("var request = new HttpRequestMessage"), n("{");
|
|
575
603
|
const g = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
576
604
|
t = t.toUpperCase(), t && g.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, n(`Method = ${t},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
|
|
@@ -607,10 +635,10 @@ ${t}`);
|
|
|
607
635
|
return n("};"), n("using (var response = await client.SendAsync(request))"), n("{"), n("response.EnsureSuccessStatusCode();", 1), n("var body = await response.Content.ReadAsStringAsync();", 1), n("Console.WriteLine(body);", 1), n("}"), a();
|
|
608
636
|
}
|
|
609
637
|
};
|
|
610
|
-
function
|
|
638
|
+
function li(e) {
|
|
611
639
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
612
640
|
}
|
|
613
|
-
var
|
|
641
|
+
var ci = {
|
|
614
642
|
info: {
|
|
615
643
|
key: "restsharp",
|
|
616
644
|
title: "RestSharp",
|
|
@@ -660,11 +688,11 @@ var Xa = {
|
|
|
660
688
|
if (!i.text) break;
|
|
661
689
|
n(`request.AddStringBody("${i.text}", "${i.mimeType}");`);
|
|
662
690
|
}
|
|
663
|
-
return n(`var response = await client.${
|
|
691
|
+
return n(`var response = await client.${li(e)}Async(request);
|
|
664
692
|
`), n(`Console.WriteLine("{0}", response.Content);
|
|
665
693
|
`), a();
|
|
666
694
|
}
|
|
667
|
-
},
|
|
695
|
+
}, ui = {
|
|
668
696
|
info: {
|
|
669
697
|
key: "csharp",
|
|
670
698
|
title: "C#",
|
|
@@ -672,10 +700,10 @@ var Xa = {
|
|
|
672
700
|
cli: "dotnet"
|
|
673
701
|
},
|
|
674
702
|
clientsById: {
|
|
675
|
-
httpclient:
|
|
676
|
-
restsharp:
|
|
703
|
+
httpclient: si,
|
|
704
|
+
restsharp: ci
|
|
677
705
|
}
|
|
678
|
-
},
|
|
706
|
+
}, fi = {
|
|
679
707
|
info: {
|
|
680
708
|
key: "native",
|
|
681
709
|
title: "NewRequest",
|
|
@@ -693,7 +721,7 @@ var Xa = {
|
|
|
693
721
|
n(`req.Header.Add("${y}", "${ce(t[y])}")`, m);
|
|
694
722
|
}), s()), n(`res, ${b} := ${h}.Do(req)`, m), j(), f && (s(), n("defer res.Body.Close()", m), n(`body, ${b} := io.ReadAll(res.Body)`, m), j()), s(), f && n("fmt.Println(string(body))", m), l && (s(), n("}")), a();
|
|
695
723
|
}
|
|
696
|
-
},
|
|
724
|
+
}, pi = {
|
|
697
725
|
info: {
|
|
698
726
|
key: "go",
|
|
699
727
|
title: "Go",
|
|
@@ -701,10 +729,10 @@ var Xa = {
|
|
|
701
729
|
cli: "go"
|
|
702
730
|
},
|
|
703
731
|
clientsById: {
|
|
704
|
-
native:
|
|
732
|
+
native: fi
|
|
705
733
|
}
|
|
706
|
-
},
|
|
707
|
-
`,
|
|
734
|
+
}, tn = `\r
|
|
735
|
+
`, di = {
|
|
708
736
|
info: {
|
|
709
737
|
key: "http1.1",
|
|
710
738
|
title: "HTTP/1.1",
|
|
@@ -718,7 +746,7 @@ var Xa = {
|
|
|
718
746
|
autoContentLength: !0,
|
|
719
747
|
autoHost: !0,
|
|
720
748
|
...n
|
|
721
|
-
}, { blank: l, push: c, join: f } = new V({ indent: "", join:
|
|
749
|
+
}, { blank: l, push: c, join: f } = new V({ indent: "", join: tn }), g = a.absoluteURI ? r : t.path;
|
|
722
750
|
c(`${e} ${g} ${o}`);
|
|
723
751
|
const b = Object.keys(i);
|
|
724
752
|
if (b.forEach((v) => {
|
|
@@ -730,18 +758,18 @@ var Xa = {
|
|
|
730
758
|
}
|
|
731
759
|
l();
|
|
732
760
|
const m = f(), j = s.text || "";
|
|
733
|
-
return `${m}${
|
|
761
|
+
return `${m}${tn}${j}`;
|
|
734
762
|
}
|
|
735
|
-
},
|
|
763
|
+
}, hi = {
|
|
736
764
|
info: {
|
|
737
765
|
key: "http",
|
|
738
766
|
title: "HTTP",
|
|
739
767
|
default: "http1.1"
|
|
740
768
|
},
|
|
741
769
|
clientsById: {
|
|
742
|
-
"http1.1":
|
|
770
|
+
"http1.1": di
|
|
743
771
|
}
|
|
744
|
-
},
|
|
772
|
+
}, yi = {
|
|
745
773
|
info: {
|
|
746
774
|
key: "asynchttp",
|
|
747
775
|
title: "AsyncHttp",
|
|
@@ -758,7 +786,7 @@ var Xa = {
|
|
|
758
786
|
a(`.setHeader("${c}", "${ce(r[c])}")`, 1);
|
|
759
787
|
}), t.text && a(`.setBody(${JSON.stringify(t.text)})`, 1), a(".execute()", 1), a(".toCompletableFuture()", 1), a(".thenAccept(System.out::println)", 1), a(".join();", 1), n(), a("client.close();"), l();
|
|
760
788
|
}
|
|
761
|
-
},
|
|
789
|
+
}, mi = {
|
|
762
790
|
info: {
|
|
763
791
|
key: "nethttp",
|
|
764
792
|
title: "java.net.http",
|
|
@@ -780,7 +808,7 @@ var Xa = {
|
|
|
780
808
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
781
809
|
), n("System.out.println(response.body());"), a();
|
|
782
810
|
}
|
|
783
|
-
},
|
|
811
|
+
}, gi = {
|
|
784
812
|
info: {
|
|
785
813
|
key: "okhttp",
|
|
786
814
|
title: "OkHttp",
|
|
@@ -797,7 +825,7 @@ var Xa = {
|
|
|
797
825
|
n(`.addHeader("${g}", "${ce(o[g])}")`, 1);
|
|
798
826
|
}), n(".build();", 1), a(), n("Response response = client.newCall(request).execute();"), l();
|
|
799
827
|
}
|
|
800
|
-
},
|
|
828
|
+
}, vi = {
|
|
801
829
|
info: {
|
|
802
830
|
key: "unirest",
|
|
803
831
|
title: "Unirest",
|
|
@@ -814,19 +842,19 @@ var Xa = {
|
|
|
814
842
|
a(`.header("${c}", "${ce(r[c])}")`, 1);
|
|
815
843
|
}), t.text && a(`.body(${JSON.stringify(t.text)})`, 1), a(".asString();", 1), n();
|
|
816
844
|
}
|
|
817
|
-
},
|
|
845
|
+
}, bi = {
|
|
818
846
|
info: {
|
|
819
847
|
key: "java",
|
|
820
848
|
title: "Java",
|
|
821
849
|
default: "unirest"
|
|
822
850
|
},
|
|
823
851
|
clientsById: {
|
|
824
|
-
asynchttp:
|
|
825
|
-
nethttp:
|
|
826
|
-
okhttp:
|
|
827
|
-
unirest:
|
|
852
|
+
asynchttp: yi,
|
|
853
|
+
nethttp: mi,
|
|
854
|
+
okhttp: gi,
|
|
855
|
+
unirest: vi
|
|
828
856
|
}
|
|
829
|
-
},
|
|
857
|
+
}, xi = {
|
|
830
858
|
info: {
|
|
831
859
|
key: "axios",
|
|
832
860
|
title: "Axios",
|
|
@@ -870,7 +898,7 @@ var Xa = {
|
|
|
870
898
|
}).replace('"[form]"', "form");
|
|
871
899
|
return l(`const options = ${b};`), a(), 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();
|
|
872
900
|
}
|
|
873
|
-
},
|
|
901
|
+
}, ji = {
|
|
874
902
|
info: {
|
|
875
903
|
key: "fetch",
|
|
876
904
|
title: "fetch",
|
|
@@ -923,7 +951,7 @@ var Xa = {
|
|
|
923
951
|
})};`
|
|
924
952
|
), n(), t.params && t.mimeType === "multipart/form-data" && (l("options.body = form;"), n()), l(`fetch('${o}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), a();
|
|
925
953
|
}
|
|
926
|
-
},
|
|
954
|
+
}, $i = {
|
|
927
955
|
info: {
|
|
928
956
|
key: "jquery",
|
|
929
957
|
title: "jQuery",
|
|
@@ -955,7 +983,7 @@ var Xa = {
|
|
|
955
983
|
break;
|
|
956
984
|
if (a("const form = new FormData();"), o.params.forEach((b) => {
|
|
957
985
|
a(`form.append('${b.name}', '${b.value || b.fileName || ""}');`);
|
|
958
|
-
}), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]",
|
|
986
|
+
}), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", st(t, "content-type") && (g = be(t, "content-type")) != null && g.includes("boundary")) {
|
|
959
987
|
const b = pe(t, "content-type");
|
|
960
988
|
b && delete c.headers[b];
|
|
961
989
|
}
|
|
@@ -967,7 +995,7 @@ var Xa = {
|
|
|
967
995
|
const f = fe(c, { indent: s.indent }).replace("'[form]'", "form");
|
|
968
996
|
return a(`const settings = ${f};`), n(), a("$.ajax(settings).done(function (response) {"), a("console.log(response);", 1), a("});"), l();
|
|
969
997
|
}
|
|
970
|
-
},
|
|
998
|
+
}, wi = {
|
|
971
999
|
info: {
|
|
972
1000
|
key: "xhr",
|
|
973
1001
|
title: "XMLHttpRequest",
|
|
@@ -995,7 +1023,7 @@ var Xa = {
|
|
|
995
1023
|
break;
|
|
996
1024
|
if (a("const data = new FormData();"), e.params.forEach((f) => {
|
|
997
1025
|
a(`data.append('${f.name}', '${f.value || f.fileName || ""}');`);
|
|
998
|
-
}),
|
|
1026
|
+
}), st(r, "content-type") && (c = be(r, "content-type")) != null && c.includes("boundary")) {
|
|
999
1027
|
const f = pe(r, "content-type");
|
|
1000
1028
|
f && delete r[f];
|
|
1001
1029
|
}
|
|
@@ -1005,22 +1033,22 @@ var Xa = {
|
|
|
1005
1033
|
a(`const data = ${e.text ? `'${e.text}'` : "null"};`), n();
|
|
1006
1034
|
}
|
|
1007
1035
|
return a("const xhr = new XMLHttpRequest();"), s.cors && a("xhr.withCredentials = true;"), n(), a("xhr.addEventListener('readystatechange', function () {"), a("if (this.readyState === this.DONE) {", 1), a("console.log(this.responseText);", 2), a("}", 1), a("});"), n(), a(`xhr.open('${t}', '${o}');`), Object.keys(r).forEach((f) => {
|
|
1008
|
-
a(`xhr.setRequestHeader('${f}', '${
|
|
1036
|
+
a(`xhr.setRequestHeader('${f}', '${We(r[f])}');`);
|
|
1009
1037
|
}), n(), a("xhr.send(data);"), l();
|
|
1010
1038
|
}
|
|
1011
|
-
},
|
|
1039
|
+
}, Si = {
|
|
1012
1040
|
info: {
|
|
1013
1041
|
key: "javascript",
|
|
1014
1042
|
title: "JavaScript",
|
|
1015
1043
|
default: "xhr"
|
|
1016
1044
|
},
|
|
1017
1045
|
clientsById: {
|
|
1018
|
-
xhr:
|
|
1019
|
-
axios:
|
|
1020
|
-
fetch:
|
|
1021
|
-
jquery:
|
|
1046
|
+
xhr: wi,
|
|
1047
|
+
axios: xi,
|
|
1048
|
+
fetch: ji,
|
|
1049
|
+
jquery: $i
|
|
1022
1050
|
}
|
|
1023
|
-
},
|
|
1051
|
+
}, Oi = {
|
|
1024
1052
|
info: {
|
|
1025
1053
|
key: "native",
|
|
1026
1054
|
title: "Native JSON",
|
|
@@ -1054,16 +1082,16 @@ var Xa = {
|
|
|
1054
1082
|
}
|
|
1055
1083
|
return typeof o > "u" || o === "" ? "No JSON body" : JSON.stringify(o, null, t.indent);
|
|
1056
1084
|
}
|
|
1057
|
-
},
|
|
1085
|
+
}, Ti = {
|
|
1058
1086
|
info: {
|
|
1059
1087
|
key: "json",
|
|
1060
1088
|
title: "JSON",
|
|
1061
1089
|
default: "native"
|
|
1062
1090
|
},
|
|
1063
1091
|
clientsById: {
|
|
1064
|
-
native:
|
|
1092
|
+
native: Oi
|
|
1065
1093
|
}
|
|
1066
|
-
},
|
|
1094
|
+
}, Pi = {
|
|
1067
1095
|
info: {
|
|
1068
1096
|
key: "okhttp",
|
|
1069
1097
|
title: "OkHttp",
|
|
@@ -1080,16 +1108,16 @@ var Xa = {
|
|
|
1080
1108
|
l(`.addHeader("${g}", "${ce(o[g])}")`, 1);
|
|
1081
1109
|
}), l(".build()", 1), n(), l("val response = client.newCall(request).execute()"), a();
|
|
1082
1110
|
}
|
|
1083
|
-
},
|
|
1111
|
+
}, Ci = {
|
|
1084
1112
|
info: {
|
|
1085
1113
|
key: "kotlin",
|
|
1086
1114
|
title: "Kotlin",
|
|
1087
1115
|
default: "okhttp"
|
|
1088
1116
|
},
|
|
1089
1117
|
clientsById: {
|
|
1090
|
-
okhttp:
|
|
1118
|
+
okhttp: Pi
|
|
1091
1119
|
}
|
|
1092
|
-
},
|
|
1120
|
+
}, Ni = {
|
|
1093
1121
|
info: {
|
|
1094
1122
|
key: "axios",
|
|
1095
1123
|
title: "Axios",
|
|
@@ -1123,7 +1151,7 @@ var Xa = {
|
|
|
1123
1151
|
const g = fe(f, { indent: " ", inlineCharacterLimit: 80 });
|
|
1124
1152
|
return l(`const options = ${g};`), n(), 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), a();
|
|
1125
1153
|
}
|
|
1126
|
-
},
|
|
1154
|
+
}, ki = {
|
|
1127
1155
|
info: {
|
|
1128
1156
|
key: "fetch",
|
|
1129
1157
|
title: "Fetch",
|
|
@@ -1183,7 +1211,7 @@ var Xa = {
|
|
|
1183
1211
|
});
|
|
1184
1212
|
return c(`const options = ${j};`), l(), a && g("const fs = require('fs');"), t.params && t.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), f().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1185
1213
|
}
|
|
1186
|
-
},
|
|
1214
|
+
}, qi = {
|
|
1187
1215
|
info: {
|
|
1188
1216
|
key: "native",
|
|
1189
1217
|
title: "HTTP",
|
|
@@ -1222,7 +1250,7 @@ var Xa = {
|
|
|
1222
1250
|
}
|
|
1223
1251
|
return l("req.end();"), a();
|
|
1224
1252
|
}
|
|
1225
|
-
},
|
|
1253
|
+
}, Ri = {
|
|
1226
1254
|
info: {
|
|
1227
1255
|
key: "request",
|
|
1228
1256
|
title: "Request",
|
|
@@ -1275,7 +1303,7 @@ var Xa = {
|
|
|
1275
1303
|
c(`jar.setCookie(request.cookie('${encodeURIComponent(v)}=${encodeURIComponent(p)}'), '${r}');`);
|
|
1276
1304
|
}), f(), m((v) => v.replace(/'JAR'/, "jar"))), l && b("const fs = require('fs');"), c(`const options = ${fe(j, { indent: " ", inlineCharacterLimit: 80 })};`), f(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), f(), c("console.log(body);", 1), c("});"), g();
|
|
1277
1305
|
}
|
|
1278
|
-
},
|
|
1306
|
+
}, Ei = {
|
|
1279
1307
|
info: {
|
|
1280
1308
|
key: "unirest",
|
|
1281
1309
|
title: "Unirest",
|
|
@@ -1316,7 +1344,7 @@ var Xa = {
|
|
|
1316
1344
|
}
|
|
1317
1345
|
return l && m("const fs = require('fs');"), b("req.end(function (res) {"), b("if (res.error) throw new Error(res.error);", 1), f(), b("console.log(res.body);", 1), b("});"), g();
|
|
1318
1346
|
}
|
|
1319
|
-
},
|
|
1347
|
+
}, Ai = {
|
|
1320
1348
|
info: {
|
|
1321
1349
|
key: "node",
|
|
1322
1350
|
title: "Node.js",
|
|
@@ -1324,27 +1352,27 @@ var Xa = {
|
|
|
1324
1352
|
cli: "node %s"
|
|
1325
1353
|
},
|
|
1326
1354
|
clientsById: {
|
|
1327
|
-
native:
|
|
1328
|
-
request:
|
|
1329
|
-
unirest:
|
|
1330
|
-
axios:
|
|
1331
|
-
fetch:
|
|
1355
|
+
native: qi,
|
|
1356
|
+
request: Ri,
|
|
1357
|
+
unirest: Ei,
|
|
1358
|
+
axios: Ni,
|
|
1359
|
+
fetch: ki
|
|
1332
1360
|
}
|
|
1333
|
-
},
|
|
1334
|
-
const i = `${e} *${r} = `, s =
|
|
1361
|
+
}, wt = (e, r, t, o) => {
|
|
1362
|
+
const i = `${e} *${r} = `, s = Sr(t, o ? i.length : void 0);
|
|
1335
1363
|
return `${i}${s};`;
|
|
1336
|
-
},
|
|
1364
|
+
}, Sr = (e, r) => {
|
|
1337
1365
|
const t = r === void 0 ? ", " : `,
|
|
1338
1366
|
${" ".repeat(r)}`;
|
|
1339
1367
|
switch (Object.prototype.toString.call(e)) {
|
|
1340
1368
|
case "[object Number]":
|
|
1341
1369
|
return `@${e}`;
|
|
1342
1370
|
case "[object Array]":
|
|
1343
|
-
return `@[ ${e.map((i) =>
|
|
1371
|
+
return `@[ ${e.map((i) => Sr(i)).join(t)} ]`;
|
|
1344
1372
|
case "[object Object]": {
|
|
1345
1373
|
const o = [];
|
|
1346
1374
|
return Object.keys(e).forEach((i) => {
|
|
1347
|
-
o.push(`@"${i}": ${
|
|
1375
|
+
o.push(`@"${i}": ${Sr(e[i])}`);
|
|
1348
1376
|
}), `@{ ${o.join(t)} }`;
|
|
1349
1377
|
}
|
|
1350
1378
|
case "[object Boolean]":
|
|
@@ -1352,7 +1380,7 @@ var Xa = {
|
|
|
1352
1380
|
default:
|
|
1353
1381
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1354
1382
|
}
|
|
1355
|
-
},
|
|
1383
|
+
}, Ii = {
|
|
1356
1384
|
info: {
|
|
1357
1385
|
key: "nsurlsession",
|
|
1358
1386
|
title: "NSURLSession",
|
|
@@ -1371,7 +1399,7 @@ var Xa = {
|
|
|
1371
1399
|
hasHeaders: !1,
|
|
1372
1400
|
hasBody: !1
|
|
1373
1401
|
};
|
|
1374
|
-
if (n("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, l(), n(
|
|
1402
|
+
if (n("#import <Foundation/Foundation.h>"), Object.keys(e).length && (c.hasHeaders = !0, l(), n(wt("NSDictionary", "headers", e, s.pretty))), r.text || r.jsonObj || r.params)
|
|
1375
1403
|
switch (c.hasBody = !0, r.mimeType) {
|
|
1376
1404
|
case "application/x-www-form-urlencoded":
|
|
1377
1405
|
if ((f = r.params) != null && f.length) {
|
|
@@ -1386,10 +1414,10 @@ var Xa = {
|
|
|
1386
1414
|
c.hasBody = !1;
|
|
1387
1415
|
break;
|
|
1388
1416
|
case "application/json":
|
|
1389
|
-
r.jsonObj && (n(
|
|
1417
|
+
r.jsonObj && (n(wt("NSDictionary", "parameters", r.jsonObj, s.pretty)), l(), n("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));
|
|
1390
1418
|
break;
|
|
1391
1419
|
case "multipart/form-data":
|
|
1392
|
-
n(
|
|
1420
|
+
n(wt("NSArray", "parameters", r.params || [], s.pretty)), n(`NSString *boundary = @"${r.boundary}";`), l(), n("NSError *error;"), n("NSMutableString *body = [NSMutableString string];"), n("for (NSDictionary *param in parameters) {"), n('[body appendFormat:@"--%@\\r\\n", boundary];', 1), n('if (param[@"fileName"]) {', 1), n(
|
|
1393
1421
|
'[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',
|
|
1394
1422
|
2
|
|
1395
1423
|
), n('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];', 2), n(
|
|
@@ -1409,16 +1437,16 @@ var Xa = {
|
|
|
1409
1437
|
2
|
|
1410
1438
|
), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), a();
|
|
1411
1439
|
}
|
|
1412
|
-
},
|
|
1440
|
+
}, Li = {
|
|
1413
1441
|
info: {
|
|
1414
1442
|
key: "objc",
|
|
1415
1443
|
title: "Objective-C",
|
|
1416
1444
|
default: "nsurlsession"
|
|
1417
1445
|
},
|
|
1418
1446
|
clientsById: {
|
|
1419
|
-
nsurlsession:
|
|
1447
|
+
nsurlsession: Ii
|
|
1420
1448
|
}
|
|
1421
|
-
},
|
|
1449
|
+
}, Ui = {
|
|
1422
1450
|
info: {
|
|
1423
1451
|
key: "cohttp",
|
|
1424
1452
|
title: "CoHTTP",
|
|
@@ -1444,14 +1472,14 @@ var Xa = {
|
|
|
1444
1472
|
const g = f.length ? "~headers " : "", b = t.text ? "~body " : "", m = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
|
|
1445
1473
|
return a(`Client.call ${g}${b}${m} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), c();
|
|
1446
1474
|
}
|
|
1447
|
-
},
|
|
1475
|
+
}, Fi = {
|
|
1448
1476
|
info: {
|
|
1449
1477
|
key: "ocaml",
|
|
1450
1478
|
title: "OCaml",
|
|
1451
1479
|
default: "cohttp"
|
|
1452
1480
|
},
|
|
1453
1481
|
clientsById: {
|
|
1454
|
-
cohttp:
|
|
1482
|
+
cohttp: Ui
|
|
1455
1483
|
}
|
|
1456
1484
|
}, te = (e, r, t) => {
|
|
1457
1485
|
switch (t = t || "", r = r || "", Object.prototype.toString.call(e)) {
|
|
@@ -1462,7 +1490,7 @@ var Xa = {
|
|
|
1462
1490
|
case "[object Undefined]":
|
|
1463
1491
|
return "null";
|
|
1464
1492
|
case "[object String]":
|
|
1465
|
-
return `'${
|
|
1493
|
+
return `'${Ge(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
1466
1494
|
case "[object Number]":
|
|
1467
1495
|
return e.toString();
|
|
1468
1496
|
case "[object Array]": {
|
|
@@ -1484,7 +1512,7 @@ ${t}]`;
|
|
|
1484
1512
|
default:
|
|
1485
1513
|
return "null";
|
|
1486
1514
|
}
|
|
1487
|
-
},
|
|
1515
|
+
}, rn = [
|
|
1488
1516
|
"ACL",
|
|
1489
1517
|
"BASELINE_CONTROL",
|
|
1490
1518
|
"CHECKIN",
|
|
@@ -1512,7 +1540,7 @@ ${t}]`;
|
|
|
1512
1540
|
"UNLOCK",
|
|
1513
1541
|
"UPDATE",
|
|
1514
1542
|
"VERSION_CONTROL"
|
|
1515
|
-
],
|
|
1543
|
+
], _i = {
|
|
1516
1544
|
info: {
|
|
1517
1545
|
key: "curl",
|
|
1518
1546
|
title: "cURL",
|
|
@@ -1579,18 +1607,18 @@ ${t}]`;
|
|
|
1579
1607
|
}
|
|
1580
1608
|
];
|
|
1581
1609
|
v("curl_setopt_array($curl, [");
|
|
1582
|
-
const
|
|
1610
|
+
const O = new V({ indent: c, join: `
|
|
1583
1611
|
${c}` });
|
|
1584
|
-
y.forEach(({ value:
|
|
1585
|
-
|
|
1612
|
+
y.forEach(({ value: S, name: x, escape: N }) => {
|
|
1613
|
+
S != null && O.push(`${x} => ${N ? JSON.stringify(S) : S},`);
|
|
1586
1614
|
});
|
|
1587
|
-
const T = s.map((
|
|
1588
|
-
T.length &&
|
|
1589
|
-
const d = Object.keys(n).sort().map((
|
|
1590
|
-
return d.length && (
|
|
1591
|
-
${c}${c}`), 1),
|
|
1615
|
+
const T = s.map((S) => `${encodeURIComponent(S.name)}=${encodeURIComponent(S.value)}`);
|
|
1616
|
+
T.length && O.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
|
|
1617
|
+
const d = Object.keys(n).sort().map((S) => `"${S}: ${ce(n[S])}"`);
|
|
1618
|
+
return d.length && (O.push("CURLOPT_HTTPHEADER => ["), O.push(d.join(`,
|
|
1619
|
+
${c}${c}`), 1), O.push("],")), v(O.join(), 1), v("]);"), p(), v("$response = curl_exec($curl);"), v("$err = curl_error($curl);"), p(), v("curl_close($curl);"), p(), v("if ($err) {"), v(g ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), v("} else {"), v("echo $response;", 1), v("}"), !b && l && (p(), v("?>")), h();
|
|
1592
1620
|
}
|
|
1593
|
-
},
|
|
1621
|
+
}, Bi = {
|
|
1594
1622
|
info: {
|
|
1595
1623
|
key: "guzzle",
|
|
1596
1624
|
title: "Guzzle",
|
|
@@ -1626,7 +1654,7 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1626
1654
|
name: h.name,
|
|
1627
1655
|
contents: h.value
|
|
1628
1656
|
});
|
|
1629
|
-
}), p.length && (g(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1),
|
|
1657
|
+
}), p.length && (g(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1), st(i, "content-type") && (v = be(i, "content-type")) != null && v.indexOf("boundary"))) {
|
|
1630
1658
|
const h = pe(i, "content-type");
|
|
1631
1659
|
h && delete i[h];
|
|
1632
1660
|
}
|
|
@@ -1636,12 +1664,12 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1636
1664
|
e.text && g(`'body' => ${te(e.text)},`, 1);
|
|
1637
1665
|
}
|
|
1638
1666
|
const m = Object.keys(i).sort().map(function(p) {
|
|
1639
|
-
return `${n.indent}${n.indent}'${p}' => '${
|
|
1667
|
+
return `${n.indent}${n.indent}'${p}' => '${We(i[p])}',`;
|
|
1640
1668
|
}), j = o.map((p) => `${encodeURIComponent(p.name)}=${encodeURIComponent(p.value)}`).join("; ");
|
|
1641
|
-
return j.length && m.push(`${n.indent}${n.indent}'cookie' => '${
|
|
1669
|
+
return j.length && m.push(`${n.indent}${n.indent}'cookie' => '${We(j)}',`), m.length && (g("'headers' => [", 1), g(m.join(`
|
|
1642
1670
|
`)), g("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), l(), f.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(b()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), l(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (l(), a("?>")), c();
|
|
1643
1671
|
}
|
|
1644
|
-
},
|
|
1672
|
+
}, Hi = {
|
|
1645
1673
|
info: {
|
|
1646
1674
|
key: "http1",
|
|
1647
1675
|
title: "HTTP v1",
|
|
@@ -1651,7 +1679,7 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1651
1679
|
},
|
|
1652
1680
|
convert: ({ method: e, url: r, postData: t, queryObj: o, headersObj: i, cookiesObj: s }, n = {}) => {
|
|
1653
1681
|
const { closingTag: a = !1, indent: l = " ", noTags: c = !1, shortTags: f = !1 } = n, { push: g, blank: b, join: m } = new V({ indent: l });
|
|
1654
|
-
switch (c || (g(f ? "<?" : "<?php"), b()),
|
|
1682
|
+
switch (c || (g(f ? "<?" : "<?php"), b()), rn.includes(e.toUpperCase()) || g(`HttpRequest::methodRegister('${e}');`), g("$request = new HttpRequest();"), g(`$request->setUrl(${te(r)});`), rn.includes(e.toUpperCase()) ? g(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : g(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), b(), Object.keys(o).length && (g(`$request->setQueryData(${te(o, l)});`), b()), Object.keys(i).length && (g(`$request->setHeaders(${te(i, l)});`), b()), Object.keys(s).length && (g(`$request->setCookies(${te(s, l)});`), b()), t.mimeType) {
|
|
1655
1683
|
case "application/x-www-form-urlencoded":
|
|
1656
1684
|
g(`$request->setContentType(${te(t.mimeType)});`), g(`$request->setPostFields(${te(t.paramsObj, l)});`), b();
|
|
1657
1685
|
break;
|
|
@@ -1663,7 +1691,7 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1663
1691
|
}
|
|
1664
1692
|
return g("try {"), g("$response = $request->send();", 1), b(), g("echo $response->getBody();", 1), g("} catch (HttpException $ex) {"), g("echo $ex;", 1), g("}"), !c && a && (b(), g("?>")), m();
|
|
1665
1693
|
}
|
|
1666
|
-
},
|
|
1694
|
+
}, Mi = {
|
|
1667
1695
|
info: {
|
|
1668
1696
|
key: "http2",
|
|
1669
1697
|
title: "HTTP v2",
|
|
@@ -1683,20 +1711,20 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1683
1711
|
if (!e.params)
|
|
1684
1712
|
break;
|
|
1685
1713
|
const p = [], h = {};
|
|
1686
|
-
e.params.forEach(({ name: T, fileName: d, value:
|
|
1714
|
+
e.params.forEach(({ name: T, fileName: d, value: S, contentType: x }) => {
|
|
1687
1715
|
if (d) {
|
|
1688
1716
|
p.push({
|
|
1689
1717
|
name: T,
|
|
1690
1718
|
type: x,
|
|
1691
1719
|
file: d,
|
|
1692
|
-
data:
|
|
1720
|
+
data: S
|
|
1693
1721
|
});
|
|
1694
1722
|
return;
|
|
1695
1723
|
}
|
|
1696
|
-
|
|
1724
|
+
S && (h[T] = S);
|
|
1697
1725
|
});
|
|
1698
|
-
const y = Object.keys(h).length ? te(h, l) : "null",
|
|
1699
|
-
if (g("$body = new http\\Message\\Body;"), g(`$body->addForm(${y}, ${
|
|
1726
|
+
const y = Object.keys(h).length ? te(h, l) : "null", O = p.length ? te(p, l) : "null";
|
|
1727
|
+
if (g("$body = new http\\Message\\Body;"), g(`$body->addForm(${y}, ${O});`), st(r, "content-type") && (v = be(r, "content-type")) != null && v.indexOf("boundary")) {
|
|
1700
1728
|
const T = pe(r, "content-type");
|
|
1701
1729
|
T && delete r[T];
|
|
1702
1730
|
}
|
|
@@ -1711,7 +1739,7 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1711
1739
|
}
|
|
1712
1740
|
return g(`$request->setRequestUrl(${te(s)});`), g(`$request->setRequestMethod(${te(t)});`), j && (g("$request->setBody($body);"), b()), Object.keys(o).length && (g(`$request->setQuery(new http\\QueryString(${te(o, l)}));`), b()), Object.keys(r).length && (g(`$request->setHeaders(${te(r, l)});`), b()), Object.keys(i).length && (b(), g(`$client->setCookies(${te(i, l)});`), b()), g("$client->enqueue($request)->send();"), g("$response = $client->getResponse();"), b(), g("echo $response->getBody();"), !c && a && (b(), g("?>")), m();
|
|
1713
1741
|
}
|
|
1714
|
-
},
|
|
1742
|
+
}, zi = {
|
|
1715
1743
|
info: {
|
|
1716
1744
|
key: "php",
|
|
1717
1745
|
title: "PHP",
|
|
@@ -1719,24 +1747,24 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1719
1747
|
cli: "php %s"
|
|
1720
1748
|
},
|
|
1721
1749
|
clientsById: {
|
|
1722
|
-
curl:
|
|
1723
|
-
guzzle:
|
|
1724
|
-
http1:
|
|
1725
|
-
http2:
|
|
1750
|
+
curl: _i,
|
|
1751
|
+
guzzle: Bi,
|
|
1752
|
+
http1: Hi,
|
|
1753
|
+
http2: Mi
|
|
1726
1754
|
}
|
|
1727
|
-
},
|
|
1755
|
+
}, jo = (e) => ({ method: t, headersObj: o, cookies: i, uriObj: s, fullUrl: n, postData: a, allHeaders: l }) => {
|
|
1728
1756
|
const { push: c, join: f } = new V();
|
|
1729
1757
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
|
|
1730
1758
|
return "Method not supported";
|
|
1731
1759
|
const b = [], m = Object.keys(o);
|
|
1732
1760
|
return m.length && (c("$headers=@{}"), m.forEach((j) => {
|
|
1733
|
-
j !== "connection" && c(`$headers.Add("${j}", "${
|
|
1761
|
+
j !== "connection" && c(`$headers.Add("${j}", "${Ge(o[j], { escapeChar: "`" })}")`);
|
|
1734
1762
|
}), b.push("-Headers $headers")), i.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), i.forEach((j) => {
|
|
1735
1763
|
c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${j.name}'`), c(`$cookie.Value = '${j.value}'`), c(`$cookie.Domain = '${s.host}'`), c("$session.Cookies.Add($cookie)");
|
|
1736
1764
|
}), b.push("-WebSession $session")), a.text && (b.push(
|
|
1737
|
-
`-ContentType '${
|
|
1765
|
+
`-ContentType '${Ge(be(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
1738
1766
|
), b.push(`-Body '${a.text}'`)), c(`$response = ${e} -Uri '${n}' -Method ${t} ${b.join(" ")}`.trim()), f();
|
|
1739
|
-
},
|
|
1767
|
+
}, Gi = {
|
|
1740
1768
|
info: {
|
|
1741
1769
|
key: "restmethod",
|
|
1742
1770
|
title: "Invoke-RestMethod",
|
|
@@ -1744,8 +1772,8 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1744
1772
|
description: "Powershell Invoke-RestMethod client",
|
|
1745
1773
|
extname: ".ps1"
|
|
1746
1774
|
},
|
|
1747
|
-
convert:
|
|
1748
|
-
},
|
|
1775
|
+
convert: jo("Invoke-RestMethod")
|
|
1776
|
+
}, Wi = {
|
|
1749
1777
|
info: {
|
|
1750
1778
|
key: "webrequest",
|
|
1751
1779
|
title: "Invoke-WebRequest",
|
|
@@ -1753,19 +1781,19 @@ ${c}${c}`), 1), S.push("],")), v(S.join(), 1), v("]);"), p(), v("$response = cur
|
|
|
1753
1781
|
description: "Powershell Invoke-WebRequest client",
|
|
1754
1782
|
extname: ".ps1"
|
|
1755
1783
|
},
|
|
1756
|
-
convert:
|
|
1757
|
-
},
|
|
1784
|
+
convert: jo("Invoke-WebRequest")
|
|
1785
|
+
}, Ji = {
|
|
1758
1786
|
info: {
|
|
1759
1787
|
key: "powershell",
|
|
1760
1788
|
title: "Powershell",
|
|
1761
1789
|
default: "webrequest"
|
|
1762
1790
|
},
|
|
1763
1791
|
clientsById: {
|
|
1764
|
-
webrequest:
|
|
1765
|
-
restmethod:
|
|
1792
|
+
webrequest: Wi,
|
|
1793
|
+
restmethod: Gi
|
|
1766
1794
|
}
|
|
1767
1795
|
};
|
|
1768
|
-
function
|
|
1796
|
+
function nn(e, r, t, o, i) {
|
|
1769
1797
|
const s = o.repeat(i), n = o.repeat(i - 1), a = t ? `,
|
|
1770
1798
|
${s}` : ", ", l = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
|
|
1771
1799
|
return t ? `${l}
|
|
@@ -1779,13 +1807,13 @@ var Ie = (e, r, t) => {
|
|
|
1779
1807
|
case "[object Array]": {
|
|
1780
1808
|
let o = !1;
|
|
1781
1809
|
const i = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (o = Object.keys(s).length > 1), Ie(s, r, t)));
|
|
1782
|
-
return
|
|
1810
|
+
return nn("array", i, o, r.indent, t);
|
|
1783
1811
|
}
|
|
1784
1812
|
case "[object Object]": {
|
|
1785
1813
|
const o = [];
|
|
1786
1814
|
for (const i in e)
|
|
1787
1815
|
o.push(`"${i}": ${Ie(e[i], r, t)}`);
|
|
1788
|
-
return
|
|
1816
|
+
return nn("object", o, r.pretty && o.length > 1, r.indent, t);
|
|
1789
1817
|
}
|
|
1790
1818
|
case "[object Null]":
|
|
1791
1819
|
return "None";
|
|
@@ -1794,7 +1822,7 @@ var Ie = (e, r, t) => {
|
|
|
1794
1822
|
default:
|
|
1795
1823
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
1796
1824
|
}
|
|
1797
|
-
},
|
|
1825
|
+
}, Vi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Di = {
|
|
1798
1826
|
info: {
|
|
1799
1827
|
key: "requests",
|
|
1800
1828
|
title: "Requests",
|
|
@@ -1853,14 +1881,14 @@ var Ie = (e, r, t) => {
|
|
|
1853
1881
|
});
|
|
1854
1882
|
else if (p > 1) {
|
|
1855
1883
|
let y = 1;
|
|
1856
|
-
n("headers = {"), Object.keys(f).forEach((
|
|
1857
|
-
n(y !== p ? `"${
|
|
1884
|
+
n("headers = {"), Object.keys(f).forEach((O) => {
|
|
1885
|
+
n(y !== p ? `"${O}": "${ce(f[O])}",` : `"${O}": "${ce(f[O])}"`, 1), y += 1;
|
|
1858
1886
|
}), n("}"), a();
|
|
1859
1887
|
}
|
|
1860
|
-
let h =
|
|
1888
|
+
let h = Vi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
|
|
1861
1889
|
return j && (v ? h += ", json=payload" : h += ", data=payload"), m && (h += ", files=files"), p > 0 && (h += ", headers=headers"), h += ")", n(h), a(), n("print(response.text)"), l();
|
|
1862
1890
|
}
|
|
1863
|
-
},
|
|
1891
|
+
}, Ki = {
|
|
1864
1892
|
info: {
|
|
1865
1893
|
key: "python",
|
|
1866
1894
|
title: "Python",
|
|
@@ -1868,9 +1896,9 @@ var Ie = (e, r, t) => {
|
|
|
1868
1896
|
cli: "python3 %s"
|
|
1869
1897
|
},
|
|
1870
1898
|
clientsById: {
|
|
1871
|
-
requests:
|
|
1899
|
+
requests: Di
|
|
1872
1900
|
}
|
|
1873
|
-
},
|
|
1901
|
+
}, Qi = {
|
|
1874
1902
|
info: {
|
|
1875
1903
|
key: "httr",
|
|
1876
1904
|
title: "httr",
|
|
@@ -1884,8 +1912,8 @@ var Ie = (e, r, t) => {
|
|
|
1884
1912
|
const c = r;
|
|
1885
1913
|
delete r.key;
|
|
1886
1914
|
const f = Object.keys(c).length;
|
|
1887
|
-
t.length === 1 ? (n(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), a()) : t.length > 1 && (n("queryString <- list("), Object.keys(c).forEach((d,
|
|
1888
|
-
|
|
1915
|
+
t.length === 1 ? (n(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), a()) : t.length > 1 && (n("queryString <- list("), Object.keys(c).forEach((d, S) => {
|
|
1916
|
+
S !== f - 1 ? n(` ${d} = "${c[d].toString()}",`) : n(` ${d} = "${c[d].toString()}"`);
|
|
1889
1917
|
}), n(")"), a());
|
|
1890
1918
|
const g = JSON.stringify(o.text);
|
|
1891
1919
|
if (g && (n(`payload <- ${g}`), a()), o.text || o.jsonObj || o.params)
|
|
@@ -1903,22 +1931,22 @@ var Ie = (e, r, t) => {
|
|
|
1903
1931
|
n('encode <- "raw"'), a();
|
|
1904
1932
|
break;
|
|
1905
1933
|
}
|
|
1906
|
-
const b =
|
|
1907
|
-
let
|
|
1908
|
-
g && (
|
|
1934
|
+
const b = be(i, "cookie"), m = be(i, "accept"), j = b ? `set_cookies(\`${String(b).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, v = m ? `accept("${ce(m)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, h = Object.entries(i).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, S]) => `'${d}' = '${We(S)}'`).join(", "), y = h ? `add_headers(${h})` : void 0;
|
|
1935
|
+
let O = `response <- VERB("${s}", url`;
|
|
1936
|
+
g && (O += ", body = payload"), t.length && (O += ", query = queryString");
|
|
1909
1937
|
const T = [y, p, v, j].filter((d) => !!d).join(", ");
|
|
1910
|
-
return T && (
|
|
1938
|
+
return T && (O += `, ${T}`), (o.text || o.jsonObj || o.params) && (O += ", encode = encode"), O += ")", n(O), a(), n('content(response, "text")'), l();
|
|
1911
1939
|
}
|
|
1912
|
-
},
|
|
1940
|
+
}, Yi = {
|
|
1913
1941
|
info: {
|
|
1914
1942
|
key: "r",
|
|
1915
1943
|
title: "R",
|
|
1916
1944
|
default: "httr"
|
|
1917
1945
|
},
|
|
1918
1946
|
clientsById: {
|
|
1919
|
-
httr:
|
|
1947
|
+
httr: Qi
|
|
1920
1948
|
}
|
|
1921
|
-
},
|
|
1949
|
+
}, Xi = {
|
|
1922
1950
|
info: {
|
|
1923
1951
|
key: "native",
|
|
1924
1952
|
title: "net::http",
|
|
@@ -1946,19 +1974,19 @@ var Ie = (e, r, t) => {
|
|
|
1946
1974
|
c.includes(l) || (s(`class Net::HTTP::${f} < Net::HTTPRequest`), s(` METHOD = '${l.toUpperCase()}'`), s(` REQUEST_HAS_BODY = '${o.text ? "true" : "false"}'`), s(" RESPONSE_HAS_BODY = true"), s("end"), n()), s(`url = URI("${t}")`), n(), s("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && s("http.use_ssl = true"), n(), s(`request = Net::HTTP::${f}.new(url)`);
|
|
1947
1975
|
const g = Object.keys(i);
|
|
1948
1976
|
return g.length && g.forEach((b) => {
|
|
1949
|
-
s(`request["${b}"] = '${
|
|
1977
|
+
s(`request["${b}"] = '${We(i[b])}'`);
|
|
1950
1978
|
}), o.text && s(`request.body = ${JSON.stringify(o.text)}`), n(), s("response = http.request(request)"), s("puts response.read_body"), a();
|
|
1951
1979
|
}
|
|
1952
|
-
},
|
|
1980
|
+
}, Zi = {
|
|
1953
1981
|
info: {
|
|
1954
1982
|
key: "ruby",
|
|
1955
1983
|
title: "Ruby",
|
|
1956
1984
|
default: "native"
|
|
1957
1985
|
},
|
|
1958
1986
|
clientsById: {
|
|
1959
|
-
native:
|
|
1987
|
+
native: Xi
|
|
1960
1988
|
}
|
|
1961
|
-
}, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
1989
|
+
}, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, es = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ts = {
|
|
1962
1990
|
"http1.0": "0",
|
|
1963
1991
|
"url ": "",
|
|
1964
1992
|
cookie: "b",
|
|
@@ -1968,13 +1996,13 @@ var Ie = (e, r, t) => {
|
|
|
1968
1996
|
header: "H",
|
|
1969
1997
|
insecure: "k",
|
|
1970
1998
|
request: "X"
|
|
1971
|
-
},
|
|
1999
|
+
}, rs = (e) => (r) => {
|
|
1972
2000
|
if (e) {
|
|
1973
|
-
const t =
|
|
2001
|
+
const t = ts[r];
|
|
1974
2002
|
return t ? `-${t}` : "";
|
|
1975
2003
|
}
|
|
1976
2004
|
return `--${r}`;
|
|
1977
|
-
},
|
|
2005
|
+
}, ns = {
|
|
1978
2006
|
info: {
|
|
1979
2007
|
key: "curl",
|
|
1980
2008
|
title: "cURL",
|
|
@@ -1988,15 +2016,15 @@ var Ie = (e, r, t) => {
|
|
|
1988
2016
|
...typeof a == "string" ? { indent: a } : {},
|
|
1989
2017
|
join: a !== !1 ? ` \\
|
|
1990
2018
|
${a}` : " "
|
|
1991
|
-
}), j =
|
|
2019
|
+
}), j = rs(l);
|
|
1992
2020
|
let v = ue(e);
|
|
1993
|
-
if (b(`curl ${j("request")} ${r}`), f && (v = unescape(v), b(j("globoff"))), b(`${j("url ")}${v}`), t === "HTTP/1.0" && b(j("http1.0")),
|
|
2021
|
+
if (b(`curl ${j("request")} ${r}`), f && (v = unescape(v), b(j("globoff"))), b(`${j("url ")}${v}`), t === "HTTP/1.0" && b(j("http1.0")), be(i, "accept-encoding") && b("--compressed"), s.mimeType === "multipart/form-data") {
|
|
1994
2022
|
const h = pe(o, "content-type");
|
|
1995
2023
|
if (h) {
|
|
1996
2024
|
const y = o[h];
|
|
1997
2025
|
if (h && y) {
|
|
1998
|
-
const
|
|
1999
|
-
o[h] =
|
|
2026
|
+
const O = String(y).replace(/; boundary.+?(?=(;|$))/, "");
|
|
2027
|
+
o[h] = O, i[h] = O;
|
|
2000
2028
|
}
|
|
2001
2029
|
}
|
|
2002
2030
|
}
|
|
@@ -2006,21 +2034,21 @@ ${a}` : " "
|
|
|
2006
2034
|
}), i.cookie && b(`${j("cookie")} ${ue(i.cookie)}`), s.mimeType) {
|
|
2007
2035
|
case "multipart/form-data":
|
|
2008
2036
|
(p = s.params) == null || p.forEach((y) => {
|
|
2009
|
-
let
|
|
2010
|
-
y.fileName ?
|
|
2037
|
+
let O = "";
|
|
2038
|
+
y.fileName ? O = `${y.name}='@${y.fileName}'` : O = ue(`${y.name}=${y.value}`), b(`${j("form")} ${O}`);
|
|
2011
2039
|
});
|
|
2012
2040
|
break;
|
|
2013
2041
|
case "application/x-www-form-urlencoded":
|
|
2014
2042
|
s.params ? s.params.forEach((y) => {
|
|
2015
|
-
const
|
|
2016
|
-
b(`${x} ${ue(`${
|
|
2043
|
+
const O = y.name, T = encodeURIComponent(y.name), d = T !== O, S = d ? T : O, x = c ? "--data-binary" : d ? "--data-urlencode" : j("data");
|
|
2044
|
+
b(`${x} ${ue(`${S}=${y.value}`)}`);
|
|
2017
2045
|
}) : b(`${c ? "--data-binary" : j("data")} ${ue(s.text)}`);
|
|
2018
2046
|
break;
|
|
2019
2047
|
default:
|
|
2020
2048
|
if (!s.text)
|
|
2021
2049
|
break;
|
|
2022
2050
|
let h = !1;
|
|
2023
|
-
if (
|
|
2051
|
+
if (ri(s.mimeType) && s.text.length > 20)
|
|
2024
2052
|
try {
|
|
2025
2053
|
const y = JSON.parse(s.text);
|
|
2026
2054
|
h = !0, s.text.indexOf("'") > 0 ? b(
|
|
@@ -2042,7 +2070,7 @@ ${JSON.stringify(y, null, g)}
|
|
|
2042
2070
|
}
|
|
2043
2071
|
return m();
|
|
2044
2072
|
}
|
|
2045
|
-
},
|
|
2073
|
+
}, os = {
|
|
2046
2074
|
info: {
|
|
2047
2075
|
key: "httpie",
|
|
2048
2076
|
title: "HTTPie",
|
|
@@ -2091,7 +2119,7 @@ ${a.indent}` : " "
|
|
|
2091
2119
|
}
|
|
2092
2120
|
return c();
|
|
2093
2121
|
}
|
|
2094
|
-
},
|
|
2122
|
+
}, as = {
|
|
2095
2123
|
info: {
|
|
2096
2124
|
key: "wget",
|
|
2097
2125
|
title: "Wget",
|
|
@@ -2113,9 +2141,9 @@ ${s.indent}` : " "
|
|
|
2113
2141
|
return s.verbose ? n(`wget ${s.short ? "-v" : "--verbose"}`) : n(`wget ${s.short ? "-q" : "--quiet"}`), n(`--method ${ue(e)}`), Object.keys(t).forEach((l) => {
|
|
2114
2142
|
const c = `${l}: ${t[l]}`;
|
|
2115
2143
|
n(`--header ${ue(c)}`);
|
|
2116
|
-
}), r.text && n(`--body-data ${
|
|
2144
|
+
}), r.text && n(`--body-data ${es(ue(r.text))}`), n(s.short ? "-O" : "--output-document"), n(`- ${ue(o)}`), a();
|
|
2117
2145
|
}
|
|
2118
|
-
},
|
|
2146
|
+
}, is = {
|
|
2119
2147
|
info: {
|
|
2120
2148
|
key: "shell",
|
|
2121
2149
|
title: "Shell",
|
|
@@ -2123,30 +2151,30 @@ ${s.indent}` : " "
|
|
|
2123
2151
|
cli: "%s"
|
|
2124
2152
|
},
|
|
2125
2153
|
clientsById: {
|
|
2126
|
-
curl:
|
|
2127
|
-
httpie:
|
|
2128
|
-
wget:
|
|
2154
|
+
curl: ns,
|
|
2155
|
+
httpie: os,
|
|
2156
|
+
wget: as
|
|
2129
2157
|
}
|
|
2130
|
-
},
|
|
2131
|
-
const i =
|
|
2158
|
+
}, on = (e, r) => r.repeat(e), an = (e, r, t, o) => {
|
|
2159
|
+
const i = on(o, t), s = on(o - 1, t), n = r ? `,
|
|
2132
2160
|
${i}` : ", ";
|
|
2133
2161
|
return r ? `[
|
|
2134
2162
|
${i}${e.join(n)}
|
|
2135
2163
|
${s}]` : `[${e.join(n)}]`;
|
|
2136
|
-
},
|
|
2164
|
+
}, sn = (e, r, t) => `let ${e} = ${at(r, t)}`, at = (e, r, t) => {
|
|
2137
2165
|
switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
|
|
2138
2166
|
case "[object Number]":
|
|
2139
2167
|
return e;
|
|
2140
2168
|
case "[object Array]": {
|
|
2141
2169
|
let o = !1;
|
|
2142
|
-
const i = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (o = Object.keys(s).length > 1),
|
|
2143
|
-
return
|
|
2170
|
+
const i = e.map((s) => (Object.prototype.toString.call(s) === "[object Object]" && (o = Object.keys(s).length > 1), at(s, r, t)));
|
|
2171
|
+
return an(i, o, r.indent, t);
|
|
2144
2172
|
}
|
|
2145
2173
|
case "[object Object]": {
|
|
2146
2174
|
const o = [];
|
|
2147
2175
|
for (const i in e)
|
|
2148
|
-
o.push(`"${i}": ${
|
|
2149
|
-
return
|
|
2176
|
+
o.push(`"${i}": ${at(e[i], r, t)}`);
|
|
2177
|
+
return an(
|
|
2150
2178
|
o,
|
|
2151
2179
|
// @ts-expect-error needs better types
|
|
2152
2180
|
r.pretty && o.length > 1,
|
|
@@ -2160,7 +2188,7 @@ ${s}]` : `[${e.join(n)}]`;
|
|
|
2160
2188
|
default:
|
|
2161
2189
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2162
2190
|
}
|
|
2163
|
-
},
|
|
2191
|
+
}, ss = {
|
|
2164
2192
|
info: {
|
|
2165
2193
|
key: "urlsession",
|
|
2166
2194
|
title: "URLSession",
|
|
@@ -2187,10 +2215,10 @@ ${s}]` : `[${e.join(n)}]`;
|
|
|
2187
2215
|
}
|
|
2188
2216
|
break;
|
|
2189
2217
|
case "application/json":
|
|
2190
|
-
r.jsonObj && (a(`${
|
|
2218
|
+
r.jsonObj && (a(`${sn("parameters", r.jsonObj, n)} as [String : Any?]`), l(), a("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
|
|
2191
2219
|
break;
|
|
2192
2220
|
case "multipart/form-data":
|
|
2193
|
-
a(
|
|
2221
|
+
a(sn("parameters", r.params, n)), l(), a(`let boundary = "${r.boundary}"`), l(), a('var body = ""'), a("for param in parameters {"), a('let paramName = param["name"]!', 1), a('body += "--\\(boundary)\\r\\n"', 1), a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), a('if let filename = param["fileName"] {', 1), a('let contentType = param["contentType"]!', 2), a("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), a('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), a("body += fileContent", 2), a('} else if let paramValue = param["value"] {', 1), a('body += "\\r\\n\\r\\n\\(paramValue)"', 2), a("}", 1), a("}"), l(), a("let postData = Data(body.utf8)"), l();
|
|
2194
2222
|
break;
|
|
2195
2223
|
default:
|
|
2196
2224
|
a(`let postData = Data("${r.text}".utf8)`), l();
|
|
@@ -2209,125 +2237,125 @@ ${s}]` : `[${e.join(n)}]`;
|
|
|
2209
2237
|
});
|
|
2210
2238
|
break;
|
|
2211
2239
|
}
|
|
2212
|
-
}), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${i}"`), a(`request.timeoutInterval = ${n.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${
|
|
2240
|
+
}), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${i}"`), a(`request.timeoutInterval = ${n.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${at(e, n)}`), f && a("request.httpBody = postData"), l(), a("let (data, _) = try await URLSession.shared.data(for: request)"), a("print(String(decoding: data, as: UTF8.self))"), c();
|
|
2213
2241
|
}
|
|
2214
|
-
},
|
|
2242
|
+
}, ls = {
|
|
2215
2243
|
info: {
|
|
2216
2244
|
key: "swift",
|
|
2217
2245
|
title: "Swift",
|
|
2218
2246
|
default: "urlsession"
|
|
2219
2247
|
},
|
|
2220
2248
|
clientsById: {
|
|
2221
|
-
urlsession:
|
|
2249
|
+
urlsession: ss
|
|
2222
2250
|
}
|
|
2223
|
-
},
|
|
2224
|
-
c:
|
|
2225
|
-
clojure:
|
|
2226
|
-
csharp:
|
|
2227
|
-
go:
|
|
2228
|
-
http:
|
|
2229
|
-
java:
|
|
2230
|
-
javascript:
|
|
2231
|
-
json:
|
|
2232
|
-
kotlin:
|
|
2233
|
-
node:
|
|
2234
|
-
objc:
|
|
2235
|
-
ocaml:
|
|
2236
|
-
php:
|
|
2237
|
-
powershell:
|
|
2238
|
-
python:
|
|
2239
|
-
r:
|
|
2240
|
-
ruby:
|
|
2241
|
-
shell:
|
|
2242
|
-
swift:
|
|
2243
|
-
}, Ce = {},
|
|
2251
|
+
}, cs = {
|
|
2252
|
+
c: ti,
|
|
2253
|
+
clojure: ai,
|
|
2254
|
+
csharp: ui,
|
|
2255
|
+
go: pi,
|
|
2256
|
+
http: hi,
|
|
2257
|
+
java: bi,
|
|
2258
|
+
javascript: Si,
|
|
2259
|
+
json: Ti,
|
|
2260
|
+
kotlin: Ci,
|
|
2261
|
+
node: Ai,
|
|
2262
|
+
objc: Li,
|
|
2263
|
+
ocaml: Fi,
|
|
2264
|
+
php: zi,
|
|
2265
|
+
powershell: Ji,
|
|
2266
|
+
python: Ki,
|
|
2267
|
+
r: Yi,
|
|
2268
|
+
ruby: Zi,
|
|
2269
|
+
shell: is,
|
|
2270
|
+
swift: ls
|
|
2271
|
+
}, Ce = {}, Be = { exports: {} };
|
|
2244
2272
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
2245
|
-
var
|
|
2246
|
-
function
|
|
2247
|
-
return
|
|
2273
|
+
var us = Be.exports, ln;
|
|
2274
|
+
function fs() {
|
|
2275
|
+
return ln || (ln = 1, function(e, r) {
|
|
2248
2276
|
(function(t) {
|
|
2249
|
-
var o = r && !r.nodeType && r, i = e && !e.nodeType && e, s = typeof
|
|
2277
|
+
var o = r && !r.nodeType && r, i = e && !e.nodeType && e, s = typeof rt == "object" && rt;
|
|
2250
2278
|
(s.global === s || s.window === s || s.self === s) && (t = s);
|
|
2251
|
-
var n, a = 2147483647, l = 36, c = 1, f = 26, g = 38, b = 700, m = 72, j = 128, v = "-", p = /^xn--/, h = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g,
|
|
2279
|
+
var n, a = 2147483647, l = 36, c = 1, f = 26, g = 38, b = 700, m = 72, j = 128, v = "-", p = /^xn--/, h = /[^\x20-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
|
|
2252
2280
|
overflow: "Overflow: input needs wider integers to process",
|
|
2253
2281
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2254
2282
|
"invalid-input": "Invalid input"
|
|
2255
|
-
}, T = l - c, d = Math.floor,
|
|
2256
|
-
function N(
|
|
2257
|
-
throw new RangeError(
|
|
2283
|
+
}, T = l - c, d = Math.floor, S = String.fromCharCode, x;
|
|
2284
|
+
function N(k) {
|
|
2285
|
+
throw new RangeError(O[k]);
|
|
2258
2286
|
}
|
|
2259
|
-
function A(
|
|
2260
|
-
for (var U =
|
|
2261
|
-
C[U] =
|
|
2287
|
+
function A(k, q) {
|
|
2288
|
+
for (var U = k.length, C = []; U--; )
|
|
2289
|
+
C[U] = q(k[U]);
|
|
2262
2290
|
return C;
|
|
2263
2291
|
}
|
|
2264
|
-
function E(
|
|
2265
|
-
var U =
|
|
2266
|
-
U.length > 1 && (C = U[0] + "@",
|
|
2267
|
-
var L =
|
|
2292
|
+
function E(k, q) {
|
|
2293
|
+
var U = k.split("@"), C = "";
|
|
2294
|
+
U.length > 1 && (C = U[0] + "@", k = U[1]), k = k.replace(y, ".");
|
|
2295
|
+
var L = k.split("."), W = A(L, q).join(".");
|
|
2268
2296
|
return C + W;
|
|
2269
2297
|
}
|
|
2270
|
-
function B(
|
|
2271
|
-
for (var
|
|
2272
|
-
L =
|
|
2273
|
-
return
|
|
2298
|
+
function B(k) {
|
|
2299
|
+
for (var q = [], U = 0, C = k.length, L, W; U < C; )
|
|
2300
|
+
L = k.charCodeAt(U++), L >= 55296 && L <= 56319 && U < C ? (W = k.charCodeAt(U++), (W & 64512) == 56320 ? q.push(((L & 1023) << 10) + (W & 1023) + 65536) : (q.push(L), U--)) : q.push(L);
|
|
2301
|
+
return q;
|
|
2274
2302
|
}
|
|
2275
|
-
function P(
|
|
2276
|
-
return A(
|
|
2303
|
+
function P(k) {
|
|
2304
|
+
return A(k, function(q) {
|
|
2277
2305
|
var U = "";
|
|
2278
|
-
return
|
|
2306
|
+
return q > 65535 && (q -= 65536, U += S(q >>> 10 & 1023 | 55296), q = 56320 | q & 1023), U += S(q), U;
|
|
2279
2307
|
}).join("");
|
|
2280
2308
|
}
|
|
2281
|
-
function ae(
|
|
2282
|
-
return
|
|
2309
|
+
function ae(k) {
|
|
2310
|
+
return k - 48 < 10 ? k - 22 : k - 65 < 26 ? k - 65 : k - 97 < 26 ? k - 97 : l;
|
|
2283
2311
|
}
|
|
2284
|
-
function H(
|
|
2285
|
-
return
|
|
2312
|
+
function H(k, q) {
|
|
2313
|
+
return k + 22 + 75 * (k < 26) - ((q != 0) << 5);
|
|
2286
2314
|
}
|
|
2287
|
-
function D(
|
|
2315
|
+
function D(k, q, U) {
|
|
2288
2316
|
var C = 0;
|
|
2289
|
-
for (
|
|
2290
|
-
|
|
2291
|
-
return d(C + (T + 1) *
|
|
2317
|
+
for (k = U ? d(k / b) : k >> 1, k += d(k / q); k > T * f >> 1; C += l)
|
|
2318
|
+
k = d(k / T);
|
|
2319
|
+
return d(C + (T + 1) * k / (k + g));
|
|
2292
2320
|
}
|
|
2293
|
-
function le(
|
|
2294
|
-
var
|
|
2295
|
-
for (
|
|
2296
|
-
|
|
2297
|
-
for (J =
|
|
2298
|
-
for (I = L, F = 1, _ = l; J >= U && N("invalid-input"),
|
|
2321
|
+
function le(k) {
|
|
2322
|
+
var q = [], U = k.length, C, L = 0, W = j, z = m, Q, ne, J, I, F, _, K, G, Y;
|
|
2323
|
+
for (Q = k.lastIndexOf(v), Q < 0 && (Q = 0), ne = 0; ne < Q; ++ne)
|
|
2324
|
+
k.charCodeAt(ne) >= 128 && N("not-basic"), q.push(k.charCodeAt(ne));
|
|
2325
|
+
for (J = Q > 0 ? Q + 1 : 0; J < U; ) {
|
|
2326
|
+
for (I = L, F = 1, _ = l; J >= U && N("invalid-input"), K = ae(k.charCodeAt(J++)), (K >= l || K > d((a - L) / F)) && N("overflow"), L += K * F, G = _ <= z ? c : _ >= z + f ? f : _ - z, !(K < G); _ += l)
|
|
2299
2327
|
Y = l - G, F > d(a / Y) && N("overflow"), F *= Y;
|
|
2300
|
-
C =
|
|
2328
|
+
C = q.length + 1, z = D(L - I, C, I == 0), d(L / C) > a - W && N("overflow"), W += d(L / C), L %= C, q.splice(L++, 0, W);
|
|
2301
2329
|
}
|
|
2302
|
-
return P(
|
|
2330
|
+
return P(q);
|
|
2303
2331
|
}
|
|
2304
|
-
function Z(
|
|
2305
|
-
var
|
|
2306
|
-
for (
|
|
2307
|
-
F =
|
|
2308
|
-
for (C = L = _.length, L && _.push(v); C <
|
|
2309
|
-
for (
|
|
2310
|
-
F =
|
|
2311
|
-
for (G = C + 1,
|
|
2312
|
-
if (F =
|
|
2332
|
+
function Z(k) {
|
|
2333
|
+
var q, U, C, L, W, z, Q, ne, J, I, F, _ = [], K, G, Y, oe;
|
|
2334
|
+
for (k = B(k), K = k.length, q = j, U = 0, W = m, z = 0; z < K; ++z)
|
|
2335
|
+
F = k[z], F < 128 && _.push(S(F));
|
|
2336
|
+
for (C = L = _.length, L && _.push(v); C < K; ) {
|
|
2337
|
+
for (Q = a, z = 0; z < K; ++z)
|
|
2338
|
+
F = k[z], F >= q && F < Q && (Q = F);
|
|
2339
|
+
for (G = C + 1, Q - q > d((a - U) / G) && N("overflow"), U += (Q - q) * G, q = Q, z = 0; z < K; ++z)
|
|
2340
|
+
if (F = k[z], F < q && ++U > a && N("overflow"), F == q) {
|
|
2313
2341
|
for (ne = U, J = l; I = J <= W ? c : J >= W + f ? f : J - W, !(ne < I); J += l)
|
|
2314
2342
|
oe = ne - I, Y = l - I, _.push(
|
|
2315
|
-
|
|
2343
|
+
S(H(I + oe % Y, 0))
|
|
2316
2344
|
), ne = d(oe / Y);
|
|
2317
|
-
_.push(
|
|
2345
|
+
_.push(S(H(ne, 0))), W = D(U, G, C == L), U = 0, ++C;
|
|
2318
2346
|
}
|
|
2319
|
-
++U, ++
|
|
2347
|
+
++U, ++q;
|
|
2320
2348
|
}
|
|
2321
2349
|
return _.join("");
|
|
2322
2350
|
}
|
|
2323
|
-
function k
|
|
2324
|
-
return E(
|
|
2325
|
-
return p.test(
|
|
2351
|
+
function R(k) {
|
|
2352
|
+
return E(k, function(q) {
|
|
2353
|
+
return p.test(q) ? le(q.slice(4).toLowerCase()) : q;
|
|
2326
2354
|
});
|
|
2327
2355
|
}
|
|
2328
|
-
function re(
|
|
2329
|
-
return E(
|
|
2330
|
-
return h.test(
|
|
2356
|
+
function re(k) {
|
|
2357
|
+
return E(k, function(q) {
|
|
2358
|
+
return h.test(q) ? "xn--" + Z(q) : q;
|
|
2331
2359
|
});
|
|
2332
2360
|
}
|
|
2333
2361
|
if (n = {
|
|
@@ -2351,7 +2379,7 @@ function es() {
|
|
|
2351
2379
|
decode: le,
|
|
2352
2380
|
encode: Z,
|
|
2353
2381
|
toASCII: re,
|
|
2354
|
-
toUnicode:
|
|
2382
|
+
toUnicode: R
|
|
2355
2383
|
}, o && i)
|
|
2356
2384
|
if (e.exports == o)
|
|
2357
2385
|
i.exports = n;
|
|
@@ -2360,101 +2388,101 @@ function es() {
|
|
|
2360
2388
|
n.hasOwnProperty(x) && (o[x] = n[x]);
|
|
2361
2389
|
else
|
|
2362
2390
|
t.punycode = n;
|
|
2363
|
-
})(
|
|
2364
|
-
}(
|
|
2391
|
+
})(us);
|
|
2392
|
+
}(Be, Be.exports)), Be.exports;
|
|
2365
2393
|
}
|
|
2366
|
-
var
|
|
2367
|
-
function
|
|
2368
|
-
return
|
|
2394
|
+
var St, cn;
|
|
2395
|
+
function $o() {
|
|
2396
|
+
return cn || (cn = 1, St = Object), St;
|
|
2369
2397
|
}
|
|
2370
|
-
var
|
|
2371
|
-
function
|
|
2372
|
-
return
|
|
2398
|
+
var Ot, un;
|
|
2399
|
+
function ps() {
|
|
2400
|
+
return un || (un = 1, Ot = Error), Ot;
|
|
2373
2401
|
}
|
|
2374
|
-
var
|
|
2375
|
-
function
|
|
2376
|
-
return
|
|
2402
|
+
var Tt, fn;
|
|
2403
|
+
function ds() {
|
|
2404
|
+
return fn || (fn = 1, Tt = EvalError), Tt;
|
|
2377
2405
|
}
|
|
2378
|
-
var
|
|
2379
|
-
function
|
|
2380
|
-
return
|
|
2406
|
+
var Pt, pn;
|
|
2407
|
+
function hs() {
|
|
2408
|
+
return pn || (pn = 1, Pt = RangeError), Pt;
|
|
2381
2409
|
}
|
|
2382
|
-
var
|
|
2383
|
-
function
|
|
2384
|
-
return
|
|
2410
|
+
var Ct, dn;
|
|
2411
|
+
function ys() {
|
|
2412
|
+
return dn || (dn = 1, Ct = ReferenceError), Ct;
|
|
2385
2413
|
}
|
|
2386
|
-
var
|
|
2387
|
-
function
|
|
2388
|
-
return
|
|
2414
|
+
var Nt, hn;
|
|
2415
|
+
function wo() {
|
|
2416
|
+
return hn || (hn = 1, Nt = SyntaxError), Nt;
|
|
2389
2417
|
}
|
|
2390
|
-
var
|
|
2391
|
-
function
|
|
2392
|
-
return
|
|
2418
|
+
var kt, yn;
|
|
2419
|
+
function De() {
|
|
2420
|
+
return yn || (yn = 1, kt = TypeError), kt;
|
|
2393
2421
|
}
|
|
2394
|
-
var
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2422
|
+
var qt, mn;
|
|
2423
|
+
function ms() {
|
|
2424
|
+
return mn || (mn = 1, qt = URIError), qt;
|
|
2397
2425
|
}
|
|
2398
|
-
var
|
|
2399
|
-
function
|
|
2400
|
-
return
|
|
2426
|
+
var Rt, gn;
|
|
2427
|
+
function gs() {
|
|
2428
|
+
return gn || (gn = 1, Rt = Math.abs), Rt;
|
|
2401
2429
|
}
|
|
2402
|
-
var
|
|
2403
|
-
function
|
|
2404
|
-
return
|
|
2430
|
+
var Et, vn;
|
|
2431
|
+
function vs() {
|
|
2432
|
+
return vn || (vn = 1, Et = Math.floor), Et;
|
|
2405
2433
|
}
|
|
2406
|
-
var
|
|
2407
|
-
function
|
|
2408
|
-
return
|
|
2434
|
+
var At, bn;
|
|
2435
|
+
function bs() {
|
|
2436
|
+
return bn || (bn = 1, At = Math.max), At;
|
|
2409
2437
|
}
|
|
2410
|
-
var
|
|
2411
|
-
function
|
|
2412
|
-
return
|
|
2438
|
+
var It, xn;
|
|
2439
|
+
function xs() {
|
|
2440
|
+
return xn || (xn = 1, It = Math.min), It;
|
|
2413
2441
|
}
|
|
2414
|
-
var
|
|
2415
|
-
function
|
|
2416
|
-
return
|
|
2442
|
+
var Lt, jn;
|
|
2443
|
+
function js() {
|
|
2444
|
+
return jn || (jn = 1, Lt = Math.pow), Lt;
|
|
2417
2445
|
}
|
|
2418
|
-
var
|
|
2419
|
-
function
|
|
2420
|
-
return
|
|
2446
|
+
var Ut, $n;
|
|
2447
|
+
function $s() {
|
|
2448
|
+
return $n || ($n = 1, Ut = Math.round), Ut;
|
|
2421
2449
|
}
|
|
2422
|
-
var
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2450
|
+
var Ft, wn;
|
|
2451
|
+
function ws() {
|
|
2452
|
+
return wn || (wn = 1, Ft = Number.isNaN || function(r) {
|
|
2425
2453
|
return r !== r;
|
|
2426
|
-
}),
|
|
2454
|
+
}), Ft;
|
|
2427
2455
|
}
|
|
2428
|
-
var
|
|
2429
|
-
function
|
|
2430
|
-
if (
|
|
2431
|
-
|
|
2432
|
-
var e = /* @__PURE__ */
|
|
2433
|
-
return
|
|
2456
|
+
var _t, Sn;
|
|
2457
|
+
function Ss() {
|
|
2458
|
+
if (Sn) return _t;
|
|
2459
|
+
Sn = 1;
|
|
2460
|
+
var e = /* @__PURE__ */ ws();
|
|
2461
|
+
return _t = function(t) {
|
|
2434
2462
|
return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2435
|
-
},
|
|
2463
|
+
}, _t;
|
|
2436
2464
|
}
|
|
2437
|
-
var
|
|
2438
|
-
function
|
|
2439
|
-
return
|
|
2465
|
+
var Bt, On;
|
|
2466
|
+
function Os() {
|
|
2467
|
+
return On || (On = 1, Bt = Object.getOwnPropertyDescriptor), Bt;
|
|
2440
2468
|
}
|
|
2441
|
-
var
|
|
2442
|
-
function
|
|
2443
|
-
if (
|
|
2444
|
-
|
|
2445
|
-
var e = /* @__PURE__ */
|
|
2469
|
+
var Ht, Tn;
|
|
2470
|
+
function lt() {
|
|
2471
|
+
if (Tn) return Ht;
|
|
2472
|
+
Tn = 1;
|
|
2473
|
+
var e = /* @__PURE__ */ Os();
|
|
2446
2474
|
if (e)
|
|
2447
2475
|
try {
|
|
2448
2476
|
e([], "length");
|
|
2449
2477
|
} catch {
|
|
2450
2478
|
e = null;
|
|
2451
2479
|
}
|
|
2452
|
-
return
|
|
2480
|
+
return Ht = e, Ht;
|
|
2453
2481
|
}
|
|
2454
|
-
var
|
|
2455
|
-
function
|
|
2456
|
-
if (
|
|
2457
|
-
|
|
2482
|
+
var Mt, Pn;
|
|
2483
|
+
function ct() {
|
|
2484
|
+
if (Pn) return Mt;
|
|
2485
|
+
Pn = 1;
|
|
2458
2486
|
var e = Object.defineProperty || !1;
|
|
2459
2487
|
if (e)
|
|
2460
2488
|
try {
|
|
@@ -2462,11 +2490,11 @@ function at() {
|
|
|
2462
2490
|
} catch {
|
|
2463
2491
|
e = !1;
|
|
2464
2492
|
}
|
|
2465
|
-
return
|
|
2493
|
+
return Mt = e, Mt;
|
|
2466
2494
|
}
|
|
2467
|
-
var
|
|
2468
|
-
function
|
|
2469
|
-
return
|
|
2495
|
+
var zt, Cn;
|
|
2496
|
+
function Ts() {
|
|
2497
|
+
return Cn || (Cn = 1, zt = function() {
|
|
2470
2498
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2471
2499
|
return !1;
|
|
2472
2500
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2492,32 +2520,32 @@ function ys() {
|
|
|
2492
2520
|
return !1;
|
|
2493
2521
|
}
|
|
2494
2522
|
return !0;
|
|
2495
|
-
}),
|
|
2523
|
+
}), zt;
|
|
2496
2524
|
}
|
|
2497
|
-
var
|
|
2498
|
-
function
|
|
2499
|
-
if (
|
|
2500
|
-
|
|
2501
|
-
var e = typeof Symbol < "u" && Symbol, r =
|
|
2502
|
-
return
|
|
2525
|
+
var Gt, Nn;
|
|
2526
|
+
function Ps() {
|
|
2527
|
+
if (Nn) return Gt;
|
|
2528
|
+
Nn = 1;
|
|
2529
|
+
var e = typeof Symbol < "u" && Symbol, r = Ts();
|
|
2530
|
+
return Gt = function() {
|
|
2503
2531
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
|
|
2504
|
-
},
|
|
2532
|
+
}, Gt;
|
|
2505
2533
|
}
|
|
2506
|
-
var
|
|
2507
|
-
function
|
|
2508
|
-
return
|
|
2534
|
+
var Wt, kn;
|
|
2535
|
+
function So() {
|
|
2536
|
+
return kn || (kn = 1, Wt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Wt;
|
|
2509
2537
|
}
|
|
2510
|
-
var
|
|
2511
|
-
function
|
|
2512
|
-
if (
|
|
2513
|
-
|
|
2514
|
-
var e = /* @__PURE__ */
|
|
2515
|
-
return
|
|
2538
|
+
var Jt, qn;
|
|
2539
|
+
function Oo() {
|
|
2540
|
+
if (qn) return Jt;
|
|
2541
|
+
qn = 1;
|
|
2542
|
+
var e = /* @__PURE__ */ $o();
|
|
2543
|
+
return Jt = e.getPrototypeOf || null, Jt;
|
|
2516
2544
|
}
|
|
2517
|
-
var
|
|
2518
|
-
function
|
|
2519
|
-
if (
|
|
2520
|
-
|
|
2545
|
+
var Vt, Rn;
|
|
2546
|
+
function Cs() {
|
|
2547
|
+
if (Rn) return Vt;
|
|
2548
|
+
Rn = 1;
|
|
2521
2549
|
var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, t = Math.max, o = "[object Function]", i = function(l, c) {
|
|
2522
2550
|
for (var f = [], g = 0; g < l.length; g += 1)
|
|
2523
2551
|
f[g] = l[g];
|
|
@@ -2533,7 +2561,7 @@ function gs() {
|
|
|
2533
2561
|
c += a[f], f + 1 < a.length && (c += l);
|
|
2534
2562
|
return c;
|
|
2535
2563
|
};
|
|
2536
|
-
return
|
|
2564
|
+
return Vt = function(l) {
|
|
2537
2565
|
var c = this;
|
|
2538
2566
|
if (typeof c != "function" || r.apply(c) !== o)
|
|
2539
2567
|
throw new TypeError(e + c);
|
|
@@ -2557,50 +2585,50 @@ function gs() {
|
|
|
2557
2585
|
p.prototype = c.prototype, g.prototype = new p(), p.prototype = null;
|
|
2558
2586
|
}
|
|
2559
2587
|
return g;
|
|
2560
|
-
},
|
|
2588
|
+
}, Vt;
|
|
2561
2589
|
}
|
|
2562
|
-
var
|
|
2563
|
-
function
|
|
2564
|
-
if (
|
|
2565
|
-
|
|
2566
|
-
var e =
|
|
2567
|
-
return
|
|
2590
|
+
var Dt, En;
|
|
2591
|
+
function Ke() {
|
|
2592
|
+
if (En) return Dt;
|
|
2593
|
+
En = 1;
|
|
2594
|
+
var e = Cs();
|
|
2595
|
+
return Dt = Function.prototype.bind || e, Dt;
|
|
2568
2596
|
}
|
|
2569
|
-
var
|
|
2570
|
-
function
|
|
2571
|
-
return
|
|
2597
|
+
var Kt, An;
|
|
2598
|
+
function kr() {
|
|
2599
|
+
return An || (An = 1, Kt = Function.prototype.call), Kt;
|
|
2572
2600
|
}
|
|
2573
|
-
var
|
|
2574
|
-
function
|
|
2575
|
-
return
|
|
2601
|
+
var Qt, In;
|
|
2602
|
+
function qr() {
|
|
2603
|
+
return In || (In = 1, Qt = Function.prototype.apply), Qt;
|
|
2576
2604
|
}
|
|
2577
|
-
var
|
|
2578
|
-
function
|
|
2579
|
-
return
|
|
2605
|
+
var Yt, Ln;
|
|
2606
|
+
function Ns() {
|
|
2607
|
+
return Ln || (Ln = 1, Yt = typeof Reflect < "u" && Reflect && Reflect.apply), Yt;
|
|
2580
2608
|
}
|
|
2581
|
-
var
|
|
2582
|
-
function
|
|
2583
|
-
if (
|
|
2584
|
-
|
|
2585
|
-
var e =
|
|
2586
|
-
return
|
|
2609
|
+
var Xt, Un;
|
|
2610
|
+
function To() {
|
|
2611
|
+
if (Un) return Xt;
|
|
2612
|
+
Un = 1;
|
|
2613
|
+
var e = Ke(), r = qr(), t = kr(), o = Ns();
|
|
2614
|
+
return Xt = o || e.call(t, r), Xt;
|
|
2587
2615
|
}
|
|
2588
|
-
var
|
|
2589
|
-
function
|
|
2590
|
-
if (
|
|
2591
|
-
|
|
2592
|
-
var e =
|
|
2593
|
-
return
|
|
2616
|
+
var Zt, Fn;
|
|
2617
|
+
function Po() {
|
|
2618
|
+
if (Fn) return Zt;
|
|
2619
|
+
Fn = 1;
|
|
2620
|
+
var e = Ke(), r = /* @__PURE__ */ De(), t = kr(), o = To();
|
|
2621
|
+
return Zt = function(s) {
|
|
2594
2622
|
if (s.length < 1 || typeof s[0] != "function")
|
|
2595
2623
|
throw new r("a function is required");
|
|
2596
2624
|
return o(e, t, s);
|
|
2597
|
-
},
|
|
2625
|
+
}, Zt;
|
|
2598
2626
|
}
|
|
2599
|
-
var
|
|
2600
|
-
function
|
|
2601
|
-
if (
|
|
2602
|
-
|
|
2603
|
-
var e =
|
|
2627
|
+
var er, _n;
|
|
2628
|
+
function ks() {
|
|
2629
|
+
if (_n) return er;
|
|
2630
|
+
_n = 1;
|
|
2631
|
+
var e = Po(), r = /* @__PURE__ */ lt(), t;
|
|
2604
2632
|
try {
|
|
2605
2633
|
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
2606
2634
|
[].__proto__ === Array.prototype;
|
|
@@ -2613,19 +2641,19 @@ function bs() {
|
|
|
2613
2641
|
/** @type {keyof typeof Object.prototype} */
|
|
2614
2642
|
"__proto__"
|
|
2615
2643
|
), i = Object, s = i.getPrototypeOf;
|
|
2616
|
-
return
|
|
2644
|
+
return er = o && typeof o.get == "function" ? e([o.get]) : typeof s == "function" ? (
|
|
2617
2645
|
/** @type {import('./get')} */
|
|
2618
2646
|
function(a) {
|
|
2619
2647
|
return s(a == null ? a : i(a));
|
|
2620
2648
|
}
|
|
2621
|
-
) : !1,
|
|
2649
|
+
) : !1, er;
|
|
2622
2650
|
}
|
|
2623
|
-
var
|
|
2624
|
-
function
|
|
2625
|
-
if (
|
|
2626
|
-
|
|
2627
|
-
var e =
|
|
2628
|
-
return
|
|
2651
|
+
var tr, Bn;
|
|
2652
|
+
function qs() {
|
|
2653
|
+
if (Bn) return tr;
|
|
2654
|
+
Bn = 1;
|
|
2655
|
+
var e = So(), r = Oo(), t = /* @__PURE__ */ ks();
|
|
2656
|
+
return tr = e ? function(i) {
|
|
2629
2657
|
return e(i);
|
|
2630
2658
|
} : r ? function(i) {
|
|
2631
2659
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
@@ -2633,25 +2661,25 @@ function xs() {
|
|
|
2633
2661
|
return r(i);
|
|
2634
2662
|
} : t ? function(i) {
|
|
2635
2663
|
return t(i);
|
|
2636
|
-
} : null,
|
|
2664
|
+
} : null, tr;
|
|
2637
2665
|
}
|
|
2638
|
-
var
|
|
2639
|
-
function
|
|
2640
|
-
if (
|
|
2641
|
-
|
|
2642
|
-
var e = Function.prototype.call, r = Object.prototype.hasOwnProperty, t =
|
|
2643
|
-
return
|
|
2666
|
+
var rr, Hn;
|
|
2667
|
+
function Rs() {
|
|
2668
|
+
if (Hn) return rr;
|
|
2669
|
+
Hn = 1;
|
|
2670
|
+
var e = Function.prototype.call, r = Object.prototype.hasOwnProperty, t = Ke();
|
|
2671
|
+
return rr = t.call(e, r), rr;
|
|
2644
2672
|
}
|
|
2645
|
-
var
|
|
2646
|
-
function
|
|
2647
|
-
if (
|
|
2648
|
-
|
|
2649
|
-
var e, r = /* @__PURE__ */
|
|
2673
|
+
var nr, Mn;
|
|
2674
|
+
function Rr() {
|
|
2675
|
+
if (Mn) return nr;
|
|
2676
|
+
Mn = 1;
|
|
2677
|
+
var e, r = /* @__PURE__ */ $o(), t = /* @__PURE__ */ ps(), o = /* @__PURE__ */ ds(), i = /* @__PURE__ */ hs(), s = /* @__PURE__ */ ys(), n = /* @__PURE__ */ wo(), a = /* @__PURE__ */ De(), l = /* @__PURE__ */ ms(), c = /* @__PURE__ */ gs(), f = /* @__PURE__ */ vs(), g = /* @__PURE__ */ bs(), b = /* @__PURE__ */ xs(), m = /* @__PURE__ */ js(), j = /* @__PURE__ */ $s(), v = /* @__PURE__ */ Ss(), p = Function, h = function(J) {
|
|
2650
2678
|
try {
|
|
2651
2679
|
return p('"use strict"; return (' + J + ").constructor;")();
|
|
2652
2680
|
} catch {
|
|
2653
2681
|
}
|
|
2654
|
-
}, y = /* @__PURE__ */
|
|
2682
|
+
}, y = /* @__PURE__ */ lt(), O = /* @__PURE__ */ ct(), T = function() {
|
|
2655
2683
|
throw new a();
|
|
2656
2684
|
}, d = y ? function() {
|
|
2657
2685
|
try {
|
|
@@ -2663,12 +2691,12 @@ function Nr() {
|
|
|
2663
2691
|
return T;
|
|
2664
2692
|
}
|
|
2665
2693
|
}
|
|
2666
|
-
}() : T,
|
|
2694
|
+
}() : T, S = Ps()(), x = qs(), N = Oo(), A = So(), E = qr(), B = kr(), P = {}, ae = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), H = {
|
|
2667
2695
|
__proto__: null,
|
|
2668
2696
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
2669
2697
|
"%Array%": Array,
|
|
2670
2698
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
2671
|
-
"%ArrayIteratorPrototype%":
|
|
2699
|
+
"%ArrayIteratorPrototype%": S && x ? x([][Symbol.iterator]()) : e,
|
|
2672
2700
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
2673
2701
|
"%AsyncFunction%": P,
|
|
2674
2702
|
"%AsyncGenerator%": P,
|
|
@@ -2699,10 +2727,10 @@ function Nr() {
|
|
|
2699
2727
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
2700
2728
|
"%isFinite%": isFinite,
|
|
2701
2729
|
"%isNaN%": isNaN,
|
|
2702
|
-
"%IteratorPrototype%":
|
|
2730
|
+
"%IteratorPrototype%": S && x ? x(x([][Symbol.iterator]())) : e,
|
|
2703
2731
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
2704
2732
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
2705
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
2733
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !S || !x ? e : x((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2706
2734
|
"%Math%": Math,
|
|
2707
2735
|
"%Number%": Number,
|
|
2708
2736
|
"%Object%": r,
|
|
@@ -2716,11 +2744,11 @@ function Nr() {
|
|
|
2716
2744
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
2717
2745
|
"%RegExp%": RegExp,
|
|
2718
2746
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
2719
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
2747
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !S || !x ? e : x((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2720
2748
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
2721
2749
|
"%String%": String,
|
|
2722
|
-
"%StringIteratorPrototype%":
|
|
2723
|
-
"%Symbol%":
|
|
2750
|
+
"%StringIteratorPrototype%": S && x ? x(""[Symbol.iterator]()) : e,
|
|
2751
|
+
"%Symbol%": S ? Symbol : e,
|
|
2724
2752
|
"%SyntaxError%": n,
|
|
2725
2753
|
"%ThrowTypeError%": d,
|
|
2726
2754
|
"%TypedArray%": ae,
|
|
@@ -2735,7 +2763,7 @@ function Nr() {
|
|
|
2735
2763
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
2736
2764
|
"%Function.prototype.call%": B,
|
|
2737
2765
|
"%Function.prototype.apply%": E,
|
|
2738
|
-
"%Object.defineProperty%":
|
|
2766
|
+
"%Object.defineProperty%": O,
|
|
2739
2767
|
"%Object.getPrototypeOf%": N,
|
|
2740
2768
|
"%Math.abs%": c,
|
|
2741
2769
|
"%Math.floor%": f,
|
|
@@ -2765,8 +2793,8 @@ function Nr() {
|
|
|
2765
2793
|
var _ = J("%AsyncGeneratorFunction%");
|
|
2766
2794
|
_ && (F = _.prototype);
|
|
2767
2795
|
} else if (I === "%AsyncIteratorPrototype%") {
|
|
2768
|
-
var
|
|
2769
|
-
|
|
2796
|
+
var K = J("%AsyncGenerator%");
|
|
2797
|
+
K && x && (F = x(K.prototype));
|
|
2770
2798
|
}
|
|
2771
2799
|
return H[I] = F, F;
|
|
2772
2800
|
}, Z = {
|
|
@@ -2822,44 +2850,44 @@ function Nr() {
|
|
|
2822
2850
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2823
2851
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2824
2852
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2825
|
-
},
|
|
2853
|
+
}, R = Ke(), re = /* @__PURE__ */ Rs(), k = R.call(B, Array.prototype.concat), q = R.call(E, Array.prototype.splice), U = R.call(B, String.prototype.replace), C = R.call(B, String.prototype.slice), L = R.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, Q = function(I) {
|
|
2826
2854
|
var F = C(I, 0, 1), _ = C(I, -1);
|
|
2827
2855
|
if (F === "%" && _ !== "%")
|
|
2828
2856
|
throw new n("invalid intrinsic syntax, expected closing `%`");
|
|
2829
2857
|
if (_ === "%" && F !== "%")
|
|
2830
2858
|
throw new n("invalid intrinsic syntax, expected opening `%`");
|
|
2831
|
-
var
|
|
2832
|
-
return U(I, W, function(G, Y, oe,
|
|
2833
|
-
|
|
2834
|
-
}),
|
|
2859
|
+
var K = [];
|
|
2860
|
+
return U(I, W, function(G, Y, oe, ye) {
|
|
2861
|
+
K[K.length] = oe ? U(ye, z, "$1") : Y || G;
|
|
2862
|
+
}), K;
|
|
2835
2863
|
}, ne = function(I, F) {
|
|
2836
|
-
var _ = I,
|
|
2837
|
-
if (re(Z, _) && (
|
|
2864
|
+
var _ = I, K;
|
|
2865
|
+
if (re(Z, _) && (K = Z[_], _ = "%" + K[0] + "%"), re(H, _)) {
|
|
2838
2866
|
var G = H[_];
|
|
2839
2867
|
if (G === P && (G = le(_)), typeof G > "u" && !F)
|
|
2840
2868
|
throw new a("intrinsic " + I + " exists, but is not available. Please file an issue!");
|
|
2841
2869
|
return {
|
|
2842
|
-
alias:
|
|
2870
|
+
alias: K,
|
|
2843
2871
|
name: _,
|
|
2844
2872
|
value: G
|
|
2845
2873
|
};
|
|
2846
2874
|
}
|
|
2847
2875
|
throw new n("intrinsic " + I + " does not exist!");
|
|
2848
2876
|
};
|
|
2849
|
-
return
|
|
2877
|
+
return nr = function(I, F) {
|
|
2850
2878
|
if (typeof I != "string" || I.length === 0)
|
|
2851
2879
|
throw new a("intrinsic name must be a non-empty string");
|
|
2852
2880
|
if (arguments.length > 1 && typeof F != "boolean")
|
|
2853
2881
|
throw new a('"allowMissing" argument must be a boolean');
|
|
2854
2882
|
if (L(/^%?[^%]*%?$/, I) === null)
|
|
2855
2883
|
throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2856
|
-
var _ =
|
|
2857
|
-
Se && (
|
|
2858
|
-
for (var
|
|
2859
|
-
var me = _[
|
|
2860
|
-
if ((
|
|
2884
|
+
var _ = Q(I), K = _.length > 0 ? _[0] : "", G = ne("%" + K + "%", F), Y = G.name, oe = G.value, ye = !1, Se = G.alias;
|
|
2885
|
+
Se && (K = Se[0], q(_, k([0, 1], Se)));
|
|
2886
|
+
for (var ke = 1, Oe = !0; ke < _.length; ke += 1) {
|
|
2887
|
+
var me = _[ke], qe = C(me, 0, 1), Re = C(me, -1);
|
|
2888
|
+
if ((qe === '"' || qe === "'" || qe === "`" || Re === '"' || Re === "'" || Re === "`") && qe !== Re)
|
|
2861
2889
|
throw new n("property names with quotes must have matching quotes");
|
|
2862
|
-
if ((me === "constructor" || !Oe) && (
|
|
2890
|
+
if ((me === "constructor" || !Oe) && (ye = !0), K += "." + me, Y = "%" + K + "%", re(H, Y))
|
|
2863
2891
|
oe = H[Y];
|
|
2864
2892
|
else if (oe != null) {
|
|
2865
2893
|
if (!(me in oe)) {
|
|
@@ -2867,23 +2895,23 @@ function Nr() {
|
|
|
2867
2895
|
throw new a("base intrinsic for " + I + " exists, but the property is not available.");
|
|
2868
2896
|
return;
|
|
2869
2897
|
}
|
|
2870
|
-
if (y &&
|
|
2898
|
+
if (y && ke + 1 >= _.length) {
|
|
2871
2899
|
var Te = y(oe, me);
|
|
2872
2900
|
Oe = !!Te, Oe && "get" in Te && !("originalValue" in Te.get) ? oe = Te.get : oe = oe[me];
|
|
2873
2901
|
} else
|
|
2874
2902
|
Oe = re(oe, me), oe = oe[me];
|
|
2875
|
-
Oe && !
|
|
2903
|
+
Oe && !ye && (H[Y] = oe);
|
|
2876
2904
|
}
|
|
2877
2905
|
}
|
|
2878
2906
|
return oe;
|
|
2879
|
-
},
|
|
2907
|
+
}, nr;
|
|
2880
2908
|
}
|
|
2881
|
-
var
|
|
2882
|
-
function
|
|
2883
|
-
if (
|
|
2884
|
-
|
|
2885
|
-
var e = /* @__PURE__ */
|
|
2886
|
-
return
|
|
2909
|
+
var or = { exports: {} }, ar, zn;
|
|
2910
|
+
function Es() {
|
|
2911
|
+
if (zn) return ar;
|
|
2912
|
+
zn = 1;
|
|
2913
|
+
var e = /* @__PURE__ */ ct(), r = /* @__PURE__ */ wo(), t = /* @__PURE__ */ De(), o = /* @__PURE__ */ lt();
|
|
2914
|
+
return ar = function(s, n, a) {
|
|
2887
2915
|
if (!s || typeof s != "object" && typeof s != "function")
|
|
2888
2916
|
throw new t("`obj` must be an object or a function`");
|
|
2889
2917
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2908,13 +2936,13 @@ function $s() {
|
|
|
2908
2936
|
s[n] = a;
|
|
2909
2937
|
else
|
|
2910
2938
|
throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2911
|
-
},
|
|
2939
|
+
}, ar;
|
|
2912
2940
|
}
|
|
2913
|
-
var
|
|
2914
|
-
function
|
|
2915
|
-
if (
|
|
2916
|
-
|
|
2917
|
-
var e = /* @__PURE__ */
|
|
2941
|
+
var ir, Gn;
|
|
2942
|
+
function As() {
|
|
2943
|
+
if (Gn) return ir;
|
|
2944
|
+
Gn = 1;
|
|
2945
|
+
var e = /* @__PURE__ */ ct(), r = function() {
|
|
2918
2946
|
return !!e;
|
|
2919
2947
|
};
|
|
2920
2948
|
return r.hasArrayLengthDefineBug = function() {
|
|
@@ -2925,14 +2953,14 @@ function ws() {
|
|
|
2925
2953
|
} catch {
|
|
2926
2954
|
return !0;
|
|
2927
2955
|
}
|
|
2928
|
-
},
|
|
2956
|
+
}, ir = r, ir;
|
|
2929
2957
|
}
|
|
2930
|
-
var
|
|
2931
|
-
function
|
|
2932
|
-
if (
|
|
2933
|
-
|
|
2934
|
-
var e = /* @__PURE__ */
|
|
2935
|
-
return
|
|
2958
|
+
var sr, Wn;
|
|
2959
|
+
function Is() {
|
|
2960
|
+
if (Wn) return sr;
|
|
2961
|
+
Wn = 1;
|
|
2962
|
+
var e = /* @__PURE__ */ Rr(), r = /* @__PURE__ */ Es(), t = /* @__PURE__ */ As()(), o = /* @__PURE__ */ lt(), i = /* @__PURE__ */ De(), s = e("%Math.floor%");
|
|
2963
|
+
return sr = function(a, l) {
|
|
2936
2964
|
if (typeof a != "function")
|
|
2937
2965
|
throw new i("`fn` is not a function");
|
|
2938
2966
|
if (typeof l != "number" || l < 0 || l > 4294967295 || s(l) !== l)
|
|
@@ -2955,21 +2983,21 @@ function Ss() {
|
|
|
2955
2983
|
"length",
|
|
2956
2984
|
l
|
|
2957
2985
|
)), a;
|
|
2958
|
-
},
|
|
2986
|
+
}, sr;
|
|
2959
2987
|
}
|
|
2960
|
-
var
|
|
2961
|
-
function
|
|
2962
|
-
if (
|
|
2963
|
-
|
|
2964
|
-
var e =
|
|
2965
|
-
return
|
|
2988
|
+
var lr, Jn;
|
|
2989
|
+
function Ls() {
|
|
2990
|
+
if (Jn) return lr;
|
|
2991
|
+
Jn = 1;
|
|
2992
|
+
var e = Ke(), r = qr(), t = To();
|
|
2993
|
+
return lr = function() {
|
|
2966
2994
|
return t(e, r, arguments);
|
|
2967
|
-
},
|
|
2995
|
+
}, lr;
|
|
2968
2996
|
}
|
|
2969
|
-
var
|
|
2970
|
-
function
|
|
2971
|
-
return
|
|
2972
|
-
var r = /* @__PURE__ */
|
|
2997
|
+
var Vn;
|
|
2998
|
+
function Us() {
|
|
2999
|
+
return Vn || (Vn = 1, function(e) {
|
|
3000
|
+
var r = /* @__PURE__ */ Is(), t = /* @__PURE__ */ ct(), o = Po(), i = Ls();
|
|
2973
3001
|
e.exports = function(n) {
|
|
2974
3002
|
var a = o(arguments), l = n.length - (arguments.length - 1);
|
|
2975
3003
|
return r(
|
|
@@ -2978,44 +3006,44 @@ function Ts() {
|
|
|
2978
3006
|
!0
|
|
2979
3007
|
);
|
|
2980
3008
|
}, t ? t(e.exports, "apply", { value: i }) : e.exports.apply = i;
|
|
2981
|
-
}(
|
|
3009
|
+
}(or)), or.exports;
|
|
2982
3010
|
}
|
|
2983
|
-
var
|
|
2984
|
-
function
|
|
2985
|
-
if (
|
|
2986
|
-
|
|
2987
|
-
var e = /* @__PURE__ */
|
|
2988
|
-
return
|
|
3011
|
+
var cr, Dn;
|
|
3012
|
+
function Fs() {
|
|
3013
|
+
if (Dn) return cr;
|
|
3014
|
+
Dn = 1;
|
|
3015
|
+
var e = /* @__PURE__ */ Rr(), r = Us(), t = r(e("String.prototype.indexOf"));
|
|
3016
|
+
return cr = function(i, s) {
|
|
2989
3017
|
var n = e(i, !!s);
|
|
2990
3018
|
return typeof n == "function" && t(i, ".prototype.") > -1 ? r(n) : n;
|
|
2991
|
-
},
|
|
3019
|
+
}, cr;
|
|
2992
3020
|
}
|
|
2993
|
-
const
|
|
3021
|
+
const _s = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2994
3022
|
__proto__: null,
|
|
2995
|
-
default:
|
|
2996
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2997
|
-
var
|
|
2998
|
-
function
|
|
2999
|
-
if (
|
|
3000
|
-
|
|
3001
|
-
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = i && s && typeof s.get == "function" ? s.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, g = f ? WeakSet.prototype.has : null, b = typeof WeakRef == "function" && WeakRef.prototype, m = b ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, v = Object.prototype.toString, p = Function.prototype.toString, h = String.prototype.match, y = String.prototype.slice,
|
|
3023
|
+
default: _s
|
|
3024
|
+
}, Symbol.toStringTag, { value: "Module" })), Hs = /* @__PURE__ */ Aa(Bs);
|
|
3025
|
+
var ur, Kn;
|
|
3026
|
+
function Ms() {
|
|
3027
|
+
if (Kn) return ur;
|
|
3028
|
+
Kn = 1;
|
|
3029
|
+
var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, s = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = i && s && typeof s.get == "function" ? s.get : null, a = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, g = f ? WeakSet.prototype.has : null, b = typeof WeakRef == "function" && WeakRef.prototype, m = b ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, v = Object.prototype.toString, p = Function.prototype.toString, h = String.prototype.match, y = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, x = Array.prototype.concat, N = Array.prototype.join, A = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, le = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function($) {
|
|
3002
3030
|
return $.__proto__;
|
|
3003
3031
|
} : null);
|
|
3004
|
-
function
|
|
3005
|
-
if ($ === 1 / 0 || $ === -1 / 0 || $ !== $ || $ && $ > -1e3 && $ < 1e3 ||
|
|
3032
|
+
function R($, w) {
|
|
3033
|
+
if ($ === 1 / 0 || $ === -1 / 0 || $ !== $ || $ && $ > -1e3 && $ < 1e3 || S.call(/e/, w))
|
|
3006
3034
|
return w;
|
|
3007
3035
|
var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3008
3036
|
if (typeof $ == "number") {
|
|
3009
3037
|
var ee = $ < 0 ? -E(-$) : E($);
|
|
3010
3038
|
if (ee !== $) {
|
|
3011
3039
|
var ie = String(ee), M = y.call(w, ie.length + 1);
|
|
3012
|
-
return
|
|
3040
|
+
return O.call(ie, X, "$&_") + "." + O.call(O.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3013
3041
|
}
|
|
3014
3042
|
}
|
|
3015
|
-
return
|
|
3043
|
+
return O.call(w, X, "$&_");
|
|
3016
3044
|
}
|
|
3017
|
-
var re =
|
|
3018
|
-
|
|
3045
|
+
var re = Hs, k = re.custom, q = F(k) ? k : null;
|
|
3046
|
+
ur = function $(w, X, ee, ie) {
|
|
3019
3047
|
var M = X || {};
|
|
3020
3048
|
if (G(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
|
|
3021
3049
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3041,91 +3069,91 @@ function Rs() {
|
|
|
3041
3069
|
if (w === 0)
|
|
3042
3070
|
return 1 / 0 / w > 0 ? "0" : "-0";
|
|
3043
3071
|
var de = String(w);
|
|
3044
|
-
return Pe ?
|
|
3072
|
+
return Pe ? R(w, de) : de;
|
|
3045
3073
|
}
|
|
3046
3074
|
if (typeof w == "bigint") {
|
|
3047
3075
|
var $e = String(w) + "n";
|
|
3048
|
-
return Pe ?
|
|
3076
|
+
return Pe ? R(w, $e) : $e;
|
|
3049
3077
|
}
|
|
3050
|
-
var
|
|
3051
|
-
if (typeof ee > "u" && (ee = 0), ee >=
|
|
3078
|
+
var pt = typeof M.depth > "u" ? 5 : M.depth;
|
|
3079
|
+
if (typeof ee > "u" && (ee = 0), ee >= pt && pt > 0 && typeof w == "object")
|
|
3052
3080
|
return L(w) ? "[Array]" : "[Object]";
|
|
3053
|
-
var Ee =
|
|
3081
|
+
var Ee = Uo(M, ee);
|
|
3054
3082
|
if (typeof ie > "u")
|
|
3055
3083
|
ie = [];
|
|
3056
|
-
else if (
|
|
3084
|
+
else if (ye(ie, w) >= 0)
|
|
3057
3085
|
return "[Circular]";
|
|
3058
|
-
function ge(Ae,
|
|
3059
|
-
if (
|
|
3060
|
-
var
|
|
3086
|
+
function ge(Ae, Xe, _o) {
|
|
3087
|
+
if (Xe && (ie = A.call(ie), ie.push(Xe)), _o) {
|
|
3088
|
+
var Gr = {
|
|
3061
3089
|
depth: M.depth
|
|
3062
3090
|
};
|
|
3063
|
-
return G(M, "quoteStyle") && (
|
|
3091
|
+
return G(M, "quoteStyle") && (Gr.quoteStyle = M.quoteStyle), $(Ae, Gr, ee + 1, ie);
|
|
3064
3092
|
}
|
|
3065
3093
|
return $(Ae, M, ee + 1, ie);
|
|
3066
3094
|
}
|
|
3067
3095
|
if (typeof w == "function" && !z(w)) {
|
|
3068
|
-
var
|
|
3069
|
-
return "[Function" + (
|
|
3096
|
+
var Ur = oe(w), Fr = Qe(w, ge);
|
|
3097
|
+
return "[Function" + (Ur ? ": " + Ur : " (anonymous)") + "]" + (Fr.length > 0 ? " { " + N.call(Fr, ", ") + " }" : "");
|
|
3070
3098
|
}
|
|
3071
3099
|
if (F(w)) {
|
|
3072
|
-
var
|
|
3073
|
-
return typeof w == "object" && !H ?
|
|
3100
|
+
var _r = H ? O.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(w);
|
|
3101
|
+
return typeof w == "object" && !H ? Ue(_r) : _r;
|
|
3074
3102
|
}
|
|
3075
|
-
if (
|
|
3076
|
-
for (var
|
|
3077
|
-
|
|
3078
|
-
return
|
|
3103
|
+
if (Re(w)) {
|
|
3104
|
+
for (var Fe = "<" + d.call(String(w.nodeName)), dt = w.attributes || [], Ye = 0; Ye < dt.length; Ye++)
|
|
3105
|
+
Fe += " " + dt[Ye].name + "=" + U(C(dt[Ye].value), "double", M);
|
|
3106
|
+
return Fe += ">", w.childNodes && w.childNodes.length && (Fe += "..."), Fe += "</" + d.call(String(w.nodeName)) + ">", Fe;
|
|
3079
3107
|
}
|
|
3080
3108
|
if (L(w)) {
|
|
3081
3109
|
if (w.length === 0)
|
|
3082
3110
|
return "[]";
|
|
3083
|
-
var
|
|
3084
|
-
return Ee && !
|
|
3111
|
+
var ht = Qe(w, ge);
|
|
3112
|
+
return Ee && !Lo(ht) ? "[" + ft(ht, Ee) + "]" : "[ " + N.call(ht, ", ") + " ]";
|
|
3085
3113
|
}
|
|
3086
|
-
if (
|
|
3087
|
-
var
|
|
3088
|
-
return !("cause" in Error.prototype) && "cause" in w && !le.call(w, "cause") ? "{ [" + String(w) + "] " + N.call(x.call("[cause]: " + ge(w.cause),
|
|
3114
|
+
if (Q(w)) {
|
|
3115
|
+
var yt = Qe(w, ge);
|
|
3116
|
+
return !("cause" in Error.prototype) && "cause" in w && !le.call(w, "cause") ? "{ [" + String(w) + "] " + N.call(x.call("[cause]: " + ge(w.cause), yt), ", ") + " }" : yt.length === 0 ? "[" + String(w) + "]" : "{ [" + String(w) + "] " + N.call(yt, ", ") + " }";
|
|
3089
3117
|
}
|
|
3090
3118
|
if (typeof w == "object" && je) {
|
|
3091
|
-
if (
|
|
3092
|
-
return re(w, { depth:
|
|
3119
|
+
if (q && typeof w[q] == "function" && re)
|
|
3120
|
+
return re(w, { depth: pt - ee });
|
|
3093
3121
|
if (je !== "symbol" && typeof w.inspect == "function")
|
|
3094
3122
|
return w.inspect();
|
|
3095
3123
|
}
|
|
3096
3124
|
if (Se(w)) {
|
|
3097
|
-
var
|
|
3098
|
-
return o && o.call(w, function(Ae,
|
|
3099
|
-
|
|
3100
|
-
}),
|
|
3125
|
+
var Br = [];
|
|
3126
|
+
return o && o.call(w, function(Ae, Xe) {
|
|
3127
|
+
Br.push(ge(Xe, w, !0) + " => " + ge(Ae, w));
|
|
3128
|
+
}), Lr("Map", t.call(w), Br, Ee);
|
|
3101
3129
|
}
|
|
3102
3130
|
if (me(w)) {
|
|
3103
|
-
var
|
|
3131
|
+
var Hr = [];
|
|
3104
3132
|
return a && a.call(w, function(Ae) {
|
|
3105
|
-
|
|
3106
|
-
}),
|
|
3133
|
+
Hr.push(ge(Ae, w));
|
|
3134
|
+
}), Lr("Set", n.call(w), Hr, Ee);
|
|
3107
3135
|
}
|
|
3136
|
+
if (ke(w))
|
|
3137
|
+
return ut("WeakMap");
|
|
3108
3138
|
if (qe(w))
|
|
3109
|
-
return
|
|
3110
|
-
if (Re(w))
|
|
3111
|
-
return it("WeakSet");
|
|
3139
|
+
return ut("WeakSet");
|
|
3112
3140
|
if (Oe(w))
|
|
3113
|
-
return
|
|
3141
|
+
return ut("WeakRef");
|
|
3114
3142
|
if (J(w))
|
|
3115
|
-
return
|
|
3143
|
+
return Ue(ge(Number(w)));
|
|
3116
3144
|
if (_(w))
|
|
3117
|
-
return
|
|
3145
|
+
return Ue(ge(B.call(w)));
|
|
3118
3146
|
if (I(w))
|
|
3119
|
-
return
|
|
3147
|
+
return Ue(j.call(w));
|
|
3120
3148
|
if (ne(w))
|
|
3121
|
-
return
|
|
3149
|
+
return Ue(ge(String(w)));
|
|
3122
3150
|
if (typeof window < "u" && w === window)
|
|
3123
3151
|
return "{ [object Window] }";
|
|
3124
|
-
if (typeof globalThis < "u" && w === globalThis || typeof
|
|
3152
|
+
if (typeof globalThis < "u" && w === globalThis || typeof rt < "u" && w === rt)
|
|
3125
3153
|
return "{ [object globalThis] }";
|
|
3126
3154
|
if (!W(w) && !z(w)) {
|
|
3127
|
-
var
|
|
3128
|
-
return
|
|
3155
|
+
var mt = Qe(w, ge), Mr = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, gt = w instanceof Object ? "" : "null prototype", zr = !Mr && D && Object(w) === w && D in w ? y.call(Y(w), 8, -1) : gt ? "Object" : "", Fo = Mr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", vt = Fo + (zr || gt ? "[" + N.call(x.call([], zr || [], gt || []), ": ") + "] " : "");
|
|
3156
|
+
return mt.length === 0 ? vt + "{}" : Ee ? vt + "{" + ft(mt, Ee) + "}" : vt + "{ " + N.call(mt, ", ") + " }";
|
|
3129
3157
|
}
|
|
3130
3158
|
return String(w);
|
|
3131
3159
|
};
|
|
@@ -3134,7 +3162,7 @@ function Rs() {
|
|
|
3134
3162
|
return ee + $ + ee;
|
|
3135
3163
|
}
|
|
3136
3164
|
function C($) {
|
|
3137
|
-
return
|
|
3165
|
+
return O.call(String($), /"/g, """);
|
|
3138
3166
|
}
|
|
3139
3167
|
function L($) {
|
|
3140
3168
|
return Y($) === "[object Array]" && (!D || !(typeof $ == "object" && D in $));
|
|
@@ -3145,7 +3173,7 @@ function Rs() {
|
|
|
3145
3173
|
function z($) {
|
|
3146
3174
|
return Y($) === "[object RegExp]" && (!D || !(typeof $ == "object" && D in $));
|
|
3147
3175
|
}
|
|
3148
|
-
function
|
|
3176
|
+
function Q($) {
|
|
3149
3177
|
return Y($) === "[object Error]" && (!D || !(typeof $ == "object" && D in $));
|
|
3150
3178
|
}
|
|
3151
3179
|
function ne($) {
|
|
@@ -3179,11 +3207,11 @@ function Rs() {
|
|
|
3179
3207
|
}
|
|
3180
3208
|
return !1;
|
|
3181
3209
|
}
|
|
3182
|
-
var
|
|
3210
|
+
var K = Object.prototype.hasOwnProperty || function($) {
|
|
3183
3211
|
return $ in this;
|
|
3184
3212
|
};
|
|
3185
3213
|
function G($, w) {
|
|
3186
|
-
return
|
|
3214
|
+
return K.call($, w);
|
|
3187
3215
|
}
|
|
3188
3216
|
function Y($) {
|
|
3189
3217
|
return v.call($);
|
|
@@ -3194,7 +3222,7 @@ function Rs() {
|
|
|
3194
3222
|
var w = h.call(p.call($), /^function\s*([\w$]+)/);
|
|
3195
3223
|
return w ? w[1] : null;
|
|
3196
3224
|
}
|
|
3197
|
-
function
|
|
3225
|
+
function ye($, w) {
|
|
3198
3226
|
if ($.indexOf)
|
|
3199
3227
|
return $.indexOf(w);
|
|
3200
3228
|
for (var X = 0, ee = $.length; X < ee; X++)
|
|
@@ -3217,7 +3245,7 @@ function Rs() {
|
|
|
3217
3245
|
}
|
|
3218
3246
|
return !1;
|
|
3219
3247
|
}
|
|
3220
|
-
function
|
|
3248
|
+
function ke($) {
|
|
3221
3249
|
if (!c || !$ || typeof $ != "object")
|
|
3222
3250
|
return !1;
|
|
3223
3251
|
try {
|
|
@@ -3256,7 +3284,7 @@ function Rs() {
|
|
|
3256
3284
|
}
|
|
3257
3285
|
return !1;
|
|
3258
3286
|
}
|
|
3259
|
-
function
|
|
3287
|
+
function qe($) {
|
|
3260
3288
|
if (!g || !$ || typeof $ != "object")
|
|
3261
3289
|
return !1;
|
|
3262
3290
|
try {
|
|
@@ -3271,7 +3299,7 @@ function Rs() {
|
|
|
3271
3299
|
}
|
|
3272
3300
|
return !1;
|
|
3273
3301
|
}
|
|
3274
|
-
function
|
|
3302
|
+
function Re($) {
|
|
3275
3303
|
return !$ || typeof $ != "object" ? !1 : typeof HTMLElement < "u" && $ instanceof HTMLElement ? !0 : typeof $.nodeName == "string" && typeof $.getAttribute == "function";
|
|
3276
3304
|
}
|
|
3277
3305
|
function Te($, w) {
|
|
@@ -3279,10 +3307,10 @@ function Rs() {
|
|
|
3279
3307
|
var X = $.length - w.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
|
|
3280
3308
|
return Te(y.call($, 0, w.maxStringLength), w) + ee;
|
|
3281
3309
|
}
|
|
3282
|
-
var ie =
|
|
3310
|
+
var ie = O.call(O.call($, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Io);
|
|
3283
3311
|
return U(ie, "single", w);
|
|
3284
3312
|
}
|
|
3285
|
-
function
|
|
3313
|
+
function Io($) {
|
|
3286
3314
|
var w = $.charCodeAt(0), X = {
|
|
3287
3315
|
8: "b",
|
|
3288
3316
|
9: "t",
|
|
@@ -3292,24 +3320,24 @@ function Rs() {
|
|
|
3292
3320
|
}[w];
|
|
3293
3321
|
return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") + T.call(w.toString(16));
|
|
3294
3322
|
}
|
|
3295
|
-
function
|
|
3323
|
+
function Ue($) {
|
|
3296
3324
|
return "Object(" + $ + ")";
|
|
3297
3325
|
}
|
|
3298
|
-
function
|
|
3326
|
+
function ut($) {
|
|
3299
3327
|
return $ + " { ? }";
|
|
3300
3328
|
}
|
|
3301
|
-
function
|
|
3302
|
-
var ie = ee ?
|
|
3329
|
+
function Lr($, w, X, ee) {
|
|
3330
|
+
var ie = ee ? ft(X, ee) : N.call(X, ", ");
|
|
3303
3331
|
return $ + " (" + w + ") {" + ie + "}";
|
|
3304
3332
|
}
|
|
3305
|
-
function
|
|
3333
|
+
function Lo($) {
|
|
3306
3334
|
for (var w = 0; w < $.length; w++)
|
|
3307
|
-
if (
|
|
3335
|
+
if (ye($[w], `
|
|
3308
3336
|
`) >= 0)
|
|
3309
3337
|
return !1;
|
|
3310
3338
|
return !0;
|
|
3311
3339
|
}
|
|
3312
|
-
function
|
|
3340
|
+
function Uo($, w) {
|
|
3313
3341
|
var X;
|
|
3314
3342
|
if ($.indent === " ")
|
|
3315
3343
|
X = " ";
|
|
@@ -3322,7 +3350,7 @@ function Rs() {
|
|
|
3322
3350
|
prev: N.call(Array(w + 1), X)
|
|
3323
3351
|
};
|
|
3324
3352
|
}
|
|
3325
|
-
function
|
|
3353
|
+
function ft($, w) {
|
|
3326
3354
|
if ($.length === 0)
|
|
3327
3355
|
return "";
|
|
3328
3356
|
var X = `
|
|
@@ -3330,7 +3358,7 @@ function Rs() {
|
|
|
3330
3358
|
return X + N.call($, "," + X) + `
|
|
3331
3359
|
` + w.prev;
|
|
3332
3360
|
}
|
|
3333
|
-
function
|
|
3361
|
+
function Qe($, w) {
|
|
3334
3362
|
var X = L($), ee = [];
|
|
3335
3363
|
if (X) {
|
|
3336
3364
|
ee.length = $.length;
|
|
@@ -3344,29 +3372,29 @@ function Rs() {
|
|
|
3344
3372
|
je["$" + M[Pe]] = M[Pe];
|
|
3345
3373
|
}
|
|
3346
3374
|
for (var de in $)
|
|
3347
|
-
G($, de) && (X && String(Number(de)) === de && de < $.length || H && je["$" + de] instanceof Symbol || (
|
|
3375
|
+
G($, de) && (X && String(Number(de)) === de && de < $.length || H && je["$" + de] instanceof Symbol || (S.call(/[^\w$]/, de) ? ee.push(w(de, $) + ": " + w($[de], $)) : ee.push(de + ": " + w($[de], $))));
|
|
3348
3376
|
if (typeof P == "function")
|
|
3349
3377
|
for (var $e = 0; $e < M.length; $e++)
|
|
3350
3378
|
le.call($, M[$e]) && ee.push("[" + w(M[$e]) + "]: " + w($[M[$e]], $));
|
|
3351
3379
|
return ee;
|
|
3352
3380
|
}
|
|
3353
|
-
return
|
|
3381
|
+
return ur;
|
|
3354
3382
|
}
|
|
3355
|
-
var
|
|
3356
|
-
function
|
|
3357
|
-
if (
|
|
3358
|
-
|
|
3359
|
-
var e = /* @__PURE__ */
|
|
3360
|
-
for (var y = p,
|
|
3361
|
-
if (
|
|
3362
|
-
return y.next =
|
|
3363
|
-
p.next, p.next =
|
|
3383
|
+
var fr, Qn;
|
|
3384
|
+
function zs() {
|
|
3385
|
+
if (Qn) return fr;
|
|
3386
|
+
Qn = 1;
|
|
3387
|
+
var e = /* @__PURE__ */ Rr(), r = Fs(), t = /* @__PURE__ */ Ms(), o = /* @__PURE__ */ De(), i = e("%WeakMap%", !0), s = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), l = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), f = r("Map.prototype.set", !0), g = r("Map.prototype.has", !0), b = function(p, h) {
|
|
3388
|
+
for (var y = p, O; (O = y.next) !== null; y = O)
|
|
3389
|
+
if (O.key === h)
|
|
3390
|
+
return y.next = O.next, O.next = /** @type {NonNullable<typeof list.next>} */
|
|
3391
|
+
p.next, p.next = O, O;
|
|
3364
3392
|
}, m = function(p, h) {
|
|
3365
3393
|
var y = b(p, h);
|
|
3366
3394
|
return y && y.value;
|
|
3367
3395
|
}, j = function(p, h, y) {
|
|
3368
|
-
var
|
|
3369
|
-
|
|
3396
|
+
var O = b(p, h);
|
|
3397
|
+
O ? O.value = y : p.next = /** @type {import('.').ListNode<typeof value>} */
|
|
3370
3398
|
{
|
|
3371
3399
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
3372
3400
|
key: h,
|
|
@@ -3376,8 +3404,8 @@ function ks() {
|
|
|
3376
3404
|
}, v = function(p, h) {
|
|
3377
3405
|
return !!b(p, h);
|
|
3378
3406
|
};
|
|
3379
|
-
return
|
|
3380
|
-
var h, y,
|
|
3407
|
+
return fr = function() {
|
|
3408
|
+
var h, y, O, T = {
|
|
3381
3409
|
assert: function(d) {
|
|
3382
3410
|
if (!T.has(d))
|
|
3383
3411
|
throw new o("Side channel does not contain " + t(d));
|
|
@@ -3389,8 +3417,8 @@ function ks() {
|
|
|
3389
3417
|
} else if (s) {
|
|
3390
3418
|
if (y)
|
|
3391
3419
|
return c(y, d);
|
|
3392
|
-
} else if (
|
|
3393
|
-
return m(
|
|
3420
|
+
} else if (O)
|
|
3421
|
+
return m(O, d);
|
|
3394
3422
|
},
|
|
3395
3423
|
has: function(d) {
|
|
3396
3424
|
if (i && d && (typeof d == "object" || typeof d == "function")) {
|
|
@@ -3399,26 +3427,26 @@ function ks() {
|
|
|
3399
3427
|
} else if (s) {
|
|
3400
3428
|
if (y)
|
|
3401
3429
|
return g(y, d);
|
|
3402
|
-
} else if (
|
|
3403
|
-
return v(
|
|
3430
|
+
} else if (O)
|
|
3431
|
+
return v(O, d);
|
|
3404
3432
|
return !1;
|
|
3405
3433
|
},
|
|
3406
|
-
set: function(d,
|
|
3407
|
-
i && d && (typeof d == "object" || typeof d == "function") ? (h || (h = new i()), a(h, d,
|
|
3434
|
+
set: function(d, S) {
|
|
3435
|
+
i && d && (typeof d == "object" || typeof d == "function") ? (h || (h = new i()), a(h, d, S)) : s ? (y || (y = new s()), f(y, d, S)) : (O || (O = { key: {}, next: null }), j(O, d, S));
|
|
3408
3436
|
}
|
|
3409
3437
|
};
|
|
3410
3438
|
return T;
|
|
3411
|
-
},
|
|
3439
|
+
}, fr;
|
|
3412
3440
|
}
|
|
3413
|
-
var
|
|
3414
|
-
function
|
|
3415
|
-
if (
|
|
3416
|
-
|
|
3441
|
+
var pr, Yn;
|
|
3442
|
+
function Er() {
|
|
3443
|
+
if (Yn) return pr;
|
|
3444
|
+
Yn = 1;
|
|
3417
3445
|
var e = String.prototype.replace, r = /%20/g, t = {
|
|
3418
3446
|
RFC1738: "RFC1738",
|
|
3419
3447
|
RFC3986: "RFC3986"
|
|
3420
3448
|
};
|
|
3421
|
-
return
|
|
3449
|
+
return pr = {
|
|
3422
3450
|
default: t.RFC3986,
|
|
3423
3451
|
formatters: {
|
|
3424
3452
|
RFC1738: function(o) {
|
|
@@ -3430,37 +3458,37 @@ function qr() {
|
|
|
3430
3458
|
},
|
|
3431
3459
|
RFC1738: t.RFC1738,
|
|
3432
3460
|
RFC3986: t.RFC3986
|
|
3433
|
-
},
|
|
3461
|
+
}, pr;
|
|
3434
3462
|
}
|
|
3435
|
-
var
|
|
3436
|
-
function
|
|
3437
|
-
if (
|
|
3438
|
-
|
|
3439
|
-
var e = /* @__PURE__ */
|
|
3463
|
+
var dr, Xn;
|
|
3464
|
+
function Co() {
|
|
3465
|
+
if (Xn) return dr;
|
|
3466
|
+
Xn = 1;
|
|
3467
|
+
var e = /* @__PURE__ */ Er(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
|
|
3440
3468
|
for (var p = [], h = 0; h < 256; ++h)
|
|
3441
3469
|
p.push("%" + ((h < 16 ? "0" : "") + h.toString(16)).toUpperCase());
|
|
3442
3470
|
return p;
|
|
3443
3471
|
}(), i = function(h) {
|
|
3444
3472
|
for (; h.length > 1; ) {
|
|
3445
|
-
var y = h.pop(),
|
|
3446
|
-
if (t(
|
|
3447
|
-
for (var T = [], d = 0; d <
|
|
3448
|
-
typeof
|
|
3473
|
+
var y = h.pop(), O = y.obj[y.prop];
|
|
3474
|
+
if (t(O)) {
|
|
3475
|
+
for (var T = [], d = 0; d < O.length; ++d)
|
|
3476
|
+
typeof O[d] < "u" && T.push(O[d]);
|
|
3449
3477
|
y.obj[y.prop] = T;
|
|
3450
3478
|
}
|
|
3451
3479
|
}
|
|
3452
3480
|
}, s = function(h, y) {
|
|
3453
|
-
for (var
|
|
3454
|
-
typeof h[T] < "u" && (
|
|
3455
|
-
return
|
|
3456
|
-
}, n = function p(h, y,
|
|
3481
|
+
for (var O = y && y.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < h.length; ++T)
|
|
3482
|
+
typeof h[T] < "u" && (O[T] = h[T]);
|
|
3483
|
+
return O;
|
|
3484
|
+
}, n = function p(h, y, O) {
|
|
3457
3485
|
if (!y)
|
|
3458
3486
|
return h;
|
|
3459
3487
|
if (typeof y != "object") {
|
|
3460
3488
|
if (t(h))
|
|
3461
3489
|
h.push(y);
|
|
3462
3490
|
else if (h && typeof h == "object")
|
|
3463
|
-
(
|
|
3491
|
+
(O && (O.plainObjects || O.allowPrototypes) || !r.call(Object.prototype, y)) && (h[y] = !0);
|
|
3464
3492
|
else
|
|
3465
3493
|
return [h, y];
|
|
3466
3494
|
return h;
|
|
@@ -3468,39 +3496,39 @@ function To() {
|
|
|
3468
3496
|
if (!h || typeof h != "object")
|
|
3469
3497
|
return [h].concat(y);
|
|
3470
3498
|
var T = h;
|
|
3471
|
-
return t(h) && !t(y) && (T = s(h,
|
|
3472
|
-
if (r.call(h,
|
|
3473
|
-
var x = h[
|
|
3474
|
-
x && typeof x == "object" && d && typeof d == "object" ? h[
|
|
3499
|
+
return t(h) && !t(y) && (T = s(h, O)), t(h) && t(y) ? (y.forEach(function(d, S) {
|
|
3500
|
+
if (r.call(h, S)) {
|
|
3501
|
+
var x = h[S];
|
|
3502
|
+
x && typeof x == "object" && d && typeof d == "object" ? h[S] = p(x, d, O) : h.push(d);
|
|
3475
3503
|
} else
|
|
3476
|
-
h[
|
|
3477
|
-
}), h) : Object.keys(y).reduce(function(d,
|
|
3478
|
-
var x = y[
|
|
3479
|
-
return r.call(d,
|
|
3504
|
+
h[S] = d;
|
|
3505
|
+
}), h) : Object.keys(y).reduce(function(d, S) {
|
|
3506
|
+
var x = y[S];
|
|
3507
|
+
return r.call(d, S) ? d[S] = p(d[S], x, O) : d[S] = x, d;
|
|
3480
3508
|
}, T);
|
|
3481
3509
|
}, a = function(h, y) {
|
|
3482
|
-
return Object.keys(y).reduce(function(
|
|
3483
|
-
return
|
|
3510
|
+
return Object.keys(y).reduce(function(O, T) {
|
|
3511
|
+
return O[T] = y[T], O;
|
|
3484
3512
|
}, h);
|
|
3485
3513
|
}, l = function(p, h, y) {
|
|
3486
|
-
var
|
|
3514
|
+
var O = p.replace(/\+/g, " ");
|
|
3487
3515
|
if (y === "iso-8859-1")
|
|
3488
|
-
return
|
|
3516
|
+
return O.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
3489
3517
|
try {
|
|
3490
|
-
return decodeURIComponent(
|
|
3518
|
+
return decodeURIComponent(O);
|
|
3491
3519
|
} catch {
|
|
3492
|
-
return
|
|
3520
|
+
return O;
|
|
3493
3521
|
}
|
|
3494
|
-
}, c = 1024, f = function(h, y,
|
|
3522
|
+
}, c = 1024, f = function(h, y, O, T, d) {
|
|
3495
3523
|
if (h.length === 0)
|
|
3496
3524
|
return h;
|
|
3497
|
-
var
|
|
3498
|
-
if (typeof h == "symbol" ?
|
|
3499
|
-
return escape(
|
|
3525
|
+
var S = h;
|
|
3526
|
+
if (typeof h == "symbol" ? S = Symbol.prototype.toString.call(h) : typeof h != "string" && (S = String(h)), O === "iso-8859-1")
|
|
3527
|
+
return escape(S).replace(/%u[0-9a-f]{4}/gi, function(ae) {
|
|
3500
3528
|
return "%26%23" + parseInt(ae.slice(2), 16) + "%3B";
|
|
3501
3529
|
});
|
|
3502
|
-
for (var x = "", N = 0; N <
|
|
3503
|
-
for (var A =
|
|
3530
|
+
for (var x = "", N = 0; N < S.length; N += c) {
|
|
3531
|
+
for (var A = S.length >= c ? S.slice(N, N + c) : S, E = [], B = 0; B < A.length; ++B) {
|
|
3504
3532
|
var P = A.charCodeAt(B);
|
|
3505
3533
|
if (P === 45 || P === 46 || P === 95 || P === 126 || P >= 48 && P <= 57 || P >= 65 && P <= 90 || P >= 97 && P <= 122 || d === e.RFC1738 && (P === 40 || P === 41)) {
|
|
3506
3534
|
E[E.length] = A.charAt(B);
|
|
@@ -3524,10 +3552,10 @@ function To() {
|
|
|
3524
3552
|
}
|
|
3525
3553
|
return x;
|
|
3526
3554
|
}, g = function(h) {
|
|
3527
|
-
for (var y = [{ obj: { o: h }, prop: "o" }],
|
|
3528
|
-
for (var d = y[T],
|
|
3529
|
-
var A = x[N], E =
|
|
3530
|
-
typeof E == "object" && E !== null &&
|
|
3555
|
+
for (var y = [{ obj: { o: h }, prop: "o" }], O = [], T = 0; T < y.length; ++T)
|
|
3556
|
+
for (var d = y[T], S = d.obj[d.prop], x = Object.keys(S), N = 0; N < x.length; ++N) {
|
|
3557
|
+
var A = x[N], E = S[A];
|
|
3558
|
+
typeof E == "object" && E !== null && O.indexOf(E) === -1 && (y.push({ obj: S, prop: A }), O.push(E));
|
|
3531
3559
|
}
|
|
3532
3560
|
return i(y), h;
|
|
3533
3561
|
}, b = function(h) {
|
|
@@ -3538,13 +3566,13 @@ function To() {
|
|
|
3538
3566
|
return [].concat(h, y);
|
|
3539
3567
|
}, v = function(h, y) {
|
|
3540
3568
|
if (t(h)) {
|
|
3541
|
-
for (var
|
|
3542
|
-
|
|
3543
|
-
return
|
|
3569
|
+
for (var O = [], T = 0; T < h.length; T += 1)
|
|
3570
|
+
O.push(y(h[T]));
|
|
3571
|
+
return O;
|
|
3544
3572
|
}
|
|
3545
3573
|
return y(h);
|
|
3546
3574
|
};
|
|
3547
|
-
return
|
|
3575
|
+
return dr = {
|
|
3548
3576
|
arrayToObject: s,
|
|
3549
3577
|
assign: a,
|
|
3550
3578
|
combine: j,
|
|
@@ -3555,13 +3583,13 @@ function To() {
|
|
|
3555
3583
|
isRegExp: b,
|
|
3556
3584
|
maybeMap: v,
|
|
3557
3585
|
merge: n
|
|
3558
|
-
},
|
|
3586
|
+
}, dr;
|
|
3559
3587
|
}
|
|
3560
|
-
var
|
|
3561
|
-
function
|
|
3562
|
-
if (
|
|
3563
|
-
|
|
3564
|
-
var e =
|
|
3588
|
+
var hr, Zn;
|
|
3589
|
+
function Gs() {
|
|
3590
|
+
if (Zn) return hr;
|
|
3591
|
+
Zn = 1;
|
|
3592
|
+
var e = zs(), r = /* @__PURE__ */ Co(), t = /* @__PURE__ */ Er(), o = Object.prototype.hasOwnProperty, i = {
|
|
3565
3593
|
brackets: function(p) {
|
|
3566
3594
|
return p + "[]";
|
|
3567
3595
|
},
|
|
@@ -3597,61 +3625,61 @@ function Es() {
|
|
|
3597
3625
|
strictNullHandling: !1
|
|
3598
3626
|
}, g = function(p) {
|
|
3599
3627
|
return typeof p == "string" || typeof p == "number" || typeof p == "boolean" || typeof p == "symbol" || typeof p == "bigint";
|
|
3600
|
-
}, b = {}, m = function v(p, h, y,
|
|
3601
|
-
for (var
|
|
3628
|
+
}, b = {}, m = function v(p, h, y, O, T, d, S, x, N, A, E, B, P, ae, H, D, le, Z) {
|
|
3629
|
+
for (var R = p, re = Z, k = 0, q = !1; (re = re.get(b)) !== void 0 && !q; ) {
|
|
3602
3630
|
var U = re.get(p);
|
|
3603
|
-
if (
|
|
3604
|
-
if (U ===
|
|
3631
|
+
if (k += 1, typeof U < "u") {
|
|
3632
|
+
if (U === k)
|
|
3605
3633
|
throw new RangeError("Cyclic object value");
|
|
3606
|
-
|
|
3634
|
+
q = !0;
|
|
3607
3635
|
}
|
|
3608
|
-
typeof re.get(b) > "u" && (
|
|
3636
|
+
typeof re.get(b) > "u" && (k = 0);
|
|
3609
3637
|
}
|
|
3610
|
-
if (typeof A == "function" ?
|
|
3638
|
+
if (typeof A == "function" ? R = A(h, R) : R instanceof Date ? R = P(R) : y === "comma" && s(R) && (R = r.maybeMap(R, function(Y) {
|
|
3611
3639
|
return Y instanceof Date ? P(Y) : Y;
|
|
3612
|
-
})),
|
|
3640
|
+
})), R === null) {
|
|
3613
3641
|
if (d)
|
|
3614
3642
|
return N && !D ? N(h, f.encoder, le, "key", ae) : h;
|
|
3615
|
-
|
|
3643
|
+
R = "";
|
|
3616
3644
|
}
|
|
3617
|
-
if (g(
|
|
3645
|
+
if (g(R) || r.isBuffer(R)) {
|
|
3618
3646
|
if (N) {
|
|
3619
3647
|
var C = D ? h : N(h, f.encoder, le, "key", ae);
|
|
3620
|
-
return [H(C) + "=" + H(N(
|
|
3648
|
+
return [H(C) + "=" + H(N(R, f.encoder, le, "value", ae))];
|
|
3621
3649
|
}
|
|
3622
|
-
return [H(h) + "=" + H(String(
|
|
3650
|
+
return [H(h) + "=" + H(String(R))];
|
|
3623
3651
|
}
|
|
3624
3652
|
var L = [];
|
|
3625
|
-
if (typeof
|
|
3653
|
+
if (typeof R > "u")
|
|
3626
3654
|
return L;
|
|
3627
3655
|
var W;
|
|
3628
|
-
if (y === "comma" && s(
|
|
3629
|
-
D && N && (
|
|
3656
|
+
if (y === "comma" && s(R))
|
|
3657
|
+
D && N && (R = r.maybeMap(R, N)), W = [{ value: R.length > 0 ? R.join(",") || null : void 0 }];
|
|
3630
3658
|
else if (s(A))
|
|
3631
3659
|
W = A;
|
|
3632
3660
|
else {
|
|
3633
|
-
var z = Object.keys(
|
|
3661
|
+
var z = Object.keys(R);
|
|
3634
3662
|
W = E ? z.sort(E) : z;
|
|
3635
3663
|
}
|
|
3636
|
-
var
|
|
3637
|
-
if (T && s(
|
|
3664
|
+
var Q = x ? h.replace(/\./g, "%2E") : h, ne = O && s(R) && R.length === 1 ? Q + "[]" : Q;
|
|
3665
|
+
if (T && s(R) && R.length === 0)
|
|
3638
3666
|
return ne + "[]";
|
|
3639
3667
|
for (var J = 0; J < W.length; ++J) {
|
|
3640
|
-
var I = W[J], F = typeof I == "object" && typeof I.value < "u" ? I.value :
|
|
3641
|
-
if (!(
|
|
3642
|
-
var _ = B && x ? I.replace(/\./g, "%2E") : I,
|
|
3643
|
-
Z.set(p,
|
|
3668
|
+
var I = W[J], F = typeof I == "object" && typeof I.value < "u" ? I.value : R[I];
|
|
3669
|
+
if (!(S && F === null)) {
|
|
3670
|
+
var _ = B && x ? I.replace(/\./g, "%2E") : I, K = s(R) ? typeof y == "function" ? y(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
|
|
3671
|
+
Z.set(p, k);
|
|
3644
3672
|
var G = e();
|
|
3645
3673
|
G.set(b, Z), a(L, v(
|
|
3646
3674
|
F,
|
|
3647
|
-
|
|
3675
|
+
K,
|
|
3648
3676
|
y,
|
|
3649
|
-
|
|
3677
|
+
O,
|
|
3650
3678
|
T,
|
|
3651
3679
|
d,
|
|
3652
|
-
|
|
3680
|
+
S,
|
|
3653
3681
|
x,
|
|
3654
|
-
y === "comma" && D && s(
|
|
3682
|
+
y === "comma" && D && s(R) ? null : N,
|
|
3655
3683
|
A,
|
|
3656
3684
|
E,
|
|
3657
3685
|
B,
|
|
@@ -3683,15 +3711,15 @@ function Es() {
|
|
|
3683
3711
|
throw new TypeError("Unknown format option provided.");
|
|
3684
3712
|
y = p.format;
|
|
3685
3713
|
}
|
|
3686
|
-
var
|
|
3714
|
+
var O = t.formatters[y], T = f.filter;
|
|
3687
3715
|
(typeof p.filter == "function" || s(p.filter)) && (T = p.filter);
|
|
3688
3716
|
var d;
|
|
3689
3717
|
if (p.arrayFormat in i ? d = p.arrayFormat : "indices" in p ? d = p.indices ? "indices" : "repeat" : d = f.arrayFormat, "commaRoundTrip" in p && typeof p.commaRoundTrip != "boolean")
|
|
3690
3718
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3691
|
-
var
|
|
3719
|
+
var S = typeof p.allowDots > "u" ? p.encodeDotInKeys === !0 ? !0 : f.allowDots : !!p.allowDots;
|
|
3692
3720
|
return {
|
|
3693
3721
|
addQueryPrefix: typeof p.addQueryPrefix == "boolean" ? p.addQueryPrefix : f.addQueryPrefix,
|
|
3694
|
-
allowDots:
|
|
3722
|
+
allowDots: S,
|
|
3695
3723
|
allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : f.allowEmptyArrays,
|
|
3696
3724
|
arrayFormat: d,
|
|
3697
3725
|
charset: h,
|
|
@@ -3704,27 +3732,27 @@ function Es() {
|
|
|
3704
3732
|
encodeValuesOnly: typeof p.encodeValuesOnly == "boolean" ? p.encodeValuesOnly : f.encodeValuesOnly,
|
|
3705
3733
|
filter: T,
|
|
3706
3734
|
format: y,
|
|
3707
|
-
formatter:
|
|
3735
|
+
formatter: O,
|
|
3708
3736
|
serializeDate: typeof p.serializeDate == "function" ? p.serializeDate : f.serializeDate,
|
|
3709
3737
|
skipNulls: typeof p.skipNulls == "boolean" ? p.skipNulls : f.skipNulls,
|
|
3710
3738
|
sort: typeof p.sort == "function" ? p.sort : null,
|
|
3711
3739
|
strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : f.strictNullHandling
|
|
3712
3740
|
};
|
|
3713
3741
|
};
|
|
3714
|
-
return
|
|
3715
|
-
var h = v, y = j(p),
|
|
3716
|
-
typeof y.filter == "function" ? (T = y.filter, h = T("", h)) : s(y.filter) && (T = y.filter,
|
|
3742
|
+
return hr = function(v, p) {
|
|
3743
|
+
var h = v, y = j(p), O, T;
|
|
3744
|
+
typeof y.filter == "function" ? (T = y.filter, h = T("", h)) : s(y.filter) && (T = y.filter, O = T);
|
|
3717
3745
|
var d = [];
|
|
3718
3746
|
if (typeof h != "object" || h === null)
|
|
3719
3747
|
return "";
|
|
3720
|
-
var
|
|
3721
|
-
|
|
3722
|
-
for (var N = e(), A = 0; A <
|
|
3723
|
-
var E =
|
|
3748
|
+
var S = i[y.arrayFormat], x = S === "comma" && y.commaRoundTrip;
|
|
3749
|
+
O || (O = Object.keys(h)), y.sort && O.sort(y.sort);
|
|
3750
|
+
for (var N = e(), A = 0; A < O.length; ++A) {
|
|
3751
|
+
var E = O[A];
|
|
3724
3752
|
y.skipNulls && h[E] === null || a(d, m(
|
|
3725
3753
|
h[E],
|
|
3726
3754
|
E,
|
|
3727
|
-
|
|
3755
|
+
S,
|
|
3728
3756
|
x,
|
|
3729
3757
|
y.allowEmptyArrays,
|
|
3730
3758
|
y.strictNullHandling,
|
|
@@ -3744,13 +3772,13 @@ function Es() {
|
|
|
3744
3772
|
}
|
|
3745
3773
|
var B = d.join(y.delimiter), P = y.addQueryPrefix === !0 ? "?" : "";
|
|
3746
3774
|
return y.charsetSentinel && (y.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
|
|
3747
|
-
},
|
|
3775
|
+
}, hr;
|
|
3748
3776
|
}
|
|
3749
|
-
var
|
|
3750
|
-
function
|
|
3751
|
-
if (
|
|
3752
|
-
|
|
3753
|
-
var e = /* @__PURE__ */
|
|
3777
|
+
var yr, eo;
|
|
3778
|
+
function Ws() {
|
|
3779
|
+
if (eo) return yr;
|
|
3780
|
+
eo = 1;
|
|
3781
|
+
var e = /* @__PURE__ */ Co(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
|
|
3754
3782
|
allowDots: !1,
|
|
3755
3783
|
allowEmptyArrays: !1,
|
|
3756
3784
|
allowPrototypes: !1,
|
|
@@ -3780,55 +3808,55 @@ function As() {
|
|
|
3780
3808
|
}, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", l = function(m, j) {
|
|
3781
3809
|
var v = { __proto__: null }, p = j.ignoreQueryPrefix ? m.replace(/^\?/, "") : m;
|
|
3782
3810
|
p = p.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3783
|
-
var h = j.parameterLimit === 1 / 0 ? void 0 : j.parameterLimit, y = p.split(j.delimiter, h),
|
|
3811
|
+
var h = j.parameterLimit === 1 / 0 ? void 0 : j.parameterLimit, y = p.split(j.delimiter, h), O = -1, T, d = j.charset;
|
|
3784
3812
|
if (j.charsetSentinel)
|
|
3785
3813
|
for (T = 0; T < y.length; ++T)
|
|
3786
|
-
y[T].indexOf("utf8=") === 0 && (y[T] === a ? d = "utf-8" : y[T] === n && (d = "iso-8859-1"),
|
|
3814
|
+
y[T].indexOf("utf8=") === 0 && (y[T] === a ? d = "utf-8" : y[T] === n && (d = "iso-8859-1"), O = T, T = y.length);
|
|
3787
3815
|
for (T = 0; T < y.length; ++T)
|
|
3788
|
-
if (T !==
|
|
3789
|
-
var
|
|
3790
|
-
N === -1 ? (A = j.decoder(
|
|
3791
|
-
s(
|
|
3816
|
+
if (T !== O) {
|
|
3817
|
+
var S = y[T], x = S.indexOf("]="), N = x === -1 ? S.indexOf("=") : x + 1, A, E;
|
|
3818
|
+
N === -1 ? (A = j.decoder(S, o.decoder, d, "key"), E = j.strictNullHandling ? null : "") : (A = j.decoder(S.slice(0, N), o.decoder, d, "key"), E = e.maybeMap(
|
|
3819
|
+
s(S.slice(N + 1), j),
|
|
3792
3820
|
function(P) {
|
|
3793
3821
|
return j.decoder(P, o.decoder, d, "value");
|
|
3794
3822
|
}
|
|
3795
|
-
)), E && j.interpretNumericEntities && d === "iso-8859-1" && (E = i(E)),
|
|
3823
|
+
)), E && j.interpretNumericEntities && d === "iso-8859-1" && (E = i(E)), S.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
|
|
3796
3824
|
var B = r.call(v, A);
|
|
3797
3825
|
B && j.duplicates === "combine" ? v[A] = e.combine(v[A], E) : (!B || j.duplicates === "last") && (v[A] = E);
|
|
3798
3826
|
}
|
|
3799
3827
|
return v;
|
|
3800
3828
|
}, c = function(b, m, j, v) {
|
|
3801
3829
|
for (var p = v ? m : s(m, j), h = b.length - 1; h >= 0; --h) {
|
|
3802
|
-
var y,
|
|
3803
|
-
if (
|
|
3830
|
+
var y, O = b[h];
|
|
3831
|
+
if (O === "[]" && j.parseArrays)
|
|
3804
3832
|
y = j.allowEmptyArrays && (p === "" || j.strictNullHandling && p === null) ? [] : [].concat(p);
|
|
3805
3833
|
else {
|
|
3806
3834
|
y = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3807
|
-
var T =
|
|
3808
|
-
!j.parseArrays && d === "" ? y = { 0: p } : !isNaN(
|
|
3835
|
+
var T = O.charAt(0) === "[" && O.charAt(O.length - 1) === "]" ? O.slice(1, -1) : O, d = j.decodeDotInKeys ? T.replace(/%2E/g, ".") : T, S = parseInt(d, 10);
|
|
3836
|
+
!j.parseArrays && d === "" ? y = { 0: p } : !isNaN(S) && O !== d && String(S) === d && S >= 0 && j.parseArrays && S <= j.arrayLimit ? (y = [], y[S] = p) : d !== "__proto__" && (y[d] = p);
|
|
3809
3837
|
}
|
|
3810
3838
|
p = y;
|
|
3811
3839
|
}
|
|
3812
3840
|
return p;
|
|
3813
3841
|
}, f = function(m, j, v, p) {
|
|
3814
3842
|
if (m) {
|
|
3815
|
-
var h = v.allowDots ? m.replace(/\.([^.[]+)/g, "[$1]") : m, y = /(\[[^[\]]*])/,
|
|
3843
|
+
var h = v.allowDots ? m.replace(/\.([^.[]+)/g, "[$1]") : m, y = /(\[[^[\]]*])/, O = /(\[[^[\]]*])/g, T = v.depth > 0 && y.exec(h), d = T ? h.slice(0, T.index) : h, S = [];
|
|
3816
3844
|
if (d) {
|
|
3817
3845
|
if (!v.plainObjects && r.call(Object.prototype, d) && !v.allowPrototypes)
|
|
3818
3846
|
return;
|
|
3819
|
-
|
|
3847
|
+
S.push(d);
|
|
3820
3848
|
}
|
|
3821
|
-
for (var x = 0; v.depth > 0 && (T =
|
|
3849
|
+
for (var x = 0; v.depth > 0 && (T = O.exec(h)) !== null && x < v.depth; ) {
|
|
3822
3850
|
if (x += 1, !v.plainObjects && r.call(Object.prototype, T[1].slice(1, -1)) && !v.allowPrototypes)
|
|
3823
3851
|
return;
|
|
3824
|
-
|
|
3852
|
+
S.push(T[1]);
|
|
3825
3853
|
}
|
|
3826
3854
|
if (T) {
|
|
3827
3855
|
if (v.strictDepth === !0)
|
|
3828
3856
|
throw new RangeError("Input depth exceeded depth option of " + v.depth + " and strictDepth is true");
|
|
3829
|
-
|
|
3857
|
+
S.push("[" + h.slice(T.index) + "]");
|
|
3830
3858
|
}
|
|
3831
|
-
return c(
|
|
3859
|
+
return c(S, j, v, p);
|
|
3832
3860
|
}
|
|
3833
3861
|
}, g = function(m) {
|
|
3834
3862
|
if (!m)
|
|
@@ -3869,33 +3897,33 @@ function As() {
|
|
|
3869
3897
|
strictNullHandling: typeof m.strictNullHandling == "boolean" ? m.strictNullHandling : o.strictNullHandling
|
|
3870
3898
|
};
|
|
3871
3899
|
};
|
|
3872
|
-
return
|
|
3900
|
+
return yr = function(b, m) {
|
|
3873
3901
|
var j = g(m);
|
|
3874
3902
|
if (b === "" || b === null || typeof b > "u")
|
|
3875
3903
|
return j.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
3876
3904
|
for (var v = typeof b == "string" ? l(b, j) : b, p = j.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, h = Object.keys(v), y = 0; y < h.length; ++y) {
|
|
3877
|
-
var
|
|
3905
|
+
var O = h[y], T = f(O, v[O], j, typeof b == "string");
|
|
3878
3906
|
p = e.merge(p, T, j);
|
|
3879
3907
|
}
|
|
3880
3908
|
return j.allowSparse === !0 ? p : e.compact(p);
|
|
3881
|
-
},
|
|
3909
|
+
}, yr;
|
|
3882
3910
|
}
|
|
3883
|
-
var
|
|
3884
|
-
function
|
|
3885
|
-
if (
|
|
3886
|
-
|
|
3887
|
-
var e = /* @__PURE__ */
|
|
3888
|
-
return
|
|
3911
|
+
var mr, to;
|
|
3912
|
+
function No() {
|
|
3913
|
+
if (to) return mr;
|
|
3914
|
+
to = 1;
|
|
3915
|
+
var e = /* @__PURE__ */ Gs(), r = /* @__PURE__ */ Ws(), t = /* @__PURE__ */ Er();
|
|
3916
|
+
return mr = {
|
|
3889
3917
|
formats: t,
|
|
3890
3918
|
parse: r,
|
|
3891
3919
|
stringify: e
|
|
3892
|
-
},
|
|
3920
|
+
}, mr;
|
|
3893
3921
|
}
|
|
3894
|
-
var
|
|
3895
|
-
function
|
|
3896
|
-
if (
|
|
3897
|
-
|
|
3898
|
-
var e =
|
|
3922
|
+
var ro;
|
|
3923
|
+
function Js() {
|
|
3924
|
+
if (ro) return Ce;
|
|
3925
|
+
ro = 1;
|
|
3926
|
+
var e = fs();
|
|
3899
3927
|
function r() {
|
|
3900
3928
|
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;
|
|
3901
3929
|
}
|
|
@@ -3943,14 +3971,14 @@ function Is() {
|
|
|
3943
3971
|
"ftp:": !0,
|
|
3944
3972
|
"gopher:": !0,
|
|
3945
3973
|
"file:": !0
|
|
3946
|
-
}, p = /* @__PURE__ */
|
|
3947
|
-
function h(d,
|
|
3974
|
+
}, p = /* @__PURE__ */ No();
|
|
3975
|
+
function h(d, S, x) {
|
|
3948
3976
|
if (d && typeof d == "object" && d instanceof r)
|
|
3949
3977
|
return d;
|
|
3950
3978
|
var N = new r();
|
|
3951
|
-
return N.parse(d,
|
|
3979
|
+
return N.parse(d, S, x), N;
|
|
3952
3980
|
}
|
|
3953
|
-
r.prototype.parse = function(d,
|
|
3981
|
+
r.prototype.parse = function(d, S, x) {
|
|
3954
3982
|
if (typeof d != "string")
|
|
3955
3983
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof d);
|
|
3956
3984
|
var N = d.indexOf("?"), A = N !== -1 && N < d.indexOf("#") ? "?" : "#", E = d.split(A), B = /\\/g;
|
|
@@ -3959,7 +3987,7 @@ function Is() {
|
|
|
3959
3987
|
if (P = P.trim(), !x && d.split("#").length === 1) {
|
|
3960
3988
|
var ae = i.exec(P);
|
|
3961
3989
|
if (ae)
|
|
3962
|
-
return this.path = P, this.href = P, this.pathname = ae[1], ae[2] ? (this.search = ae[2],
|
|
3990
|
+
return this.path = P, this.href = P, this.pathname = ae[1], ae[2] ? (this.search = ae[2], S ? this.query = p.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : S && (this.search = "", this.query = {}), this;
|
|
3963
3991
|
}
|
|
3964
3992
|
var H = t.exec(P);
|
|
3965
3993
|
if (H) {
|
|
@@ -3972,38 +4000,38 @@ function Is() {
|
|
|
3972
4000
|
le && !(H && j[H]) && (P = P.substr(2), this.slashes = !0);
|
|
3973
4001
|
}
|
|
3974
4002
|
if (!j[H] && (le || H && !v[H])) {
|
|
3975
|
-
for (var Z = -1,
|
|
3976
|
-
var re = P.indexOf(c[
|
|
4003
|
+
for (var Z = -1, R = 0; R < c.length; R++) {
|
|
4004
|
+
var re = P.indexOf(c[R]);
|
|
3977
4005
|
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
3978
4006
|
}
|
|
3979
|
-
var
|
|
3980
|
-
Z === -1 ?
|
|
3981
|
-
for (var
|
|
3982
|
-
var re = P.indexOf(l[
|
|
4007
|
+
var k, q;
|
|
4008
|
+
Z === -1 ? q = P.lastIndexOf("@") : q = P.lastIndexOf("@", Z), q !== -1 && (k = P.slice(0, q), P = P.slice(q + 1), this.auth = decodeURIComponent(k)), Z = -1;
|
|
4009
|
+
for (var R = 0; R < l.length; R++) {
|
|
4010
|
+
var re = P.indexOf(l[R]);
|
|
3983
4011
|
re !== -1 && (Z === -1 || re < Z) && (Z = re);
|
|
3984
4012
|
}
|
|
3985
4013
|
Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
|
|
3986
4014
|
var U = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3987
4015
|
if (!U)
|
|
3988
|
-
for (var C = this.hostname.split(/\./),
|
|
3989
|
-
var W = C[
|
|
4016
|
+
for (var C = this.hostname.split(/\./), R = 0, L = C.length; R < L; R++) {
|
|
4017
|
+
var W = C[R];
|
|
3990
4018
|
if (W && !W.match(g)) {
|
|
3991
|
-
for (var z = "",
|
|
3992
|
-
W.charCodeAt(
|
|
4019
|
+
for (var z = "", Q = 0, ne = W.length; Q < ne; Q++)
|
|
4020
|
+
W.charCodeAt(Q) > 127 ? z += "x" : z += W[Q];
|
|
3993
4021
|
if (!z.match(g)) {
|
|
3994
|
-
var J = C.slice(0,
|
|
4022
|
+
var J = C.slice(0, R), I = C.slice(R + 1), F = W.match(b);
|
|
3995
4023
|
F && (J.push(F[1]), I.unshift(F[2])), I.length && (P = "/" + I.join(".") + P), this.hostname = J.join(".");
|
|
3996
4024
|
break;
|
|
3997
4025
|
}
|
|
3998
4026
|
}
|
|
3999
4027
|
}
|
|
4000
4028
|
this.hostname.length > f ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), U || (this.hostname = e.toASCII(this.hostname));
|
|
4001
|
-
var _ = this.port ? ":" + this.port : "",
|
|
4002
|
-
this.host =
|
|
4029
|
+
var _ = this.port ? ":" + this.port : "", K = this.hostname || "";
|
|
4030
|
+
this.host = K + _, this.href += this.host, U && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), P[0] !== "/" && (P = "/" + P));
|
|
4003
4031
|
}
|
|
4004
4032
|
if (!m[D])
|
|
4005
|
-
for (var
|
|
4006
|
-
var G = a[
|
|
4033
|
+
for (var R = 0, L = a.length; R < L; R++) {
|
|
4034
|
+
var G = a[R];
|
|
4007
4035
|
if (P.indexOf(G) !== -1) {
|
|
4008
4036
|
var Y = encodeURIComponent(G);
|
|
4009
4037
|
Y === G && (Y = escape(G)), P = P.split(G).join(Y);
|
|
@@ -4011,8 +4039,8 @@ function Is() {
|
|
|
4011
4039
|
}
|
|
4012
4040
|
var oe = P.indexOf("#");
|
|
4013
4041
|
oe !== -1 && (this.hash = P.substr(oe), P = P.slice(0, oe));
|
|
4014
|
-
var
|
|
4015
|
-
if (
|
|
4042
|
+
var ye = P.indexOf("?");
|
|
4043
|
+
if (ye !== -1 ? (this.search = P.substr(ye), this.query = P.substr(ye + 1), S && (this.query = p.parse(this.query)), P = P.slice(0, ye)) : S && (this.search = "", this.query = {}), P && (this.pathname = P), v[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4016
4044
|
var _ = this.pathname || "", Se = this.search || "";
|
|
4017
4045
|
this.path = _ + Se;
|
|
4018
4046
|
}
|
|
@@ -4024,29 +4052,29 @@ function Is() {
|
|
|
4024
4052
|
r.prototype.format = function() {
|
|
4025
4053
|
var d = this.auth || "";
|
|
4026
4054
|
d && (d = encodeURIComponent(d), d = d.replace(/%3A/i, ":"), d += "@");
|
|
4027
|
-
var
|
|
4055
|
+
var S = this.protocol || "", x = this.pathname || "", N = this.hash || "", A = !1, E = "";
|
|
4028
4056
|
this.host ? A = d + this.host : this.hostname && (A = d + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = p.stringify(this.query, {
|
|
4029
4057
|
arrayFormat: "repeat",
|
|
4030
4058
|
addQueryPrefix: !1
|
|
4031
4059
|
}));
|
|
4032
4060
|
var B = this.search || E && "?" + E || "";
|
|
4033
|
-
return
|
|
4061
|
+
return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || v[S]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), N && N.charAt(0) !== "#" && (N = "#" + N), B && B.charAt(0) !== "?" && (B = "?" + B), x = x.replace(/[?#]/g, function(P) {
|
|
4034
4062
|
return encodeURIComponent(P);
|
|
4035
|
-
}), B = B.replace("#", "%23"),
|
|
4063
|
+
}), B = B.replace("#", "%23"), S + A + x + B + N;
|
|
4036
4064
|
};
|
|
4037
|
-
function
|
|
4038
|
-
return h(d, !1, !0).resolve(
|
|
4065
|
+
function O(d, S) {
|
|
4066
|
+
return h(d, !1, !0).resolve(S);
|
|
4039
4067
|
}
|
|
4040
4068
|
r.prototype.resolve = function(d) {
|
|
4041
4069
|
return this.resolveObject(h(d, !1, !0)).format();
|
|
4042
4070
|
};
|
|
4043
|
-
function T(d,
|
|
4044
|
-
return d ? h(d, !1, !0).resolveObject(
|
|
4071
|
+
function T(d, S) {
|
|
4072
|
+
return d ? h(d, !1, !0).resolveObject(S) : S;
|
|
4045
4073
|
}
|
|
4046
4074
|
return r.prototype.resolveObject = function(d) {
|
|
4047
4075
|
if (typeof d == "string") {
|
|
4048
|
-
var
|
|
4049
|
-
|
|
4076
|
+
var S = new r();
|
|
4077
|
+
S.parse(d, !1, !0), d = S;
|
|
4050
4078
|
}
|
|
4051
4079
|
for (var x = new r(), N = Object.keys(this), A = 0; A < N.length; A++) {
|
|
4052
4080
|
var E = N[A];
|
|
@@ -4076,13 +4104,13 @@ function Is() {
|
|
|
4076
4104
|
} else
|
|
4077
4105
|
x.pathname = d.pathname;
|
|
4078
4106
|
if (x.search = d.search, x.query = d.query, x.host = d.host || "", x.auth = d.auth, x.hostname = d.hostname || d.host, x.port = d.port, x.pathname || x.search) {
|
|
4079
|
-
var Z = x.pathname || "",
|
|
4080
|
-
x.path = Z +
|
|
4107
|
+
var Z = x.pathname || "", R = x.search || "";
|
|
4108
|
+
x.path = Z + R;
|
|
4081
4109
|
}
|
|
4082
4110
|
return x.slashes = x.slashes || d.slashes, x.href = x.format(), x;
|
|
4083
4111
|
}
|
|
4084
|
-
var re = x.pathname && x.pathname.charAt(0) === "/",
|
|
4085
|
-
if (W && (x.hostname = "", x.port = null, x.host && (C[0] === "" ? C[0] = x.host : C.unshift(x.host)), x.host = "", d.protocol && (d.hostname = null, d.port = null, d.host && (L[0] === "" ? L[0] = d.host : L.unshift(d.host)), d.host = null),
|
|
4112
|
+
var re = x.pathname && x.pathname.charAt(0) === "/", k = d.host || d.pathname && d.pathname.charAt(0) === "/", q = k || re || x.host && d.pathname, U = q, C = x.pathname && x.pathname.split("/") || [], L = d.pathname && d.pathname.split("/") || [], W = x.protocol && !v[x.protocol];
|
|
4113
|
+
if (W && (x.hostname = "", x.port = null, x.host && (C[0] === "" ? C[0] = x.host : C.unshift(x.host)), x.host = "", d.protocol && (d.hostname = null, d.port = null, d.host && (L[0] === "" ? L[0] = d.host : L.unshift(d.host)), d.host = null), q = q && (L[0] === "" || C[0] === "")), k)
|
|
4086
4114
|
x.host = d.host || d.host === "" ? d.host : x.host, x.hostname = d.hostname || d.hostname === "" ? d.hostname : x.hostname, x.search = d.search, x.query = d.query, C = L;
|
|
4087
4115
|
else if (L.length)
|
|
4088
4116
|
C || (C = []), C.pop(), C = C.concat(L), x.search = d.search, x.query = d.query;
|
|
@@ -4096,30 +4124,30 @@ function Is() {
|
|
|
4096
4124
|
}
|
|
4097
4125
|
if (!C.length)
|
|
4098
4126
|
return x.pathname = null, x.search ? x.path = "/" + x.search : x.path = null, x.href = x.format(), x;
|
|
4099
|
-
for (var
|
|
4100
|
-
|
|
4101
|
-
if (!
|
|
4127
|
+
for (var Q = C.slice(-1)[0], ne = (x.host || d.host || C.length > 1) && (Q === "." || Q === "..") || Q === "", J = 0, I = C.length; I >= 0; I--)
|
|
4128
|
+
Q = C[I], Q === "." ? C.splice(I, 1) : Q === ".." ? (C.splice(I, 1), J++) : J && (C.splice(I, 1), J--);
|
|
4129
|
+
if (!q && !U)
|
|
4102
4130
|
for (; J--; J)
|
|
4103
4131
|
C.unshift("..");
|
|
4104
|
-
|
|
4132
|
+
q && C[0] !== "" && (!C[0] || C[0].charAt(0) !== "/") && C.unshift(""), ne && C.join("/").substr(-1) !== "/" && C.push("");
|
|
4105
4133
|
var F = C[0] === "" || C[0] && C[0].charAt(0) === "/";
|
|
4106
4134
|
if (W) {
|
|
4107
4135
|
x.hostname = F ? "" : C.length ? C.shift() : "", x.host = x.hostname;
|
|
4108
4136
|
var z = x.host && x.host.indexOf("@") > 0 ? x.host.split("@") : !1;
|
|
4109
4137
|
z && (x.auth = z.shift(), x.hostname = z.shift(), x.host = x.hostname);
|
|
4110
4138
|
}
|
|
4111
|
-
return
|
|
4139
|
+
return q = q || x.host && C.length, q && !F && C.unshift(""), C.length > 0 ? x.pathname = C.join("/") : (x.pathname = null, x.path = null), (x.pathname !== null || x.search !== null) && (x.path = (x.pathname ? x.pathname : "") + (x.search ? x.search : "")), x.auth = d.auth || x.auth, x.slashes = x.slashes || d.slashes, x.href = x.format(), x;
|
|
4112
4140
|
}, r.prototype.parseHost = function() {
|
|
4113
|
-
var d = this.host,
|
|
4114
|
-
|
|
4115
|
-
}, Ce.parse = h, Ce.resolve =
|
|
4141
|
+
var d = this.host, S = o.exec(d);
|
|
4142
|
+
S && (S = S[0], S !== ":" && (this.port = S.substr(1)), d = d.substr(0, d.length - S.length)), d && (this.hostname = d);
|
|
4143
|
+
}, Ce.parse = h, Ce.resolve = O, Ce.resolveObject = T, Ce.format = y, Ce.Url = r, Ce;
|
|
4116
4144
|
}
|
|
4117
|
-
var
|
|
4145
|
+
var gr = Js(), vr = /* @__PURE__ */ No(), Vs = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Ds = class {
|
|
4118
4146
|
constructor(e, r = {}) {
|
|
4119
4147
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4120
4148
|
harIsAlreadyEncoded: !1,
|
|
4121
4149
|
...r
|
|
4122
|
-
}, this.requests = [],
|
|
4150
|
+
}, this.requests = [], Vs(e) ? this.entries = e.log.entries : this.entries = [
|
|
4123
4151
|
{
|
|
4124
4152
|
request: e
|
|
4125
4153
|
}
|
|
@@ -4154,7 +4182,7 @@ var pr = Is(), dr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "l
|
|
|
4154
4182
|
cookiesObj: {},
|
|
4155
4183
|
allHeaders: {}
|
|
4156
4184
|
};
|
|
4157
|
-
if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(
|
|
4185
|
+
if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Jr, {})), t.headers && t.headers.length) {
|
|
4158
4186
|
const m = /^HTTP\/2/;
|
|
4159
4187
|
t.headersObj = t.headers.reduce((j, { name: v, value: p }) => {
|
|
4160
4188
|
const h = m.exec(t.httpVersion) ? v.toLocaleLowerCase() : v;
|
|
@@ -4182,17 +4210,17 @@ var pr = Is(), dr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "l
|
|
|
4182
4210
|
`, p = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), h = (T) => T.replace(/\r?\n|\r/g, `\r
|
|
4183
4211
|
`), y = [`--${m}`];
|
|
4184
4212
|
(b = t.postData) == null || b.params.forEach((T, d) => {
|
|
4185
|
-
const
|
|
4213
|
+
const S = T.name, x = T.value || "", N = T.fileName || null, A = T.contentType || "application/octet-stream";
|
|
4186
4214
|
N ? (y.push(
|
|
4187
|
-
`Content-Disposition: form-data; name="${p(h(
|
|
4188
|
-
), y.push(`Content-Type: ${A}`)) : y.push(`Content-Disposition: form-data; name="${p(h(
|
|
4215
|
+
`Content-Disposition: form-data; name="${p(h(S))}"; filename="${N}"`
|
|
4216
|
+
), y.push(`Content-Type: ${A}`)) : y.push(`Content-Disposition: form-data; name="${p(h(S))}"`), y.push(""), y.push(h(x)), d !== t.postData.params.length - 1 && y.push(`--${m}`);
|
|
4189
4217
|
}), y.push(`--${j}`), t.postData.boundary = m, t.postData.text = y.join(v);
|
|
4190
|
-
const
|
|
4191
|
-
t.headersObj[
|
|
4218
|
+
const O = pe(t.headersObj, "content-type") || "content-type";
|
|
4219
|
+
t.headersObj[O] = `multipart/form-data; boundary=${m}`;
|
|
4192
4220
|
}
|
|
4193
4221
|
break;
|
|
4194
4222
|
case "application/x-www-form-urlencoded":
|
|
4195
|
-
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(
|
|
4223
|
+
t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Jr, {}), t.postData.text = vr.stringify(t.postData.paramsObj)) : t.postData.text = "";
|
|
4196
4224
|
break;
|
|
4197
4225
|
case "text/json":
|
|
4198
4226
|
case "text/x-json":
|
|
@@ -4209,16 +4237,16 @@ var pr = Is(), dr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "l
|
|
|
4209
4237
|
const i = {
|
|
4210
4238
|
...t.allHeaders,
|
|
4211
4239
|
...t.headersObj
|
|
4212
|
-
}, s =
|
|
4240
|
+
}, s = gr.parse(t.url, !0, !0);
|
|
4213
4241
|
t.queryObj = {
|
|
4214
4242
|
...t.queryObj,
|
|
4215
4243
|
...s.query
|
|
4216
4244
|
};
|
|
4217
4245
|
let n;
|
|
4218
|
-
r.harIsAlreadyEncoded ? n =
|
|
4246
|
+
r.harIsAlreadyEncoded ? n = vr.stringify(t.queryObj, {
|
|
4219
4247
|
encode: !1,
|
|
4220
4248
|
indices: !1
|
|
4221
|
-
}) : n =
|
|
4249
|
+
}) : n = vr.stringify(t.queryObj, {
|
|
4222
4250
|
indices: !1
|
|
4223
4251
|
});
|
|
4224
4252
|
const a = {
|
|
@@ -4226,11 +4254,11 @@ var pr = Is(), dr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "l
|
|
|
4226
4254
|
query: t.queryObj,
|
|
4227
4255
|
search: n,
|
|
4228
4256
|
path: n ? `${s.pathname}?${n}` : s.pathname
|
|
4229
|
-
}, l =
|
|
4257
|
+
}, l = gr.format({
|
|
4230
4258
|
...s,
|
|
4231
4259
|
query: null,
|
|
4232
4260
|
search: null
|
|
4233
|
-
}), c =
|
|
4261
|
+
}), c = gr.format({
|
|
4234
4262
|
...s,
|
|
4235
4263
|
...a
|
|
4236
4264
|
});
|
|
@@ -4244,19 +4272,19 @@ var pr = Is(), dr = /* @__PURE__ */ Po(), Ls = (e) => typeof e == "object" && "l
|
|
|
4244
4272
|
}
|
|
4245
4273
|
convert(e, r, t) {
|
|
4246
4274
|
this.initCalled || this.init(), !t && r && (t = r);
|
|
4247
|
-
const o =
|
|
4275
|
+
const o = cs[e];
|
|
4248
4276
|
if (!o)
|
|
4249
4277
|
return !1;
|
|
4250
4278
|
const { convert: i } = o.clientsById[r || o.info.default];
|
|
4251
4279
|
return this.requests.map((n) => i(n, t));
|
|
4252
4280
|
}
|
|
4253
4281
|
};
|
|
4254
|
-
const
|
|
4282
|
+
const Ks = ({
|
|
4255
4283
|
rootMargin: e = "0px",
|
|
4256
4284
|
threshold: r
|
|
4257
4285
|
} = {}) => {
|
|
4258
|
-
const [t, o] =
|
|
4259
|
-
return
|
|
4286
|
+
const [t, o] = he(!1), i = ho(null);
|
|
4287
|
+
return Cr(() => {
|
|
4260
4288
|
const s = new IntersectionObserver(
|
|
4261
4289
|
([a]) => {
|
|
4262
4290
|
a && o(a.isIntersecting);
|
|
@@ -4266,12 +4294,12 @@ const Fs = ({
|
|
|
4266
4294
|
if (n)
|
|
4267
4295
|
return s.observe(n), () => s.unobserve(n);
|
|
4268
4296
|
}, [e, r]), [i, t];
|
|
4269
|
-
},
|
|
4297
|
+
}, Qs = typeof window < "u" ? ma : Cr, ko = ({
|
|
4270
4298
|
children: e,
|
|
4271
4299
|
maxHeight: r = 250
|
|
4272
4300
|
}) => {
|
|
4273
|
-
const t =
|
|
4274
|
-
return
|
|
4301
|
+
const t = ho(null), [o, i] = he(!1), [s, n] = he(!1);
|
|
4302
|
+
return Qs(() => {
|
|
4275
4303
|
const a = t.current;
|
|
4276
4304
|
if (!a) return;
|
|
4277
4305
|
i(a.scrollHeight > r);
|
|
@@ -4280,7 +4308,7 @@ const Fs = ({
|
|
|
4280
4308
|
});
|
|
4281
4309
|
return l.observe(a), () => l.disconnect();
|
|
4282
4310
|
}, [r]), /* @__PURE__ */ u.jsxs(
|
|
4283
|
-
|
|
4311
|
+
lo,
|
|
4284
4312
|
{
|
|
4285
4313
|
className: "group",
|
|
4286
4314
|
open: s,
|
|
@@ -4288,7 +4316,7 @@ const Fs = ({
|
|
|
4288
4316
|
style: { "--max-height": `${r}px` },
|
|
4289
4317
|
children: [
|
|
4290
4318
|
/* @__PURE__ */ u.jsxs(
|
|
4291
|
-
|
|
4319
|
+
co,
|
|
4292
4320
|
{
|
|
4293
4321
|
forceMount: !0,
|
|
4294
4322
|
className: se(
|
|
@@ -4299,12 +4327,12 @@ const Fs = ({
|
|
|
4299
4327
|
!s && o && /* @__PURE__ */ u.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 group-hover:to-transparent" }),
|
|
4300
4328
|
/* @__PURE__ */ u.jsx("div", { ref: t, children: e }),
|
|
4301
4329
|
!s && o && /* @__PURE__ */ u.jsx(
|
|
4302
|
-
|
|
4330
|
+
xr,
|
|
4303
4331
|
{
|
|
4304
4332
|
className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
|
|
4305
4333
|
asChild: !0,
|
|
4306
|
-
children: /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(
|
|
4307
|
-
/* @__PURE__ */ u.jsx(
|
|
4334
|
+
children: /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs($r, { variant: "outline", className: "hidden group-hover:flex", children: [
|
|
4335
|
+
/* @__PURE__ */ u.jsx(Vo, { size: 14, className: "mr-1.5" }),
|
|
4308
4336
|
"Click to expand"
|
|
4309
4337
|
] }) })
|
|
4310
4338
|
}
|
|
@@ -4316,44 +4344,44 @@ const Fs = ({
|
|
|
4316
4344
|
"div",
|
|
4317
4345
|
{
|
|
4318
4346
|
className: se("flex justify-center w-full mb-2", !s && "hidden"),
|
|
4319
|
-
children: /* @__PURE__ */ u.jsx(
|
|
4347
|
+
children: /* @__PURE__ */ u.jsx(xr, { asChild: !0, children: /* @__PURE__ */ u.jsxs($r, { variant: "outline", size: "sm", children: [
|
|
4320
4348
|
"Collapse",
|
|
4321
|
-
/* @__PURE__ */ u.jsx(
|
|
4349
|
+
/* @__PURE__ */ u.jsx(Do, { size: 14, className: "ml-1.5" })
|
|
4322
4350
|
] }) })
|
|
4323
4351
|
}
|
|
4324
4352
|
)
|
|
4325
4353
|
]
|
|
4326
4354
|
}
|
|
4327
4355
|
);
|
|
4328
|
-
},
|
|
4356
|
+
}, Ys = ({
|
|
4329
4357
|
server: e,
|
|
4330
4358
|
servers: r,
|
|
4331
4359
|
operation: t,
|
|
4332
4360
|
examples: o
|
|
4333
4361
|
}) => {
|
|
4334
4362
|
var b, m, j;
|
|
4335
|
-
const { isAuthEnabled: i, login: s, signup: n, isPending: a, isAuthenticated: l } =
|
|
4336
|
-
var p, h, y,
|
|
4363
|
+
const { isAuthEnabled: i, login: s, signup: n, isPending: a, isAuthenticated: l } = Ia(), c = (b = t.parameters) == null ? void 0 : b.filter((v) => v.in === "header").sort((v, p) => v.required && !p.required ? -1 : 1).map((v) => {
|
|
4364
|
+
var p, h, y, O, T, d, S, x;
|
|
4337
4365
|
return {
|
|
4338
4366
|
name: v.name,
|
|
4339
4367
|
defaultValue: ((p = v.schema) == null ? void 0 : p.default) ?? ((y = (h = v.examples) == null ? void 0 : h.find((N) => N.value)) == null ? void 0 : y.value) ?? "",
|
|
4340
4368
|
defaultActive: v.required ?? !1,
|
|
4341
4369
|
isRequired: v.required ?? !1,
|
|
4342
|
-
enum: ((
|
|
4370
|
+
enum: ((O = v.schema) == null ? void 0 : O.type) == "array" ? (d = (T = v.schema) == null ? void 0 : T.items) == null ? void 0 : d.enum : (S = v.schema) == null ? void 0 : S.enum,
|
|
4343
4371
|
type: ((x = v.schema) == null ? void 0 : x.type) ?? "string"
|
|
4344
4372
|
};
|
|
4345
4373
|
}), f = (m = t.parameters) == null ? void 0 : m.filter((v) => v.in === "query").sort((v, p) => v.required && !p.required ? -1 : 1).map((v) => {
|
|
4346
|
-
var p, h, y,
|
|
4374
|
+
var p, h, y, O, T;
|
|
4347
4375
|
return {
|
|
4348
4376
|
name: v.name,
|
|
4349
4377
|
defaultActive: v.required ?? !1,
|
|
4350
4378
|
isRequired: v.required ?? !1,
|
|
4351
|
-
enum: ((p = v.schema) == null ? void 0 : p.type) == "array" ? (y = (h = v.schema) == null ? void 0 : h.items) == null ? void 0 : y.enum : (
|
|
4379
|
+
enum: ((p = v.schema) == null ? void 0 : p.type) == "array" ? (y = (h = v.schema) == null ? void 0 : h.items) == null ? void 0 : y.enum : (O = v.schema) == null ? void 0 : O.enum,
|
|
4352
4380
|
type: ((T = v.schema) == null ? void 0 : T.type) ?? "string"
|
|
4353
4381
|
};
|
|
4354
4382
|
}), g = (j = t.parameters) == null ? void 0 : j.filter((v) => v.in === "path").map((v) => ({ name: v.name }));
|
|
4355
4383
|
return /* @__PURE__ */ u.jsx(
|
|
4356
|
-
|
|
4384
|
+
ia,
|
|
4357
4385
|
{
|
|
4358
4386
|
server: e,
|
|
4359
4387
|
servers: r,
|
|
@@ -4368,13 +4396,13 @@ const Fs = ({
|
|
|
4368
4396
|
onSignUp: () => n()
|
|
4369
4397
|
}
|
|
4370
4398
|
);
|
|
4371
|
-
},
|
|
4399
|
+
}, Ar = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx(
|
|
4372
4400
|
"div",
|
|
4373
4401
|
{
|
|
4374
4402
|
className: se("rounded-xl overflow-hidden border border-border", r),
|
|
4375
4403
|
children: e
|
|
4376
4404
|
}
|
|
4377
|
-
),
|
|
4405
|
+
), Ir = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx(
|
|
4378
4406
|
"div",
|
|
4379
4407
|
{
|
|
4380
4408
|
className: se(
|
|
@@ -4383,7 +4411,7 @@ const Fs = ({
|
|
|
4383
4411
|
),
|
|
4384
4412
|
children: e
|
|
4385
4413
|
}
|
|
4386
|
-
),
|
|
4414
|
+
), qo = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("bg-card overflow-auto p-2", r), children: e }), Ro = ({ children: e, className: r }) => /* @__PURE__ */ u.jsx("div", { className: se("border-t bg-muted dark:bg-transparent p-3", r), children: e }), Me = (e, r) => {
|
|
4387
4415
|
if (e.example !== void 0)
|
|
4388
4416
|
return e.example;
|
|
4389
4417
|
if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
|
|
@@ -4394,13 +4422,13 @@ const Fs = ({
|
|
|
4394
4422
|
if (e.type === "object" && e.properties) {
|
|
4395
4423
|
const t = {};
|
|
4396
4424
|
for (const [o, i] of Object.entries(e.properties))
|
|
4397
|
-
typeof i == "object" && (t[o] =
|
|
4425
|
+
typeof i == "object" && (t[o] = Me(i, o));
|
|
4398
4426
|
return t;
|
|
4399
4427
|
}
|
|
4400
4428
|
if (e.type === "array")
|
|
4401
4429
|
return Array.isArray(e.items) ? e.items.map(
|
|
4402
|
-
(t) =>
|
|
4403
|
-
) : e.items ? [
|
|
4430
|
+
(t) => Me(t)
|
|
4431
|
+
) : e.items ? [Me(e.items)] : [];
|
|
4404
4432
|
if (e.enum)
|
|
4405
4433
|
return e.enum[0];
|
|
4406
4434
|
switch (e.type) {
|
|
@@ -4419,31 +4447,31 @@ const Fs = ({
|
|
|
4419
4447
|
default:
|
|
4420
4448
|
return {};
|
|
4421
4449
|
}
|
|
4422
|
-
},
|
|
4450
|
+
}, Xs = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Zs = (e) => e ? {
|
|
4423
4451
|
"application/json": "json",
|
|
4424
4452
|
"application/xml": "xml",
|
|
4425
4453
|
"application/x-yaml": "yaml",
|
|
4426
4454
|
"text/csv": "csv",
|
|
4427
4455
|
"application/javascript": "javascript",
|
|
4428
4456
|
"application/graphql": "graphql"
|
|
4429
|
-
}[e] ?? "plain" : "plain",
|
|
4457
|
+
}[e] ?? "plain" : "plain", Eo = ({
|
|
4430
4458
|
content: e,
|
|
4431
4459
|
description: r,
|
|
4432
4460
|
onExampleChange: t
|
|
4433
4461
|
}) => {
|
|
4434
4462
|
var m;
|
|
4435
|
-
const [o, i] =
|
|
4463
|
+
const [o, i] = he(0), [s, n] = he(0), a = Array.isArray(e) && e.length === 1 ? e[0] : e[o], l = (a == null ? void 0 : a.examples) ?? [], c = l[s], f = yo(() => {
|
|
4436
4464
|
if (c)
|
|
4437
4465
|
return "value" in c ? c.value : c;
|
|
4438
4466
|
if (a != null && a.schema)
|
|
4439
|
-
return
|
|
4467
|
+
return Me(a.schema);
|
|
4440
4468
|
}, [c, a == null ? void 0 : a.schema]);
|
|
4441
|
-
|
|
4469
|
+
Cr(() => {
|
|
4442
4470
|
f && (t == null || t(f));
|
|
4443
4471
|
}, [f, t]);
|
|
4444
|
-
const g =
|
|
4472
|
+
const g = Xs(f), b = Zs(a == null ? void 0 : a.mediaType);
|
|
4445
4473
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4446
|
-
/* @__PURE__ */ u.jsxs(
|
|
4474
|
+
/* @__PURE__ */ u.jsxs(qo, { className: "p-0", children: [
|
|
4447
4475
|
c != null && c.externalValue ? /* @__PURE__ */ u.jsx("div", { className: "p-2", children: /* @__PURE__ */ u.jsx(
|
|
4448
4476
|
"a",
|
|
4449
4477
|
{
|
|
@@ -4453,8 +4481,8 @@ const Fs = ({
|
|
|
4453
4481
|
className: "text-xs text-primary hover:underline",
|
|
4454
4482
|
children: "View External Example →"
|
|
4455
4483
|
}
|
|
4456
|
-
) }) : /* @__PURE__ */ u.jsx(
|
|
4457
|
-
|
|
4484
|
+
) }) : /* @__PURE__ */ u.jsx(ko, { children: /* @__PURE__ */ u.jsx(
|
|
4485
|
+
go,
|
|
4458
4486
|
{
|
|
4459
4487
|
language: b,
|
|
4460
4488
|
noBackground: !0,
|
|
@@ -4464,11 +4492,11 @@ const Fs = ({
|
|
|
4464
4492
|
) }),
|
|
4465
4493
|
(c == null ? void 0 : c.description) && /* @__PURE__ */ u.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
|
|
4466
4494
|
] }),
|
|
4467
|
-
/* @__PURE__ */ u.jsxs(
|
|
4495
|
+
/* @__PURE__ */ u.jsxs(Ro, { className: "text-xs p-0 divide-y divide-border", children: [
|
|
4468
4496
|
r && /* @__PURE__ */ u.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: r }),
|
|
4469
4497
|
(l.length !== 0 || e.length !== 0) && /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
|
|
4470
4498
|
/* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ u.jsx(
|
|
4471
|
-
|
|
4499
|
+
ot,
|
|
4472
4500
|
{
|
|
4473
4501
|
className: "max-w-[200px]",
|
|
4474
4502
|
value: o.toString(),
|
|
@@ -4480,7 +4508,7 @@ const Fs = ({
|
|
|
4480
4508
|
}
|
|
4481
4509
|
) : /* @__PURE__ */ u.jsx("span", { className: "font-mono text-[11px]", children: (m = e[0]) == null ? void 0 : m.mediaType }) }),
|
|
4482
4510
|
l.length > 1 && /* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ u.jsx(
|
|
4483
|
-
|
|
4511
|
+
ot,
|
|
4484
4512
|
{
|
|
4485
4513
|
className: "max-w-[180px]",
|
|
4486
4514
|
value: s.toString(),
|
|
@@ -4494,35 +4522,35 @@ const Fs = ({
|
|
|
4494
4522
|
] })
|
|
4495
4523
|
] })
|
|
4496
4524
|
] });
|
|
4497
|
-
},
|
|
4525
|
+
}, el = ({
|
|
4498
4526
|
content: e,
|
|
4499
4527
|
onExampleChange: r
|
|
4500
|
-
}) => e.length === 0 ? null : /* @__PURE__ */ u.jsxs(
|
|
4501
|
-
/* @__PURE__ */ u.jsx(
|
|
4502
|
-
/* @__PURE__ */ u.jsx(
|
|
4503
|
-
] }),
|
|
4504
|
-
|
|
4528
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ u.jsxs(Ar, { children: [
|
|
4529
|
+
/* @__PURE__ */ u.jsx(Ir, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
|
|
4530
|
+
/* @__PURE__ */ u.jsx(Eo, { content: e, onExampleChange: r })
|
|
4531
|
+
] }), tl = ({ response: e }) => /* @__PURE__ */ u.jsx(et.Content, { value: e.statusCode, children: /* @__PURE__ */ u.jsx(
|
|
4532
|
+
Eo,
|
|
4505
4533
|
{
|
|
4506
4534
|
content: e.content ?? [],
|
|
4507
4535
|
description: e.description ?? void 0
|
|
4508
4536
|
}
|
|
4509
|
-
) }),
|
|
4537
|
+
) }), rl = ({
|
|
4510
4538
|
responses: e,
|
|
4511
4539
|
selectedResponse: r,
|
|
4512
4540
|
onSelectResponse: t
|
|
4513
4541
|
}) => {
|
|
4514
4542
|
var o;
|
|
4515
|
-
return /* @__PURE__ */ u.jsx(
|
|
4516
|
-
|
|
4543
|
+
return /* @__PURE__ */ u.jsx(Ar, { children: /* @__PURE__ */ u.jsxs(
|
|
4544
|
+
et.Root,
|
|
4517
4545
|
{
|
|
4518
4546
|
defaultValue: (o = e[0]) == null ? void 0 : o.statusCode,
|
|
4519
4547
|
value: r,
|
|
4520
4548
|
onValueChange: (i) => t(i),
|
|
4521
4549
|
children: [
|
|
4522
|
-
/* @__PURE__ */ u.jsxs(
|
|
4550
|
+
/* @__PURE__ */ u.jsxs(Ir, { className: "text-xs flex flex-col gap-2 pb-0", children: [
|
|
4523
4551
|
/* @__PURE__ */ u.jsx("span", { className: "font-mono", children: "Example Responses" }),
|
|
4524
|
-
/* @__PURE__ */ u.jsx(
|
|
4525
|
-
|
|
4552
|
+
/* @__PURE__ */ u.jsx(et.List, { className: "flex gap-2", children: e.map((i) => /* @__PURE__ */ u.jsx(
|
|
4553
|
+
et.Trigger,
|
|
4526
4554
|
{
|
|
4527
4555
|
value: i.statusCode,
|
|
4528
4556
|
className: se(
|
|
@@ -4535,11 +4563,11 @@ const Fs = ({
|
|
|
4535
4563
|
i.statusCode
|
|
4536
4564
|
)) })
|
|
4537
4565
|
] }),
|
|
4538
|
-
e.map((i) => /* @__PURE__ */ u.jsx(
|
|
4566
|
+
e.map((i) => /* @__PURE__ */ u.jsx(tl, { response: i }, i.statusCode))
|
|
4539
4567
|
]
|
|
4540
4568
|
}
|
|
4541
4569
|
) });
|
|
4542
|
-
},
|
|
4570
|
+
}, nl = (e, r) => {
|
|
4543
4571
|
let t;
|
|
4544
4572
|
switch (r) {
|
|
4545
4573
|
case "shell":
|
|
@@ -4580,7 +4608,7 @@ const Fs = ({
|
|
|
4580
4608
|
break;
|
|
4581
4609
|
}
|
|
4582
4610
|
return t ? t[0] : "";
|
|
4583
|
-
},
|
|
4611
|
+
}, ol = Ve(
|
|
4584
4612
|
/* GraphQL */
|
|
4585
4613
|
`
|
|
4586
4614
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -4592,7 +4620,7 @@ const Fs = ({
|
|
|
4592
4620
|
}
|
|
4593
4621
|
}
|
|
4594
4622
|
`
|
|
4595
|
-
),
|
|
4623
|
+
), al = [
|
|
4596
4624
|
{ value: "shell", label: "cURL" },
|
|
4597
4625
|
{ value: "js", label: "JavaScript" },
|
|
4598
4626
|
{ value: "python", label: "Python" },
|
|
@@ -4604,18 +4632,18 @@ const Fs = ({
|
|
|
4604
4632
|
{ value: "php", label: "PHP" },
|
|
4605
4633
|
{ value: "ruby", label: "Ruby" },
|
|
4606
4634
|
{ value: "swift", label: "Swift" }
|
|
4607
|
-
],
|
|
4635
|
+
], il = ({
|
|
4608
4636
|
operation: e,
|
|
4609
4637
|
selectedResponse: r,
|
|
4610
4638
|
onSelectResponse: t
|
|
4611
4639
|
}) => {
|
|
4612
|
-
var
|
|
4613
|
-
const { input: o, type: i, options: s } =
|
|
4614
|
-
|
|
4640
|
+
var S;
|
|
4641
|
+
const { input: o, type: i, options: s } = Nr(), n = nt(ol, { input: o, type: i }), a = Tr(n), l = uo(e.method), [c, f] = oa(), [, g] = po(), [b, m] = he(), j = c.get("lang") ?? (s == null ? void 0 : s.examplesLanguage) ?? "shell", v = (S = e.requestBody) == null ? void 0 : S.content, p = /* @__PURE__ */ u.jsx(
|
|
4642
|
+
sa,
|
|
4615
4643
|
{
|
|
4616
4644
|
path: e.path,
|
|
4617
4645
|
renderParam: ({ name: x }) => /* @__PURE__ */ u.jsx(
|
|
4618
|
-
|
|
4646
|
+
so,
|
|
4619
4647
|
{
|
|
4620
4648
|
name: x,
|
|
4621
4649
|
backgroundOpacity: "0",
|
|
@@ -4624,9 +4652,9 @@ const Fs = ({
|
|
|
4624
4652
|
}
|
|
4625
4653
|
)
|
|
4626
4654
|
}
|
|
4627
|
-
), { selectedServer: h } =
|
|
4655
|
+
), { selectedServer: h } = Pr(a.data.schema.servers), y = yo(() => {
|
|
4628
4656
|
var A;
|
|
4629
|
-
const x = b ?? ((A = v == null ? void 0 : v[0]) != null && A.schema ?
|
|
4657
|
+
const x = b ?? ((A = v == null ? void 0 : v[0]) != null && A.schema ? Me(v[0].schema) : void 0), N = new Ds({
|
|
4630
4658
|
method: e.method.toLocaleUpperCase(),
|
|
4631
4659
|
url: h + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
4632
4660
|
postData: x ? {
|
|
@@ -4640,7 +4668,7 @@ const Fs = ({
|
|
|
4640
4668
|
headersSize: 0,
|
|
4641
4669
|
bodySize: 0
|
|
4642
4670
|
});
|
|
4643
|
-
return
|
|
4671
|
+
return nl(N, j);
|
|
4644
4672
|
}, [
|
|
4645
4673
|
b,
|
|
4646
4674
|
v,
|
|
@@ -4648,23 +4676,23 @@ const Fs = ({
|
|
|
4648
4676
|
e.path,
|
|
4649
4677
|
h,
|
|
4650
4678
|
j
|
|
4651
|
-
]), [
|
|
4679
|
+
]), [O, T] = Ks({ rootMargin: "200px 0px 200px 0px" }), d = T && (e.extensions["x-explorer-enabled"] === !0 || e.extensions["x-zudoku-playground-enabled"] === !0 || e.extensions["x-explorer-enabled"] === void 0 && e.extensions["x-zudoku-playground-enabled"] === void 0 && !(s != null && s.disablePlayground));
|
|
4652
4680
|
return /* @__PURE__ */ u.jsxs(
|
|
4653
4681
|
"aside",
|
|
4654
4682
|
{
|
|
4655
|
-
ref:
|
|
4683
|
+
ref: O,
|
|
4656
4684
|
className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4",
|
|
4657
4685
|
"data-pagefind-ignore": "all",
|
|
4658
4686
|
children: [
|
|
4659
|
-
/* @__PURE__ */ u.jsxs(
|
|
4660
|
-
/* @__PURE__ */ u.jsxs(
|
|
4687
|
+
/* @__PURE__ */ u.jsxs(Ar, { children: [
|
|
4688
|
+
/* @__PURE__ */ u.jsxs(Ir, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
|
|
4661
4689
|
/* @__PURE__ */ u.jsxs("span", { className: "font-mono break-words leading-6", children: [
|
|
4662
4690
|
/* @__PURE__ */ u.jsx("span", { className: se("font-semibold", l), children: e.method.toLocaleUpperCase() }),
|
|
4663
4691
|
" ",
|
|
4664
4692
|
p
|
|
4665
4693
|
] }),
|
|
4666
4694
|
d && /* @__PURE__ */ u.jsx(
|
|
4667
|
-
|
|
4695
|
+
Ys,
|
|
4668
4696
|
{
|
|
4669
4697
|
servers: a.data.schema.servers.map((x) => x.url),
|
|
4670
4698
|
operation: e,
|
|
@@ -4673,8 +4701,8 @@ const Fs = ({
|
|
|
4673
4701
|
)
|
|
4674
4702
|
] }),
|
|
4675
4703
|
T && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
4676
|
-
/* @__PURE__ */ u.jsx(
|
|
4677
|
-
|
|
4704
|
+
/* @__PURE__ */ u.jsx(qo, { className: "p-0", children: /* @__PURE__ */ u.jsx(ko, { children: /* @__PURE__ */ u.jsx(
|
|
4705
|
+
go,
|
|
4678
4706
|
{
|
|
4679
4707
|
language: j,
|
|
4680
4708
|
noBackground: !0,
|
|
@@ -4682,10 +4710,10 @@ const Fs = ({
|
|
|
4682
4710
|
code: y
|
|
4683
4711
|
}
|
|
4684
4712
|
) }) }),
|
|
4685
|
-
/* @__PURE__ */ u.jsxs(
|
|
4713
|
+
/* @__PURE__ */ u.jsxs(Ro, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
|
|
4686
4714
|
/* @__PURE__ */ u.jsx("span", { children: "Show example in" }),
|
|
4687
4715
|
/* @__PURE__ */ u.jsx(
|
|
4688
|
-
|
|
4716
|
+
ot,
|
|
4689
4717
|
{
|
|
4690
4718
|
className: "self-start max-w-[150px]",
|
|
4691
4719
|
value: j,
|
|
@@ -4694,21 +4722,21 @@ const Fs = ({
|
|
|
4694
4722
|
f((N) => (N.set("lang", x.target.value), N));
|
|
4695
4723
|
});
|
|
4696
4724
|
},
|
|
4697
|
-
options:
|
|
4725
|
+
options: al
|
|
4698
4726
|
}
|
|
4699
4727
|
)
|
|
4700
4728
|
] })
|
|
4701
4729
|
] })
|
|
4702
4730
|
] }),
|
|
4703
4731
|
T && v && /* @__PURE__ */ u.jsx(
|
|
4704
|
-
|
|
4732
|
+
el,
|
|
4705
4733
|
{
|
|
4706
4734
|
content: v,
|
|
4707
4735
|
onExampleChange: m
|
|
4708
4736
|
}
|
|
4709
4737
|
),
|
|
4710
4738
|
T && e.responses.length > 0 && /* @__PURE__ */ u.jsx(
|
|
4711
|
-
|
|
4739
|
+
rl,
|
|
4712
4740
|
{
|
|
4713
4741
|
selectedResponse: r,
|
|
4714
4742
|
onSelectResponse: t,
|
|
@@ -4718,15 +4746,15 @@ const Fs = ({
|
|
|
4718
4746
|
]
|
|
4719
4747
|
}
|
|
4720
4748
|
);
|
|
4721
|
-
},
|
|
4722
|
-
AND: /* @__PURE__ */ u.jsx(
|
|
4723
|
-
OR: /* @__PURE__ */ u.jsx(
|
|
4724
|
-
ONE: /* @__PURE__ */ u.jsx(
|
|
4725
|
-
},
|
|
4749
|
+
}, sl = {
|
|
4750
|
+
AND: /* @__PURE__ */ u.jsx(Yo, { size: 16, className: "fill-card" }),
|
|
4751
|
+
OR: /* @__PURE__ */ u.jsx(Qo, { size: 16, className: "fill-card" }),
|
|
4752
|
+
ONE: /* @__PURE__ */ u.jsx(Ko, { size: 14, className: "fill-card" })
|
|
4753
|
+
}, ll = {
|
|
4726
4754
|
AND: "text-green-500 dark:text-green-300/60",
|
|
4727
4755
|
OR: "text-blue-400 dark:text-blue-500",
|
|
4728
4756
|
ONE: "text-purple-500 dark:text-purple-300/60"
|
|
4729
|
-
},
|
|
4757
|
+
}, cl = ({
|
|
4730
4758
|
type: e,
|
|
4731
4759
|
isOpen: r,
|
|
4732
4760
|
className: t
|
|
@@ -4734,13 +4762,13 @@ const Fs = ({
|
|
|
4734
4762
|
"div",
|
|
4735
4763
|
{
|
|
4736
4764
|
className: se(
|
|
4737
|
-
|
|
4765
|
+
ll[e],
|
|
4738
4766
|
"relative text-sm flex py-2",
|
|
4739
4767
|
"before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
|
|
4740
4768
|
t
|
|
4741
4769
|
),
|
|
4742
4770
|
children: /* @__PURE__ */ u.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
|
|
4743
|
-
|
|
4771
|
+
sl[e],
|
|
4744
4772
|
/* @__PURE__ */ u.jsx(
|
|
4745
4773
|
"div",
|
|
4746
4774
|
{
|
|
@@ -4748,13 +4776,13 @@ const Fs = ({
|
|
|
4748
4776
|
"translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
|
|
4749
4777
|
!r && "-rotate-90"
|
|
4750
4778
|
),
|
|
4751
|
-
children: /* @__PURE__ */ u.jsx(
|
|
4779
|
+
children: /* @__PURE__ */ u.jsx(io, { size: 16 })
|
|
4752
4780
|
}
|
|
4753
4781
|
)
|
|
4754
4782
|
] })
|
|
4755
4783
|
}
|
|
4756
|
-
),
|
|
4757
|
-
const [r, t] =
|
|
4784
|
+
), ul = (e) => {
|
|
4785
|
+
const [r, t] = he(!0);
|
|
4758
4786
|
return /* @__PURE__ */ u.jsxs(
|
|
4759
4787
|
xe.Root,
|
|
4760
4788
|
{
|
|
@@ -4762,31 +4790,31 @@ const Fs = ({
|
|
|
4762
4790
|
onOpenChange: () => t((o) => !o),
|
|
4763
4791
|
className: "group",
|
|
4764
4792
|
children: [
|
|
4765
|
-
/* @__PURE__ */ u.jsx(xe.Trigger, { children: /* @__PURE__ */ u.jsx(
|
|
4793
|
+
/* @__PURE__ */ u.jsx(xe.Trigger, { children: /* @__PURE__ */ u.jsx(cl, { type: e.type, isOpen: r }) }),
|
|
4766
4794
|
!r && /* @__PURE__ */ u.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
|
|
4767
|
-
/* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx(
|
|
4795
|
+
/* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx(Je, { schema: e.schema, level: e.level + 1 }) })
|
|
4768
4796
|
]
|
|
4769
4797
|
}
|
|
4770
4798
|
);
|
|
4771
|
-
},
|
|
4799
|
+
}, fl = {
|
|
4772
4800
|
AND: "All of",
|
|
4773
4801
|
OR: "Any of",
|
|
4774
4802
|
ONE: "One of"
|
|
4775
|
-
},
|
|
4803
|
+
}, pl = ({
|
|
4776
4804
|
schemas: e,
|
|
4777
4805
|
type: r,
|
|
4778
4806
|
isOpen: t,
|
|
4779
4807
|
level: o,
|
|
4780
4808
|
toggleOpen: i
|
|
4781
|
-
}) => /* @__PURE__ */ u.jsx(xe.Root, { open: t, onOpenChange: i, asChild: !0, children: /* @__PURE__ */ u.jsxs(
|
|
4809
|
+
}) => /* @__PURE__ */ u.jsx(xe.Root, { open: t, onOpenChange: i, asChild: !0, children: /* @__PURE__ */ u.jsxs(ve, { className: "px-6", children: [
|
|
4782
4810
|
/* @__PURE__ */ u.jsxs(xe.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
|
|
4783
|
-
t ? /* @__PURE__ */ u.jsx(
|
|
4784
|
-
/* @__PURE__ */ u.jsx("span", { children:
|
|
4811
|
+
t ? /* @__PURE__ */ u.jsx(Xo, { size: 14 }) : /* @__PURE__ */ u.jsx(Zo, { size: 14 }),
|
|
4812
|
+
/* @__PURE__ */ u.jsx("span", { children: fl[r] })
|
|
4785
4813
|
] }),
|
|
4786
4814
|
/* @__PURE__ */ u.jsx(xe.Content, { className: "pb-4", children: e.map((s, n) => (
|
|
4787
4815
|
// eslint-disable-next-line react/no-array-index-key
|
|
4788
4816
|
/* @__PURE__ */ u.jsx(
|
|
4789
|
-
|
|
4817
|
+
ul,
|
|
4790
4818
|
{
|
|
4791
4819
|
type: r,
|
|
4792
4820
|
schema: s,
|
|
@@ -4795,19 +4823,19 @@ const Fs = ({
|
|
|
4795
4823
|
n
|
|
4796
4824
|
)
|
|
4797
4825
|
)) })
|
|
4798
|
-
] }) }),
|
|
4826
|
+
] }) }), dl = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), Or = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), hl = {
|
|
4799
4827
|
allOf: "AND",
|
|
4800
4828
|
anyOf: "OR",
|
|
4801
4829
|
oneOf: "ONE"
|
|
4802
|
-
},
|
|
4830
|
+
}, br = (e) => e === Sa, Ao = ({
|
|
4803
4831
|
schema: e,
|
|
4804
4832
|
level: r
|
|
4805
4833
|
}) => {
|
|
4806
|
-
const [t, o] =
|
|
4807
|
-
for (const [s, n] of
|
|
4834
|
+
const [t, o] = he(!0), i = ga(() => o((s) => !s), []);
|
|
4835
|
+
for (const [s, n] of La(hl))
|
|
4808
4836
|
if (e[s])
|
|
4809
4837
|
return /* @__PURE__ */ u.jsx(
|
|
4810
|
-
|
|
4838
|
+
pl,
|
|
4811
4839
|
{
|
|
4812
4840
|
schemas: e[s],
|
|
4813
4841
|
type: n,
|
|
@@ -4816,10 +4844,10 @@ const Fs = ({
|
|
|
4816
4844
|
level: r
|
|
4817
4845
|
}
|
|
4818
4846
|
);
|
|
4819
|
-
},
|
|
4820
|
-
/* @__PURE__ */ u.jsx(
|
|
4847
|
+
}, no = () => /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-1.5 italic text-xs text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
|
|
4848
|
+
/* @__PURE__ */ u.jsx(ra, { size: 13 }),
|
|
4821
4849
|
/* @__PURE__ */ u.jsx("span", { children: "circular" })
|
|
4822
|
-
] }),
|
|
4850
|
+
] }), yl = ({
|
|
4823
4851
|
name: e,
|
|
4824
4852
|
schema: r,
|
|
4825
4853
|
group: t,
|
|
@@ -4827,16 +4855,16 @@ const Fs = ({
|
|
|
4827
4855
|
defaultOpen: i = !1,
|
|
4828
4856
|
showCollapseButton: s = !0
|
|
4829
4857
|
}) => {
|
|
4830
|
-
const [n, a] =
|
|
4831
|
-
return
|
|
4858
|
+
const [n, a] = he(i);
|
|
4859
|
+
return br(r) ? /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsx("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "space-x-2", children: [
|
|
4832
4860
|
/* @__PURE__ */ u.jsx("code", { children: e }),
|
|
4833
|
-
/* @__PURE__ */ u.jsx(
|
|
4834
|
-
/* @__PURE__ */ u.jsx(
|
|
4861
|
+
/* @__PURE__ */ u.jsx(we, { schema: r }),
|
|
4862
|
+
/* @__PURE__ */ u.jsx(no, {})
|
|
4835
4863
|
] }) }) }) : /* @__PURE__ */ u.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-2.5 justify-between text-sm", children: [
|
|
4836
|
-
/* @__PURE__ */ u.jsxs("div", { className: "
|
|
4837
|
-
/* @__PURE__ */ u.jsx(
|
|
4864
|
+
/* @__PURE__ */ u.jsxs("div", { className: "space-x-2", children: [
|
|
4865
|
+
/* @__PURE__ */ u.jsx(it, { asChild: !0, children: /* @__PURE__ */ u.jsx("code", { children: e }) }),
|
|
4838
4866
|
/* @__PURE__ */ u.jsx(
|
|
4839
|
-
|
|
4867
|
+
we,
|
|
4840
4868
|
{
|
|
4841
4869
|
schema: r,
|
|
4842
4870
|
extraItems: [
|
|
@@ -4844,90 +4872,86 @@ const Fs = ({
|
|
|
4844
4872
|
]
|
|
4845
4873
|
}
|
|
4846
4874
|
),
|
|
4847
|
-
r.type === "array" && "items" in r &&
|
|
4875
|
+
r.type === "array" && "items" in r && br(r.items) && /* @__PURE__ */ u.jsx(no, {})
|
|
4848
4876
|
] }),
|
|
4849
4877
|
r.description && /* @__PURE__ */ u.jsx(
|
|
4850
|
-
|
|
4878
|
+
Le,
|
|
4851
4879
|
{
|
|
4852
|
-
className: se(
|
|
4880
|
+
className: se(ze, "text-sm leading-normal line-clamp-4"),
|
|
4853
4881
|
content: r.description
|
|
4854
4882
|
}
|
|
4855
4883
|
),
|
|
4856
|
-
r.enum && /* @__PURE__ */ u.jsx(
|
|
4857
|
-
|
|
4884
|
+
r.type === "array" && "items" in r && r.items.enum && /* @__PURE__ */ u.jsx(Ne, { values: r.items.enum }),
|
|
4885
|
+
r.enum && /* @__PURE__ */ u.jsx(Ne, { values: r.enum }),
|
|
4886
|
+
(Or(r) || dl(r)) && /* @__PURE__ */ u.jsxs(
|
|
4858
4887
|
xe.Root,
|
|
4859
4888
|
{
|
|
4860
4889
|
defaultOpen: i,
|
|
4861
4890
|
open: n,
|
|
4862
4891
|
onOpenChange: () => a(!n),
|
|
4863
4892
|
children: [
|
|
4864
|
-
s && /* @__PURE__ */ u.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
|
|
4865
|
-
n ? /* @__PURE__ */ u.jsx(
|
|
4893
|
+
s && /* @__PURE__ */ u.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(mo, { variant: "expand", size: "sm", className: "h-7", children: [
|
|
4894
|
+
n ? /* @__PURE__ */ u.jsx(ea, { size: 12 }) : /* @__PURE__ */ u.jsx(ta, { size: 12 }),
|
|
4866
4895
|
n ? "Hide properties" : "Show properties"
|
|
4867
4896
|
] }) }),
|
|
4868
|
-
/* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx("div", { className: "mt-2", children:
|
|
4897
|
+
/* @__PURE__ */ u.jsx(xe.Content, { children: /* @__PURE__ */ u.jsx("div", { className: "mt-2", children: Or(r) ? /* @__PURE__ */ u.jsx(Ao, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ u.jsx(Je, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !br(r.items) && /* @__PURE__ */ u.jsx(Je, { schema: r.items, level: o + 1 }) }) })
|
|
4869
4898
|
]
|
|
4870
4899
|
}
|
|
4871
4900
|
)
|
|
4872
4901
|
] }) });
|
|
4873
|
-
},
|
|
4902
|
+
}, _e = (e) => e && /* @__PURE__ */ u.jsx(
|
|
4903
|
+
Le,
|
|
4904
|
+
{
|
|
4905
|
+
className: se(ze, "text-sm leading-normal line-clamp-4"),
|
|
4906
|
+
content: e
|
|
4907
|
+
}
|
|
4908
|
+
), Je = ({
|
|
4874
4909
|
schema: e,
|
|
4875
4910
|
level: r = 0,
|
|
4876
4911
|
defaultOpen: t = !1
|
|
4877
4912
|
}) => {
|
|
4878
4913
|
if (!e || Object.keys(e).length === 0)
|
|
4879
|
-
return /* @__PURE__ */ u.jsx(
|
|
4914
|
+
return /* @__PURE__ */ u.jsx(ve, { className: "p-4", children: /* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
|
|
4880
4915
|
const o = (i, s) => {
|
|
4881
|
-
if (
|
|
4882
|
-
return /* @__PURE__ */ u.jsx(
|
|
4883
|
-
if (i.type
|
|
4916
|
+
if (Or(i))
|
|
4917
|
+
return /* @__PURE__ */ u.jsx(Ao, { schema: i, level: s });
|
|
4918
|
+
if (Array.isArray(i.type))
|
|
4919
|
+
return /* @__PURE__ */ u.jsxs(ve, { className: "p-4 space-y-2", children: [
|
|
4920
|
+
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ u.jsx(we, { schema: i }) }),
|
|
4921
|
+
i.enum && /* @__PURE__ */ u.jsx(Ne, { values: i.enum }),
|
|
4922
|
+
_e(i.description)
|
|
4923
|
+
] });
|
|
4924
|
+
if (i.type === "array" && typeof i.items == "object") {
|
|
4884
4925
|
const n = i.items;
|
|
4885
|
-
return
|
|
4886
|
-
/* @__PURE__ */ u.
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
className: se(
|
|
4894
|
-
Ne,
|
|
4895
|
-
"text-sm leading-normal line-clamp-4"
|
|
4896
|
-
),
|
|
4897
|
-
content: i.description
|
|
4898
|
-
}
|
|
4899
|
-
)
|
|
4900
|
-
] }) : n.type === "object" ? /* @__PURE__ */ u.jsxs(be, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
|
|
4926
|
+
return n.enum ? /* @__PURE__ */ u.jsxs(ve, { className: "p-4", children: [
|
|
4927
|
+
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ u.jsx(we, { schema: i }) }),
|
|
4928
|
+
/* @__PURE__ */ u.jsx(Ne, { values: n.enum }),
|
|
4929
|
+
_e(i.description)
|
|
4930
|
+
] }) : typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ u.jsxs(ve, { className: "p-4", children: [
|
|
4931
|
+
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ u.jsx(we, { schema: i }) }),
|
|
4932
|
+
_e(i.description)
|
|
4933
|
+
] }) : n.type === "object" ? /* @__PURE__ */ u.jsxs(ve, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
|
|
4901
4934
|
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: "object[]" }),
|
|
4902
4935
|
o(n, s + 1)
|
|
4903
4936
|
] }) : o(n, s + 1);
|
|
4904
4937
|
}
|
|
4905
4938
|
if (i.type === "object" && (!i.properties || Object.keys(i.properties).length === 0))
|
|
4906
|
-
return /* @__PURE__ */ u.jsxs(
|
|
4939
|
+
return /* @__PURE__ */ u.jsxs(ve, { className: "p-4 flex gap-2 items-baseline", children: [
|
|
4907
4940
|
"name" in i && /* @__PURE__ */ u.jsx(u.Fragment, { children: i.name }),
|
|
4908
|
-
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
4909
|
-
i.description
|
|
4910
|
-
we,
|
|
4911
|
-
{
|
|
4912
|
-
className: se(
|
|
4913
|
-
Ne,
|
|
4914
|
-
"text-sm leading-normal line-clamp-4"
|
|
4915
|
-
),
|
|
4916
|
-
content: i.description
|
|
4917
|
-
}
|
|
4918
|
-
)
|
|
4941
|
+
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ u.jsx(we, { schema: i }) }),
|
|
4942
|
+
_e(i.description)
|
|
4919
4943
|
] });
|
|
4920
4944
|
if (i.properties) {
|
|
4921
|
-
const n =
|
|
4945
|
+
const n = vo(
|
|
4922
4946
|
Object.entries(i.properties),
|
|
4923
4947
|
([l, c]) => {
|
|
4924
4948
|
var f;
|
|
4925
4949
|
return c.deprecated ? "deprecated" : (f = i.required) != null && f.includes(l) ? "required" : "optional";
|
|
4926
4950
|
}
|
|
4927
4951
|
), a = ["required", "optional", "deprecated"];
|
|
4928
|
-
return /* @__PURE__ */ u.jsx(
|
|
4952
|
+
return /* @__PURE__ */ u.jsx(ve, { className: "divide-y overflow-hidden", children: a.map(
|
|
4929
4953
|
(l) => n[l] && /* @__PURE__ */ u.jsx("ul", { className: "divide-y", children: n[l].map(([c, f]) => /* @__PURE__ */ u.jsx(
|
|
4930
|
-
|
|
4954
|
+
yl,
|
|
4931
4955
|
{
|
|
4932
4956
|
name: c,
|
|
4933
4957
|
schema: f,
|
|
@@ -4939,38 +4963,30 @@ const Fs = ({
|
|
|
4939
4963
|
)) }, l)
|
|
4940
4964
|
) });
|
|
4941
4965
|
}
|
|
4942
|
-
return typeof i.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(i.type) ? /* @__PURE__ */ u.jsxs(
|
|
4943
|
-
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children:
|
|
4944
|
-
i.
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
"text-sm leading-normal line-clamp-4"
|
|
4950
|
-
),
|
|
4951
|
-
content: i.description
|
|
4952
|
-
}
|
|
4953
|
-
)
|
|
4954
|
-
] }) : i.additionalProperties ? /* @__PURE__ */ u.jsxs(be, { className: "my-2", children: [
|
|
4955
|
-
/* @__PURE__ */ u.jsx(xa, { children: /* @__PURE__ */ u.jsx(ja, { children: "Additional Properties:" }) }),
|
|
4956
|
-
/* @__PURE__ */ u.jsx($a, { children: o(
|
|
4966
|
+
return typeof i.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(i.type) ? /* @__PURE__ */ u.jsxs(ve, { className: "p-4 space-y-2", children: [
|
|
4967
|
+
/* @__PURE__ */ u.jsx("span", { className: "text-sm text-muted-foreground", children: /* @__PURE__ */ u.jsx(we, { schema: i }) }),
|
|
4968
|
+
i.enum && /* @__PURE__ */ u.jsx(Ne, { values: i.enum }),
|
|
4969
|
+
_e(i.description)
|
|
4970
|
+
] }) : i.additionalProperties ? /* @__PURE__ */ u.jsxs(ve, { className: "my-2", children: [
|
|
4971
|
+
/* @__PURE__ */ u.jsx(ka, { children: /* @__PURE__ */ u.jsx(qa, { children: "Additional Properties:" }) }),
|
|
4972
|
+
/* @__PURE__ */ u.jsx(Ra, { children: o(
|
|
4957
4973
|
i.additionalProperties,
|
|
4958
4974
|
s + 1
|
|
4959
4975
|
) })
|
|
4960
4976
|
] }) : null;
|
|
4961
4977
|
};
|
|
4962
4978
|
return o(e, r);
|
|
4963
|
-
},
|
|
4979
|
+
}, ml = ["path", "query", "header", "cookie"], gl = ({
|
|
4964
4980
|
operationFragment: e,
|
|
4965
4981
|
serverUrl: r
|
|
4966
4982
|
}) => {
|
|
4967
4983
|
var a, l, c;
|
|
4968
|
-
const t =
|
|
4984
|
+
const t = Ua(vl, e), o = vo(
|
|
4969
4985
|
t.parameters ?? [],
|
|
4970
4986
|
(f) => f.in
|
|
4971
|
-
), i = t.responses.at(0), [s, n] =
|
|
4987
|
+
), i = t.responses.at(0), [s, n] = he(i == null ? void 0 : i.statusCode);
|
|
4972
4988
|
return /* @__PURE__ */ u.jsxs("div", { className: "border-b-2 mb-16 pb-16", children: [
|
|
4973
|
-
t.deprecated && /* @__PURE__ */ u.jsx(
|
|
4989
|
+
t.deprecated && /* @__PURE__ */ u.jsx(Ma, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
4974
4990
|
/* @__PURE__ */ u.jsxs(
|
|
4975
4991
|
"div",
|
|
4976
4992
|
{
|
|
@@ -4980,7 +4996,7 @@ const Fs = ({
|
|
|
4980
4996
|
),
|
|
4981
4997
|
children: [
|
|
4982
4998
|
/* @__PURE__ */ u.jsx(
|
|
4983
|
-
|
|
4999
|
+
He,
|
|
4984
5000
|
{
|
|
4985
5001
|
level: 2,
|
|
4986
5002
|
id: t.slug,
|
|
@@ -4990,25 +5006,25 @@ const Fs = ({
|
|
|
4990
5006
|
}
|
|
4991
5007
|
),
|
|
4992
5008
|
/* @__PURE__ */ u.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
4993
|
-
/* @__PURE__ */ u.jsx("span", { className:
|
|
4994
|
-
/* @__PURE__ */ u.jsxs(
|
|
4995
|
-
r && /* @__PURE__ */ u.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: r }),
|
|
5009
|
+
/* @__PURE__ */ u.jsx("span", { className: uo(t.method), children: t.method.toUpperCase() }),
|
|
5010
|
+
/* @__PURE__ */ u.jsxs(it, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
5011
|
+
r && /* @__PURE__ */ u.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: r.replace(/\/$/, "") }),
|
|
4996
5012
|
/* @__PURE__ */ u.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: t.path })
|
|
4997
5013
|
] })
|
|
4998
5014
|
] }),
|
|
4999
5015
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
5000
5016
|
t.description && /* @__PURE__ */ u.jsx(
|
|
5001
|
-
|
|
5017
|
+
Le,
|
|
5002
5018
|
{
|
|
5003
|
-
className: `${
|
|
5019
|
+
className: `${ze} max-w-full prose-img:max-w-prose`,
|
|
5004
5020
|
content: t.description
|
|
5005
5021
|
}
|
|
5006
5022
|
),
|
|
5007
|
-
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children:
|
|
5023
|
+
t.parameters && t.parameters.length > 0 && /* @__PURE__ */ u.jsx(u.Fragment, { children: ml.flatMap(
|
|
5008
5024
|
(f) => {
|
|
5009
5025
|
var g;
|
|
5010
5026
|
return (g = o[f]) != null && g.length ? /* @__PURE__ */ u.jsx(
|
|
5011
|
-
|
|
5027
|
+
Da,
|
|
5012
5028
|
{
|
|
5013
5029
|
summary: t.summary ?? void 0,
|
|
5014
5030
|
id: t.slug,
|
|
@@ -5019,15 +5035,15 @@ const Fs = ({
|
|
|
5019
5035
|
) : [];
|
|
5020
5036
|
}
|
|
5021
5037
|
) }),
|
|
5022
|
-
|
|
5038
|
+
za((c = (l = (a = t.requestBody) == null ? void 0 : a.content) == null ? void 0 : l.at(0)) == null ? void 0 : c.schema, (f) => /* @__PURE__ */ u.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
|
|
5023
5039
|
/* @__PURE__ */ u.jsxs(
|
|
5024
|
-
|
|
5040
|
+
He,
|
|
5025
5041
|
{
|
|
5026
5042
|
level: 3,
|
|
5027
5043
|
className: "capitalize",
|
|
5028
5044
|
id: `${t.slug}/request-body`,
|
|
5029
5045
|
children: [
|
|
5030
|
-
t.summary && /* @__PURE__ */ u.jsxs(
|
|
5046
|
+
t.summary && /* @__PURE__ */ u.jsxs(jr, { children: [
|
|
5031
5047
|
t.summary,
|
|
5032
5048
|
" › "
|
|
5033
5049
|
] }),
|
|
@@ -5035,17 +5051,17 @@ const Fs = ({
|
|
|
5035
5051
|
]
|
|
5036
5052
|
}
|
|
5037
5053
|
),
|
|
5038
|
-
/* @__PURE__ */ u.jsx(
|
|
5054
|
+
/* @__PURE__ */ u.jsx(Je, { schema: f })
|
|
5039
5055
|
] })),
|
|
5040
5056
|
t.responses.length > 0 && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
5041
5057
|
/* @__PURE__ */ u.jsxs(
|
|
5042
|
-
|
|
5058
|
+
He,
|
|
5043
5059
|
{
|
|
5044
5060
|
level: 3,
|
|
5045
5061
|
className: "capitalize mt-8 pt-8 border-t",
|
|
5046
5062
|
id: `${t.slug}/responses`,
|
|
5047
5063
|
children: [
|
|
5048
|
-
t.summary && /* @__PURE__ */ u.jsxs(
|
|
5064
|
+
t.summary && /* @__PURE__ */ u.jsxs(jr, { children: [
|
|
5049
5065
|
t.summary,
|
|
5050
5066
|
" › "
|
|
5051
5067
|
] }),
|
|
@@ -5054,13 +5070,13 @@ const Fs = ({
|
|
|
5054
5070
|
}
|
|
5055
5071
|
),
|
|
5056
5072
|
/* @__PURE__ */ u.jsxs(
|
|
5057
|
-
|
|
5073
|
+
Ta,
|
|
5058
5074
|
{
|
|
5059
5075
|
onValueChange: (f) => n(f),
|
|
5060
5076
|
value: s,
|
|
5061
5077
|
children: [
|
|
5062
|
-
t.responses.length > 1 && /* @__PURE__ */ u.jsx(
|
|
5063
|
-
|
|
5078
|
+
t.responses.length > 1 && /* @__PURE__ */ u.jsx(Pa, { children: t.responses.map((f) => /* @__PURE__ */ u.jsx(
|
|
5079
|
+
Ca,
|
|
5064
5080
|
{
|
|
5065
5081
|
value: f.statusCode,
|
|
5066
5082
|
title: f.description ?? void 0,
|
|
@@ -5071,11 +5087,11 @@ const Fs = ({
|
|
|
5071
5087
|
/* @__PURE__ */ u.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
|
|
5072
5088
|
var g, b;
|
|
5073
5089
|
return /* @__PURE__ */ u.jsx(
|
|
5074
|
-
|
|
5090
|
+
Na,
|
|
5075
5091
|
{
|
|
5076
5092
|
value: f.statusCode,
|
|
5077
5093
|
children: /* @__PURE__ */ u.jsx(
|
|
5078
|
-
|
|
5094
|
+
Je,
|
|
5079
5095
|
{
|
|
5080
5096
|
schema: (b = (g = f.content) == null ? void 0 : g.find((m) => m.schema)) == null ? void 0 : b.schema
|
|
5081
5097
|
}
|
|
@@ -5090,7 +5106,7 @@ const Fs = ({
|
|
|
5090
5106
|
] })
|
|
5091
5107
|
] }),
|
|
5092
5108
|
/* @__PURE__ */ u.jsx(
|
|
5093
|
-
|
|
5109
|
+
il,
|
|
5094
5110
|
{
|
|
5095
5111
|
selectedResponse: s,
|
|
5096
5112
|
onSelectResponse: n,
|
|
@@ -5103,10 +5119,10 @@ const Fs = ({
|
|
|
5103
5119
|
)
|
|
5104
5120
|
] });
|
|
5105
5121
|
};
|
|
5106
|
-
function
|
|
5122
|
+
function oo(e, r = 160) {
|
|
5107
5123
|
return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, r).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
5108
5124
|
}
|
|
5109
|
-
const
|
|
5125
|
+
const vl = Ve(
|
|
5110
5126
|
/* GraphQL */
|
|
5111
5127
|
`
|
|
5112
5128
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5174,10 +5190,19 @@ const sl = tt(
|
|
|
5174
5190
|
}
|
|
5175
5191
|
}
|
|
5176
5192
|
`
|
|
5177
|
-
),
|
|
5193
|
+
), bl = Ve(
|
|
5194
|
+
/* GraphQL */
|
|
5195
|
+
`
|
|
5196
|
+
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
5197
|
+
schema(input: $input, type: $type) {
|
|
5198
|
+
openapi
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
`
|
|
5202
|
+
), xl = Ve(
|
|
5178
5203
|
/* GraphQL */
|
|
5179
5204
|
`
|
|
5180
|
-
query
|
|
5205
|
+
query OperationsForTag(
|
|
5181
5206
|
$input: JSON!
|
|
5182
5207
|
$type: SchemaType!
|
|
5183
5208
|
$tag: String
|
|
@@ -5203,21 +5228,25 @@ const sl = tt(
|
|
|
5203
5228
|
}
|
|
5204
5229
|
}
|
|
5205
5230
|
`
|
|
5206
|
-
),
|
|
5231
|
+
), Wl = ({
|
|
5207
5232
|
tag: e,
|
|
5208
5233
|
untagged: r
|
|
5209
5234
|
}) => {
|
|
5210
|
-
var
|
|
5211
|
-
const { input: t, type: o, versions: i, version: s, options: n } =
|
|
5235
|
+
var d;
|
|
5236
|
+
const { input: t, type: o, versions: i, version: s, options: n } = Nr(), a = nt(xl, {
|
|
5212
5237
|
input: t,
|
|
5213
5238
|
type: o,
|
|
5214
5239
|
tag: e,
|
|
5215
5240
|
untagged: r
|
|
5216
|
-
}), l =
|
|
5241
|
+
}), l = Tr(a), {
|
|
5217
5242
|
data: { schema: c }
|
|
5218
|
-
} = l, { selectedServer: f } =
|
|
5219
|
-
|
|
5220
|
-
|
|
5243
|
+
} = l, { selectedServer: f } = Pr(c.servers), g = c.title, b = c.summary, m = c.description, j = aa(), v = c.operations, p = (d = c.tags.find((S) => S.name === e)) == null ? void 0 : d.description, h = nt(bl, { input: t, type: o });
|
|
5244
|
+
Bo({
|
|
5245
|
+
...h,
|
|
5246
|
+
enabled: typeof window < "u",
|
|
5247
|
+
notifyOnChangeProps: []
|
|
5248
|
+
}), Ho();
|
|
5249
|
+
const y = p ? oo(p) : b || (m ? oo(m) : void 0), O = Object.entries(i).length > 1, T = (n == null ? void 0 : n.showVersionSelect) === "always" || O && (n == null ? void 0 : n.showVersionSelect) !== "hide";
|
|
5221
5250
|
return /* @__PURE__ */ u.jsxs(
|
|
5222
5251
|
"div",
|
|
5223
5252
|
{
|
|
@@ -5225,17 +5254,17 @@ const sl = tt(
|
|
|
5225
5254
|
"data-pagefind-filter": "section:openapi",
|
|
5226
5255
|
"data-pagefind-meta": "section:openapi",
|
|
5227
5256
|
children: [
|
|
5228
|
-
/* @__PURE__ */ u.jsxs(
|
|
5257
|
+
/* @__PURE__ */ u.jsxs(Mo, { children: [
|
|
5229
5258
|
/* @__PURE__ */ u.jsx("title", { children: [e, g].filter(Boolean).join(" - ") }),
|
|
5230
|
-
|
|
5259
|
+
y && /* @__PURE__ */ u.jsx("meta", { name: "description", content: y })
|
|
5231
5260
|
] }),
|
|
5232
5261
|
/* @__PURE__ */ u.jsxs("div", { className: "mb-8", children: [
|
|
5233
|
-
/* @__PURE__ */ u.jsxs(
|
|
5262
|
+
/* @__PURE__ */ u.jsxs(lo, { className: "w-full", children: [
|
|
5234
5263
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-y-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5235
5264
|
/* @__PURE__ */ u.jsxs("div", { className: "flex-1", children: [
|
|
5236
|
-
/* @__PURE__ */ u.jsx(
|
|
5265
|
+
/* @__PURE__ */ u.jsx(da, { children: g }),
|
|
5237
5266
|
/* @__PURE__ */ u.jsxs(
|
|
5238
|
-
|
|
5267
|
+
He,
|
|
5239
5268
|
{
|
|
5240
5269
|
level: 1,
|
|
5241
5270
|
id: "description",
|
|
@@ -5243,7 +5272,7 @@ const sl = tt(
|
|
|
5243
5272
|
className: "mb-0",
|
|
5244
5273
|
children: [
|
|
5245
5274
|
e ?? "Other endpoints",
|
|
5246
|
-
|
|
5275
|
+
T && /* @__PURE__ */ u.jsxs("span", { className: "text-xl text-muted-foreground ml-1.5", children: [
|
|
5247
5276
|
" ",
|
|
5248
5277
|
"(",
|
|
5249
5278
|
s,
|
|
@@ -5254,29 +5283,29 @@ const sl = tt(
|
|
|
5254
5283
|
)
|
|
5255
5284
|
] }),
|
|
5256
5285
|
/* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5257
|
-
|
|
5258
|
-
|
|
5286
|
+
T && /* @__PURE__ */ u.jsxs(
|
|
5287
|
+
la,
|
|
5259
5288
|
{
|
|
5260
|
-
onValueChange: (
|
|
5289
|
+
onValueChange: (S) => j(i[S]),
|
|
5261
5290
|
defaultValue: s,
|
|
5262
|
-
disabled: !
|
|
5291
|
+
disabled: !O,
|
|
5263
5292
|
children: [
|
|
5264
|
-
/* @__PURE__ */ u.jsx(
|
|
5265
|
-
/* @__PURE__ */ u.jsx(
|
|
5293
|
+
/* @__PURE__ */ u.jsx(ca, { className: "w-[180px]", children: /* @__PURE__ */ u.jsx(ua, { placeholder: "Select version" }) }),
|
|
5294
|
+
/* @__PURE__ */ u.jsx(fa, { children: Object.entries(i).map(([S]) => /* @__PURE__ */ u.jsx(pa, { value: S, children: S }, S)) })
|
|
5266
5295
|
]
|
|
5267
5296
|
}
|
|
5268
5297
|
),
|
|
5269
|
-
c.description && /* @__PURE__ */ u.jsxs(
|
|
5298
|
+
c.description && /* @__PURE__ */ u.jsxs(xr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5270
5299
|
/* @__PURE__ */ u.jsx("span", { children: "Schema description" }),
|
|
5271
5300
|
/* @__PURE__ */ u.jsx(
|
|
5272
|
-
|
|
5301
|
+
ao,
|
|
5273
5302
|
{
|
|
5274
5303
|
className: "group-data-[state=open]:hidden translate-y-px",
|
|
5275
5304
|
size: 14
|
|
5276
5305
|
}
|
|
5277
5306
|
),
|
|
5278
5307
|
/* @__PURE__ */ u.jsx(
|
|
5279
|
-
|
|
5308
|
+
na,
|
|
5280
5309
|
{
|
|
5281
5310
|
className: "group-data-[state=closed]:hidden translate-y-px",
|
|
5282
5311
|
size: 13
|
|
@@ -5285,15 +5314,15 @@ const sl = tt(
|
|
|
5285
5314
|
] })
|
|
5286
5315
|
] })
|
|
5287
5316
|
] }),
|
|
5288
|
-
c.description && /* @__PURE__ */ u.jsx(
|
|
5317
|
+
c.description && /* @__PURE__ */ u.jsx(co, { className: "CollapsibleContent", children: /* @__PURE__ */ u.jsx(
|
|
5289
5318
|
"div",
|
|
5290
5319
|
{
|
|
5291
5320
|
className: se(
|
|
5292
|
-
|
|
5321
|
+
ze,
|
|
5293
5322
|
"pt-4 max-w-full prose-img:max-w-prose"
|
|
5294
5323
|
),
|
|
5295
5324
|
children: /* @__PURE__ */ u.jsx(
|
|
5296
|
-
|
|
5325
|
+
Le,
|
|
5297
5326
|
{
|
|
5298
5327
|
className: "border rounded bg-muted/25 border-border px-2.5 md:px-4",
|
|
5299
5328
|
content: c.description
|
|
@@ -5306,29 +5335,29 @@ const sl = tt(
|
|
|
5306
5335
|
"div",
|
|
5307
5336
|
{
|
|
5308
5337
|
className: se(
|
|
5309
|
-
|
|
5338
|
+
ze,
|
|
5310
5339
|
"my-4 max-w-full prose-img:max-w-prose"
|
|
5311
5340
|
),
|
|
5312
|
-
children: /* @__PURE__ */ u.jsx(
|
|
5341
|
+
children: /* @__PURE__ */ u.jsx(Le, { content: p })
|
|
5313
5342
|
}
|
|
5314
5343
|
)
|
|
5315
5344
|
] }),
|
|
5316
5345
|
/* @__PURE__ */ u.jsx("hr", {}),
|
|
5317
|
-
/* @__PURE__ */ u.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ u.jsx(
|
|
5318
|
-
v.map((
|
|
5319
|
-
|
|
5346
|
+
/* @__PURE__ */ u.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ u.jsx(Ba, {}) }),
|
|
5347
|
+
/* @__PURE__ */ u.jsx("div", { className: "px-6 -mx-6 [content-visibility:auto]", children: v.map((S) => /* @__PURE__ */ u.jsx(
|
|
5348
|
+
gl,
|
|
5320
5349
|
{
|
|
5321
5350
|
serverUrl: f,
|
|
5322
|
-
operationFragment:
|
|
5351
|
+
operationFragment: S
|
|
5323
5352
|
},
|
|
5324
|
-
|
|
5325
|
-
))
|
|
5353
|
+
S.slug
|
|
5354
|
+
)) })
|
|
5326
5355
|
]
|
|
5327
5356
|
}
|
|
5328
5357
|
);
|
|
5329
5358
|
};
|
|
5330
5359
|
export {
|
|
5331
|
-
|
|
5332
|
-
|
|
5360
|
+
Wl as OperationList,
|
|
5361
|
+
vl as OperationsFragment
|
|
5333
5362
|
};
|
|
5334
|
-
//# sourceMappingURL=OperationList-
|
|
5363
|
+
//# sourceMappingURL=OperationList-DT4-gm_S.js.map
|