zudoku 0.28.0 → 0.28.2

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.
Files changed (126) hide show
  1. package/dist/app/main.js +1 -3
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/InputSidebarSchema.d.ts +2 -2
  4. package/dist/lib/components/PathRenderer.d.ts +11 -0
  5. package/dist/lib/components/PathRenderer.js +25 -0
  6. package/dist/lib/components/PathRenderer.js.map +1 -0
  7. package/dist/lib/components/ThemeSwitch.js +4 -4
  8. package/dist/lib/components/ThemeSwitch.js.map +1 -1
  9. package/dist/lib/components/index.d.ts +5 -0
  10. package/dist/lib/components/index.js +6 -2
  11. package/dist/lib/components/index.js.map +1 -1
  12. package/dist/lib/components/navigation/Sidebar.js +6 -1
  13. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  14. package/dist/lib/components/navigation/SidebarCategory.js +16 -14
  15. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  16. package/dist/lib/oas/graphql/circular.js +17 -6
  17. package/dist/lib/oas/graphql/circular.js.map +1 -1
  18. package/dist/lib/oas/graphql/index.js +11 -10
  19. package/dist/lib/oas/graphql/index.js.map +1 -1
  20. package/dist/lib/plugins/openapi/ColorizedParam.js +3 -1
  21. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  22. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  23. package/dist/lib/plugins/openapi/OperationListItem.js +2 -2
  24. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  25. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  26. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  27. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +6 -2
  28. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  29. package/dist/lib/plugins/openapi/Sidecar.js +5 -10
  30. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  31. package/dist/lib/plugins/openapi/playground/Headers.d.ts +2 -3
  32. package/dist/lib/plugins/openapi/playground/Headers.js +2 -2
  33. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  34. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  35. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  36. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -0
  37. package/dist/lib/plugins/openapi/playground/Playground.js +8 -16
  38. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  39. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  40. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  41. package/dist/lib/plugins/openapi/schema/{SchemaComponents.js → SchemaPropertyItem.js} +10 -8
  42. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  43. package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
  44. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  45. package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
  46. package/dist/lib/plugins/openapi/schema/utils.js +2 -0
  47. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  48. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  49. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  50. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  51. package/dist/lib/util/useScrollToAnchor.js +1 -13
  52. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  53. package/dist/vite/plugin-api.js +97 -95
  54. package/dist/vite/plugin-api.js.map +1 -1
  55. package/dist/vite/plugin-theme-css.js +7 -4
  56. package/dist/vite/plugin-theme-css.js.map +1 -1
  57. package/dist/vite/prerender.js +0 -1
  58. package/dist/vite/prerender.js.map +1 -1
  59. package/lib/{AuthenticationPlugin-Du8cLBSr.js → AuthenticationPlugin-DeEA69mE.js} +3 -3
  60. package/lib/{AuthenticationPlugin-Du8cLBSr.js.map → AuthenticationPlugin-DeEA69mE.js.map} +1 -1
  61. package/lib/{Markdown-Cyrx_JrO.js → Markdown-LcMEZ0Sn.js} +2 -2
  62. package/lib/{Markdown-Cyrx_JrO.js.map → Markdown-LcMEZ0Sn.js.map} +1 -1
  63. package/lib/{MdxPage-DewragjB.js → MdxPage-DkH3V4hV.js} +5 -5
  64. package/lib/{MdxPage-DewragjB.js.map → MdxPage-DkH3V4hV.js.map} +1 -1
  65. package/lib/{OpenApiRoute-UrC_t0e5.js → OpenApiRoute-ULLXjfro.js} +3 -3
  66. package/lib/{OpenApiRoute-UrC_t0e5.js.map → OpenApiRoute-ULLXjfro.js.map} +1 -1
  67. package/lib/{OperationList-D_ejrepA.js → OperationList-wzZNceUl.js} +738 -727
  68. package/lib/OperationList-wzZNceUl.js.map +1 -0
  69. package/lib/{Select-CnCZ4WhS.js → Select-DJkXPPD0.js} +3 -3
  70. package/lib/{Select-CnCZ4WhS.js.map → Select-DJkXPPD0.js.map} +1 -1
  71. package/lib/{SlotletProvider-mQiPDQIH.js → SlotletProvider-D1t2ePCI.js} +4 -4
  72. package/lib/{SlotletProvider-mQiPDQIH.js.map → SlotletProvider-D1t2ePCI.js.map} +1 -1
  73. package/lib/{ZudokuContext-BTUJPpQl.js → ZudokuContext-dUyBGMap.js} +2 -2
  74. package/lib/{ZudokuContext-BTUJPpQl.js.map → ZudokuContext-dUyBGMap.js.map} +1 -1
  75. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js → chunk-SYFQ2XB5-QijJrSf0.js} +3 -3
  76. package/lib/{chunk-SYFQ2XB5-BPvC-soB.js.map → chunk-SYFQ2XB5-QijJrSf0.js.map} +1 -1
  77. package/lib/{circular-Dgpd6AN-.js → circular-DxaIIlWD.js} +251 -239
  78. package/lib/{circular-Dgpd6AN-.js.map → circular-DxaIIlWD.js.map} +1 -1
  79. package/lib/{createServer-BydbkTsd.js → createServer-DIztAu7i.js} +12 -9
  80. package/lib/{createServer-BydbkTsd.js.map → createServer-DIztAu7i.js.map} +1 -1
  81. package/lib/{hook-FT3SJLe_.js → hook-CiX69UZ6.js} +2 -2
  82. package/lib/{hook-FT3SJLe_.js.map → hook-CiX69UZ6.js.map} +1 -1
  83. package/lib/{index-DGugJOLc.js → index-DrR58fsJ.js} +663 -629
  84. package/lib/index-DrR58fsJ.js.map +1 -0
  85. package/lib/{useExposedProps-BLKFBylA.js → useExposedProps-Bbf99zic.js} +2 -2
  86. package/lib/{useExposedProps-BLKFBylA.js.map → useExposedProps-Bbf99zic.js.map} +1 -1
  87. package/lib/{useScrollToAnchor-eRM9tVvD.js → useScrollToAnchor-DYGn1MT9.js} +86 -90
  88. package/lib/useScrollToAnchor-DYGn1MT9.js.map +1 -0
  89. package/lib/zudoku.auth-clerk.js +1 -1
  90. package/lib/zudoku.auth-openid.js +3 -3
  91. package/lib/zudoku.components.js +596 -492
  92. package/lib/zudoku.components.js.map +1 -1
  93. package/lib/zudoku.plugin-api-catalog.js +3 -3
  94. package/lib/zudoku.plugin-api-keys.js +5 -5
  95. package/lib/zudoku.plugin-custom-pages.js +2 -2
  96. package/lib/zudoku.plugin-markdown.js +1 -1
  97. package/lib/zudoku.plugin-openapi.js +3 -3
  98. package/lib/zudoku.plugin-redirect.js +1 -1
  99. package/package.json +2 -2
  100. package/src/app/main.tsx +7 -3
  101. package/src/lib/components/PathRenderer.tsx +59 -0
  102. package/src/lib/components/ThemeSwitch.tsx +15 -14
  103. package/src/lib/components/index.ts +9 -5
  104. package/src/lib/components/navigation/Sidebar.tsx +7 -1
  105. package/src/lib/components/navigation/SidebarCategory.tsx +43 -41
  106. package/src/lib/oas/graphql/circular.ts +27 -6
  107. package/src/lib/oas/graphql/index.ts +14 -17
  108. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -3
  109. package/src/lib/plugins/openapi/OperationListItem.tsx +7 -2
  110. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -1
  111. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -2
  112. package/src/lib/plugins/openapi/Sidecar.tsx +17 -26
  113. package/src/lib/plugins/openapi/playground/Headers.tsx +5 -9
  114. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  115. package/src/lib/plugins/openapi/playground/Playground.tsx +27 -34
  116. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +5 -2
  117. package/src/lib/plugins/openapi/schema/{SchemaComponents.tsx → SchemaPropertyItem.tsx} +10 -6
  118. package/src/lib/plugins/openapi/schema/SchemaView.tsx +4 -1
  119. package/src/lib/plugins/openapi/schema/utils.ts +4 -0
  120. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  121. package/src/lib/util/useScrollToAnchor.ts +1 -19
  122. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  123. package/lib/OperationList-D_ejrepA.js.map +0 -1
  124. package/lib/index-DGugJOLc.js.map +0 -1
  125. package/lib/useScrollToAnchor-eRM9tVvD.js.map +0 -1
  126. /package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +0 -0
@@ -1,32 +1,32 @@
1
1
  import { j as g } from "./jsx-runtime-Bdg6XQ1m.js";
2
- import { u as gr, l as Po } from "./ZudokuContext-BTUJPpQl.js";
3
- import { H as Co } from "./index.esm-9-TF9KQB.js";
4
- import { b as Ro, a as qo } from "./chunk-SYFQ2XB5-BPvC-soB.js";
5
- import { S as No, a as ko, b as Eo, c as Ao, e as Io } from "./Select-CnCZ4WhS.js";
6
- import { a as vr } from "./state-mM7uaXTW.js";
7
- import { C as Lo } from "./CategoryHeading-MYL1u_6K.js";
8
- import { I as Uo, M as Ce, H as _e, P as Ie } from "./Markdown-Cyrx_JrO.js";
2
+ import { u as vr, l as Ro } from "./ZudokuContext-dUyBGMap.js";
3
+ import { H as qo } from "./index.esm-9-TF9KQB.js";
4
+ import { b as No, a as ko } from "./chunk-SYFQ2XB5-QijJrSf0.js";
5
+ import { S as Eo, a as Ao, b as Io, c as Lo, e as Uo } from "./Select-DJkXPPD0.js";
6
+ import { a as br } from "./state-mM7uaXTW.js";
7
+ import { C as Fo } from "./CategoryHeading-MYL1u_6K.js";
8
+ import { I as _o, M as Re, H as Be, P as Le } from "./Markdown-LcMEZ0Sn.js";
9
9
  import { c as le } from "./cn-qaFjX9_3.js";
10
- import { ChevronsUpDownIcon as Fo, CheckIcon as _o, CopyIcon as Bo, UnfoldVerticalIcon as Ho, FoldVerticalIcon as Mo, ChevronDownIcon as zo, CircleFadingPlusIcon as Go, CircleDotIcon as Wo, CircleIcon as Jo, SquareMinusIcon as Vo, SquarePlusIcon as Do, ListPlusIcon as Qo, RefreshCcwDotIcon as Ko } from "lucide-react";
11
- import { useContext as Yo, useTransition as Xn, useState as ge, useRef as br, useEffect as xr, useLayoutEffect as Xo, useMemo as Zn, Fragment as Zo, useCallback as ea } from "react";
12
- import { Button as eo } from "./ui/Button.js";
13
- import { a as ta, u as $r } from "./context-rwLGh-6_.js";
14
- import { g as rt, C as to, a as ra, b as na, c as Fr, P as oa, m as ro } from "./index-DGugJOLc.js";
15
- import { Tabs as aa, TabsList as ia, TabsTrigger as sa, TabsContent as la } from "./ui/Tabs.js";
16
- import { Card as be, CardHeader as ca, CardTitle as ua, CardContent as fa } from "./ui/Card.js";
17
- import { c as pa } from "./index-Djenk2Hj.js";
18
- import { g as da, c as Ze, a as ha } from "./_commonjsHelpers-BkfeUUK-.js";
19
- import { _ as ya } from "./__vite-browser-external-BYRIRx8p.js";
20
- import { S as no } from "./SyntaxHighlight-B0L4SC_N.js";
21
- import { B as _r } from "./Spinner-BlzrEEk1.js";
10
+ import { ChevronsUpDownIcon as Bo, CheckIcon as Ho, CopyIcon as Mo, UnfoldVerticalIcon as zo, FoldVerticalIcon as Go, ChevronDownIcon as Wo, CircleFadingPlusIcon as Jo, CircleDotIcon as Vo, CircleIcon as Do, SquareMinusIcon as Qo, SquarePlusIcon as Ko, ListPlusIcon as Yo, RefreshCcwDotIcon as Xo } from "lucide-react";
11
+ import { useContext as Zo, useTransition as eo, useState as ge, useRef as xr, useEffect as $r, useLayoutEffect as ea, useMemo as to, useCallback as ta } from "react";
12
+ import { Button as ro } from "./ui/Button.js";
13
+ import { a as ra, u as jr } from "./context-rwLGh-6_.js";
14
+ import { g as rt, C as no, a as na, b as oa, c as _r, P as aa, m as oo, d as ia } from "./index-DrR58fsJ.js";
15
+ import { Tabs as sa, TabsList as la, TabsTrigger as ca, TabsContent as ua } from "./ui/Tabs.js";
16
+ import { Card as be, CardHeader as fa, CardTitle as pa, CardContent as da } from "./ui/Card.js";
17
+ import { c as ha } from "./index-Djenk2Hj.js";
18
+ import { g as ya, c as Ze, a as ma } from "./_commonjsHelpers-BkfeUUK-.js";
19
+ import { _ as ga } from "./__vite-browser-external-BYRIRx8p.js";
20
+ import { S as ao } from "./SyntaxHighlight-B0L4SC_N.js";
21
+ import { B as Br } from "./Spinner-BlzrEEk1.js";
22
22
  import * as Ye from "@radix-ui/react-tabs";
23
23
  import * as xe from "@radix-ui/react-collapsible";
24
- import { C as ma } from "./circular-Dgpd6AN-.js";
25
- function ga(e, r) {
24
+ import { C as va } from "./circular-DxaIIlWD.js";
25
+ function ba(e, r) {
26
26
  return r;
27
27
  }
28
- const jr = (e, ...r) => {
29
- const t = Yo(ta);
28
+ const wr = (e, ...r) => {
29
+ const t = Zo(ra);
30
30
  if (t === void 0)
31
31
  throw new Error("useGraphQL must be used within a GraphQLProvider");
32
32
  return {
@@ -60,10 +60,10 @@ const jr = (e, ...r) => {
60
60
  !s && "hidden",
61
61
  "row-start-1 col-start-1 self-center justify-self-end relative end-2 pointer-events-none"
62
62
  ),
63
- children: /* @__PURE__ */ g.jsx(Fo, { size: 14 })
63
+ children: /* @__PURE__ */ g.jsx(Bo, { size: 14 })
64
64
  }
65
65
  )
66
- ] }), va = rt(
66
+ ] }), xa = rt(
67
67
  /* GraphQL */
68
68
  `
69
69
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -75,10 +75,10 @@ const jr = (e, ...r) => {
75
75
  }
76
76
  }
77
77
  `
78
- ), Br = ({ url: e }) => {
78
+ ), Hr = ({ url: e }) => {
79
79
  const [r, t] = ge(!1);
80
80
  return /* @__PURE__ */ g.jsx(
81
- eo,
81
+ ro,
82
82
  {
83
83
  onClick: () => {
84
84
  navigator.clipboard.writeText(e).then(() => {
@@ -87,15 +87,15 @@ const jr = (e, ...r) => {
87
87
  },
88
88
  variant: "ghost",
89
89
  size: "icon",
90
- children: r ? /* @__PURE__ */ g.jsx(_o, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ g.jsx(Bo, { size: 14, strokeWidth: 1.3 })
90
+ children: r ? /* @__PURE__ */ g.jsx(Ho, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ g.jsx(Mo, { size: 14, strokeWidth: 1.3 })
91
91
  }
92
92
  );
93
- }, ba = () => {
94
- const { input: e, type: r } = $r(), t = jr(va, { input: e, type: r }), o = gr(t), [, s] = Xn(), { selectedServer: l, setSelectedServer: n } = vr(), { servers: a } = o.data.schema;
93
+ }, $a = () => {
94
+ const { input: e, type: r } = jr(), t = wr(xa, { input: e, type: r }), o = vr(t), [, s] = eo(), { selectedServer: l, setSelectedServer: n } = br(), { servers: a } = o.data.schema;
95
95
  return a.length === 0 ? null : a.length === 1 ? /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
96
96
  /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
97
- /* @__PURE__ */ g.jsx(Uo, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
98
- /* @__PURE__ */ g.jsx(Br, { url: a[0].url })
97
+ /* @__PURE__ */ g.jsx(_o, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
98
+ /* @__PURE__ */ g.jsx(Hr, { url: a[0].url })
99
99
  ] }) : /* @__PURE__ */ g.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
100
100
  /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
101
101
  /* @__PURE__ */ g.jsx(
@@ -113,15 +113,15 @@ const jr = (e, ...r) => {
113
113
  }))
114
114
  }
115
115
  ),
116
- /* @__PURE__ */ g.jsx(Br, { url: l ?? a.at(0).url })
116
+ /* @__PURE__ */ g.jsx(Hr, { url: l ?? a.at(0).url })
117
117
  ] });
118
- }, oo = (e, r) => e.reduce(
118
+ }, io = (e, r) => e.reduce(
119
119
  (t, o) => {
120
120
  const s = r(o);
121
121
  return t[s] || (t[s] = []), t[s].push(o), t;
122
122
  },
123
123
  {}
124
- ), xa = (e, r) => e ? r(e) : void 0, $a = pa(
124
+ ), ja = (e, r) => e ? r(e) : void 0, wa = ha(
125
125
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
126
126
  {
127
127
  variants: {
@@ -138,48 +138,48 @@ const jr = (e, ...r) => {
138
138
  }
139
139
  }
140
140
  );
141
- function Be({ className: e, variant: r, ...t }) {
142
- return /* @__PURE__ */ g.jsx("div", { className: le($a({ variant: r }), e), ...t });
141
+ function Ce({ className: e, variant: r, ...t }) {
142
+ return /* @__PURE__ */ g.jsx("div", { className: le(wa({ variant: r }), e), ...t });
143
143
  }
144
- const ja = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
144
+ const Sa = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
145
145
  type: "string"
146
- }, wa = ({
146
+ }, Oa = ({
147
147
  parameter: e,
148
148
  group: r,
149
149
  id: t
150
150
  }) => {
151
- const o = ja(e);
151
+ const o = Sa(e);
152
152
  return /* @__PURE__ */ g.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
153
153
  /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
154
154
  /* @__PURE__ */ g.jsx("code", { children: r === "path" ? /* @__PURE__ */ g.jsx(
155
- to,
155
+ no,
156
156
  {
157
157
  name: e.name,
158
158
  backgroundOpacity: "15%",
159
159
  className: "px-1",
160
- slug: t + "-" + e.name.toLocaleLowerCase()
160
+ slug: `${t}-${e.name}`
161
161
  }
162
162
  ) : e.name }),
163
- o.type && /* @__PURE__ */ g.jsx(Be, { variant: "muted", children: o.type === "array" ? `${o.items.type}[]` : o.type }),
164
- e.required && /* @__PURE__ */ g.jsx(Be, { variant: "outline", children: "required" }),
165
- e.style === "form" && /* @__PURE__ */ g.jsx(Be, { variant: "secondary", children: "form" })
163
+ o.type && /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: o.type === "array" ? `${o.items.type}[]` : o.type }),
164
+ e.required && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "required" }),
165
+ e.style === "form" && /* @__PURE__ */ g.jsx(Ce, { variant: "secondary", children: "form" })
166
166
  ] }),
167
167
  e.description && /* @__PURE__ */ g.jsx(
168
- Ce,
168
+ Re,
169
169
  {
170
170
  content: e.description,
171
171
  className: "text-sm prose-p:my-1 prose-code:whitespace-pre-line"
172
172
  }
173
173
  )
174
174
  ] });
175
- }, Sa = ({
175
+ }, Ta = ({
176
176
  group: e,
177
177
  parameters: r,
178
178
  id: t
179
179
  }) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
180
- /* @__PURE__ */ g.jsx(_e, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
180
+ /* @__PURE__ */ g.jsx(Be, { level: 3, id: `${t}/${e}-parameters`, className: "capitalize", children: e === "header" ? "Headers" : `${e} Parameters` }),
181
181
  /* @__PURE__ */ g.jsx(be, { children: /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: r.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ g.jsx(
182
- wa,
182
+ Oa,
183
183
  {
184
184
  parameter: o,
185
185
  id: t,
@@ -188,17 +188,17 @@ const ja = (e) => e.schema != null && typeof e.schema == "object" ? e.schema : {
188
188
  `${o.name}-${o.in}`
189
189
  )) }) })
190
190
  ] });
191
- var Hr = (e, r) => {
191
+ var Mr = (e, r) => {
192
192
  const t = e[r.name];
193
193
  return t === void 0 ? (e[r.name] = r.value, e) : Array.isArray(t) ? (t.push(r.value), e) : (e[r.name] = [t, r.value], e);
194
- }, Mr = "", zr = `
194
+ }, zr = "", Gr = `
195
195
  `, V = class {
196
196
  /**
197
197
  * Helper object to format and aggragate lines of code.
198
198
  * Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
199
199
  */
200
200
  constructor({ indent: e, join: r } = {}) {
201
- this.postProcessors = [], this.code = [], this.indentationCharacter = Mr, this.lineJoin = zr, this.indentLine = (t, o = 0) => `${this.indentationCharacter.repeat(o)}${t}`, this.unshift = (t, o) => {
201
+ this.postProcessors = [], this.code = [], this.indentationCharacter = zr, this.lineJoin = Gr, this.indentLine = (t, o = 0) => `${this.indentationCharacter.repeat(o)}${t}`, this.unshift = (t, o) => {
202
202
  const s = this.indentLine(t, o);
203
203
  this.code.unshift(s);
204
204
  }, this.push = (t, o) => {
@@ -211,30 +211,30 @@ var Hr = (e, r) => {
211
211
  return this.postProcessors.reduce((s, l) => l(s), t);
212
212
  }, this.addPostProcessor = (t) => {
213
213
  this.postProcessors = [...this.postProcessors, t];
214
- }, this.indentationCharacter = e || Mr, this.lineJoin = r ?? zr;
214
+ }, this.indentationCharacter = e || zr, this.lineJoin = r ?? Gr;
215
215
  }
216
- }, yt, Gr;
217
- function Oa() {
218
- return Gr || (Gr = 1, yt = function(e) {
216
+ }, yt, Wr;
217
+ function Pa() {
218
+ return Wr || (Wr = 1, yt = function(e) {
219
219
  return Object.prototype.toString.call(e) === "[object RegExp]";
220
220
  }), yt;
221
221
  }
222
- var mt, Wr;
223
- function Ta() {
224
- return Wr || (Wr = 1, mt = function(e) {
222
+ var mt, Jr;
223
+ function Ca() {
224
+ return Jr || (Jr = 1, mt = function(e) {
225
225
  var r = typeof e;
226
226
  return e !== null && (r === "object" || r === "function");
227
227
  }), mt;
228
228
  }
229
- var Ke = {}, Jr;
230
- function Pa() {
231
- return Jr || (Jr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.default = (e) => Object.getOwnPropertySymbols(e).filter((r) => Object.prototype.propertyIsEnumerable.call(e, r))), Ke;
229
+ var Ke = {}, Vr;
230
+ function Ra() {
231
+ return Vr || (Vr = 1, Object.defineProperty(Ke, "__esModule", { value: !0 }), Ke.default = (e) => Object.getOwnPropertySymbols(e).filter((r) => Object.prototype.propertyIsEnumerable.call(e, r))), Ke;
232
232
  }
233
- var gt, Vr;
234
- function Ca() {
235
- if (Vr) return gt;
236
- Vr = 1;
237
- const e = Oa(), r = Ta(), t = Pa().default;
233
+ var gt, Dr;
234
+ function qa() {
235
+ if (Dr) return gt;
236
+ Dr = 1;
237
+ const e = Pa(), r = Ca(), t = Ra().default;
238
238
  return gt = (o, s, l) => {
239
239
  const n = [];
240
240
  return function a(i, c, u) {
@@ -294,14 +294,14 @@ function Ca() {
294
294
  }(o, s, l);
295
295
  }, gt;
296
296
  }
297
- var Ra = Ca();
298
- const fe = /* @__PURE__ */ da(Ra);
297
+ var Na = qa();
298
+ const fe = /* @__PURE__ */ ya(Na);
299
299
  function Me(e, r = {}) {
300
300
  const { delimiter: t = '"', escapeChar: o = "\\", escapeNewlines: s = !0 } = r;
301
301
  return [...e.toString()].map((n) => n === "\b" ? `${o}b` : n === " " ? `${o}t` : n === `
302
302
  ` ? s ? `${o}n` : n : n === "\f" ? `${o}f` : n === "\r" ? s ? `${o}r` : n : n === o ? o + o : n === t ? o + t : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
303
303
  }
304
- var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' }), qa = {
304
+ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' }), ka = {
305
305
  info: {
306
306
  key: "libcurl",
307
307
  title: "Libcurl",
@@ -317,7 +317,7 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
317
317
  l(`headers = curl_slist_append(headers, "${c}: ${ce(t[c])}");`);
318
318
  }), l("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), l(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), s.text && (n(), l(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), n(), l("CURLcode ret = curl_easy_perform(hnd);"), a();
319
319
  }
320
- }, Na = {
320
+ }, Ea = {
321
321
  info: {
322
322
  key: "c",
323
323
  title: "C",
@@ -325,30 +325,30 @@ var ze = (e) => Me(e, { delimiter: "'" }), ce = (e) => Me(e, { delimiter: '"' })
325
325
  cli: "c"
326
326
  },
327
327
  clientsById: {
328
- libcurl: qa
328
+ libcurl: ka
329
329
  }
330
330
  }, pe = (e, r) => Object.keys(e).find((t) => t.toLowerCase() === r.toLowerCase()), ve = (e, r) => {
331
331
  const t = pe(e, r);
332
332
  if (t)
333
333
  return e[t];
334
- }, nt = (e, r) => !!pe(e, r), ka = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
334
+ }, nt = (e, r) => !!pe(e, r), Aa = (e) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
335
335
  (r) => e.indexOf(r) > -1
336
- ), Dr = class {
336
+ ), Qr = class {
337
337
  constructor(e) {
338
338
  this.name = "", this.toString = () => `:${this.name}`, this.name = e;
339
339
  }
340
- }, Ea = class {
340
+ }, Ia = class {
341
341
  constructor(e) {
342
342
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = e;
343
343
  }
344
- }, ao = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), io = (e) => e === void 0 ? !0 : ao(e) === "object" ? Object.keys(e).length === 0 : !1, Qr = (e) => (Object.keys(e).filter((r) => io(e[r])).forEach((r) => {
344
+ }, so = (e) => e === void 0 ? null : e === null ? "null" : e.constructor.name.toLowerCase(), lo = (e) => e === void 0 ? !0 : so(e) === "object" ? Object.keys(e).length === 0 : !1, Kr = (e) => (Object.keys(e).filter((r) => lo(e[r])).forEach((r) => {
345
345
  delete e[r];
346
346
  }), e), Xe = (e, r) => {
347
347
  const t = " ".repeat(e);
348
348
  return r.replace(/\n/g, `
349
349
  ${t}`);
350
- }, hr = (e) => {
351
- switch (ao(e)) {
350
+ }, yr = (e) => {
351
+ switch (so(e)) {
352
352
  case "string":
353
353
  return `"${e.replace(/"/g, '\\"')}"`;
354
354
  case "file":
@@ -361,20 +361,20 @@ ${t}`);
361
361
  return `#"${e.source}"`;
362
362
  case "object": {
363
363
  const r = Object.keys(e).reduce((t, o) => {
364
- const s = Xe(o.length + 2, hr(e[o]));
364
+ const s = Xe(o.length + 2, yr(e[o]));
365
365
  return `${t}:${o} ${s}
366
366
  `;
367
367
  }, "").trim();
368
368
  return `{${Xe(1, r)}}`;
369
369
  }
370
370
  case "array": {
371
- const r = e.reduce((t, o) => `${t} ${hr(o)}`, "").trim();
371
+ const r = e.reduce((t, o) => `${t} ${yr(o)}`, "").trim();
372
372
  return `[${Xe(1, r)}]`;
373
373
  }
374
374
  default:
375
375
  return e.toString();
376
376
  }
377
- }, Aa = {
377
+ }, La = {
378
378
  info: {
379
379
  key: "clj_http",
380
380
  title: "clj-http",
@@ -393,7 +393,7 @@ ${t}`);
393
393
  switch (t.mimeType) {
394
394
  case "application/json":
395
395
  {
396
- c["content-type"] = new Dr("json"), c["form-params"] = t.jsonObj;
396
+ c["content-type"] = new Qr("json"), c["form-params"] = t.jsonObj;
397
397
  const u = pe(c.headers, "content-type");
398
398
  u && delete c.headers[u];
399
399
  }
@@ -416,7 +416,7 @@ ${t}`);
416
416
  if (t.params) {
417
417
  c.multipart = t.params.map((f) => f.fileName && !f.value ? {
418
418
  name: f.name,
419
- content: new Ea(f.fileName)
419
+ content: new Ia(f.fileName)
420
420
  } : {
421
421
  name: f.name,
422
422
  content: f.value
@@ -430,31 +430,31 @@ ${t}`);
430
430
  switch (ve(c.headers, "accept")) {
431
431
  case "application/json":
432
432
  {
433
- c.accept = new Dr("json");
433
+ c.accept = new Qr("json");
434
434
  const u = pe(c.headers, "accept");
435
435
  u && delete c.headers[u];
436
436
  }
437
437
  break;
438
438
  }
439
439
  if (n(`(require '[clj-http.client :as client])
440
- `), io(Qr(c)))
440
+ `), lo(Kr(c)))
441
441
  n(`(client/${r} "${o}")`);
442
442
  else {
443
- const u = 11 + r.length + o.length, f = Xe(u, hr(Qr(c)));
443
+ const u = 11 + r.length + o.length, f = Xe(u, yr(Kr(c)));
444
444
  n(`(client/${r} "${o}" ${f})`);
445
445
  }
446
446
  return a();
447
447
  }
448
- }, Ia = {
448
+ }, Ua = {
449
449
  info: {
450
450
  key: "clojure",
451
451
  title: "Clojure",
452
452
  default: "clj_http"
453
453
  },
454
454
  clientsById: {
455
- clj_http: Aa
455
+ clj_http: La
456
456
  }
457
- }, La = (e) => {
457
+ }, Fa = (e) => {
458
458
  let r = ve(e, "accept-encoding");
459
459
  if (!r)
460
460
  return [];
@@ -471,7 +471,7 @@ ${t}`);
471
471
  }
472
472
  });
473
473
  }), o;
474
- }, Ua = {
474
+ }, _a = {
475
475
  info: {
476
476
  key: "httpclient",
477
477
  title: "HttpClient",
@@ -487,7 +487,7 @@ ${t}`);
487
487
  }, { push: n, join: a } = new V({ indent: l.indent });
488
488
  n("using System.Net.Http.Headers;");
489
489
  let i = "";
490
- const c = !!e.cookie, u = La(e);
490
+ const c = !!e.cookie, u = Fa(e);
491
491
  (c || u.length) && (i = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), u.length && n(`AutomaticDecompression = ${u.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${i});`), n("var request = new HttpRequestMessage"), n("{");
492
492
  const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
493
493
  t = t.toUpperCase(), t && f.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, n(`Method = ${t},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
@@ -524,10 +524,10 @@ ${t}`);
524
524
  return n("};"), n("using (var response = await client.SendAsync(request))"), n("{"), n("response.EnsureSuccessStatusCode();", 1), n("var body = await response.Content.ReadAsStringAsync();", 1), n("Console.WriteLine(body);", 1), n("}"), a();
525
525
  }
526
526
  };
527
- function Fa(e) {
527
+ function Ba(e) {
528
528
  return e[0].toUpperCase() + e.slice(1).toLowerCase();
529
529
  }
530
- var _a = {
530
+ var Ha = {
531
531
  info: {
532
532
  key: "restsharp",
533
533
  title: "RestSharp",
@@ -577,11 +577,11 @@ var _a = {
577
577
  if (!s.text) break;
578
578
  n(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
579
579
  }
580
- return n(`var response = await client.${Fa(e)}Async(request);
580
+ return n(`var response = await client.${Ba(e)}Async(request);
581
581
  `), n(`Console.WriteLine("{0}", response.Content);
582
582
  `), a();
583
583
  }
584
- }, Ba = {
584
+ }, Ma = {
585
585
  info: {
586
586
  key: "csharp",
587
587
  title: "C#",
@@ -589,10 +589,10 @@ var _a = {
589
589
  cli: "dotnet"
590
590
  },
591
591
  clientsById: {
592
- httpclient: Ua,
593
- restsharp: _a
592
+ httpclient: _a,
593
+ restsharp: Ha
594
594
  }
595
- }, Ha = {
595
+ }, za = {
596
596
  info: {
597
597
  key: "native",
598
598
  title: "NewRequest",
@@ -610,7 +610,7 @@ var _a = {
610
610
  n(`req.Header.Add("${v}", "${ce(t[v])}")`, y);
611
611
  }), l()), n(`res, ${h} := ${m}.Do(req)`, y), $(), u && (l(), n("defer res.Body.Close()", y), n(`body, ${h} := io.ReadAll(res.Body)`, y), $()), l(), u && n("fmt.Println(string(body))", y), i && (l(), n("}")), a();
612
612
  }
613
- }, Ma = {
613
+ }, Ga = {
614
614
  info: {
615
615
  key: "go",
616
616
  title: "Go",
@@ -618,10 +618,10 @@ var _a = {
618
618
  cli: "go"
619
619
  },
620
620
  clientsById: {
621
- native: Ha
621
+ native: za
622
622
  }
623
- }, Kr = `\r
624
- `, za = {
623
+ }, Yr = `\r
624
+ `, Wa = {
625
625
  info: {
626
626
  key: "http1.1",
627
627
  title: "HTTP/1.1",
@@ -635,7 +635,7 @@ var _a = {
635
635
  autoContentLength: !0,
636
636
  autoHost: !0,
637
637
  ...n
638
- }, { blank: i, push: c, join: u } = new V({ indent: "", join: Kr }), f = a.absoluteURI ? r : t.path;
638
+ }, { blank: i, push: c, join: u } = new V({ indent: "", join: Yr }), f = a.absoluteURI ? r : t.path;
639
639
  c(`${e} ${f} ${o}`);
640
640
  const h = Object.keys(s);
641
641
  if (h.forEach((x) => {
@@ -647,18 +647,18 @@ var _a = {
647
647
  }
648
648
  i();
649
649
  const y = u(), $ = l.text || "";
650
- return `${y}${Kr}${$}`;
650
+ return `${y}${Yr}${$}`;
651
651
  }
652
- }, Ga = {
652
+ }, Ja = {
653
653
  info: {
654
654
  key: "http",
655
655
  title: "HTTP",
656
656
  default: "http1.1"
657
657
  },
658
658
  clientsById: {
659
- "http1.1": za
659
+ "http1.1": Wa
660
660
  }
661
- }, Wa = {
661
+ }, Va = {
662
662
  info: {
663
663
  key: "asynchttp",
664
664
  title: "AsyncHttp",
@@ -675,7 +675,7 @@ var _a = {
675
675
  a(`.setHeader("${c}", "${ce(r[c])}")`, 1);
676
676
  }), t.text && a(`.setBody(${JSON.stringify(t.text)})`, 1), a(".execute()", 1), a(".toCompletableFuture()", 1), a(".thenAccept(System.out::println)", 1), a(".join();", 1), n(), a("client.close();"), i();
677
677
  }
678
- }, Ja = {
678
+ }, Da = {
679
679
  info: {
680
680
  key: "nethttp",
681
681
  title: "java.net.http",
@@ -697,7 +697,7 @@ var _a = {
697
697
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
698
698
  ), n("System.out.println(response.body());"), a();
699
699
  }
700
- }, Va = {
700
+ }, Qa = {
701
701
  info: {
702
702
  key: "okhttp",
703
703
  title: "OkHttp",
@@ -714,7 +714,7 @@ var _a = {
714
714
  n(`.addHeader("${f}", "${ce(o[f])}")`, 1);
715
715
  }), n(".build();", 1), a(), n("Response response = client.newCall(request).execute();"), i();
716
716
  }
717
- }, Da = {
717
+ }, Ka = {
718
718
  info: {
719
719
  key: "unirest",
720
720
  title: "Unirest",
@@ -731,19 +731,19 @@ var _a = {
731
731
  a(`.header("${c}", "${ce(r[c])}")`, 1);
732
732
  }), t.text && a(`.body(${JSON.stringify(t.text)})`, 1), a(".asString();", 1), n();
733
733
  }
734
- }, Qa = {
734
+ }, Ya = {
735
735
  info: {
736
736
  key: "java",
737
737
  title: "Java",
738
738
  default: "unirest"
739
739
  },
740
740
  clientsById: {
741
- asynchttp: Wa,
742
- nethttp: Ja,
743
- okhttp: Va,
744
- unirest: Da
741
+ asynchttp: Va,
742
+ nethttp: Da,
743
+ okhttp: Qa,
744
+ unirest: Ka
745
745
  }
746
- }, Ka = {
746
+ }, Xa = {
747
747
  info: {
748
748
  key: "axios",
749
749
  title: "Axios",
@@ -787,7 +787,7 @@ var _a = {
787
787
  }).replace('"[form]"', "form");
788
788
  return i(`const options = ${h};`), a(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), c();
789
789
  }
790
- }, Ya = {
790
+ }, Za = {
791
791
  info: {
792
792
  key: "fetch",
793
793
  title: "fetch",
@@ -840,7 +840,7 @@ var _a = {
840
840
  })};`
841
841
  ), n(), t.params && t.mimeType === "multipart/form-data" && (i("options.body = form;"), n()), i(`fetch('${o}', options)`), i(".then(response => response.json())", 1), i(".then(response => console.log(response))", 1), i(".catch(err => console.error(err));", 1), a();
842
842
  }
843
- }, Xa = {
843
+ }, ei = {
844
844
  info: {
845
845
  key: "jquery",
846
846
  title: "jQuery",
@@ -884,7 +884,7 @@ var _a = {
884
884
  const u = fe(c, { indent: l.indent }).replace("'[form]'", "form");
885
885
  return a(`const settings = ${u};`), n(), a("$.ajax(settings).done(function (response) {"), a("console.log(response);", 1), a("});"), i();
886
886
  }
887
- }, Za = {
887
+ }, ti = {
888
888
  info: {
889
889
  key: "xhr",
890
890
  title: "XMLHttpRequest",
@@ -925,19 +925,19 @@ var _a = {
925
925
  a(`xhr.setRequestHeader('${u}', '${ze(r[u])}');`);
926
926
  }), n(), a("xhr.send(data);"), i();
927
927
  }
928
- }, ei = {
928
+ }, ri = {
929
929
  info: {
930
930
  key: "javascript",
931
931
  title: "JavaScript",
932
932
  default: "xhr"
933
933
  },
934
934
  clientsById: {
935
- xhr: Za,
936
- axios: Ka,
937
- fetch: Ya,
938
- jquery: Xa
935
+ xhr: ti,
936
+ axios: Xa,
937
+ fetch: Za,
938
+ jquery: ei
939
939
  }
940
- }, ti = {
940
+ }, ni = {
941
941
  info: {
942
942
  key: "native",
943
943
  title: "Native JSON",
@@ -971,16 +971,16 @@ var _a = {
971
971
  }
972
972
  return typeof o > "u" || o === "" ? "No JSON body" : JSON.stringify(o, null, t.indent);
973
973
  }
974
- }, ri = {
974
+ }, oi = {
975
975
  info: {
976
976
  key: "json",
977
977
  title: "JSON",
978
978
  default: "native"
979
979
  },
980
980
  clientsById: {
981
- native: ti
981
+ native: ni
982
982
  }
983
- }, ni = {
983
+ }, ai = {
984
984
  info: {
985
985
  key: "okhttp",
986
986
  title: "OkHttp",
@@ -997,16 +997,16 @@ var _a = {
997
997
  i(`.addHeader("${f}", "${ce(o[f])}")`, 1);
998
998
  }), i(".build()", 1), n(), i("val response = client.newCall(request).execute()"), a();
999
999
  }
1000
- }, oi = {
1000
+ }, ii = {
1001
1001
  info: {
1002
1002
  key: "kotlin",
1003
1003
  title: "Kotlin",
1004
1004
  default: "okhttp"
1005
1005
  },
1006
1006
  clientsById: {
1007
- okhttp: ni
1007
+ okhttp: ai
1008
1008
  }
1009
- }, ai = {
1009
+ }, si = {
1010
1010
  info: {
1011
1011
  key: "axios",
1012
1012
  title: "Axios",
@@ -1040,7 +1040,7 @@ var _a = {
1040
1040
  const f = fe(u, { indent: " ", inlineCharacterLimit: 80 });
1041
1041
  return i(`const options = ${f};`), n(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), a();
1042
1042
  }
1043
- }, ii = {
1043
+ }, li = {
1044
1044
  info: {
1045
1045
  key: "fetch",
1046
1046
  title: "Fetch",
@@ -1100,7 +1100,7 @@ var _a = {
1100
1100
  });
1101
1101
  return c(`const options = ${$};`), i(), a && f("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), i()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1102
1102
  }
1103
- }, si = {
1103
+ }, ci = {
1104
1104
  info: {
1105
1105
  key: "native",
1106
1106
  title: "HTTP",
@@ -1139,7 +1139,7 @@ var _a = {
1139
1139
  }
1140
1140
  return i("req.end();"), a();
1141
1141
  }
1142
- }, li = {
1142
+ }, ui = {
1143
1143
  info: {
1144
1144
  key: "request",
1145
1145
  title: "Request",
@@ -1192,7 +1192,7 @@ var _a = {
1192
1192
  c(`jar.setCookie(request.cookie('${encodeURIComponent(x)}=${encodeURIComponent(p)}'), '${r}');`);
1193
1193
  }), u(), y((x) => x.replace(/'JAR'/, "jar"))), i && h("const fs = require('fs');"), c(`const options = ${fe($, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), f();
1194
1194
  }
1195
- }, ci = {
1195
+ }, fi = {
1196
1196
  info: {
1197
1197
  key: "unirest",
1198
1198
  title: "Unirest",
@@ -1233,7 +1233,7 @@ var _a = {
1233
1233
  }
1234
1234
  return i && y("const fs = require('fs');"), h("req.end(function (res) {"), h("if (res.error) throw new Error(res.error);", 1), u(), h("console.log(res.body);", 1), h("});"), f();
1235
1235
  }
1236
- }, ui = {
1236
+ }, pi = {
1237
1237
  info: {
1238
1238
  key: "node",
1239
1239
  title: "Node.js",
@@ -1241,27 +1241,27 @@ var _a = {
1241
1241
  cli: "node %s"
1242
1242
  },
1243
1243
  clientsById: {
1244
- native: si,
1245
- request: li,
1246
- unirest: ci,
1247
- axios: ai,
1248
- fetch: ii
1244
+ native: ci,
1245
+ request: ui,
1246
+ unirest: fi,
1247
+ axios: si,
1248
+ fetch: li
1249
1249
  }
1250
1250
  }, vt = (e, r, t, o) => {
1251
- const s = `${e} *${r} = `, l = yr(t, o ? s.length : void 0);
1251
+ const s = `${e} *${r} = `, l = mr(t, o ? s.length : void 0);
1252
1252
  return `${s}${l};`;
1253
- }, yr = (e, r) => {
1253
+ }, mr = (e, r) => {
1254
1254
  const t = r === void 0 ? ", " : `,
1255
1255
  ${" ".repeat(r)}`;
1256
1256
  switch (Object.prototype.toString.call(e)) {
1257
1257
  case "[object Number]":
1258
1258
  return `@${e}`;
1259
1259
  case "[object Array]":
1260
- return `@[ ${e.map((s) => yr(s)).join(t)} ]`;
1260
+ return `@[ ${e.map((s) => mr(s)).join(t)} ]`;
1261
1261
  case "[object Object]": {
1262
1262
  const o = [];
1263
1263
  return Object.keys(e).forEach((s) => {
1264
- o.push(`@"${s}": ${yr(e[s])}`);
1264
+ o.push(`@"${s}": ${mr(e[s])}`);
1265
1265
  }), `@{ ${o.join(t)} }`;
1266
1266
  }
1267
1267
  case "[object Boolean]":
@@ -1269,7 +1269,7 @@ var _a = {
1269
1269
  default:
1270
1270
  return e == null ? "" : `@"${e.toString().replace(/"/g, '\\"')}"`;
1271
1271
  }
1272
- }, fi = {
1272
+ }, di = {
1273
1273
  info: {
1274
1274
  key: "nsurlsession",
1275
1275
  title: "NSURLSession",
@@ -1326,16 +1326,16 @@ var _a = {
1326
1326
  2
1327
1327
  ), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), a();
1328
1328
  }
1329
- }, pi = {
1329
+ }, hi = {
1330
1330
  info: {
1331
1331
  key: "objc",
1332
1332
  title: "Objective-C",
1333
1333
  default: "nsurlsession"
1334
1334
  },
1335
1335
  clientsById: {
1336
- nsurlsession: fi
1336
+ nsurlsession: di
1337
1337
  }
1338
- }, di = {
1338
+ }, yi = {
1339
1339
  info: {
1340
1340
  key: "cohttp",
1341
1341
  title: "CoHTTP",
@@ -1361,14 +1361,14 @@ var _a = {
1361
1361
  const f = u.length ? "~headers " : "", h = t.text ? "~body " : "", y = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1362
1362
  return a(`Client.call ${f}${h}${y} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), c();
1363
1363
  }
1364
- }, hi = {
1364
+ }, mi = {
1365
1365
  info: {
1366
1366
  key: "ocaml",
1367
1367
  title: "OCaml",
1368
1368
  default: "cohttp"
1369
1369
  },
1370
1370
  clientsById: {
1371
- cohttp: di
1371
+ cohttp: yi
1372
1372
  }
1373
1373
  }, te = (e, r, t) => {
1374
1374
  switch (t = t || "", r = r || "", Object.prototype.toString.call(e)) {
@@ -1401,7 +1401,7 @@ ${t}]`;
1401
1401
  default:
1402
1402
  return "null";
1403
1403
  }
1404
- }, Yr = [
1404
+ }, Xr = [
1405
1405
  "ACL",
1406
1406
  "BASELINE_CONTROL",
1407
1407
  "CHECKIN",
@@ -1429,7 +1429,7 @@ ${t}]`;
1429
1429
  "UNLOCK",
1430
1430
  "UPDATE",
1431
1431
  "VERSION_CONTROL"
1432
- ], yi = {
1432
+ ], gi = {
1433
1433
  info: {
1434
1434
  key: "curl",
1435
1435
  title: "cURL",
@@ -1507,7 +1507,7 @@ ${c}` });
1507
1507
  return d.length && (O.push("CURLOPT_HTTPHEADER => ["), O.push(d.join(`,
1508
1508
  ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = curl_exec($curl);"), x("$err = curl_error($curl);"), p(), x("curl_close($curl);"), p(), x("if ($err) {"), x(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), x("} else {"), x("echo $response;", 1), x("}"), !h && i && (p(), x("?>")), m();
1509
1509
  }
1510
- }, mi = {
1510
+ }, vi = {
1511
1511
  info: {
1512
1512
  key: "guzzle",
1513
1513
  title: "Guzzle",
@@ -1558,7 +1558,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1558
1558
  return $.length && y.push(`${n.indent}${n.indent}'cookie' => '${ze($)}',`), y.length && (f("'headers' => [", 1), f(y.join(`
1559
1559
  `)), f("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), i(), u.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(h()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), i(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (i(), a("?>")), c();
1560
1560
  }
1561
- }, gi = {
1561
+ }, bi = {
1562
1562
  info: {
1563
1563
  key: "http1",
1564
1564
  title: "HTTP v1",
@@ -1568,7 +1568,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1568
1568
  },
1569
1569
  convert: ({ method: e, url: r, postData: t, queryObj: o, headersObj: s, cookiesObj: l }, n = {}) => {
1570
1570
  const { closingTag: a = !1, indent: i = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: h, join: y } = new V({ indent: i });
1571
- switch (c || (f(u ? "<?" : "<?php"), h()), Yr.includes(e.toUpperCase()) || f(`HttpRequest::methodRegister('${e}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${te(r)});`), Yr.includes(e.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), h(), Object.keys(o).length && (f(`$request->setQueryData(${te(o, i)});`), h()), Object.keys(s).length && (f(`$request->setHeaders(${te(s, i)});`), h()), Object.keys(l).length && (f(`$request->setCookies(${te(l, i)});`), h()), t.mimeType) {
1571
+ switch (c || (f(u ? "<?" : "<?php"), h()), Xr.includes(e.toUpperCase()) || f(`HttpRequest::methodRegister('${e}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${te(r)});`), Xr.includes(e.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), h(), Object.keys(o).length && (f(`$request->setQueryData(${te(o, i)});`), h()), Object.keys(s).length && (f(`$request->setHeaders(${te(s, i)});`), h()), Object.keys(l).length && (f(`$request->setCookies(${te(l, i)});`), h()), t.mimeType) {
1572
1572
  case "application/x-www-form-urlencoded":
1573
1573
  f(`$request->setContentType(${te(t.mimeType)});`), f(`$request->setPostFields(${te(t.paramsObj, i)});`), h();
1574
1574
  break;
@@ -1580,7 +1580,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1580
1580
  }
1581
1581
  return f("try {"), f("$response = $request->send();", 1), h(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !c && a && (h(), f("?>")), y();
1582
1582
  }
1583
- }, vi = {
1583
+ }, xi = {
1584
1584
  info: {
1585
1585
  key: "http2",
1586
1586
  title: "HTTP v2",
@@ -1628,7 +1628,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1628
1628
  }
1629
1629
  return f(`$request->setRequestUrl(${te(l)});`), f(`$request->setRequestMethod(${te(t)});`), $ && (f("$request->setBody($body);"), h()), Object.keys(o).length && (f(`$request->setQuery(new http\\QueryString(${te(o, i)}));`), h()), Object.keys(r).length && (f(`$request->setHeaders(${te(r, i)});`), h()), Object.keys(s).length && (h(), f(`$client->setCookies(${te(s, i)});`), h()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), h(), f("echo $response->getBody();"), !c && a && (h(), f("?>")), y();
1630
1630
  }
1631
- }, bi = {
1631
+ }, $i = {
1632
1632
  info: {
1633
1633
  key: "php",
1634
1634
  title: "PHP",
@@ -1636,12 +1636,12 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1636
1636
  cli: "php %s"
1637
1637
  },
1638
1638
  clientsById: {
1639
- curl: yi,
1640
- guzzle: mi,
1641
- http1: gi,
1642
- http2: vi
1639
+ curl: gi,
1640
+ guzzle: vi,
1641
+ http1: bi,
1642
+ http2: xi
1643
1643
  }
1644
- }, so = (e) => ({ method: t, headersObj: o, cookies: s, uriObj: l, fullUrl: n, postData: a, allHeaders: i }) => {
1644
+ }, co = (e) => ({ method: t, headersObj: o, cookies: s, uriObj: l, fullUrl: n, postData: a, allHeaders: i }) => {
1645
1645
  const { push: c, join: u } = new V();
1646
1646
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
1647
1647
  return "Method not supported";
@@ -1653,7 +1653,7 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1653
1653
  }), h.push("-WebSession $session")), a.text && (h.push(
1654
1654
  `-ContentType '${Me(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1655
1655
  ), h.push(`-Body '${a.text}'`)), c(`$response = ${e} -Uri '${n}' -Method ${t} ${h.join(" ")}`.trim()), u();
1656
- }, xi = {
1656
+ }, ji = {
1657
1657
  info: {
1658
1658
  key: "restmethod",
1659
1659
  title: "Invoke-RestMethod",
@@ -1661,8 +1661,8 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1661
1661
  description: "Powershell Invoke-RestMethod client",
1662
1662
  extname: ".ps1"
1663
1663
  },
1664
- convert: so("Invoke-RestMethod")
1665
- }, $i = {
1664
+ convert: co("Invoke-RestMethod")
1665
+ }, wi = {
1666
1666
  info: {
1667
1667
  key: "webrequest",
1668
1668
  title: "Invoke-WebRequest",
@@ -1670,39 +1670,39 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1670
1670
  description: "Powershell Invoke-WebRequest client",
1671
1671
  extname: ".ps1"
1672
1672
  },
1673
- convert: so("Invoke-WebRequest")
1674
- }, ji = {
1673
+ convert: co("Invoke-WebRequest")
1674
+ }, Si = {
1675
1675
  info: {
1676
1676
  key: "powershell",
1677
1677
  title: "Powershell",
1678
1678
  default: "webrequest"
1679
1679
  },
1680
1680
  clientsById: {
1681
- webrequest: $i,
1682
- restmethod: xi
1681
+ webrequest: wi,
1682
+ restmethod: ji
1683
1683
  }
1684
1684
  };
1685
- function Xr(e, r, t, o, s) {
1685
+ function Zr(e, r, t, o, s) {
1686
1686
  const l = o.repeat(s), n = o.repeat(s - 1), a = t ? `,
1687
1687
  ${l}` : ", ", i = e === "object" ? "{" : "[", c = e === "object" ? "}" : "]";
1688
1688
  return t ? `${i}
1689
1689
  ${l}${r.join(a)}
1690
1690
  ${n}${c}` : e === "object" && r.length > 0 ? `${i} ${r.join(a)} ${c}` : `${i}${r.join(a)}${c}`;
1691
1691
  }
1692
- var Ae = (e, r, t) => {
1692
+ var Ie = (e, r, t) => {
1693
1693
  switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
1694
1694
  case "[object Number]":
1695
1695
  return e;
1696
1696
  case "[object Array]": {
1697
1697
  let o = !1;
1698
- const s = e.map((l) => (Object.prototype.toString.call(l) === "[object Object]" && (o = Object.keys(l).length > 1), Ae(l, r, t)));
1699
- return Xr("array", s, o, r.indent, t);
1698
+ const s = e.map((l) => (Object.prototype.toString.call(l) === "[object Object]" && (o = Object.keys(l).length > 1), Ie(l, r, t)));
1699
+ return Zr("array", s, o, r.indent, t);
1700
1700
  }
1701
1701
  case "[object Object]": {
1702
1702
  const o = [];
1703
1703
  for (const s in e)
1704
- o.push(`"${s}": ${Ae(e[s], r, t)}`);
1705
- return Xr("object", o, r.pretty && o.length > 1, r.indent, t);
1704
+ o.push(`"${s}": ${Ie(e[s], r, t)}`);
1705
+ return Zr("object", o, r.pretty && o.length > 1, r.indent, t);
1706
1706
  }
1707
1707
  case "[object Null]":
1708
1708
  return "None";
@@ -1711,7 +1711,7 @@ var Ae = (e, r, t) => {
1711
1711
  default:
1712
1712
  return e == null ? "" : `"${e.toString().replace(/"/g, '\\"')}"`;
1713
1713
  }
1714
- }, wi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Si = {
1714
+ }, Oi = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], Ti = {
1715
1715
  info: {
1716
1716
  key: "requests",
1717
1717
  title: "Requests",
@@ -1733,7 +1733,7 @@ var Ae = (e, r, t) => {
1733
1733
  let y = !1, $ = !1, x = !1;
1734
1734
  switch (r.mimeType) {
1735
1735
  case "application/json":
1736
- r.jsonObj && (n(`payload = ${Ae(r.jsonObj, l)}`), x = !0, $ = !0);
1736
+ r.jsonObj && (n(`payload = ${Ie(r.jsonObj, l)}`), x = !0, $ = !0);
1737
1737
  break;
1738
1738
  case "multipart/form-data":
1739
1739
  if (!r.params)
@@ -1741,7 +1741,7 @@ var Ae = (e, r, t) => {
1741
1741
  if (f = {}, r.params.forEach((v) => {
1742
1742
  v.fileName ? (v.contentType ? h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (f[v.name] = v.value, $ = !0);
1743
1743
  }), y) {
1744
- n(`files = ${Ae(h, l)}`), $ && n(`payload = ${Ae(f, l)}`);
1744
+ n(`files = ${Ie(h, l)}`), $ && n(`payload = ${Ie(f, l)}`);
1745
1745
  const v = pe(u, "content-type");
1746
1746
  v && delete u[v];
1747
1747
  } else {
@@ -1754,7 +1754,7 @@ var Ae = (e, r, t) => {
1754
1754
  break;
1755
1755
  default: {
1756
1756
  if (r.mimeType === "application/x-www-form-urlencoded" && r.paramsObj) {
1757
- n(`payload = ${Ae(r.paramsObj, l)}`), $ = !0;
1757
+ n(`payload = ${Ie(r.paramsObj, l)}`), $ = !0;
1758
1758
  break;
1759
1759
  }
1760
1760
  const v = JSON.stringify(r.text);
@@ -1774,10 +1774,10 @@ var Ae = (e, r, t) => {
1774
1774
  n(v !== p ? `"${O}": "${ce(u[O])}",` : `"${O}": "${ce(u[O])}"`, 1), v += 1;
1775
1775
  }), n("}"), a();
1776
1776
  }
1777
- let m = wi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1777
+ let m = Oi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1778
1778
  return $ && (x ? m += ", json=payload" : m += ", data=payload"), y && (m += ", files=files"), p > 0 && (m += ", headers=headers"), m += ")", n(m), a(), n("print(response.text)"), i();
1779
1779
  }
1780
- }, Oi = {
1780
+ }, Pi = {
1781
1781
  info: {
1782
1782
  key: "python",
1783
1783
  title: "Python",
@@ -1785,9 +1785,9 @@ var Ae = (e, r, t) => {
1785
1785
  cli: "python3 %s"
1786
1786
  },
1787
1787
  clientsById: {
1788
- requests: Si
1788
+ requests: Ti
1789
1789
  }
1790
- }, Ti = {
1790
+ }, Ci = {
1791
1791
  info: {
1792
1792
  key: "httr",
1793
1793
  title: "httr",
@@ -1826,16 +1826,16 @@ var Ae = (e, r, t) => {
1826
1826
  const T = [v, p, x, $].filter((d) => !!d).join(", ");
1827
1827
  return T && (O += `, ${T}`), (o.text || o.jsonObj || o.params) && (O += ", encode = encode"), O += ")", n(O), a(), n('content(response, "text")'), i();
1828
1828
  }
1829
- }, Pi = {
1829
+ }, Ri = {
1830
1830
  info: {
1831
1831
  key: "r",
1832
1832
  title: "R",
1833
1833
  default: "httr"
1834
1834
  },
1835
1835
  clientsById: {
1836
- httr: Ti
1836
+ httr: Ci
1837
1837
  }
1838
- }, Ci = {
1838
+ }, qi = {
1839
1839
  info: {
1840
1840
  key: "native",
1841
1841
  title: "net::http",
@@ -1866,16 +1866,16 @@ var Ae = (e, r, t) => {
1866
1866
  l(`request["${h}"] = '${ze(s[h])}'`);
1867
1867
  }), o.text && l(`request.body = ${JSON.stringify(o.text)}`), n(), l("response = http.request(request)"), l("puts response.read_body"), a();
1868
1868
  }
1869
- }, Ri = {
1869
+ }, Ni = {
1870
1870
  info: {
1871
1871
  key: "ruby",
1872
1872
  title: "Ruby",
1873
1873
  default: "native"
1874
1874
  },
1875
1875
  clientsById: {
1876
- native: Ci
1876
+ native: qi
1877
1877
  }
1878
- }, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, qi = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ni = {
1878
+ }, ue = (e = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(e) ? e : `'${e.replace(/'/g, "'\\''")}'`, ki = (e) => e.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), Ei = {
1879
1879
  "http1.0": "0",
1880
1880
  "url ": "",
1881
1881
  cookie: "b",
@@ -1885,13 +1885,13 @@ var Ae = (e, r, t) => {
1885
1885
  header: "H",
1886
1886
  insecure: "k",
1887
1887
  request: "X"
1888
- }, ki = (e) => (r) => {
1888
+ }, Ai = (e) => (r) => {
1889
1889
  if (e) {
1890
- const t = Ni[r];
1890
+ const t = Ei[r];
1891
1891
  return t ? `-${t}` : "";
1892
1892
  }
1893
1893
  return `--${r}`;
1894
- }, Ei = {
1894
+ }, Ii = {
1895
1895
  info: {
1896
1896
  key: "curl",
1897
1897
  title: "cURL",
@@ -1905,7 +1905,7 @@ var Ae = (e, r, t) => {
1905
1905
  ...typeof a == "string" ? { indent: a } : {},
1906
1906
  join: a !== !1 ? ` \\
1907
1907
  ${a}` : " "
1908
- }), $ = ki(i);
1908
+ }), $ = Ai(i);
1909
1909
  let x = ue(e);
1910
1910
  if (h(`curl ${$("request")} ${r}`), u && (x = unescape(x), h($("globoff"))), h(`${$("url ")}${x}`), t === "HTTP/1.0" && h($("http1.0")), ve(s, "accept-encoding") && h("--compressed"), l.mimeType === "multipart/form-data") {
1911
1911
  const m = pe(o, "content-type");
@@ -1937,7 +1937,7 @@ ${a}` : " "
1937
1937
  if (!l.text)
1938
1938
  break;
1939
1939
  let m = !1;
1940
- if (ka(l.mimeType) && l.text.length > 20)
1940
+ if (Aa(l.mimeType) && l.text.length > 20)
1941
1941
  try {
1942
1942
  const v = JSON.parse(l.text);
1943
1943
  m = !0, l.text.indexOf("'") > 0 ? h(
@@ -1959,7 +1959,7 @@ ${JSON.stringify(v, null, f)}
1959
1959
  }
1960
1960
  return y();
1961
1961
  }
1962
- }, Ai = {
1962
+ }, Li = {
1963
1963
  info: {
1964
1964
  key: "httpie",
1965
1965
  title: "HTTPie",
@@ -2008,7 +2008,7 @@ ${a.indent}` : " "
2008
2008
  }
2009
2009
  return c();
2010
2010
  }
2011
- }, Ii = {
2011
+ }, Ui = {
2012
2012
  info: {
2013
2013
  key: "wget",
2014
2014
  title: "Wget",
@@ -2030,9 +2030,9 @@ ${l.indent}` : " "
2030
2030
  return l.verbose ? n(`wget ${l.short ? "-v" : "--verbose"}`) : n(`wget ${l.short ? "-q" : "--quiet"}`), n(`--method ${ue(e)}`), Object.keys(t).forEach((i) => {
2031
2031
  const c = `${i}: ${t[i]}`;
2032
2032
  n(`--header ${ue(c)}`);
2033
- }), r.text && n(`--body-data ${qi(ue(r.text))}`), n(l.short ? "-O" : "--output-document"), n(`- ${ue(o)}`), a();
2033
+ }), r.text && n(`--body-data ${ki(ue(r.text))}`), n(l.short ? "-O" : "--output-document"), n(`- ${ue(o)}`), a();
2034
2034
  }
2035
- }, Li = {
2035
+ }, Fi = {
2036
2036
  info: {
2037
2037
  key: "shell",
2038
2038
  title: "Shell",
@@ -2040,30 +2040,30 @@ ${l.indent}` : " "
2040
2040
  cli: "%s"
2041
2041
  },
2042
2042
  clientsById: {
2043
- curl: Ei,
2044
- httpie: Ai,
2045
- wget: Ii
2043
+ curl: Ii,
2044
+ httpie: Li,
2045
+ wget: Ui
2046
2046
  }
2047
- }, Zr = (e, r) => r.repeat(e), en = (e, r, t, o) => {
2048
- const s = Zr(o, t), l = Zr(o - 1, t), n = r ? `,
2047
+ }, en = (e, r) => r.repeat(e), tn = (e, r, t, o) => {
2048
+ const s = en(o, t), l = en(o - 1, t), n = r ? `,
2049
2049
  ${s}` : ", ";
2050
2050
  return r ? `[
2051
2051
  ${s}${e.join(n)}
2052
2052
  ${l}]` : `[${e.join(n)}]`;
2053
- }, tn = (e, r, t) => `let ${e} = ${tt(r, t)}`, tt = (e, r, t) => {
2053
+ }, rn = (e, r, t) => `let ${e} = ${tt(r, t)}`, tt = (e, r, t) => {
2054
2054
  switch (t = t === void 0 ? 1 : t + 1, Object.prototype.toString.call(e)) {
2055
2055
  case "[object Number]":
2056
2056
  return e;
2057
2057
  case "[object Array]": {
2058
2058
  let o = !1;
2059
2059
  const s = e.map((l) => (Object.prototype.toString.call(l) === "[object Object]" && (o = Object.keys(l).length > 1), tt(l, r, t)));
2060
- return en(s, o, r.indent, t);
2060
+ return tn(s, o, r.indent, t);
2061
2061
  }
2062
2062
  case "[object Object]": {
2063
2063
  const o = [];
2064
2064
  for (const s in e)
2065
2065
  o.push(`"${s}": ${tt(e[s], r, t)}`);
2066
- return en(
2066
+ return tn(
2067
2067
  o,
2068
2068
  // @ts-expect-error needs better types
2069
2069
  r.pretty && o.length > 1,
@@ -2077,7 +2077,7 @@ ${l}]` : `[${e.join(n)}]`;
2077
2077
  default:
2078
2078
  return e == null ? "nil" : `"${e.toString().replace(/"/g, '\\"')}"`;
2079
2079
  }
2080
- }, Ui = {
2080
+ }, _i = {
2081
2081
  info: {
2082
2082
  key: "urlsession",
2083
2083
  title: "URLSession",
@@ -2104,10 +2104,10 @@ ${l}]` : `[${e.join(n)}]`;
2104
2104
  }
2105
2105
  break;
2106
2106
  case "application/json":
2107
- r.jsonObj && (a(`${tn("parameters", r.jsonObj, n)} as [String : Any?]`), i(), a("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), i());
2107
+ r.jsonObj && (a(`${rn("parameters", r.jsonObj, n)} as [String : Any?]`), i(), a("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), i());
2108
2108
  break;
2109
2109
  case "multipart/form-data":
2110
- a(tn("parameters", r.params, n)), i(), a(`let boundary = "${r.boundary}"`), i(), a('var body = ""'), a("for param in parameters {"), a('let paramName = param["name"]!', 1), a('body += "--\\(boundary)\\r\\n"', 1), a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), a('if let filename = param["fileName"] {', 1), a('let contentType = param["contentType"]!', 2), a("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), a('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), a("body += fileContent", 2), a('} else if let paramValue = param["value"] {', 1), a('body += "\\r\\n\\r\\n\\(paramValue)"', 2), a("}", 1), a("}"), i(), a("let postData = Data(body.utf8)"), i();
2110
+ a(rn("parameters", r.params, n)), i(), a(`let boundary = "${r.boundary}"`), i(), a('var body = ""'), a("for param in parameters {"), a('let paramName = param["name"]!', 1), a('body += "--\\(boundary)\\r\\n"', 1), a('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), a('if let filename = param["fileName"] {', 1), a('let contentType = param["contentType"]!', 2), a("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), a('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), a('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), a("body += fileContent", 2), a('} else if let paramValue = param["value"] {', 1), a('body += "\\r\\n\\r\\n\\(paramValue)"', 2), a("}", 1), a("}"), i(), a("let postData = Data(body.utf8)"), i();
2111
2111
  break;
2112
2112
  default:
2113
2113
  a(`let postData = Data("${r.text}".utf8)`), i();
@@ -2128,40 +2128,40 @@ ${l}]` : `[${e.join(n)}]`;
2128
2128
  }
2129
2129
  }), a("]"), a("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), i(), a("var request = URLRequest(url: components.url!)")), a(`request.httpMethod = "${s}"`), a(`request.timeoutInterval = ${n.timeout}`), Object.keys(e).length && a(`request.allHTTPHeaderFields = ${tt(e, n)}`), u && a("request.httpBody = postData"), i(), a("let (data, _) = try await URLSession.shared.data(for: request)"), a("print(String(decoding: data, as: UTF8.self))"), c();
2130
2130
  }
2131
- }, Fi = {
2131
+ }, Bi = {
2132
2132
  info: {
2133
2133
  key: "swift",
2134
2134
  title: "Swift",
2135
2135
  default: "urlsession"
2136
2136
  },
2137
2137
  clientsById: {
2138
- urlsession: Ui
2138
+ urlsession: _i
2139
2139
  }
2140
- }, _i = {
2141
- c: Na,
2142
- clojure: Ia,
2143
- csharp: Ba,
2144
- go: Ma,
2145
- http: Ga,
2146
- java: Qa,
2147
- javascript: ei,
2148
- json: ri,
2149
- kotlin: oi,
2150
- node: ui,
2151
- objc: pi,
2152
- ocaml: hi,
2153
- php: bi,
2154
- powershell: ji,
2155
- python: Oi,
2156
- r: Pi,
2157
- ruby: Ri,
2158
- shell: Li,
2159
- swift: Fi
2160
- }, Pe = {}, Fe = { exports: {} };
2140
+ }, Hi = {
2141
+ c: Ea,
2142
+ clojure: Ua,
2143
+ csharp: Ma,
2144
+ go: Ga,
2145
+ http: Ja,
2146
+ java: Ya,
2147
+ javascript: ri,
2148
+ json: oi,
2149
+ kotlin: ii,
2150
+ node: pi,
2151
+ objc: hi,
2152
+ ocaml: mi,
2153
+ php: $i,
2154
+ powershell: Si,
2155
+ python: Pi,
2156
+ r: Ri,
2157
+ ruby: Ni,
2158
+ shell: Fi,
2159
+ swift: Bi
2160
+ }, Pe = {}, _e = { exports: {} };
2161
2161
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2162
- var Bi = Fe.exports, rn;
2163
- function Hi() {
2164
- return rn || (rn = 1, function(e, r) {
2162
+ var Mi = _e.exports, nn;
2163
+ function zi() {
2164
+ return nn || (nn = 1, function(e, r) {
2165
2165
  (function(t) {
2166
2166
  var o = r && !r.nodeType && r, s = !e.nodeType && e, l = typeof Ze == "object" && Ze;
2167
2167
  (l.global === l || l.window === l || l.self === l) && (t = l);
@@ -2173,24 +2173,24 @@ function Hi() {
2173
2173
  function q(R) {
2174
2174
  throw new RangeError(O[R]);
2175
2175
  }
2176
- function I(R, N) {
2176
+ function L(R, N) {
2177
2177
  for (var U = R.length, C = []; U--; )
2178
2178
  C[U] = N(R[U]);
2179
2179
  return C;
2180
2180
  }
2181
- function k(R, N) {
2181
+ function E(R, N) {
2182
2182
  var U = R.split("@"), C = "";
2183
2183
  U.length > 1 && (C = U[0] + "@", R = U[1]), R = R.replace(v, ".");
2184
- var L = R.split("."), W = I(L, N).join(".");
2184
+ var I = R.split("."), W = L(I, N).join(".");
2185
2185
  return C + W;
2186
2186
  }
2187
2187
  function B(R) {
2188
- for (var N = [], U = 0, C = R.length, L, W; U < C; )
2189
- L = R.charCodeAt(U++), L >= 55296 && L <= 56319 && U < C ? (W = R.charCodeAt(U++), (W & 64512) == 56320 ? N.push(((L & 1023) << 10) + (W & 1023) + 65536) : (N.push(L), U--)) : N.push(L);
2188
+ for (var N = [], U = 0, C = R.length, I, W; U < C; )
2189
+ I = R.charCodeAt(U++), I >= 55296 && I <= 56319 && U < C ? (W = R.charCodeAt(U++), (W & 64512) == 56320 ? N.push(((I & 1023) << 10) + (W & 1023) + 65536) : (N.push(I), U--)) : N.push(I);
2190
2190
  return N;
2191
2191
  }
2192
2192
  function P(R) {
2193
- return I(R, function(N) {
2193
+ return L(R, function(N) {
2194
2194
  var U = "";
2195
2195
  return N > 65535 && (N -= 65536, U += S(N >>> 10 & 1023 | 55296), N = 56320 | N & 1023), U += S(N), U;
2196
2196
  }).join("");
@@ -2208,21 +2208,21 @@ function Hi() {
2208
2208
  return d(C + (T + 1) * R / (R + f));
2209
2209
  }
2210
2210
  function se(R) {
2211
- var N = [], U = R.length, C, L = 0, W = $, z = y, K, ne, J, A, F, _, Q, G, Y;
2211
+ var N = [], U = R.length, C, I = 0, W = $, z = y, K, ne, J, A, F, _, Q, G, Y;
2212
2212
  for (K = R.lastIndexOf(x), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
2213
2213
  R.charCodeAt(ne) >= 128 && q("not-basic"), N.push(R.charCodeAt(ne));
2214
2214
  for (J = K > 0 ? K + 1 : 0; J < U; ) {
2215
- for (A = L, F = 1, _ = i; J >= U && q("invalid-input"), Q = ae(R.charCodeAt(J++)), (Q >= i || Q > d((a - L) / F)) && q("overflow"), L += Q * F, G = _ <= z ? c : _ >= z + u ? u : _ - z, !(Q < G); _ += i)
2215
+ for (A = I, F = 1, _ = i; J >= U && q("invalid-input"), Q = ae(R.charCodeAt(J++)), (Q >= i || Q > d((a - I) / F)) && q("overflow"), I += Q * F, G = _ <= z ? c : _ >= z + u ? u : _ - z, !(Q < G); _ += i)
2216
2216
  Y = i - G, F > d(a / Y) && q("overflow"), F *= Y;
2217
- C = N.length + 1, z = D(L - A, C, A == 0), d(L / C) > a - W && q("overflow"), W += d(L / C), L %= C, N.splice(L++, 0, W);
2217
+ C = N.length + 1, z = D(I - A, C, A == 0), d(I / C) > a - W && q("overflow"), W += d(I / C), I %= C, N.splice(I++, 0, W);
2218
2218
  }
2219
2219
  return P(N);
2220
2220
  }
2221
2221
  function Z(R) {
2222
- var N, U, C, L, W, z, K, ne, J, A, F, _ = [], Q, G, Y, oe;
2222
+ var N, U, C, I, W, z, K, ne, J, A, F, _ = [], Q, G, Y, oe;
2223
2223
  for (R = B(R), Q = R.length, N = $, U = 0, W = y, z = 0; z < Q; ++z)
2224
2224
  F = R[z], F < 128 && _.push(S(F));
2225
- for (C = L = _.length, L && _.push(x); C < Q; ) {
2225
+ for (C = I = _.length, I && _.push(x); C < Q; ) {
2226
2226
  for (K = a, z = 0; z < Q; ++z)
2227
2227
  F = R[z], F >= N && F < K && (K = F);
2228
2228
  for (G = C + 1, K - N > d((a - U) / G) && q("overflow"), U += (K - N) * G, N = K, z = 0; z < Q; ++z)
@@ -2231,19 +2231,19 @@ function Hi() {
2231
2231
  oe = ne - A, Y = i - A, _.push(
2232
2232
  S(H(A + oe % Y, 0))
2233
2233
  ), ne = d(oe / Y);
2234
- _.push(S(H(ne, 0))), W = D(U, G, C == L), U = 0, ++C;
2234
+ _.push(S(H(ne, 0))), W = D(U, G, C == I), U = 0, ++C;
2235
2235
  }
2236
2236
  ++U, ++N;
2237
2237
  }
2238
2238
  return _.join("");
2239
2239
  }
2240
- function E(R) {
2241
- return k(R, function(N) {
2240
+ function k(R) {
2241
+ return E(R, function(N) {
2242
2242
  return p.test(N) ? se(N.slice(4).toLowerCase()) : N;
2243
2243
  });
2244
2244
  }
2245
2245
  function re(R) {
2246
- return k(R, function(N) {
2246
+ return E(R, function(N) {
2247
2247
  return m.test(N) ? "xn--" + Z(N) : N;
2248
2248
  });
2249
2249
  }
@@ -2268,7 +2268,7 @@ function Hi() {
2268
2268
  decode: se,
2269
2269
  encode: Z,
2270
2270
  toASCII: re,
2271
- toUnicode: E
2271
+ toUnicode: k
2272
2272
  }, o && s)
2273
2273
  if (e.exports == o)
2274
2274
  s.exports = n;
@@ -2277,89 +2277,89 @@ function Hi() {
2277
2277
  n.hasOwnProperty(b) && (o[b] = n[b]);
2278
2278
  else
2279
2279
  t.punycode = n;
2280
- })(Bi);
2281
- }(Fe, Fe.exports)), Fe.exports;
2282
- }
2283
- var bt, nn;
2284
- function lo() {
2285
- return nn || (nn = 1, bt = Object), bt;
2280
+ })(Mi);
2281
+ }(_e, _e.exports)), _e.exports;
2286
2282
  }
2287
- var xt, on;
2288
- function Mi() {
2289
- return on || (on = 1, xt = Error), xt;
2290
- }
2291
- var $t, an;
2292
- function zi() {
2293
- return an || (an = 1, $t = EvalError), $t;
2283
+ var bt, on;
2284
+ function uo() {
2285
+ return on || (on = 1, bt = Object), bt;
2294
2286
  }
2295
- var jt, sn;
2287
+ var xt, an;
2296
2288
  function Gi() {
2297
- return sn || (sn = 1, jt = RangeError), jt;
2289
+ return an || (an = 1, xt = Error), xt;
2298
2290
  }
2299
- var wt, ln;
2291
+ var $t, sn;
2300
2292
  function Wi() {
2301
- return ln || (ln = 1, wt = ReferenceError), wt;
2293
+ return sn || (sn = 1, $t = EvalError), $t;
2302
2294
  }
2303
- var St, cn;
2304
- function co() {
2305
- return cn || (cn = 1, St = SyntaxError), St;
2306
- }
2307
- var Ot, un;
2308
- function We() {
2309
- return un || (un = 1, Ot = TypeError), Ot;
2310
- }
2311
- var Tt, fn;
2295
+ var jt, ln;
2312
2296
  function Ji() {
2313
- return fn || (fn = 1, Tt = URIError), Tt;
2297
+ return ln || (ln = 1, jt = RangeError), jt;
2314
2298
  }
2315
- var Pt, pn;
2299
+ var wt, cn;
2316
2300
  function Vi() {
2317
- return pn || (pn = 1, Pt = Math.abs), Pt;
2301
+ return cn || (cn = 1, wt = ReferenceError), wt;
2302
+ }
2303
+ var St, un;
2304
+ function fo() {
2305
+ return un || (un = 1, St = SyntaxError), St;
2306
+ }
2307
+ var Ot, fn;
2308
+ function We() {
2309
+ return fn || (fn = 1, Ot = TypeError), Ot;
2318
2310
  }
2319
- var Ct, dn;
2311
+ var Tt, pn;
2320
2312
  function Di() {
2321
- return dn || (dn = 1, Ct = Math.floor), Ct;
2313
+ return pn || (pn = 1, Tt = URIError), Tt;
2322
2314
  }
2323
- var Rt, hn;
2315
+ var Pt, dn;
2324
2316
  function Qi() {
2325
- return hn || (hn = 1, Rt = Math.max), Rt;
2317
+ return dn || (dn = 1, Pt = Math.abs), Pt;
2326
2318
  }
2327
- var qt, yn;
2319
+ var Ct, hn;
2328
2320
  function Ki() {
2329
- return yn || (yn = 1, qt = Math.min), qt;
2321
+ return hn || (hn = 1, Ct = Math.floor), Ct;
2330
2322
  }
2331
- var Nt, mn;
2323
+ var Rt, yn;
2332
2324
  function Yi() {
2333
- return mn || (mn = 1, Nt = Math.pow), Nt;
2325
+ return yn || (yn = 1, Rt = Math.max), Rt;
2334
2326
  }
2335
- var kt, gn;
2327
+ var qt, mn;
2336
2328
  function Xi() {
2337
- return gn || (gn = 1, kt = Math.round), kt;
2329
+ return mn || (mn = 1, qt = Math.min), qt;
2338
2330
  }
2339
- var Et, vn;
2331
+ var Nt, gn;
2340
2332
  function Zi() {
2341
- return vn || (vn = 1, Et = Number.isNaN || function(r) {
2333
+ return gn || (gn = 1, Nt = Math.pow), Nt;
2334
+ }
2335
+ var kt, vn;
2336
+ function es() {
2337
+ return vn || (vn = 1, kt = Math.round), kt;
2338
+ }
2339
+ var Et, bn;
2340
+ function ts() {
2341
+ return bn || (bn = 1, Et = Number.isNaN || function(r) {
2342
2342
  return r !== r;
2343
2343
  }), Et;
2344
2344
  }
2345
- var At, bn;
2346
- function es() {
2347
- if (bn) return At;
2348
- bn = 1;
2349
- var e = /* @__PURE__ */ Zi();
2345
+ var At, xn;
2346
+ function rs() {
2347
+ if (xn) return At;
2348
+ xn = 1;
2349
+ var e = /* @__PURE__ */ ts();
2350
2350
  return At = function(t) {
2351
2351
  return e(t) || t === 0 ? t : t < 0 ? -1 : 1;
2352
2352
  }, At;
2353
2353
  }
2354
- var It, xn;
2355
- function ts() {
2356
- return xn || (xn = 1, It = Object.getOwnPropertyDescriptor), It;
2354
+ var It, $n;
2355
+ function ns() {
2356
+ return $n || ($n = 1, It = Object.getOwnPropertyDescriptor), It;
2357
2357
  }
2358
- var Lt, $n;
2358
+ var Lt, jn;
2359
2359
  function ot() {
2360
- if ($n) return Lt;
2361
- $n = 1;
2362
- var e = /* @__PURE__ */ ts();
2360
+ if (jn) return Lt;
2361
+ jn = 1;
2362
+ var e = /* @__PURE__ */ ns();
2363
2363
  if (e)
2364
2364
  try {
2365
2365
  e([], "length");
@@ -2368,10 +2368,10 @@ function ot() {
2368
2368
  }
2369
2369
  return Lt = e, Lt;
2370
2370
  }
2371
- var Ut, jn;
2371
+ var Ut, wn;
2372
2372
  function at() {
2373
- if (jn) return Ut;
2374
- jn = 1;
2373
+ if (wn) return Ut;
2374
+ wn = 1;
2375
2375
  var e = Object.defineProperty || !1;
2376
2376
  if (e)
2377
2377
  try {
@@ -2381,9 +2381,9 @@ function at() {
2381
2381
  }
2382
2382
  return Ut = e, Ut;
2383
2383
  }
2384
- var Ft, wn;
2385
- function rs() {
2386
- return wn || (wn = 1, Ft = function() {
2384
+ var Ft, Sn;
2385
+ function os() {
2386
+ return Sn || (Sn = 1, Ft = function() {
2387
2387
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2388
2388
  return !1;
2389
2389
  if (typeof Symbol.iterator == "symbol")
@@ -2411,30 +2411,30 @@ function rs() {
2411
2411
  return !0;
2412
2412
  }), Ft;
2413
2413
  }
2414
- var _t, Sn;
2415
- function ns() {
2416
- if (Sn) return _t;
2417
- Sn = 1;
2418
- var e = typeof Symbol < "u" && Symbol, r = rs();
2414
+ var _t, On;
2415
+ function as() {
2416
+ if (On) return _t;
2417
+ On = 1;
2418
+ var e = typeof Symbol < "u" && Symbol, r = os();
2419
2419
  return _t = function() {
2420
2420
  return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : r();
2421
2421
  }, _t;
2422
2422
  }
2423
- var Bt, On;
2424
- function uo() {
2425
- return On || (On = 1, Bt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Bt;
2423
+ var Bt, Tn;
2424
+ function po() {
2425
+ return Tn || (Tn = 1, Bt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Bt;
2426
2426
  }
2427
- var Ht, Tn;
2428
- function fo() {
2429
- if (Tn) return Ht;
2430
- Tn = 1;
2431
- var e = /* @__PURE__ */ lo();
2427
+ var Ht, Pn;
2428
+ function ho() {
2429
+ if (Pn) return Ht;
2430
+ Pn = 1;
2431
+ var e = /* @__PURE__ */ uo();
2432
2432
  return Ht = e.getPrototypeOf || null, Ht;
2433
2433
  }
2434
- var Mt, Pn;
2435
- function os() {
2436
- if (Pn) return Mt;
2437
- Pn = 1;
2434
+ var Mt, Cn;
2435
+ function is() {
2436
+ if (Cn) return Mt;
2437
+ Cn = 1;
2438
2438
  var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, t = Math.max, o = "[object Function]", s = function(i, c) {
2439
2439
  for (var u = [], f = 0; f < i.length; f += 1)
2440
2440
  u[f] = i[f];
@@ -2476,48 +2476,48 @@ function os() {
2476
2476
  return f;
2477
2477
  }, Mt;
2478
2478
  }
2479
- var zt, Cn;
2479
+ var zt, Rn;
2480
2480
  function Je() {
2481
- if (Cn) return zt;
2482
- Cn = 1;
2483
- var e = os();
2481
+ if (Rn) return zt;
2482
+ Rn = 1;
2483
+ var e = is();
2484
2484
  return zt = Function.prototype.bind || e, zt;
2485
2485
  }
2486
- var Gt, Rn;
2487
- function wr() {
2488
- return Rn || (Rn = 1, Gt = Function.prototype.call), Gt;
2489
- }
2490
- var Wt, qn;
2486
+ var Gt, qn;
2491
2487
  function Sr() {
2492
- return qn || (qn = 1, Wt = Function.prototype.apply), Wt;
2488
+ return qn || (qn = 1, Gt = Function.prototype.call), Gt;
2493
2489
  }
2494
- var Jt, Nn;
2495
- function as() {
2496
- return Nn || (Nn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
2490
+ var Wt, Nn;
2491
+ function Or() {
2492
+ return Nn || (Nn = 1, Wt = Function.prototype.apply), Wt;
2497
2493
  }
2498
- var Vt, kn;
2499
- function po() {
2500
- if (kn) return Vt;
2501
- kn = 1;
2502
- var e = Je(), r = Sr(), t = wr(), o = as();
2503
- return Vt = o || e.call(t, r), Vt;
2494
+ var Jt, kn;
2495
+ function ss() {
2496
+ return kn || (kn = 1, Jt = typeof Reflect < "u" && Reflect && Reflect.apply), Jt;
2504
2497
  }
2505
- var Dt, En;
2506
- function ho() {
2507
- if (En) return Dt;
2498
+ var Vt, En;
2499
+ function yo() {
2500
+ if (En) return Vt;
2508
2501
  En = 1;
2509
- var e = Je(), r = /* @__PURE__ */ We(), t = wr(), o = po();
2502
+ var e = Je(), r = Or(), t = Sr(), o = ss();
2503
+ return Vt = o || e.call(t, r), Vt;
2504
+ }
2505
+ var Dt, An;
2506
+ function mo() {
2507
+ if (An) return Dt;
2508
+ An = 1;
2509
+ var e = Je(), r = /* @__PURE__ */ We(), t = Sr(), o = yo();
2510
2510
  return Dt = function(l) {
2511
2511
  if (l.length < 1 || typeof l[0] != "function")
2512
2512
  throw new r("a function is required");
2513
2513
  return o(e, t, l);
2514
2514
  }, Dt;
2515
2515
  }
2516
- var Qt, An;
2517
- function is() {
2518
- if (An) return Qt;
2519
- An = 1;
2520
- var e = ho(), r = /* @__PURE__ */ ot(), t;
2516
+ var Qt, In;
2517
+ function ls() {
2518
+ if (In) return Qt;
2519
+ In = 1;
2520
+ var e = mo(), r = /* @__PURE__ */ ot(), t;
2521
2521
  try {
2522
2522
  t = /** @type {{ __proto__?: typeof Array.prototype }} */
2523
2523
  [].__proto__ === Array.prototype;
@@ -2537,11 +2537,11 @@ function is() {
2537
2537
  }
2538
2538
  ) : !1, Qt;
2539
2539
  }
2540
- var Kt, In;
2541
- function ss() {
2542
- if (In) return Kt;
2543
- In = 1;
2544
- var e = uo(), r = fo(), t = /* @__PURE__ */ is();
2540
+ var Kt, Ln;
2541
+ function cs() {
2542
+ if (Ln) return Kt;
2543
+ Ln = 1;
2544
+ var e = po(), r = ho(), t = /* @__PURE__ */ ls();
2545
2545
  return Kt = e ? function(s) {
2546
2546
  return e(s);
2547
2547
  } : r ? function(s) {
@@ -2552,18 +2552,18 @@ function ss() {
2552
2552
  return t(s);
2553
2553
  } : null, Kt;
2554
2554
  }
2555
- var Yt, Ln;
2556
- function ls() {
2557
- if (Ln) return Yt;
2558
- Ln = 1;
2555
+ var Yt, Un;
2556
+ function us() {
2557
+ if (Un) return Yt;
2558
+ Un = 1;
2559
2559
  var e = Function.prototype.call, r = Object.prototype.hasOwnProperty, t = Je();
2560
2560
  return Yt = t.call(e, r), Yt;
2561
2561
  }
2562
- var Xt, Un;
2563
- function Or() {
2564
- if (Un) return Xt;
2565
- Un = 1;
2566
- var e, r = /* @__PURE__ */ lo(), t = /* @__PURE__ */ Mi(), o = /* @__PURE__ */ zi(), s = /* @__PURE__ */ Gi(), l = /* @__PURE__ */ Wi(), n = /* @__PURE__ */ co(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Ji(), c = /* @__PURE__ */ Vi(), u = /* @__PURE__ */ Di(), f = /* @__PURE__ */ Qi(), h = /* @__PURE__ */ Ki(), y = /* @__PURE__ */ Yi(), $ = /* @__PURE__ */ Xi(), x = /* @__PURE__ */ es(), p = Function, m = function(J) {
2562
+ var Xt, Fn;
2563
+ function Tr() {
2564
+ if (Fn) return Xt;
2565
+ Fn = 1;
2566
+ var e, r = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Gi(), o = /* @__PURE__ */ Wi(), s = /* @__PURE__ */ Ji(), l = /* @__PURE__ */ Vi(), n = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Di(), c = /* @__PURE__ */ Qi(), u = /* @__PURE__ */ Ki(), f = /* @__PURE__ */ Yi(), h = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), $ = /* @__PURE__ */ es(), x = /* @__PURE__ */ rs(), p = Function, m = function(J) {
2567
2567
  try {
2568
2568
  return p('"use strict"; return (' + J + ").constructor;")();
2569
2569
  } catch {
@@ -2580,7 +2580,7 @@ function Or() {
2580
2580
  return T;
2581
2581
  }
2582
2582
  }
2583
- }() : T, S = ns()(), b = ss(), q = fo(), I = uo(), k = Sr(), B = wr(), P = {}, ae = typeof Uint8Array > "u" || !b ? e : b(Uint8Array), H = {
2583
+ }() : T, S = as()(), b = cs(), q = ho(), L = po(), E = Or(), B = Sr(), P = {}, ae = typeof Uint8Array > "u" || !b ? e : b(Uint8Array), H = {
2584
2584
  __proto__: null,
2585
2585
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
2586
2586
  "%Array%": Array,
@@ -2651,7 +2651,7 @@ function Or() {
2651
2651
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
2652
2652
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
2653
2653
  "%Function.prototype.call%": B,
2654
- "%Function.prototype.apply%": k,
2654
+ "%Function.prototype.apply%": E,
2655
2655
  "%Object.defineProperty%": O,
2656
2656
  "%Object.getPrototypeOf%": q,
2657
2657
  "%Math.abs%": c,
@@ -2661,7 +2661,7 @@ function Or() {
2661
2661
  "%Math.pow%": y,
2662
2662
  "%Math.round%": $,
2663
2663
  "%Math.sign%": x,
2664
- "%Reflect.getPrototypeOf%": I
2664
+ "%Reflect.getPrototypeOf%": L
2665
2665
  };
2666
2666
  if (b)
2667
2667
  try {
@@ -2739,7 +2739,7 @@ function Or() {
2739
2739
  "%URIErrorPrototype%": ["URIError", "prototype"],
2740
2740
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2741
2741
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2742
- }, E = Je(), re = /* @__PURE__ */ ls(), R = E.call(B, Array.prototype.concat), N = E.call(k, Array.prototype.splice), U = E.call(B, String.prototype.replace), C = E.call(B, String.prototype.slice), L = E.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(A) {
2742
+ }, k = Je(), re = /* @__PURE__ */ us(), R = k.call(B, Array.prototype.concat), N = k.call(E, Array.prototype.splice), U = k.call(B, String.prototype.replace), C = k.call(B, String.prototype.slice), I = k.call(B, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, z = /\\(\\)?/g, K = function(A) {
2743
2743
  var F = C(A, 0, 1), _ = C(A, -1);
2744
2744
  if (F === "%" && _ !== "%")
2745
2745
  throw new n("invalid intrinsic syntax, expected closing `%`");
@@ -2768,13 +2768,13 @@ function Or() {
2768
2768
  throw new a("intrinsic name must be a non-empty string");
2769
2769
  if (arguments.length > 1 && typeof F != "boolean")
2770
2770
  throw new a('"allowMissing" argument must be a boolean');
2771
- if (L(/^%?[^%]*%?$/, A) === null)
2771
+ if (I(/^%?[^%]*%?$/, A) === null)
2772
2772
  throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2773
2773
  var _ = K(A), Q = _.length > 0 ? _[0] : "", G = ne("%" + Q + "%", F), Y = G.name, oe = G.value, he = !1, we = G.alias;
2774
2774
  we && (Q = we[0], N(_, R([0, 1], we)));
2775
- for (var Re = 1, Se = !0; Re < _.length; Re += 1) {
2776
- var ye = _[Re], qe = C(ye, 0, 1), Ne = C(ye, -1);
2777
- if ((qe === '"' || qe === "'" || qe === "`" || Ne === '"' || Ne === "'" || Ne === "`") && qe !== Ne)
2775
+ for (var qe = 1, Se = !0; qe < _.length; qe += 1) {
2776
+ var ye = _[qe], Ne = C(ye, 0, 1), ke = C(ye, -1);
2777
+ if ((Ne === '"' || Ne === "'" || Ne === "`" || ke === '"' || ke === "'" || ke === "`") && Ne !== ke)
2778
2778
  throw new n("property names with quotes must have matching quotes");
2779
2779
  if ((ye === "constructor" || !Se) && (he = !0), Q += "." + ye, Y = "%" + Q + "%", re(H, Y))
2780
2780
  oe = H[Y];
@@ -2784,7 +2784,7 @@ function Or() {
2784
2784
  throw new a("base intrinsic for " + A + " exists, but the property is not available.");
2785
2785
  return;
2786
2786
  }
2787
- if (v && Re + 1 >= _.length) {
2787
+ if (v && qe + 1 >= _.length) {
2788
2788
  var Oe = v(oe, ye);
2789
2789
  Se = !!Oe, Se && "get" in Oe && !("originalValue" in Oe.get) ? oe = Oe.get : oe = oe[ye];
2790
2790
  } else
@@ -2795,11 +2795,11 @@ function Or() {
2795
2795
  return oe;
2796
2796
  }, Xt;
2797
2797
  }
2798
- var Zt = { exports: {} }, er, Fn;
2799
- function cs() {
2800
- if (Fn) return er;
2801
- Fn = 1;
2802
- var e = /* @__PURE__ */ at(), r = /* @__PURE__ */ co(), t = /* @__PURE__ */ We(), o = /* @__PURE__ */ ot();
2798
+ var Zt = { exports: {} }, er, _n;
2799
+ function fs() {
2800
+ if (_n) return er;
2801
+ _n = 1;
2802
+ var e = /* @__PURE__ */ at(), r = /* @__PURE__ */ fo(), t = /* @__PURE__ */ We(), o = /* @__PURE__ */ ot();
2803
2803
  return er = function(l, n, a) {
2804
2804
  if (!l || typeof l != "object" && typeof l != "function")
2805
2805
  throw new t("`obj` must be an object or a function`");
@@ -2827,10 +2827,10 @@ function cs() {
2827
2827
  throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2828
2828
  }, er;
2829
2829
  }
2830
- var tr, _n;
2831
- function us() {
2832
- if (_n) return tr;
2833
- _n = 1;
2830
+ var tr, Bn;
2831
+ function ps() {
2832
+ if (Bn) return tr;
2833
+ Bn = 1;
2834
2834
  var e = /* @__PURE__ */ at(), r = function() {
2835
2835
  return !!e;
2836
2836
  };
@@ -2844,11 +2844,11 @@ function us() {
2844
2844
  }
2845
2845
  }, tr = r, tr;
2846
2846
  }
2847
- var rr, Bn;
2848
- function fs() {
2849
- if (Bn) return rr;
2850
- Bn = 1;
2851
- var e = /* @__PURE__ */ Or(), r = /* @__PURE__ */ cs(), t = /* @__PURE__ */ us()(), o = /* @__PURE__ */ ot(), s = /* @__PURE__ */ We(), l = e("%Math.floor%");
2847
+ var rr, Hn;
2848
+ function ds() {
2849
+ if (Hn) return rr;
2850
+ Hn = 1;
2851
+ var e = /* @__PURE__ */ Tr(), r = /* @__PURE__ */ fs(), t = /* @__PURE__ */ ps()(), o = /* @__PURE__ */ ot(), s = /* @__PURE__ */ We(), l = e("%Math.floor%");
2852
2852
  return rr = function(a, i) {
2853
2853
  if (typeof a != "function")
2854
2854
  throw new s("`fn` is not a function");
@@ -2874,19 +2874,19 @@ function fs() {
2874
2874
  )), a;
2875
2875
  }, rr;
2876
2876
  }
2877
- var nr, Hn;
2878
- function ps() {
2879
- if (Hn) return nr;
2880
- Hn = 1;
2881
- var e = Je(), r = Sr(), t = po();
2877
+ var nr, Mn;
2878
+ function hs() {
2879
+ if (Mn) return nr;
2880
+ Mn = 1;
2881
+ var e = Je(), r = Or(), t = yo();
2882
2882
  return nr = function() {
2883
2883
  return t(e, r, arguments);
2884
2884
  }, nr;
2885
2885
  }
2886
- var Mn;
2887
- function ds() {
2888
- return Mn || (Mn = 1, function(e) {
2889
- var r = /* @__PURE__ */ fs(), t = /* @__PURE__ */ at(), o = ho(), s = ps();
2886
+ var zn;
2887
+ function ys() {
2888
+ return zn || (zn = 1, function(e) {
2889
+ var r = /* @__PURE__ */ ds(), t = /* @__PURE__ */ at(), o = mo(), s = hs();
2890
2890
  e.exports = function(n) {
2891
2891
  var a = o(arguments), i = n.length - (arguments.length - 1);
2892
2892
  return r(
@@ -2897,30 +2897,30 @@ function ds() {
2897
2897
  }, t ? t(e.exports, "apply", { value: s }) : e.exports.apply = s;
2898
2898
  }(Zt)), Zt.exports;
2899
2899
  }
2900
- var or, zn;
2901
- function hs() {
2902
- if (zn) return or;
2903
- zn = 1;
2904
- var e = /* @__PURE__ */ Or(), r = ds(), t = r(e("String.prototype.indexOf"));
2900
+ var or, Gn;
2901
+ function ms() {
2902
+ if (Gn) return or;
2903
+ Gn = 1;
2904
+ var e = /* @__PURE__ */ Tr(), r = ys(), t = r(e("String.prototype.indexOf"));
2905
2905
  return or = function(s, l) {
2906
2906
  var n = e(s, !!l);
2907
2907
  return typeof n == "function" && t(s, ".prototype.") > -1 ? r(n) : n;
2908
2908
  }, or;
2909
2909
  }
2910
- const ys = /* @__PURE__ */ ha(ya);
2911
- var ar, Gn;
2912
- function ms() {
2913
- if (Gn) return ar;
2914
- Gn = 1;
2915
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, f = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, $ = Boolean.prototype.valueOf, x = Object.prototype.toString, p = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, I = Array.prototype.slice, k = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2910
+ const gs = /* @__PURE__ */ ma(ga);
2911
+ var ar, Wn;
2912
+ function vs() {
2913
+ if (Wn) return ar;
2914
+ Wn = 1;
2915
+ var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, f = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, $ = Boolean.prototype.valueOf, x = Object.prototype.toString, p = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2916
2916
  return j.__proto__;
2917
2917
  } : null);
2918
- function E(j, w) {
2918
+ function k(j, w) {
2919
2919
  if (j === 1 / 0 || j === -1 / 0 || j !== j || j && j > -1e3 && j < 1e3 || S.call(/e/, w))
2920
2920
  return w;
2921
2921
  var X = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2922
2922
  if (typeof j == "number") {
2923
- var ee = j < 0 ? -k(-j) : k(j);
2923
+ var ee = j < 0 ? -E(-j) : E(j);
2924
2924
  if (ee !== j) {
2925
2925
  var ie = String(ee), M = v.call(w, ie.length + 1);
2926
2926
  return O.call(ie, X, "$&_") + "." + O.call(O.call(M, /([0-9]{3})/g, "$&_"), /_$/, "");
@@ -2928,7 +2928,7 @@ function ms() {
2928
2928
  }
2929
2929
  return O.call(w, X, "$&_");
2930
2930
  }
2931
- var re = ys, R = re.custom, N = F(R) ? R : null;
2931
+ var re = gs, R = re.custom, N = F(R) ? R : null;
2932
2932
  ar = function j(w, X, ee, ie) {
2933
2933
  var M = X || {};
2934
2934
  if (G(M, "quoteStyle") && M.quoteStyle !== "single" && M.quoteStyle !== "double")
@@ -2955,47 +2955,47 @@ function ms() {
2955
2955
  if (w === 0)
2956
2956
  return 1 / 0 / w > 0 ? "0" : "-0";
2957
2957
  var de = String(w);
2958
- return Te ? E(w, de) : de;
2958
+ return Te ? k(w, de) : de;
2959
2959
  }
2960
2960
  if (typeof w == "bigint") {
2961
2961
  var je = String(w) + "n";
2962
- return Te ? E(w, je) : je;
2962
+ return Te ? k(w, je) : je;
2963
2963
  }
2964
2964
  var lt = typeof M.depth > "u" ? 5 : M.depth;
2965
2965
  if (typeof ee > "u" && (ee = 0), ee >= lt && lt > 0 && typeof w == "object")
2966
- return L(w) ? "[Array]" : "[Object]";
2967
- var ke = So(M, ee);
2966
+ return I(w) ? "[Array]" : "[Object]";
2967
+ var Ee = To(M, ee);
2968
2968
  if (typeof ie > "u")
2969
2969
  ie = [];
2970
2970
  else if (he(ie, w) >= 0)
2971
2971
  return "[Circular]";
2972
- function me(Ee, Qe, To) {
2973
- if (Qe && (ie = I.call(ie), ie.push(Qe)), To) {
2974
- var Ur = {
2972
+ function me(Ae, Qe, Co) {
2973
+ if (Qe && (ie = L.call(ie), ie.push(Qe)), Co) {
2974
+ var Fr = {
2975
2975
  depth: M.depth
2976
2976
  };
2977
- return G(M, "quoteStyle") && (Ur.quoteStyle = M.quoteStyle), j(Ee, Ur, ee + 1, ie);
2977
+ return G(M, "quoteStyle") && (Fr.quoteStyle = M.quoteStyle), j(Ae, Fr, ee + 1, ie);
2978
2978
  }
2979
- return j(Ee, M, ee + 1, ie);
2979
+ return j(Ae, M, ee + 1, ie);
2980
2980
  }
2981
2981
  if (typeof w == "function" && !z(w)) {
2982
- var qr = oe(w), Nr = Ve(w, me);
2983
- return "[Function" + (qr ? ": " + qr : " (anonymous)") + "]" + (Nr.length > 0 ? " { " + q.call(Nr, ", ") + " }" : "");
2982
+ var Nr = oe(w), kr = Ve(w, me);
2983
+ return "[Function" + (Nr ? ": " + Nr : " (anonymous)") + "]" + (kr.length > 0 ? " { " + q.call(kr, ", ") + " }" : "");
2984
2984
  }
2985
2985
  if (F(w)) {
2986
- var kr = H ? O.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(w);
2987
- return typeof w == "object" && !H ? Le(kr) : kr;
2986
+ var Er = H ? O.call(String(w), /^(Symbol\(.*\))_[^)]*$/, "$1") : ae.call(w);
2987
+ return typeof w == "object" && !H ? Ue(Er) : Er;
2988
2988
  }
2989
- if (Ne(w)) {
2990
- for (var Ue = "<" + d.call(String(w.nodeName)), ct = w.attributes || [], De = 0; De < ct.length; De++)
2991
- Ue += " " + ct[De].name + "=" + U(C(ct[De].value), "double", M);
2992
- return Ue += ">", w.childNodes && w.childNodes.length && (Ue += "..."), Ue += "</" + d.call(String(w.nodeName)) + ">", Ue;
2989
+ if (ke(w)) {
2990
+ for (var Fe = "<" + d.call(String(w.nodeName)), ct = w.attributes || [], De = 0; De < ct.length; De++)
2991
+ Fe += " " + ct[De].name + "=" + U(C(ct[De].value), "double", M);
2992
+ return Fe += ">", w.childNodes && w.childNodes.length && (Fe += "..."), Fe += "</" + d.call(String(w.nodeName)) + ">", Fe;
2993
2993
  }
2994
- if (L(w)) {
2994
+ if (I(w)) {
2995
2995
  if (w.length === 0)
2996
2996
  return "[]";
2997
2997
  var ut = Ve(w, me);
2998
- return ke && !wo(ut) ? "[" + st(ut, ke) + "]" : "[ " + q.call(ut, ", ") + " ]";
2998
+ return Ee && !Oo(ut) ? "[" + st(ut, Ee) + "]" : "[ " + q.call(ut, ", ") + " ]";
2999
2999
  }
3000
3000
  if (K(w)) {
3001
3001
  var ft = Ve(w, me);
@@ -3008,38 +3008,38 @@ function ms() {
3008
3008
  return w.inspect();
3009
3009
  }
3010
3010
  if (we(w)) {
3011
- var Er = [];
3012
- return o && o.call(w, function(Ee, Qe) {
3013
- Er.push(me(Qe, w, !0) + " => " + me(Ee, w));
3014
- }), Rr("Map", t.call(w), Er, ke);
3011
+ var Ar = [];
3012
+ return o && o.call(w, function(Ae, Qe) {
3013
+ Ar.push(me(Qe, w, !0) + " => " + me(Ae, w));
3014
+ }), qr("Map", t.call(w), Ar, Ee);
3015
3015
  }
3016
3016
  if (ye(w)) {
3017
- var Ar = [];
3018
- return a && a.call(w, function(Ee) {
3019
- Ar.push(me(Ee, w));
3020
- }), Rr("Set", n.call(w), Ar, ke);
3017
+ var Ir = [];
3018
+ return a && a.call(w, function(Ae) {
3019
+ Ir.push(me(Ae, w));
3020
+ }), qr("Set", n.call(w), Ir, Ee);
3021
3021
  }
3022
- if (Re(w))
3023
- return it("WeakMap");
3024
3022
  if (qe(w))
3023
+ return it("WeakMap");
3024
+ if (Ne(w))
3025
3025
  return it("WeakSet");
3026
3026
  if (Se(w))
3027
3027
  return it("WeakRef");
3028
3028
  if (J(w))
3029
- return Le(me(Number(w)));
3029
+ return Ue(me(Number(w)));
3030
3030
  if (_(w))
3031
- return Le(me(B.call(w)));
3031
+ return Ue(me(B.call(w)));
3032
3032
  if (A(w))
3033
- return Le($.call(w));
3033
+ return Ue($.call(w));
3034
3034
  if (ne(w))
3035
- return Le(me(String(w)));
3035
+ return Ue(me(String(w)));
3036
3036
  if (typeof window < "u" && w === window)
3037
3037
  return "{ [object Window] }";
3038
3038
  if (typeof globalThis < "u" && w === globalThis || typeof Ze < "u" && w === Ze)
3039
3039
  return "{ [object globalThis] }";
3040
3040
  if (!W(w) && !z(w)) {
3041
- var pt = Ve(w, me), Ir = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, dt = w instanceof Object ? "" : "null prototype", Lr = !Ir && D && Object(w) === w && D in w ? v.call(Y(w), 8, -1) : dt ? "Object" : "", Oo = Ir || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", ht = Oo + (Lr || dt ? "[" + q.call(b.call([], Lr || [], dt || []), ": ") + "] " : "");
3042
- return pt.length === 0 ? ht + "{}" : ke ? ht + "{" + st(pt, ke) + "}" : ht + "{ " + q.call(pt, ", ") + " }";
3041
+ var pt = Ve(w, me), Lr = Z ? Z(w) === Object.prototype : w instanceof Object || w.constructor === Object, dt = w instanceof Object ? "" : "null prototype", Ur = !Lr && D && Object(w) === w && D in w ? v.call(Y(w), 8, -1) : dt ? "Object" : "", Po = Lr || typeof w.constructor != "function" ? "" : w.constructor.name ? w.constructor.name + " " : "", ht = Po + (Ur || dt ? "[" + q.call(b.call([], Ur || [], dt || []), ": ") + "] " : "");
3042
+ return pt.length === 0 ? ht + "{}" : Ee ? ht + "{" + st(pt, Ee) + "}" : ht + "{ " + q.call(pt, ", ") + " }";
3043
3043
  }
3044
3044
  return String(w);
3045
3045
  };
@@ -3050,7 +3050,7 @@ function ms() {
3050
3050
  function C(j) {
3051
3051
  return O.call(String(j), /"/g, "&quot;");
3052
3052
  }
3053
- function L(j) {
3053
+ function I(j) {
3054
3054
  return Y(j) === "[object Array]" && (!D || !(typeof j == "object" && D in j));
3055
3055
  }
3056
3056
  function W(j) {
@@ -3131,7 +3131,7 @@ function ms() {
3131
3131
  }
3132
3132
  return !1;
3133
3133
  }
3134
- function Re(j) {
3134
+ function qe(j) {
3135
3135
  if (!c || !j || typeof j != "object")
3136
3136
  return !1;
3137
3137
  try {
@@ -3170,7 +3170,7 @@ function ms() {
3170
3170
  }
3171
3171
  return !1;
3172
3172
  }
3173
- function qe(j) {
3173
+ function Ne(j) {
3174
3174
  if (!f || !j || typeof j != "object")
3175
3175
  return !1;
3176
3176
  try {
@@ -3185,7 +3185,7 @@ function ms() {
3185
3185
  }
3186
3186
  return !1;
3187
3187
  }
3188
- function Ne(j) {
3188
+ function ke(j) {
3189
3189
  return !j || typeof j != "object" ? !1 : typeof HTMLElement < "u" && j instanceof HTMLElement ? !0 : typeof j.nodeName == "string" && typeof j.getAttribute == "function";
3190
3190
  }
3191
3191
  function Oe(j, w) {
@@ -3193,10 +3193,10 @@ function ms() {
3193
3193
  var X = j.length - w.maxStringLength, ee = "... " + X + " more character" + (X > 1 ? "s" : "");
3194
3194
  return Oe(v.call(j, 0, w.maxStringLength), w) + ee;
3195
3195
  }
3196
- var ie = O.call(O.call(j, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, jo);
3196
+ var ie = O.call(O.call(j, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, So);
3197
3197
  return U(ie, "single", w);
3198
3198
  }
3199
- function jo(j) {
3199
+ function So(j) {
3200
3200
  var w = j.charCodeAt(0), X = {
3201
3201
  8: "b",
3202
3202
  9: "t",
@@ -3206,24 +3206,24 @@ function ms() {
3206
3206
  }[w];
3207
3207
  return X ? "\\" + X : "\\x" + (w < 16 ? "0" : "") + T.call(w.toString(16));
3208
3208
  }
3209
- function Le(j) {
3209
+ function Ue(j) {
3210
3210
  return "Object(" + j + ")";
3211
3211
  }
3212
3212
  function it(j) {
3213
3213
  return j + " { ? }";
3214
3214
  }
3215
- function Rr(j, w, X, ee) {
3215
+ function qr(j, w, X, ee) {
3216
3216
  var ie = ee ? st(X, ee) : q.call(X, ", ");
3217
3217
  return j + " (" + w + ") {" + ie + "}";
3218
3218
  }
3219
- function wo(j) {
3219
+ function Oo(j) {
3220
3220
  for (var w = 0; w < j.length; w++)
3221
3221
  if (he(j[w], `
3222
3222
  `) >= 0)
3223
3223
  return !1;
3224
3224
  return !0;
3225
3225
  }
3226
- function So(j, w) {
3226
+ function To(j, w) {
3227
3227
  var X;
3228
3228
  if (j.indent === " ")
3229
3229
  X = " ";
@@ -3245,7 +3245,7 @@ function ms() {
3245
3245
  ` + w.prev;
3246
3246
  }
3247
3247
  function Ve(j, w) {
3248
- var X = L(j), ee = [];
3248
+ var X = I(j), ee = [];
3249
3249
  if (X) {
3250
3250
  ee.length = j.length;
3251
3251
  for (var ie = 0; ie < j.length; ie++)
@@ -3266,11 +3266,11 @@ function ms() {
3266
3266
  }
3267
3267
  return ar;
3268
3268
  }
3269
- var ir, Wn;
3270
- function gs() {
3271
- if (Wn) return ir;
3272
- Wn = 1;
3273
- var e = /* @__PURE__ */ Or(), r = hs(), t = /* @__PURE__ */ ms(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), f = r("Map.prototype.has", !0), h = function(p, m) {
3269
+ var ir, Jn;
3270
+ function bs() {
3271
+ if (Jn) return ir;
3272
+ Jn = 1;
3273
+ var e = /* @__PURE__ */ Tr(), r = ms(), t = /* @__PURE__ */ vs(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), f = r("Map.prototype.has", !0), h = function(p, m) {
3274
3274
  for (var v = p, O; (O = v.next) !== null; v = O)
3275
3275
  if (O.key === m)
3276
3276
  return v.next = O.next, O.next = /** @type {NonNullable<typeof list.next>} */
@@ -3324,10 +3324,10 @@ function gs() {
3324
3324
  return T;
3325
3325
  }, ir;
3326
3326
  }
3327
- var sr, Jn;
3328
- function Tr() {
3329
- if (Jn) return sr;
3330
- Jn = 1;
3327
+ var sr, Vn;
3328
+ function Pr() {
3329
+ if (Vn) return sr;
3330
+ Vn = 1;
3331
3331
  var e = String.prototype.replace, r = /%20/g, t = {
3332
3332
  RFC1738: "RFC1738",
3333
3333
  RFC3986: "RFC3986"
@@ -3346,11 +3346,11 @@ function Tr() {
3346
3346
  RFC3986: t.RFC3986
3347
3347
  }, sr;
3348
3348
  }
3349
- var lr, Vn;
3350
- function yo() {
3351
- if (Vn) return lr;
3352
- Vn = 1;
3353
- var e = /* @__PURE__ */ Tr(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
3349
+ var lr, Dn;
3350
+ function go() {
3351
+ if (Dn) return lr;
3352
+ Dn = 1;
3353
+ var e = /* @__PURE__ */ Pr(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
3354
3354
  for (var p = [], m = 0; m < 256; ++m)
3355
3355
  p.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
3356
3356
  return p;
@@ -3414,34 +3414,34 @@ function yo() {
3414
3414
  return "%26%23" + parseInt(ae.slice(2), 16) + "%3B";
3415
3415
  });
3416
3416
  for (var b = "", q = 0; q < S.length; q += c) {
3417
- for (var I = S.length >= c ? S.slice(q, q + c) : S, k = [], B = 0; B < I.length; ++B) {
3418
- var P = I.charCodeAt(B);
3417
+ for (var L = S.length >= c ? S.slice(q, q + c) : S, E = [], B = 0; B < L.length; ++B) {
3418
+ var P = L.charCodeAt(B);
3419
3419
  if (P === 45 || P === 46 || P === 95 || P === 126 || P >= 48 && P <= 57 || P >= 65 && P <= 90 || P >= 97 && P <= 122 || d === e.RFC1738 && (P === 40 || P === 41)) {
3420
- k[k.length] = I.charAt(B);
3420
+ E[E.length] = L.charAt(B);
3421
3421
  continue;
3422
3422
  }
3423
3423
  if (P < 128) {
3424
- k[k.length] = o[P];
3424
+ E[E.length] = o[P];
3425
3425
  continue;
3426
3426
  }
3427
3427
  if (P < 2048) {
3428
- k[k.length] = o[192 | P >> 6] + o[128 | P & 63];
3428
+ E[E.length] = o[192 | P >> 6] + o[128 | P & 63];
3429
3429
  continue;
3430
3430
  }
3431
3431
  if (P < 55296 || P >= 57344) {
3432
- k[k.length] = o[224 | P >> 12] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3432
+ E[E.length] = o[224 | P >> 12] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3433
3433
  continue;
3434
3434
  }
3435
- B += 1, P = 65536 + ((P & 1023) << 10 | I.charCodeAt(B) & 1023), k[k.length] = o[240 | P >> 18] + o[128 | P >> 12 & 63] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3435
+ B += 1, P = 65536 + ((P & 1023) << 10 | L.charCodeAt(B) & 1023), E[E.length] = o[240 | P >> 18] + o[128 | P >> 12 & 63] + o[128 | P >> 6 & 63] + o[128 | P & 63];
3436
3436
  }
3437
- b += k.join("");
3437
+ b += E.join("");
3438
3438
  }
3439
3439
  return b;
3440
3440
  }, f = function(m) {
3441
3441
  for (var v = [{ obj: { o: m }, prop: "o" }], O = [], T = 0; T < v.length; ++T)
3442
3442
  for (var d = v[T], S = d.obj[d.prop], b = Object.keys(S), q = 0; q < b.length; ++q) {
3443
- var I = b[q], k = S[I];
3444
- typeof k == "object" && k !== null && O.indexOf(k) === -1 && (v.push({ obj: S, prop: I }), O.push(k));
3443
+ var L = b[q], E = S[L];
3444
+ typeof E == "object" && E !== null && O.indexOf(E) === -1 && (v.push({ obj: S, prop: L }), O.push(E));
3445
3445
  }
3446
3446
  return s(v), m;
3447
3447
  }, h = function(m) {
@@ -3471,11 +3471,11 @@ function yo() {
3471
3471
  merge: n
3472
3472
  }, lr;
3473
3473
  }
3474
- var cr, Dn;
3475
- function vs() {
3476
- if (Dn) return cr;
3477
- Dn = 1;
3478
- var e = gs(), r = /* @__PURE__ */ yo(), t = /* @__PURE__ */ Tr(), o = Object.prototype.hasOwnProperty, s = {
3474
+ var cr, Qn;
3475
+ function xs() {
3476
+ if (Qn) return cr;
3477
+ Qn = 1;
3478
+ var e = bs(), r = /* @__PURE__ */ go(), t = /* @__PURE__ */ Pr(), o = Object.prototype.hasOwnProperty, s = {
3479
3479
  brackets: function(p) {
3480
3480
  return p + "[]";
3481
3481
  },
@@ -3511,8 +3511,8 @@ function vs() {
3511
3511
  strictNullHandling: !1
3512
3512
  }, f = function(p) {
3513
3513
  return typeof p == "string" || typeof p == "number" || typeof p == "boolean" || typeof p == "symbol" || typeof p == "bigint";
3514
- }, h = {}, y = function x(p, m, v, O, T, d, S, b, q, I, k, B, P, ae, H, D, se, Z) {
3515
- for (var E = p, re = Z, R = 0, N = !1; (re = re.get(h)) !== void 0 && !N; ) {
3514
+ }, h = {}, y = function x(p, m, v, O, T, d, S, b, q, L, E, B, P, ae, H, D, se, Z) {
3515
+ for (var k = p, re = Z, R = 0, N = !1; (re = re.get(h)) !== void 0 && !N; ) {
3516
3516
  var U = re.get(p);
3517
3517
  if (R += 1, typeof U < "u") {
3518
3518
  if (U === R)
@@ -3521,42 +3521,42 @@ function vs() {
3521
3521
  }
3522
3522
  typeof re.get(h) > "u" && (R = 0);
3523
3523
  }
3524
- if (typeof I == "function" ? E = I(m, E) : E instanceof Date ? E = P(E) : v === "comma" && l(E) && (E = r.maybeMap(E, function(Y) {
3524
+ if (typeof L == "function" ? k = L(m, k) : k instanceof Date ? k = P(k) : v === "comma" && l(k) && (k = r.maybeMap(k, function(Y) {
3525
3525
  return Y instanceof Date ? P(Y) : Y;
3526
- })), E === null) {
3526
+ })), k === null) {
3527
3527
  if (d)
3528
3528
  return q && !D ? q(m, u.encoder, se, "key", ae) : m;
3529
- E = "";
3529
+ k = "";
3530
3530
  }
3531
- if (f(E) || r.isBuffer(E)) {
3531
+ if (f(k) || r.isBuffer(k)) {
3532
3532
  if (q) {
3533
3533
  var C = D ? m : q(m, u.encoder, se, "key", ae);
3534
- return [H(C) + "=" + H(q(E, u.encoder, se, "value", ae))];
3534
+ return [H(C) + "=" + H(q(k, u.encoder, se, "value", ae))];
3535
3535
  }
3536
- return [H(m) + "=" + H(String(E))];
3536
+ return [H(m) + "=" + H(String(k))];
3537
3537
  }
3538
- var L = [];
3539
- if (typeof E > "u")
3540
- return L;
3538
+ var I = [];
3539
+ if (typeof k > "u")
3540
+ return I;
3541
3541
  var W;
3542
- if (v === "comma" && l(E))
3543
- D && q && (E = r.maybeMap(E, q)), W = [{ value: E.length > 0 ? E.join(",") || null : void 0 }];
3544
- else if (l(I))
3545
- W = I;
3542
+ if (v === "comma" && l(k))
3543
+ D && q && (k = r.maybeMap(k, q)), W = [{ value: k.length > 0 ? k.join(",") || null : void 0 }];
3544
+ else if (l(L))
3545
+ W = L;
3546
3546
  else {
3547
- var z = Object.keys(E);
3548
- W = k ? z.sort(k) : z;
3547
+ var z = Object.keys(k);
3548
+ W = E ? z.sort(E) : z;
3549
3549
  }
3550
- var K = b ? m.replace(/\./g, "%2E") : m, ne = O && l(E) && E.length === 1 ? K + "[]" : K;
3551
- if (T && l(E) && E.length === 0)
3550
+ var K = b ? m.replace(/\./g, "%2E") : m, ne = O && l(k) && k.length === 1 ? K + "[]" : K;
3551
+ if (T && l(k) && k.length === 0)
3552
3552
  return ne + "[]";
3553
3553
  for (var J = 0; J < W.length; ++J) {
3554
- var A = W[J], F = typeof A == "object" && typeof A.value < "u" ? A.value : E[A];
3554
+ var A = W[J], F = typeof A == "object" && typeof A.value < "u" ? A.value : k[A];
3555
3555
  if (!(S && F === null)) {
3556
- var _ = B && b ? A.replace(/\./g, "%2E") : A, Q = l(E) ? typeof v == "function" ? v(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3556
+ var _ = B && b ? A.replace(/\./g, "%2E") : A, Q = l(k) ? typeof v == "function" ? v(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3557
3557
  Z.set(p, R);
3558
3558
  var G = e();
3559
- G.set(h, Z), a(L, x(
3559
+ G.set(h, Z), a(I, x(
3560
3560
  F,
3561
3561
  Q,
3562
3562
  v,
@@ -3565,9 +3565,9 @@ function vs() {
3565
3565
  d,
3566
3566
  S,
3567
3567
  b,
3568
- v === "comma" && D && l(E) ? null : q,
3569
- I,
3570
- k,
3568
+ v === "comma" && D && l(k) ? null : q,
3569
+ L,
3570
+ E,
3571
3571
  B,
3572
3572
  P,
3573
3573
  ae,
@@ -3578,7 +3578,7 @@ function vs() {
3578
3578
  ));
3579
3579
  }
3580
3580
  }
3581
- return L;
3581
+ return I;
3582
3582
  }, $ = function(p) {
3583
3583
  if (!p)
3584
3584
  return u;
@@ -3633,11 +3633,11 @@ function vs() {
3633
3633
  return "";
3634
3634
  var S = s[v.arrayFormat], b = S === "comma" && v.commaRoundTrip;
3635
3635
  O || (O = Object.keys(m)), v.sort && O.sort(v.sort);
3636
- for (var q = e(), I = 0; I < O.length; ++I) {
3637
- var k = O[I];
3638
- v.skipNulls && m[k] === null || a(d, y(
3639
- m[k],
3640
- k,
3636
+ for (var q = e(), L = 0; L < O.length; ++L) {
3637
+ var E = O[L];
3638
+ v.skipNulls && m[E] === null || a(d, y(
3639
+ m[E],
3640
+ E,
3641
3641
  S,
3642
3642
  b,
3643
3643
  v.allowEmptyArrays,
@@ -3660,11 +3660,11 @@ function vs() {
3660
3660
  return v.charsetSentinel && (v.charset === "iso-8859-1" ? P += "utf8=%26%2310003%3B&" : P += "utf8=%E2%9C%93&"), B.length > 0 ? P + B : "";
3661
3661
  }, cr;
3662
3662
  }
3663
- var ur, Qn;
3664
- function bs() {
3665
- if (Qn) return ur;
3666
- Qn = 1;
3667
- var e = /* @__PURE__ */ yo(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
3663
+ var ur, Kn;
3664
+ function $s() {
3665
+ if (Kn) return ur;
3666
+ Kn = 1;
3667
+ var e = /* @__PURE__ */ go(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = {
3668
3668
  allowDots: !1,
3669
3669
  allowEmptyArrays: !1,
3670
3670
  allowPrototypes: !1,
@@ -3700,15 +3700,15 @@ function bs() {
3700
3700
  v[T].indexOf("utf8=") === 0 && (v[T] === a ? d = "utf-8" : v[T] === n && (d = "iso-8859-1"), O = T, T = v.length);
3701
3701
  for (T = 0; T < v.length; ++T)
3702
3702
  if (T !== O) {
3703
- var S = v[T], b = S.indexOf("]="), q = b === -1 ? S.indexOf("=") : b + 1, I, k;
3704
- q === -1 ? (I = $.decoder(S, o.decoder, d, "key"), k = $.strictNullHandling ? null : "") : (I = $.decoder(S.slice(0, q), o.decoder, d, "key"), k = e.maybeMap(
3703
+ var S = v[T], b = S.indexOf("]="), q = b === -1 ? S.indexOf("=") : b + 1, L, E;
3704
+ q === -1 ? (L = $.decoder(S, o.decoder, d, "key"), E = $.strictNullHandling ? null : "") : (L = $.decoder(S.slice(0, q), o.decoder, d, "key"), E = e.maybeMap(
3705
3705
  l(S.slice(q + 1), $),
3706
3706
  function(P) {
3707
3707
  return $.decoder(P, o.decoder, d, "value");
3708
3708
  }
3709
- )), k && $.interpretNumericEntities && d === "iso-8859-1" && (k = s(k)), S.indexOf("[]=") > -1 && (k = t(k) ? [k] : k);
3710
- var B = r.call(x, I);
3711
- B && $.duplicates === "combine" ? x[I] = e.combine(x[I], k) : (!B || $.duplicates === "last") && (x[I] = k);
3709
+ )), E && $.interpretNumericEntities && d === "iso-8859-1" && (E = s(E)), S.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
3710
+ var B = r.call(x, L);
3711
+ B && $.duplicates === "combine" ? x[L] = e.combine(x[L], E) : (!B || $.duplicates === "last") && (x[L] = E);
3712
3712
  }
3713
3713
  return x;
3714
3714
  }, c = function(h, y, $, x) {
@@ -3794,22 +3794,22 @@ function bs() {
3794
3794
  return $.allowSparse === !0 ? p : e.compact(p);
3795
3795
  }, ur;
3796
3796
  }
3797
- var fr, Kn;
3798
- function mo() {
3799
- if (Kn) return fr;
3800
- Kn = 1;
3801
- var e = /* @__PURE__ */ vs(), r = /* @__PURE__ */ bs(), t = /* @__PURE__ */ Tr();
3797
+ var fr, Yn;
3798
+ function vo() {
3799
+ if (Yn) return fr;
3800
+ Yn = 1;
3801
+ var e = /* @__PURE__ */ xs(), r = /* @__PURE__ */ $s(), t = /* @__PURE__ */ Pr();
3802
3802
  return fr = {
3803
3803
  formats: t,
3804
3804
  parse: r,
3805
3805
  stringify: e
3806
3806
  }, fr;
3807
3807
  }
3808
- var Yn;
3809
- function xs() {
3810
- if (Yn) return Pe;
3811
- Yn = 1;
3812
- var e = Hi();
3808
+ var Xn;
3809
+ function js() {
3810
+ if (Xn) return Pe;
3811
+ Xn = 1;
3812
+ var e = zi();
3813
3813
  function r() {
3814
3814
  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;
3815
3815
  }
@@ -3857,7 +3857,7 @@ function xs() {
3857
3857
  "ftp:": !0,
3858
3858
  "gopher:": !0,
3859
3859
  "file:": !0
3860
- }, p = /* @__PURE__ */ mo();
3860
+ }, p = /* @__PURE__ */ vo();
3861
3861
  function m(d, S, b) {
3862
3862
  if (d && typeof d == "object" && d instanceof r)
3863
3863
  return d;
@@ -3867,8 +3867,8 @@ function xs() {
3867
3867
  r.prototype.parse = function(d, S, b) {
3868
3868
  if (typeof d != "string")
3869
3869
  throw new TypeError("Parameter 'url' must be a string, not " + typeof d);
3870
- var q = d.indexOf("?"), I = q !== -1 && q < d.indexOf("#") ? "?" : "#", k = d.split(I), B = /\\/g;
3871
- k[0] = k[0].replace(B, "/"), d = k.join(I);
3870
+ var q = d.indexOf("?"), L = q !== -1 && q < d.indexOf("#") ? "?" : "#", E = d.split(L), B = /\\/g;
3871
+ E[0] = E[0].replace(B, "/"), d = E.join(L);
3872
3872
  var P = d;
3873
3873
  if (P = P.trim(), !b && d.split("#").length === 1) {
3874
3874
  var ae = s.exec(P);
@@ -3886,26 +3886,26 @@ function xs() {
3886
3886
  se && !(H && $[H]) && (P = P.substr(2), this.slashes = !0);
3887
3887
  }
3888
3888
  if (!$[H] && (se || H && !x[H])) {
3889
- for (var Z = -1, E = 0; E < c.length; E++) {
3890
- var re = P.indexOf(c[E]);
3889
+ for (var Z = -1, k = 0; k < c.length; k++) {
3890
+ var re = P.indexOf(c[k]);
3891
3891
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3892
3892
  }
3893
3893
  var R, N;
3894
3894
  Z === -1 ? N = P.lastIndexOf("@") : N = P.lastIndexOf("@", Z), N !== -1 && (R = P.slice(0, N), P = P.slice(N + 1), this.auth = decodeURIComponent(R)), Z = -1;
3895
- for (var E = 0; E < i.length; E++) {
3896
- var re = P.indexOf(i[E]);
3895
+ for (var k = 0; k < i.length; k++) {
3896
+ var re = P.indexOf(i[k]);
3897
3897
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
3898
3898
  }
3899
3899
  Z === -1 && (Z = P.length), this.host = P.slice(0, Z), P = P.slice(Z), this.parseHost(), this.hostname = this.hostname || "";
3900
3900
  var U = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
3901
3901
  if (!U)
3902
- for (var C = this.hostname.split(/\./), E = 0, L = C.length; E < L; E++) {
3903
- var W = C[E];
3902
+ for (var C = this.hostname.split(/\./), k = 0, I = C.length; k < I; k++) {
3903
+ var W = C[k];
3904
3904
  if (W && !W.match(f)) {
3905
3905
  for (var z = "", K = 0, ne = W.length; K < ne; K++)
3906
3906
  W.charCodeAt(K) > 127 ? z += "x" : z += W[K];
3907
3907
  if (!z.match(f)) {
3908
- var J = C.slice(0, E), A = C.slice(E + 1), F = W.match(h);
3908
+ var J = C.slice(0, k), A = C.slice(k + 1), F = W.match(h);
3909
3909
  F && (J.push(F[1]), A.unshift(F[2])), A.length && (P = "/" + A.join(".") + P), this.hostname = J.join(".");
3910
3910
  break;
3911
3911
  }
@@ -3916,8 +3916,8 @@ function xs() {
3916
3916
  this.host = Q + _, this.href += this.host, U && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), P[0] !== "/" && (P = "/" + P));
3917
3917
  }
3918
3918
  if (!y[D])
3919
- for (var E = 0, L = a.length; E < L; E++) {
3920
- var G = a[E];
3919
+ for (var k = 0, I = a.length; k < I; k++) {
3920
+ var G = a[k];
3921
3921
  if (P.indexOf(G) !== -1) {
3922
3922
  var Y = encodeURIComponent(G);
3923
3923
  Y === G && (Y = escape(G)), P = P.split(G).join(Y);
@@ -3938,15 +3938,15 @@ function xs() {
3938
3938
  r.prototype.format = function() {
3939
3939
  var d = this.auth || "";
3940
3940
  d && (d = encodeURIComponent(d), d = d.replace(/%3A/i, ":"), d += "@");
3941
- var S = this.protocol || "", b = this.pathname || "", q = this.hash || "", I = !1, k = "";
3942
- this.host ? I = d + this.host : this.hostname && (I = d + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (I += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (k = p.stringify(this.query, {
3941
+ var S = this.protocol || "", b = this.pathname || "", q = this.hash || "", L = !1, E = "";
3942
+ this.host ? L = d + this.host : this.hostname && (L = d + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = p.stringify(this.query, {
3943
3943
  arrayFormat: "repeat",
3944
3944
  addQueryPrefix: !1
3945
3945
  }));
3946
- var B = this.search || k && "?" + k || "";
3947
- return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || x[S]) && I !== !1 ? (I = "//" + (I || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : I || (I = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), b = b.replace(/[?#]/g, function(P) {
3946
+ var B = this.search || E && "?" + E || "";
3947
+ return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || x[S]) && L !== !1 ? (L = "//" + (L || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : L || (L = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), b = b.replace(/[?#]/g, function(P) {
3948
3948
  return encodeURIComponent(P);
3949
- }), B = B.replace("#", "%23"), S + I + b + B + q;
3949
+ }), B = B.replace("#", "%23"), S + L + b + B + q;
3950
3950
  };
3951
3951
  function O(d, S) {
3952
3952
  return m(d, !1, !0).resolve(S);
@@ -3962,9 +3962,9 @@ function xs() {
3962
3962
  var S = new r();
3963
3963
  S.parse(d, !1, !0), d = S;
3964
3964
  }
3965
- for (var b = new r(), q = Object.keys(this), I = 0; I < q.length; I++) {
3966
- var k = q[I];
3967
- b[k] = this[k];
3965
+ for (var b = new r(), q = Object.keys(this), L = 0; L < q.length; L++) {
3966
+ var E = q[L];
3967
+ b[E] = this[E];
3968
3968
  }
3969
3969
  if (b.hash = d.hash, d.href === "")
3970
3970
  return b.href = b.format(), b;
@@ -3984,22 +3984,22 @@ function xs() {
3984
3984
  return b.href = b.format(), b;
3985
3985
  }
3986
3986
  if (b.protocol = d.protocol, !d.host && !$[d.protocol]) {
3987
- for (var L = (d.pathname || "").split("/"); L.length && !(d.host = L.shift()); )
3987
+ for (var I = (d.pathname || "").split("/"); I.length && !(d.host = I.shift()); )
3988
3988
  ;
3989
- d.host || (d.host = ""), d.hostname || (d.hostname = ""), L[0] !== "" && L.unshift(""), L.length < 2 && L.unshift(""), b.pathname = L.join("/");
3989
+ d.host || (d.host = ""), d.hostname || (d.hostname = ""), I[0] !== "" && I.unshift(""), I.length < 2 && I.unshift(""), b.pathname = I.join("/");
3990
3990
  } else
3991
3991
  b.pathname = d.pathname;
3992
3992
  if (b.search = d.search, b.query = d.query, b.host = d.host || "", b.auth = d.auth, b.hostname = d.hostname || d.host, b.port = d.port, b.pathname || b.search) {
3993
- var Z = b.pathname || "", E = b.search || "";
3994
- b.path = Z + E;
3993
+ var Z = b.pathname || "", k = b.search || "";
3994
+ b.path = Z + k;
3995
3995
  }
3996
3996
  return b.slashes = b.slashes || d.slashes, b.href = b.format(), b;
3997
3997
  }
3998
- var re = b.pathname && b.pathname.charAt(0) === "/", R = d.host || d.pathname && d.pathname.charAt(0) === "/", N = R || re || b.host && d.pathname, U = N, C = b.pathname && b.pathname.split("/") || [], L = d.pathname && d.pathname.split("/") || [], W = b.protocol && !x[b.protocol];
3999
- if (W && (b.hostname = "", b.port = null, b.host && (C[0] === "" ? C[0] = b.host : C.unshift(b.host)), b.host = "", d.protocol && (d.hostname = null, d.port = null, d.host && (L[0] === "" ? L[0] = d.host : L.unshift(d.host)), d.host = null), N = N && (L[0] === "" || C[0] === "")), R)
4000
- b.host = d.host || d.host === "" ? d.host : b.host, b.hostname = d.hostname || d.hostname === "" ? d.hostname : b.hostname, b.search = d.search, b.query = d.query, C = L;
4001
- else if (L.length)
4002
- C || (C = []), C.pop(), C = C.concat(L), b.search = d.search, b.query = d.query;
3998
+ var re = b.pathname && b.pathname.charAt(0) === "/", R = d.host || d.pathname && d.pathname.charAt(0) === "/", N = R || re || b.host && d.pathname, U = N, C = b.pathname && b.pathname.split("/") || [], I = d.pathname && d.pathname.split("/") || [], W = b.protocol && !x[b.protocol];
3999
+ if (W && (b.hostname = "", b.port = null, b.host && (C[0] === "" ? C[0] = b.host : C.unshift(b.host)), b.host = "", d.protocol && (d.hostname = null, d.port = null, d.host && (I[0] === "" ? I[0] = d.host : I.unshift(d.host)), d.host = null), N = N && (I[0] === "" || C[0] === "")), R)
4000
+ b.host = d.host || d.host === "" ? d.host : b.host, b.hostname = d.hostname || d.hostname === "" ? d.hostname : b.hostname, b.search = d.search, b.query = d.query, C = I;
4001
+ else if (I.length)
4002
+ C || (C = []), C.pop(), C = C.concat(I), b.search = d.search, b.query = d.query;
4003
4003
  else if (d.search != null) {
4004
4004
  if (W) {
4005
4005
  b.host = C.shift(), b.hostname = b.host;
@@ -4028,12 +4028,12 @@ function xs() {
4028
4028
  S && (S = S[0], S !== ":" && (this.port = S.substr(1)), d = d.substr(0, d.length - S.length)), d && (this.hostname = d);
4029
4029
  }, Pe.parse = m, Pe.resolve = O, Pe.resolveObject = T, Pe.format = v, Pe.Url = r, Pe;
4030
4030
  }
4031
- var pr = xs(), dr = /* @__PURE__ */ mo(), $s = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), js = class {
4031
+ var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "log" in e && typeof e.log == "object" && "entries" in e.log && Array.isArray(e.log.entries), Ss = class {
4032
4032
  constructor(e, r = {}) {
4033
4033
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
4034
4034
  harIsAlreadyEncoded: !1,
4035
4035
  ...r
4036
- }, this.requests = [], $s(e) ? this.entries = e.log.entries : this.entries = [
4036
+ }, this.requests = [], ws(e) ? this.entries = e.log.entries : this.entries = [
4037
4037
  {
4038
4038
  request: e
4039
4039
  }
@@ -4068,7 +4068,7 @@ var pr = xs(), dr = /* @__PURE__ */ mo(), $s = (e) => typeof e == "object" && "l
4068
4068
  cookiesObj: {},
4069
4069
  allHeaders: {}
4070
4070
  };
4071
- if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Hr, {})), t.headers && t.headers.length) {
4071
+ if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Mr, {})), t.headers && t.headers.length) {
4072
4072
  const y = /^HTTP\/2/;
4073
4073
  t.headersObj = t.headers.reduce(($, { name: x, value: p }) => {
4074
4074
  const m = y.exec(t.httpVersion) ? x.toLocaleLowerCase() : x;
@@ -4096,17 +4096,17 @@ var pr = xs(), dr = /* @__PURE__ */ mo(), $s = (e) => typeof e == "object" && "l
4096
4096
  `, p = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), m = (T) => T.replace(/\r?\n|\r/g, `\r
4097
4097
  `), v = [`--${y}`];
4098
4098
  (h = t.postData) == null || h.params.forEach((T, d) => {
4099
- const S = T.name, b = T.value || "", q = T.fileName || null, I = T.contentType || "application/octet-stream";
4099
+ const S = T.name, b = T.value || "", q = T.fileName || null, L = T.contentType || "application/octet-stream";
4100
4100
  q ? (v.push(
4101
4101
  `Content-Disposition: form-data; name="${p(m(S))}"; filename="${q}"`
4102
- ), v.push(`Content-Type: ${I}`)) : v.push(`Content-Disposition: form-data; name="${p(m(S))}"`), v.push(""), v.push(m(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4102
+ ), v.push(`Content-Type: ${L}`)) : v.push(`Content-Disposition: form-data; name="${p(m(S))}"`), v.push(""), v.push(m(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4103
4103
  }), v.push(`--${$}`), t.postData.boundary = y, t.postData.text = v.join(x);
4104
4104
  const O = pe(t.headersObj, "content-type") || "content-type";
4105
4105
  t.headersObj[O] = `multipart/form-data; boundary=${y}`;
4106
4106
  }
4107
4107
  break;
4108
4108
  case "application/x-www-form-urlencoded":
4109
- t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Hr, {}), t.postData.text = dr.stringify(t.postData.paramsObj)) : t.postData.text = "";
4109
+ t.postData.params ? (t.postData.paramsObj = t.postData.params.reduce(Mr, {}), t.postData.text = dr.stringify(t.postData.paramsObj)) : t.postData.text = "";
4110
4110
  break;
4111
4111
  case "text/json":
4112
4112
  case "text/x-json":
@@ -4158,19 +4158,19 @@ var pr = xs(), dr = /* @__PURE__ */ mo(), $s = (e) => typeof e == "object" && "l
4158
4158
  }
4159
4159
  convert(e, r, t) {
4160
4160
  this.initCalled || this.init(), !t && r && (t = r);
4161
- const o = _i[e];
4161
+ const o = Hi[e];
4162
4162
  if (!o)
4163
4163
  return !1;
4164
4164
  const { convert: s } = o.clientsById[r || o.info.default];
4165
4165
  return this.requests.map((n) => s(n, t));
4166
4166
  }
4167
4167
  };
4168
- const ws = ({
4168
+ const Os = ({
4169
4169
  rootMargin: e = "0px",
4170
4170
  threshold: r
4171
4171
  } = {}) => {
4172
- const [t, o] = ge(!1), s = br(null);
4173
- return xr(() => {
4172
+ const [t, o] = ge(!1), s = xr(null);
4173
+ return $r(() => {
4174
4174
  const l = new IntersectionObserver(
4175
4175
  ([a]) => {
4176
4176
  a && o(a.isIntersecting);
@@ -4180,12 +4180,12 @@ const ws = ({
4180
4180
  if (n)
4181
4181
  return l.observe(n), () => l.unobserve(n);
4182
4182
  }, [e, r]), [s, t];
4183
- }, Ss = typeof window < "u" ? Xo : xr, go = ({
4183
+ }, Ts = typeof window < "u" ? ea : $r, bo = ({
4184
4184
  children: e,
4185
4185
  maxHeight: r = 250
4186
4186
  }) => {
4187
- const t = br(null), [o, s] = ge(!1), [l, n] = ge(!1);
4188
- return Ss(() => {
4187
+ const t = xr(null), [o, s] = ge(!1), [l, n] = ge(!1);
4188
+ return Ts(() => {
4189
4189
  const a = t.current;
4190
4190
  if (!a) return;
4191
4191
  s(a.scrollHeight > r);
@@ -4194,7 +4194,7 @@ const ws = ({
4194
4194
  });
4195
4195
  return i.observe(a), () => i.disconnect();
4196
4196
  }, [r]), /* @__PURE__ */ g.jsxs(
4197
- ra,
4197
+ na,
4198
4198
  {
4199
4199
  className: "group",
4200
4200
  open: l,
@@ -4202,7 +4202,7 @@ const ws = ({
4202
4202
  style: { "--max-height": `${r}px` },
4203
4203
  children: [
4204
4204
  /* @__PURE__ */ g.jsxs(
4205
- na,
4205
+ oa,
4206
4206
  {
4207
4207
  forceMount: !0,
4208
4208
  className: le(
@@ -4213,12 +4213,12 @@ const ws = ({
4213
4213
  !l && o && /* @__PURE__ */ g.jsx("div", { className: " absolute inset-0 bg-gradient-to-b from-transparent to-zinc-50/60 dark:to-zinc-950/90 z-10 group-hover:to-transparent" }),
4214
4214
  /* @__PURE__ */ g.jsx("div", { ref: t, children: e }),
4215
4215
  !l && o && /* @__PURE__ */ g.jsx(
4216
- Fr,
4216
+ _r,
4217
4217
  {
4218
4218
  className: "absolute inset-0 grid place-items-center z-10 cursor-pointer peer",
4219
4219
  asChild: !0,
4220
- children: /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsxs(_r, { variant: "outline", className: "hidden group-hover:flex", children: [
4221
- /* @__PURE__ */ g.jsx(Ho, { size: 14, className: "mr-1.5" }),
4220
+ children: /* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsxs(Br, { variant: "outline", className: "hidden group-hover:flex", children: [
4221
+ /* @__PURE__ */ g.jsx(zo, { size: 14, className: "mr-1.5" }),
4222
4222
  "Click to expand"
4223
4223
  ] }) })
4224
4224
  }
@@ -4230,28 +4230,31 @@ const ws = ({
4230
4230
  "div",
4231
4231
  {
4232
4232
  className: le("flex justify-center w-full mb-2", !l && "hidden"),
4233
- children: /* @__PURE__ */ g.jsx(Fr, { asChild: !0, children: /* @__PURE__ */ g.jsxs(_r, { variant: "outline", size: "sm", children: [
4233
+ children: /* @__PURE__ */ g.jsx(_r, { asChild: !0, children: /* @__PURE__ */ g.jsxs(Br, { variant: "outline", size: "sm", children: [
4234
4234
  "Collapse",
4235
- /* @__PURE__ */ g.jsx(Mo, { size: 14, className: "ml-1.5" })
4235
+ /* @__PURE__ */ g.jsx(Go, { size: 14, className: "ml-1.5" })
4236
4236
  ] }) })
4237
4237
  }
4238
4238
  )
4239
4239
  ]
4240
4240
  }
4241
4241
  );
4242
- }, Os = ({
4242
+ }, Ps = ({
4243
4243
  server: e,
4244
4244
  servers: r,
4245
4245
  operation: t,
4246
4246
  examples: o
4247
4247
  }) => {
4248
4248
  var a, i, c;
4249
- const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").map((u) => {
4250
- var f, h;
4249
+ const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4250
+ var f, h, y, $, x, p, m, v;
4251
4251
  return {
4252
4252
  name: u.name,
4253
- defaultValue: ((h = (f = u.examples) == null ? void 0 : f.find((y) => y.value)) == null ? void 0 : h.value) ?? "",
4254
- defaultActive: !1
4253
+ defaultValue: ((f = u.schema) == null ? void 0 : f.default) ?? ((y = (h = u.examples) == null ? void 0 : h.find((O) => O.value)) == null ? void 0 : y.value) ?? "",
4254
+ defaultActive: u.required ?? !1,
4255
+ isRequired: u.required ?? !1,
4256
+ enum: (($ = u.schema) == null ? void 0 : $.type) == "array" ? (p = (x = u.schema) == null ? void 0 : x.items) == null ? void 0 : p.enum : (m = u.schema) == null ? void 0 : m.enum,
4257
+ type: ((v = u.schema) == null ? void 0 : v.type) ?? "string"
4255
4258
  };
4256
4259
  }), l = (i = t.parameters) == null ? void 0 : i.filter((u) => u.in === "query").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4257
4260
  var f, h, y, $, x;
@@ -4264,7 +4267,7 @@ const ws = ({
4264
4267
  };
4265
4268
  }), n = (c = t.parameters) == null ? void 0 : c.filter((u) => u.in === "path").map((u) => ({ name: u.name }));
4266
4269
  return /* @__PURE__ */ g.jsx(
4267
- oa,
4270
+ aa,
4268
4271
  {
4269
4272
  server: e,
4270
4273
  servers: r,
@@ -4276,13 +4279,13 @@ const ws = ({
4276
4279
  examples: o
4277
4280
  }
4278
4281
  );
4279
- }, Pr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4282
+ }, Cr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4280
4283
  "div",
4281
4284
  {
4282
4285
  className: le("rounded-xl overflow-hidden border border-border", r),
4283
4286
  children: e
4284
4287
  }
4285
- ), Cr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4288
+ ), Rr = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx(
4286
4289
  "div",
4287
4290
  {
4288
4291
  className: le(
@@ -4291,7 +4294,7 @@ const ws = ({
4291
4294
  ),
4292
4295
  children: e
4293
4296
  }
4294
- ), vo = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("bg-card overflow-auto p-2", r), children: e }), bo = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("border-t bg-muted dark:bg-transparent p-3", r), children: e }), He = (e, r) => {
4297
+ ), xo = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("bg-card overflow-auto p-2", r), children: e }), $o = ({ children: e, className: r }) => /* @__PURE__ */ g.jsx("div", { className: le("border-t bg-muted dark:bg-transparent p-3", r), children: e }), He = (e, r) => {
4295
4298
  if (e.example !== void 0)
4296
4299
  return e.example;
4297
4300
  if (e.examples && typeof e.examples == "object" && "default" in e.examples) {
@@ -4327,31 +4330,31 @@ const ws = ({
4327
4330
  default:
4328
4331
  return {};
4329
4332
  }
4330
- }, Ts = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Ps = (e) => e ? {
4333
+ }, Cs = (e) => e == null ? "No example" : typeof e == "string" ? e.trim() : JSON.stringify(e, null, 2), Rs = (e) => e ? {
4331
4334
  "application/json": "json",
4332
4335
  "application/xml": "xml",
4333
4336
  "application/x-yaml": "yaml",
4334
4337
  "text/csv": "csv",
4335
4338
  "application/javascript": "javascript",
4336
4339
  "application/graphql": "graphql"
4337
- }[e] ?? "plain" : "plain", xo = ({
4340
+ }[e] ?? "plain" : "plain", jo = ({
4338
4341
  content: e,
4339
4342
  description: r,
4340
4343
  onExampleChange: t
4341
4344
  }) => {
4342
4345
  var y;
4343
- const [o, s] = ge(0), [l, n] = ge(0), a = Array.isArray(e) && e.length === 1 ? e[0] : e[o], i = (a == null ? void 0 : a.examples) ?? [], c = i[l], u = Zn(() => {
4346
+ const [o, s] = ge(0), [l, n] = ge(0), a = Array.isArray(e) && e.length === 1 ? e[0] : e[o], i = (a == null ? void 0 : a.examples) ?? [], c = i[l], u = to(() => {
4344
4347
  if (c)
4345
4348
  return "value" in c ? c.value : c;
4346
4349
  if (a != null && a.schema)
4347
4350
  return He(a.schema);
4348
4351
  }, [c, a == null ? void 0 : a.schema]);
4349
- xr(() => {
4352
+ $r(() => {
4350
4353
  u && (t == null || t(u));
4351
4354
  }, [u, t]);
4352
- const f = Ts(u), h = Ps(a == null ? void 0 : a.mediaType);
4355
+ const f = Cs(u), h = Rs(a == null ? void 0 : a.mediaType);
4353
4356
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4354
- /* @__PURE__ */ g.jsxs(vo, { className: "p-0", children: [
4357
+ /* @__PURE__ */ g.jsxs(xo, { className: "p-0", children: [
4355
4358
  c != null && c.externalValue ? /* @__PURE__ */ g.jsx("div", { className: "p-2", children: /* @__PURE__ */ g.jsx(
4356
4359
  "a",
4357
4360
  {
@@ -4361,8 +4364,8 @@ const ws = ({
4361
4364
  className: "text-xs text-primary hover:underline",
4362
4365
  children: "View External Example →"
4363
4366
  }
4364
- ) }) : /* @__PURE__ */ g.jsx(go, { children: /* @__PURE__ */ g.jsx(
4365
- no,
4367
+ ) }) : /* @__PURE__ */ g.jsx(bo, { children: /* @__PURE__ */ g.jsx(
4368
+ ao,
4366
4369
  {
4367
4370
  language: h,
4368
4371
  noBackground: !0,
@@ -4373,7 +4376,7 @@ const ws = ({
4373
4376
  ) }),
4374
4377
  (c == null ? void 0 : c.description) && /* @__PURE__ */ g.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
4375
4378
  ] }),
4376
- /* @__PURE__ */ g.jsxs(bo, { className: "text-xs p-0 divide-y divide-border", children: [
4379
+ /* @__PURE__ */ g.jsxs($o, { className: "text-xs p-0 divide-y divide-border", children: [
4377
4380
  r && /* @__PURE__ */ g.jsx("div", { className: "text-muted-foreground text-xs px-3 py-2", children: r }),
4378
4381
  (i.length !== 0 || e.length !== 0) && /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2 justify-between min-w-0 px-3 py-2", children: [
4379
4382
  /* @__PURE__ */ g.jsx("div", { className: "flex items-center gap-2 min-w-0", children: e.length > 1 ? /* @__PURE__ */ g.jsx(
@@ -4403,32 +4406,32 @@ const ws = ({
4403
4406
  ] })
4404
4407
  ] })
4405
4408
  ] });
4406
- }, Cs = ({
4409
+ }, qs = ({
4407
4410
  content: e,
4408
4411
  onExampleChange: r
4409
- }) => e.length === 0 ? null : /* @__PURE__ */ g.jsxs(Pr, { children: [
4410
- /* @__PURE__ */ g.jsx(Cr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ g.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4411
- /* @__PURE__ */ g.jsx(xo, { content: e, onExampleChange: r })
4412
- ] }), Rs = ({ response: e }) => /* @__PURE__ */ g.jsx(Ye.Content, { value: e.statusCode, children: /* @__PURE__ */ g.jsx(
4413
- xo,
4412
+ }) => e.length === 0 ? null : /* @__PURE__ */ g.jsxs(Cr, { children: [
4413
+ /* @__PURE__ */ g.jsx(Rr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ g.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
4414
+ /* @__PURE__ */ g.jsx(jo, { content: e, onExampleChange: r })
4415
+ ] }), Ns = ({ response: e }) => /* @__PURE__ */ g.jsx(Ye.Content, { value: e.statusCode, children: /* @__PURE__ */ g.jsx(
4416
+ jo,
4414
4417
  {
4415
4418
  content: e.content ?? [],
4416
4419
  description: e.description ?? void 0
4417
4420
  }
4418
- ) }), qs = ({
4421
+ ) }), ks = ({
4419
4422
  responses: e,
4420
4423
  selectedResponse: r,
4421
4424
  onSelectResponse: t
4422
4425
  }) => {
4423
4426
  var o;
4424
- return /* @__PURE__ */ g.jsx(Pr, { children: /* @__PURE__ */ g.jsxs(
4427
+ return /* @__PURE__ */ g.jsx(Cr, { children: /* @__PURE__ */ g.jsxs(
4425
4428
  Ye.Root,
4426
4429
  {
4427
4430
  defaultValue: (o = e[0]) == null ? void 0 : o.statusCode,
4428
4431
  value: r,
4429
4432
  onValueChange: (s) => t(s),
4430
4433
  children: [
4431
- /* @__PURE__ */ g.jsxs(Cr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4434
+ /* @__PURE__ */ g.jsxs(Rr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4432
4435
  /* @__PURE__ */ g.jsx("span", { className: "font-mono", children: "Example Responses" }),
4433
4436
  /* @__PURE__ */ g.jsx(Ye.List, { className: "flex gap-2", children: e.map((s) => /* @__PURE__ */ g.jsx(
4434
4437
  Ye.Trigger,
@@ -4444,11 +4447,11 @@ const ws = ({
4444
4447
  s.statusCode
4445
4448
  )) })
4446
4449
  ] }),
4447
- e.map((s) => /* @__PURE__ */ g.jsx(Rs, { response: s }, s.statusCode))
4450
+ e.map((s) => /* @__PURE__ */ g.jsx(Ns, { response: s }, s.statusCode))
4448
4451
  ]
4449
4452
  }
4450
4453
  ) });
4451
- }, Ns = (e, r) => {
4454
+ }, Es = (e, r) => {
4452
4455
  let t;
4453
4456
  switch (r) {
4454
4457
  case "shell":
@@ -4489,7 +4492,7 @@ const ws = ({
4489
4492
  break;
4490
4493
  }
4491
4494
  return t ? t[0] : "";
4492
- }, ks = rt(
4495
+ }, As = rt(
4493
4496
  /* GraphQL */
4494
4497
  `
4495
4498
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4501,7 +4504,7 @@ const ws = ({
4501
4504
  }
4502
4505
  }
4503
4506
  `
4504
- ), Es = [
4507
+ ), Is = [
4505
4508
  { value: "shell", label: "cURL" },
4506
4509
  { value: "js", label: "JavaScript" },
4507
4510
  { value: "python", label: "Python" },
@@ -4513,33 +4516,29 @@ const ws = ({
4513
4516
  { value: "php", label: "PHP" },
4514
4517
  { value: "ruby", label: "Ruby" },
4515
4518
  { value: "swift", label: "Swift" }
4516
- ], As = ({
4519
+ ], Ls = ({
4517
4520
  operation: e,
4518
4521
  selectedResponse: r,
4519
4522
  onSelectResponse: t
4520
4523
  }) => {
4521
4524
  var d;
4522
- const { input: o, type: s, options: l } = $r(), n = jr(ks, { input: o, type: s }), a = gr(n), i = ro(e.method), [c, u] = Ro(), [, f] = Xn(), [h, y] = ge(), $ = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", x = (d = e.requestBody) == null ? void 0 : d.content, p = e.path.split("/").map((S, b, q) => {
4523
- const k = S.startsWith("{") && S.endsWith("}") || S.startsWith(":") ? S.replace(/[:{}]/g, "") : void 0;
4524
- return (
4525
- // eslint-disable-next-line react/no-array-index-key
4526
- /* @__PURE__ */ g.jsxs(Zo, { children: [
4527
- k ? /* @__PURE__ */ g.jsx(
4528
- to,
4529
- {
4530
- name: k,
4531
- backgroundOpacity: "0",
4532
- slug: `${e.slug}-${k.toLocaleLowerCase()}`,
4533
- children: S
4534
- }
4535
- ) : S,
4536
- b < q.length - 1 ? "/" : null,
4537
- /* @__PURE__ */ g.jsx("wbr", {})
4538
- ] }, S + b)
4539
- );
4540
- }), { selectedServer: m } = vr(), v = Zn(() => {
4525
+ const { input: o, type: s, options: l } = jr(), n = wr(As, { input: o, type: s }), a = vr(n), i = oo(e.method), [c, u] = No(), [, f] = eo(), [h, y] = ge(), $ = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", x = (d = e.requestBody) == null ? void 0 : d.content, p = /* @__PURE__ */ g.jsx(
4526
+ ia,
4527
+ {
4528
+ path: e.path,
4529
+ renderParam: ({ name: S }) => /* @__PURE__ */ g.jsx(
4530
+ no,
4531
+ {
4532
+ name: S,
4533
+ backgroundOpacity: "0",
4534
+ slug: `${e.slug}-${S}`,
4535
+ children: `{${S}}`
4536
+ }
4537
+ )
4538
+ }
4539
+ ), { selectedServer: m } = br(), v = to(() => {
4541
4540
  var q;
4542
- const S = h ?? ((q = x == null ? void 0 : x[0]) != null && q.schema ? He(x[0].schema) : void 0), b = new js({
4541
+ const S = h ?? ((q = x == null ? void 0 : x[0]) != null && q.schema ? He(x[0].schema) : void 0), b = new Ss({
4543
4542
  method: e.method.toLocaleUpperCase(),
4544
4543
  url: (m ?? a.data.schema.url ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
4545
4544
  postData: S ? {
@@ -4553,7 +4552,7 @@ const ws = ({
4553
4552
  headersSize: 0,
4554
4553
  bodySize: 0
4555
4554
  });
4556
- return Ns(b, $);
4555
+ return Es(b, $);
4557
4556
  }, [
4558
4557
  h,
4559
4558
  x,
@@ -4562,22 +4561,22 @@ const ws = ({
4562
4561
  m,
4563
4562
  a.data.schema.url,
4564
4563
  $
4565
- ]), [O, T] = ws({ rootMargin: "200px 0px 200px 0px" });
4564
+ ]), [O, T] = Os({ rootMargin: "200px 0px 200px 0px" });
4566
4565
  return /* @__PURE__ */ g.jsxs(
4567
4566
  "aside",
4568
4567
  {
4569
4568
  ref: O,
4570
4569
  className: "flex flex-col overflow-hidden sticky top-[--scroll-padding] gap-4",
4571
4570
  children: [
4572
- /* @__PURE__ */ g.jsxs(Pr, { children: [
4573
- /* @__PURE__ */ g.jsxs(Cr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4571
+ /* @__PURE__ */ g.jsxs(Cr, { children: [
4572
+ /* @__PURE__ */ g.jsxs(Rr, { className: "flex justify-between items-center flex-nowrap py-2.5 gap-2 text-xs", children: [
4574
4573
  /* @__PURE__ */ g.jsxs("span", { className: "font-mono break-words", children: [
4575
4574
  /* @__PURE__ */ g.jsx("span", { className: le("font-semibold", i), children: e.method.toLocaleUpperCase() }),
4576
4575
  " ",
4577
4576
  p
4578
4577
  ] }),
4579
4578
  T && /* @__PURE__ */ g.jsx(
4580
- Os,
4579
+ Ps,
4581
4580
  {
4582
4581
  server: a.data.schema.url ?? "",
4583
4582
  servers: a.data.schema.servers.map((S) => S.url),
@@ -4587,8 +4586,8 @@ const ws = ({
4587
4586
  )
4588
4587
  ] }),
4589
4588
  T && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4590
- /* @__PURE__ */ g.jsx(vo, { className: "p-0", children: /* @__PURE__ */ g.jsx(go, { children: /* @__PURE__ */ g.jsx(
4591
- no,
4589
+ /* @__PURE__ */ g.jsx(xo, { className: "p-0", children: /* @__PURE__ */ g.jsx(bo, { children: /* @__PURE__ */ g.jsx(
4590
+ ao,
4592
4591
  {
4593
4592
  language: $,
4594
4593
  noBackground: !0,
@@ -4596,7 +4595,7 @@ const ws = ({
4596
4595
  code: v
4597
4596
  }
4598
4597
  ) }) }),
4599
- /* @__PURE__ */ g.jsxs(bo, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4598
+ /* @__PURE__ */ g.jsxs($o, { className: "flex items-center text-xs gap-2 justify-end py-2.5", children: [
4600
4599
  /* @__PURE__ */ g.jsx("span", { children: "Show example in" }),
4601
4600
  /* @__PURE__ */ g.jsx(
4602
4601
  et,
@@ -4608,21 +4607,21 @@ const ws = ({
4608
4607
  u((b) => (b.set("lang", S.target.value), b));
4609
4608
  });
4610
4609
  },
4611
- options: Es
4610
+ options: Is
4612
4611
  }
4613
4612
  )
4614
4613
  ] })
4615
4614
  ] })
4616
4615
  ] }),
4617
4616
  T && x && /* @__PURE__ */ g.jsx(
4618
- Cs,
4617
+ qs,
4619
4618
  {
4620
4619
  content: x,
4621
4620
  onExampleChange: y
4622
4621
  }
4623
4622
  ),
4624
4623
  T && e.responses.length > 0 && /* @__PURE__ */ g.jsx(
4625
- qs,
4624
+ ks,
4626
4625
  {
4627
4626
  selectedResponse: r,
4628
4627
  onSelectResponse: t,
@@ -4632,15 +4631,15 @@ const ws = ({
4632
4631
  ]
4633
4632
  }
4634
4633
  );
4635
- }, Is = (e) => Object.entries(e), Ls = {
4636
- AND: /* @__PURE__ */ g.jsx(Go, { size: 16, className: "fill-card" }),
4637
- OR: /* @__PURE__ */ g.jsx(Wo, { size: 16, className: "fill-card" }),
4638
- ONE: /* @__PURE__ */ g.jsx(Jo, { size: 14, className: "fill-card" })
4639
- }, Us = {
4634
+ }, Us = (e) => Object.entries(e), Fs = {
4635
+ AND: /* @__PURE__ */ g.jsx(Jo, { size: 16, className: "fill-card" }),
4636
+ OR: /* @__PURE__ */ g.jsx(Vo, { size: 16, className: "fill-card" }),
4637
+ ONE: /* @__PURE__ */ g.jsx(Do, { size: 14, className: "fill-card" })
4638
+ }, _s = {
4640
4639
  AND: "text-green-500 dark:text-green-300/60",
4641
4640
  OR: "text-blue-400 dark:text-blue-500",
4642
4641
  ONE: "text-purple-500 dark:text-purple-300/60"
4643
- }, Fs = ({
4642
+ }, Bs = ({
4644
4643
  type: e,
4645
4644
  isOpen: r,
4646
4645
  className: t
@@ -4648,13 +4647,13 @@ const ws = ({
4648
4647
  "div",
4649
4648
  {
4650
4649
  className: le(
4651
- Us[e],
4650
+ _s[e],
4652
4651
  "relative text-sm flex py-2",
4653
4652
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
4654
4653
  t
4655
4654
  ),
4656
4655
  children: /* @__PURE__ */ g.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4657
- Ls[e],
4656
+ Fs[e],
4658
4657
  /* @__PURE__ */ g.jsx(
4659
4658
  "div",
4660
4659
  {
@@ -4662,12 +4661,12 @@ const ws = ({
4662
4661
  "translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
4663
4662
  !r && "-rotate-90"
4664
4663
  ),
4665
- children: /* @__PURE__ */ g.jsx(zo, { size: 16 })
4664
+ children: /* @__PURE__ */ g.jsx(Wo, { size: 16 })
4666
4665
  }
4667
4666
  )
4668
4667
  ] })
4669
4668
  }
4670
- ), _s = (e) => {
4669
+ ), Hs = (e) => {
4671
4670
  const [r, t] = ge(!0);
4672
4671
  return /* @__PURE__ */ g.jsxs(
4673
4672
  xe.Root,
@@ -4676,17 +4675,17 @@ const ws = ({
4676
4675
  onOpenChange: () => t((o) => !o),
4677
4676
  className: "group",
4678
4677
  children: [
4679
- /* @__PURE__ */ g.jsx(xe.Trigger, { children: /* @__PURE__ */ g.jsx(Fs, { type: e.type, isOpen: r }) }),
4678
+ /* @__PURE__ */ g.jsx(xe.Trigger, { children: /* @__PURE__ */ g.jsx(Bs, { type: e.type, isOpen: r }) }),
4680
4679
  !r && /* @__PURE__ */ g.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4681
4680
  /* @__PURE__ */ g.jsx(xe.Content, { children: /* @__PURE__ */ g.jsx(Ge, { schema: e.schema, level: e.level + 1 }) })
4682
4681
  ]
4683
4682
  }
4684
4683
  );
4685
- }, Bs = {
4684
+ }, Ms = {
4686
4685
  AND: "All of",
4687
4686
  OR: "Any of",
4688
4687
  ONE: "One of"
4689
- }, Hs = ({
4688
+ }, zs = ({
4690
4689
  schemas: e,
4691
4690
  type: r,
4692
4691
  isOpen: t,
@@ -4694,13 +4693,13 @@ const ws = ({
4694
4693
  toggleOpen: s
4695
4694
  }) => /* @__PURE__ */ g.jsx(xe.Root, { open: t, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ g.jsxs(be, { className: "px-6", children: [
4696
4695
  /* @__PURE__ */ g.jsxs(xe.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4697
- t ? /* @__PURE__ */ g.jsx(Vo, { size: 14 }) : /* @__PURE__ */ g.jsx(Do, { size: 14 }),
4698
- /* @__PURE__ */ g.jsx("span", { children: Bs[r] })
4696
+ t ? /* @__PURE__ */ g.jsx(Qo, { size: 14 }) : /* @__PURE__ */ g.jsx(Ko, { size: 14 }),
4697
+ /* @__PURE__ */ g.jsx("span", { children: Ms[r] })
4699
4698
  ] }),
4700
4699
  /* @__PURE__ */ g.jsx(xe.Content, { className: "pb-4", children: e.map((l, n) => (
4701
4700
  // eslint-disable-next-line react/no-array-index-key
4702
4701
  /* @__PURE__ */ g.jsx(
4703
- _s,
4702
+ Hs,
4704
4703
  {
4705
4704
  type: r,
4706
4705
  schema: l,
@@ -4709,19 +4708,19 @@ const ws = ({
4709
4708
  n
4710
4709
  )
4711
4710
  )) })
4712
- ] }) }), Ms = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), mr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), zs = {
4711
+ ] }) }), Gs = (e) => e.type === "object" || e.type === "array" && typeof e.items == "object" && (!e.items.type || e.items.type === "object"), gr = (e) => !!(e.oneOf ?? e.allOf ?? e.anyOf), Ws = {
4713
4712
  allOf: "AND",
4714
4713
  anyOf: "OR",
4715
4714
  oneOf: "ONE"
4716
- }, $o = ({
4715
+ }, hr = (e) => e === va, wo = ({
4717
4716
  schema: e,
4718
4717
  level: r
4719
4718
  }) => {
4720
- const [t, o] = ge(!0), s = ea(() => o((l) => !l), []);
4721
- for (const [l, n] of Is(zs))
4719
+ const [t, o] = ge(!0), s = ta(() => o((l) => !l), []);
4720
+ for (const [l, n] of Us(Ws))
4722
4721
  if (e[l])
4723
4722
  return /* @__PURE__ */ g.jsx(
4724
- Hs,
4723
+ zs,
4725
4724
  {
4726
4725
  schemas: e[l],
4727
4726
  type: n,
@@ -4730,9 +4729,9 @@ const ws = ({
4730
4729
  level: r
4731
4730
  }
4732
4731
  );
4733
- }, Gs = (e) => e === ma, Ws = () => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2 italic text-sm text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
4734
- /* @__PURE__ */ g.jsx(Ko, { size: 16 }),
4735
- /* @__PURE__ */ g.jsx("span", { children: "recursive" })
4732
+ }, Zn = () => /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2 italic text-sm text-muted-foreground font-mono bg-muted px-2 py-0.5 rounded-md", children: [
4733
+ /* @__PURE__ */ g.jsx(Xo, { size: 16 }),
4734
+ /* @__PURE__ */ g.jsx("span", { children: "circular" })
4736
4735
  ] }), Js = ({
4737
4736
  name: e,
4738
4737
  schema: r,
@@ -4742,26 +4741,29 @@ const ws = ({
4742
4741
  showCollapseButton: l = !0
4743
4742
  }) => {
4744
4743
  const [n, a] = ge(s);
4745
- return Gs(r) ? /* @__PURE__ */ g.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ g.jsxs("div", { className: "flex gap-2 items-center", children: [
4744
+ return hr(r) ? /* @__PURE__ */ g.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ g.jsx("div", { className: "flex flex-col gap-1 justify-between text-sm", children: /* @__PURE__ */ g.jsxs("div", { className: "flex gap-2 items-center", children: [
4746
4745
  /* @__PURE__ */ g.jsx("code", { children: e }),
4747
- /* @__PURE__ */ g.jsx(Ws, {})
4746
+ /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: "object" }),
4747
+ t === "optional" && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "optional" }),
4748
+ /* @__PURE__ */ g.jsx(Zn, {})
4748
4749
  ] }) }) }) : /* @__PURE__ */ g.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4749
4750
  /* @__PURE__ */ g.jsxs("div", { className: "flex gap-2 items-center", children: [
4750
4751
  /* @__PURE__ */ g.jsx("code", { children: e }),
4751
- /* @__PURE__ */ g.jsx(Be, { variant: "muted", children: r.type === "array" && r.items.type ? /* @__PURE__ */ g.jsxs("span", { children: [
4752
+ /* @__PURE__ */ g.jsx(Ce, { variant: "muted", children: r.type === "array" && r.items.type ? /* @__PURE__ */ g.jsxs("span", { children: [
4752
4753
  r.items.type,
4753
4754
  "[]"
4754
4755
  ] }) : Array.isArray(r.type) ? /* @__PURE__ */ g.jsx("span", { children: r.type.join(" | ") }) : /* @__PURE__ */ g.jsx("span", { children: r.type }) }),
4755
- t === "optional" && /* @__PURE__ */ g.jsx(Be, { variant: "outline", children: "optional" })
4756
+ t === "optional" && /* @__PURE__ */ g.jsx(Ce, { variant: "outline", children: "optional" }),
4757
+ r.type === "array" && "items" in r && hr(r.items) && /* @__PURE__ */ g.jsx(Zn, {})
4756
4758
  ] }),
4757
4759
  r.description && /* @__PURE__ */ g.jsx(
4758
- Ce,
4760
+ Re,
4759
4761
  {
4760
- className: le(Ie, "text-sm leading-normal line-clamp-4"),
4762
+ className: le(Le, "text-sm leading-normal line-clamp-4"),
4761
4763
  content: r.description
4762
4764
  }
4763
4765
  ),
4764
- (mr(r) || Ms(r)) && /* @__PURE__ */ g.jsxs(
4766
+ (gr(r) || Gs(r)) && /* @__PURE__ */ g.jsxs(
4765
4767
  xe.Root,
4766
4768
  {
4767
4769
  defaultOpen: s,
@@ -4769,18 +4771,18 @@ const ws = ({
4769
4771
  onOpenChange: () => a(!n),
4770
4772
  children: [
4771
4773
  l && /* @__PURE__ */ g.jsx(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ g.jsxs(
4772
- eo,
4774
+ ro,
4773
4775
  {
4774
4776
  variant: "outline",
4775
4777
  size: "sm",
4776
4778
  className: "mt-2 flex gap-1.5",
4777
4779
  children: [
4778
- /* @__PURE__ */ g.jsx(Qo, { size: 18 }),
4780
+ /* @__PURE__ */ g.jsx(Yo, { size: 18 }),
4779
4781
  n ? "Hide nested properties" : "Show nested properties"
4780
4782
  ]
4781
4783
  }
4782
4784
  ) }),
4783
- /* @__PURE__ */ g.jsx(xe.Content, { children: /* @__PURE__ */ g.jsx("div", { className: "mt-2", children: mr(r) ? /* @__PURE__ */ g.jsx($o, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ g.jsx(Ge, { schema: r, level: o + 1 }) : r.type === "array" && typeof r.items == "object" && /* @__PURE__ */ g.jsx(Ge, { schema: r.items, level: o + 1 }) }) })
4785
+ /* @__PURE__ */ g.jsx(xe.Content, { children: /* @__PURE__ */ g.jsx("div", { className: "mt-2", children: gr(r) ? /* @__PURE__ */ g.jsx(wo, { schema: r, level: o + 1 }) : r.type === "object" ? /* @__PURE__ */ g.jsx(Ge, { schema: r, level: o + 1 }) : r.type === "array" && "items" in r && typeof r.items == "object" && !hr(r.items) && /* @__PURE__ */ g.jsx(Ge, { schema: r.items, level: o + 1 }) }) })
4784
4786
  ]
4785
4787
  }
4786
4788
  )
@@ -4793,8 +4795,8 @@ const ws = ({
4793
4795
  if (!e || Object.keys(e).length === 0)
4794
4796
  return /* @__PURE__ */ g.jsx(be, { className: "p-4", children: /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4795
4797
  const o = (s, l) => {
4796
- if (mr(s))
4797
- return /* @__PURE__ */ g.jsx($o, { schema: s, level: l });
4798
+ if (gr(s))
4799
+ return /* @__PURE__ */ g.jsx(wo, { schema: s, level: l });
4798
4800
  if (s.type === "array" && s.items) {
4799
4801
  const n = s.items;
4800
4802
  return typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ g.jsxs(be, { className: "p-4", children: [
@@ -4803,10 +4805,10 @@ const ws = ({
4803
4805
  "[]"
4804
4806
  ] }),
4805
4807
  s.description && /* @__PURE__ */ g.jsx(
4806
- Ce,
4808
+ Re,
4807
4809
  {
4808
4810
  className: le(
4809
- Ie,
4811
+ Le,
4810
4812
  "text-sm leading-normal line-clamp-4"
4811
4813
  ),
4812
4814
  content: s.description
@@ -4822,10 +4824,10 @@ const ws = ({
4822
4824
  "name" in s && /* @__PURE__ */ g.jsx(g.Fragment, { children: s.name }),
4823
4825
  /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4824
4826
  s.description && /* @__PURE__ */ g.jsx(
4825
- Ce,
4827
+ Re,
4826
4828
  {
4827
4829
  className: le(
4828
- Ie,
4830
+ Le,
4829
4831
  "text-sm leading-normal line-clamp-4"
4830
4832
  ),
4831
4833
  content: s.description
@@ -4833,7 +4835,7 @@ const ws = ({
4833
4835
  )
4834
4836
  ] });
4835
4837
  if (s.properties) {
4836
- const n = oo(
4838
+ const n = io(
4837
4839
  Object.entries(s.properties),
4838
4840
  ([i, c]) => {
4839
4841
  var u;
@@ -4857,18 +4859,18 @@ const ws = ({
4857
4859
  return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ g.jsxs(be, { className: "p-4", children: [
4858
4860
  /* @__PURE__ */ g.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4859
4861
  s.description && /* @__PURE__ */ g.jsx(
4860
- Ce,
4862
+ Re,
4861
4863
  {
4862
4864
  className: le(
4863
- Ie,
4865
+ Le,
4864
4866
  "text-sm leading-normal line-clamp-4"
4865
4867
  ),
4866
4868
  content: s.description
4867
4869
  }
4868
4870
  )
4869
4871
  ] }) : s.additionalProperties ? /* @__PURE__ */ g.jsxs(be, { className: "my-2", children: [
4870
- /* @__PURE__ */ g.jsx(ca, { children: /* @__PURE__ */ g.jsx(ua, { children: "Additional Properties:" }) }),
4871
- /* @__PURE__ */ g.jsx(fa, { children: o(
4872
+ /* @__PURE__ */ g.jsx(fa, { children: /* @__PURE__ */ g.jsx(pa, { children: "Additional Properties:" }) }),
4873
+ /* @__PURE__ */ g.jsx(da, { children: o(
4872
4874
  s.additionalProperties,
4873
4875
  l + 1
4874
4876
  ) })
@@ -4880,19 +4882,28 @@ const ws = ({
4880
4882
  serverUrl: r
4881
4883
  }) => {
4882
4884
  var i, c, u;
4883
- const t = ga(Ks, e), o = oo(
4885
+ const t = ba(Ks, e), o = io(
4884
4886
  t.parameters ?? [],
4885
4887
  (f) => f.in
4886
- ), s = br(null), l = t.responses.at(0), [n, a] = ge(l == null ? void 0 : l.statusCode);
4888
+ ), s = xr(null), l = t.responses.at(0), [n, a] = ge(l == null ? void 0 : l.statusCode);
4887
4889
  return /* @__PURE__ */ g.jsxs(
4888
4890
  "div",
4889
4891
  {
4890
4892
  className: "grid grid-cols-1 lg:grid-cols-[minmax(0,4fr)_minmax(0,3fr)] gap-8 items-start border-b-2 mb-16 pb-16",
4891
4893
  children: [
4892
4894
  /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-4", children: [
4893
- /* @__PURE__ */ g.jsx(_e, { level: 2, id: t.slug, registerSidebarAnchor: !0, children: t.summary }),
4895
+ /* @__PURE__ */ g.jsx(
4896
+ Be,
4897
+ {
4898
+ level: 2,
4899
+ id: t.slug,
4900
+ registerSidebarAnchor: !0,
4901
+ className: "break-all",
4902
+ children: t.summary
4903
+ }
4904
+ ),
4894
4905
  /* @__PURE__ */ g.jsxs("div", { className: "text-sm flex gap-2 font-mono", children: [
4895
- /* @__PURE__ */ g.jsx("span", { className: ro(t.method), children: t.method.toUpperCase() }),
4906
+ /* @__PURE__ */ g.jsx("span", { className: oo(t.method), children: t.method.toUpperCase() }),
4896
4907
  /* @__PURE__ */ g.jsxs(
4897
4908
  "div",
4898
4909
  {
@@ -4914,9 +4925,9 @@ const ws = ({
4914
4925
  )
4915
4926
  ] }),
4916
4927
  t.description && /* @__PURE__ */ g.jsx(
4917
- Ce,
4928
+ Re,
4918
4929
  {
4919
- className: `${Ie} max-w-full prose-img:max-w-prose`,
4930
+ className: `${Le} max-w-full prose-img:max-w-prose`,
4920
4931
  content: t.description
4921
4932
  }
4922
4933
  ),
@@ -4924,7 +4935,7 @@ const ws = ({
4924
4935
  (f) => {
4925
4936
  var h;
4926
4937
  return (h = o[f]) != null && h.length ? /* @__PURE__ */ g.jsx(
4927
- Sa,
4938
+ Ta,
4928
4939
  {
4929
4940
  id: t.slug,
4930
4941
  parameters: o[f],
@@ -4934,9 +4945,9 @@ const ws = ({
4934
4945
  ) : [];
4935
4946
  }
4936
4947
  ) }),
4937
- xa((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (f) => /* @__PURE__ */ g.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4948
+ ja((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (f) => /* @__PURE__ */ g.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4938
4949
  /* @__PURE__ */ g.jsx(
4939
- _e,
4950
+ Be,
4940
4951
  {
4941
4952
  level: 3,
4942
4953
  className: "capitalize",
@@ -4948,7 +4959,7 @@ const ws = ({
4948
4959
  ] })),
4949
4960
  t.responses.length > 0 && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4950
4961
  /* @__PURE__ */ g.jsx(
4951
- _e,
4962
+ Be,
4952
4963
  {
4953
4964
  level: 3,
4954
4965
  className: "capitalize mt-8 pt-8 border-t",
@@ -4957,13 +4968,13 @@ const ws = ({
4957
4968
  }
4958
4969
  ),
4959
4970
  /* @__PURE__ */ g.jsxs(
4960
- aa,
4971
+ sa,
4961
4972
  {
4962
4973
  onValueChange: (f) => a(f),
4963
4974
  value: n,
4964
4975
  children: [
4965
- t.responses.length > 1 && /* @__PURE__ */ g.jsx(ia, { children: t.responses.map((f) => /* @__PURE__ */ g.jsx(
4966
- sa,
4976
+ t.responses.length > 1 && /* @__PURE__ */ g.jsx(la, { children: t.responses.map((f) => /* @__PURE__ */ g.jsx(
4977
+ ca,
4967
4978
  {
4968
4979
  value: f.statusCode,
4969
4980
  title: f.description ?? void 0,
@@ -4974,7 +4985,7 @@ const ws = ({
4974
4985
  /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4975
4986
  var h, y;
4976
4987
  return /* @__PURE__ */ g.jsx(
4977
- la,
4988
+ ua,
4978
4989
  {
4979
4990
  value: f.statusCode,
4980
4991
  children: /* @__PURE__ */ g.jsx(
@@ -4993,7 +5004,7 @@ const ws = ({
4993
5004
  ] })
4994
5005
  ] }),
4995
5006
  /* @__PURE__ */ g.jsx(
4996
- As,
5007
+ Ls,
4997
5008
  {
4998
5009
  selectedResponse: n,
4999
5010
  onSelectResponse: a,
@@ -5103,47 +5114,47 @@ const Ks = rt(
5103
5114
  tag: e,
5104
5115
  untagged: r
5105
5116
  }) => {
5106
- const { input: t, type: o, versions: s, version: l } = $r(), n = jr(Ys, {
5117
+ const { input: t, type: o, versions: s, version: l } = jr(), n = wr(Ys, {
5107
5118
  input: t,
5108
5119
  type: o,
5109
5120
  tag: e,
5110
5121
  untagged: r
5111
- }), { selectedServer: a } = vr(), i = gr(n), c = i.data.schema.title, u = i.data.schema.summary, f = i.data.schema.description, h = qo(), y = i.data.schema.operations;
5112
- Po();
5122
+ }), { selectedServer: a } = br(), i = vr(n), c = i.data.schema.title, u = i.data.schema.summary, f = i.data.schema.description, h = ko(), y = i.data.schema.operations;
5123
+ Ro();
5113
5124
  const $ = u || (f ? Qs(f) : void 0);
5114
5125
  return /* @__PURE__ */ g.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5115
- /* @__PURE__ */ g.jsxs(Co, { children: [
5126
+ /* @__PURE__ */ g.jsxs(qo, { children: [
5116
5127
  /* @__PURE__ */ g.jsx("title", { children: c }),
5117
5128
  $ && /* @__PURE__ */ g.jsx("meta", { name: "description", content: $ })
5118
5129
  ] }),
5119
5130
  /* @__PURE__ */ g.jsxs(
5120
5131
  "div",
5121
5132
  {
5122
- className: le(Ie, "mb-16 max-w-full prose-img:max-w-prose"),
5133
+ className: le(Le, "mb-16 max-w-full prose-img:max-w-prose"),
5123
5134
  children: [
5124
5135
  /* @__PURE__ */ g.jsxs("div", { className: "flex", children: [
5125
5136
  /* @__PURE__ */ g.jsxs("div", { className: "flex-1", children: [
5126
- /* @__PURE__ */ g.jsx(Lo, { children: "Overview" }),
5127
- /* @__PURE__ */ g.jsx(_e, { level: 1, id: "description", registerSidebarAnchor: !0, children: c })
5137
+ /* @__PURE__ */ g.jsx(Fo, { children: "Overview" }),
5138
+ /* @__PURE__ */ g.jsx(Be, { level: 1, id: "description", registerSidebarAnchor: !0, children: c })
5128
5139
  ] }),
5129
5140
  /* @__PURE__ */ g.jsx("div", { children: Object.entries(s).length > 1 && /* @__PURE__ */ g.jsxs(
5130
- No,
5141
+ Eo,
5131
5142
  {
5132
5143
  onValueChange: (x) => h(s[x]),
5133
5144
  defaultValue: l,
5134
5145
  children: [
5135
- /* @__PURE__ */ g.jsx(ko, { className: "w-[180px]", children: /* @__PURE__ */ g.jsx(Eo, { placeholder: "Select version" }) }),
5136
- /* @__PURE__ */ g.jsx(Ao, { children: Object.entries(s).map(([x]) => /* @__PURE__ */ g.jsx(Io, { value: x, children: x }, x)) })
5146
+ /* @__PURE__ */ g.jsx(Ao, { className: "w-[180px]", children: /* @__PURE__ */ g.jsx(Io, { placeholder: "Select version" }) }),
5147
+ /* @__PURE__ */ g.jsx(Lo, { children: Object.entries(s).map(([x]) => /* @__PURE__ */ g.jsx(Uo, { value: x, children: x }, x)) })
5137
5148
  ]
5138
5149
  }
5139
5150
  ) })
5140
5151
  ] }),
5141
- /* @__PURE__ */ g.jsx(Ce, { content: i.data.schema.description ?? "" })
5152
+ /* @__PURE__ */ g.jsx(Re, { content: i.data.schema.description ?? "" })
5142
5153
  ]
5143
5154
  }
5144
5155
  ),
5145
5156
  /* @__PURE__ */ g.jsx("hr", {}),
5146
- /* @__PURE__ */ g.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ g.jsx(ba, {}) }),
5157
+ /* @__PURE__ */ g.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ g.jsx($a, {}) }),
5147
5158
  y.map((x) => /* @__PURE__ */ g.jsx(
5148
5159
  Ds,
5149
5160
  {
@@ -5158,4 +5169,4 @@ export {
5158
5169
  xl as OperationList,
5159
5170
  Ks as OperationsFragment
5160
5171
  };
5161
- //# sourceMappingURL=OperationList-D_ejrepA.js.map
5172
+ //# sourceMappingURL=OperationList-wzZNceUl.js.map