zudoku 0.0.0-fix-circular-ref-false-positives.zbe02c6a6 → 0.0.0-fix-warnings.z053d4e27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/InputNavigationSchema.d.ts +56 -56
- package/dist/config/validators/ProtectedRoutesSchema.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/lib/components/Heading.d.ts +1 -1
- package/dist/lib/components/index.d.ts +18 -74
- package/dist/lib/components/index.js +19 -36
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +7 -30
- package/dist/lib/hooks/index.js +7 -15
- package/dist/lib/hooks/index.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +1 -1
- package/dist/lib/oas/graphql/circular.js +35 -18
- package/dist/lib/oas/graphql/circular.js.map +1 -1
- package/dist/lib/oas/graphql/circular.test.js +2 -33
- package/dist/lib/oas/graphql/circular.test.js.map +1 -1
- package/dist/lib/oas/parser/index.js +14 -5
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/util/flattenAllOf.d.ts +0 -2
- package/dist/lib/util/flattenAllOf.js +0 -46
- package/dist/lib/util/flattenAllOf.js.map +1 -1
- package/dist/lib/util/flattenAllOf.test.js +2 -1
- package/dist/lib/util/flattenAllOf.test.js.map +1 -1
- package/dist/lib/util/flattenAllOfProcessor.d.ts +2 -0
- package/dist/lib/util/flattenAllOfProcessor.js +48 -0
- package/dist/lib/util/flattenAllOfProcessor.js.map +1 -0
- package/dist/lib/util/readFrontmatter.js +2 -1
- package/dist/lib/util/readFrontmatter.js.map +1 -1
- package/dist/vite/api/SchemaManager.js +1 -1
- package/dist/vite/api/SchemaManager.js.map +1 -1
- package/dist/vite/api/SchemaManager.test.js +1 -1
- package/dist/vite/api/SchemaManager.test.js.map +1 -1
- package/dist/vite/build.js +91 -73
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/mdx/remark-inject-filepath.js +5 -1
- package/dist/vite/mdx/remark-inject-filepath.js.map +1 -1
- package/dist/vite/mdx/remark-link-rewrite.js +3 -2
- package/dist/vite/mdx/remark-link-rewrite.js.map +1 -1
- package/dist/vite/plugin-docs.js +9 -7
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-markdown-export.js +4 -2
- package/dist/vite/plugin-markdown-export.js.map +1 -1
- package/lib/{ClaudeLogo-DJ9bU-sO.js → ClaudeLogo-C6q-Xn_l.js} +26 -22
- package/lib/{ClaudeLogo-DJ9bU-sO.js.map → ClaudeLogo-C6q-Xn_l.js.map} +1 -1
- package/lib/{MdxPage-stpAoBtx.js → MdxPage-B1G4W1TK.js} +8 -8
- package/lib/{MdxPage-stpAoBtx.js.map → MdxPage-B1G4W1TK.js.map} +1 -1
- package/lib/{Mermaid-Koc3z8mU.js → Mermaid-B1xNo-pf.js} +3 -2
- package/lib/{Mermaid-Koc3z8mU.js.map → Mermaid-B1xNo-pf.js.map} +1 -1
- package/lib/{OAuthErrorPage-DJ811Bn_.js → OAuthErrorPage-01Ke086W.js} +20 -18
- package/lib/{OAuthErrorPage-DJ811Bn_.js.map → OAuthErrorPage-01Ke086W.js.map} +1 -1
- package/lib/{OasProvider-B2KxIBsI.js → OasProvider-BG-FWDIq.js} +3 -3
- package/lib/{OasProvider-B2KxIBsI.js.map → OasProvider-BG-FWDIq.js.map} +1 -1
- package/lib/{OperationList-C2tAfThO.js → OperationList-GGkJ1vac.js} +948 -945
- package/lib/OperationList-GGkJ1vac.js.map +1 -0
- package/lib/{RouteGuard--A04ESy8.js → RouteGuard-B1lCR0C_.js} +5 -5
- package/lib/{RouteGuard--A04ESy8.js.map → RouteGuard-B1lCR0C_.js.map} +1 -1
- package/lib/{SchemaList-Ep8DleP_.js → SchemaList-CNVdC9f-.js} +7 -7
- package/lib/{SchemaList-Ep8DleP_.js.map → SchemaList-CNVdC9f-.js.map} +1 -1
- package/lib/{SchemaView-BpaEKRYx.js → SchemaView-CrV0yIwR.js} +3 -3
- package/lib/{SchemaView-BpaEKRYx.js.map → SchemaView-CrV0yIwR.js.map} +1 -1
- package/lib/{SignUp-DCBViNUi.js → SignUp-8kDBaLbO.js} +31 -26
- package/lib/{SignUp-DCBViNUi.js.map → SignUp-8kDBaLbO.js.map} +1 -1
- package/lib/{SyntaxHighlight-Dshjn3Zf.js → SyntaxHighlight-hZOFnYl0.js} +3 -3
- package/lib/{SyntaxHighlight-Dshjn3Zf.js.map → SyntaxHighlight-hZOFnYl0.js.map} +1 -1
- package/lib/{Toc-Cgz6CPiE.js → Toc-qEIii_-W.js} +2 -2
- package/lib/{Toc-Cgz6CPiE.js.map → Toc-qEIii_-W.js.map} +1 -1
- package/lib/{index-CL8eDnQW.js → Zudoku-DUsdmPME.js} +2250 -2268
- package/lib/Zudoku-DUsdmPME.js.map +1 -0
- package/lib/{ZudokuContext-BZB1TWdT.js → ZudokuContext-BBI06sOx.js} +5 -5
- package/lib/{ZudokuContext-BZB1TWdT.js.map → ZudokuContext-BBI06sOx.js.map} +1 -1
- package/lib/{circular-CG3e0_Uz.js → circular-bbWO95zs.js} +1346 -1327
- package/lib/{circular-CG3e0_Uz.js.map → circular-bbWO95zs.js.map} +1 -1
- package/lib/createServer-B7POuwZp.js +13036 -0
- package/lib/createServer-B7POuwZp.js.map +1 -0
- package/lib/{errors-b9I-fAOY.js → errors-7hgPDs1h.js} +3 -3
- package/lib/{errors-b9I-fAOY.js.map → errors-7hgPDs1h.js.map} +1 -1
- package/lib/{firebase-BCXX7Qv5.js → firebase-Dwn-2ju-.js} +13 -13
- package/lib/firebase-Dwn-2ju-.js.map +1 -0
- package/lib/{hook-BGlHBdET.js → hook-ZEd1Es7D.js} +2 -2
- package/lib/{hook-BGlHBdET.js.map → hook-ZEd1Es7D.js.map} +1 -1
- package/lib/{index-I3kmZ7tG.js → index-CTCT4jlW.js} +463 -461
- package/lib/{index-I3kmZ7tG.js.map → index-CTCT4jlW.js.map} +1 -1
- package/lib/index-DAWHN3cH.js +86 -0
- package/lib/index-DAWHN3cH.js.map +1 -0
- package/lib/{index-UOLtazB8.js → index-Dxdhrp-I.js} +2 -2
- package/lib/{index-UOLtazB8.js.map → index-Dxdhrp-I.js.map} +1 -1
- package/lib/{index.esm-B_0dvNjB.js → index.esm-Ca5zvoff.js} +20 -20
- package/lib/{index.esm-B_0dvNjB.js.map → index.esm-Ca5zvoff.js.map} +1 -1
- package/lib/{index.esm-C5CBsVzN.js → index.esm-DG4KaDKR.js} +2 -2
- package/lib/index.esm-DG4KaDKR.js.map +1 -0
- package/lib/{invariant-BJAl77rw.js → invariant-B_t_F2s_.js} +3 -3
- package/lib/{invariant-BJAl77rw.js.map → invariant-B_t_F2s_.js.map} +1 -1
- package/lib/ui/SyntaxHighlight.js +3 -3
- package/lib/useExposedProps-CzTDfXfq.js +30 -0
- package/lib/useExposedProps-CzTDfXfq.js.map +1 -0
- package/lib/zudoku.__internal.js +366 -365
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +5 -5
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.auth-supabase.js +4 -4
- package/lib/zudoku.components.js +31 -29
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +24 -11
- package/lib/zudoku.hooks.js.map +1 -1
- package/lib/zudoku.mermaid.js +4 -3
- package/lib/zudoku.mermaid.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +36 -32
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +131 -130
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +2 -2
- package/lib/zudoku.plugin-search-pagefind.js +2 -2
- package/package.json +3 -2
- package/src/lib/components/index.ts +19 -39
- package/src/lib/hooks/index.ts +7 -16
- package/src/lib/oas/graphql/circular.test.ts +2 -37
- package/src/lib/oas/graphql/circular.ts +51 -25
- package/src/lib/oas/parser/index.ts +17 -6
- package/src/lib/util/flattenAllOf.test.ts +2 -1
- package/src/lib/util/flattenAllOf.ts +0 -57
- package/src/lib/util/flattenAllOfProcessor.ts +58 -0
- package/src/lib/util/readFrontmatter.ts +2 -1
- package/src/zuplo/enrich-with-zuplo-mcp.ts +168 -0
- package/src/zuplo/enrich-with-zuplo.ts +254 -0
- package/src/zuplo/policy-types.ts +46 -0
- package/src/zuplo/with-zuplo-processors.ts +35 -0
- package/src/zuplo/with-zuplo.ts +14 -0
- package/lib/OperationList-C2tAfThO.js.map +0 -1
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js +0 -9
- package/lib/___vite-browser-external_commonjs-proxy-BttVsNON.js.map +0 -1
- package/lib/createServer-CNeRqj98.js +0 -16693
- package/lib/createServer-CNeRqj98.js.map +0 -1
- package/lib/firebase-BCXX7Qv5.js.map +0 -1
- package/lib/index-CL8eDnQW.js.map +0 -1
- package/lib/index-DBjOT2H1.js +0 -133
- package/lib/index-DBjOT2H1.js.map +0 -1
- package/lib/index.esm-C5CBsVzN.js.map +0 -1
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
import { j as l } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { u as
|
|
3
|
-
import { H as
|
|
4
|
-
import { DownloadIcon as
|
|
5
|
-
import { b as
|
|
6
|
-
import { u as ct, a as Sr, d as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { S as Ir, i as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
2
|
+
import { u as ya, e as Va } from "./useSuspenseQuery-CSB_rVek.js";
|
|
3
|
+
import { H as Ja } from "./index.esm-Ca5zvoff.js";
|
|
4
|
+
import { DownloadIcon as Da, ChevronDownIcon as ga, ExternalLinkIcon as Ie, CopyIcon as kr, ChevronsUpDownIcon as lt, CheckIcon as va, MinusIcon as Qa, PlusIcon as Ka, InfoIcon as xa, ChevronsDownUpIcon as qr } from "lucide-react";
|
|
5
|
+
import { b as Ya, d as Xa, u as Za } from "./chunk-EPOLDU6W-C6C8jAwd.js";
|
|
6
|
+
import { u as ct, a as Sr, d as Je, e as ba, f as Or, P as eo, C as Er, b as Rr, c as Ar, h as to, U as ro } from "./index-CTCT4jlW.js";
|
|
7
|
+
import { S as no, a as ao, b as oo, c as io, e as so } from "./Secret-BDBqq4p3.js";
|
|
8
|
+
import { C as lo } from "./CategoryHeading-DhmodDcq.js";
|
|
9
|
+
import { b as co, a as uo, h as po } from "./ZudokuContext-BBI06sOx.js";
|
|
10
|
+
import { I as Ce, M as Ue, T as fo, H as Me, g as ja, j as wa, k as $a, l as Sa, c as Oa, b as ho } from "./Zudoku-DUsdmPME.js";
|
|
11
|
+
import { S as Ir, i as mo, a as yo, E as Yr, b as go, c as vo, g as xo, P as Tr } from "./SchemaView-CrV0yIwR.js";
|
|
12
|
+
import { C as bo, a as jo, P as wo } from "./ClaudeLogo-C6q-Xn_l.js";
|
|
13
|
+
import { Button as Ne } from "./ui/Button.js";
|
|
14
|
+
import { useTransition as Ta, useState as ge, Fragment as $o, useRef as So, useEffect as Cr, useMemo as Oo } from "react";
|
|
15
|
+
import "./index-DAWHN3cH.js";
|
|
16
|
+
import { Slot as To } from "@radix-ui/react-slot";
|
|
14
17
|
import { c as Ca } from "./index-DI5SPFK9.js";
|
|
15
18
|
import { c as fe } from "./cn-5-Gd1Dss.js";
|
|
16
19
|
import "@radix-ui/react-separator";
|
|
17
|
-
import { D as
|
|
18
|
-
import { u as
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import { Item as _o, ItemContent as tn, ItemTitle as Fo, ItemActions as Ho, ItemGroup as Mo, ItemSeparator as Bo } from "./ui/Item.js";
|
|
30
|
-
import * as rn from "@radix-ui/react-collapsible";
|
|
31
|
-
import { c as zo } from "./index-DBjOT2H1.js";
|
|
20
|
+
import { D as Co, a as Po, b as No, c as Ze } from "./DropdownMenu-DN0jNrjj.js";
|
|
21
|
+
import { u as ko } from "./useCopyToClipboard-B_085nfO.js";
|
|
22
|
+
import { S as Xr } from "./Separator-BXt1LYnm.js";
|
|
23
|
+
import * as et from "@radix-ui/react-tabs";
|
|
24
|
+
import { Callout as Zr } from "./ui/Callout.js";
|
|
25
|
+
import { Card as qo } from "./ui/Card.js";
|
|
26
|
+
import { S as at } from "./SyntaxHighlight-hZOFnYl0.js";
|
|
27
|
+
import { Tabs as Eo, TabsList as Ro, TabsTrigger as tt, TabsContent as rt } from "./ui/Tabs.js";
|
|
28
|
+
import { VisuallyHidden as Ao } from "@radix-ui/react-visually-hidden";
|
|
29
|
+
import { Frame as Io, FramePanel as _o } from "./ui/Frame.js";
|
|
30
|
+
import { Item as Uo, ItemContent as en, ItemTitle as Lo, ItemActions as Fo, ItemGroup as Ho, ItemSeparator as Mo } from "./ui/Item.js";
|
|
31
|
+
import * as tn from "@radix-ui/react-collapsible";
|
|
32
32
|
import "./Button-GUVe7pmt.js";
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
function Vo(e, n) {
|
|
33
|
+
import { g as Bo, c as it, a as zo } from "./invariant-B_t_F2s_.js";
|
|
34
|
+
function Go(e, n) {
|
|
36
35
|
return n;
|
|
37
36
|
}
|
|
38
|
-
const
|
|
37
|
+
const Wo = Ca(
|
|
39
38
|
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
40
39
|
{
|
|
41
40
|
variants: {
|
|
@@ -49,7 +48,7 @@ const Jo = Ca(
|
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
);
|
|
52
|
-
function
|
|
51
|
+
function Vo({
|
|
53
52
|
className: e,
|
|
54
53
|
orientation: n,
|
|
55
54
|
...r
|
|
@@ -60,15 +59,15 @@ function Do({
|
|
|
60
59
|
role: "group",
|
|
61
60
|
"data-slot": "button-group",
|
|
62
61
|
"data-orientation": n,
|
|
63
|
-
className: fe(
|
|
62
|
+
className: fe(Wo({ orientation: n }), e),
|
|
64
63
|
...r
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
}
|
|
68
|
-
const
|
|
67
|
+
const Jo = ({
|
|
69
68
|
downloadUrl: e
|
|
70
69
|
}) => {
|
|
71
|
-
const [, n] =
|
|
70
|
+
const [, n] = ko(), r = async (a) => {
|
|
72
71
|
if (e.includes("://")) {
|
|
73
72
|
a.preventDefault();
|
|
74
73
|
try {
|
|
@@ -82,29 +81,29 @@ const Qo = ({
|
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
|
-
return /* @__PURE__ */ l.jsxs(
|
|
84
|
+
return /* @__PURE__ */ l.jsxs(Vo, { children: [
|
|
86
85
|
/* @__PURE__ */ l.jsx(
|
|
87
|
-
|
|
86
|
+
Ne,
|
|
88
87
|
{
|
|
89
88
|
variant: "outline",
|
|
90
89
|
size: "sm",
|
|
91
90
|
className: "flex items-center gap-1.5",
|
|
92
91
|
asChild: !0,
|
|
93
92
|
children: /* @__PURE__ */ l.jsxs("a", { href: e, download: !0, onClick: r, children: [
|
|
94
|
-
/* @__PURE__ */ l.jsx(
|
|
93
|
+
/* @__PURE__ */ l.jsx(Da, { size: 14 }),
|
|
95
94
|
"Download schema"
|
|
96
95
|
] })
|
|
97
96
|
}
|
|
98
97
|
),
|
|
99
|
-
/* @__PURE__ */ l.jsxs(
|
|
100
|
-
/* @__PURE__ */ l.jsx(
|
|
101
|
-
/* @__PURE__ */ l.jsxs(
|
|
102
|
-
/* @__PURE__ */ l.jsx(
|
|
103
|
-
/* @__PURE__ */ l.jsx(
|
|
98
|
+
/* @__PURE__ */ l.jsxs(Co, { children: [
|
|
99
|
+
/* @__PURE__ */ l.jsx(Po, { asChild: !0, children: /* @__PURE__ */ l.jsx(Ne, { size: "sm", variant: "outline", className: "px-1.5", children: /* @__PURE__ */ l.jsx(ga, { size: 14 }) }) }),
|
|
100
|
+
/* @__PURE__ */ l.jsxs(No, { align: "end", children: [
|
|
101
|
+
/* @__PURE__ */ l.jsx(Ze, { asChild: !0, children: /* @__PURE__ */ l.jsxs("a", { href: e, target: "_blank", rel: "noopener noreferrer", children: [
|
|
102
|
+
/* @__PURE__ */ l.jsx(Ie, { size: 14 }),
|
|
104
103
|
"Open in new tab"
|
|
105
104
|
] }) }),
|
|
106
105
|
/* @__PURE__ */ l.jsxs(
|
|
107
|
-
|
|
106
|
+
Ze,
|
|
108
107
|
{
|
|
109
108
|
onClick: async () => {
|
|
110
109
|
const c = await (await fetch(e)).text();
|
|
@@ -117,7 +116,7 @@ const Qo = ({
|
|
|
117
116
|
}
|
|
118
117
|
),
|
|
119
118
|
/* @__PURE__ */ l.jsxs(
|
|
120
|
-
|
|
119
|
+
Ze,
|
|
121
120
|
{
|
|
122
121
|
onClick: () => {
|
|
123
122
|
const a = encodeURIComponent(
|
|
@@ -126,13 +125,13 @@ const Qo = ({
|
|
|
126
125
|
window.open(`https://claude.ai/new?q=${a}`, "_blank");
|
|
127
126
|
},
|
|
128
127
|
children: [
|
|
129
|
-
/* @__PURE__ */ l.jsx(
|
|
128
|
+
/* @__PURE__ */ l.jsx(bo, { className: "size-4" }),
|
|
130
129
|
"Use in Claude"
|
|
131
130
|
]
|
|
132
131
|
}
|
|
133
132
|
),
|
|
134
133
|
/* @__PURE__ */ l.jsxs(
|
|
135
|
-
|
|
134
|
+
Ze,
|
|
136
135
|
{
|
|
137
136
|
onClick: () => {
|
|
138
137
|
const a = encodeURIComponent(
|
|
@@ -141,7 +140,7 @@ const Qo = ({
|
|
|
141
140
|
window.open(`https://chatgpt.com/?q=${a}`, "_blank");
|
|
142
141
|
},
|
|
143
142
|
children: [
|
|
144
|
-
/* @__PURE__ */ l.jsx(
|
|
143
|
+
/* @__PURE__ */ l.jsx(jo, { className: "size-4" }),
|
|
145
144
|
"Use in ChatGPT"
|
|
146
145
|
]
|
|
147
146
|
}
|
|
@@ -149,7 +148,7 @@ const Qo = ({
|
|
|
149
148
|
] })
|
|
150
149
|
] })
|
|
151
150
|
] });
|
|
152
|
-
},
|
|
151
|
+
}, Do = ({
|
|
153
152
|
value: e,
|
|
154
153
|
onChange: n,
|
|
155
154
|
className: r,
|
|
@@ -179,7 +178,7 @@ const Qo = ({
|
|
|
179
178
|
children: /* @__PURE__ */ l.jsx(lt, { size: 14 })
|
|
180
179
|
}
|
|
181
180
|
)
|
|
182
|
-
] }),
|
|
181
|
+
] }), Qo = Je(
|
|
183
182
|
/* GraphQL */
|
|
184
183
|
`
|
|
185
184
|
query ServersQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -191,10 +190,10 @@ const Qo = ({
|
|
|
191
190
|
}
|
|
192
191
|
}
|
|
193
192
|
`
|
|
194
|
-
),
|
|
193
|
+
), Ko = ({ url: e }) => {
|
|
195
194
|
const [n, r] = ge(!1);
|
|
196
195
|
return /* @__PURE__ */ l.jsx(
|
|
197
|
-
|
|
196
|
+
Ne,
|
|
198
197
|
{
|
|
199
198
|
onClick: () => {
|
|
200
199
|
navigator.clipboard.writeText(e).then(() => {
|
|
@@ -203,17 +202,17 @@ const Qo = ({
|
|
|
203
202
|
},
|
|
204
203
|
variant: "ghost",
|
|
205
204
|
size: "icon-xs",
|
|
206
|
-
children: n ? /* @__PURE__ */ l.jsx(
|
|
205
|
+
children: n ? /* @__PURE__ */ l.jsx(va, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ l.jsx(kr, { size: 14, strokeWidth: 1.3 })
|
|
207
206
|
}
|
|
208
207
|
);
|
|
209
|
-
},
|
|
210
|
-
const { input: e, type: n } = ct(), r = Sr(
|
|
208
|
+
}, Yo = () => {
|
|
209
|
+
const { input: e, type: n } = ct(), r = Sr(Qo, { input: e, type: n }), a = ya(r), [, c] = Ta(), { selectedServer: i, setSelectedServer: t } = ba(
|
|
211
210
|
a.data.schema.servers
|
|
212
211
|
), { servers: o } = a.data.schema, s = o.at(0);
|
|
213
212
|
return s ? /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 flex-nowrap", children: [
|
|
214
213
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
|
|
215
214
|
o.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
216
|
-
|
|
215
|
+
Do,
|
|
217
216
|
{
|
|
218
217
|
className: "font-mono text-xs border-input bg-transparent dark:bg-input/30 dark:hover:bg-input/50 py-1.5 max-w-[450px] truncate",
|
|
219
218
|
onChange: (u) => c(() => t(u.target.value)),
|
|
@@ -225,9 +224,9 @@ const Qo = ({
|
|
|
225
224
|
}))
|
|
226
225
|
}
|
|
227
226
|
) : /* @__PURE__ */ l.jsx(Ce, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s.url }),
|
|
228
|
-
/* @__PURE__ */ l.jsx(
|
|
227
|
+
/* @__PURE__ */ l.jsx(Ko, { url: o.length > 1 ? i : s.url })
|
|
229
228
|
] }) : null;
|
|
230
|
-
},
|
|
229
|
+
}, Xo = Ca(
|
|
231
230
|
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
232
231
|
{
|
|
233
232
|
variants: {
|
|
@@ -244,24 +243,24 @@ const Qo = ({
|
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
245
|
);
|
|
247
|
-
function
|
|
246
|
+
function Be({
|
|
248
247
|
className: e,
|
|
249
248
|
variant: n,
|
|
250
249
|
asChild: r = !1,
|
|
251
250
|
...a
|
|
252
251
|
}) {
|
|
253
|
-
const c = r ?
|
|
252
|
+
const c = r ? To : "span";
|
|
254
253
|
return /* @__PURE__ */ l.jsx(
|
|
255
254
|
c,
|
|
256
255
|
{
|
|
257
256
|
"data-slot": "badge",
|
|
258
|
-
className: fe(
|
|
257
|
+
className: fe(Xo({ variant: n }), e),
|
|
259
258
|
...a
|
|
260
259
|
}
|
|
261
260
|
);
|
|
262
261
|
}
|
|
263
262
|
const St = (e, n) => e ? n(e) : void 0;
|
|
264
|
-
function
|
|
263
|
+
function ze({ className: e, ...n }) {
|
|
265
264
|
return /* @__PURE__ */ l.jsxs(
|
|
266
265
|
"div",
|
|
267
266
|
{
|
|
@@ -282,7 +281,7 @@ function Be({ className: e, ...n }) {
|
|
|
282
281
|
}
|
|
283
282
|
),
|
|
284
283
|
/* @__PURE__ */ l.jsx(
|
|
285
|
-
|
|
284
|
+
ga,
|
|
286
285
|
{
|
|
287
286
|
className: "text-muted-foreground pointer-events-none absolute top-1/2 right-3.5 size-4 -translate-y-1/2 opacity-50 select-none",
|
|
288
287
|
"aria-hidden": "true",
|
|
@@ -293,10 +292,10 @@ function Be({ className: e, ...n }) {
|
|
|
293
292
|
}
|
|
294
293
|
);
|
|
295
294
|
}
|
|
296
|
-
function
|
|
295
|
+
function Ge({ ...e }) {
|
|
297
296
|
return /* @__PURE__ */ l.jsx("option", { "data-slot": "native-select-option", ...e });
|
|
298
297
|
}
|
|
299
|
-
const
|
|
298
|
+
const rn = fe, Zo = ({
|
|
300
299
|
responses: e,
|
|
301
300
|
selectedResponse: n,
|
|
302
301
|
onSelectResponse: r
|
|
@@ -307,16 +306,16 @@ const nn = fe, ti = ({
|
|
|
307
306
|
/* @__PURE__ */ l.jsxs(
|
|
308
307
|
"div",
|
|
309
308
|
{
|
|
310
|
-
className:
|
|
309
|
+
className: rn(
|
|
311
310
|
"flex flex-row items-center gap-2 justify-between",
|
|
312
311
|
!t && "px-4 py-1.5 border-b"
|
|
313
312
|
),
|
|
314
313
|
children: [
|
|
315
|
-
!t && /* @__PURE__ */ l.jsx(
|
|
316
|
-
|
|
314
|
+
!t && /* @__PURE__ */ l.jsx(et.List, { className: "flex flex-row font-medium text-sm gap-4", children: e.map((s) => /* @__PURE__ */ l.jsx(
|
|
315
|
+
et.Trigger,
|
|
317
316
|
{
|
|
318
317
|
value: s.statusCode,
|
|
319
|
-
className:
|
|
318
|
+
className: rn(
|
|
320
319
|
"py-0.5 h-fit -mx-2 px-2 rounded-md",
|
|
321
320
|
"data-[state=active]:dark:ring-1 data-[state=active]:dark:ring-border data-[state=active]:bg-background data-[state=active]:drop-shadow",
|
|
322
321
|
"data-[state=active]:font-semibold data-[state=active]:text-foreground"
|
|
@@ -326,21 +325,21 @@ const nn = fe, ti = ({
|
|
|
326
325
|
s.statusCode
|
|
327
326
|
)) }),
|
|
328
327
|
i?.content && i.content.length > 1 && /* @__PURE__ */ l.jsx(
|
|
329
|
-
|
|
328
|
+
ze,
|
|
330
329
|
{
|
|
331
330
|
value: a,
|
|
332
331
|
onChange: (s) => c(s.target.value),
|
|
333
332
|
className: "text-xs h-fit py-1 bg-background",
|
|
334
|
-
children: i.content.map((s) => /* @__PURE__ */ l.jsx(
|
|
333
|
+
children: i.content.map((s) => /* @__PURE__ */ l.jsx(Ge, { value: s.mediaType, children: s.mediaType }, s.mediaType))
|
|
335
334
|
}
|
|
336
335
|
)
|
|
337
336
|
]
|
|
338
337
|
}
|
|
339
338
|
),
|
|
340
339
|
/* @__PURE__ */ l.jsxs("div", { className: "p-2 clear-both", children: [
|
|
341
|
-
t && /* @__PURE__ */ l.jsx(
|
|
340
|
+
t && /* @__PURE__ */ l.jsx(Be, { variant: "outline", className: "float-start me-2", children: i?.statusCode }),
|
|
342
341
|
i?.description && /* @__PURE__ */ l.jsx(
|
|
343
|
-
|
|
342
|
+
Ue,
|
|
344
343
|
{
|
|
345
344
|
className: "text-sm text-muted-foreground max-w-none",
|
|
346
345
|
content: i.description
|
|
@@ -349,7 +348,7 @@ const nn = fe, ti = ({
|
|
|
349
348
|
] })
|
|
350
349
|
] });
|
|
351
350
|
return /* @__PURE__ */ l.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ l.jsx(
|
|
352
|
-
|
|
351
|
+
et.Root,
|
|
353
352
|
{
|
|
354
353
|
value: n,
|
|
355
354
|
onValueChange: (s) => {
|
|
@@ -357,7 +356,7 @@ const nn = fe, ti = ({
|
|
|
357
356
|
const u = e.find((p) => p.statusCode === s);
|
|
358
357
|
c(u?.content?.[0]?.mediaType ?? "");
|
|
359
358
|
},
|
|
360
|
-
children: e.map((s) => /* @__PURE__ */ l.jsx(
|
|
359
|
+
children: e.map((s) => /* @__PURE__ */ l.jsx(et.Content, { value: s.statusCode, children: /* @__PURE__ */ l.jsx(
|
|
361
360
|
Ir,
|
|
362
361
|
{
|
|
363
362
|
schema: s.content?.find(
|
|
@@ -368,7 +367,7 @@ const nn = fe, ti = ({
|
|
|
368
367
|
) }, s.statusCode))
|
|
369
368
|
}
|
|
370
369
|
) });
|
|
371
|
-
},
|
|
370
|
+
}, ei = ({
|
|
372
371
|
serverUrl: e,
|
|
373
372
|
summary: n,
|
|
374
373
|
data: r
|
|
@@ -404,7 +403,7 @@ const nn = fe, ti = ({
|
|
|
404
403
|
c(!0), setTimeout(() => c(!1), 2e3);
|
|
405
404
|
});
|
|
406
405
|
};
|
|
407
|
-
return /* @__PURE__ */ l.jsx(
|
|
406
|
+
return /* @__PURE__ */ l.jsx(qo, { className: "p-6 mb-6 max-w-screen-md", children: /* @__PURE__ */ l.jsxs("div", { className: "space-y-4", children: [
|
|
408
407
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
409
408
|
/* @__PURE__ */ l.jsx("h3", { className: "text-lg font-semibold mb-2", children: "MCP Endpoint" }),
|
|
410
409
|
/* @__PURE__ */ l.jsxs("p", { className: "text-sm text-muted-foreground mb-3", children: [
|
|
@@ -431,13 +430,13 @@ const nn = fe, ti = ({
|
|
|
431
430
|
children: [
|
|
432
431
|
/* @__PURE__ */ l.jsx(Ce, { className: "bg-primary/20 px-4 py-2 flex-1 border-none", children: i }),
|
|
433
432
|
/* @__PURE__ */ l.jsx(
|
|
434
|
-
|
|
433
|
+
Ne,
|
|
435
434
|
{
|
|
436
435
|
onClick: d,
|
|
437
436
|
variant: "ghost",
|
|
438
437
|
size: "icon",
|
|
439
438
|
className: "h-8 w-8",
|
|
440
|
-
children: a ? /* @__PURE__ */ l.jsx(
|
|
439
|
+
children: a ? /* @__PURE__ */ l.jsx(va, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ l.jsx(kr, { className: "h-4 w-4" })
|
|
441
440
|
}
|
|
442
441
|
)
|
|
443
442
|
]
|
|
@@ -449,14 +448,14 @@ const nn = fe, ti = ({
|
|
|
449
448
|
/* @__PURE__ */ l.jsx("p", { className: "text-sm text-muted-foreground mb-3", children: "Choose your AI tool and copy the configuration to get started." }),
|
|
450
449
|
/* @__PURE__ */ l.jsx("hr", { className: "my-4" }),
|
|
451
450
|
/* @__PURE__ */ l.jsxs(Eo, { defaultValue: "claude", className: "w-full", children: [
|
|
452
|
-
/* @__PURE__ */ l.jsxs(
|
|
453
|
-
/* @__PURE__ */ l.jsx(
|
|
454
|
-
/* @__PURE__ */ l.jsx(
|
|
455
|
-
/* @__PURE__ */ l.jsx(
|
|
456
|
-
/* @__PURE__ */ l.jsx(
|
|
451
|
+
/* @__PURE__ */ l.jsxs(Ro, { className: "grid w-full grid-cols-4", children: [
|
|
452
|
+
/* @__PURE__ */ l.jsx(tt, { value: "claude", children: "Claude" }),
|
|
453
|
+
/* @__PURE__ */ l.jsx(tt, { value: "chatgpt", children: "ChatGPT" }),
|
|
454
|
+
/* @__PURE__ */ l.jsx(tt, { value: "cursor", children: "Cursor" }),
|
|
455
|
+
/* @__PURE__ */ l.jsx(tt, { value: "vscode", children: "VS Code" })
|
|
457
456
|
] }),
|
|
458
|
-
/* @__PURE__ */ l.jsxs(
|
|
459
|
-
/* @__PURE__ */ l.jsxs(
|
|
457
|
+
/* @__PURE__ */ l.jsxs(fo, { className: "text-sm max-w-full", children: [
|
|
458
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "claude", className: "space-y-3", children: [
|
|
460
459
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
461
460
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
462
461
|
"Open Claude Desktop and click ",
|
|
@@ -475,7 +474,7 @@ const nn = fe, ti = ({
|
|
|
475
474
|
/* @__PURE__ */ l.jsx(Ce, { children: "claude_desktop_config.json" }),
|
|
476
475
|
":",
|
|
477
476
|
/* @__PURE__ */ l.jsx(
|
|
478
|
-
|
|
477
|
+
at,
|
|
479
478
|
{
|
|
480
479
|
showLanguageIndicator: !0,
|
|
481
480
|
title: "claude_desktop_config.json",
|
|
@@ -501,13 +500,13 @@ const nn = fe, ti = ({
|
|
|
501
500
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
502
501
|
children: [
|
|
503
502
|
"View official docs",
|
|
504
|
-
/* @__PURE__ */ l.jsx(
|
|
503
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
505
504
|
]
|
|
506
505
|
}
|
|
507
506
|
)
|
|
508
507
|
] }),
|
|
509
|
-
/* @__PURE__ */ l.jsxs(
|
|
510
|
-
/* @__PURE__ */ l.jsx(
|
|
508
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "chatgpt", className: "space-y-3", children: [
|
|
509
|
+
/* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "ChatGPT Pro, Team, Enterprise, or Edu subscription. Note: MCP support is limited to read-only operations through Deep Research." }),
|
|
511
510
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
512
511
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
513
512
|
"Go to ",
|
|
@@ -537,12 +536,12 @@ const nn = fe, ti = ({
|
|
|
537
536
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
538
537
|
children: [
|
|
539
538
|
"View official docs",
|
|
540
|
-
/* @__PURE__ */ l.jsx(
|
|
539
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
541
540
|
]
|
|
542
541
|
}
|
|
543
542
|
)
|
|
544
543
|
] }),
|
|
545
|
-
/* @__PURE__ */ l.jsxs(
|
|
544
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "cursor", className: "space-y-3", children: [
|
|
546
545
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
547
546
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
548
547
|
/* @__PURE__ */ l.jsx("span", { children: "Create or edit: " }),
|
|
@@ -551,7 +550,7 @@ const nn = fe, ti = ({
|
|
|
551
550
|
/* @__PURE__ */ l.jsx(Ce, { children: ".cursor/mcp.json" }),
|
|
552
551
|
/* @__PURE__ */ l.jsx("span", { children: " (project)" }),
|
|
553
552
|
/* @__PURE__ */ l.jsx(
|
|
554
|
-
|
|
553
|
+
at,
|
|
555
554
|
{
|
|
556
555
|
showLanguageIndicator: !0,
|
|
557
556
|
title: "mcp.json",
|
|
@@ -572,20 +571,20 @@ const nn = fe, ti = ({
|
|
|
572
571
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
573
572
|
children: [
|
|
574
573
|
"View official docs",
|
|
575
|
-
/* @__PURE__ */ l.jsx(
|
|
574
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
576
575
|
]
|
|
577
576
|
}
|
|
578
577
|
)
|
|
579
578
|
] }),
|
|
580
|
-
/* @__PURE__ */ l.jsxs(
|
|
581
|
-
/* @__PURE__ */ l.jsx(
|
|
579
|
+
/* @__PURE__ */ l.jsxs(rt, { value: "vscode", className: "space-y-3", children: [
|
|
580
|
+
/* @__PURE__ */ l.jsx(Zr, { type: "note", title: "Requirements", children: "VS Code with GitHub Copilot extension" }),
|
|
582
581
|
/* @__PURE__ */ l.jsxs("ol", { children: [
|
|
583
582
|
/* @__PURE__ */ l.jsxs("li", { children: [
|
|
584
583
|
/* @__PURE__ */ l.jsx("span", { children: "Create " }),
|
|
585
584
|
/* @__PURE__ */ l.jsx(Ce, { children: ".vscode/mcp.json" }),
|
|
586
585
|
/* @__PURE__ */ l.jsx("span", { children: " in your workspace (or user-level mcp.json):" }),
|
|
587
586
|
/* @__PURE__ */ l.jsx(
|
|
588
|
-
|
|
587
|
+
at,
|
|
589
588
|
{
|
|
590
589
|
showLanguageIndicator: !0,
|
|
591
590
|
title: "mcp.json",
|
|
@@ -607,7 +606,7 @@ const nn = fe, ti = ({
|
|
|
607
606
|
className: "inline-flex items-center gap-1 text-sm text-primary hover:underline",
|
|
608
607
|
children: [
|
|
609
608
|
"View official docs",
|
|
610
|
-
/* @__PURE__ */ l.jsx(
|
|
609
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "h-3 w-3" })
|
|
611
610
|
]
|
|
612
611
|
}
|
|
613
612
|
)
|
|
@@ -616,18 +615,18 @@ const nn = fe, ti = ({
|
|
|
616
615
|
] })
|
|
617
616
|
] })
|
|
618
617
|
] }) });
|
|
619
|
-
},
|
|
618
|
+
}, ti = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
|
|
620
619
|
type: "string"
|
|
621
|
-
},
|
|
620
|
+
}, ri = ({
|
|
622
621
|
parameter: e,
|
|
623
622
|
group: n,
|
|
624
623
|
id: r
|
|
625
624
|
}) => {
|
|
626
|
-
const a =
|
|
627
|
-
return /* @__PURE__ */ l.jsxs(
|
|
628
|
-
/* @__PURE__ */ l.jsxs(
|
|
625
|
+
const a = ti(e), [c, i] = ge(!1), t = a.type === "object" || mo(a) && "items" in a && a.items?.type === "object", o = !!(e.description || a.description || a.type === "array" && a.items?.enum || a.enum || a.example !== void 0 || a.default !== void 0);
|
|
626
|
+
return /* @__PURE__ */ l.jsxs(Uo, { children: [
|
|
627
|
+
/* @__PURE__ */ l.jsxs(en, { className: "gap-y-2", children: [
|
|
629
628
|
/* @__PURE__ */ l.jsxs("div", { children: [
|
|
630
|
-
/* @__PURE__ */ l.jsx(
|
|
629
|
+
/* @__PURE__ */ l.jsx(Lo, { className: "inline me-2", children: t ? /* @__PURE__ */ l.jsx(
|
|
631
630
|
"button",
|
|
632
631
|
{
|
|
633
632
|
onClick: () => i(!c),
|
|
@@ -653,7 +652,7 @@ const nn = fe, ti = ({
|
|
|
653
652
|
}
|
|
654
653
|
) : e.name }) }),
|
|
655
654
|
/* @__PURE__ */ l.jsx(
|
|
656
|
-
|
|
655
|
+
yo,
|
|
657
656
|
{
|
|
658
657
|
className: "inline",
|
|
659
658
|
schema: a,
|
|
@@ -666,37 +665,37 @@ const nn = fe, ti = ({
|
|
|
666
665
|
)
|
|
667
666
|
] }),
|
|
668
667
|
o && /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
669
|
-
e.description && /* @__PURE__ */ l.jsx(
|
|
668
|
+
e.description && /* @__PURE__ */ l.jsx(Ue, { content: e.description, className: "prose-sm" }),
|
|
670
669
|
a.description && /* @__PURE__ */ l.jsx(
|
|
671
|
-
|
|
670
|
+
Ue,
|
|
672
671
|
{
|
|
673
672
|
content: a.description,
|
|
674
673
|
className: "prose-sm"
|
|
675
674
|
}
|
|
676
675
|
),
|
|
677
|
-
a.type === "array" && a.items?.enum ? /* @__PURE__ */ l.jsx(
|
|
678
|
-
/* @__PURE__ */ l.jsx(
|
|
676
|
+
a.type === "array" && a.items?.enum ? /* @__PURE__ */ l.jsx(Yr, { values: a.items.enum }) : a.enum && /* @__PURE__ */ l.jsx(Yr, { values: a.enum }),
|
|
677
|
+
/* @__PURE__ */ l.jsx(go, { schema: a })
|
|
679
678
|
] })
|
|
680
679
|
] }),
|
|
681
|
-
t && /* @__PURE__ */ l.jsx(
|
|
682
|
-
|
|
680
|
+
t && /* @__PURE__ */ l.jsx(Fo, { className: "self-start", children: /* @__PURE__ */ l.jsx(
|
|
681
|
+
Ne,
|
|
683
682
|
{
|
|
684
683
|
variant: "ghost",
|
|
685
684
|
size: "icon",
|
|
686
685
|
className: "rounded-full",
|
|
687
686
|
onClick: () => i(!c),
|
|
688
687
|
"aria-label": "Toggle parameter",
|
|
689
|
-
children: c ? /* @__PURE__ */ l.jsx(
|
|
688
|
+
children: c ? /* @__PURE__ */ l.jsx(Qa, { size: 16 }) : /* @__PURE__ */ l.jsx(Ka, { size: 16 })
|
|
690
689
|
}
|
|
691
690
|
) }),
|
|
692
691
|
t && /* @__PURE__ */ l.jsx(
|
|
693
|
-
|
|
692
|
+
tn.Root,
|
|
694
693
|
{
|
|
695
694
|
defaultOpen: !1,
|
|
696
695
|
open: c,
|
|
697
696
|
onOpenChange: i,
|
|
698
697
|
className: fe("w-full", !c && "contents"),
|
|
699
|
-
children: /* @__PURE__ */ l.jsx(
|
|
698
|
+
children: /* @__PURE__ */ l.jsx(tn.Content, { asChild: !0, children: /* @__PURE__ */ l.jsx(en, { children: /* @__PURE__ */ l.jsx(
|
|
700
699
|
Ir,
|
|
701
700
|
{
|
|
702
701
|
schema: "items" in a ? a.items : a
|
|
@@ -705,7 +704,7 @@ const nn = fe, ti = ({
|
|
|
705
704
|
}
|
|
706
705
|
)
|
|
707
706
|
] });
|
|
708
|
-
},
|
|
707
|
+
}, ni = ({
|
|
709
708
|
summary: e,
|
|
710
709
|
group: n,
|
|
711
710
|
parameters: r,
|
|
@@ -716,13 +715,13 @@ const nn = fe, ti = ({
|
|
|
716
715
|
);
|
|
717
716
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
718
717
|
/* @__PURE__ */ l.jsxs(
|
|
719
|
-
|
|
718
|
+
Me,
|
|
720
719
|
{
|
|
721
720
|
level: 3,
|
|
722
721
|
id: `${a}/${n}-parameters`,
|
|
723
722
|
className: "capitalize",
|
|
724
723
|
children: [
|
|
725
|
-
e && /* @__PURE__ */ l.jsxs(
|
|
724
|
+
e && /* @__PURE__ */ l.jsxs(Ao, { children: [
|
|
726
725
|
e,
|
|
727
726
|
" › "
|
|
728
727
|
] }),
|
|
@@ -730,10 +729,10 @@ const nn = fe, ti = ({
|
|
|
730
729
|
]
|
|
731
730
|
}
|
|
732
731
|
),
|
|
733
|
-
/* @__PURE__ */ l.jsx(
|
|
734
|
-
t > 0 && /* @__PURE__ */ l.jsx(
|
|
732
|
+
/* @__PURE__ */ l.jsx(Io, { children: /* @__PURE__ */ l.jsx(_o, { className: "p-0!", children: /* @__PURE__ */ l.jsx(Ho, { className: "overflow-clip", children: c.map((i, t) => /* @__PURE__ */ l.jsxs($o, { children: [
|
|
733
|
+
t > 0 && /* @__PURE__ */ l.jsx(Mo, {}),
|
|
735
734
|
/* @__PURE__ */ l.jsx(
|
|
736
|
-
|
|
735
|
+
ri,
|
|
737
736
|
{
|
|
738
737
|
parameter: i,
|
|
739
738
|
id: a,
|
|
@@ -742,12 +741,12 @@ const nn = fe, ti = ({
|
|
|
742
741
|
)
|
|
743
742
|
] }, `${i.name}-${i.in}`)) }) }) })
|
|
744
743
|
] });
|
|
745
|
-
},
|
|
744
|
+
}, ai = ({
|
|
746
745
|
rootMargin: e = "0px",
|
|
747
746
|
threshold: n,
|
|
748
747
|
root: r
|
|
749
748
|
} = {}) => {
|
|
750
|
-
const [a, c] = ge(!1), i =
|
|
749
|
+
const [a, c] = ge(!1), i = So(null);
|
|
751
750
|
return Cr(() => {
|
|
752
751
|
const t = new IntersectionObserver(
|
|
753
752
|
([s]) => {
|
|
@@ -758,7 +757,7 @@ const nn = fe, ti = ({
|
|
|
758
757
|
if (o)
|
|
759
758
|
return t.observe(o), () => t.unobserve(o);
|
|
760
759
|
}, [r, e, n]), [i, a];
|
|
761
|
-
},
|
|
760
|
+
}, oi = () => /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-linear-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 transition-all group-hover:to-transparent" }), _r = ({
|
|
762
761
|
code: e,
|
|
763
762
|
className: n
|
|
764
763
|
}) => /* @__PURE__ */ l.jsx(
|
|
@@ -770,7 +769,7 @@ const nn = fe, ti = ({
|
|
|
770
769
|
),
|
|
771
770
|
children: /* @__PURE__ */ l.jsxs("code", { children: [
|
|
772
771
|
e.split(`
|
|
773
|
-
`).length > 13 && /* @__PURE__ */ l.jsx(
|
|
772
|
+
`).length > 13 && /* @__PURE__ */ l.jsx(oi, {}),
|
|
774
773
|
e
|
|
775
774
|
] })
|
|
776
775
|
}
|
|
@@ -795,7 +794,7 @@ const nn = fe, ti = ({
|
|
|
795
794
|
),
|
|
796
795
|
children: e
|
|
797
796
|
}
|
|
798
|
-
),
|
|
797
|
+
), Ur = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
|
|
799
798
|
"div",
|
|
800
799
|
{
|
|
801
800
|
"data-slot": "sidecar-box-body",
|
|
@@ -807,7 +806,7 @@ const nn = fe, ti = ({
|
|
|
807
806
|
),
|
|
808
807
|
children: e
|
|
809
808
|
}
|
|
810
|
-
),
|
|
809
|
+
), ii = ({ children: e, className: n }) => /* @__PURE__ */ l.jsx(
|
|
811
810
|
"div",
|
|
812
811
|
{
|
|
813
812
|
"data-slot": "sidecar-box-footer",
|
|
@@ -817,20 +816,20 @@ const nn = fe, ti = ({
|
|
|
817
816
|
),
|
|
818
817
|
children: e
|
|
819
818
|
}
|
|
820
|
-
),
|
|
819
|
+
), si = ({
|
|
821
820
|
code: e,
|
|
822
821
|
isOnScreen: n,
|
|
823
822
|
shouldLazyHighlight: r
|
|
824
823
|
}) => /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
825
824
|
/* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
826
825
|
/* @__PURE__ */ l.jsx("span", { className: "font-medium", children: "Example Request Body" }),
|
|
827
|
-
/* @__PURE__ */ l.jsx(
|
|
828
|
-
/* @__PURE__ */ l.jsx(
|
|
829
|
-
/* @__PURE__ */ l.jsx(
|
|
826
|
+
/* @__PURE__ */ l.jsx(ja, { children: /* @__PURE__ */ l.jsxs(wa, { children: [
|
|
827
|
+
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
|
|
828
|
+
/* @__PURE__ */ l.jsx(Sa, { children: "This example is auto-generated from the schema." })
|
|
830
829
|
] }) })
|
|
831
830
|
] }) }),
|
|
832
|
-
/* @__PURE__ */ l.jsx(
|
|
833
|
-
|
|
831
|
+
/* @__PURE__ */ l.jsx(Ur, { className: "p-0", children: r && !n ? /* @__PURE__ */ l.jsx(_r, { code: e }) : /* @__PURE__ */ l.jsx(
|
|
832
|
+
Oa,
|
|
834
833
|
{
|
|
835
834
|
embedded: !0,
|
|
836
835
|
language: "json",
|
|
@@ -838,7 +837,7 @@ const nn = fe, ti = ({
|
|
|
838
837
|
className: "[--scrollbar-color:gray] rounded-none text-xs max-h-[200px]"
|
|
839
838
|
}
|
|
840
839
|
) })
|
|
841
|
-
] }),
|
|
840
|
+
] }), li = ({
|
|
842
841
|
server: e,
|
|
843
842
|
servers: n,
|
|
844
843
|
operation: r,
|
|
@@ -863,7 +862,7 @@ const nn = fe, ti = ({
|
|
|
863
862
|
defaultValue: o.schema?.default
|
|
864
863
|
}));
|
|
865
864
|
return /* @__PURE__ */ l.jsx(
|
|
866
|
-
|
|
865
|
+
eo,
|
|
867
866
|
{
|
|
868
867
|
server: e,
|
|
869
868
|
servers: n,
|
|
@@ -875,10 +874,10 @@ const nn = fe, ti = ({
|
|
|
875
874
|
examples: a
|
|
876
875
|
}
|
|
877
876
|
);
|
|
878
|
-
},
|
|
877
|
+
}, ci = (e) => {
|
|
879
878
|
if (e != null)
|
|
880
879
|
return typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2);
|
|
881
|
-
},
|
|
880
|
+
}, ui = (e) => e ? e.endsWith("+json") ? "json" : e.endsWith("+xml") ? "xml" : e.endsWith("+yaml") ? "yaml" : {
|
|
882
881
|
"text/html": "html",
|
|
883
882
|
"application/x-ndjson": "json",
|
|
884
883
|
"application/json": "json",
|
|
@@ -887,7 +886,7 @@ const nn = fe, ti = ({
|
|
|
887
886
|
"text/csv": "csv",
|
|
888
887
|
"application/javascript": "javascript",
|
|
889
888
|
"application/graphql": "graphql"
|
|
890
|
-
}[e] ?? "plain" : "plain",
|
|
889
|
+
}[e] ?? "plain" : "plain", Pa = ({
|
|
891
890
|
content: e,
|
|
892
891
|
description: n,
|
|
893
892
|
onExampleChange: r,
|
|
@@ -896,9 +895,9 @@ const nn = fe, ti = ({
|
|
|
896
895
|
isOnScreen: i,
|
|
897
896
|
shouldLazyHighlight: t
|
|
898
897
|
}) => {
|
|
899
|
-
const o = e[a], s = o?.examples ?? [], u = s?.[c], p =
|
|
898
|
+
const o = e[a], s = o?.examples ?? [], u = s?.[c], p = ci(u?.value), d = ui(o?.mediaType);
|
|
900
899
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
901
|
-
/* @__PURE__ */ l.jsxs(
|
|
900
|
+
/* @__PURE__ */ l.jsxs(Ur, { className: "p-0", children: [
|
|
902
901
|
u?.externalValue ? /* @__PURE__ */ l.jsx("div", { className: "p-4", children: /* @__PURE__ */ l.jsxs(
|
|
903
902
|
"a",
|
|
904
903
|
{
|
|
@@ -908,11 +907,11 @@ const nn = fe, ti = ({
|
|
|
908
907
|
className: "text-xs text-primary hover:underline",
|
|
909
908
|
children: [
|
|
910
909
|
"View External Example",
|
|
911
|
-
/* @__PURE__ */ l.jsx(
|
|
910
|
+
/* @__PURE__ */ l.jsx(Ie, { className: "size-3 inline-block ms-1 align-[-0.125em]" })
|
|
912
911
|
]
|
|
913
912
|
}
|
|
914
|
-
) }) : t && !i && p ? /* @__PURE__ */ l.jsx(
|
|
915
|
-
|
|
913
|
+
) }) : t && !i && p ? /* @__PURE__ */ l.jsx(_r, { code: p }) : p ? /* @__PURE__ */ l.jsx(
|
|
914
|
+
at,
|
|
916
915
|
{
|
|
917
916
|
embedded: !0,
|
|
918
917
|
language: d,
|
|
@@ -922,11 +921,11 @@ const nn = fe, ti = ({
|
|
|
922
921
|
) : /* @__PURE__ */ l.jsx("div", { className: "grid place-items-center text-xs text-muted-foreground min-h-18", children: "No example specified for this content type" }),
|
|
923
922
|
u?.description && /* @__PURE__ */ l.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: u.description })
|
|
924
923
|
] }),
|
|
925
|
-
/* @__PURE__ */ l.jsxs(
|
|
924
|
+
/* @__PURE__ */ l.jsxs(ii, { className: "text-xs", children: [
|
|
926
925
|
n && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground text-xs px-1 py-2", children: n }),
|
|
927
926
|
(s.length !== 0 || e.length !== 0) && /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0", children: [
|
|
928
927
|
/* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-2 flex-wrap", children: e.length > 1 ? /* @__PURE__ */ l.jsx(
|
|
929
|
-
|
|
928
|
+
ze,
|
|
930
929
|
{
|
|
931
930
|
className: "text-xs h-fit py-1 truncate bg-background",
|
|
932
931
|
value: a.toString(),
|
|
@@ -935,7 +934,7 @@ const nn = fe, ti = ({
|
|
|
935
934
|
exampleIndex: 0
|
|
936
935
|
}),
|
|
937
936
|
children: e.map((m, y) => /* @__PURE__ */ l.jsx(
|
|
938
|
-
|
|
937
|
+
Ge,
|
|
939
938
|
{
|
|
940
939
|
value: y.toString(),
|
|
941
940
|
children: m.mediaType
|
|
@@ -944,7 +943,7 @@ const nn = fe, ti = ({
|
|
|
944
943
|
))
|
|
945
944
|
}
|
|
946
945
|
) : /* @__PURE__ */ l.jsx(
|
|
947
|
-
|
|
946
|
+
Be,
|
|
948
947
|
{
|
|
949
948
|
className: "text-[11px] font-mono font-normal",
|
|
950
949
|
variant: "outline",
|
|
@@ -952,7 +951,7 @@ const nn = fe, ti = ({
|
|
|
952
951
|
}
|
|
953
952
|
) }),
|
|
954
953
|
s.length > 1 && /* @__PURE__ */ l.jsx(
|
|
955
|
-
|
|
954
|
+
ze,
|
|
956
955
|
{
|
|
957
956
|
className: "text-xs h-fit py-1 truncate bg-background",
|
|
958
957
|
value: c.toString(),
|
|
@@ -961,7 +960,7 @@ const nn = fe, ti = ({
|
|
|
961
960
|
exampleIndex: Number(m.target.value)
|
|
962
961
|
}),
|
|
963
962
|
children: s.map((m, y) => /* @__PURE__ */ l.jsx(
|
|
964
|
-
|
|
963
|
+
Ge,
|
|
965
964
|
{
|
|
966
965
|
value: y.toString(),
|
|
967
966
|
children: m.summary || m.name || m.description || `Example ${y + 1}`
|
|
@@ -973,17 +972,17 @@ const nn = fe, ti = ({
|
|
|
973
972
|
] })
|
|
974
973
|
] })
|
|
975
974
|
] });
|
|
976
|
-
},
|
|
975
|
+
}, pi = ({
|
|
977
976
|
content: e,
|
|
978
977
|
onExampleChange: n,
|
|
979
978
|
isOnScreen: r,
|
|
980
979
|
shouldLazyHighlight: a,
|
|
981
980
|
selectedContentIndex: c,
|
|
982
981
|
selectedExampleIndex: i
|
|
983
|
-
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(
|
|
982
|
+
}) => e.length === 0 ? null : /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
984
983
|
/* @__PURE__ */ l.jsx(pt, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center gap-1 font-medium", children: [
|
|
985
|
-
/* @__PURE__ */ l.jsx(
|
|
986
|
-
|
|
984
|
+
/* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
985
|
+
Ne,
|
|
987
986
|
{
|
|
988
987
|
variant: "ghost",
|
|
989
988
|
className: "size-fit px-1 py-1 -my-1",
|
|
@@ -997,7 +996,7 @@ const nn = fe, ti = ({
|
|
|
997
996
|
"Example Request Body"
|
|
998
997
|
] }) }),
|
|
999
998
|
/* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
|
|
1000
|
-
|
|
999
|
+
Pa,
|
|
1001
1000
|
{
|
|
1002
1001
|
selectedContentIndex: c,
|
|
1003
1002
|
selectedExampleIndex: i,
|
|
@@ -1007,7 +1006,7 @@ const nn = fe, ti = ({
|
|
|
1007
1006
|
shouldLazyHighlight: a
|
|
1008
1007
|
}
|
|
1009
1008
|
) })
|
|
1010
|
-
] }) }),
|
|
1009
|
+
] }) }), nn = ({
|
|
1011
1010
|
responses: e,
|
|
1012
1011
|
selectedResponse: n,
|
|
1013
1012
|
isOnScreen: r,
|
|
@@ -1021,11 +1020,11 @@ const nn = fe, ti = ({
|
|
|
1021
1020
|
n && t(n);
|
|
1022
1021
|
}, [n]), Cr(() => {
|
|
1023
1022
|
i && (s(0), p(0));
|
|
1024
|
-
}, [i]), /* @__PURE__ */ l.jsx(
|
|
1023
|
+
}, [i]), /* @__PURE__ */ l.jsx(Er, { className: "group/collapsible", defaultOpen: !0, children: /* @__PURE__ */ l.jsxs(ut, { children: [
|
|
1025
1024
|
/* @__PURE__ */ l.jsxs(pt, { className: "text-xs flex justify-between items-center", children: [
|
|
1026
1025
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1 font-medium shrink-0", children: [
|
|
1027
|
-
/* @__PURE__ */ l.jsx(
|
|
1028
|
-
|
|
1026
|
+
/* @__PURE__ */ l.jsx(Rr, { asChild: !0, children: /* @__PURE__ */ l.jsxs(
|
|
1027
|
+
Ne,
|
|
1029
1028
|
{
|
|
1030
1029
|
variant: "ghost",
|
|
1031
1030
|
className: "size-fit px-1 py-1 -my-1",
|
|
@@ -1037,19 +1036,19 @@ const nn = fe, ti = ({
|
|
|
1037
1036
|
}
|
|
1038
1037
|
) }),
|
|
1039
1038
|
"Example Responses",
|
|
1040
|
-
c && /* @__PURE__ */ l.jsx(
|
|
1041
|
-
/* @__PURE__ */ l.jsx(
|
|
1042
|
-
/* @__PURE__ */ l.jsx(
|
|
1039
|
+
c && /* @__PURE__ */ l.jsx(ja, { children: /* @__PURE__ */ l.jsxs(wa, { children: [
|
|
1040
|
+
/* @__PURE__ */ l.jsx($a, { asChild: !0, children: /* @__PURE__ */ l.jsx(xa, { size: 13 }) }),
|
|
1041
|
+
/* @__PURE__ */ l.jsx(Sa, { children: "This example is auto-generated from the schema." })
|
|
1043
1042
|
] }) })
|
|
1044
1043
|
] }),
|
|
1045
1044
|
/* @__PURE__ */ l.jsx("div", { className: "group-data-[state=closed]/collapsible:invisible", children: /* @__PURE__ */ l.jsx(
|
|
1046
|
-
|
|
1045
|
+
ze,
|
|
1047
1046
|
{
|
|
1048
1047
|
className: "text-xs h-fit py-1 -my-1 bg-background",
|
|
1049
1048
|
value: i,
|
|
1050
1049
|
onChange: (d) => t(d.target.value),
|
|
1051
1050
|
children: e.map((d) => /* @__PURE__ */ l.jsx(
|
|
1052
|
-
|
|
1051
|
+
Ge,
|
|
1053
1052
|
{
|
|
1054
1053
|
value: d.statusCode,
|
|
1055
1054
|
children: d.statusCode
|
|
@@ -1060,7 +1059,7 @@ const nn = fe, ti = ({
|
|
|
1060
1059
|
) })
|
|
1061
1060
|
] }),
|
|
1062
1061
|
/* @__PURE__ */ l.jsx(Ar, { children: /* @__PURE__ */ l.jsx(
|
|
1063
|
-
|
|
1062
|
+
Pa,
|
|
1064
1063
|
{
|
|
1065
1064
|
selectedContentIndex: o,
|
|
1066
1065
|
selectedExampleIndex: u,
|
|
@@ -1074,17 +1073,17 @@ const nn = fe, ti = ({
|
|
|
1074
1073
|
) })
|
|
1075
1074
|
] }) });
|
|
1076
1075
|
};
|
|
1077
|
-
var
|
|
1076
|
+
var an = (e, n) => {
|
|
1078
1077
|
const r = e[n.name];
|
|
1079
1078
|
return r === void 0 ? (e[n.name] = n.value, e) : Array.isArray(r) ? (r.push(n.value), e) : (e[n.name] = [r, n.value], e);
|
|
1080
|
-
},
|
|
1079
|
+
}, on = "", sn = `
|
|
1081
1080
|
`, Q = class {
|
|
1082
1081
|
/**
|
|
1083
1082
|
* Helper object to format and aggragate lines of code.
|
|
1084
1083
|
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
|
|
1085
1084
|
*/
|
|
1086
1085
|
constructor({ indent: e, join: n } = {}) {
|
|
1087
|
-
this.postProcessors = [], this.code = [], this.indentationCharacter =
|
|
1086
|
+
this.postProcessors = [], this.code = [], this.indentationCharacter = on, this.lineJoin = sn, this.indentLine = (r, a = 0) => `${this.indentationCharacter.repeat(a)}${r}`, this.unshift = (r, a) => {
|
|
1088
1087
|
const c = this.indentLine(r, a);
|
|
1089
1088
|
this.code.unshift(c);
|
|
1090
1089
|
}, this.push = (r, a) => {
|
|
@@ -1097,30 +1096,30 @@ var on = (e, n) => {
|
|
|
1097
1096
|
return this.postProcessors.reduce((c, i) => i(c), r);
|
|
1098
1097
|
}, this.addPostProcessor = (r) => {
|
|
1099
1098
|
this.postProcessors = [...this.postProcessors, r];
|
|
1100
|
-
}, this.indentationCharacter = e ||
|
|
1099
|
+
}, this.indentationCharacter = e || on, this.lineJoin = n ?? sn;
|
|
1101
1100
|
}
|
|
1102
|
-
}, Ot,
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1101
|
+
}, Ot, ln;
|
|
1102
|
+
function fi() {
|
|
1103
|
+
return ln || (ln = 1, Ot = function(e) {
|
|
1105
1104
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1106
1105
|
}), Ot;
|
|
1107
1106
|
}
|
|
1108
|
-
var Tt,
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1107
|
+
var Tt, cn;
|
|
1108
|
+
function di() {
|
|
1109
|
+
return cn || (cn = 1, Tt = function(e) {
|
|
1111
1110
|
var n = typeof e;
|
|
1112
1111
|
return e !== null && (n === "object" || n === "function");
|
|
1113
1112
|
}), Tt;
|
|
1114
1113
|
}
|
|
1115
|
-
var
|
|
1116
|
-
function
|
|
1117
|
-
return
|
|
1114
|
+
var nt = {}, un;
|
|
1115
|
+
function hi() {
|
|
1116
|
+
return un || (un = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.default = (e) => Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n))), nt;
|
|
1118
1117
|
}
|
|
1119
|
-
var Ct,
|
|
1120
|
-
function
|
|
1121
|
-
if (
|
|
1122
|
-
|
|
1123
|
-
const e =
|
|
1118
|
+
var Ct, pn;
|
|
1119
|
+
function mi() {
|
|
1120
|
+
if (pn) return Ct;
|
|
1121
|
+
pn = 1;
|
|
1122
|
+
const e = fi(), n = di(), r = hi().default;
|
|
1124
1123
|
return Ct = (a, c, i) => {
|
|
1125
1124
|
const t = [];
|
|
1126
1125
|
return (function o(s, u, p) {
|
|
@@ -1180,14 +1179,14 @@ function gi() {
|
|
|
1180
1179
|
})(a, c, i);
|
|
1181
1180
|
}, Ct;
|
|
1182
1181
|
}
|
|
1183
|
-
var
|
|
1184
|
-
const ue = /* @__PURE__ */
|
|
1185
|
-
function
|
|
1182
|
+
var yi = mi();
|
|
1183
|
+
const ue = /* @__PURE__ */ Bo(yi);
|
|
1184
|
+
function We(e, n = {}) {
|
|
1186
1185
|
const { delimiter: r = '"', escapeChar: a = "\\", escapeNewlines: c = !0 } = n;
|
|
1187
1186
|
return [...e.toString()].map((t) => t === "\b" ? `${a}b` : t === " " ? `${a}t` : t === `
|
|
1188
1187
|
` ? c ? `${a}n` : t : t === "\f" ? `${a}f` : t === "\r" ? c ? `${a}r` : t : t === a ? a + a : t === r ? a + r : t < " " || t > "~" ? JSON.stringify(t).slice(1, -1) : t).join("");
|
|
1189
1188
|
}
|
|
1190
|
-
var
|
|
1189
|
+
var Ve = (e) => We(e, { delimiter: "'" }), le = (e) => We(e, { delimiter: '"' }), gi = {
|
|
1191
1190
|
info: {
|
|
1192
1191
|
key: "libcurl",
|
|
1193
1192
|
title: "Libcurl",
|
|
@@ -1203,7 +1202,7 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1203
1202
|
i(`headers = curl_slist_append(headers, "${u}: ${le(r[u])}");`);
|
|
1204
1203
|
}), i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), a.cookie && (t(), i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${a.cookie}");`)), c.text && (t(), i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(c.text)});`)), t(), i("CURLcode ret = curl_easy_perform(hnd);"), o();
|
|
1205
1204
|
}
|
|
1206
|
-
},
|
|
1205
|
+
}, vi = {
|
|
1207
1206
|
info: {
|
|
1208
1207
|
key: "c",
|
|
1209
1208
|
title: "C",
|
|
@@ -1211,30 +1210,30 @@ var We = (e) => Ge(e, { delimiter: "'" }), le = (e) => Ge(e, { delimiter: '"' })
|
|
|
1211
1210
|
cli: "c"
|
|
1212
1211
|
},
|
|
1213
1212
|
clientsById: {
|
|
1214
|
-
libcurl:
|
|
1213
|
+
libcurl: gi
|
|
1215
1214
|
}
|
|
1216
1215
|
}, pe = (e, n) => Object.keys(e).find((r) => r.toLowerCase() === n.toLowerCase()), ve = (e, n) => {
|
|
1217
1216
|
const r = pe(e, n);
|
|
1218
1217
|
if (r)
|
|
1219
1218
|
return e[r];
|
|
1220
|
-
}, ft = (e, n) => !!pe(e, n),
|
|
1219
|
+
}, ft = (e, n) => !!pe(e, n), xi = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
|
|
1221
1220
|
(n) => e.indexOf(n) > -1
|
|
1222
|
-
),
|
|
1221
|
+
), fn = class {
|
|
1223
1222
|
constructor(e) {
|
|
1224
1223
|
this.name = "", this.toString = () => `:${this.name}`, this.name = e;
|
|
1225
1224
|
}
|
|
1226
|
-
},
|
|
1225
|
+
}, bi = class {
|
|
1227
1226
|
constructor(e) {
|
|
1228
1227
|
this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
|
|
1229
1228
|
}
|
|
1230
|
-
},
|
|
1229
|
+
}, Na = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), ka = (e) => e === void 0 ? !0 : Na(e) === "object" ? Object.keys(e).length === 0 : !1, dn = (e) => (Object.keys(e).filter((n) => ka(e[n])).forEach((n) => {
|
|
1231
1230
|
delete e[n];
|
|
1232
|
-
}), e),
|
|
1231
|
+
}), e), ot = (e, n) => {
|
|
1233
1232
|
const r = " ".repeat(e);
|
|
1234
1233
|
return n.replace(/\n/g, `
|
|
1235
1234
|
${r}`);
|
|
1236
1235
|
}, Pr = (e) => {
|
|
1237
|
-
switch (
|
|
1236
|
+
switch (Na(e)) {
|
|
1238
1237
|
case "string":
|
|
1239
1238
|
return `"${e.replace(/"/g, '\\"')}"`;
|
|
1240
1239
|
case "file":
|
|
@@ -1247,20 +1246,20 @@ ${r}`);
|
|
|
1247
1246
|
return `#"${e.source}"`;
|
|
1248
1247
|
case "object": {
|
|
1249
1248
|
const n = Object.keys(e).reduce((r, a) => {
|
|
1250
|
-
const c =
|
|
1249
|
+
const c = ot(a.length + 2, Pr(e[a]));
|
|
1251
1250
|
return `${r}:${a} ${c}
|
|
1252
1251
|
`;
|
|
1253
1252
|
}, "").trim();
|
|
1254
|
-
return `{${
|
|
1253
|
+
return `{${ot(1, n)}}`;
|
|
1255
1254
|
}
|
|
1256
1255
|
case "array": {
|
|
1257
1256
|
const n = e.reduce((r, a) => `${r} ${Pr(a)}`, "").trim();
|
|
1258
|
-
return `[${
|
|
1257
|
+
return `[${ot(1, n)}]`;
|
|
1259
1258
|
}
|
|
1260
1259
|
default:
|
|
1261
1260
|
return e.toString();
|
|
1262
1261
|
}
|
|
1263
|
-
},
|
|
1262
|
+
}, ji = {
|
|
1264
1263
|
info: {
|
|
1265
1264
|
key: "clj_http",
|
|
1266
1265
|
title: "clj-http",
|
|
@@ -1279,7 +1278,7 @@ ${r}`);
|
|
|
1279
1278
|
switch (r.mimeType) {
|
|
1280
1279
|
case "application/json":
|
|
1281
1280
|
{
|
|
1282
|
-
u["content-type"] = new
|
|
1281
|
+
u["content-type"] = new fn("json"), u["form-params"] = r.jsonObj;
|
|
1283
1282
|
const p = pe(u.headers, "content-type");
|
|
1284
1283
|
p && delete u.headers[p];
|
|
1285
1284
|
}
|
|
@@ -1302,7 +1301,7 @@ ${r}`);
|
|
|
1302
1301
|
if (r.params) {
|
|
1303
1302
|
u.multipart = r.params.map((d) => d.fileName && !d.value ? {
|
|
1304
1303
|
name: d.name,
|
|
1305
|
-
content: new
|
|
1304
|
+
content: new bi(d.fileName)
|
|
1306
1305
|
} : {
|
|
1307
1306
|
name: d.name,
|
|
1308
1307
|
content: d.value
|
|
@@ -1316,31 +1315,31 @@ ${r}`);
|
|
|
1316
1315
|
switch (ve(u.headers, "accept")) {
|
|
1317
1316
|
case "application/json":
|
|
1318
1317
|
{
|
|
1319
|
-
u.accept = new
|
|
1318
|
+
u.accept = new fn("json");
|
|
1320
1319
|
const p = pe(u.headers, "accept");
|
|
1321
1320
|
p && delete u.headers[p];
|
|
1322
1321
|
}
|
|
1323
1322
|
break;
|
|
1324
1323
|
}
|
|
1325
1324
|
if (t(`(require '[clj-http.client :as client])
|
|
1326
|
-
`),
|
|
1325
|
+
`), ka(dn(u)))
|
|
1327
1326
|
t(`(client/${n} "${a}")`);
|
|
1328
1327
|
else {
|
|
1329
|
-
const p = 11 + n.length + a.length, d =
|
|
1328
|
+
const p = 11 + n.length + a.length, d = ot(p, Pr(dn(u)));
|
|
1330
1329
|
t(`(client/${n} "${a}" ${d})`);
|
|
1331
1330
|
}
|
|
1332
1331
|
return o();
|
|
1333
1332
|
}
|
|
1334
|
-
},
|
|
1333
|
+
}, wi = {
|
|
1335
1334
|
info: {
|
|
1336
1335
|
key: "clojure",
|
|
1337
1336
|
title: "Clojure",
|
|
1338
1337
|
default: "clj_http"
|
|
1339
1338
|
},
|
|
1340
1339
|
clientsById: {
|
|
1341
|
-
clj_http:
|
|
1340
|
+
clj_http: ji
|
|
1342
1341
|
}
|
|
1343
|
-
},
|
|
1342
|
+
}, $i = (e) => {
|
|
1344
1343
|
let n = ve(e, "accept-encoding");
|
|
1345
1344
|
if (!n)
|
|
1346
1345
|
return [];
|
|
@@ -1357,7 +1356,7 @@ ${r}`);
|
|
|
1357
1356
|
}
|
|
1358
1357
|
});
|
|
1359
1358
|
}), a;
|
|
1360
|
-
},
|
|
1359
|
+
}, Si = {
|
|
1361
1360
|
info: {
|
|
1362
1361
|
key: "httpclient",
|
|
1363
1362
|
title: "HttpClient",
|
|
@@ -1372,7 +1371,7 @@ ${r}`);
|
|
|
1372
1371
|
}, { push: t, join: o } = new Q({ indent: i.indent });
|
|
1373
1372
|
t("using System.Net.Http.Headers;");
|
|
1374
1373
|
let s = "";
|
|
1375
|
-
const u = !!e.cookie, p =
|
|
1374
|
+
const u = !!e.cookie, p = $i(e);
|
|
1376
1375
|
(u || p.length) && (s = "clientHandler", t("var clientHandler = new HttpClientHandler"), t("{"), u && t("UseCookies = false,", 1), p.length && t(`AutomaticDecompression = ${p.join(" | ")},`, 1), t("};")), t(`var client = new HttpClient(${s});`), t("var request = new HttpRequestMessage"), t("{");
|
|
1377
1376
|
const d = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
|
|
1378
1377
|
r = r.toUpperCase(), r && d.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, t(`Method = ${r},`, 1), t(`RequestUri = new Uri("${a}"),`, 1);
|
|
@@ -1409,10 +1408,10 @@ ${r}`);
|
|
|
1409
1408
|
return t("};"), t("using (var response = await client.SendAsync(request))"), t("{"), t("response.EnsureSuccessStatusCode();", 1), t("var body = await response.Content.ReadAsStringAsync();", 1), t("Console.WriteLine(body);", 1), t("}"), o();
|
|
1410
1409
|
}
|
|
1411
1410
|
};
|
|
1412
|
-
function
|
|
1411
|
+
function Oi(e) {
|
|
1413
1412
|
return e[0].toUpperCase() + e.slice(1).toLowerCase();
|
|
1414
1413
|
}
|
|
1415
|
-
var
|
|
1414
|
+
var Ti = {
|
|
1416
1415
|
info: {
|
|
1417
1416
|
key: "restsharp",
|
|
1418
1417
|
title: "RestSharp",
|
|
@@ -1462,11 +1461,11 @@ var Pi = {
|
|
|
1462
1461
|
if (!c.text) break;
|
|
1463
1462
|
t(`request.AddStringBody("${c.text}", "${c.mimeType}");`);
|
|
1464
1463
|
}
|
|
1465
|
-
return t(`var response = await client.${
|
|
1464
|
+
return t(`var response = await client.${Oi(e)}Async(request);
|
|
1466
1465
|
`), t(`Console.WriteLine("{0}", response.Content);
|
|
1467
1466
|
`), o();
|
|
1468
1467
|
}
|
|
1469
|
-
},
|
|
1468
|
+
}, Ci = {
|
|
1470
1469
|
info: {
|
|
1471
1470
|
key: "csharp",
|
|
1472
1471
|
title: "C#",
|
|
@@ -1474,10 +1473,10 @@ var Pi = {
|
|
|
1474
1473
|
cli: "dotnet"
|
|
1475
1474
|
},
|
|
1476
1475
|
clientsById: {
|
|
1477
|
-
httpclient:
|
|
1478
|
-
restsharp:
|
|
1476
|
+
httpclient: Si,
|
|
1477
|
+
restsharp: Ti
|
|
1479
1478
|
}
|
|
1480
|
-
},
|
|
1479
|
+
}, Pi = {
|
|
1481
1480
|
info: {
|
|
1482
1481
|
key: "native",
|
|
1483
1482
|
title: "NewRequest",
|
|
@@ -1495,7 +1494,7 @@ var Pi = {
|
|
|
1495
1494
|
t(`req.Header.Add("${v}", "${le(r[v])}")`, y);
|
|
1496
1495
|
}), i()), t(`res, ${m} := ${g}.Do(req)`, y), j(), p && (i(), t("defer res.Body.Close()", y), t(`body, ${m} := io.ReadAll(res.Body)`, y), j()), i(), p && t("fmt.Println(string(body))", y), s && (i(), t("}")), o();
|
|
1497
1496
|
}
|
|
1498
|
-
},
|
|
1497
|
+
}, Ni = {
|
|
1499
1498
|
info: {
|
|
1500
1499
|
key: "go",
|
|
1501
1500
|
title: "Go",
|
|
@@ -1503,10 +1502,10 @@ var Pi = {
|
|
|
1503
1502
|
cli: "go"
|
|
1504
1503
|
},
|
|
1505
1504
|
clientsById: {
|
|
1506
|
-
native:
|
|
1505
|
+
native: Pi
|
|
1507
1506
|
}
|
|
1508
|
-
},
|
|
1509
|
-
`,
|
|
1507
|
+
}, hn = `\r
|
|
1508
|
+
`, ki = {
|
|
1510
1509
|
info: {
|
|
1511
1510
|
key: "http1.1",
|
|
1512
1511
|
title: "HTTP/1.1",
|
|
@@ -1520,7 +1519,7 @@ var Pi = {
|
|
|
1520
1519
|
autoContentLength: !0,
|
|
1521
1520
|
autoHost: !0,
|
|
1522
1521
|
...t
|
|
1523
|
-
}, { blank: s, push: u, join: p } = new Q({ indent: "", join:
|
|
1522
|
+
}, { blank: s, push: u, join: p } = new Q({ indent: "", join: hn }), d = o.absoluteURI ? n : r.path;
|
|
1524
1523
|
u(`${e} ${d} ${a}`);
|
|
1525
1524
|
const m = Object.keys(c);
|
|
1526
1525
|
if (m.forEach((b) => {
|
|
@@ -1532,18 +1531,18 @@ var Pi = {
|
|
|
1532
1531
|
}
|
|
1533
1532
|
s();
|
|
1534
1533
|
const y = p(), j = i.text || "";
|
|
1535
|
-
return `${y}${
|
|
1534
|
+
return `${y}${hn}${j}`;
|
|
1536
1535
|
}
|
|
1537
|
-
},
|
|
1536
|
+
}, qi = {
|
|
1538
1537
|
info: {
|
|
1539
1538
|
key: "http",
|
|
1540
1539
|
title: "HTTP",
|
|
1541
1540
|
default: "http1.1"
|
|
1542
1541
|
},
|
|
1543
1542
|
clientsById: {
|
|
1544
|
-
"http1.1":
|
|
1543
|
+
"http1.1": ki
|
|
1545
1544
|
}
|
|
1546
|
-
},
|
|
1545
|
+
}, Ei = {
|
|
1547
1546
|
info: {
|
|
1548
1547
|
key: "asynchttp",
|
|
1549
1548
|
title: "AsyncHttp",
|
|
@@ -1560,7 +1559,7 @@ var Pi = {
|
|
|
1560
1559
|
o(`.setHeader("${u}", "${le(n[u])}")`, 1);
|
|
1561
1560
|
}), r.text && o(`.setBody(${JSON.stringify(r.text)})`, 1), o(".execute()", 1), o(".toCompletableFuture()", 1), o(".thenAccept(System.out::println)", 1), o(".join();", 1), t(), o("client.close();"), s();
|
|
1562
1561
|
}
|
|
1563
|
-
},
|
|
1562
|
+
}, Ri = {
|
|
1564
1563
|
info: {
|
|
1565
1564
|
key: "nethttp",
|
|
1566
1565
|
title: "java.net.http",
|
|
@@ -1582,7 +1581,7 @@ var Pi = {
|
|
|
1582
1581
|
"HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
|
|
1583
1582
|
), t("System.out.println(response.body());"), o();
|
|
1584
1583
|
}
|
|
1585
|
-
},
|
|
1584
|
+
}, Ai = {
|
|
1586
1585
|
info: {
|
|
1587
1586
|
key: "okhttp",
|
|
1588
1587
|
title: "OkHttp",
|
|
@@ -1599,7 +1598,7 @@ var Pi = {
|
|
|
1599
1598
|
t(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1600
1599
|
}), t(".build();", 1), o(), t("Response response = client.newCall(request).execute();"), s();
|
|
1601
1600
|
}
|
|
1602
|
-
},
|
|
1601
|
+
}, Ii = {
|
|
1603
1602
|
info: {
|
|
1604
1603
|
key: "unirest",
|
|
1605
1604
|
title: "Unirest",
|
|
@@ -1623,12 +1622,12 @@ var Pi = {
|
|
|
1623
1622
|
default: "unirest"
|
|
1624
1623
|
},
|
|
1625
1624
|
clientsById: {
|
|
1626
|
-
asynchttp:
|
|
1627
|
-
nethttp:
|
|
1628
|
-
okhttp:
|
|
1629
|
-
unirest:
|
|
1625
|
+
asynchttp: Ei,
|
|
1626
|
+
nethttp: Ri,
|
|
1627
|
+
okhttp: Ai,
|
|
1628
|
+
unirest: Ii
|
|
1630
1629
|
}
|
|
1631
|
-
},
|
|
1630
|
+
}, Ui = {
|
|
1632
1631
|
info: {
|
|
1633
1632
|
key: "axios",
|
|
1634
1633
|
title: "Axios",
|
|
@@ -1672,7 +1671,7 @@ var Pi = {
|
|
|
1672
1671
|
}).replace('"[form]"', "form");
|
|
1673
1672
|
return s(`const options = ${m};`), o(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), u();
|
|
1674
1673
|
}
|
|
1675
|
-
},
|
|
1674
|
+
}, Li = {
|
|
1676
1675
|
info: {
|
|
1677
1676
|
key: "fetch",
|
|
1678
1677
|
title: "fetch",
|
|
@@ -1725,7 +1724,7 @@ var Pi = {
|
|
|
1725
1724
|
})};`
|
|
1726
1725
|
), t(), r.params && r.mimeType === "multipart/form-data" && (s("options.body = form;"), t()), s(`fetch('${a}', options)`), s(".then(response => response.json())", 1), s(".then(response => console.log(response))", 1), s(".catch(err => console.error(err));", 1), o();
|
|
1727
1726
|
}
|
|
1728
|
-
},
|
|
1727
|
+
}, Fi = {
|
|
1729
1728
|
info: {
|
|
1730
1729
|
key: "jquery",
|
|
1731
1730
|
title: "jQuery",
|
|
@@ -1768,7 +1767,7 @@ var Pi = {
|
|
|
1768
1767
|
const p = ue(u, { indent: i.indent }).replace("'[form]'", "form");
|
|
1769
1768
|
return o(`const settings = ${p};`), t(), o("$.ajax(settings).done(function (response) {"), o("console.log(response);", 1), o("});"), s();
|
|
1770
1769
|
}
|
|
1771
|
-
},
|
|
1770
|
+
}, Hi = {
|
|
1772
1771
|
info: {
|
|
1773
1772
|
key: "xhr",
|
|
1774
1773
|
title: "XMLHttpRequest",
|
|
@@ -1805,22 +1804,22 @@ var Pi = {
|
|
|
1805
1804
|
o(`const data = ${e.text ? `'${e.text}'` : "null"};`), t();
|
|
1806
1805
|
}
|
|
1807
1806
|
return o("const xhr = new XMLHttpRequest();"), i.cors && o("xhr.withCredentials = true;"), t(), o("xhr.addEventListener('readystatechange', function () {"), o("if (this.readyState === this.DONE) {", 1), o("console.log(this.responseText);", 2), o("}", 1), o("});"), t(), o(`xhr.open('${r}', '${a}');`), Object.keys(n).forEach((u) => {
|
|
1808
|
-
o(`xhr.setRequestHeader('${u}', '${
|
|
1807
|
+
o(`xhr.setRequestHeader('${u}', '${Ve(n[u])}');`);
|
|
1809
1808
|
}), t(), o("xhr.send(data);"), s();
|
|
1810
1809
|
}
|
|
1811
|
-
},
|
|
1810
|
+
}, Mi = {
|
|
1812
1811
|
info: {
|
|
1813
1812
|
key: "javascript",
|
|
1814
1813
|
title: "JavaScript",
|
|
1815
1814
|
default: "xhr"
|
|
1816
1815
|
},
|
|
1817
1816
|
clientsById: {
|
|
1818
|
-
xhr:
|
|
1819
|
-
axios:
|
|
1820
|
-
fetch:
|
|
1821
|
-
jquery:
|
|
1817
|
+
xhr: Hi,
|
|
1818
|
+
axios: Ui,
|
|
1819
|
+
fetch: Li,
|
|
1820
|
+
jquery: Fi
|
|
1822
1821
|
}
|
|
1823
|
-
},
|
|
1822
|
+
}, Bi = {
|
|
1824
1823
|
info: {
|
|
1825
1824
|
key: "native",
|
|
1826
1825
|
title: "Native JSON",
|
|
@@ -1854,16 +1853,16 @@ var Pi = {
|
|
|
1854
1853
|
}
|
|
1855
1854
|
return typeof a > "u" || a === "" ? "No JSON body" : JSON.stringify(a, null, r.indent);
|
|
1856
1855
|
}
|
|
1857
|
-
},
|
|
1856
|
+
}, zi = {
|
|
1858
1857
|
info: {
|
|
1859
1858
|
key: "json",
|
|
1860
1859
|
title: "JSON",
|
|
1861
1860
|
default: "native"
|
|
1862
1861
|
},
|
|
1863
1862
|
clientsById: {
|
|
1864
|
-
native:
|
|
1863
|
+
native: Bi
|
|
1865
1864
|
}
|
|
1866
|
-
},
|
|
1865
|
+
}, Gi = {
|
|
1867
1866
|
info: {
|
|
1868
1867
|
key: "okhttp",
|
|
1869
1868
|
title: "OkHttp",
|
|
@@ -1880,16 +1879,16 @@ var Pi = {
|
|
|
1880
1879
|
s(`.addHeader("${d}", "${le(a[d])}")`, 1);
|
|
1881
1880
|
}), s(".build()", 1), t(), s("val response = client.newCall(request).execute()"), o();
|
|
1882
1881
|
}
|
|
1883
|
-
},
|
|
1882
|
+
}, Wi = {
|
|
1884
1883
|
info: {
|
|
1885
1884
|
key: "kotlin",
|
|
1886
1885
|
title: "Kotlin",
|
|
1887
1886
|
default: "okhttp"
|
|
1888
1887
|
},
|
|
1889
1888
|
clientsById: {
|
|
1890
|
-
okhttp:
|
|
1889
|
+
okhttp: Gi
|
|
1891
1890
|
}
|
|
1892
|
-
},
|
|
1891
|
+
}, Vi = {
|
|
1893
1892
|
info: {
|
|
1894
1893
|
key: "axios",
|
|
1895
1894
|
title: "Axios",
|
|
@@ -1923,7 +1922,7 @@ var Pi = {
|
|
|
1923
1922
|
const d = ue(p, { indent: " ", inlineCharacterLimit: 80 });
|
|
1924
1923
|
return s(`const options = ${d};`), t(), s("axios"), s(".request(options)", 1), s(".then(function (response) {", 1), s("console.log(response.data);", 2), s("})", 1), s(".catch(function (error) {", 1), s("console.error(error);", 2), s("});", 1), o();
|
|
1925
1924
|
}
|
|
1926
|
-
},
|
|
1925
|
+
}, Ji = {
|
|
1927
1926
|
info: {
|
|
1928
1927
|
key: "fetch",
|
|
1929
1928
|
title: "Fetch",
|
|
@@ -1982,7 +1981,7 @@ var Pi = {
|
|
|
1982
1981
|
});
|
|
1983
1982
|
return u(`const options = ${j};`), s(), o && d("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (u("options.body = formData;"), s()), u("fetch(url, options)"), u(".then(res => res.json())", 1), u(".then(json => console.log(json))", 1), u(".catch(err => console.error('error:' + err));", 1), p().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
|
|
1984
1983
|
}
|
|
1985
|
-
},
|
|
1984
|
+
}, Di = {
|
|
1986
1985
|
info: {
|
|
1987
1986
|
key: "native",
|
|
1988
1987
|
title: "HTTP",
|
|
@@ -2020,7 +2019,7 @@ var Pi = {
|
|
|
2020
2019
|
}
|
|
2021
2020
|
return s("req.end();"), o();
|
|
2022
2021
|
}
|
|
2023
|
-
},
|
|
2022
|
+
}, Qi = {
|
|
2024
2023
|
info: {
|
|
2025
2024
|
key: "request",
|
|
2026
2025
|
title: "Request",
|
|
@@ -2073,7 +2072,7 @@ var Pi = {
|
|
|
2073
2072
|
u(`jar.setCookie(request.cookie('${encodeURIComponent(b)}=${encodeURIComponent(f)}'), '${n}');`);
|
|
2074
2073
|
}), p(), y((b) => b.replace(/'JAR'/, "jar"))), s && m("const fs = require('fs');"), u(`const options = ${ue(j, { indent: " ", inlineCharacterLimit: 80 })};`), p(), u("request(options, function (error, response, body) {"), u("if (error) throw new Error(error);", 1), p(), u("console.log(body);", 1), u("});"), d();
|
|
2075
2074
|
}
|
|
2076
|
-
},
|
|
2075
|
+
}, Ki = {
|
|
2077
2076
|
info: {
|
|
2078
2077
|
key: "unirest",
|
|
2079
2078
|
title: "Unirest",
|
|
@@ -2114,7 +2113,7 @@ var Pi = {
|
|
|
2114
2113
|
}
|
|
2115
2114
|
return s && y("const fs = require('fs');"), m("req.end(function (res) {"), m("if (res.error) throw new Error(res.error);", 1), p(), m("console.log(res.body);", 1), m("});"), d();
|
|
2116
2115
|
}
|
|
2117
|
-
},
|
|
2116
|
+
}, Yi = {
|
|
2118
2117
|
info: {
|
|
2119
2118
|
key: "node",
|
|
2120
2119
|
title: "Node.js",
|
|
@@ -2122,11 +2121,11 @@ var Pi = {
|
|
|
2122
2121
|
cli: "node %s"
|
|
2123
2122
|
},
|
|
2124
2123
|
clientsById: {
|
|
2125
|
-
native:
|
|
2126
|
-
request:
|
|
2127
|
-
unirest:
|
|
2128
|
-
axios:
|
|
2129
|
-
fetch:
|
|
2124
|
+
native: Di,
|
|
2125
|
+
request: Qi,
|
|
2126
|
+
unirest: Ki,
|
|
2127
|
+
axios: Vi,
|
|
2128
|
+
fetch: Ji
|
|
2130
2129
|
}
|
|
2131
2130
|
}, Pt = (e, n, r, a) => {
|
|
2132
2131
|
const c = `${e} *${n} = `, i = Nr(r, a ? c.length : void 0);
|
|
@@ -2150,7 +2149,7 @@ var Pi = {
|
|
|
2150
2149
|
default:
|
|
2151
2150
|
return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2152
2151
|
}
|
|
2153
|
-
},
|
|
2152
|
+
}, Xi = {
|
|
2154
2153
|
info: {
|
|
2155
2154
|
key: "nsurlsession",
|
|
2156
2155
|
title: "NSURLSession",
|
|
@@ -2206,16 +2205,16 @@ var Pi = {
|
|
|
2206
2205
|
2
|
|
2207
2206
|
), t(' NSLog(@"%@", httpResponse);', 2), t(" }", 1), t(" }];"), t("[dataTask resume];"), o();
|
|
2208
2207
|
}
|
|
2209
|
-
},
|
|
2208
|
+
}, Zi = {
|
|
2210
2209
|
info: {
|
|
2211
2210
|
key: "objc",
|
|
2212
2211
|
title: "Objective-C",
|
|
2213
2212
|
default: "nsurlsession"
|
|
2214
2213
|
},
|
|
2215
2214
|
clientsById: {
|
|
2216
|
-
nsurlsession:
|
|
2215
|
+
nsurlsession: Xi
|
|
2217
2216
|
}
|
|
2218
|
-
},
|
|
2217
|
+
}, es = {
|
|
2219
2218
|
info: {
|
|
2220
2219
|
key: "cohttp",
|
|
2221
2220
|
title: "CoHTTP",
|
|
@@ -2241,14 +2240,14 @@ var Pi = {
|
|
|
2241
2240
|
const d = p.length ? "~headers " : "", m = r.text ? "~body " : "", y = t.includes(a.toLowerCase()) ? `\`${a.toUpperCase()}` : `(Code.method_of_string "${a}")`;
|
|
2242
2241
|
return o(`Client.call ${d}${m}${y} uri`), o(">>= fun (res, body_stream) ->"), o("(* Do stuff with the result *)", 1), u();
|
|
2243
2242
|
}
|
|
2244
|
-
},
|
|
2243
|
+
}, ts = {
|
|
2245
2244
|
info: {
|
|
2246
2245
|
key: "ocaml",
|
|
2247
2246
|
title: "OCaml",
|
|
2248
2247
|
default: "cohttp"
|
|
2249
2248
|
},
|
|
2250
2249
|
clientsById: {
|
|
2251
|
-
cohttp:
|
|
2250
|
+
cohttp: es
|
|
2252
2251
|
}
|
|
2253
2252
|
}, re = (e, n, r) => {
|
|
2254
2253
|
switch (r = r || "", n = n || "", Object.prototype.toString.call(e)) {
|
|
@@ -2259,7 +2258,7 @@ var Pi = {
|
|
|
2259
2258
|
case "[object Undefined]":
|
|
2260
2259
|
return "null";
|
|
2261
2260
|
case "[object String]":
|
|
2262
|
-
return `'${
|
|
2261
|
+
return `'${We(e, { delimiter: "'", escapeNewlines: !1 })}'`;
|
|
2263
2262
|
case "[object Number]":
|
|
2264
2263
|
return e.toString();
|
|
2265
2264
|
case "[object Array]": {
|
|
@@ -2281,7 +2280,7 @@ ${r}]`;
|
|
|
2281
2280
|
default:
|
|
2282
2281
|
return "null";
|
|
2283
2282
|
}
|
|
2284
|
-
},
|
|
2283
|
+
}, mn = [
|
|
2285
2284
|
"ACL",
|
|
2286
2285
|
"BASELINE_CONTROL",
|
|
2287
2286
|
"CHECKIN",
|
|
@@ -2309,7 +2308,7 @@ ${r}]`;
|
|
|
2309
2308
|
"UNLOCK",
|
|
2310
2309
|
"UPDATE",
|
|
2311
2310
|
"VERSION_CONTROL"
|
|
2312
|
-
],
|
|
2311
|
+
], rs = {
|
|
2313
2312
|
info: {
|
|
2314
2313
|
key: "curl",
|
|
2315
2314
|
title: "cURL",
|
|
@@ -2387,7 +2386,7 @@ ${u}` });
|
|
|
2387
2386
|
return h.length && (S.push("CURLOPT_HTTPHEADER => ["), S.push(h.join(`,
|
|
2388
2387
|
${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = curl_exec($curl);"), b("$err = curl_error($curl);"), f(), b("curl_close($curl);"), f(), b("if ($err) {"), b(d ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), b("} else {"), b("echo $response;", 1), b("}"), !m && s && (f(), b("?>")), g();
|
|
2389
2388
|
}
|
|
2390
|
-
},
|
|
2389
|
+
}, ns = {
|
|
2391
2390
|
info: {
|
|
2392
2391
|
key: "guzzle",
|
|
2393
2392
|
title: "Guzzle",
|
|
@@ -2432,12 +2431,12 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2432
2431
|
e.text && d(`'body' => ${re(e.text)},`, 1);
|
|
2433
2432
|
}
|
|
2434
2433
|
const y = Object.keys(c).sort().map(function(b) {
|
|
2435
|
-
return `${t.indent}${t.indent}'${b}' => '${
|
|
2434
|
+
return `${t.indent}${t.indent}'${b}' => '${Ve(c[b])}',`;
|
|
2436
2435
|
}), j = a.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
|
|
2437
|
-
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${
|
|
2436
|
+
return j.length && y.push(`${t.indent}${t.indent}'cookie' => '${Ve(j)}',`), y.length && (d("'headers' => [", 1), d(y.join(`
|
|
2438
2437
|
`)), d("],", 1)), o("$client = new \\GuzzleHttp\\Client();"), s(), p.length ? (o(`$response = $client->request('${r}', '${n}', [`), o(m()), o("]);")) : o(`$response = $client->request('${r}', '${n}');`), s(), o("echo $response->getBody();"), !t.noTags && t.closingTag && (s(), o("?>")), u();
|
|
2439
2438
|
}
|
|
2440
|
-
},
|
|
2439
|
+
}, as = {
|
|
2441
2440
|
info: {
|
|
2442
2441
|
key: "http1",
|
|
2443
2442
|
title: "HTTP v1",
|
|
@@ -2447,7 +2446,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2447
2446
|
},
|
|
2448
2447
|
convert: ({ method: e, url: n, postData: r, queryObj: a, headersObj: c, cookiesObj: i }, t = {}) => {
|
|
2449
2448
|
const { closingTag: o = !1, indent: s = " ", noTags: u = !1, shortTags: p = !1 } = t, { push: d, blank: m, join: y } = new Q({ indent: s });
|
|
2450
|
-
switch (u || (d(p ? "<?" : "<?php"), m()),
|
|
2449
|
+
switch (u || (d(p ? "<?" : "<?php"), m()), mn.includes(e.toUpperCase()) || d(`HttpRequest::methodRegister('${e}');`), d("$request = new HttpRequest();"), d(`$request->setUrl(${re(n)});`), mn.includes(e.toUpperCase()) ? d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), m(), Object.keys(a).length && (d(`$request->setQueryData(${re(a, s)});`), m()), Object.keys(c).length && (d(`$request->setHeaders(${re(c, s)});`), m()), Object.keys(i).length && (d(`$request->setCookies(${re(i, s)});`), m()), r.mimeType) {
|
|
2451
2450
|
case "application/x-www-form-urlencoded":
|
|
2452
2451
|
d(`$request->setContentType(${re(r.mimeType)});`), d(`$request->setPostFields(${re(r.paramsObj, s)});`), m();
|
|
2453
2452
|
break;
|
|
@@ -2459,7 +2458,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2459
2458
|
}
|
|
2460
2459
|
return d("try {"), d("$response = $request->send();", 1), m(), d("echo $response->getBody();", 1), d("} catch (HttpException $ex) {"), d("echo $ex;", 1), d("}"), !u && o && (m(), d("?>")), y();
|
|
2461
2460
|
}
|
|
2462
|
-
},
|
|
2461
|
+
}, os = {
|
|
2463
2462
|
info: {
|
|
2464
2463
|
key: "http2",
|
|
2465
2464
|
title: "HTTP v2",
|
|
@@ -2506,7 +2505,7 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2506
2505
|
}
|
|
2507
2506
|
return d(`$request->setRequestUrl(${re(i)});`), d(`$request->setRequestMethod(${re(r)});`), j && (d("$request->setBody($body);"), m()), Object.keys(a).length && (d(`$request->setQuery(new http\\QueryString(${re(a, s)}));`), m()), Object.keys(n).length && (d(`$request->setHeaders(${re(n, s)});`), m()), Object.keys(c).length && (m(), d(`$client->setCookies(${re(c, s)});`), m()), d("$client->enqueue($request)->send();"), d("$response = $client->getResponse();"), m(), d("echo $response->getBody();"), !u && o && (m(), d("?>")), y();
|
|
2508
2507
|
}
|
|
2509
|
-
},
|
|
2508
|
+
}, is = {
|
|
2510
2509
|
info: {
|
|
2511
2510
|
key: "php",
|
|
2512
2511
|
title: "PHP",
|
|
@@ -2514,24 +2513,24 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2514
2513
|
cli: "php %s"
|
|
2515
2514
|
},
|
|
2516
2515
|
clientsById: {
|
|
2517
|
-
curl:
|
|
2518
|
-
guzzle:
|
|
2519
|
-
http1:
|
|
2520
|
-
http2:
|
|
2516
|
+
curl: rs,
|
|
2517
|
+
guzzle: ns,
|
|
2518
|
+
http1: as,
|
|
2519
|
+
http2: os
|
|
2521
2520
|
}
|
|
2522
|
-
},
|
|
2521
|
+
}, qa = (e) => ({ method: r, headersObj: a, cookies: c, uriObj: i, fullUrl: t, postData: o, allHeaders: s }) => {
|
|
2523
2522
|
const { push: u, join: p } = new Q();
|
|
2524
2523
|
if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
|
|
2525
2524
|
return "Method not supported";
|
|
2526
2525
|
const m = [], y = Object.keys(a);
|
|
2527
2526
|
return y.length && (u("$headers=@{}"), y.forEach((j) => {
|
|
2528
|
-
j !== "connection" && u(`$headers.Add("${j}", "${
|
|
2527
|
+
j !== "connection" && u(`$headers.Add("${j}", "${We(a[j], { escapeChar: "`" })}")`);
|
|
2529
2528
|
}), m.push("-Headers $headers")), c.length && (u("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), c.forEach((j) => {
|
|
2530
2529
|
u("$cookie = New-Object System.Net.Cookie"), u(`$cookie.Name = '${j.name}'`), u(`$cookie.Value = '${j.value}'`), u(`$cookie.Domain = '${i.host}'`), u("$session.Cookies.Add($cookie)");
|
|
2531
2530
|
}), m.push("-WebSession $session")), o.text && (m.push(
|
|
2532
|
-
`-ContentType '${
|
|
2531
|
+
`-ContentType '${We(ve(s, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
|
|
2533
2532
|
), m.push(`-Body '${o.text}'`)), u(`$response = ${e} -Uri '${t}' -Method ${r} ${m.join(" ")}`.trim()), p();
|
|
2534
|
-
},
|
|
2533
|
+
}, ss = {
|
|
2535
2534
|
info: {
|
|
2536
2535
|
key: "restmethod",
|
|
2537
2536
|
title: "Invoke-RestMethod",
|
|
@@ -2539,8 +2538,8 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2539
2538
|
description: "Powershell Invoke-RestMethod client",
|
|
2540
2539
|
extname: ".ps1"
|
|
2541
2540
|
},
|
|
2542
|
-
convert:
|
|
2543
|
-
},
|
|
2541
|
+
convert: qa("Invoke-RestMethod")
|
|
2542
|
+
}, ls = {
|
|
2544
2543
|
info: {
|
|
2545
2544
|
key: "webrequest",
|
|
2546
2545
|
title: "Invoke-WebRequest",
|
|
@@ -2548,39 +2547,39 @@ ${u}${u}`), 1), S.push("],")), b(S.join(), 1), b("]);"), f(), b("$response = cur
|
|
|
2548
2547
|
description: "Powershell Invoke-WebRequest client",
|
|
2549
2548
|
extname: ".ps1"
|
|
2550
2549
|
},
|
|
2551
|
-
convert:
|
|
2552
|
-
},
|
|
2550
|
+
convert: qa("Invoke-WebRequest")
|
|
2551
|
+
}, cs = {
|
|
2553
2552
|
info: {
|
|
2554
2553
|
key: "powershell",
|
|
2555
2554
|
title: "Powershell",
|
|
2556
2555
|
default: "webrequest"
|
|
2557
2556
|
},
|
|
2558
2557
|
clientsById: {
|
|
2559
|
-
webrequest:
|
|
2560
|
-
restmethod:
|
|
2558
|
+
webrequest: ls,
|
|
2559
|
+
restmethod: ss
|
|
2561
2560
|
}
|
|
2562
2561
|
};
|
|
2563
|
-
function
|
|
2562
|
+
function yn(e, n, r, a, c) {
|
|
2564
2563
|
const i = a.repeat(c), t = a.repeat(c - 1), o = r ? `,
|
|
2565
2564
|
${i}` : ", ", s = e === "object" ? "{" : "[", u = e === "object" ? "}" : "]";
|
|
2566
2565
|
return r ? `${s}
|
|
2567
2566
|
${i}${n.join(o)}
|
|
2568
2567
|
${t}${u}` : e === "object" && n.length > 0 ? `${s} ${n.join(o)} ${u}` : `${s}${n.join(o)}${u}`;
|
|
2569
2568
|
}
|
|
2570
|
-
var
|
|
2569
|
+
var _e = (e, n, r) => {
|
|
2571
2570
|
switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
|
|
2572
2571
|
case "[object Number]":
|
|
2573
2572
|
return e;
|
|
2574
2573
|
case "[object Array]": {
|
|
2575
2574
|
let a = !1;
|
|
2576
|
-
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1),
|
|
2577
|
-
return
|
|
2575
|
+
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), _e(i, n, r)));
|
|
2576
|
+
return yn("array", c, a, n.indent, r);
|
|
2578
2577
|
}
|
|
2579
2578
|
case "[object Object]": {
|
|
2580
2579
|
const a = [];
|
|
2581
2580
|
for (const c in e)
|
|
2582
|
-
a.push(`"${c}": ${
|
|
2583
|
-
return
|
|
2581
|
+
a.push(`"${c}": ${_e(e[c], n, r)}`);
|
|
2582
|
+
return yn("object", a, n.pretty && a.length > 1, n.indent, r);
|
|
2584
2583
|
}
|
|
2585
2584
|
case "[object Null]":
|
|
2586
2585
|
return "None";
|
|
@@ -2589,7 +2588,7 @@ var Ie = (e, n, r) => {
|
|
|
2589
2588
|
default:
|
|
2590
2589
|
return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2591
2590
|
}
|
|
2592
|
-
},
|
|
2591
|
+
}, us = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ps = {
|
|
2593
2592
|
info: {
|
|
2594
2593
|
key: "requests",
|
|
2595
2594
|
title: "Requests",
|
|
@@ -2611,7 +2610,7 @@ var Ie = (e, n, r) => {
|
|
|
2611
2610
|
let y = !1, j = !1, b = !1;
|
|
2612
2611
|
switch (n.mimeType) {
|
|
2613
2612
|
case "application/json":
|
|
2614
|
-
n.jsonObj && (t(`payload = ${
|
|
2613
|
+
n.jsonObj && (t(`payload = ${_e(n.jsonObj, i)}`), b = !0, j = !0);
|
|
2615
2614
|
break;
|
|
2616
2615
|
case "multipart/form-data":
|
|
2617
2616
|
if (!n.params)
|
|
@@ -2619,7 +2618,7 @@ var Ie = (e, n, r) => {
|
|
|
2619
2618
|
if (d = {}, n.params.forEach((v) => {
|
|
2620
2619
|
v.fileName ? (v.contentType ? m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : m[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (d[v.name] = v.value, j = !0);
|
|
2621
2620
|
}), y) {
|
|
2622
|
-
t(`files = ${
|
|
2621
|
+
t(`files = ${_e(m, i)}`), j && t(`payload = ${_e(d, i)}`);
|
|
2623
2622
|
const v = pe(p, "content-type");
|
|
2624
2623
|
v && delete p[v];
|
|
2625
2624
|
} else {
|
|
@@ -2632,7 +2631,7 @@ var Ie = (e, n, r) => {
|
|
|
2632
2631
|
break;
|
|
2633
2632
|
default: {
|
|
2634
2633
|
if (n.mimeType === "application/x-www-form-urlencoded" && n.paramsObj) {
|
|
2635
|
-
t(`payload = ${
|
|
2634
|
+
t(`payload = ${_e(n.paramsObj, i)}`), j = !0;
|
|
2636
2635
|
break;
|
|
2637
2636
|
}
|
|
2638
2637
|
const v = JSON.stringify(n.text);
|
|
@@ -2652,10 +2651,10 @@ var Ie = (e, n, r) => {
|
|
|
2652
2651
|
t(v !== f ? `"${S}": "${le(p[S])}",` : `"${S}": "${le(p[S])}"`, 1), v += 1;
|
|
2653
2652
|
}), t("}"), o();
|
|
2654
2653
|
}
|
|
2655
|
-
let g =
|
|
2654
|
+
let g = us.includes(a) ? `response = requests.${a.toLowerCase()}(url` : `response = requests.request("${a}", url`;
|
|
2656
2655
|
return j && (b ? g += ", json=payload" : g += ", data=payload"), y && (g += ", files=files"), f > 0 && (g += ", headers=headers"), g += ")", t(g), o(), t("print(response.text)"), s();
|
|
2657
2656
|
}
|
|
2658
|
-
},
|
|
2657
|
+
}, fs = {
|
|
2659
2658
|
info: {
|
|
2660
2659
|
key: "python",
|
|
2661
2660
|
title: "Python",
|
|
@@ -2663,9 +2662,9 @@ var Ie = (e, n, r) => {
|
|
|
2663
2662
|
cli: "python3 %s"
|
|
2664
2663
|
},
|
|
2665
2664
|
clientsById: {
|
|
2666
|
-
requests:
|
|
2665
|
+
requests: ps
|
|
2667
2666
|
}
|
|
2668
|
-
},
|
|
2667
|
+
}, ds = {
|
|
2669
2668
|
info: {
|
|
2670
2669
|
key: "httr",
|
|
2671
2670
|
title: "httr",
|
|
@@ -2698,22 +2697,22 @@ var Ie = (e, n, r) => {
|
|
|
2698
2697
|
t('encode <- "raw"'), o();
|
|
2699
2698
|
break;
|
|
2700
2699
|
}
|
|
2701
|
-
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${
|
|
2700
|
+
const m = ve(c, "cookie"), y = ve(c, "accept"), j = m ? `set_cookies(\`${String(m).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, b = y ? `accept("${le(y)}")` : void 0, f = `content_type("${le(a.mimeType)}")`, g = Object.entries(c).filter(([h]) => !["cookie", "accept", "content-type"].includes(h.toLowerCase())).map(([h, T]) => `'${h}' = '${Ve(T)}'`).join(", "), v = g ? `add_headers(${g})` : void 0;
|
|
2702
2701
|
let S = `response <- VERB("${i}", url`;
|
|
2703
2702
|
d && (S += ", body = payload"), r.length && (S += ", query = queryString");
|
|
2704
2703
|
const C = [v, f, b, j].filter((h) => !!h).join(", ");
|
|
2705
2704
|
return C && (S += `, ${C}`), (a.text || a.jsonObj || a.params) && (S += ", encode = encode"), S += ")", t(S), o(), t('content(response, "text")'), s();
|
|
2706
2705
|
}
|
|
2707
|
-
},
|
|
2706
|
+
}, hs = {
|
|
2708
2707
|
info: {
|
|
2709
2708
|
key: "r",
|
|
2710
2709
|
title: "R",
|
|
2711
2710
|
default: "httr"
|
|
2712
2711
|
},
|
|
2713
2712
|
clientsById: {
|
|
2714
|
-
httr:
|
|
2713
|
+
httr: ds
|
|
2715
2714
|
}
|
|
2716
|
-
},
|
|
2715
|
+
}, ms = {
|
|
2717
2716
|
info: {
|
|
2718
2717
|
key: "native",
|
|
2719
2718
|
title: "net::http",
|
|
@@ -2741,19 +2740,19 @@ var Ie = (e, n, r) => {
|
|
|
2741
2740
|
u.includes(s) || (i(`class Net::HTTP::${p} < Net::HTTPRequest`), i(` METHOD = '${s.toUpperCase()}'`), i(` REQUEST_HAS_BODY = '${a.text ? "true" : "false"}'`), i(" RESPONSE_HAS_BODY = true"), i("end"), t()), i(`url = URI("${r}")`), t(), i("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && i("http.use_ssl = true"), t(), i(`request = Net::HTTP::${p}.new(url)`);
|
|
2742
2741
|
const d = Object.keys(c);
|
|
2743
2742
|
return d.length && d.forEach((m) => {
|
|
2744
|
-
i(`request["${m}"] = '${
|
|
2743
|
+
i(`request["${m}"] = '${Ve(c[m])}'`);
|
|
2745
2744
|
}), a.text && i(`request.body = ${JSON.stringify(a.text)}`), t(), i("response = http.request(request)"), i("puts response.read_body"), o();
|
|
2746
2745
|
}
|
|
2747
|
-
},
|
|
2746
|
+
}, ys = {
|
|
2748
2747
|
info: {
|
|
2749
2748
|
key: "ruby",
|
|
2750
2749
|
title: "Ruby",
|
|
2751
2750
|
default: "native"
|
|
2752
2751
|
},
|
|
2753
2752
|
clientsById: {
|
|
2754
|
-
native:
|
|
2753
|
+
native: ms
|
|
2755
2754
|
}
|
|
2756
|
-
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`,
|
|
2755
|
+
}, ce = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, gs = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), vs = {
|
|
2757
2756
|
"http1.0": "0",
|
|
2758
2757
|
"url ": "",
|
|
2759
2758
|
cookie: "b",
|
|
@@ -2763,13 +2762,13 @@ var Ie = (e, n, r) => {
|
|
|
2763
2762
|
header: "H",
|
|
2764
2763
|
insecure: "k",
|
|
2765
2764
|
request: "X"
|
|
2766
|
-
},
|
|
2765
|
+
}, xs = (e) => (n) => {
|
|
2767
2766
|
if (e) {
|
|
2768
|
-
const r =
|
|
2767
|
+
const r = vs[n];
|
|
2769
2768
|
return r ? `-${r}` : "";
|
|
2770
2769
|
}
|
|
2771
2770
|
return `--${n}`;
|
|
2772
|
-
},
|
|
2771
|
+
}, bs = {
|
|
2773
2772
|
info: {
|
|
2774
2773
|
key: "curl",
|
|
2775
2774
|
title: "cURL",
|
|
@@ -2782,7 +2781,7 @@ var Ie = (e, n, r) => {
|
|
|
2782
2781
|
...typeof o == "string" ? { indent: o } : {},
|
|
2783
2782
|
join: o !== !1 ? ` \\
|
|
2784
2783
|
${o}` : " "
|
|
2785
|
-
}), j =
|
|
2784
|
+
}), j = xs(s);
|
|
2786
2785
|
let b = ce(e);
|
|
2787
2786
|
if (m(`curl ${j("request")} ${n}`), p && (b = unescape(b), m(j("globoff"))), m(`${j("url ")}${b}`), r === "HTTP/1.0" && m(j("http1.0")), ve(c, "accept-encoding") && m("--compressed"), i.mimeType === "multipart/form-data") {
|
|
2788
2787
|
const f = pe(a, "content-type");
|
|
@@ -2814,7 +2813,7 @@ ${o}` : " "
|
|
|
2814
2813
|
if (!i.text)
|
|
2815
2814
|
break;
|
|
2816
2815
|
let f = !1;
|
|
2817
|
-
if (
|
|
2816
|
+
if (xi(i.mimeType) && i.text.length > 20)
|
|
2818
2817
|
try {
|
|
2819
2818
|
const g = JSON.parse(i.text);
|
|
2820
2819
|
f = !0, i.text.indexOf("'") > 0 ? m(
|
|
@@ -2836,7 +2835,7 @@ ${JSON.stringify(g, null, d)}
|
|
|
2836
2835
|
}
|
|
2837
2836
|
return y();
|
|
2838
2837
|
}
|
|
2839
|
-
},
|
|
2838
|
+
}, js = {
|
|
2840
2839
|
info: {
|
|
2841
2840
|
key: "httpie",
|
|
2842
2841
|
title: "HTTPie",
|
|
@@ -2885,7 +2884,7 @@ ${o.indent}` : " "
|
|
|
2885
2884
|
}
|
|
2886
2885
|
return u();
|
|
2887
2886
|
}
|
|
2888
|
-
},
|
|
2887
|
+
}, ws = {
|
|
2889
2888
|
info: {
|
|
2890
2889
|
key: "wget",
|
|
2891
2890
|
title: "Wget",
|
|
@@ -2907,9 +2906,9 @@ ${i.indent}` : " "
|
|
|
2907
2906
|
return i.verbose ? t(`wget ${i.short ? "-v" : "--verbose"}`) : t(`wget ${i.short ? "-q" : "--quiet"}`), t(`--method ${ce(e)}`), Object.keys(r).forEach((s) => {
|
|
2908
2907
|
const u = `${s}: ${r[s]}`;
|
|
2909
2908
|
t(`--header ${ce(u)}`);
|
|
2910
|
-
}), n.text && t(`--body-data ${
|
|
2909
|
+
}), n.text && t(`--body-data ${gs(ce(n.text))}`), t(i.short ? "-O" : "--output-document"), t(`- ${ce(a)}`), o();
|
|
2911
2910
|
}
|
|
2912
|
-
},
|
|
2911
|
+
}, $s = {
|
|
2913
2912
|
info: {
|
|
2914
2913
|
key: "shell",
|
|
2915
2914
|
title: "Shell",
|
|
@@ -2917,30 +2916,30 @@ ${i.indent}` : " "
|
|
|
2917
2916
|
cli: "%s"
|
|
2918
2917
|
},
|
|
2919
2918
|
clientsById: {
|
|
2920
|
-
curl:
|
|
2921
|
-
httpie:
|
|
2922
|
-
wget:
|
|
2919
|
+
curl: bs,
|
|
2920
|
+
httpie: js,
|
|
2921
|
+
wget: ws
|
|
2923
2922
|
}
|
|
2924
|
-
},
|
|
2925
|
-
const c =
|
|
2923
|
+
}, gn = (e, n) => n.repeat(e), vn = (e, n, r, a) => {
|
|
2924
|
+
const c = gn(a, r), i = gn(a - 1, r), t = n ? `,
|
|
2926
2925
|
${c}` : ", ";
|
|
2927
2926
|
return n ? `[
|
|
2928
2927
|
${c}${e.join(t)}
|
|
2929
2928
|
${i}]` : `[${e.join(t)}]`;
|
|
2930
|
-
},
|
|
2929
|
+
}, xn = (e, n, r) => `let ${e} = ${st(n, r)}`, st = (e, n, r) => {
|
|
2931
2930
|
switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(e)) {
|
|
2932
2931
|
case "[object Number]":
|
|
2933
2932
|
return e;
|
|
2934
2933
|
case "[object Array]": {
|
|
2935
2934
|
let a = !1;
|
|
2936
2935
|
const c = e.map((i) => (Object.prototype.toString.call(i) === "[object Object]" && (a = Object.keys(i).length > 1), st(i, n, r)));
|
|
2937
|
-
return
|
|
2936
|
+
return vn(c, a, n.indent, r);
|
|
2938
2937
|
}
|
|
2939
2938
|
case "[object Object]": {
|
|
2940
2939
|
const a = [];
|
|
2941
2940
|
for (const c in e)
|
|
2942
2941
|
a.push(`"${c}": ${st(e[c], n, r)}`);
|
|
2943
|
-
return
|
|
2942
|
+
return vn(
|
|
2944
2943
|
a,
|
|
2945
2944
|
// @ts-expect-error needs better types
|
|
2946
2945
|
n.pretty && a.length > 1,
|
|
@@ -2954,7 +2953,7 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2954
2953
|
default:
|
|
2955
2954
|
return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
|
|
2956
2955
|
}
|
|
2957
|
-
},
|
|
2956
|
+
}, Ss = {
|
|
2958
2957
|
info: {
|
|
2959
2958
|
key: "urlsession",
|
|
2960
2959
|
title: "URLSession",
|
|
@@ -2980,10 +2979,10 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
2980
2979
|
}
|
|
2981
2980
|
break;
|
|
2982
2981
|
case "application/json":
|
|
2983
|
-
n.jsonObj && (o(`${
|
|
2982
|
+
n.jsonObj && (o(`${xn("parameters", n.jsonObj, t)} as [String : Any?]`), s(), o("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), s());
|
|
2984
2983
|
break;
|
|
2985
2984
|
case "multipart/form-data":
|
|
2986
|
-
o(
|
|
2985
|
+
o(xn("parameters", n.params, t)), s(), o(`let boundary = "${n.boundary}"`), s(), o('var body = ""'), o("for param in parameters {"), o('let paramName = param["name"]!', 1), o('body += "--\\(boundary)\\r\\n"', 1), o('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), o('if let filename = param["fileName"] {', 1), o('let contentType = param["contentType"]!', 2), o("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), o('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), o('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), o("body += fileContent", 2), o('} else if let paramValue = param["value"] {', 1), o('body += "\\r\\n\\r\\n\\(paramValue)"', 2), o("}", 1), o("}"), s(), o("let postData = Data(body.utf8)"), s();
|
|
2987
2986
|
break;
|
|
2988
2987
|
default:
|
|
2989
2988
|
o(`let postData = Data("${n.text}".utf8)`), s();
|
|
@@ -3004,40 +3003,40 @@ ${i}]` : `[${e.join(t)}]`;
|
|
|
3004
3003
|
}
|
|
3005
3004
|
}), o("]"), o("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), s(), o("var request = URLRequest(url: components.url!)")), o(`request.httpMethod = "${c}"`), o(`request.timeoutInterval = ${t.timeout}`), Object.keys(e).length && o(`request.allHTTPHeaderFields = ${st(e, t)}`), p && o("request.httpBody = postData"), s(), o("let (data, _) = try await URLSession.shared.data(for: request)"), o("print(String(decoding: data, as: UTF8.self))"), u();
|
|
3006
3005
|
}
|
|
3007
|
-
},
|
|
3006
|
+
}, Os = {
|
|
3008
3007
|
info: {
|
|
3009
3008
|
key: "swift",
|
|
3010
3009
|
title: "Swift",
|
|
3011
3010
|
default: "urlsession"
|
|
3012
3011
|
},
|
|
3013
3012
|
clientsById: {
|
|
3014
|
-
urlsession:
|
|
3013
|
+
urlsession: Ss
|
|
3015
3014
|
}
|
|
3016
|
-
},
|
|
3017
|
-
c:
|
|
3018
|
-
clojure:
|
|
3019
|
-
csharp:
|
|
3020
|
-
go:
|
|
3021
|
-
http:
|
|
3015
|
+
}, Ts = {
|
|
3016
|
+
c: vi,
|
|
3017
|
+
clojure: wi,
|
|
3018
|
+
csharp: Ci,
|
|
3019
|
+
go: Ni,
|
|
3020
|
+
http: qi,
|
|
3022
3021
|
java: _i,
|
|
3023
|
-
javascript:
|
|
3024
|
-
json:
|
|
3025
|
-
kotlin:
|
|
3026
|
-
node:
|
|
3027
|
-
objc:
|
|
3028
|
-
ocaml:
|
|
3029
|
-
php:
|
|
3030
|
-
powershell:
|
|
3031
|
-
python:
|
|
3032
|
-
r:
|
|
3033
|
-
ruby:
|
|
3034
|
-
shell:
|
|
3035
|
-
swift:
|
|
3036
|
-
}, Te = {},
|
|
3022
|
+
javascript: Mi,
|
|
3023
|
+
json: zi,
|
|
3024
|
+
kotlin: Wi,
|
|
3025
|
+
node: Yi,
|
|
3026
|
+
objc: Zi,
|
|
3027
|
+
ocaml: ts,
|
|
3028
|
+
php: is,
|
|
3029
|
+
powershell: cs,
|
|
3030
|
+
python: fs,
|
|
3031
|
+
r: hs,
|
|
3032
|
+
ruby: ys,
|
|
3033
|
+
shell: $s,
|
|
3034
|
+
swift: Os
|
|
3035
|
+
}, Te = {}, He = { exports: {} };
|
|
3037
3036
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3038
|
-
var
|
|
3039
|
-
function
|
|
3040
|
-
return
|
|
3037
|
+
var Cs = He.exports, bn;
|
|
3038
|
+
function Ps() {
|
|
3039
|
+
return bn || (bn = 1, (function(e, n) {
|
|
3041
3040
|
(function(r) {
|
|
3042
3041
|
var a = n && !n.nodeType && n, c = e && !e.nodeType && e, i = typeof it == "object" && it;
|
|
3043
3042
|
(i.global === i || i.window === i || i.self === i) && (r = i);
|
|
@@ -3054,15 +3053,15 @@ function ks() {
|
|
|
3054
3053
|
P[F] = q(N[F]);
|
|
3055
3054
|
return P;
|
|
3056
3055
|
}
|
|
3057
|
-
function
|
|
3056
|
+
function E(N, q) {
|
|
3058
3057
|
var F = N.split("@"), P = "";
|
|
3059
3058
|
F.length > 1 && (P = F[0] + "@", N = F[1]), N = N.replace(v, ".");
|
|
3060
|
-
var
|
|
3059
|
+
var _ = N.split("."), J = A(_, q).join(".");
|
|
3061
3060
|
return P + J;
|
|
3062
3061
|
}
|
|
3063
|
-
function
|
|
3064
|
-
for (var q = [], F = 0, P = N.length,
|
|
3065
|
-
|
|
3062
|
+
function U(N) {
|
|
3063
|
+
for (var q = [], F = 0, P = N.length, _, J; F < P; )
|
|
3064
|
+
_ = N.charCodeAt(F++), _ >= 55296 && _ <= 56319 && F < P ? (J = N.charCodeAt(F++), (J & 64512) == 56320 ? q.push(((_ & 1023) << 10) + (J & 1023) + 65536) : (q.push(_), F--)) : q.push(_);
|
|
3066
3065
|
return q;
|
|
3067
3066
|
}
|
|
3068
3067
|
function O(N) {
|
|
@@ -3074,7 +3073,7 @@ function ks() {
|
|
|
3074
3073
|
function B(N) {
|
|
3075
3074
|
return N - 48 < 10 ? N - 22 : N - 65 < 26 ? N - 65 : N - 97 < 26 ? N - 97 : s;
|
|
3076
3075
|
}
|
|
3077
|
-
function
|
|
3076
|
+
function L(N, q) {
|
|
3078
3077
|
return N + 22 + 75 * (N < 26) - ((q != 0) << 5);
|
|
3079
3078
|
}
|
|
3080
3079
|
function G(N, q, F) {
|
|
@@ -3084,42 +3083,42 @@ function ks() {
|
|
|
3084
3083
|
return h(P + (C + 1) * N / (N + d));
|
|
3085
3084
|
}
|
|
3086
3085
|
function se(N) {
|
|
3087
|
-
var q = [], F = N.length, P,
|
|
3086
|
+
var q = [], F = N.length, P, _ = 0, J = j, W = y, Y, ae, D, I, H, M, K, V, X;
|
|
3088
3087
|
for (Y = N.lastIndexOf(b), Y < 0 && (Y = 0), ae = 0; ae < Y; ++ae)
|
|
3089
3088
|
N.charCodeAt(ae) >= 128 && k("not-basic"), q.push(N.charCodeAt(ae));
|
|
3090
3089
|
for (D = Y > 0 ? Y + 1 : 0; D < F; ) {
|
|
3091
|
-
for (I =
|
|
3090
|
+
for (I = _, H = 1, M = s; D >= F && k("invalid-input"), K = B(N.charCodeAt(D++)), (K >= s || K > h((o - _) / H)) && k("overflow"), _ += K * H, V = M <= W ? u : M >= W + p ? p : M - W, !(K < V); M += s)
|
|
3092
3091
|
X = s - V, H > h(o / X) && k("overflow"), H *= X;
|
|
3093
|
-
P = q.length + 1, W = G(
|
|
3092
|
+
P = q.length + 1, W = G(_ - I, P, I == 0), h(_ / P) > o - J && k("overflow"), J += h(_ / P), _ %= P, q.splice(_++, 0, J);
|
|
3094
3093
|
}
|
|
3095
3094
|
return O(q);
|
|
3096
3095
|
}
|
|
3097
3096
|
function ee(N) {
|
|
3098
|
-
var q, F, P,
|
|
3099
|
-
for (N =
|
|
3097
|
+
var q, F, P, _, J, W, Y, ae, D, I, H, M = [], K, V, X, oe;
|
|
3098
|
+
for (N = U(N), K = N.length, q = j, F = 0, J = y, W = 0; W < K; ++W)
|
|
3100
3099
|
H = N[W], H < 128 && M.push(T(H));
|
|
3101
|
-
for (P =
|
|
3100
|
+
for (P = _ = M.length, _ && M.push(b); P < K; ) {
|
|
3102
3101
|
for (Y = o, W = 0; W < K; ++W)
|
|
3103
3102
|
H = N[W], H >= q && H < Y && (Y = H);
|
|
3104
3103
|
for (V = P + 1, Y - q > h((o - F) / V) && k("overflow"), F += (Y - q) * V, q = Y, W = 0; W < K; ++W)
|
|
3105
3104
|
if (H = N[W], H < q && ++F > o && k("overflow"), H == q) {
|
|
3106
3105
|
for (ae = F, D = s; I = D <= J ? u : D >= J + p ? p : D - J, !(ae < I); D += s)
|
|
3107
3106
|
oe = ae - I, X = s - I, M.push(
|
|
3108
|
-
T(
|
|
3107
|
+
T(L(I + oe % X, 0))
|
|
3109
3108
|
), ae = h(oe / X);
|
|
3110
|
-
M.push(T(
|
|
3109
|
+
M.push(T(L(ae, 0))), J = G(F, V, P == _), F = 0, ++P;
|
|
3111
3110
|
}
|
|
3112
3111
|
++F, ++q;
|
|
3113
3112
|
}
|
|
3114
3113
|
return M.join("");
|
|
3115
3114
|
}
|
|
3116
|
-
function
|
|
3117
|
-
return
|
|
3115
|
+
function R(N) {
|
|
3116
|
+
return E(N, function(q) {
|
|
3118
3117
|
return f.test(q) ? se(q.slice(4).toLowerCase()) : q;
|
|
3119
3118
|
});
|
|
3120
3119
|
}
|
|
3121
3120
|
function ne(N) {
|
|
3122
|
-
return
|
|
3121
|
+
return E(N, function(q) {
|
|
3123
3122
|
return g.test(q) ? "xn--" + ee(q) : q;
|
|
3124
3123
|
});
|
|
3125
3124
|
}
|
|
@@ -3138,13 +3137,13 @@ function ks() {
|
|
|
3138
3137
|
* @type Object
|
|
3139
3138
|
*/
|
|
3140
3139
|
ucs2: {
|
|
3141
|
-
decode:
|
|
3140
|
+
decode: U,
|
|
3142
3141
|
encode: O
|
|
3143
3142
|
},
|
|
3144
3143
|
decode: se,
|
|
3145
3144
|
encode: ee,
|
|
3146
3145
|
toASCII: ne,
|
|
3147
|
-
toUnicode:
|
|
3146
|
+
toUnicode: R
|
|
3148
3147
|
}, a && c)
|
|
3149
3148
|
if (e.exports == a)
|
|
3150
3149
|
c.exports = t;
|
|
@@ -3153,89 +3152,89 @@ function ks() {
|
|
|
3153
3152
|
t.hasOwnProperty(x) && (a[x] = t[x]);
|
|
3154
3153
|
else
|
|
3155
3154
|
r.punycode = t;
|
|
3156
|
-
})(
|
|
3157
|
-
})(
|
|
3155
|
+
})(Cs);
|
|
3156
|
+
})(He, He.exports)), He.exports;
|
|
3158
3157
|
}
|
|
3159
|
-
var Nt,
|
|
3158
|
+
var Nt, jn;
|
|
3160
3159
|
function Ea() {
|
|
3161
|
-
return
|
|
3160
|
+
return jn || (jn = 1, Nt = Object), Nt;
|
|
3162
3161
|
}
|
|
3163
3162
|
var kt, wn;
|
|
3164
|
-
function
|
|
3163
|
+
function Ns() {
|
|
3165
3164
|
return wn || (wn = 1, kt = Error), kt;
|
|
3166
3165
|
}
|
|
3167
|
-
var qt,
|
|
3168
|
-
function
|
|
3169
|
-
return
|
|
3166
|
+
var qt, $n;
|
|
3167
|
+
function ks() {
|
|
3168
|
+
return $n || ($n = 1, qt = EvalError), qt;
|
|
3169
|
+
}
|
|
3170
|
+
var Et, Sn;
|
|
3171
|
+
function qs() {
|
|
3172
|
+
return Sn || (Sn = 1, Et = RangeError), Et;
|
|
3170
3173
|
}
|
|
3171
3174
|
var Rt, On;
|
|
3172
3175
|
function Es() {
|
|
3173
|
-
return On || (On = 1, Rt =
|
|
3176
|
+
return On || (On = 1, Rt = ReferenceError), Rt;
|
|
3174
3177
|
}
|
|
3175
|
-
var
|
|
3176
|
-
function
|
|
3177
|
-
return Tn || (Tn = 1,
|
|
3178
|
+
var At, Tn;
|
|
3179
|
+
function Ra() {
|
|
3180
|
+
return Tn || (Tn = 1, At = SyntaxError), At;
|
|
3178
3181
|
}
|
|
3179
|
-
var
|
|
3180
|
-
function
|
|
3181
|
-
return Cn || (Cn = 1,
|
|
3182
|
+
var It, Cn;
|
|
3183
|
+
function De() {
|
|
3184
|
+
return Cn || (Cn = 1, It = TypeError), It;
|
|
3182
3185
|
}
|
|
3183
|
-
var
|
|
3184
|
-
function
|
|
3185
|
-
return Pn || (Pn = 1,
|
|
3186
|
+
var _t, Pn;
|
|
3187
|
+
function Rs() {
|
|
3188
|
+
return Pn || (Pn = 1, _t = URIError), _t;
|
|
3186
3189
|
}
|
|
3187
3190
|
var Ut, Nn;
|
|
3188
|
-
function
|
|
3189
|
-
return Nn || (Nn = 1, Ut =
|
|
3191
|
+
function As() {
|
|
3192
|
+
return Nn || (Nn = 1, Ut = Math.abs), Ut;
|
|
3190
3193
|
}
|
|
3191
3194
|
var Lt, kn;
|
|
3192
|
-
function
|
|
3193
|
-
return kn || (kn = 1, Lt = Math.
|
|
3194
|
-
}
|
|
3195
|
-
var _t, qn;
|
|
3196
|
-
function Ls() {
|
|
3197
|
-
return qn || (qn = 1, _t = Math.floor), _t;
|
|
3195
|
+
function Is() {
|
|
3196
|
+
return kn || (kn = 1, Lt = Math.floor), Lt;
|
|
3198
3197
|
}
|
|
3199
|
-
var Ft,
|
|
3198
|
+
var Ft, qn;
|
|
3200
3199
|
function _s() {
|
|
3201
|
-
return
|
|
3200
|
+
return qn || (qn = 1, Ft = Math.max), Ft;
|
|
3202
3201
|
}
|
|
3203
3202
|
var Ht, En;
|
|
3204
|
-
function
|
|
3203
|
+
function Us() {
|
|
3205
3204
|
return En || (En = 1, Ht = Math.min), Ht;
|
|
3206
3205
|
}
|
|
3207
|
-
var Mt,
|
|
3208
|
-
function
|
|
3209
|
-
return
|
|
3206
|
+
var Mt, Rn;
|
|
3207
|
+
function Ls() {
|
|
3208
|
+
return Rn || (Rn = 1, Mt = Math.pow), Mt;
|
|
3210
3209
|
}
|
|
3211
|
-
var Bt,
|
|
3212
|
-
function
|
|
3213
|
-
return
|
|
3210
|
+
var Bt, An;
|
|
3211
|
+
function Fs() {
|
|
3212
|
+
return An || (An = 1, Bt = Math.round), Bt;
|
|
3214
3213
|
}
|
|
3215
|
-
var zt,
|
|
3216
|
-
function
|
|
3217
|
-
return
|
|
3214
|
+
var zt, In;
|
|
3215
|
+
function Hs() {
|
|
3216
|
+
return In || (In = 1, zt = Number.isNaN || function(n) {
|
|
3218
3217
|
return n !== n;
|
|
3219
3218
|
}), zt;
|
|
3220
3219
|
}
|
|
3221
|
-
var Gt,
|
|
3222
|
-
function
|
|
3223
|
-
if (
|
|
3224
|
-
|
|
3225
|
-
var e = /* @__PURE__ */
|
|
3220
|
+
var Gt, _n;
|
|
3221
|
+
function Ms() {
|
|
3222
|
+
if (_n) return Gt;
|
|
3223
|
+
_n = 1;
|
|
3224
|
+
var e = /* @__PURE__ */ Hs();
|
|
3226
3225
|
return Gt = function(r) {
|
|
3227
3226
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
3228
3227
|
}, Gt;
|
|
3229
3228
|
}
|
|
3230
|
-
var Wt,
|
|
3231
|
-
function
|
|
3232
|
-
return
|
|
3229
|
+
var Wt, Un;
|
|
3230
|
+
function Bs() {
|
|
3231
|
+
return Un || (Un = 1, Wt = Object.getOwnPropertyDescriptor), Wt;
|
|
3233
3232
|
}
|
|
3234
|
-
var Vt,
|
|
3233
|
+
var Vt, Ln;
|
|
3235
3234
|
function dt() {
|
|
3236
|
-
if (
|
|
3237
|
-
|
|
3238
|
-
var e = /* @__PURE__ */
|
|
3235
|
+
if (Ln) return Vt;
|
|
3236
|
+
Ln = 1;
|
|
3237
|
+
var e = /* @__PURE__ */ Bs();
|
|
3239
3238
|
if (e)
|
|
3240
3239
|
try {
|
|
3241
3240
|
e([], "length");
|
|
@@ -3244,10 +3243,10 @@ function dt() {
|
|
|
3244
3243
|
}
|
|
3245
3244
|
return Vt = e, Vt;
|
|
3246
3245
|
}
|
|
3247
|
-
var Jt,
|
|
3246
|
+
var Jt, Fn;
|
|
3248
3247
|
function ht() {
|
|
3249
|
-
if (
|
|
3250
|
-
|
|
3248
|
+
if (Fn) return Jt;
|
|
3249
|
+
Fn = 1;
|
|
3251
3250
|
var e = Object.defineProperty || !1;
|
|
3252
3251
|
if (e)
|
|
3253
3252
|
try {
|
|
@@ -3257,9 +3256,9 @@ function ht() {
|
|
|
3257
3256
|
}
|
|
3258
3257
|
return Jt = e, Jt;
|
|
3259
3258
|
}
|
|
3260
|
-
var Dt,
|
|
3261
|
-
function
|
|
3262
|
-
return
|
|
3259
|
+
var Dt, Hn;
|
|
3260
|
+
function zs() {
|
|
3261
|
+
return Hn || (Hn = 1, Dt = function() {
|
|
3263
3262
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3264
3263
|
return !1;
|
|
3265
3264
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3287,30 +3286,30 @@ function Ws() {
|
|
|
3287
3286
|
return !0;
|
|
3288
3287
|
}), Dt;
|
|
3289
3288
|
}
|
|
3290
|
-
var Qt,
|
|
3291
|
-
function
|
|
3292
|
-
if (
|
|
3293
|
-
|
|
3294
|
-
var e = typeof Symbol < "u" && Symbol, n =
|
|
3289
|
+
var Qt, Mn;
|
|
3290
|
+
function Gs() {
|
|
3291
|
+
if (Mn) return Qt;
|
|
3292
|
+
Mn = 1;
|
|
3293
|
+
var e = typeof Symbol < "u" && Symbol, n = zs();
|
|
3295
3294
|
return Qt = function() {
|
|
3296
3295
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : n();
|
|
3297
3296
|
}, Qt;
|
|
3298
3297
|
}
|
|
3299
|
-
var Kt,
|
|
3300
|
-
function
|
|
3301
|
-
return
|
|
3298
|
+
var Kt, Bn;
|
|
3299
|
+
function Aa() {
|
|
3300
|
+
return Bn || (Bn = 1, Kt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Kt;
|
|
3302
3301
|
}
|
|
3303
|
-
var Yt,
|
|
3304
|
-
function
|
|
3305
|
-
if (
|
|
3306
|
-
|
|
3302
|
+
var Yt, zn;
|
|
3303
|
+
function Ia() {
|
|
3304
|
+
if (zn) return Yt;
|
|
3305
|
+
zn = 1;
|
|
3307
3306
|
var e = /* @__PURE__ */ Ea();
|
|
3308
3307
|
return Yt = e.getPrototypeOf || null, Yt;
|
|
3309
3308
|
}
|
|
3310
|
-
var Xt,
|
|
3311
|
-
function
|
|
3312
|
-
if (
|
|
3313
|
-
|
|
3309
|
+
var Xt, Gn;
|
|
3310
|
+
function Ws() {
|
|
3311
|
+
if (Gn) return Xt;
|
|
3312
|
+
Gn = 1;
|
|
3314
3313
|
var e = "Function.prototype.bind called on incompatible ", n = Object.prototype.toString, r = Math.max, a = "[object Function]", c = function(s, u) {
|
|
3315
3314
|
for (var p = [], d = 0; d < s.length; d += 1)
|
|
3316
3315
|
p[d] = s[d];
|
|
@@ -3352,48 +3351,48 @@ function Js() {
|
|
|
3352
3351
|
return d;
|
|
3353
3352
|
}, Xt;
|
|
3354
3353
|
}
|
|
3355
|
-
var Zt,
|
|
3356
|
-
function
|
|
3357
|
-
if (
|
|
3358
|
-
|
|
3359
|
-
var e =
|
|
3354
|
+
var Zt, Wn;
|
|
3355
|
+
function Qe() {
|
|
3356
|
+
if (Wn) return Zt;
|
|
3357
|
+
Wn = 1;
|
|
3358
|
+
var e = Ws();
|
|
3360
3359
|
return Zt = Function.prototype.bind || e, Zt;
|
|
3361
3360
|
}
|
|
3362
|
-
var er,
|
|
3363
|
-
function
|
|
3364
|
-
return
|
|
3361
|
+
var er, Vn;
|
|
3362
|
+
function Lr() {
|
|
3363
|
+
return Vn || (Vn = 1, er = Function.prototype.call), er;
|
|
3365
3364
|
}
|
|
3366
|
-
var tr,
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3365
|
+
var tr, Jn;
|
|
3366
|
+
function Fr() {
|
|
3367
|
+
return Jn || (Jn = 1, tr = Function.prototype.apply), tr;
|
|
3369
3368
|
}
|
|
3370
|
-
var rr,
|
|
3371
|
-
function
|
|
3372
|
-
return
|
|
3369
|
+
var rr, Dn;
|
|
3370
|
+
function Vs() {
|
|
3371
|
+
return Dn || (Dn = 1, rr = typeof Reflect < "u" && Reflect && Reflect.apply), rr;
|
|
3373
3372
|
}
|
|
3374
|
-
var nr,
|
|
3375
|
-
function
|
|
3376
|
-
if (
|
|
3377
|
-
|
|
3378
|
-
var e =
|
|
3373
|
+
var nr, Qn;
|
|
3374
|
+
function _a() {
|
|
3375
|
+
if (Qn) return nr;
|
|
3376
|
+
Qn = 1;
|
|
3377
|
+
var e = Qe(), n = Fr(), r = Lr(), a = Vs();
|
|
3379
3378
|
return nr = a || e.call(r, n), nr;
|
|
3380
3379
|
}
|
|
3381
|
-
var ar,
|
|
3382
|
-
function
|
|
3383
|
-
if (
|
|
3384
|
-
|
|
3385
|
-
var e =
|
|
3380
|
+
var ar, Kn;
|
|
3381
|
+
function Ua() {
|
|
3382
|
+
if (Kn) return ar;
|
|
3383
|
+
Kn = 1;
|
|
3384
|
+
var e = Qe(), n = /* @__PURE__ */ De(), r = Lr(), a = _a();
|
|
3386
3385
|
return ar = function(i) {
|
|
3387
3386
|
if (i.length < 1 || typeof i[0] != "function")
|
|
3388
3387
|
throw new n("a function is required");
|
|
3389
3388
|
return a(e, r, i);
|
|
3390
3389
|
}, ar;
|
|
3391
3390
|
}
|
|
3392
|
-
var or,
|
|
3393
|
-
function
|
|
3394
|
-
if (
|
|
3395
|
-
|
|
3396
|
-
var e =
|
|
3391
|
+
var or, Yn;
|
|
3392
|
+
function Js() {
|
|
3393
|
+
if (Yn) return or;
|
|
3394
|
+
Yn = 1;
|
|
3395
|
+
var e = Ua(), n = /* @__PURE__ */ dt(), r;
|
|
3397
3396
|
try {
|
|
3398
3397
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
3399
3398
|
[].__proto__ === Array.prototype;
|
|
@@ -3413,11 +3412,11 @@ function Qs() {
|
|
|
3413
3412
|
}
|
|
3414
3413
|
) : !1, or;
|
|
3415
3414
|
}
|
|
3416
|
-
var ir,
|
|
3417
|
-
function
|
|
3418
|
-
if (
|
|
3419
|
-
|
|
3420
|
-
var e =
|
|
3415
|
+
var ir, Xn;
|
|
3416
|
+
function Ds() {
|
|
3417
|
+
if (Xn) return ir;
|
|
3418
|
+
Xn = 1;
|
|
3419
|
+
var e = Aa(), n = Ia(), r = /* @__PURE__ */ Js();
|
|
3421
3420
|
return ir = e ? function(c) {
|
|
3422
3421
|
return e(c);
|
|
3423
3422
|
} : n ? function(c) {
|
|
@@ -3428,18 +3427,18 @@ function Ks() {
|
|
|
3428
3427
|
return r(c);
|
|
3429
3428
|
} : null, ir;
|
|
3430
3429
|
}
|
|
3431
|
-
var sr,
|
|
3432
|
-
function
|
|
3433
|
-
if (
|
|
3434
|
-
|
|
3435
|
-
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r =
|
|
3430
|
+
var sr, Zn;
|
|
3431
|
+
function Qs() {
|
|
3432
|
+
if (Zn) return sr;
|
|
3433
|
+
Zn = 1;
|
|
3434
|
+
var e = Function.prototype.call, n = Object.prototype.hasOwnProperty, r = Qe();
|
|
3436
3435
|
return sr = r.call(e, n), sr;
|
|
3437
3436
|
}
|
|
3438
|
-
var lr,
|
|
3439
|
-
function
|
|
3440
|
-
if (
|
|
3441
|
-
|
|
3442
|
-
var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */
|
|
3437
|
+
var lr, ea;
|
|
3438
|
+
function Hr() {
|
|
3439
|
+
if (ea) return lr;
|
|
3440
|
+
ea = 1;
|
|
3441
|
+
var e, n = /* @__PURE__ */ Ea(), r = /* @__PURE__ */ Ns(), a = /* @__PURE__ */ ks(), c = /* @__PURE__ */ qs(), i = /* @__PURE__ */ Es(), t = /* @__PURE__ */ Ra(), o = /* @__PURE__ */ De(), s = /* @__PURE__ */ Rs(), u = /* @__PURE__ */ As(), p = /* @__PURE__ */ Is(), d = /* @__PURE__ */ _s(), m = /* @__PURE__ */ Us(), y = /* @__PURE__ */ Ls(), j = /* @__PURE__ */ Fs(), b = /* @__PURE__ */ Ms(), f = Function, g = function(D) {
|
|
3443
3442
|
try {
|
|
3444
3443
|
return f('"use strict"; return (' + D + ").constructor;")();
|
|
3445
3444
|
} catch {
|
|
@@ -3456,7 +3455,7 @@ function Mr() {
|
|
|
3456
3455
|
return C;
|
|
3457
3456
|
}
|
|
3458
3457
|
}
|
|
3459
|
-
})() : C, T =
|
|
3458
|
+
})() : C, T = Gs()(), x = Ds(), k = Ia(), A = Aa(), E = Fr(), U = Lr(), O = {}, B = typeof Uint8Array > "u" || !x ? e : x(Uint8Array), L = {
|
|
3460
3459
|
__proto__: null,
|
|
3461
3460
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
3462
3461
|
"%Array%": Array,
|
|
@@ -3527,8 +3526,8 @@ function Mr() {
|
|
|
3527
3526
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
3528
3527
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
3529
3528
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
3530
|
-
"%Function.prototype.call%":
|
|
3531
|
-
"%Function.prototype.apply%":
|
|
3529
|
+
"%Function.prototype.call%": U,
|
|
3530
|
+
"%Function.prototype.apply%": E,
|
|
3532
3531
|
"%Object.defineProperty%": S,
|
|
3533
3532
|
"%Object.getPrototypeOf%": k,
|
|
3534
3533
|
"%Math.abs%": u,
|
|
@@ -3545,7 +3544,7 @@ function Mr() {
|
|
|
3545
3544
|
null.error;
|
|
3546
3545
|
} catch (D) {
|
|
3547
3546
|
var G = x(x(D));
|
|
3548
|
-
|
|
3547
|
+
L["%Error.prototype%"] = G;
|
|
3549
3548
|
}
|
|
3550
3549
|
var se = function D(I) {
|
|
3551
3550
|
var H;
|
|
@@ -3562,7 +3561,7 @@ function Mr() {
|
|
|
3562
3561
|
var K = D("%AsyncGenerator%");
|
|
3563
3562
|
K && x && (H = x(K.prototype));
|
|
3564
3563
|
}
|
|
3565
|
-
return
|
|
3564
|
+
return L[I] = H, H;
|
|
3566
3565
|
}, ee = {
|
|
3567
3566
|
__proto__: null,
|
|
3568
3567
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -3616,7 +3615,7 @@ function Mr() {
|
|
|
3616
3615
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
3617
3616
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
3618
3617
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
3619
|
-
},
|
|
3618
|
+
}, R = Qe(), ne = /* @__PURE__ */ Qs(), N = R.call(U, Array.prototype.concat), q = R.call(E, Array.prototype.splice), F = R.call(U, String.prototype.replace), P = R.call(U, String.prototype.slice), _ = R.call(U, RegExp.prototype.exec), J = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, W = /\\(\\)?/g, Y = function(I) {
|
|
3620
3619
|
var H = P(I, 0, 1), M = P(I, -1);
|
|
3621
3620
|
if (H === "%" && M !== "%")
|
|
3622
3621
|
throw new t("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -3628,8 +3627,8 @@ function Mr() {
|
|
|
3628
3627
|
}), K;
|
|
3629
3628
|
}, ae = function(I, H) {
|
|
3630
3629
|
var M = I, K;
|
|
3631
|
-
if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(
|
|
3632
|
-
var V =
|
|
3630
|
+
if (ne(ee, M) && (K = ee[M], M = "%" + K[0] + "%"), ne(L, M)) {
|
|
3631
|
+
var V = L[M];
|
|
3633
3632
|
if (V === O && (V = se(M)), typeof V > "u" && !H)
|
|
3634
3633
|
throw new o("intrinsic " + I + " exists, but is not available. Please file an issue!");
|
|
3635
3634
|
return {
|
|
@@ -3645,38 +3644,38 @@ function Mr() {
|
|
|
3645
3644
|
throw new o("intrinsic name must be a non-empty string");
|
|
3646
3645
|
if (arguments.length > 1 && typeof H != "boolean")
|
|
3647
3646
|
throw new o('"allowMissing" argument must be a boolean');
|
|
3648
|
-
if (
|
|
3647
|
+
if (_(/^%?[^%]*%?$/, I) === null)
|
|
3649
3648
|
throw new t("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
3650
|
-
var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1,
|
|
3651
|
-
|
|
3652
|
-
for (var
|
|
3653
|
-
var me = M[
|
|
3654
|
-
if ((
|
|
3649
|
+
var M = Y(I), K = M.length > 0 ? M[0] : "", V = ae("%" + K + "%", H), X = V.name, oe = V.value, he = !1, we = V.alias;
|
|
3650
|
+
we && (K = we[0], q(M, N([0, 1], we)));
|
|
3651
|
+
for (var ke = 1, $e = !0; ke < M.length; ke += 1) {
|
|
3652
|
+
var me = M[ke], qe = P(me, 0, 1), Ee = P(me, -1);
|
|
3653
|
+
if ((qe === '"' || qe === "'" || qe === "`" || Ee === '"' || Ee === "'" || Ee === "`") && qe !== Ee)
|
|
3655
3654
|
throw new t("property names with quotes must have matching quotes");
|
|
3656
|
-
if ((me === "constructor" ||
|
|
3657
|
-
oe =
|
|
3655
|
+
if ((me === "constructor" || !$e) && (he = !0), K += "." + me, X = "%" + K + "%", ne(L, X))
|
|
3656
|
+
oe = L[X];
|
|
3658
3657
|
else if (oe != null) {
|
|
3659
3658
|
if (!(me in oe)) {
|
|
3660
3659
|
if (!H)
|
|
3661
3660
|
throw new o("base intrinsic for " + I + " exists, but the property is not available.");
|
|
3662
3661
|
return;
|
|
3663
3662
|
}
|
|
3664
|
-
if (v &&
|
|
3663
|
+
if (v && ke + 1 >= M.length) {
|
|
3665
3664
|
var Se = v(oe, me);
|
|
3666
|
-
|
|
3665
|
+
$e = !!Se, $e && "get" in Se && !("originalValue" in Se.get) ? oe = Se.get : oe = oe[me];
|
|
3667
3666
|
} else
|
|
3668
|
-
|
|
3669
|
-
|
|
3667
|
+
$e = ne(oe, me), oe = oe[me];
|
|
3668
|
+
$e && !he && (L[X] = oe);
|
|
3670
3669
|
}
|
|
3671
3670
|
}
|
|
3672
3671
|
return oe;
|
|
3673
3672
|
}, lr;
|
|
3674
3673
|
}
|
|
3675
|
-
var cr = { exports: {} }, ur,
|
|
3676
|
-
function
|
|
3677
|
-
if (
|
|
3678
|
-
|
|
3679
|
-
var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */
|
|
3674
|
+
var cr = { exports: {} }, ur, ta;
|
|
3675
|
+
function Ks() {
|
|
3676
|
+
if (ta) return ur;
|
|
3677
|
+
ta = 1;
|
|
3678
|
+
var e = /* @__PURE__ */ ht(), n = /* @__PURE__ */ Ra(), r = /* @__PURE__ */ De(), a = /* @__PURE__ */ dt();
|
|
3680
3679
|
return ur = function(i, t, o) {
|
|
3681
3680
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
3682
3681
|
throw new r("`obj` must be an object or a function`");
|
|
@@ -3704,10 +3703,10 @@ function Xs() {
|
|
|
3704
3703
|
throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
3705
3704
|
}, ur;
|
|
3706
3705
|
}
|
|
3707
|
-
var pr,
|
|
3708
|
-
function
|
|
3709
|
-
if (
|
|
3710
|
-
|
|
3706
|
+
var pr, ra;
|
|
3707
|
+
function Ys() {
|
|
3708
|
+
if (ra) return pr;
|
|
3709
|
+
ra = 1;
|
|
3711
3710
|
var e = /* @__PURE__ */ ht(), n = function() {
|
|
3712
3711
|
return !!e;
|
|
3713
3712
|
};
|
|
@@ -3721,11 +3720,11 @@ function Zs() {
|
|
|
3721
3720
|
}
|
|
3722
3721
|
}, pr = n, pr;
|
|
3723
3722
|
}
|
|
3724
|
-
var fr,
|
|
3725
|
-
function
|
|
3726
|
-
if (
|
|
3727
|
-
|
|
3728
|
-
var e = /* @__PURE__ */
|
|
3723
|
+
var fr, na;
|
|
3724
|
+
function Xs() {
|
|
3725
|
+
if (na) return fr;
|
|
3726
|
+
na = 1;
|
|
3727
|
+
var e = /* @__PURE__ */ Hr(), n = /* @__PURE__ */ Ks(), r = /* @__PURE__ */ Ys()(), a = /* @__PURE__ */ dt(), c = /* @__PURE__ */ De(), i = e("%Math.floor%");
|
|
3729
3728
|
return fr = function(o, s) {
|
|
3730
3729
|
if (typeof o != "function")
|
|
3731
3730
|
throw new c("`fn` is not a function");
|
|
@@ -3751,19 +3750,19 @@ function el() {
|
|
|
3751
3750
|
)), o;
|
|
3752
3751
|
}, fr;
|
|
3753
3752
|
}
|
|
3754
|
-
var dr,
|
|
3755
|
-
function
|
|
3756
|
-
if (
|
|
3757
|
-
|
|
3758
|
-
var e =
|
|
3753
|
+
var dr, aa;
|
|
3754
|
+
function Zs() {
|
|
3755
|
+
if (aa) return dr;
|
|
3756
|
+
aa = 1;
|
|
3757
|
+
var e = Qe(), n = Fr(), r = _a();
|
|
3759
3758
|
return dr = function() {
|
|
3760
3759
|
return r(e, n, arguments);
|
|
3761
3760
|
}, dr;
|
|
3762
3761
|
}
|
|
3763
|
-
var
|
|
3764
|
-
function
|
|
3765
|
-
return
|
|
3766
|
-
var n = /* @__PURE__ */
|
|
3762
|
+
var oa;
|
|
3763
|
+
function el() {
|
|
3764
|
+
return oa || (oa = 1, (function(e) {
|
|
3765
|
+
var n = /* @__PURE__ */ Xs(), r = /* @__PURE__ */ ht(), a = Ua(), c = Zs();
|
|
3767
3766
|
e.exports = function(t) {
|
|
3768
3767
|
var o = a(arguments), s = t.length - (arguments.length - 1);
|
|
3769
3768
|
return n(
|
|
@@ -3774,38 +3773,42 @@ function rl() {
|
|
|
3774
3773
|
}, r ? r(e.exports, "apply", { value: c }) : e.exports.apply = c;
|
|
3775
3774
|
})(cr)), cr.exports;
|
|
3776
3775
|
}
|
|
3777
|
-
var hr,
|
|
3778
|
-
function
|
|
3779
|
-
if (
|
|
3780
|
-
|
|
3781
|
-
var e = /* @__PURE__ */
|
|
3776
|
+
var hr, ia;
|
|
3777
|
+
function tl() {
|
|
3778
|
+
if (ia) return hr;
|
|
3779
|
+
ia = 1;
|
|
3780
|
+
var e = /* @__PURE__ */ Hr(), n = el(), r = n(e("String.prototype.indexOf"));
|
|
3782
3781
|
return hr = function(c, i) {
|
|
3783
3782
|
var t = e(c, !!i);
|
|
3784
3783
|
return typeof t == "function" && r(c, ".prototype.") > -1 ? n(t) : t;
|
|
3785
3784
|
}, hr;
|
|
3786
3785
|
}
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3786
|
+
const rl = {}, nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3787
|
+
__proto__: null,
|
|
3788
|
+
default: rl
|
|
3789
|
+
}, Symbol.toStringTag, { value: "Module" })), al = /* @__PURE__ */ zo(nl);
|
|
3790
|
+
var mr, sa;
|
|
3791
|
+
function ol() {
|
|
3792
|
+
if (sa) return mr;
|
|
3793
|
+
sa = 1;
|
|
3794
|
+
var e = typeof Map == "function" && Map.prototype, n = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && n && typeof n.get == "function" ? n.get : null, a = e && Map.prototype.forEach, c = typeof Set == "function" && Set.prototype, i = Object.getOwnPropertyDescriptor && c ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, t = c && i && typeof i.get == "function" ? i.get : null, o = c && Set.prototype.forEach, s = typeof WeakMap == "function" && WeakMap.prototype, u = s ? WeakMap.prototype.has : null, p = typeof WeakSet == "function" && WeakSet.prototype, d = p ? WeakSet.prototype.has : null, m = typeof WeakRef == "function" && WeakRef.prototype, y = m ? WeakRef.prototype.deref : null, j = Boolean.prototype.valueOf, b = Object.prototype.toString, f = Function.prototype.toString, g = String.prototype.match, v = String.prototype.slice, S = String.prototype.replace, C = String.prototype.toUpperCase, h = String.prototype.toLowerCase, T = RegExp.prototype.test, x = Array.prototype.concat, k = Array.prototype.join, A = Array.prototype.slice, E = Math.floor, U = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, O = Object.getOwnPropertySymbols, B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, L = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === L || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, ee = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(w) {
|
|
3795
|
+
return w.__proto__;
|
|
3793
3796
|
} : null);
|
|
3794
|
-
function
|
|
3795
|
-
if (
|
|
3796
|
-
return
|
|
3797
|
+
function R(w, $) {
|
|
3798
|
+
if (w === 1 / 0 || w === -1 / 0 || w !== w || w && w > -1e3 && w < 1e3 || T.call(/e/, $))
|
|
3799
|
+
return $;
|
|
3797
3800
|
var Z = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
3798
|
-
if (typeof
|
|
3799
|
-
var te =
|
|
3800
|
-
if (te !==
|
|
3801
|
-
var ie = String(te), z = v.call(
|
|
3801
|
+
if (typeof w == "number") {
|
|
3802
|
+
var te = w < 0 ? -E(-w) : E(w);
|
|
3803
|
+
if (te !== w) {
|
|
3804
|
+
var ie = String(te), z = v.call($, ie.length + 1);
|
|
3802
3805
|
return S.call(ie, Z, "$&_") + "." + S.call(S.call(z, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
3803
3806
|
}
|
|
3804
3807
|
}
|
|
3805
|
-
return S.call(
|
|
3808
|
+
return S.call($, Z, "$&_");
|
|
3806
3809
|
}
|
|
3807
|
-
var ne =
|
|
3808
|
-
mr = function
|
|
3810
|
+
var ne = al, N = ne.custom, q = H(N) ? N : null;
|
|
3811
|
+
mr = function w($, Z, te, ie) {
|
|
3809
3812
|
var z = Z || {};
|
|
3810
3813
|
if (V(z, "quoteStyle") && z.quoteStyle !== "single" && z.quoteStyle !== "double")
|
|
3811
3814
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -3819,334 +3822,334 @@ function al() {
|
|
|
3819
3822
|
if (V(z, "numericSeparator") && typeof z.numericSeparator != "boolean")
|
|
3820
3823
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
3821
3824
|
var Oe = z.numericSeparator;
|
|
3822
|
-
if (typeof
|
|
3825
|
+
if (typeof $ > "u")
|
|
3823
3826
|
return "undefined";
|
|
3824
|
-
if (
|
|
3827
|
+
if ($ === null)
|
|
3825
3828
|
return "null";
|
|
3826
|
-
if (typeof
|
|
3827
|
-
return
|
|
3828
|
-
if (typeof
|
|
3829
|
-
return Se(
|
|
3830
|
-
if (typeof
|
|
3831
|
-
if (
|
|
3832
|
-
return 1 / 0 /
|
|
3833
|
-
var de = String(
|
|
3834
|
-
return Oe ?
|
|
3829
|
+
if (typeof $ == "boolean")
|
|
3830
|
+
return $ ? "true" : "false";
|
|
3831
|
+
if (typeof $ == "string")
|
|
3832
|
+
return Se($, z);
|
|
3833
|
+
if (typeof $ == "number") {
|
|
3834
|
+
if ($ === 0)
|
|
3835
|
+
return 1 / 0 / $ > 0 ? "0" : "-0";
|
|
3836
|
+
var de = String($);
|
|
3837
|
+
return Oe ? R($, de) : de;
|
|
3835
3838
|
}
|
|
3836
|
-
if (typeof
|
|
3837
|
-
var je = String(
|
|
3838
|
-
return Oe ?
|
|
3839
|
+
if (typeof $ == "bigint") {
|
|
3840
|
+
var je = String($) + "n";
|
|
3841
|
+
return Oe ? R($, je) : je;
|
|
3839
3842
|
}
|
|
3840
3843
|
var gt = typeof z.depth > "u" ? 5 : z.depth;
|
|
3841
|
-
if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof
|
|
3842
|
-
return
|
|
3843
|
-
var Re =
|
|
3844
|
+
if (typeof te > "u" && (te = 0), te >= gt && gt > 0 && typeof $ == "object")
|
|
3845
|
+
return _($) ? "[Array]" : "[Object]";
|
|
3846
|
+
var Re = za(z, te);
|
|
3844
3847
|
if (typeof ie > "u")
|
|
3845
3848
|
ie = [];
|
|
3846
|
-
else if (he(ie,
|
|
3849
|
+
else if (he(ie, $) >= 0)
|
|
3847
3850
|
return "[Circular]";
|
|
3848
|
-
function ye(
|
|
3849
|
-
if (
|
|
3850
|
-
var
|
|
3851
|
+
function ye(Ae, Xe, Wa) {
|
|
3852
|
+
if (Xe && (ie = A.call(ie), ie.push(Xe)), Wa) {
|
|
3853
|
+
var Kr = {
|
|
3851
3854
|
depth: z.depth
|
|
3852
3855
|
};
|
|
3853
|
-
return V(z, "quoteStyle") && (
|
|
3856
|
+
return V(z, "quoteStyle") && (Kr.quoteStyle = z.quoteStyle), w(Ae, Kr, te + 1, ie);
|
|
3854
3857
|
}
|
|
3855
|
-
return
|
|
3858
|
+
return w(Ae, z, te + 1, ie);
|
|
3856
3859
|
}
|
|
3857
|
-
if (typeof
|
|
3858
|
-
var
|
|
3859
|
-
return "[Function" + (
|
|
3860
|
+
if (typeof $ == "function" && !W($)) {
|
|
3861
|
+
var zr = oe($), Gr = Ke($, ye);
|
|
3862
|
+
return "[Function" + (zr ? ": " + zr : " (anonymous)") + "]" + (Gr.length > 0 ? " { " + k.call(Gr, ", ") + " }" : "");
|
|
3860
3863
|
}
|
|
3861
|
-
if (H(
|
|
3862
|
-
var
|
|
3863
|
-
return typeof
|
|
3864
|
+
if (H($)) {
|
|
3865
|
+
var Wr = L ? S.call(String($), /^(Symbol\(.*\))_[^)]*$/, "$1") : B.call($);
|
|
3866
|
+
return typeof $ == "object" && !L ? Le(Wr) : Wr;
|
|
3864
3867
|
}
|
|
3865
|
-
if (
|
|
3866
|
-
for (var
|
|
3867
|
-
|
|
3868
|
-
return
|
|
3868
|
+
if (Ee($)) {
|
|
3869
|
+
for (var Fe = "<" + h.call(String($.nodeName)), vt = $.attributes || [], Ye = 0; Ye < vt.length; Ye++)
|
|
3870
|
+
Fe += " " + vt[Ye].name + "=" + F(P(vt[Ye].value), "double", z);
|
|
3871
|
+
return Fe += ">", $.childNodes && $.childNodes.length && (Fe += "..."), Fe += "</" + h.call(String($.nodeName)) + ">", Fe;
|
|
3869
3872
|
}
|
|
3870
|
-
if (
|
|
3871
|
-
if (
|
|
3873
|
+
if (_($)) {
|
|
3874
|
+
if ($.length === 0)
|
|
3872
3875
|
return "[]";
|
|
3873
|
-
var xt =
|
|
3874
|
-
return Re && !
|
|
3876
|
+
var xt = Ke($, ye);
|
|
3877
|
+
return Re && !Ba(xt) ? "[" + yt(xt, Re) + "]" : "[ " + k.call(xt, ", ") + " ]";
|
|
3875
3878
|
}
|
|
3876
|
-
if (Y(
|
|
3877
|
-
var bt =
|
|
3878
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
3879
|
+
if (Y($)) {
|
|
3880
|
+
var bt = Ke($, ye);
|
|
3881
|
+
return !("cause" in Error.prototype) && "cause" in $ && !se.call($, "cause") ? "{ [" + String($) + "] " + k.call(x.call("[cause]: " + ye($.cause), bt), ", ") + " }" : bt.length === 0 ? "[" + String($) + "]" : "{ [" + String($) + "] " + k.call(bt, ", ") + " }";
|
|
3879
3882
|
}
|
|
3880
|
-
if (typeof
|
|
3881
|
-
if (q && typeof
|
|
3882
|
-
return ne(
|
|
3883
|
-
if (be !== "symbol" && typeof
|
|
3884
|
-
return
|
|
3883
|
+
if (typeof $ == "object" && be) {
|
|
3884
|
+
if (q && typeof $[q] == "function" && ne)
|
|
3885
|
+
return ne($, { depth: gt - te });
|
|
3886
|
+
if (be !== "symbol" && typeof $.inspect == "function")
|
|
3887
|
+
return $.inspect();
|
|
3885
3888
|
}
|
|
3886
|
-
if ($
|
|
3887
|
-
var
|
|
3888
|
-
return a && a.call(
|
|
3889
|
-
|
|
3890
|
-
}),
|
|
3889
|
+
if (we($)) {
|
|
3890
|
+
var Vr = [];
|
|
3891
|
+
return a && a.call($, function(Ae, Xe) {
|
|
3892
|
+
Vr.push(ye(Xe, $, !0) + " => " + ye(Ae, $));
|
|
3893
|
+
}), Br("Map", r.call($), Vr, Re);
|
|
3891
3894
|
}
|
|
3892
|
-
if (me(
|
|
3893
|
-
var
|
|
3894
|
-
return o && o.call(
|
|
3895
|
-
|
|
3896
|
-
}),
|
|
3895
|
+
if (me($)) {
|
|
3896
|
+
var Jr = [];
|
|
3897
|
+
return o && o.call($, function(Ae) {
|
|
3898
|
+
Jr.push(ye(Ae, $));
|
|
3899
|
+
}), Br("Set", t.call($), Jr, Re);
|
|
3897
3900
|
}
|
|
3898
|
-
if (
|
|
3901
|
+
if (ke($))
|
|
3899
3902
|
return mt("WeakMap");
|
|
3900
|
-
if (
|
|
3903
|
+
if (qe($))
|
|
3901
3904
|
return mt("WeakSet");
|
|
3902
|
-
if (
|
|
3905
|
+
if ($e($))
|
|
3903
3906
|
return mt("WeakRef");
|
|
3904
|
-
if (D(
|
|
3905
|
-
return
|
|
3906
|
-
if (M(
|
|
3907
|
-
return
|
|
3908
|
-
if (I(
|
|
3909
|
-
return
|
|
3910
|
-
if (ae(
|
|
3911
|
-
return
|
|
3912
|
-
if (typeof window < "u" &&
|
|
3907
|
+
if (D($))
|
|
3908
|
+
return Le(ye(Number($)));
|
|
3909
|
+
if (M($))
|
|
3910
|
+
return Le(ye(U.call($)));
|
|
3911
|
+
if (I($))
|
|
3912
|
+
return Le(j.call($));
|
|
3913
|
+
if (ae($))
|
|
3914
|
+
return Le(ye(String($)));
|
|
3915
|
+
if (typeof window < "u" && $ === window)
|
|
3913
3916
|
return "{ [object Window] }";
|
|
3914
|
-
if (typeof globalThis < "u" &&
|
|
3917
|
+
if (typeof globalThis < "u" && $ === globalThis || typeof it < "u" && $ === it)
|
|
3915
3918
|
return "{ [object globalThis] }";
|
|
3916
|
-
if (!J(
|
|
3917
|
-
var jt =
|
|
3918
|
-
return jt.length === 0 ?
|
|
3919
|
+
if (!J($) && !W($)) {
|
|
3920
|
+
var jt = Ke($, ye), Dr = ee ? ee($) === Object.prototype : $ instanceof Object || $.constructor === Object, wt = $ instanceof Object ? "" : "null prototype", Qr = !Dr && G && Object($) === $ && G in $ ? v.call(X($), 8, -1) : wt ? "Object" : "", Ga = Dr || typeof $.constructor != "function" ? "" : $.constructor.name ? $.constructor.name + " " : "", $t = Ga + (Qr || wt ? "[" + k.call(x.call([], Qr || [], wt || []), ": ") + "] " : "");
|
|
3921
|
+
return jt.length === 0 ? $t + "{}" : Re ? $t + "{" + yt(jt, Re) + "}" : $t + "{ " + k.call(jt, ", ") + " }";
|
|
3919
3922
|
}
|
|
3920
|
-
return String(
|
|
3923
|
+
return String($);
|
|
3921
3924
|
};
|
|
3922
|
-
function F(
|
|
3923
|
-
var te = (Z.quoteStyle ||
|
|
3924
|
-
return te +
|
|
3925
|
+
function F(w, $, Z) {
|
|
3926
|
+
var te = (Z.quoteStyle || $) === "double" ? '"' : "'";
|
|
3927
|
+
return te + w + te;
|
|
3925
3928
|
}
|
|
3926
|
-
function P(
|
|
3927
|
-
return S.call(String(
|
|
3929
|
+
function P(w) {
|
|
3930
|
+
return S.call(String(w), /"/g, """);
|
|
3928
3931
|
}
|
|
3929
|
-
function
|
|
3930
|
-
return X(
|
|
3932
|
+
function _(w) {
|
|
3933
|
+
return X(w) === "[object Array]" && (!G || !(typeof w == "object" && G in w));
|
|
3931
3934
|
}
|
|
3932
|
-
function J(
|
|
3933
|
-
return X(
|
|
3935
|
+
function J(w) {
|
|
3936
|
+
return X(w) === "[object Date]" && (!G || !(typeof w == "object" && G in w));
|
|
3934
3937
|
}
|
|
3935
|
-
function W(
|
|
3936
|
-
return X(
|
|
3938
|
+
function W(w) {
|
|
3939
|
+
return X(w) === "[object RegExp]" && (!G || !(typeof w == "object" && G in w));
|
|
3937
3940
|
}
|
|
3938
|
-
function Y(
|
|
3939
|
-
return X(
|
|
3941
|
+
function Y(w) {
|
|
3942
|
+
return X(w) === "[object Error]" && (!G || !(typeof w == "object" && G in w));
|
|
3940
3943
|
}
|
|
3941
|
-
function ae(
|
|
3942
|
-
return X(
|
|
3944
|
+
function ae(w) {
|
|
3945
|
+
return X(w) === "[object String]" && (!G || !(typeof w == "object" && G in w));
|
|
3943
3946
|
}
|
|
3944
|
-
function D(
|
|
3945
|
-
return X(
|
|
3947
|
+
function D(w) {
|
|
3948
|
+
return X(w) === "[object Number]" && (!G || !(typeof w == "object" && G in w));
|
|
3946
3949
|
}
|
|
3947
|
-
function I(
|
|
3948
|
-
return X(
|
|
3950
|
+
function I(w) {
|
|
3951
|
+
return X(w) === "[object Boolean]" && (!G || !(typeof w == "object" && G in w));
|
|
3949
3952
|
}
|
|
3950
|
-
function H(
|
|
3951
|
-
if (
|
|
3952
|
-
return
|
|
3953
|
-
if (typeof
|
|
3953
|
+
function H(w) {
|
|
3954
|
+
if (L)
|
|
3955
|
+
return w && typeof w == "object" && w instanceof Symbol;
|
|
3956
|
+
if (typeof w == "symbol")
|
|
3954
3957
|
return !0;
|
|
3955
|
-
if (
|
|
3958
|
+
if (!w || typeof w != "object" || !B)
|
|
3956
3959
|
return !1;
|
|
3957
3960
|
try {
|
|
3958
|
-
return B.call(
|
|
3961
|
+
return B.call(w), !0;
|
|
3959
3962
|
} catch {
|
|
3960
3963
|
}
|
|
3961
3964
|
return !1;
|
|
3962
3965
|
}
|
|
3963
|
-
function M(
|
|
3964
|
-
if (
|
|
3966
|
+
function M(w) {
|
|
3967
|
+
if (!w || typeof w != "object" || !U)
|
|
3965
3968
|
return !1;
|
|
3966
3969
|
try {
|
|
3967
|
-
return
|
|
3970
|
+
return U.call(w), !0;
|
|
3968
3971
|
} catch {
|
|
3969
3972
|
}
|
|
3970
3973
|
return !1;
|
|
3971
3974
|
}
|
|
3972
|
-
var K = Object.prototype.hasOwnProperty || function(
|
|
3973
|
-
return
|
|
3975
|
+
var K = Object.prototype.hasOwnProperty || function(w) {
|
|
3976
|
+
return w in this;
|
|
3974
3977
|
};
|
|
3975
|
-
function V(
|
|
3976
|
-
return K.call(
|
|
3978
|
+
function V(w, $) {
|
|
3979
|
+
return K.call(w, $);
|
|
3977
3980
|
}
|
|
3978
|
-
function X(
|
|
3979
|
-
return b.call(
|
|
3981
|
+
function X(w) {
|
|
3982
|
+
return b.call(w);
|
|
3980
3983
|
}
|
|
3981
|
-
function oe(
|
|
3982
|
-
if (
|
|
3983
|
-
return
|
|
3984
|
-
var
|
|
3985
|
-
return
|
|
3984
|
+
function oe(w) {
|
|
3985
|
+
if (w.name)
|
|
3986
|
+
return w.name;
|
|
3987
|
+
var $ = g.call(f.call(w), /^function\s*([\w$]+)/);
|
|
3988
|
+
return $ ? $[1] : null;
|
|
3986
3989
|
}
|
|
3987
|
-
function he(
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
3990
|
-
for (var Z = 0, te =
|
|
3991
|
-
if (
|
|
3990
|
+
function he(w, $) {
|
|
3991
|
+
if (w.indexOf)
|
|
3992
|
+
return w.indexOf($);
|
|
3993
|
+
for (var Z = 0, te = w.length; Z < te; Z++)
|
|
3994
|
+
if (w[Z] === $)
|
|
3992
3995
|
return Z;
|
|
3993
3996
|
return -1;
|
|
3994
3997
|
}
|
|
3995
|
-
function
|
|
3996
|
-
if (!r ||
|
|
3998
|
+
function we(w) {
|
|
3999
|
+
if (!r || !w || typeof w != "object")
|
|
3997
4000
|
return !1;
|
|
3998
4001
|
try {
|
|
3999
|
-
r.call(
|
|
4002
|
+
r.call(w);
|
|
4000
4003
|
try {
|
|
4001
|
-
t.call(
|
|
4004
|
+
t.call(w);
|
|
4002
4005
|
} catch {
|
|
4003
4006
|
return !0;
|
|
4004
4007
|
}
|
|
4005
|
-
return
|
|
4008
|
+
return w instanceof Map;
|
|
4006
4009
|
} catch {
|
|
4007
4010
|
}
|
|
4008
4011
|
return !1;
|
|
4009
4012
|
}
|
|
4010
|
-
function
|
|
4011
|
-
if (!u ||
|
|
4013
|
+
function ke(w) {
|
|
4014
|
+
if (!u || !w || typeof w != "object")
|
|
4012
4015
|
return !1;
|
|
4013
4016
|
try {
|
|
4014
|
-
u.call(
|
|
4017
|
+
u.call(w, u);
|
|
4015
4018
|
try {
|
|
4016
|
-
d.call(
|
|
4019
|
+
d.call(w, d);
|
|
4017
4020
|
} catch {
|
|
4018
4021
|
return !0;
|
|
4019
4022
|
}
|
|
4020
|
-
return
|
|
4023
|
+
return w instanceof WeakMap;
|
|
4021
4024
|
} catch {
|
|
4022
4025
|
}
|
|
4023
4026
|
return !1;
|
|
4024
4027
|
}
|
|
4025
|
-
function
|
|
4026
|
-
if (!y ||
|
|
4028
|
+
function $e(w) {
|
|
4029
|
+
if (!y || !w || typeof w != "object")
|
|
4027
4030
|
return !1;
|
|
4028
4031
|
try {
|
|
4029
|
-
return y.call(
|
|
4032
|
+
return y.call(w), !0;
|
|
4030
4033
|
} catch {
|
|
4031
4034
|
}
|
|
4032
4035
|
return !1;
|
|
4033
4036
|
}
|
|
4034
|
-
function me(
|
|
4035
|
-
if (!t ||
|
|
4037
|
+
function me(w) {
|
|
4038
|
+
if (!t || !w || typeof w != "object")
|
|
4036
4039
|
return !1;
|
|
4037
4040
|
try {
|
|
4038
|
-
t.call(
|
|
4041
|
+
t.call(w);
|
|
4039
4042
|
try {
|
|
4040
|
-
r.call(
|
|
4043
|
+
r.call(w);
|
|
4041
4044
|
} catch {
|
|
4042
4045
|
return !0;
|
|
4043
4046
|
}
|
|
4044
|
-
return
|
|
4047
|
+
return w instanceof Set;
|
|
4045
4048
|
} catch {
|
|
4046
4049
|
}
|
|
4047
4050
|
return !1;
|
|
4048
4051
|
}
|
|
4049
|
-
function
|
|
4050
|
-
if (!d ||
|
|
4052
|
+
function qe(w) {
|
|
4053
|
+
if (!d || !w || typeof w != "object")
|
|
4051
4054
|
return !1;
|
|
4052
4055
|
try {
|
|
4053
|
-
d.call(
|
|
4056
|
+
d.call(w, d);
|
|
4054
4057
|
try {
|
|
4055
|
-
u.call(
|
|
4058
|
+
u.call(w, u);
|
|
4056
4059
|
} catch {
|
|
4057
4060
|
return !0;
|
|
4058
4061
|
}
|
|
4059
|
-
return
|
|
4062
|
+
return w instanceof WeakSet;
|
|
4060
4063
|
} catch {
|
|
4061
4064
|
}
|
|
4062
4065
|
return !1;
|
|
4063
4066
|
}
|
|
4064
|
-
function
|
|
4065
|
-
return
|
|
4067
|
+
function Ee(w) {
|
|
4068
|
+
return !w || typeof w != "object" ? !1 : typeof HTMLElement < "u" && w instanceof HTMLElement ? !0 : typeof w.nodeName == "string" && typeof w.getAttribute == "function";
|
|
4066
4069
|
}
|
|
4067
|
-
function Se(
|
|
4068
|
-
if (
|
|
4069
|
-
var Z =
|
|
4070
|
-
return Se(v.call(
|
|
4070
|
+
function Se(w, $) {
|
|
4071
|
+
if (w.length > $.maxStringLength) {
|
|
4072
|
+
var Z = w.length - $.maxStringLength, te = "... " + Z + " more character" + (Z > 1 ? "s" : "");
|
|
4073
|
+
return Se(v.call(w, 0, $.maxStringLength), $) + te;
|
|
4071
4074
|
}
|
|
4072
|
-
var ie = S.call(S.call(
|
|
4073
|
-
return F(ie, "single",
|
|
4075
|
+
var ie = S.call(S.call(w, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ma);
|
|
4076
|
+
return F(ie, "single", $);
|
|
4074
4077
|
}
|
|
4075
|
-
function
|
|
4076
|
-
var
|
|
4078
|
+
function Ma(w) {
|
|
4079
|
+
var $ = w.charCodeAt(0), Z = {
|
|
4077
4080
|
8: "b",
|
|
4078
4081
|
9: "t",
|
|
4079
4082
|
10: "n",
|
|
4080
4083
|
12: "f",
|
|
4081
4084
|
13: "r"
|
|
4082
|
-
}[
|
|
4083
|
-
return Z ? "\\" + Z : "\\x" + (
|
|
4085
|
+
}[$];
|
|
4086
|
+
return Z ? "\\" + Z : "\\x" + ($ < 16 ? "0" : "") + C.call($.toString(16));
|
|
4084
4087
|
}
|
|
4085
|
-
function
|
|
4086
|
-
return "Object(" +
|
|
4088
|
+
function Le(w) {
|
|
4089
|
+
return "Object(" + w + ")";
|
|
4087
4090
|
}
|
|
4088
|
-
function mt(
|
|
4089
|
-
return
|
|
4091
|
+
function mt(w) {
|
|
4092
|
+
return w + " { ? }";
|
|
4090
4093
|
}
|
|
4091
|
-
function
|
|
4094
|
+
function Br(w, $, Z, te) {
|
|
4092
4095
|
var ie = te ? yt(Z, te) : k.call(Z, ", ");
|
|
4093
|
-
return
|
|
4096
|
+
return w + " (" + $ + ") {" + ie + "}";
|
|
4094
4097
|
}
|
|
4095
|
-
function
|
|
4096
|
-
for (var
|
|
4097
|
-
if (he($
|
|
4098
|
+
function Ba(w) {
|
|
4099
|
+
for (var $ = 0; $ < w.length; $++)
|
|
4100
|
+
if (he(w[$], `
|
|
4098
4101
|
`) >= 0)
|
|
4099
4102
|
return !1;
|
|
4100
4103
|
return !0;
|
|
4101
4104
|
}
|
|
4102
|
-
function
|
|
4105
|
+
function za(w, $) {
|
|
4103
4106
|
var Z;
|
|
4104
|
-
if (
|
|
4107
|
+
if (w.indent === " ")
|
|
4105
4108
|
Z = " ";
|
|
4106
|
-
else if (typeof
|
|
4107
|
-
Z = k.call(Array(
|
|
4109
|
+
else if (typeof w.indent == "number" && w.indent > 0)
|
|
4110
|
+
Z = k.call(Array(w.indent + 1), " ");
|
|
4108
4111
|
else
|
|
4109
4112
|
return null;
|
|
4110
4113
|
return {
|
|
4111
4114
|
base: Z,
|
|
4112
|
-
prev: k.call(Array(
|
|
4115
|
+
prev: k.call(Array($ + 1), Z)
|
|
4113
4116
|
};
|
|
4114
4117
|
}
|
|
4115
|
-
function yt(
|
|
4116
|
-
if (
|
|
4118
|
+
function yt(w, $) {
|
|
4119
|
+
if (w.length === 0)
|
|
4117
4120
|
return "";
|
|
4118
4121
|
var Z = `
|
|
4119
|
-
` +
|
|
4120
|
-
return Z + k.call(
|
|
4121
|
-
` +
|
|
4122
|
+
` + $.prev + $.base;
|
|
4123
|
+
return Z + k.call(w, "," + Z) + `
|
|
4124
|
+
` + $.prev;
|
|
4122
4125
|
}
|
|
4123
|
-
function
|
|
4124
|
-
var Z =
|
|
4126
|
+
function Ke(w, $) {
|
|
4127
|
+
var Z = _(w), te = [];
|
|
4125
4128
|
if (Z) {
|
|
4126
|
-
te.length =
|
|
4127
|
-
for (var ie = 0; ie <
|
|
4128
|
-
te[ie] = V(
|
|
4129
|
+
te.length = w.length;
|
|
4130
|
+
for (var ie = 0; ie < w.length; ie++)
|
|
4131
|
+
te[ie] = V(w, ie) ? $(w[ie], w) : "";
|
|
4129
4132
|
}
|
|
4130
|
-
var z = typeof O == "function" ? O(
|
|
4131
|
-
if (
|
|
4133
|
+
var z = typeof O == "function" ? O(w) : [], be;
|
|
4134
|
+
if (L) {
|
|
4132
4135
|
be = {};
|
|
4133
4136
|
for (var Oe = 0; Oe < z.length; Oe++)
|
|
4134
4137
|
be["$" + z[Oe]] = z[Oe];
|
|
4135
4138
|
}
|
|
4136
|
-
for (var de in
|
|
4137
|
-
V(
|
|
4139
|
+
for (var de in w)
|
|
4140
|
+
V(w, de) && (Z && String(Number(de)) === de && de < w.length || L && be["$" + de] instanceof Symbol || (T.call(/[^\w$]/, de) ? te.push($(de, w) + ": " + $(w[de], w)) : te.push(de + ": " + $(w[de], w))));
|
|
4138
4141
|
if (typeof O == "function")
|
|
4139
4142
|
for (var je = 0; je < z.length; je++)
|
|
4140
|
-
se.call(
|
|
4143
|
+
se.call(w, z[je]) && te.push("[" + $(z[je]) + "]: " + $(w[z[je]], w));
|
|
4141
4144
|
return te;
|
|
4142
4145
|
}
|
|
4143
4146
|
return mr;
|
|
4144
4147
|
}
|
|
4145
|
-
var yr,
|
|
4146
|
-
function
|
|
4147
|
-
if (
|
|
4148
|
-
|
|
4149
|
-
var e = /* @__PURE__ */
|
|
4148
|
+
var yr, la;
|
|
4149
|
+
function il() {
|
|
4150
|
+
if (la) return yr;
|
|
4151
|
+
la = 1;
|
|
4152
|
+
var e = /* @__PURE__ */ Hr(), n = tl(), r = /* @__PURE__ */ ol(), a = /* @__PURE__ */ De(), c = e("%WeakMap%", !0), i = e("%Map%", !0), t = n("WeakMap.prototype.get", !0), o = n("WeakMap.prototype.set", !0), s = n("WeakMap.prototype.has", !0), u = n("Map.prototype.get", !0), p = n("Map.prototype.set", !0), d = n("Map.prototype.has", !0), m = function(f, g) {
|
|
4150
4153
|
for (var v = f, S; (S = v.next) !== null; v = S)
|
|
4151
4154
|
if (S.key === g)
|
|
4152
4155
|
return v.next = S.next, S.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -4200,10 +4203,10 @@ function ol() {
|
|
|
4200
4203
|
return C;
|
|
4201
4204
|
}, yr;
|
|
4202
4205
|
}
|
|
4203
|
-
var gr,
|
|
4204
|
-
function
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4206
|
+
var gr, ca;
|
|
4207
|
+
function Mr() {
|
|
4208
|
+
if (ca) return gr;
|
|
4209
|
+
ca = 1;
|
|
4207
4210
|
var e = String.prototype.replace, n = /%20/g, r = {
|
|
4208
4211
|
RFC1738: "RFC1738",
|
|
4209
4212
|
RFC3986: "RFC3986"
|
|
@@ -4222,11 +4225,11 @@ function Br() {
|
|
|
4222
4225
|
RFC3986: r.RFC3986
|
|
4223
4226
|
}, gr;
|
|
4224
4227
|
}
|
|
4225
|
-
var vr,
|
|
4226
|
-
function
|
|
4227
|
-
if (
|
|
4228
|
-
|
|
4229
|
-
var e = /* @__PURE__ */
|
|
4228
|
+
var vr, ua;
|
|
4229
|
+
function La() {
|
|
4230
|
+
if (ua) return vr;
|
|
4231
|
+
ua = 1;
|
|
4232
|
+
var e = /* @__PURE__ */ Mr(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = (function() {
|
|
4230
4233
|
for (var f = [], g = 0; g < 256; ++g)
|
|
4231
4234
|
f.push("%" + ((g < 16 ? "0" : "") + g.toString(16)).toUpperCase());
|
|
4232
4235
|
return f;
|
|
@@ -4290,34 +4293,34 @@ function Fa() {
|
|
|
4290
4293
|
return "%26%23" + parseInt(B.slice(2), 16) + "%3B";
|
|
4291
4294
|
});
|
|
4292
4295
|
for (var x = "", k = 0; k < T.length; k += u) {
|
|
4293
|
-
for (var A = T.length >= u ? T.slice(k, k + u) : T,
|
|
4294
|
-
var O = A.charCodeAt(
|
|
4296
|
+
for (var A = T.length >= u ? T.slice(k, k + u) : T, E = [], U = 0; U < A.length; ++U) {
|
|
4297
|
+
var O = A.charCodeAt(U);
|
|
4295
4298
|
if (O === 45 || O === 46 || O === 95 || O === 126 || O >= 48 && O <= 57 || O >= 65 && O <= 90 || O >= 97 && O <= 122 || h === e.RFC1738 && (O === 40 || O === 41)) {
|
|
4296
|
-
|
|
4299
|
+
E[E.length] = A.charAt(U);
|
|
4297
4300
|
continue;
|
|
4298
4301
|
}
|
|
4299
4302
|
if (O < 128) {
|
|
4300
|
-
|
|
4303
|
+
E[E.length] = a[O];
|
|
4301
4304
|
continue;
|
|
4302
4305
|
}
|
|
4303
4306
|
if (O < 2048) {
|
|
4304
|
-
|
|
4307
|
+
E[E.length] = a[192 | O >> 6] + a[128 | O & 63];
|
|
4305
4308
|
continue;
|
|
4306
4309
|
}
|
|
4307
4310
|
if (O < 55296 || O >= 57344) {
|
|
4308
|
-
|
|
4311
|
+
E[E.length] = a[224 | O >> 12] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4309
4312
|
continue;
|
|
4310
4313
|
}
|
|
4311
|
-
|
|
4314
|
+
U += 1, O = 65536 + ((O & 1023) << 10 | A.charCodeAt(U) & 1023), E[E.length] = a[240 | O >> 18] + a[128 | O >> 12 & 63] + a[128 | O >> 6 & 63] + a[128 | O & 63];
|
|
4312
4315
|
}
|
|
4313
|
-
x +=
|
|
4316
|
+
x += E.join("");
|
|
4314
4317
|
}
|
|
4315
4318
|
return x;
|
|
4316
4319
|
}, d = function(g) {
|
|
4317
4320
|
for (var v = [{ obj: { o: g }, prop: "o" }], S = [], C = 0; C < v.length; ++C)
|
|
4318
4321
|
for (var h = v[C], T = h.obj[h.prop], x = Object.keys(T), k = 0; k < x.length; ++k) {
|
|
4319
|
-
var A = x[k],
|
|
4320
|
-
typeof
|
|
4322
|
+
var A = x[k], E = T[A];
|
|
4323
|
+
typeof E == "object" && E !== null && S.indexOf(E) === -1 && (v.push({ obj: T, prop: A }), S.push(E));
|
|
4321
4324
|
}
|
|
4322
4325
|
return c(v), g;
|
|
4323
4326
|
}, m = function(g) {
|
|
@@ -4347,11 +4350,11 @@ function Fa() {
|
|
|
4347
4350
|
merge: t
|
|
4348
4351
|
}, vr;
|
|
4349
4352
|
}
|
|
4350
|
-
var xr,
|
|
4351
|
-
function
|
|
4352
|
-
if (
|
|
4353
|
-
|
|
4354
|
-
var e =
|
|
4353
|
+
var xr, pa;
|
|
4354
|
+
function sl() {
|
|
4355
|
+
if (pa) return xr;
|
|
4356
|
+
pa = 1;
|
|
4357
|
+
var e = il(), n = /* @__PURE__ */ La(), r = /* @__PURE__ */ Mr(), a = Object.prototype.hasOwnProperty, c = {
|
|
4355
4358
|
brackets: function(f) {
|
|
4356
4359
|
return f + "[]";
|
|
4357
4360
|
},
|
|
@@ -4387,8 +4390,8 @@ function il() {
|
|
|
4387
4390
|
strictNullHandling: !1
|
|
4388
4391
|
}, d = function(f) {
|
|
4389
4392
|
return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
|
|
4390
|
-
}, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A,
|
|
4391
|
-
for (var
|
|
4393
|
+
}, m = {}, y = function b(f, g, v, S, C, h, T, x, k, A, E, U, O, B, L, G, se, ee) {
|
|
4394
|
+
for (var R = f, ne = ee, N = 0, q = !1; (ne = ne.get(m)) !== void 0 && !q; ) {
|
|
4392
4395
|
var F = ne.get(f);
|
|
4393
4396
|
if (N += 1, typeof F < "u") {
|
|
4394
4397
|
if (F === N)
|
|
@@ -4397,42 +4400,42 @@ function il() {
|
|
|
4397
4400
|
}
|
|
4398
4401
|
typeof ne.get(m) > "u" && (N = 0);
|
|
4399
4402
|
}
|
|
4400
|
-
if (typeof A == "function" ?
|
|
4403
|
+
if (typeof A == "function" ? R = A(g, R) : R instanceof Date ? R = O(R) : v === "comma" && i(R) && (R = n.maybeMap(R, function(X) {
|
|
4401
4404
|
return X instanceof Date ? O(X) : X;
|
|
4402
|
-
})),
|
|
4405
|
+
})), R === null) {
|
|
4403
4406
|
if (h)
|
|
4404
4407
|
return k && !G ? k(g, p.encoder, se, "key", B) : g;
|
|
4405
|
-
|
|
4408
|
+
R = "";
|
|
4406
4409
|
}
|
|
4407
|
-
if (d(
|
|
4410
|
+
if (d(R) || n.isBuffer(R)) {
|
|
4408
4411
|
if (k) {
|
|
4409
4412
|
var P = G ? g : k(g, p.encoder, se, "key", B);
|
|
4410
|
-
return [
|
|
4413
|
+
return [L(P) + "=" + L(k(R, p.encoder, se, "value", B))];
|
|
4411
4414
|
}
|
|
4412
|
-
return [
|
|
4415
|
+
return [L(g) + "=" + L(String(R))];
|
|
4413
4416
|
}
|
|
4414
|
-
var
|
|
4415
|
-
if (typeof
|
|
4416
|
-
return
|
|
4417
|
+
var _ = [];
|
|
4418
|
+
if (typeof R > "u")
|
|
4419
|
+
return _;
|
|
4417
4420
|
var J;
|
|
4418
|
-
if (v === "comma" && i(
|
|
4419
|
-
G && k && (
|
|
4421
|
+
if (v === "comma" && i(R))
|
|
4422
|
+
G && k && (R = n.maybeMap(R, k)), J = [{ value: R.length > 0 ? R.join(",") || null : void 0 }];
|
|
4420
4423
|
else if (i(A))
|
|
4421
4424
|
J = A;
|
|
4422
4425
|
else {
|
|
4423
|
-
var W = Object.keys(
|
|
4424
|
-
J =
|
|
4426
|
+
var W = Object.keys(R);
|
|
4427
|
+
J = E ? W.sort(E) : W;
|
|
4425
4428
|
}
|
|
4426
|
-
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(
|
|
4427
|
-
if (C && i(
|
|
4429
|
+
var Y = x ? g.replace(/\./g, "%2E") : g, ae = S && i(R) && R.length === 1 ? Y + "[]" : Y;
|
|
4430
|
+
if (C && i(R) && R.length === 0)
|
|
4428
4431
|
return ae + "[]";
|
|
4429
4432
|
for (var D = 0; D < J.length; ++D) {
|
|
4430
|
-
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value :
|
|
4433
|
+
var I = J[D], H = typeof I == "object" && typeof I.value < "u" ? I.value : R[I];
|
|
4431
4434
|
if (!(T && H === null)) {
|
|
4432
|
-
var M =
|
|
4435
|
+
var M = U && x ? I.replace(/\./g, "%2E") : I, K = i(R) ? typeof v == "function" ? v(ae, M) : ae : ae + (U ? "." + M : "[" + M + "]");
|
|
4433
4436
|
ee.set(f, N);
|
|
4434
4437
|
var V = e();
|
|
4435
|
-
V.set(m, ee), o(
|
|
4438
|
+
V.set(m, ee), o(_, b(
|
|
4436
4439
|
H,
|
|
4437
4440
|
K,
|
|
4438
4441
|
v,
|
|
@@ -4441,20 +4444,20 @@ function il() {
|
|
|
4441
4444
|
h,
|
|
4442
4445
|
T,
|
|
4443
4446
|
x,
|
|
4444
|
-
v === "comma" && G && i(
|
|
4447
|
+
v === "comma" && G && i(R) ? null : k,
|
|
4445
4448
|
A,
|
|
4446
|
-
|
|
4447
|
-
|
|
4449
|
+
E,
|
|
4450
|
+
U,
|
|
4448
4451
|
O,
|
|
4449
4452
|
B,
|
|
4450
|
-
|
|
4453
|
+
L,
|
|
4451
4454
|
G,
|
|
4452
4455
|
se,
|
|
4453
4456
|
V
|
|
4454
4457
|
));
|
|
4455
4458
|
}
|
|
4456
4459
|
}
|
|
4457
|
-
return
|
|
4460
|
+
return _;
|
|
4458
4461
|
}, j = function(f) {
|
|
4459
4462
|
if (!f)
|
|
4460
4463
|
return p;
|
|
@@ -4510,10 +4513,10 @@ function il() {
|
|
|
4510
4513
|
var T = c[v.arrayFormat], x = T === "comma" && v.commaRoundTrip;
|
|
4511
4514
|
S || (S = Object.keys(g)), v.sort && S.sort(v.sort);
|
|
4512
4515
|
for (var k = e(), A = 0; A < S.length; ++A) {
|
|
4513
|
-
var
|
|
4514
|
-
v.skipNulls && g[
|
|
4515
|
-
g[
|
|
4516
|
-
|
|
4516
|
+
var E = S[A];
|
|
4517
|
+
v.skipNulls && g[E] === null || o(h, y(
|
|
4518
|
+
g[E],
|
|
4519
|
+
E,
|
|
4517
4520
|
T,
|
|
4518
4521
|
x,
|
|
4519
4522
|
v.allowEmptyArrays,
|
|
@@ -4532,15 +4535,15 @@ function il() {
|
|
|
4532
4535
|
k
|
|
4533
4536
|
));
|
|
4534
4537
|
}
|
|
4535
|
-
var
|
|
4536
|
-
return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"),
|
|
4538
|
+
var U = h.join(v.delimiter), O = v.addQueryPrefix === !0 ? "?" : "";
|
|
4539
|
+
return v.charsetSentinel && (v.charset === "iso-8859-1" ? O += "utf8=%26%2310003%3B&" : O += "utf8=%E2%9C%93&"), U.length > 0 ? O + U : "";
|
|
4537
4540
|
}, xr;
|
|
4538
4541
|
}
|
|
4539
|
-
var br,
|
|
4540
|
-
function
|
|
4541
|
-
if (
|
|
4542
|
-
|
|
4543
|
-
var e = /* @__PURE__ */
|
|
4542
|
+
var br, fa;
|
|
4543
|
+
function ll() {
|
|
4544
|
+
if (fa) return br;
|
|
4545
|
+
fa = 1;
|
|
4546
|
+
var e = /* @__PURE__ */ La(), n = Object.prototype.hasOwnProperty, r = Array.isArray, a = {
|
|
4544
4547
|
allowDots: !1,
|
|
4545
4548
|
allowEmptyArrays: !1,
|
|
4546
4549
|
allowPrototypes: !1,
|
|
@@ -4576,15 +4579,15 @@ function sl() {
|
|
|
4576
4579
|
v[C].indexOf("utf8=") === 0 && (v[C] === o ? h = "utf-8" : v[C] === t && (h = "iso-8859-1"), S = C, C = v.length);
|
|
4577
4580
|
for (C = 0; C < v.length; ++C)
|
|
4578
4581
|
if (C !== S) {
|
|
4579
|
-
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A,
|
|
4580
|
-
k === -1 ? (A = j.decoder(T, a.decoder, h, "key"),
|
|
4582
|
+
var T = v[C], x = T.indexOf("]="), k = x === -1 ? T.indexOf("=") : x + 1, A, E;
|
|
4583
|
+
k === -1 ? (A = j.decoder(T, a.decoder, h, "key"), E = j.strictNullHandling ? null : "") : (A = j.decoder(T.slice(0, k), a.decoder, h, "key"), E = e.maybeMap(
|
|
4581
4584
|
i(T.slice(k + 1), j),
|
|
4582
4585
|
function(O) {
|
|
4583
4586
|
return j.decoder(O, a.decoder, h, "value");
|
|
4584
4587
|
}
|
|
4585
|
-
)),
|
|
4586
|
-
var
|
|
4587
|
-
|
|
4588
|
+
)), E && j.interpretNumericEntities && h === "iso-8859-1" && (E = c(E)), T.indexOf("[]=") > -1 && (E = r(E) ? [E] : E);
|
|
4589
|
+
var U = n.call(b, A);
|
|
4590
|
+
U && j.duplicates === "combine" ? b[A] = e.combine(b[A], E) : (!U || j.duplicates === "last") && (b[A] = E);
|
|
4588
4591
|
}
|
|
4589
4592
|
return b;
|
|
4590
4593
|
}, u = function(m, y, j, b) {
|
|
@@ -4670,22 +4673,22 @@ function sl() {
|
|
|
4670
4673
|
return j.allowSparse === !0 ? f : e.compact(f);
|
|
4671
4674
|
}, br;
|
|
4672
4675
|
}
|
|
4673
|
-
var jr,
|
|
4674
|
-
function
|
|
4675
|
-
if (
|
|
4676
|
-
|
|
4677
|
-
var e = /* @__PURE__ */
|
|
4676
|
+
var jr, da;
|
|
4677
|
+
function Fa() {
|
|
4678
|
+
if (da) return jr;
|
|
4679
|
+
da = 1;
|
|
4680
|
+
var e = /* @__PURE__ */ sl(), n = /* @__PURE__ */ ll(), r = /* @__PURE__ */ Mr();
|
|
4678
4681
|
return jr = {
|
|
4679
4682
|
formats: r,
|
|
4680
4683
|
parse: n,
|
|
4681
4684
|
stringify: e
|
|
4682
4685
|
}, jr;
|
|
4683
4686
|
}
|
|
4684
|
-
var
|
|
4685
|
-
function
|
|
4686
|
-
if (
|
|
4687
|
-
|
|
4688
|
-
var e =
|
|
4687
|
+
var ha;
|
|
4688
|
+
function cl() {
|
|
4689
|
+
if (ha) return Te;
|
|
4690
|
+
ha = 1;
|
|
4691
|
+
var e = Ps();
|
|
4689
4692
|
function n() {
|
|
4690
4693
|
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;
|
|
4691
4694
|
}
|
|
@@ -4733,7 +4736,7 @@ function ll() {
|
|
|
4733
4736
|
"ftp:": !0,
|
|
4734
4737
|
"gopher:": !0,
|
|
4735
4738
|
"file:": !0
|
|
4736
|
-
}, f = /* @__PURE__ */
|
|
4739
|
+
}, f = /* @__PURE__ */ Fa();
|
|
4737
4740
|
function g(h, T, x) {
|
|
4738
4741
|
if (h && typeof h == "object" && h instanceof n)
|
|
4739
4742
|
return h;
|
|
@@ -4743,45 +4746,45 @@ function ll() {
|
|
|
4743
4746
|
n.prototype.parse = function(h, T, x) {
|
|
4744
4747
|
if (typeof h != "string")
|
|
4745
4748
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof h);
|
|
4746
|
-
var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#",
|
|
4747
|
-
|
|
4749
|
+
var k = h.indexOf("?"), A = k !== -1 && k < h.indexOf("#") ? "?" : "#", E = h.split(A), U = /\\/g;
|
|
4750
|
+
E[0] = E[0].replace(U, "/"), h = E.join(A);
|
|
4748
4751
|
var O = h;
|
|
4749
4752
|
if (O = O.trim(), !x && h.split("#").length === 1) {
|
|
4750
4753
|
var B = c.exec(O);
|
|
4751
4754
|
if (B)
|
|
4752
4755
|
return this.path = O, this.href = O, this.pathname = B[1], B[2] ? (this.search = B[2], T ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : T && (this.search = "", this.query = {}), this;
|
|
4753
4756
|
}
|
|
4754
|
-
var
|
|
4755
|
-
if (
|
|
4756
|
-
|
|
4757
|
-
var G =
|
|
4758
|
-
this.protocol = G, O = O.substr(
|
|
4757
|
+
var L = r.exec(O);
|
|
4758
|
+
if (L) {
|
|
4759
|
+
L = L[0];
|
|
4760
|
+
var G = L.toLowerCase();
|
|
4761
|
+
this.protocol = G, O = O.substr(L.length);
|
|
4759
4762
|
}
|
|
4760
|
-
if (x ||
|
|
4763
|
+
if (x || L || O.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
4761
4764
|
var se = O.substr(0, 2) === "//";
|
|
4762
|
-
se && !(
|
|
4765
|
+
se && !(L && j[L]) && (O = O.substr(2), this.slashes = !0);
|
|
4763
4766
|
}
|
|
4764
|
-
if (!j[
|
|
4765
|
-
for (var ee = -1,
|
|
4766
|
-
var ne = O.indexOf(u[
|
|
4767
|
+
if (!j[L] && (se || L && !b[L])) {
|
|
4768
|
+
for (var ee = -1, R = 0; R < u.length; R++) {
|
|
4769
|
+
var ne = O.indexOf(u[R]);
|
|
4767
4770
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4768
4771
|
}
|
|
4769
4772
|
var N, q;
|
|
4770
4773
|
ee === -1 ? q = O.lastIndexOf("@") : q = O.lastIndexOf("@", ee), q !== -1 && (N = O.slice(0, q), O = O.slice(q + 1), this.auth = decodeURIComponent(N)), ee = -1;
|
|
4771
|
-
for (var
|
|
4772
|
-
var ne = O.indexOf(s[
|
|
4774
|
+
for (var R = 0; R < s.length; R++) {
|
|
4775
|
+
var ne = O.indexOf(s[R]);
|
|
4773
4776
|
ne !== -1 && (ee === -1 || ne < ee) && (ee = ne);
|
|
4774
4777
|
}
|
|
4775
4778
|
ee === -1 && (ee = O.length), this.host = O.slice(0, ee), O = O.slice(ee), this.parseHost(), this.hostname = this.hostname || "";
|
|
4776
4779
|
var F = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
4777
4780
|
if (!F)
|
|
4778
|
-
for (var P = this.hostname.split(/\./),
|
|
4779
|
-
var J = P[
|
|
4781
|
+
for (var P = this.hostname.split(/\./), R = 0, _ = P.length; R < _; R++) {
|
|
4782
|
+
var J = P[R];
|
|
4780
4783
|
if (J && !J.match(d)) {
|
|
4781
4784
|
for (var W = "", Y = 0, ae = J.length; Y < ae; Y++)
|
|
4782
4785
|
J.charCodeAt(Y) > 127 ? W += "x" : W += J[Y];
|
|
4783
4786
|
if (!W.match(d)) {
|
|
4784
|
-
var D = P.slice(0,
|
|
4787
|
+
var D = P.slice(0, R), I = P.slice(R + 1), H = J.match(m);
|
|
4785
4788
|
H && (D.push(H[1]), I.unshift(H[2])), I.length && (O = "/" + I.join(".") + O), this.hostname = D.join(".");
|
|
4786
4789
|
break;
|
|
4787
4790
|
}
|
|
@@ -4792,8 +4795,8 @@ function ll() {
|
|
|
4792
4795
|
this.host = K + M, this.href += this.host, F && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), O[0] !== "/" && (O = "/" + O));
|
|
4793
4796
|
}
|
|
4794
4797
|
if (!y[G])
|
|
4795
|
-
for (var
|
|
4796
|
-
var V = o[
|
|
4798
|
+
for (var R = 0, _ = o.length; R < _; R++) {
|
|
4799
|
+
var V = o[R];
|
|
4797
4800
|
if (O.indexOf(V) !== -1) {
|
|
4798
4801
|
var X = encodeURIComponent(V);
|
|
4799
4802
|
X === V && (X = escape(V)), O = O.split(V).join(X);
|
|
@@ -4803,8 +4806,8 @@ function ll() {
|
|
|
4803
4806
|
oe !== -1 && (this.hash = O.substr(oe), O = O.slice(0, oe));
|
|
4804
4807
|
var he = O.indexOf("?");
|
|
4805
4808
|
if (he !== -1 ? (this.search = O.substr(he), this.query = O.substr(he + 1), T && (this.query = f.parse(this.query)), O = O.slice(0, he)) : T && (this.search = "", this.query = {}), O && (this.pathname = O), b[G] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
4806
|
-
var M = this.pathname || "",
|
|
4807
|
-
this.path = M +
|
|
4809
|
+
var M = this.pathname || "", we = this.search || "";
|
|
4810
|
+
this.path = M + we;
|
|
4808
4811
|
}
|
|
4809
4812
|
return this.href = this.format(), this;
|
|
4810
4813
|
};
|
|
@@ -4814,15 +4817,15 @@ function ll() {
|
|
|
4814
4817
|
n.prototype.format = function() {
|
|
4815
4818
|
var h = this.auth || "";
|
|
4816
4819
|
h && (h = encodeURIComponent(h), h = h.replace(/%3A/i, ":"), h += "@");
|
|
4817
|
-
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1,
|
|
4818
|
-
this.host ? A = h + this.host : this.hostname && (A = h + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (A += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (
|
|
4820
|
+
var T = this.protocol || "", x = this.pathname || "", k = this.hash || "", A = !1, E = "";
|
|
4821
|
+
this.host ? A = h + this.host : this.hostname && (A = h + (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 = f.stringify(this.query, {
|
|
4819
4822
|
arrayFormat: "repeat",
|
|
4820
4823
|
addQueryPrefix: !1
|
|
4821
4824
|
}));
|
|
4822
|
-
var
|
|
4823
|
-
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k),
|
|
4825
|
+
var U = this.search || E && "?" + E || "";
|
|
4826
|
+
return T && T.substr(-1) !== ":" && (T += ":"), this.slashes || (!T || b[T]) && A !== !1 ? (A = "//" + (A || ""), x && x.charAt(0) !== "/" && (x = "/" + x)) : A || (A = ""), k && k.charAt(0) !== "#" && (k = "#" + k), U && U.charAt(0) !== "?" && (U = "?" + U), x = x.replace(/[?#]/g, function(O) {
|
|
4824
4827
|
return encodeURIComponent(O);
|
|
4825
|
-
}),
|
|
4828
|
+
}), U = U.replace("#", "%23"), T + A + x + U + k;
|
|
4826
4829
|
};
|
|
4827
4830
|
function S(h, T) {
|
|
4828
4831
|
return g(h, !1, !0).resolve(T);
|
|
@@ -4839,43 +4842,43 @@ function ll() {
|
|
|
4839
4842
|
T.parse(h, !1, !0), h = T;
|
|
4840
4843
|
}
|
|
4841
4844
|
for (var x = new n(), k = Object.keys(this), A = 0; A < k.length; A++) {
|
|
4842
|
-
var
|
|
4843
|
-
x[
|
|
4845
|
+
var E = k[A];
|
|
4846
|
+
x[E] = this[E];
|
|
4844
4847
|
}
|
|
4845
4848
|
if (x.hash = h.hash, h.href === "")
|
|
4846
4849
|
return x.href = x.format(), x;
|
|
4847
4850
|
if (h.slashes && !h.protocol) {
|
|
4848
|
-
for (var
|
|
4849
|
-
var B =
|
|
4851
|
+
for (var U = Object.keys(h), O = 0; O < U.length; O++) {
|
|
4852
|
+
var B = U[O];
|
|
4850
4853
|
B !== "protocol" && (x[B] = h[B]);
|
|
4851
4854
|
}
|
|
4852
4855
|
return b[x.protocol] && x.hostname && !x.pathname && (x.pathname = "/", x.path = x.pathname), x.href = x.format(), x;
|
|
4853
4856
|
}
|
|
4854
4857
|
if (h.protocol && h.protocol !== x.protocol) {
|
|
4855
4858
|
if (!b[h.protocol]) {
|
|
4856
|
-
for (var
|
|
4857
|
-
var se =
|
|
4859
|
+
for (var L = Object.keys(h), G = 0; G < L.length; G++) {
|
|
4860
|
+
var se = L[G];
|
|
4858
4861
|
x[se] = h[se];
|
|
4859
4862
|
}
|
|
4860
4863
|
return x.href = x.format(), x;
|
|
4861
4864
|
}
|
|
4862
4865
|
if (x.protocol = h.protocol, !h.host && !j[h.protocol]) {
|
|
4863
|
-
for (var
|
|
4866
|
+
for (var _ = (h.pathname || "").split("/"); _.length && !(h.host = _.shift()); )
|
|
4864
4867
|
;
|
|
4865
|
-
h.host || (h.host = ""), h.hostname || (h.hostname = ""),
|
|
4868
|
+
h.host || (h.host = ""), h.hostname || (h.hostname = ""), _[0] !== "" && _.unshift(""), _.length < 2 && _.unshift(""), x.pathname = _.join("/");
|
|
4866
4869
|
} else
|
|
4867
4870
|
x.pathname = h.pathname;
|
|
4868
4871
|
if (x.search = h.search, x.query = h.query, x.host = h.host || "", x.auth = h.auth, x.hostname = h.hostname || h.host, x.port = h.port, x.pathname || x.search) {
|
|
4869
|
-
var ee = x.pathname || "",
|
|
4870
|
-
x.path = ee +
|
|
4872
|
+
var ee = x.pathname || "", R = x.search || "";
|
|
4873
|
+
x.path = ee + R;
|
|
4871
4874
|
}
|
|
4872
4875
|
return x.slashes = x.slashes || h.slashes, x.href = x.format(), x;
|
|
4873
4876
|
}
|
|
4874
|
-
var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [],
|
|
4875
|
-
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (
|
|
4876
|
-
x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P =
|
|
4877
|
-
else if (
|
|
4878
|
-
P || (P = []), P.pop(), P = P.concat(
|
|
4877
|
+
var ne = x.pathname && x.pathname.charAt(0) === "/", N = h.host || h.pathname && h.pathname.charAt(0) === "/", q = N || ne || x.host && h.pathname, F = q, P = x.pathname && x.pathname.split("/") || [], _ = h.pathname && h.pathname.split("/") || [], J = x.protocol && !b[x.protocol];
|
|
4878
|
+
if (J && (x.hostname = "", x.port = null, x.host && (P[0] === "" ? P[0] = x.host : P.unshift(x.host)), x.host = "", h.protocol && (h.hostname = null, h.port = null, h.host && (_[0] === "" ? _[0] = h.host : _.unshift(h.host)), h.host = null), q = q && (_[0] === "" || P[0] === "")), N)
|
|
4879
|
+
x.host = h.host || h.host === "" ? h.host : x.host, x.hostname = h.hostname || h.hostname === "" ? h.hostname : x.hostname, x.search = h.search, x.query = h.query, P = _;
|
|
4880
|
+
else if (_.length)
|
|
4881
|
+
P || (P = []), P.pop(), P = P.concat(_), x.search = h.search, x.query = h.query;
|
|
4879
4882
|
else if (h.search != null) {
|
|
4880
4883
|
if (J) {
|
|
4881
4884
|
x.host = P.shift(), x.hostname = x.host;
|
|
@@ -4904,12 +4907,12 @@ function ll() {
|
|
|
4904
4907
|
T && (T = T[0], T !== ":" && (this.port = T.substr(1)), h = h.substr(0, h.length - T.length)), h && (this.hostname = h);
|
|
4905
4908
|
}, Te.parse = g, Te.resolve = S, Te.resolveObject = C, Te.format = v, Te.Url = n, Te;
|
|
4906
4909
|
}
|
|
4907
|
-
var
|
|
4910
|
+
var wr = cl(), $r = /* @__PURE__ */ Fa(), ul = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), pl = class {
|
|
4908
4911
|
constructor(e, n = {}) {
|
|
4909
4912
|
this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
|
|
4910
4913
|
harIsAlreadyEncoded: !1,
|
|
4911
4914
|
...n
|
|
4912
|
-
}, this.requests = [],
|
|
4915
|
+
}, this.requests = [], ul(e) ? this.entries = e.log.entries : this.entries = [
|
|
4913
4916
|
{
|
|
4914
4917
|
request: e
|
|
4915
4918
|
}
|
|
@@ -4942,7 +4945,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4942
4945
|
cookiesObj: {},
|
|
4943
4946
|
allHeaders: {}
|
|
4944
4947
|
};
|
|
4945
|
-
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(
|
|
4948
|
+
if (r.queryString && r.queryString.length && (r.queryObj = r.queryString.reduce(an, {})), r.headers && r.headers.length) {
|
|
4946
4949
|
const p = /^HTTP\/2/;
|
|
4947
4950
|
r.headersObj = r.headers.reduce((d, { name: m, value: y }) => {
|
|
4948
4951
|
const j = p.exec(r.httpVersion) ? m.toLocaleLowerCase() : m;
|
|
@@ -4980,7 +4983,7 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4980
4983
|
}
|
|
4981
4984
|
break;
|
|
4982
4985
|
case "application/x-www-form-urlencoded":
|
|
4983
|
-
r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(
|
|
4986
|
+
r.postData.params ? (r.postData.paramsObj = r.postData.params.reduce(an, {}), r.postData.text = $r.stringify(r.postData.paramsObj)) : r.postData.text = "";
|
|
4984
4987
|
break;
|
|
4985
4988
|
case "text/json":
|
|
4986
4989
|
case "text/x-json":
|
|
@@ -4997,16 +5000,16 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
4997
5000
|
const c = {
|
|
4998
5001
|
...r.allHeaders,
|
|
4999
5002
|
...r.headersObj
|
|
5000
|
-
}, i =
|
|
5003
|
+
}, i = wr.parse(r.url, !0, !0);
|
|
5001
5004
|
r.queryObj = {
|
|
5002
5005
|
...r.queryObj,
|
|
5003
5006
|
...i.query
|
|
5004
5007
|
};
|
|
5005
5008
|
let t;
|
|
5006
|
-
n.harIsAlreadyEncoded ? t =
|
|
5009
|
+
n.harIsAlreadyEncoded ? t = $r.stringify(r.queryObj, {
|
|
5007
5010
|
encode: !1,
|
|
5008
5011
|
indices: !1
|
|
5009
|
-
}) : t =
|
|
5012
|
+
}) : t = $r.stringify(r.queryObj, {
|
|
5010
5013
|
indices: !1
|
|
5011
5014
|
});
|
|
5012
5015
|
const o = {
|
|
@@ -5014,11 +5017,11 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
5014
5017
|
query: r.queryObj,
|
|
5015
5018
|
search: t,
|
|
5016
5019
|
path: t ? `${i.pathname}?${t}` : i.pathname
|
|
5017
|
-
}, s =
|
|
5020
|
+
}, s = wr.format({
|
|
5018
5021
|
...i,
|
|
5019
5022
|
query: null,
|
|
5020
5023
|
search: null
|
|
5021
|
-
}), u =
|
|
5024
|
+
}), u = wr.format({
|
|
5022
5025
|
...i,
|
|
5023
5026
|
...o
|
|
5024
5027
|
});
|
|
@@ -5032,14 +5035,14 @@ var $r = ll(), wr = /* @__PURE__ */ Ha(), cl = (e) => typeof e == "object" && "l
|
|
|
5032
5035
|
}
|
|
5033
5036
|
convert(e, n, r) {
|
|
5034
5037
|
this.initCalled || this.init(), !r && n && (r = n);
|
|
5035
|
-
const a =
|
|
5038
|
+
const a = Ts[e];
|
|
5036
5039
|
if (!a)
|
|
5037
5040
|
return !1;
|
|
5038
5041
|
const { convert: c } = a.clientsById[n || a.info.default];
|
|
5039
5042
|
return this.requests.map((t) => c(t, r));
|
|
5040
5043
|
}
|
|
5041
5044
|
};
|
|
5042
|
-
const
|
|
5045
|
+
const fl = (e) => {
|
|
5043
5046
|
const n = (r) => typeof r == "string" ? r : JSON.stringify(r);
|
|
5044
5047
|
try {
|
|
5045
5048
|
const r = e && JSON.parse(e);
|
|
@@ -5047,16 +5050,16 @@ const pl = (e) => {
|
|
|
5047
5050
|
} catch {
|
|
5048
5051
|
return [];
|
|
5049
5052
|
}
|
|
5050
|
-
},
|
|
5053
|
+
}, dl = ({
|
|
5051
5054
|
operation: e,
|
|
5052
5055
|
selectedServer: n,
|
|
5053
5056
|
exampleBody: r
|
|
5054
5057
|
}) => {
|
|
5055
5058
|
const c = r.mimeType === "multipart/form-data" || r.mimeType === "application/x-www-form-urlencoded" ? {
|
|
5056
5059
|
mimeType: r.mimeType,
|
|
5057
|
-
params:
|
|
5060
|
+
params: fl(r.text)
|
|
5058
5061
|
} : r;
|
|
5059
|
-
return new
|
|
5062
|
+
return new pl({
|
|
5060
5063
|
method: e.method.toUpperCase(),
|
|
5061
5064
|
url: n + e.path.replaceAll("{", ":").replaceAll("}", ""),
|
|
5062
5065
|
postData: c,
|
|
@@ -5076,7 +5079,7 @@ const pl = (e) => {
|
|
|
5076
5079
|
headersSize: 0,
|
|
5077
5080
|
bodySize: 0
|
|
5078
5081
|
});
|
|
5079
|
-
},
|
|
5082
|
+
}, hl = (e, n) => {
|
|
5080
5083
|
let r;
|
|
5081
5084
|
switch (n) {
|
|
5082
5085
|
case "shell":
|
|
@@ -5118,7 +5121,7 @@ const pl = (e) => {
|
|
|
5118
5121
|
}
|
|
5119
5122
|
return r ? r[0] : "";
|
|
5120
5123
|
}, Pe = (e, n) => {
|
|
5121
|
-
if (!e ||
|
|
5124
|
+
if (!e || vo(e))
|
|
5122
5125
|
return null;
|
|
5123
5126
|
if (e.example !== void 0)
|
|
5124
5127
|
return e.example;
|
|
@@ -5187,7 +5190,7 @@ const pl = (e) => {
|
|
|
5187
5190
|
purple: "text-purple-600",
|
|
5188
5191
|
indigo: "text-indigo-600",
|
|
5189
5192
|
gray: "text-gray-600"
|
|
5190
|
-
},
|
|
5193
|
+
}, ml = {
|
|
5191
5194
|
get: xe.green,
|
|
5192
5195
|
post: xe.blue,
|
|
5193
5196
|
put: xe.yellow,
|
|
@@ -5196,8 +5199,8 @@ const pl = (e) => {
|
|
|
5196
5199
|
options: xe.indigo,
|
|
5197
5200
|
head: xe.gray,
|
|
5198
5201
|
trace: xe.gray
|
|
5199
|
-
},
|
|
5200
|
-
|
|
5202
|
+
}, Ha = (e) => ml[e.toLocaleLowerCase()] ?? xe.gray;
|
|
5203
|
+
Je(
|
|
5201
5204
|
/* GraphQL */
|
|
5202
5205
|
`
|
|
5203
5206
|
query getServerQuery($input: JSON!, $type: SchemaType!) {
|
|
@@ -5210,7 +5213,7 @@ Ve(
|
|
|
5210
5213
|
}
|
|
5211
5214
|
`
|
|
5212
5215
|
);
|
|
5213
|
-
const
|
|
5216
|
+
const yl = [
|
|
5214
5217
|
{ value: "shell", label: "cURL" },
|
|
5215
5218
|
{ value: "js", label: "JavaScript" },
|
|
5216
5219
|
{ value: "python", label: "Python" },
|
|
@@ -5222,13 +5225,13 @@ const ml = [
|
|
|
5222
5225
|
{ value: "php", label: "PHP" },
|
|
5223
5226
|
{ value: "ruby", label: "Ruby" },
|
|
5224
5227
|
{ value: "swift", label: "Swift" }
|
|
5225
|
-
],
|
|
5228
|
+
], gl = ({
|
|
5226
5229
|
operation: e,
|
|
5227
5230
|
selectedResponse: n,
|
|
5228
5231
|
globalSelectedServer: r,
|
|
5229
5232
|
shouldLazyHighlight: a
|
|
5230
5233
|
}) => {
|
|
5231
|
-
const { options: c } = ct(), i =
|
|
5234
|
+
const { options: c } = ct(), i = co(), t = uo(), o = Ha(e.method), [s, u] = Ya(), [, p] = Ta(), d = c?.supportedLanguages ?? yl, m = s.get("lang") ?? c?.examplesLanguage ?? "shell", y = d.find((O) => O.value === m)?.value ?? d.at(0)?.value ?? "shell", j = e.requestBody?.content, b = j && c?.transformExamples ? c.transformExamples({
|
|
5232
5235
|
auth: i,
|
|
5233
5236
|
type: "request",
|
|
5234
5237
|
operation: e,
|
|
@@ -5242,7 +5245,7 @@ const ml = [
|
|
|
5242
5245
|
), S = v?.examples?.at(
|
|
5243
5246
|
f.exampleIndex
|
|
5244
5247
|
), C = S ? S?.value ?? S : v?.schema ? Pe(v?.schema) : void 0, h = /* @__PURE__ */ l.jsx(
|
|
5245
|
-
|
|
5248
|
+
to,
|
|
5246
5249
|
{
|
|
5247
5250
|
path: e.path,
|
|
5248
5251
|
renderParam: ({ name: O }) => /* @__PURE__ */ l.jsx(
|
|
@@ -5256,7 +5259,7 @@ const ml = [
|
|
|
5256
5259
|
}
|
|
5257
5260
|
)
|
|
5258
5261
|
}
|
|
5259
|
-
), T = r || e.servers.at(0)?.url || "", x =
|
|
5262
|
+
), T = r || e.servers.at(0)?.url || "", x = Oo(() => {
|
|
5260
5263
|
const O = c?.generateCodeSnippet?.({
|
|
5261
5264
|
selectedLang: y,
|
|
5262
5265
|
selectedServer: T,
|
|
@@ -5266,7 +5269,7 @@ const ml = [
|
|
|
5266
5269
|
auth: i
|
|
5267
5270
|
});
|
|
5268
5271
|
if (O) return O;
|
|
5269
|
-
const B =
|
|
5272
|
+
const B = dl({
|
|
5270
5273
|
operation: e,
|
|
5271
5274
|
selectedServer: T,
|
|
5272
5275
|
exampleBody: C ? {
|
|
@@ -5274,7 +5277,7 @@ const ml = [
|
|
|
5274
5277
|
text: JSON.stringify(C, null, 2)
|
|
5275
5278
|
} : { mimeType: v?.mediaType ?? "application/json" }
|
|
5276
5279
|
});
|
|
5277
|
-
return
|
|
5280
|
+
return hl(B, y);
|
|
5278
5281
|
}, [
|
|
5279
5282
|
C,
|
|
5280
5283
|
e,
|
|
@@ -5284,7 +5287,7 @@ const ml = [
|
|
|
5284
5287
|
c,
|
|
5285
5288
|
i,
|
|
5286
5289
|
t
|
|
5287
|
-
]), [k, A] =
|
|
5290
|
+
]), [k, A] = ai({ rootMargin: "200px 0px 200px 0px" }), E = A && (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 && !c?.disablePlayground), U = e.responses.some(
|
|
5288
5291
|
(O) => O.content?.some((B) => (B.examples?.length ?? 0) > 0)
|
|
5289
5292
|
);
|
|
5290
5293
|
return /* @__PURE__ */ l.jsxs(
|
|
@@ -5298,7 +5301,7 @@ const ml = [
|
|
|
5298
5301
|
/* @__PURE__ */ l.jsx(pt, { className: "py-1.5", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center flex-wrap gap-2 justify-between w-full", children: [
|
|
5299
5302
|
/* @__PURE__ */ l.jsxs("span", { className: "font-mono wrap-break-word leading-6 space-x-1", children: [
|
|
5300
5303
|
/* @__PURE__ */ l.jsx(
|
|
5301
|
-
|
|
5304
|
+
Be,
|
|
5302
5305
|
{
|
|
5303
5306
|
variant: "outline",
|
|
5304
5307
|
className: fe(
|
|
@@ -5312,7 +5315,7 @@ const ml = [
|
|
|
5312
5315
|
] }),
|
|
5313
5316
|
/* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
5314
5317
|
/* @__PURE__ */ l.jsx(
|
|
5315
|
-
|
|
5318
|
+
ze,
|
|
5316
5319
|
{
|
|
5317
5320
|
className: "py-0.5 h-fit max-w-32 truncate bg-background",
|
|
5318
5321
|
value: y,
|
|
@@ -5322,7 +5325,7 @@ const ml = [
|
|
|
5322
5325
|
});
|
|
5323
5326
|
},
|
|
5324
5327
|
children: d.map((O) => /* @__PURE__ */ l.jsx(
|
|
5325
|
-
|
|
5328
|
+
Ge,
|
|
5326
5329
|
{
|
|
5327
5330
|
value: O.value,
|
|
5328
5331
|
children: O.label
|
|
@@ -5331,8 +5334,8 @@ const ml = [
|
|
|
5331
5334
|
))
|
|
5332
5335
|
}
|
|
5333
5336
|
),
|
|
5334
|
-
|
|
5335
|
-
|
|
5337
|
+
E && /* @__PURE__ */ l.jsx(
|
|
5338
|
+
li,
|
|
5336
5339
|
{
|
|
5337
5340
|
servers: e.servers.map((O) => O.url),
|
|
5338
5341
|
operation: e,
|
|
@@ -5341,8 +5344,8 @@ const ml = [
|
|
|
5341
5344
|
)
|
|
5342
5345
|
] })
|
|
5343
5346
|
] }) }),
|
|
5344
|
-
/* @__PURE__ */ l.jsx(
|
|
5345
|
-
|
|
5347
|
+
/* @__PURE__ */ l.jsx(Ur, { children: a && !A ? /* @__PURE__ */ l.jsx(_r, { code: x ?? "" }) : /* @__PURE__ */ l.jsx(
|
|
5348
|
+
Oa,
|
|
5346
5349
|
{
|
|
5347
5350
|
embedded: !0,
|
|
5348
5351
|
language: y,
|
|
@@ -5352,7 +5355,7 @@ const ml = [
|
|
|
5352
5355
|
) })
|
|
5353
5356
|
] }),
|
|
5354
5357
|
b && S ? /* @__PURE__ */ l.jsx(
|
|
5355
|
-
|
|
5358
|
+
pi,
|
|
5356
5359
|
{
|
|
5357
5360
|
content: b,
|
|
5358
5361
|
onExampleChange: (O) => {
|
|
@@ -5364,15 +5367,15 @@ const ml = [
|
|
|
5364
5367
|
shouldLazyHighlight: a
|
|
5365
5368
|
}
|
|
5366
5369
|
) : b && C ? /* @__PURE__ */ l.jsx(
|
|
5367
|
-
|
|
5370
|
+
si,
|
|
5368
5371
|
{
|
|
5369
5372
|
isOnScreen: A,
|
|
5370
5373
|
shouldLazyHighlight: a,
|
|
5371
5374
|
code: JSON.stringify(C, null, 2)
|
|
5372
5375
|
}
|
|
5373
5376
|
) : null,
|
|
5374
|
-
|
|
5375
|
-
|
|
5377
|
+
U ? /* @__PURE__ */ l.jsx(
|
|
5378
|
+
nn,
|
|
5376
5379
|
{
|
|
5377
5380
|
isOnScreen: A,
|
|
5378
5381
|
shouldLazyHighlight: a,
|
|
@@ -5389,7 +5392,7 @@ const ml = [
|
|
|
5389
5392
|
}))
|
|
5390
5393
|
}
|
|
5391
5394
|
) : /* @__PURE__ */ l.jsx(
|
|
5392
|
-
|
|
5395
|
+
nn,
|
|
5393
5396
|
{
|
|
5394
5397
|
isGenerated: !0,
|
|
5395
5398
|
isOnScreen: A,
|
|
@@ -5407,17 +5410,17 @@ const ml = [
|
|
|
5407
5410
|
]
|
|
5408
5411
|
}
|
|
5409
5412
|
);
|
|
5410
|
-
},
|
|
5413
|
+
}, vl = ["path", "query", "header", "cookie"], xl = ({
|
|
5411
5414
|
operationFragment: e,
|
|
5412
5415
|
globalSelectedServer: n,
|
|
5413
5416
|
shouldLazyHighlight: r
|
|
5414
5417
|
}) => {
|
|
5415
|
-
const a =
|
|
5418
|
+
const a = Go(bl, e), c = xo(
|
|
5416
5419
|
a.parameters ?? [],
|
|
5417
5420
|
(d) => d.in
|
|
5418
5421
|
), { options: i } = ct(), t = n || a.servers.at(0)?.url, o = a.responses.at(0), [s, u] = ge(o?.statusCode), p = a.extensions?.["x-mcp-server"] !== void 0;
|
|
5419
5422
|
return /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5420
|
-
a.deprecated && /* @__PURE__ */ l.jsx(
|
|
5423
|
+
a.deprecated && /* @__PURE__ */ l.jsx(Be, { variant: "muted", className: "text-xs mb-4", children: "deprecated" }),
|
|
5421
5424
|
/* @__PURE__ */ l.jsxs(
|
|
5422
5425
|
"div",
|
|
5423
5426
|
{
|
|
@@ -5427,7 +5430,7 @@ const ml = [
|
|
|
5427
5430
|
),
|
|
5428
5431
|
children: [
|
|
5429
5432
|
/* @__PURE__ */ l.jsx(
|
|
5430
|
-
|
|
5433
|
+
Me,
|
|
5431
5434
|
{
|
|
5432
5435
|
level: 2,
|
|
5433
5436
|
id: a.slug,
|
|
@@ -5437,14 +5440,14 @@ const ml = [
|
|
|
5437
5440
|
}
|
|
5438
5441
|
),
|
|
5439
5442
|
!p && /* @__PURE__ */ l.jsxs("div", { className: "text-sm flex gap-2 font-mono col-span-full", children: [
|
|
5440
|
-
/* @__PURE__ */ l.jsx("span", { className:
|
|
5441
|
-
/* @__PURE__ */ l.jsxs(
|
|
5443
|
+
/* @__PURE__ */ l.jsx("span", { className: Ha(a.method), children: a.method.toUpperCase() }),
|
|
5444
|
+
/* @__PURE__ */ l.jsxs(ho, { className: "max-w-full truncate flex cursor-pointer", children: [
|
|
5442
5445
|
t && /* @__PURE__ */ l.jsx("div", { className: "text-neutral-400 dark:text-neutral-500 truncate", children: t.replace(/\/$/, "") }),
|
|
5443
5446
|
/* @__PURE__ */ l.jsx("div", { className: "text-neutral-900 dark:text-neutral-200", children: a.path })
|
|
5444
5447
|
] })
|
|
5445
5448
|
] }),
|
|
5446
5449
|
p ? /* @__PURE__ */ l.jsx("div", { className: "col-span-full", children: /* @__PURE__ */ l.jsx(
|
|
5447
|
-
|
|
5450
|
+
ei,
|
|
5448
5451
|
{
|
|
5449
5452
|
serverUrl: t,
|
|
5450
5453
|
summary: a.summary ?? void 0,
|
|
@@ -5459,15 +5462,15 @@ const ml = [
|
|
|
5459
5462
|
),
|
|
5460
5463
|
children: [
|
|
5461
5464
|
a.description && /* @__PURE__ */ l.jsx(
|
|
5462
|
-
|
|
5465
|
+
Ue,
|
|
5463
5466
|
{
|
|
5464
5467
|
className: "max-w-full prose-img:max-w-prose",
|
|
5465
5468
|
content: a.description
|
|
5466
5469
|
}
|
|
5467
5470
|
),
|
|
5468
|
-
a.parameters && a.parameters.length > 0 &&
|
|
5471
|
+
a.parameters && a.parameters.length > 0 && vl.flatMap(
|
|
5469
5472
|
(d) => c[d]?.length ? /* @__PURE__ */ l.jsx(
|
|
5470
|
-
|
|
5473
|
+
ni,
|
|
5471
5474
|
{
|
|
5472
5475
|
summary: a.summary ?? void 0,
|
|
5473
5476
|
id: a.slug,
|
|
@@ -5477,12 +5480,12 @@ const ml = [
|
|
|
5477
5480
|
d
|
|
5478
5481
|
) : []
|
|
5479
5482
|
),
|
|
5480
|
-
St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(
|
|
5483
|
+
St(a.requestBody?.content?.at(0)?.schema, () => /* @__PURE__ */ l.jsx(Xr, { className: "my-4" })),
|
|
5481
5484
|
St(
|
|
5482
5485
|
a.requestBody?.content?.at(0)?.schema,
|
|
5483
5486
|
(d) => /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
5484
5487
|
/* @__PURE__ */ l.jsxs(
|
|
5485
|
-
|
|
5488
|
+
Me,
|
|
5486
5489
|
{
|
|
5487
5490
|
level: 3,
|
|
5488
5491
|
className: "capitalize flex items-center gap-2",
|
|
@@ -5495,16 +5498,16 @@ const ml = [
|
|
|
5495
5498
|
] }),
|
|
5496
5499
|
"Request Body",
|
|
5497
5500
|
" ",
|
|
5498
|
-
a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(
|
|
5501
|
+
a.requestBody?.required === !1 ? /* @__PURE__ */ l.jsx(Be, { variant: "muted", children: "optional" }) : ""
|
|
5499
5502
|
]
|
|
5500
5503
|
}
|
|
5501
5504
|
),
|
|
5502
5505
|
/* @__PURE__ */ l.jsx(Ir, { schema: d })
|
|
5503
5506
|
] })
|
|
5504
5507
|
),
|
|
5505
|
-
/* @__PURE__ */ l.jsx(
|
|
5508
|
+
/* @__PURE__ */ l.jsx(Xr, { className: "my-4" }),
|
|
5506
5509
|
a.responses.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
5507
|
-
/* @__PURE__ */ l.jsxs(
|
|
5510
|
+
/* @__PURE__ */ l.jsxs(Me, { level: 3, id: `${a.slug}/responses`, children: [
|
|
5508
5511
|
a.summary && /* @__PURE__ */ l.jsxs(Tr, { children: [
|
|
5509
5512
|
a.summary,
|
|
5510
5513
|
" ›",
|
|
@@ -5513,7 +5516,7 @@ const ml = [
|
|
|
5513
5516
|
"Responses"
|
|
5514
5517
|
] }),
|
|
5515
5518
|
/* @__PURE__ */ l.jsx(
|
|
5516
|
-
|
|
5519
|
+
Zo,
|
|
5517
5520
|
{
|
|
5518
5521
|
responses: a.responses,
|
|
5519
5522
|
selectedResponse: s,
|
|
@@ -5525,7 +5528,7 @@ const ml = [
|
|
|
5525
5528
|
}
|
|
5526
5529
|
),
|
|
5527
5530
|
St(!i?.disableSidecar && !p, () => /* @__PURE__ */ l.jsx(
|
|
5528
|
-
|
|
5531
|
+
gl,
|
|
5529
5532
|
{
|
|
5530
5533
|
selectedResponse: s,
|
|
5531
5534
|
operation: a,
|
|
@@ -5539,10 +5542,10 @@ const ml = [
|
|
|
5539
5542
|
)
|
|
5540
5543
|
] });
|
|
5541
5544
|
};
|
|
5542
|
-
function
|
|
5545
|
+
function ma(e, n = 160) {
|
|
5543
5546
|
return e ? e.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/!\[.*?\]\(.*?\)/g, "").replace(/[_*`~]/g, "").replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, "").replace(/[|>{}[\]]/g, "").replace(/\s+/g, " ").trim().substring(0, n).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
5544
5547
|
}
|
|
5545
|
-
const
|
|
5548
|
+
const bl = Je(
|
|
5546
5549
|
/* GraphQL */
|
|
5547
5550
|
`
|
|
5548
5551
|
fragment OperationsFragment on OperationItem {
|
|
@@ -5614,7 +5617,7 @@ const xl = Ve(
|
|
|
5614
5617
|
}
|
|
5615
5618
|
}
|
|
5616
5619
|
`
|
|
5617
|
-
),
|
|
5620
|
+
), jl = Je(
|
|
5618
5621
|
/* GraphQL */
|
|
5619
5622
|
`
|
|
5620
5623
|
query SchemaWarmup($input: JSON!, $type: SchemaType!) {
|
|
@@ -5623,7 +5626,7 @@ const xl = Ve(
|
|
|
5623
5626
|
}
|
|
5624
5627
|
}
|
|
5625
5628
|
`
|
|
5626
|
-
),
|
|
5629
|
+
), wl = Je(
|
|
5627
5630
|
/* GraphQL */
|
|
5628
5631
|
`
|
|
5629
5632
|
query OperationsForTag(
|
|
@@ -5667,17 +5670,17 @@ const xl = Ve(
|
|
|
5667
5670
|
tag: e,
|
|
5668
5671
|
untagged: n
|
|
5669
5672
|
}) => {
|
|
5670
|
-
const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } =
|
|
5673
|
+
const { input: r, type: a, versions: c, version: i, options: t } = ct(), { tag: o } = Xa(), s = Sr(wl, {
|
|
5671
5674
|
input: r,
|
|
5672
5675
|
type: a,
|
|
5673
5676
|
tag: e ?? o,
|
|
5674
5677
|
untagged: n
|
|
5675
|
-
}), u =
|
|
5678
|
+
}), u = ya(s), {
|
|
5676
5679
|
data: { schema: p }
|
|
5677
|
-
} = u, { selectedServer: d } =
|
|
5680
|
+
} = u, { selectedServer: d } = ba(
|
|
5678
5681
|
p.servers
|
|
5679
|
-
), m = p.title, y = p.summary, j = p.description, b =
|
|
5680
|
-
if (
|
|
5682
|
+
), m = p.title, y = p.summary, j = p.description, b = Za(), f = Sr(jl, { input: r, type: a });
|
|
5683
|
+
if (Va({
|
|
5681
5684
|
...f,
|
|
5682
5685
|
enabled: typeof window < "u",
|
|
5683
5686
|
notifyOnChangeProps: []
|
|
@@ -5686,16 +5689,16 @@ const xl = Ve(
|
|
|
5686
5689
|
/* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground font-medium", children: "No operations found" }),
|
|
5687
5690
|
/* @__PURE__ */ l.jsx("div", { className: "mt-2 text-sm text-muted-foreground", children: "This API doesn't have any operations defined yet." })
|
|
5688
5691
|
] });
|
|
5689
|
-
const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ?
|
|
5692
|
+
const { operations: g, next: v, prev: S, description: C } = p.tag, h = g.length > $l, T = C ? ma(C) : y || (j ? ma(j) : void 0), x = Object.entries(c).length > 1, k = t?.showVersionSelect === "always" || x && t?.showVersionSelect !== "hide", A = {
|
|
5690
5693
|
prev: S ? {
|
|
5691
5694
|
to: `../${S.slug}`,
|
|
5692
5695
|
label: S.extensions?.["x-displayName"] ?? S.name
|
|
5693
5696
|
} : void 0,
|
|
5694
5697
|
next: v ? {
|
|
5695
|
-
to: `../${v.slug ??
|
|
5698
|
+
to: `../${v.slug ?? ro}`,
|
|
5696
5699
|
label: v.extensions?.["x-displayName"] ?? v.name ?? "Other endpoints"
|
|
5697
5700
|
} : void 0
|
|
5698
|
-
},
|
|
5701
|
+
}, E = p.tag.extensions?.["x-displayName"] ?? p.tag.name, U = [E, m].filter(Boolean).join(" - "), O = i != null ? c[i] : void 0, B = typeof r == "string" ? a === "url" ? r : O?.downloadUrl : void 0;
|
|
5699
5702
|
return /* @__PURE__ */ l.jsxs(
|
|
5700
5703
|
"div",
|
|
5701
5704
|
{
|
|
@@ -5704,29 +5707,29 @@ const xl = Ve(
|
|
|
5704
5707
|
"data-pagefind-meta": "section:openapi",
|
|
5705
5708
|
children: [
|
|
5706
5709
|
/* @__PURE__ */ l.jsx(Tr, { name: "category", children: m }),
|
|
5707
|
-
/* @__PURE__ */ l.jsxs(
|
|
5708
|
-
|
|
5710
|
+
/* @__PURE__ */ l.jsxs(Ja, { children: [
|
|
5711
|
+
U && /* @__PURE__ */ l.jsx("title", { children: U }),
|
|
5709
5712
|
T && /* @__PURE__ */ l.jsx("meta", { name: "description", content: T })
|
|
5710
5713
|
] }),
|
|
5711
5714
|
/* @__PURE__ */ l.jsxs("div", { className: "mb-8", children: [
|
|
5712
5715
|
/* @__PURE__ */ l.jsxs(
|
|
5713
|
-
|
|
5716
|
+
Er,
|
|
5714
5717
|
{
|
|
5715
5718
|
className: "w-full",
|
|
5716
5719
|
defaultOpen: t?.expandApiInformation,
|
|
5717
5720
|
children: [
|
|
5718
5721
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:flex-row justify-around items-start sm:items-end", children: [
|
|
5719
5722
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col flex-1 gap-2", children: [
|
|
5720
|
-
/* @__PURE__ */ l.jsx(
|
|
5723
|
+
/* @__PURE__ */ l.jsx(lo, { children: m }),
|
|
5721
5724
|
/* @__PURE__ */ l.jsxs(
|
|
5722
|
-
|
|
5725
|
+
Me,
|
|
5723
5726
|
{
|
|
5724
5727
|
level: 1,
|
|
5725
5728
|
id: "description",
|
|
5726
5729
|
registerNavigationAnchor: !0,
|
|
5727
5730
|
className: "mb-0",
|
|
5728
5731
|
children: [
|
|
5729
|
-
|
|
5732
|
+
E,
|
|
5730
5733
|
k && /* @__PURE__ */ l.jsxs("span", { className: "text-xl text-muted-foreground ms-1.5", children: [
|
|
5731
5734
|
" ",
|
|
5732
5735
|
"(",
|
|
@@ -5736,28 +5739,28 @@ const xl = Ve(
|
|
|
5736
5739
|
]
|
|
5737
5740
|
}
|
|
5738
5741
|
),
|
|
5739
|
-
/* @__PURE__ */ l.jsx(
|
|
5742
|
+
/* @__PURE__ */ l.jsx(Yo, {})
|
|
5740
5743
|
] }),
|
|
5741
5744
|
/* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-4 sm:items-end", children: [
|
|
5742
5745
|
/* @__PURE__ */ l.jsxs("div", { className: "flex gap-2 items-center", children: [
|
|
5743
5746
|
k && /* @__PURE__ */ l.jsxs(
|
|
5744
|
-
|
|
5747
|
+
no,
|
|
5745
5748
|
{
|
|
5746
|
-
onValueChange: (
|
|
5749
|
+
onValueChange: (L) => (
|
|
5747
5750
|
// biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
|
|
5748
|
-
b(c[
|
|
5751
|
+
b(c[L].path)
|
|
5749
5752
|
),
|
|
5750
5753
|
defaultValue: i,
|
|
5751
5754
|
disabled: !x,
|
|
5752
5755
|
children: [
|
|
5753
|
-
/* @__PURE__ */ l.jsx(
|
|
5754
|
-
/* @__PURE__ */ l.jsx(
|
|
5756
|
+
/* @__PURE__ */ l.jsx(ao, { className: "w-[180px]", size: "sm", children: /* @__PURE__ */ l.jsx(oo, { placeholder: "Select version" }) }),
|
|
5757
|
+
/* @__PURE__ */ l.jsx(io, { children: Object.entries(c).map(([L, { label: G }]) => /* @__PURE__ */ l.jsx(so, { value: L, children: G }, L)) })
|
|
5755
5758
|
]
|
|
5756
5759
|
}
|
|
5757
5760
|
),
|
|
5758
|
-
t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(
|
|
5761
|
+
t?.schemaDownload?.enabled && B && /* @__PURE__ */ l.jsx(Jo, { downloadUrl: B })
|
|
5759
5762
|
] }),
|
|
5760
|
-
p.description && /* @__PURE__ */ l.jsxs(
|
|
5763
|
+
p.description && /* @__PURE__ */ l.jsxs(Rr, { className: "flex items-center gap-1 text-sm font-medium text-muted-foreground group", children: [
|
|
5761
5764
|
/* @__PURE__ */ l.jsx("span", { children: "API information" }),
|
|
5762
5765
|
/* @__PURE__ */ l.jsx(
|
|
5763
5766
|
lt,
|
|
@@ -5777,7 +5780,7 @@ const xl = Ve(
|
|
|
5777
5780
|
] })
|
|
5778
5781
|
] }),
|
|
5779
5782
|
p.description && /* @__PURE__ */ l.jsx(Ar, { className: "CollapsibleContent", children: /* @__PURE__ */ l.jsx("div", { className: "mt-4 max-w-full border rounded-sm bg-muted/25", children: /* @__PURE__ */ l.jsx(
|
|
5780
|
-
|
|
5783
|
+
Ue,
|
|
5781
5784
|
{
|
|
5782
5785
|
className: "max-w-full prose-img:max-w-prose border-border p-3 lg:p-5",
|
|
5783
5786
|
content: p.description
|
|
@@ -5787,7 +5790,7 @@ const xl = Ve(
|
|
|
5787
5790
|
}
|
|
5788
5791
|
),
|
|
5789
5792
|
C && /* @__PURE__ */ l.jsx(
|
|
5790
|
-
|
|
5793
|
+
Ue,
|
|
5791
5794
|
{
|
|
5792
5795
|
className: "my-4 max-w-full prose-img:max-w-prose",
|
|
5793
5796
|
content: C
|
|
@@ -5796,17 +5799,17 @@ const xl = Ve(
|
|
|
5796
5799
|
] }),
|
|
5797
5800
|
/* @__PURE__ */ l.jsx("hr", {}),
|
|
5798
5801
|
/* @__PURE__ */ l.jsxs("div", { className: "px-6 mt-6 -mx-6 [content-visibility:auto]", children: [
|
|
5799
|
-
g.map((
|
|
5802
|
+
g.map((L) => /* @__PURE__ */ l.jsxs("div", { children: [
|
|
5800
5803
|
/* @__PURE__ */ l.jsx(
|
|
5801
|
-
|
|
5804
|
+
xl,
|
|
5802
5805
|
{
|
|
5803
|
-
operationFragment:
|
|
5806
|
+
operationFragment: L,
|
|
5804
5807
|
globalSelectedServer: d,
|
|
5805
5808
|
shouldLazyHighlight: h
|
|
5806
5809
|
}
|
|
5807
5810
|
),
|
|
5808
5811
|
/* @__PURE__ */ l.jsx("hr", { className: "my-10" })
|
|
5809
|
-
] },
|
|
5812
|
+
] }, L.slug)),
|
|
5810
5813
|
/* @__PURE__ */ l.jsx(wo, { className: "mb-4", ...A })
|
|
5811
5814
|
] })
|
|
5812
5815
|
]
|
|
@@ -5815,6 +5818,6 @@ const xl = Ve(
|
|
|
5815
5818
|
};
|
|
5816
5819
|
export {
|
|
5817
5820
|
tc as OperationList,
|
|
5818
|
-
|
|
5821
|
+
bl as OperationsFragment
|
|
5819
5822
|
};
|
|
5820
|
-
//# sourceMappingURL=OperationList-
|
|
5823
|
+
//# sourceMappingURL=OperationList-GGkJ1vac.js.map
|