zudoku 0.18.5 → 0.18.7

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 (86) hide show
  1. package/dist/app/entry.client.d.ts +1 -0
  2. package/dist/app/entry.client.js +8 -0
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/app/entry.server.d.ts +1 -0
  5. package/dist/app/entry.server.js +1 -0
  6. package/dist/app/entry.server.js.map +1 -1
  7. package/dist/lib/components/Layout.js +3 -2
  8. package/dist/lib/components/Layout.js.map +1 -1
  9. package/dist/lib/components/MobileTopNavigation.js +1 -1
  10. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  11. package/dist/lib/components/Search.d.ts +3 -1
  12. package/dist/lib/components/Search.js +3 -3
  13. package/dist/lib/components/Search.js.map +1 -1
  14. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  15. package/dist/lib/components/navigation/Sidebar.js +2 -2
  16. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  17. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -1
  18. package/dist/lib/components/navigation/SidebarCategory.js +2 -2
  19. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  20. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -2
  21. package/dist/lib/components/navigation/SidebarItem.js +5 -5
  22. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  23. package/dist/lib/oas/graphql/index.js +4 -0
  24. package/dist/lib/oas/graphql/index.js.map +1 -1
  25. package/dist/lib/plugins/markdown/MdxPage.d.ts +1 -1
  26. package/dist/lib/plugins/markdown/MdxPage.js +2 -2
  27. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  28. package/dist/lib/plugins/markdown/index.d.ts +1 -0
  29. package/dist/lib/plugins/markdown/index.js.map +1 -1
  30. package/dist/lib/plugins/openapi/OperationList.js +44 -1
  31. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  32. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  33. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  34. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  35. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
  36. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  37. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  38. package/dist/vite/build.js +7 -1
  39. package/dist/vite/build.js.map +1 -1
  40. package/dist/vite/config.js +10 -0
  41. package/dist/vite/config.js.map +1 -1
  42. package/dist/vite/dev-server.js +7 -0
  43. package/dist/vite/dev-server.js.map +1 -1
  44. package/dist/vite/output.js +31 -16
  45. package/dist/vite/output.js.map +1 -1
  46. package/dist/vite/plugin-mdx.js +48 -1
  47. package/dist/vite/plugin-mdx.js.map +1 -1
  48. package/lib/AnchorLink-BR0MvI7n.js +35 -0
  49. package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
  50. package/lib/{MdxPage-B2FpJ9KC.js → MdxPage-HjFSZJQk.js} +85 -80
  51. package/lib/MdxPage-HjFSZJQk.js.map +1 -0
  52. package/lib/{OperationList-BkNQEsNs.js → OperationList-DzE32oyS.js} +971 -961
  53. package/lib/{OperationList-BkNQEsNs.js.map → OperationList-DzE32oyS.js.map} +1 -1
  54. package/lib/assets/{worker-BHClFO3A.js → worker-CyxLedqF.js} +435 -431
  55. package/lib/assets/{worker-BHClFO3A.js.map → worker-CyxLedqF.js.map} +1 -1
  56. package/lib/{createServer-CpJlUPtn.js → createServer-DTiCfoql.js} +5 -1
  57. package/lib/{createServer-CpJlUPtn.js.map → createServer-DTiCfoql.js.map} +1 -1
  58. package/lib/{index-C7SaIME0.js → index-NNCc1BSK.js} +5 -4
  59. package/lib/{index-C7SaIME0.js.map → index-NNCc1BSK.js.map} +1 -1
  60. package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
  61. package/lib/index.esm-Bm8pj-bc.js.map +1 -0
  62. package/lib/ui/Drawer.js +79 -79
  63. package/lib/ui/Drawer.js.map +1 -1
  64. package/lib/zudoku.components.js +445 -414
  65. package/lib/zudoku.components.js.map +1 -1
  66. package/lib/zudoku.openapi-worker.js +1 -1
  67. package/lib/zudoku.plugin-markdown.js +1 -1
  68. package/lib/zudoku.plugin-markdown.js.map +1 -1
  69. package/lib/zudoku.plugin-openapi.js +1 -1
  70. package/package.json +4 -3
  71. package/src/app/entry.client.tsx +9 -0
  72. package/src/app/entry.server.tsx +1 -0
  73. package/src/lib/components/Layout.tsx +8 -3
  74. package/src/lib/components/MobileTopNavigation.tsx +18 -18
  75. package/src/lib/components/Search.tsx +3 -3
  76. package/src/lib/components/navigation/Sidebar.tsx +18 -8
  77. package/src/lib/components/navigation/SidebarCategory.tsx +3 -0
  78. package/src/lib/components/navigation/SidebarItem.tsx +12 -2
  79. package/src/lib/oas/graphql/index.ts +4 -0
  80. package/src/lib/plugins/markdown/MdxPage.tsx +2 -0
  81. package/src/lib/plugins/markdown/index.tsx +1 -0
  82. package/src/lib/plugins/openapi/OperationList.tsx +62 -2
  83. package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
  84. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  85. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  86. package/lib/MdxPage-B2FpJ9KC.js.map +0 -1
@@ -1,38 +1,39 @@
1
1
  import { j as d } from "./jsx-runtime-B6kdoens.js";
2
2
  import { g as Ht } from "./utils-DcpDOncX.js";
3
+ import { H as Tn } from "./index.esm-Bm8pj-bc.js";
3
4
  import { C as nr } from "./CategoryHeading-Bb9dqxD3.js";
4
- import { I as Tn, M as be, H as _e, P as je } from "./Markdown-ievDDhFT.js";
5
+ import { I as Cn, M as be, H as _e, P as we } from "./Markdown-ievDDhFT.js";
5
6
  import { c as D } from "./cn-BmFQLtkS.js";
6
- import { CheckIcon as Cn, CopyIcon as Pn, ChevronDownIcon as kn, CircleFadingPlusIcon as En, CircleDotIcon as Nn, CircleIcon as Rn, SquareMinusIcon as An, SquarePlusIcon as qn, ListPlusIcon as In } from "lucide-react";
7
- import { useContext as Ln, useMemo as Jr, useTransition as Gr, useState as ve, useRef as Vr, useEffect as Qr, useLayoutEffect as Un, Fragment as Fn, useCallback as _n } from "react";
7
+ import { CheckIcon as Pn, CopyIcon as kn, ChevronDownIcon as En, CircleFadingPlusIcon as Nn, CircleDotIcon as Rn, CircleIcon as An, SquareMinusIcon as qn, SquarePlusIcon as In, ListPlusIcon as Ln } from "lucide-react";
8
+ import { useContext as Un, useMemo as Jr, useTransition as Gr, useState as ve, useRef as Vr, useEffect as Qr, useLayoutEffect as Fn, Fragment as _n, useCallback as Hn } from "react";
8
9
  import { a as Kr } from "./state-tsXBLONe.js";
9
10
  import { Button as Dr } from "./ui/Button.js";
10
- import { h as Hn } from "./object_hash-CvlLgU-M.js";
11
- import { a as Bn, u as Bt } from "./context-D1nXWxm7.js";
12
- import { g as ut, S as Yr, C as Xr, P as Mn } from "./index-C7SaIME0.js";
13
- import { Tabs as zn, TabsList as Wn, TabsTrigger as Jn, TabsContent as Gn } from "./ui/Tabs.js";
14
- import { T as fe, b as Vn } from "./SidebarBadge-DxFJcJ6V.js";
15
- import { Card as de, CardHeader as Qn, CardTitle as Kn, CardContent as Dn } from "./ui/Card.js";
16
- import { g as Yn, c as He, a as Xn } from "./_commonjsHelpers-BkfeUUK-.js";
17
- import { _ as Zn } from "./__vite-browser-external-BYRIRx8p.js";
18
- import { u as eo } from "./index-Yn8c3UWE.js";
11
+ import { h as Bn } from "./object_hash-CvlLgU-M.js";
12
+ import { a as Mn, u as Bt } from "./context-D1nXWxm7.js";
13
+ import { g as ut, S as Yr, C as Xr, P as zn } from "./index-NNCc1BSK.js";
14
+ import { Tabs as Wn, TabsList as Jn, TabsTrigger as Gn, TabsContent as Vn } from "./ui/Tabs.js";
15
+ import { T as fe, b as Qn } from "./SidebarBadge-DxFJcJ6V.js";
16
+ import { Card as de, CardHeader as Kn, CardTitle as Dn, CardContent as Yn } from "./ui/Card.js";
17
+ import { g as Xn, c as He, a as Zn } from "./_commonjsHelpers-BkfeUUK-.js";
18
+ import { _ as eo } from "./__vite-browser-external-BYRIRx8p.js";
19
+ import { u as to } from "./index-Yn8c3UWE.js";
19
20
  import { S as Mt } from "./SyntaxHighlight-DkLOsjHS.js";
20
21
  import { B as or } from "./Button-jK0EsymC.js";
21
22
  import * as ee from "@radix-ui/react-collapsible";
22
23
  import * as De from "@radix-ui/react-tabs";
23
- function to(t, e) {
24
+ function ro(t, e) {
24
25
  return e;
25
26
  }
26
27
  const zt = (t, ...e) => {
27
- const r = Ln(Bn);
28
+ const r = Un(Mn);
28
29
  if (r === void 0)
29
30
  throw new Error("useGraphQL must be used within a GraphQLProvider");
30
- const o = Jr(() => Hn(e[0] ?? {}), [e]);
31
+ const o = Jr(() => Bn(e[0] ?? {}), [e]);
31
32
  return {
32
33
  queryFn: () => r.fetch(t, ...e),
33
34
  queryKey: [t, o]
34
35
  };
35
- }, ro = ut(
36
+ }, no = ut(
36
37
  /* GraphQL */
37
38
  `
38
39
  query ServersQuery($input: JSON!, $type: SchemaType!) {
@@ -56,30 +57,30 @@ const zt = (t, ...e) => {
56
57
  },
57
58
  variant: "ghost",
58
59
  size: "icon",
59
- children: e ? /* @__PURE__ */ d.jsx(Cn, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ d.jsx(Pn, { size: 14, strokeWidth: 1.3 })
60
+ children: e ? /* @__PURE__ */ d.jsx(Pn, { className: "text-green-600", size: 14 }) : /* @__PURE__ */ d.jsx(kn, { size: 14, strokeWidth: 1.3 })
60
61
  }
61
62
  );
62
- }, no = () => {
63
- const { input: t, type: e } = Bt(), r = zt(ro, { input: t, type: e }), o = Ht(r), [, i] = Gr(), { selectedServer: a, setSelectedServer: n } = Kr(), { servers: s } = o.data.schema;
64
- return s.length === 1 ? /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2", children: [
63
+ }, oo = () => {
64
+ const { input: t, type: e } = Bt(), r = zt(no, { input: t, type: e }), o = Ht(r), [, s] = Gr(), { selectedServer: a, setSelectedServer: n } = Kr(), { servers: i } = o.data.schema;
65
+ return i.length === 1 ? /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2", children: [
65
66
  /* @__PURE__ */ d.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
66
- /* @__PURE__ */ d.jsx(Tn, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: s[0].url }),
67
- /* @__PURE__ */ d.jsx(ar, { url: s[0].url })
67
+ /* @__PURE__ */ d.jsx(Cn, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i[0].url }),
68
+ /* @__PURE__ */ d.jsx(ar, { url: i[0].url })
68
69
  ] }) : /* @__PURE__ */ d.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
69
70
  /* @__PURE__ */ d.jsxs("span", { className: "font-medium text-sm", children: [
70
- s.length > 1 ? "Endpoints" : "Endpoint",
71
+ i.length > 1 ? "Endpoints" : "Endpoint",
71
72
  ":"
72
73
  ] }),
73
74
  /* @__PURE__ */ d.jsx(
74
75
  Yr,
75
76
  {
76
77
  className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
77
- onChange: (l) => i(() => {
78
+ onChange: (l) => s(() => {
78
79
  n(l.target.value);
79
80
  }),
80
81
  value: a ?? o.data.schema.url,
81
- showChevrons: s.length > 1,
82
- options: s.map((l) => ({
82
+ showChevrons: i.length > 1,
83
+ options: i.map((l) => ({
83
84
  value: l.url,
84
85
  label: l.url
85
86
  }))
@@ -89,18 +90,18 @@ const zt = (t, ...e) => {
89
90
  ] });
90
91
  }, Zr = (t, e) => t.reduce(
91
92
  (r, o) => {
92
- const i = e(o);
93
- return r[i] || (r[i] = []), r[i].push(o), r;
93
+ const s = e(o);
94
+ return r[s] || (r[s] = []), r[s].push(o), r;
94
95
  },
95
96
  {}
96
- ), oo = (t, e) => t ? e(t) : void 0, ao = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
97
+ ), ao = (t, e) => t ? e(t) : void 0, io = (t) => t.schema != null && typeof t.schema == "object" ? t.schema : {
97
98
  type: "string"
98
- }, io = ({
99
+ }, so = ({
99
100
  parameter: t,
100
101
  group: e,
101
102
  id: r
102
103
  }) => {
103
- const o = ao(t);
104
+ const o = io(t);
104
105
  return /* @__PURE__ */ d.jsxs("li", { className: "p-4 bg-border/20 text-sm flex flex-col gap-1", children: [
105
106
  /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2", children: [
106
107
  /* @__PURE__ */ d.jsx("code", { children: e === "path" ? /* @__PURE__ */ d.jsx(
@@ -122,14 +123,14 @@ const zt = (t, ...e) => {
122
123
  }
123
124
  )
124
125
  ] });
125
- }, so = ({
126
+ }, lo = ({
126
127
  group: t,
127
128
  parameters: e,
128
129
  id: r
129
130
  }) => /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
130
131
  /* @__PURE__ */ d.jsx(_e, { level: 3, id: `${r}/${t}-parameters`, className: "capitalize", children: t === "header" ? "Headers" : `${t} Parameters` }),
131
- /* @__PURE__ */ d.jsx(de, { children: /* @__PURE__ */ d.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: e.sort((o, i) => o.required === i.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ d.jsx(
132
- io,
132
+ /* @__PURE__ */ d.jsx(de, { children: /* @__PURE__ */ d.jsx("ul", { className: "list-none m-0 px-0 divide-y ", children: e.sort((o, s) => o.required === s.required ? 0 : o.required ? -1 : 1).map((o) => /* @__PURE__ */ d.jsx(
133
+ so,
133
134
  {
134
135
  parameter: o,
135
136
  id: r,
@@ -149,41 +150,41 @@ var ir = (t, e) => {
149
150
  */
150
151
  constructor({ indent: t, join: e } = {}) {
151
152
  this.postProcessors = [], this.code = [], this.indentationCharacter = sr, this.lineJoin = lr, this.indentLine = (r, o = 0) => `${this.indentationCharacter.repeat(o)}${r}`, this.unshift = (r, o) => {
152
- const i = this.indentLine(r, o);
153
- this.code.unshift(i);
153
+ const s = this.indentLine(r, o);
154
+ this.code.unshift(s);
154
155
  }, this.push = (r, o) => {
155
- const i = this.indentLine(r, o);
156
- this.code.push(i);
156
+ const s = this.indentLine(r, o);
157
+ this.code.push(s);
157
158
  }, this.blank = () => {
158
159
  this.code.push("");
159
160
  }, this.join = () => {
160
161
  const r = this.code.join(this.lineJoin);
161
- return this.postProcessors.reduce((i, a) => a(i), r);
162
+ return this.postProcessors.reduce((s, a) => a(s), r);
162
163
  }, this.addPostProcessor = (r) => {
163
164
  this.postProcessors = [...this.postProcessors, r];
164
165
  }, this.indentationCharacter = t || sr, this.lineJoin = e ?? lr;
165
166
  }
166
- }, lo = function(t) {
167
- return Object.prototype.toString.call(t) === "[object RegExp]";
168
167
  }, co = function(t) {
168
+ return Object.prototype.toString.call(t) === "[object RegExp]";
169
+ }, uo = function(t) {
169
170
  var e = typeof t;
170
171
  return t !== null && (e === "object" || e === "function");
171
172
  }, Wt = {};
172
173
  Object.defineProperty(Wt, "__esModule", { value: !0 });
173
174
  Wt.default = (t) => Object.getOwnPropertySymbols(t).filter((e) => Object.prototype.propertyIsEnumerable.call(t, e));
174
- const uo = lo, po = co, fo = Wt.default;
175
- var ho = (t, e, r) => {
175
+ const po = co, fo = uo, ho = Wt.default;
176
+ var yo = (t, e, r) => {
176
177
  const o = [];
177
- return function i(a, n, s) {
178
- n = n || {}, n.indent = n.indent || " ", s = s || "";
178
+ return function s(a, n, i) {
179
+ n = n || {}, n.indent = n.indent || " ", i = i || "";
179
180
  let l;
180
181
  n.inlineCharacterLimit === void 0 ? l = {
181
182
  newLine: `
182
183
  `,
183
184
  newLineOrSpace: `
184
185
  `,
185
- pad: s,
186
- indent: s + n.indent
186
+ pad: i,
187
+ indent: i + n.indent
187
188
  } : l = {
188
189
  newLine: "@@__STRINGIFY_OBJECT_NEW_LINE__@@",
189
190
  newLineOrSpace: "@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
@@ -195,11 +196,11 @@ var ho = (t, e, r) => {
195
196
  return u;
196
197
  const f = u.replace(new RegExp(l.newLine, "g"), "").replace(new RegExp(l.newLineOrSpace, "g"), " ").replace(new RegExp(l.pad + "|" + l.indent, "g"), "");
197
198
  return f.length <= n.inlineCharacterLimit ? f : u.replace(new RegExp(l.newLine + "|" + l.newLineOrSpace, "g"), `
198
- `).replace(new RegExp(l.pad, "g"), s).replace(new RegExp(l.indent, "g"), s + n.indent);
199
+ `).replace(new RegExp(l.pad, "g"), i).replace(new RegExp(l.indent, "g"), i + n.indent);
199
200
  };
200
201
  if (o.indexOf(a) !== -1)
201
202
  return '"[Circular]"';
202
- if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" || uo(a))
203
+ if (a == null || typeof a == "number" || typeof a == "boolean" || typeof a == "function" || typeof a == "symbol" || po(a))
203
204
  return String(a);
204
205
  if (a instanceof Date)
205
206
  return `new Date('${a.toISOString()}')`;
@@ -209,19 +210,19 @@ var ho = (t, e, r) => {
209
210
  o.push(a);
210
211
  const u = "[" + l.newLine + a.map((f, p) => {
211
212
  const h = a.length - 1 === p ? l.newLine : "," + l.newLineOrSpace;
212
- let y = i(f, n, s + n.indent);
213
+ let y = s(f, n, i + n.indent);
213
214
  return n.transform && (y = n.transform(a, p, y)), l.indent + y + h;
214
215
  }).join("") + l.pad + "]";
215
216
  return o.pop(), c(u);
216
217
  }
217
- if (po(a)) {
218
- let u = Object.keys(a).concat(fo(a));
218
+ if (fo(a)) {
219
+ let u = Object.keys(a).concat(ho(a));
219
220
  if (n.filter && (u = u.filter((p) => n.filter(a, p))), u.length === 0)
220
221
  return "{}";
221
222
  o.push(a);
222
223
  const f = "{" + l.newLine + u.map((p, h) => {
223
- const y = u.length - 1 === h ? l.newLine : "," + l.newLineOrSpace, g = typeof p == "symbol", b = !g && /^[a-z$_][a-z$_0-9]*$/i.test(p), x = g || b ? p : i(p, n);
224
- let m = i(a[p], n, s + n.indent);
224
+ const y = u.length - 1 === h ? l.newLine : "," + l.newLineOrSpace, g = typeof p == "symbol", b = !g && /^[a-z$_][a-z$_0-9]*$/i.test(p), x = g || b ? p : s(p, n);
225
+ let m = s(a[p], n, i + n.indent);
225
226
  return n.transform && (m = n.transform(a, p, m)), l.indent + String(x) + ": " + m + y;
226
227
  }).join("") + l.pad + "}";
227
228
  return o.pop(), c(f);
@@ -230,13 +231,13 @@ var ho = (t, e, r) => {
230
231
  ` ? "\\n" : "\\r"), n.singleQuotes === !1 ? (a = a.replace(/"/g, '\\"'), `"${a}"`) : (a = a.replace(/\\?'/g, "\\'"), `'${a}'`);
231
232
  }(t, e, r);
232
233
  };
233
- const z = /* @__PURE__ */ Yn(ho);
234
+ const z = /* @__PURE__ */ Xn(yo);
234
235
  function We(t, e = {}) {
235
- const { delimiter: r = '"', escapeChar: o = "\\", escapeNewlines: i = !0 } = e;
236
+ const { delimiter: r = '"', escapeChar: o = "\\", escapeNewlines: s = !0 } = e;
236
237
  return [...t.toString()].map((n) => n === "\b" ? `${o}b` : n === " " ? `${o}t` : n === `
237
- ` ? i ? `${o}n` : n : n === "\f" ? `${o}f` : n === "\r" ? i ? `${o}r` : n : n === o ? o + o : n === r ? o + r : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
238
+ ` ? s ? `${o}n` : n : n === "\f" ? `${o}f` : n === "\r" ? s ? `${o}r` : n : n === o ? o + o : n === r ? o + r : n < " " || n > "~" ? JSON.stringify(n).slice(1, -1) : n).join("");
238
239
  }
239
- var Je = (t) => We(t, { delimiter: "'" }), H = (t) => We(t, { delimiter: '"' }), yo = {
240
+ var Je = (t) => We(t, { delimiter: "'" }), H = (t) => We(t, { delimiter: '"' }), mo = {
240
241
  info: {
241
242
  key: "libcurl",
242
243
  title: "Libcurl",
@@ -244,15 +245,15 @@ var Je = (t) => We(t, { delimiter: "'" }), H = (t) => We(t, { delimiter: '"' }),
244
245
  description: "Simple REST and HTTP API Client for C",
245
246
  extname: ".c"
246
247
  },
247
- convert: ({ method: t, fullUrl: e, headersObj: r, allHeaders: o, postData: i }) => {
248
- const { push: a, blank: n, join: s } = new C();
248
+ convert: ({ method: t, fullUrl: e, headersObj: r, allHeaders: o, postData: s }) => {
249
+ const { push: a, blank: n, join: i } = new C();
249
250
  a("CURL *hnd = curl_easy_init();"), n(), a(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${t.toUpperCase()}");`), a("curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);"), a(`curl_easy_setopt(hnd, CURLOPT_URL, "${e}");`);
250
251
  const l = Object.keys(r);
251
252
  return l.length && (n(), a("struct curl_slist *headers = NULL;"), l.forEach((c) => {
252
253
  a(`headers = curl_slist_append(headers, "${c}: ${H(r[c])}");`);
253
- }), a("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), a(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), i.text && (n(), a(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(i.text)});`)), n(), a("CURLcode ret = curl_easy_perform(hnd);"), s();
254
+ }), a("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), o.cookie && (n(), a(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${o.cookie}");`)), s.text && (n(), a(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(s.text)});`)), n(), a("CURLcode ret = curl_easy_perform(hnd);"), i();
254
255
  }
255
- }, mo = {
256
+ }, go = {
256
257
  info: {
257
258
  key: "c",
258
259
  title: "C",
@@ -260,19 +261,19 @@ var Je = (t) => We(t, { delimiter: "'" }), H = (t) => We(t, { delimiter: '"' }),
260
261
  cli: "c"
261
262
  },
262
263
  clientsById: {
263
- libcurl: yo
264
+ libcurl: mo
264
265
  }
265
266
  }, J = (t, e) => Object.keys(t).find((r) => r.toLowerCase() === e.toLowerCase()), ue = (t, e) => {
266
267
  const r = J(t, e);
267
268
  if (r)
268
269
  return t[r];
269
- }, pt = (t, e) => !!J(t, e), go = (t) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
270
+ }, pt = (t, e) => !!J(t, e), bo = (t) => ["application/json", "application/x-json", "text/json", "text/x-json", "+json"].some(
270
271
  (e) => t.indexOf(e) > -1
271
272
  ), cr = class {
272
273
  constructor(t) {
273
274
  this.name = "", this.toString = () => `:${this.name}`, this.name = t;
274
275
  }
275
- }, bo = class {
276
+ }, vo = class {
276
277
  constructor(t) {
277
278
  this.path = "", this.toString = () => `(clojure.java.io/file "${this.path}")`, this.path = t;
278
279
  }
@@ -296,8 +297,8 @@ ${r}`);
296
297
  return `#"${t.source}"`;
297
298
  case "object": {
298
299
  const e = Object.keys(t).reduce((r, o) => {
299
- const i = et(o.length + 2, Ct(t[o]));
300
- return `${r}:${o} ${i}
300
+ const s = et(o.length + 2, Ct(t[o]));
301
+ return `${r}:${o} ${s}
301
302
  `;
302
303
  }, "").trim();
303
304
  return `{${et(1, e)}}`;
@@ -309,7 +310,7 @@ ${r}`);
309
310
  default:
310
311
  return t.toString();
311
312
  }
312
- }, vo = {
313
+ }, xo = {
313
314
  info: {
314
315
  key: "clj_http",
315
316
  title: "clj-http",
@@ -317,12 +318,12 @@ ${r}`);
317
318
  description: "An idiomatic clojure http client wrapping the apache client.",
318
319
  extname: ".clj"
319
320
  },
320
- convert: ({ queryObj: t, method: e, postData: r, url: o, allHeaders: i }, a) => {
321
- const { push: n, join: s } = new C({ indent: a == null ? void 0 : a.indent }), l = ["get", "post", "put", "delete", "patch", "head", "options"];
321
+ convert: ({ queryObj: t, method: e, postData: r, url: o, allHeaders: s }, a) => {
322
+ const { push: n, join: i } = new C({ indent: a == null ? void 0 : a.indent }), l = ["get", "post", "put", "delete", "patch", "head", "options"];
322
323
  if (e = e.toLowerCase(), !l.includes(e))
323
- return n("Method not supported"), s();
324
+ return n("Method not supported"), i();
324
325
  const c = {
325
- headers: i,
326
+ headers: s,
326
327
  "query-params": t
327
328
  };
328
329
  switch (r.mimeType) {
@@ -351,7 +352,7 @@ ${r}`);
351
352
  if (r.params) {
352
353
  c.multipart = r.params.map((f) => f.fileName && !f.value ? {
353
354
  name: f.name,
354
- content: new bo(f.fileName)
355
+ content: new vo(f.fileName)
355
356
  } : {
356
357
  name: f.name,
357
358
  content: f.value
@@ -378,18 +379,18 @@ ${r}`);
378
379
  const u = 11 + e.length + o.length, f = et(u, Ct(ur(c)));
379
380
  n(`(client/${e} "${o}" ${f})`);
380
381
  }
381
- return s();
382
+ return i();
382
383
  }
383
- }, xo = {
384
+ }, $o = {
384
385
  info: {
385
386
  key: "clojure",
386
387
  title: "Clojure",
387
388
  default: "clj_http"
388
389
  },
389
390
  clientsById: {
390
- clj_http: vo
391
+ clj_http: xo
391
392
  }
392
- }, $o = (t) => {
393
+ }, jo = (t) => {
393
394
  let e = ue(t, "accept-encoding");
394
395
  if (!e)
395
396
  return [];
@@ -397,12 +398,12 @@ ${r}`);
397
398
  gzip: "DecompressionMethods.GZip",
398
399
  deflate: "DecompressionMethods.Deflate"
399
400
  }, o = [];
400
- return typeof e == "string" && (e = [e]), e.forEach((i) => {
401
- i.split(",").forEach((a) => {
401
+ return typeof e == "string" && (e = [e]), e.forEach((s) => {
402
+ s.split(",").forEach((a) => {
402
403
  const n = /\s*([^;\s]+)/.exec(a);
403
404
  if (n) {
404
- const s = r[n[1]];
405
- s && o.push(s);
405
+ const i = r[n[1]];
406
+ i && o.push(i);
406
407
  }
407
408
  });
408
409
  }), o;
@@ -414,15 +415,15 @@ ${r}`);
414
415
  description: ".NET Standard HTTP Client",
415
416
  extname: ".cs"
416
417
  },
417
- convert: ({ allHeaders: t, postData: e, method: r, fullUrl: o }, i) => {
418
+ convert: ({ allHeaders: t, postData: e, method: r, fullUrl: o }, s) => {
418
419
  var h, y;
419
420
  const a = {
420
421
  indent: " ",
421
- ...i
422
- }, { push: n, join: s } = new C({ indent: a.indent });
422
+ ...s
423
+ }, { push: n, join: i } = new C({ indent: a.indent });
423
424
  n("using System.Net.Http.Headers;");
424
425
  let l = "";
425
- const c = !!t.cookie, u = $o(t);
426
+ const c = !!t.cookie, u = jo(t);
426
427
  (c || u.length) && (l = "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(${l});`), n("var request = new HttpRequestMessage"), n("{");
427
428
  const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
428
429
  r = r.toUpperCase(), r && f.includes(r) ? r = `HttpMethod.${r[0]}${r.substring(1).toLowerCase()}` : r = `new HttpMethod("${r}")`, n(`Method = ${r},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
@@ -456,13 +457,13 @@ ${r}`);
456
457
  break;
457
458
  }
458
459
  }
459
- 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("}"), s();
460
+ 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("}"), i();
460
461
  }
461
462
  };
462
- function jo(t) {
463
+ function So(t) {
463
464
  return t[0].toUpperCase() + t.slice(1).toLowerCase();
464
465
  }
465
- var So = {
466
+ var Oo = {
466
467
  info: {
467
468
  key: "restsharp",
468
469
  title: "RestSharp",
@@ -471,8 +472,8 @@ var So = {
471
472
  extname: ".cs",
472
473
  installation: "dotnet add package RestSharp"
473
474
  },
474
- convert: ({ method: t, fullUrl: e, headersObj: r, cookies: o, postData: i, uriObj: a }) => {
475
- const { push: n, join: s } = new C();
475
+ convert: ({ method: t, fullUrl: e, headersObj: r, cookies: o, postData: s, uriObj: a }) => {
476
+ const { push: n, join: i } = new C();
476
477
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(
477
478
  t.toUpperCase()
478
479
  ))
@@ -480,43 +481,43 @@ var So = {
480
481
  n(`using RestSharp;
481
482
 
482
483
  `), n(`var options = new RestClientOptions("${e}");`), n("var client = new RestClient(options);"), n('var request = new RestRequest("");');
483
- const c = i.mimeType && i.mimeType === "multipart/form-data";
484
+ const c = s.mimeType && s.mimeType === "multipart/form-data";
484
485
  switch (c && n("request.AlwaysMultipartFormData = true;"), Object.keys(r).forEach((u) => {
485
- if (i.mimeType && u.toLowerCase() === "content-type" && i.text) {
486
- c && i.boundary && n(`request.FormBoundary = "${i.boundary}";`);
486
+ if (s.mimeType && u.toLowerCase() === "content-type" && s.text) {
487
+ c && s.boundary && n(`request.FormBoundary = "${s.boundary}";`);
487
488
  return;
488
489
  }
489
490
  n(`request.AddHeader("${u}", "${H(r[u])}");`);
490
491
  }), o.forEach(({ name: u, value: f }) => {
491
492
  n(`request.AddCookie("${u}", "${H(f)}", "${a.pathname}", "${a.host}");`);
492
- }), i.mimeType) {
493
+ }), s.mimeType) {
493
494
  case "multipart/form-data":
494
- if (!i.params) break;
495
- i.params.forEach((u) => {
495
+ if (!s.params) break;
496
+ s.params.forEach((u) => {
496
497
  u.fileName ? n(`request.AddFile("${u.name}", "${u.fileName}");`) : n(`request.AddParameter("${u.name}", "${u.value}");`);
497
498
  });
498
499
  break;
499
500
  case "application/x-www-form-urlencoded":
500
- if (!i.params) break;
501
- i.params.forEach((u) => {
501
+ if (!s.params) break;
502
+ s.params.forEach((u) => {
502
503
  n(`request.AddParameter("${u.name}", "${u.value}");`);
503
504
  });
504
505
  break;
505
506
  case "application/json": {
506
- if (!i.text) break;
507
- const u = JSON.stringify(i.text);
507
+ if (!s.text) break;
508
+ const u = JSON.stringify(s.text);
508
509
  n(`request.AddJsonBody(${u}, false);`);
509
510
  break;
510
511
  }
511
512
  default:
512
- if (!i.text) break;
513
- n(`request.AddStringBody("${i.text}", "${i.mimeType}");`);
513
+ if (!s.text) break;
514
+ n(`request.AddStringBody("${s.text}", "${s.mimeType}");`);
514
515
  }
515
- return n(`var response = await client.${jo(t)}Async(request);
516
+ return n(`var response = await client.${So(t)}Async(request);
516
517
  `), n(`Console.WriteLine("{0}", response.Content);
517
- `), s();
518
+ `), i();
518
519
  }
519
- }, Oo = {
520
+ }, To = {
520
521
  info: {
521
522
  key: "csharp",
522
523
  title: "C#",
@@ -525,9 +526,9 @@ var So = {
525
526
  },
526
527
  clientsById: {
527
528
  httpclient: wo,
528
- restsharp: So
529
+ restsharp: Oo
529
530
  }
530
- }, To = {
531
+ }, Co = {
531
532
  info: {
532
533
  key: "native",
533
534
  title: "NewRequest",
@@ -535,17 +536,17 @@ var So = {
535
536
  description: "Golang HTTP client request",
536
537
  extname: ".go"
537
538
  },
538
- convert: ({ postData: t, method: e, allHeaders: r, fullUrl: o }, i = {}) => {
539
- const { blank: a, push: n, join: s } = new C({ indent: " " }), { showBoilerplate: l = !0, checkErrors: c = !1, printBody: u = !0, timeout: f = -1 } = i, p = c ? "err" : "_", h = l ? 1 : 0, y = () => {
539
+ convert: ({ postData: t, method: e, allHeaders: r, fullUrl: o }, s = {}) => {
540
+ const { blank: a, push: n, join: i } = new C({ indent: " " }), { showBoilerplate: l = !0, checkErrors: c = !1, printBody: u = !0, timeout: f = -1 } = s, p = c ? "err" : "_", h = l ? 1 : 0, y = () => {
540
541
  c && (n("if err != nil {", h), n("panic(err)", h + 1), n("}", h));
541
542
  };
542
543
  l && (n("package main"), a(), n("import ("), n('"fmt"', h), f > 0 && n('"time"', h), t.text && n('"strings"', h), n('"net/http"', h), u && n('"io"', h), n(")"), a(), n("func main() {"), a());
543
544
  const g = f > 0, b = g, x = b ? "client" : "http.DefaultClient";
544
545
  return b && (n("client := http.Client{", h), g && n(`Timeout: time.Duration(${f} * time.Second),`, h + 1), n("}", h), a()), n(`url := "${o}"`, h), a(), t.text ? (n(`payload := strings.NewReader(${JSON.stringify(t.text)})`, h), a(), n(`req, ${p} := http.NewRequest("${e}", url, payload)`, h), a()) : (n(`req, ${p} := http.NewRequest("${e}", url, nil)`, h), a()), y(), Object.keys(r).length && (Object.keys(r).forEach((m) => {
545
546
  n(`req.Header.Add("${m}", "${H(r[m])}")`, h);
546
- }), a()), n(`res, ${p} := ${x}.Do(req)`, h), y(), u && (a(), n("defer res.Body.Close()", h), n(`body, ${p} := io.ReadAll(res.Body)`, h), y()), a(), u && n("fmt.Println(string(body))", h), l && (a(), n("}")), s();
547
+ }), a()), n(`res, ${p} := ${x}.Do(req)`, h), y(), u && (a(), n("defer res.Body.Close()", h), n(`body, ${p} := io.ReadAll(res.Body)`, h), y()), a(), u && n("fmt.Println(string(body))", h), l && (a(), n("}")), i();
547
548
  }
548
- }, Co = {
549
+ }, Po = {
549
550
  info: {
550
551
  key: "go",
551
552
  title: "Go",
@@ -553,10 +554,10 @@ var So = {
553
554
  cli: "go"
554
555
  },
555
556
  clientsById: {
556
- native: To
557
+ native: Co
557
558
  }
558
559
  }, pr = `\r
559
- `, Po = {
560
+ `, ko = {
560
561
  info: {
561
562
  key: "http1.1",
562
563
  title: "HTTP/1.1",
@@ -564,19 +565,19 @@ var So = {
564
565
  description: "HTTP/1.1 request string in accordance with RFC 7230",
565
566
  extname: null
566
567
  },
567
- convert: ({ method: t, fullUrl: e, uriObj: r, httpVersion: o, allHeaders: i, postData: a }, n) => {
568
- const s = {
568
+ convert: ({ method: t, fullUrl: e, uriObj: r, httpVersion: o, allHeaders: s, postData: a }, n) => {
569
+ const i = {
569
570
  absoluteURI: !1,
570
571
  autoContentLength: !0,
571
572
  autoHost: !0,
572
573
  ...n
573
- }, { blank: l, push: c, join: u } = new C({ indent: "", join: pr }), f = s.absoluteURI ? e : r.path;
574
+ }, { blank: l, push: c, join: u } = new C({ indent: "", join: pr }), f = i.absoluteURI ? e : r.path;
574
575
  c(`${t} ${f} ${o}`);
575
- const p = Object.keys(i);
576
+ const p = Object.keys(s);
576
577
  if (p.forEach((g) => {
577
578
  const b = g.toLowerCase().replace(/(^|-)(\w)/g, (x) => x.toUpperCase());
578
- c(`${b}: ${i[g]}`);
579
- }), s.autoHost && !p.includes("host") && c(`Host: ${r.host}`), s.autoContentLength && a.text && !p.includes("content-length")) {
579
+ c(`${b}: ${s[g]}`);
580
+ }), i.autoHost && !p.includes("host") && c(`Host: ${r.host}`), i.autoContentLength && a.text && !p.includes("content-length")) {
580
581
  const b = new TextEncoder().encode(a.text).length.toString();
581
582
  c(`Content-Length: ${b}`);
582
583
  }
@@ -584,16 +585,16 @@ var So = {
584
585
  const h = u(), y = a.text || "";
585
586
  return `${h}${pr}${y}`;
586
587
  }
587
- }, ko = {
588
+ }, Eo = {
588
589
  info: {
589
590
  key: "http",
590
591
  title: "HTTP",
591
592
  default: "http1.1"
592
593
  },
593
594
  clientsById: {
594
- "http1.1": Po
595
+ "http1.1": ko
595
596
  }
596
- }, Eo = {
597
+ }, No = {
597
598
  info: {
598
599
  key: "asynchttp",
599
600
  title: "AsyncHttp",
@@ -601,16 +602,16 @@ var So = {
601
602
  description: "Asynchronous Http and WebSocket Client library for Java",
602
603
  extname: ".java"
603
604
  },
604
- convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, i) => {
605
+ convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, s) => {
605
606
  const a = {
606
607
  indent: " ",
607
- ...i
608
- }, { blank: n, push: s, join: l } = new C({ indent: a.indent });
609
- return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"), s(`client.prepare("${t.toUpperCase()}", "${o}")`), Object.keys(e).forEach((c) => {
610
- s(`.setHeader("${c}", "${H(e[c])}")`, 1);
611
- }), r.text && s(`.setBody(${JSON.stringify(r.text)})`, 1), s(".execute()", 1), s(".toCompletableFuture()", 1), s(".thenAccept(System.out::println)", 1), s(".join();", 1), n(), s("client.close();"), l();
608
+ ...s
609
+ }, { blank: n, push: i, join: l } = new C({ indent: a.indent });
610
+ return i("AsyncHttpClient client = new DefaultAsyncHttpClient();"), i(`client.prepare("${t.toUpperCase()}", "${o}")`), Object.keys(e).forEach((c) => {
611
+ i(`.setHeader("${c}", "${H(e[c])}")`, 1);
612
+ }), r.text && i(`.setBody(${JSON.stringify(r.text)})`, 1), i(".execute()", 1), i(".toCompletableFuture()", 1), i(".thenAccept(System.out::println)", 1), i(".join();", 1), n(), i("client.close();"), l();
612
613
  }
613
- }, No = {
614
+ }, Ro = {
614
615
  info: {
615
616
  key: "nethttp",
616
617
  title: "java.net.http",
@@ -618,11 +619,11 @@ var So = {
618
619
  description: "Java Standardized HTTP Client API",
619
620
  extname: ".java"
620
621
  },
621
- convert: ({ allHeaders: t, fullUrl: e, method: r, postData: o }, i) => {
622
+ convert: ({ allHeaders: t, fullUrl: e, method: r, postData: o }, s) => {
622
623
  const a = {
623
624
  indent: " ",
624
- ...i
625
- }, { push: n, join: s } = new C({ indent: a.indent });
625
+ ...s
626
+ }, { push: n, join: i } = new C({ indent: a.indent });
626
627
  return n("HttpRequest request = HttpRequest.newBuilder()"), n(`.uri(URI.create("${e}"))`, 2), Object.keys(t).forEach((l) => {
627
628
  n(`.header("${l}", "${H(t[l])}")`, 2);
628
629
  }), o.text ? n(
@@ -630,9 +631,9 @@ var So = {
630
631
  2
631
632
  ) : n(`.method("${r.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`, 2), n(".build();", 2), n(
632
633
  "HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"
633
- ), n("System.out.println(response.body());"), s();
634
+ ), n("System.out.println(response.body());"), i();
634
635
  }
635
- }, Ro = {
636
+ }, Ao = {
636
637
  info: {
637
638
  key: "okhttp",
638
639
  title: "OkHttp",
@@ -640,16 +641,16 @@ var So = {
640
641
  description: "An HTTP Request Client Library",
641
642
  extname: ".java"
642
643
  },
643
- convert: ({ postData: t, method: e, fullUrl: r, allHeaders: o }, i) => {
644
+ convert: ({ postData: t, method: e, fullUrl: r, allHeaders: o }, s) => {
644
645
  const a = {
645
646
  indent: " ",
646
- ...i
647
- }, { push: n, blank: s, join: l } = new C({ indent: a.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
648
- return n("OkHttpClient client = new OkHttpClient();"), s(), t.text && (t.boundary ? n(`MediaType mediaType = MediaType.parse("${t.mimeType}; boundary=${t.boundary}");`) : n(`MediaType mediaType = MediaType.parse("${t.mimeType}");`), n(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(t.text)});`)), n("Request request = new Request.Builder()"), n(`.url("${r}")`, 1), c.includes(e.toUpperCase()) ? u.includes(e.toUpperCase()) ? t.text ? n(`.${e.toLowerCase()}(body)`, 1) : n(`.${e.toLowerCase()}(null)`, 1) : n(`.${e.toLowerCase()}()`, 1) : t.text ? n(`.method("${e.toUpperCase()}", body)`, 1) : n(`.method("${e.toUpperCase()}", null)`, 1), Object.keys(o).forEach((f) => {
647
+ ...s
648
+ }, { push: n, blank: i, join: l } = new C({ indent: a.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
649
+ return n("OkHttpClient client = new OkHttpClient();"), i(), t.text && (t.boundary ? n(`MediaType mediaType = MediaType.parse("${t.mimeType}; boundary=${t.boundary}");`) : n(`MediaType mediaType = MediaType.parse("${t.mimeType}");`), n(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(t.text)});`)), n("Request request = new Request.Builder()"), n(`.url("${r}")`, 1), c.includes(e.toUpperCase()) ? u.includes(e.toUpperCase()) ? t.text ? n(`.${e.toLowerCase()}(body)`, 1) : n(`.${e.toLowerCase()}(null)`, 1) : n(`.${e.toLowerCase()}()`, 1) : t.text ? n(`.method("${e.toUpperCase()}", body)`, 1) : n(`.method("${e.toUpperCase()}", null)`, 1), Object.keys(o).forEach((f) => {
649
650
  n(`.addHeader("${f}", "${H(o[f])}")`, 1);
650
- }), n(".build();", 1), s(), n("Response response = client.newCall(request).execute();"), l();
651
+ }), n(".build();", 1), i(), n("Response response = client.newCall(request).execute();"), l();
651
652
  }
652
- }, Ao = {
653
+ }, qo = {
653
654
  info: {
654
655
  key: "unirest",
655
656
  title: "Unirest",
@@ -657,28 +658,28 @@ var So = {
657
658
  description: "Lightweight HTTP Request Client Library",
658
659
  extname: ".java"
659
660
  },
660
- convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, i) => {
661
+ convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, s) => {
661
662
  const a = {
662
663
  indent: " ",
663
- ...i
664
- }, { join: n, push: s } = new C({ indent: a.indent });
665
- return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()) ? s(`HttpResponse<String> response = Unirest.${t.toLowerCase()}("${o}")`) : s(`HttpResponse<String> response = Unirest.customMethod("${t.toUpperCase()}","${o}")`), Object.keys(e).forEach((c) => {
666
- s(`.header("${c}", "${H(e[c])}")`, 1);
667
- }), r.text && s(`.body(${JSON.stringify(r.text)})`, 1), s(".asString();", 1), n();
664
+ ...s
665
+ }, { join: n, push: i } = new C({ indent: a.indent });
666
+ return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()) ? i(`HttpResponse<String> response = Unirest.${t.toLowerCase()}("${o}")`) : i(`HttpResponse<String> response = Unirest.customMethod("${t.toUpperCase()}","${o}")`), Object.keys(e).forEach((c) => {
667
+ i(`.header("${c}", "${H(e[c])}")`, 1);
668
+ }), r.text && i(`.body(${JSON.stringify(r.text)})`, 1), i(".asString();", 1), n();
668
669
  }
669
- }, qo = {
670
+ }, Io = {
670
671
  info: {
671
672
  key: "java",
672
673
  title: "Java",
673
674
  default: "unirest"
674
675
  },
675
676
  clientsById: {
676
- asynchttp: Eo,
677
- nethttp: No,
678
- okhttp: Ro,
679
- unirest: Ao
677
+ asynchttp: No,
678
+ nethttp: Ro,
679
+ okhttp: Ao,
680
+ unirest: qo
680
681
  }
681
- }, Io = {
682
+ }, Lo = {
682
683
  info: {
683
684
  key: "axios",
684
685
  title: "Axios",
@@ -687,42 +688,42 @@ var So = {
687
688
  extname: ".js",
688
689
  installation: "npm install axios --save"
689
690
  },
690
- convert: ({ allHeaders: t, method: e, url: r, queryObj: o, postData: i }, a) => {
691
+ convert: ({ allHeaders: t, method: e, url: r, queryObj: o, postData: s }, a) => {
691
692
  const n = {
692
693
  indent: " ",
693
694
  ...a
694
- }, { blank: s, push: l, join: c, addPostProcessor: u } = new C({ indent: n.indent });
695
- l("import axios from 'axios';"), s();
695
+ }, { blank: i, push: l, join: c, addPostProcessor: u } = new C({ indent: n.indent });
696
+ l("import axios from 'axios';"), i();
696
697
  const f = {
697
698
  method: e,
698
699
  url: r
699
700
  };
700
- switch (Object.keys(o).length && (f.params = o), Object.keys(t).length && (f.headers = t), i.mimeType) {
701
+ switch (Object.keys(o).length && (f.params = o), Object.keys(t).length && (f.headers = t), s.mimeType) {
701
702
  case "application/x-www-form-urlencoded":
702
- i.params && (l("const encodedParams = new URLSearchParams();"), i.params.forEach((h) => {
703
+ s.params && (l("const encodedParams = new URLSearchParams();"), s.params.forEach((h) => {
703
704
  l(`encodedParams.set('${h.name}', '${h.value}');`);
704
- }), s(), f.data = "encodedParams,", u((h) => h.replace(/'encodedParams,'/, "encodedParams,")));
705
+ }), i(), f.data = "encodedParams,", u((h) => h.replace(/'encodedParams,'/, "encodedParams,")));
705
706
  break;
706
707
  case "application/json":
707
- i.jsonObj && (f.data = i.jsonObj);
708
+ s.jsonObj && (f.data = s.jsonObj);
708
709
  break;
709
710
  case "multipart/form-data":
710
- if (!i.params)
711
+ if (!s.params)
711
712
  break;
712
- l("const form = new FormData();"), i.params.forEach((h) => {
713
+ l("const form = new FormData();"), s.params.forEach((h) => {
713
714
  l(`form.append('${h.name}', '${h.value || h.fileName || ""}');`);
714
- }), s(), f.data = "[form]";
715
+ }), i(), f.data = "[form]";
715
716
  break;
716
717
  default:
717
- i.text && (f.data = i.text);
718
+ s.text && (f.data = s.text);
718
719
  }
719
720
  const p = z(f, {
720
721
  indent: " ",
721
722
  inlineCharacterLimit: 80
722
723
  }).replace('"[form]"', "form");
723
- return l(`const options = ${p};`), s(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
724
+ return l(`const options = ${p};`), i(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), c();
724
725
  }
725
- }, Lo = {
726
+ }, Uo = {
726
727
  info: {
727
728
  key: "fetch",
728
729
  title: "fetch",
@@ -730,12 +731,12 @@ var So = {
730
731
  description: "Perform asynchronous HTTP requests with the Fetch API",
731
732
  extname: ".js"
732
733
  },
733
- convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, i) => {
734
+ convert: ({ method: t, allHeaders: e, postData: r, fullUrl: o }, s) => {
734
735
  const a = {
735
736
  indent: " ",
736
737
  credentials: null,
737
- ...i
738
- }, { blank: n, join: s, push: l } = new C({ indent: a.indent }), c = {
738
+ ...s
739
+ }, { blank: n, join: i, push: l } = new C({ indent: a.indent }), c = {
739
740
  method: t
740
741
  };
741
742
  switch (Object.keys(e).length && (c.headers = e), a.credentials !== null && (c.credentials = a.credentials), r.mimeType) {
@@ -773,9 +774,9 @@ var So = {
773
774
  return p;
774
775
  }
775
776
  })};`
776
- ), n(), r.params && r.mimeType === "multipart/form-data" && (l("options.body = form;"), n()), l(`fetch('${o}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), s();
777
+ ), n(), r.params && r.mimeType === "multipart/form-data" && (l("options.body = form;"), n()), l(`fetch('${o}', options)`), l(".then(response => response.json())", 1), l(".then(response => console.log(response))", 1), l(".catch(err => console.error(err));", 1), i();
777
778
  }
778
- }, Uo = {
779
+ }, Fo = {
779
780
  info: {
780
781
  key: "jquery",
781
782
  title: "jQuery",
@@ -783,12 +784,12 @@ var So = {
783
784
  description: "Perform an asynchronous HTTP (Ajax) requests with jQuery",
784
785
  extname: ".js"
785
786
  },
786
- convert: ({ fullUrl: t, method: e, allHeaders: r, postData: o }, i) => {
787
+ convert: ({ fullUrl: t, method: e, allHeaders: r, postData: o }, s) => {
787
788
  var f;
788
789
  const a = {
789
790
  indent: " ",
790
- ...i
791
- }, { blank: n, push: s, join: l } = new C({ indent: a.indent }), c = {
791
+ ...s
792
+ }, { blank: n, push: i, join: l } = new C({ indent: a.indent }), c = {
792
793
  async: !0,
793
794
  crossDomain: !0,
794
795
  url: t,
@@ -805,8 +806,8 @@ var So = {
805
806
  case "multipart/form-data":
806
807
  if (!o.params)
807
808
  break;
808
- if (s("const form = new FormData();"), o.params.forEach((p) => {
809
- s(`form.append('${p.name}', '${p.value || p.fileName || ""}');`);
809
+ if (i("const form = new FormData();"), o.params.forEach((p) => {
810
+ i(`form.append('${p.name}', '${p.value || p.fileName || ""}');`);
810
811
  }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", pt(r, "content-type") && (f = ue(r, "content-type")) != null && f.includes("boundary")) {
811
812
  const p = J(r, "content-type");
812
813
  p && delete c.headers[p];
@@ -817,9 +818,9 @@ var So = {
817
818
  o.text && (c.data = o.text);
818
819
  }
819
820
  const u = z(c, { indent: a.indent }).replace("'[form]'", "form");
820
- return s(`const settings = ${u};`), n(), s("$.ajax(settings).done(function (response) {"), s("console.log(response);", 1), s("});"), l();
821
+ return i(`const settings = ${u};`), n(), i("$.ajax(settings).done(function (response) {"), i("console.log(response);", 1), i("});"), l();
821
822
  }
822
- }, Fo = {
823
+ }, _o = {
823
824
  info: {
824
825
  key: "xhr",
825
826
  title: "XMLHttpRequest",
@@ -827,16 +828,16 @@ var So = {
827
828
  description: "W3C Standard API that provides scripted client functionality",
828
829
  extname: ".js"
829
830
  },
830
- convert: ({ postData: t, allHeaders: e, method: r, fullUrl: o }, i) => {
831
+ convert: ({ postData: t, allHeaders: e, method: r, fullUrl: o }, s) => {
831
832
  var c;
832
833
  const a = {
833
834
  indent: " ",
834
835
  cors: !0,
835
- ...i
836
- }, { blank: n, push: s, join: l } = new C({ indent: a.indent });
836
+ ...s
837
+ }, { blank: n, push: i, join: l } = new C({ indent: a.indent });
837
838
  switch (t.mimeType) {
838
839
  case "application/json":
839
- s(
840
+ i(
840
841
  `const data = JSON.stringify(${z(t.jsonObj, {
841
842
  indent: a.indent
842
843
  })});`
@@ -845,8 +846,8 @@ var So = {
845
846
  case "multipart/form-data":
846
847
  if (!t.params)
847
848
  break;
848
- if (s("const data = new FormData();"), t.params.forEach((u) => {
849
- s(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
849
+ if (i("const data = new FormData();"), t.params.forEach((u) => {
850
+ i(`data.append('${u.name}', '${u.value || u.fileName || ""}');`);
850
851
  }), pt(e, "content-type") && (c = ue(e, "content-type")) != null && c.includes("boundary")) {
851
852
  const u = J(e, "content-type");
852
853
  u && delete e[u];
@@ -854,25 +855,25 @@ var So = {
854
855
  n();
855
856
  break;
856
857
  default:
857
- s(`const data = ${t.text ? `'${t.text}'` : "null"};`), n();
858
+ i(`const data = ${t.text ? `'${t.text}'` : "null"};`), n();
858
859
  }
859
- return s("const xhr = new XMLHttpRequest();"), a.cors && s("xhr.withCredentials = true;"), n(), s("xhr.addEventListener('readystatechange', function () {"), s("if (this.readyState === this.DONE) {", 1), s("console.log(this.responseText);", 2), s("}", 1), s("});"), n(), s(`xhr.open('${r}', '${o}');`), Object.keys(e).forEach((u) => {
860
- s(`xhr.setRequestHeader('${u}', '${Je(e[u])}');`);
861
- }), n(), s("xhr.send(data);"), l();
860
+ return i("const xhr = new XMLHttpRequest();"), a.cors && i("xhr.withCredentials = true;"), n(), i("xhr.addEventListener('readystatechange', function () {"), i("if (this.readyState === this.DONE) {", 1), i("console.log(this.responseText);", 2), i("}", 1), i("});"), n(), i(`xhr.open('${r}', '${o}');`), Object.keys(e).forEach((u) => {
861
+ i(`xhr.setRequestHeader('${u}', '${Je(e[u])}');`);
862
+ }), n(), i("xhr.send(data);"), l();
862
863
  }
863
- }, _o = {
864
+ }, Ho = {
864
865
  info: {
865
866
  key: "javascript",
866
867
  title: "JavaScript",
867
868
  default: "xhr"
868
869
  },
869
870
  clientsById: {
870
- xhr: Fo,
871
- axios: Io,
872
- fetch: Lo,
873
- jquery: Uo
871
+ xhr: _o,
872
+ axios: Lo,
873
+ fetch: Uo,
874
+ jquery: Fo
874
875
  }
875
- }, Ho = {
876
+ }, Bo = {
876
877
  info: {
877
878
  key: "native",
878
879
  title: "Native JSON",
@@ -896,26 +897,26 @@ var So = {
896
897
  case "multipart/form-data":
897
898
  if (!t.params)
898
899
  break;
899
- const i = {};
900
+ const s = {};
900
901
  t.params.forEach((a) => {
901
- i[a.name] = a.value;
902
- }), o = i;
902
+ s[a.name] = a.value;
903
+ }), o = s;
903
904
  break;
904
905
  default:
905
906
  t.text && (o = t.text);
906
907
  }
907
908
  return typeof o > "u" || o === "" ? "No JSON body" : JSON.stringify(o, null, r.indent);
908
909
  }
909
- }, Bo = {
910
+ }, Mo = {
910
911
  info: {
911
912
  key: "json",
912
913
  title: "JSON",
913
914
  default: "native"
914
915
  },
915
916
  clientsById: {
916
- native: Ho
917
+ native: Bo
917
918
  }
918
- }, Mo = {
919
+ }, zo = {
919
920
  info: {
920
921
  key: "okhttp",
921
922
  title: "OkHttp",
@@ -923,25 +924,25 @@ var So = {
923
924
  description: "An HTTP Request Client Library",
924
925
  extname: ".kt"
925
926
  },
926
- convert: ({ postData: t, fullUrl: e, method: r, allHeaders: o }, i) => {
927
+ convert: ({ postData: t, fullUrl: e, method: r, allHeaders: o }, s) => {
927
928
  const a = {
928
929
  indent: " ",
929
- ...i
930
- }, { blank: n, join: s, push: l } = new C({ indent: a.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
930
+ ...s
931
+ }, { blank: n, join: i, push: l } = new C({ indent: a.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
931
932
  return l("val client = OkHttpClient()"), n(), t.text && (t.boundary ? l(`val mediaType = MediaType.parse("${t.mimeType}; boundary=${t.boundary}")`) : l(`val mediaType = MediaType.parse("${t.mimeType}")`), l(`val body = RequestBody.create(mediaType, ${JSON.stringify(t.text)})`)), l("val request = Request.Builder()"), l(`.url("${e}")`, 1), c.includes(r.toUpperCase()) ? u.includes(r.toUpperCase()) ? t.text ? l(`.${r.toLowerCase()}(body)`, 1) : l(`.${r.toLowerCase()}(null)`, 1) : l(`.${r.toLowerCase()}()`, 1) : t.text ? l(`.method("${r.toUpperCase()}", body)`, 1) : l(`.method("${r.toUpperCase()}", null)`, 1), Object.keys(o).forEach((f) => {
932
933
  l(`.addHeader("${f}", "${H(o[f])}")`, 1);
933
- }), l(".build()", 1), n(), l("val response = client.newCall(request).execute()"), s();
934
+ }), l(".build()", 1), n(), l("val response = client.newCall(request).execute()"), i();
934
935
  }
935
- }, zo = {
936
+ }, Wo = {
936
937
  info: {
937
938
  key: "kotlin",
938
939
  title: "Kotlin",
939
940
  default: "okhttp"
940
941
  },
941
942
  clientsById: {
942
- okhttp: Mo
943
+ okhttp: zo
943
944
  }
944
- }, Wo = {
945
+ }, Jo = {
945
946
  info: {
946
947
  key: "axios",
947
948
  title: "Axios",
@@ -950,11 +951,11 @@ var So = {
950
951
  extname: ".cjs",
951
952
  installation: "npm install axios --save"
952
953
  },
953
- convert: ({ method: t, fullUrl: e, allHeaders: r, postData: o }, i) => {
954
+ convert: ({ method: t, fullUrl: e, allHeaders: r, postData: o }, s) => {
954
955
  const a = {
955
956
  indent: " ",
956
- ...i
957
- }, { blank: n, join: s, push: l, addPostProcessor: c } = new C({ indent: a.indent });
957
+ ...s
958
+ }, { blank: n, join: i, push: l, addPostProcessor: c } = new C({ indent: a.indent });
958
959
  l("const axios = require('axios');");
959
960
  const u = {
960
961
  method: t,
@@ -973,9 +974,9 @@ var So = {
973
974
  n(), o.text && (u.data = o.text);
974
975
  }
975
976
  const f = z(u, { indent: " ", inlineCharacterLimit: 80 });
976
- return l(`const options = ${f};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), s();
977
+ return l(`const options = ${f};`), n(), l("axios"), l(".request(options)", 1), l(".then(function (response) {", 1), l("console.log(response.data);", 2), l("})", 1), l(".catch(function (error) {", 1), l("console.error(error);", 2), l("});", 1), i();
977
978
  }
978
- }, Jo = {
979
+ }, Go = {
979
980
  info: {
980
981
  key: "fetch",
981
982
  title: "Fetch",
@@ -984,13 +985,13 @@ var So = {
984
985
  extname: ".cjs",
985
986
  installation: "npm install node-fetch@2 --save"
986
987
  },
987
- convert: ({ method: t, fullUrl: e, postData: r, headersObj: o, cookies: i }, a) => {
988
+ convert: ({ method: t, fullUrl: e, postData: r, headersObj: o, cookies: s }, a) => {
988
989
  var g;
989
990
  const n = {
990
991
  indent: " ",
991
992
  ...a
992
993
  };
993
- let s = !1;
994
+ let i = !1;
994
995
  const { blank: l, push: c, join: u, unshift: f } = new C({ indent: n.indent });
995
996
  c("const fetch = require('node-fetch');");
996
997
  const p = e, h = {
@@ -1014,14 +1015,14 @@ var So = {
1014
1015
  c(`formData.append('${x.name}', '${x.value}');`);
1015
1016
  return;
1016
1017
  }
1017
- x.fileName && (s = !0, c(`formData.append('${x.name}', fs.createReadStream('${x.fileName}'));`));
1018
+ x.fileName && (i = !0, c(`formData.append('${x.name}', fs.createReadStream('${x.fileName}'));`));
1018
1019
  });
1019
1020
  break;
1020
1021
  default:
1021
1022
  r.text && (h.body = r.text);
1022
1023
  }
1023
- if (i.length) {
1024
- const b = i.map(({ name: x, value: m }) => `${encodeURIComponent(x)}=${encodeURIComponent(m)}`).join("; ");
1024
+ if (s.length) {
1025
+ const b = s.map(({ name: x, value: m }) => `${encodeURIComponent(x)}=${encodeURIComponent(m)}`).join("; ");
1025
1026
  h.headers || (h.headers = {}), h.headers.cookie = b;
1026
1027
  }
1027
1028
  l(), c(`const url = '${p}';`), h.headers && !Object.keys(h.headers).length && delete h.headers;
@@ -1033,9 +1034,9 @@ var So = {
1033
1034
  // in a `JSON.stringify` call.
1034
1035
  transform: (b, x, m) => x === "body" && r.mimeType === "application/json" ? `JSON.stringify(${m})` : m
1035
1036
  });
1036
- return c(`const options = ${y};`), l(), s && f("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1037
+ return c(`const options = ${y};`), l(), i && f("const fs = require('fs');"), r.params && r.mimeType === "multipart/form-data" && (c("options.body = formData;"), l()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1037
1038
  }
1038
- }, Go = {
1039
+ }, Vo = {
1039
1040
  info: {
1040
1041
  key: "native",
1041
1042
  title: "HTTP",
@@ -1043,9 +1044,9 @@ var So = {
1043
1044
  description: "Node.js native HTTP interface",
1044
1045
  extname: ".cjs"
1045
1046
  },
1046
- convert: ({ uriObj: t, method: e, allHeaders: r, postData: o }, i = {}) => {
1047
+ convert: ({ uriObj: t, method: e, allHeaders: r, postData: o }, s = {}) => {
1047
1048
  var f;
1048
- const { indent: a = " " } = i, { blank: n, join: s, push: l, unshift: c } = new C({ indent: a }), u = {
1049
+ const { indent: a = " " } = s, { blank: n, join: i, push: l, unshift: c } = new C({ indent: a }), u = {
1049
1050
  method: e,
1050
1051
  hostname: t.hostname,
1051
1052
  port: t.port,
@@ -1072,9 +1073,9 @@ var So = {
1072
1073
  default:
1073
1074
  o.text && l(`req.write(${z(o.text, { indent: a })});`);
1074
1075
  }
1075
- return l("req.end();"), s();
1076
+ return l("req.end();"), i();
1076
1077
  }
1077
- }, Vo = {
1078
+ }, Qo = {
1078
1079
  info: {
1079
1080
  key: "request",
1080
1081
  title: "Request",
@@ -1083,19 +1084,19 @@ var So = {
1083
1084
  extname: ".cjs",
1084
1085
  installation: "npm install request --save"
1085
1086
  },
1086
- convert: ({ method: t, url: e, fullUrl: r, postData: o, headersObj: i, cookies: a }, n) => {
1087
- const s = {
1087
+ convert: ({ method: t, url: e, fullUrl: r, postData: o, headersObj: s, cookies: a }, n) => {
1088
+ const i = {
1088
1089
  indent: " ",
1089
1090
  ...n
1090
1091
  };
1091
1092
  let l = !1;
1092
- const { push: c, blank: u, join: f, unshift: p, addPostProcessor: h } = new C({ indent: s.indent });
1093
+ const { push: c, blank: u, join: f, unshift: p, addPostProcessor: h } = new C({ indent: i.indent });
1093
1094
  c("const request = require('request');"), u();
1094
1095
  const y = {
1095
1096
  method: t,
1096
1097
  url: r
1097
1098
  };
1098
- switch (Object.keys(i).length && (y.headers = i), o.mimeType) {
1099
+ switch (Object.keys(s).length && (y.headers = s), o.mimeType) {
1099
1100
  case "application/x-www-form-urlencoded":
1100
1101
  y.form = o.paramsObj;
1101
1102
  break;
@@ -1127,7 +1128,7 @@ var So = {
1127
1128
  c(`jar.setCookie(request.cookie('${encodeURIComponent(g)}=${encodeURIComponent(b)}'), '${e}');`);
1128
1129
  }), u(), h((g) => g.replace(/'JAR'/, "jar"))), l && p("const fs = require('fs');"), c(`const options = ${z(y, { 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();
1129
1130
  }
1130
- }, Qo = {
1131
+ }, Ko = {
1131
1132
  info: {
1132
1133
  key: "unirest",
1133
1134
  title: "Unirest",
@@ -1135,40 +1136,40 @@ var So = {
1135
1136
  description: "Lightweight HTTP Request Client Library",
1136
1137
  extname: ".cjs"
1137
1138
  },
1138
- convert: ({ method: t, url: e, cookies: r, queryObj: o, postData: i, headersObj: a }, n) => {
1139
- const s = {
1139
+ convert: ({ method: t, url: e, cookies: r, queryObj: o, postData: s, headersObj: a }, n) => {
1140
+ const i = {
1140
1141
  indent: " ",
1141
1142
  ...n
1142
1143
  };
1143
1144
  let l = !1;
1144
1145
  const { addPostProcessor: c, blank: u, join: f, push: p, unshift: h } = new C({
1145
- indent: s.indent
1146
+ indent: i.indent
1146
1147
  });
1147
1148
  switch (p("const unirest = require('unirest');"), u(), p(`const req = unirest('${t}', '${e}');`), u(), r.length && (p("const CookieJar = unirest.jar();"), r.forEach((y) => {
1148
1149
  p(`CookieJar.add('${encodeURIComponent(y.name)}=${encodeURIComponent(y.value)}', '${e}');`);
1149
- }), p("req.jar(CookieJar);"), u()), Object.keys(o).length && (p(`req.query(${z(o, { indent: s.indent })});`), u()), Object.keys(a).length && (p(`req.headers(${z(a, { indent: s.indent })});`), u()), i.mimeType) {
1150
+ }), p("req.jar(CookieJar);"), u()), Object.keys(o).length && (p(`req.query(${z(o, { indent: i.indent })});`), u()), Object.keys(a).length && (p(`req.headers(${z(a, { indent: i.indent })});`), u()), s.mimeType) {
1150
1151
  case "application/x-www-form-urlencoded":
1151
- i.paramsObj && (p(`req.form(${z(i.paramsObj, { indent: s.indent })});`), u());
1152
+ s.paramsObj && (p(`req.form(${z(s.paramsObj, { indent: i.indent })});`), u());
1152
1153
  break;
1153
1154
  case "application/json":
1154
- i.jsonObj && (p("req.type('json');"), p(`req.send(${z(i.jsonObj, { indent: s.indent })});`), u());
1155
+ s.jsonObj && (p("req.type('json');"), p(`req.send(${z(s.jsonObj, { indent: i.indent })});`), u());
1155
1156
  break;
1156
1157
  case "multipart/form-data": {
1157
- if (!i.params)
1158
+ if (!s.params)
1158
1159
  break;
1159
1160
  const y = [];
1160
- i.params.forEach((g) => {
1161
+ s.params.forEach((g) => {
1161
1162
  const b = {};
1162
1163
  g.fileName && !g.value ? (l = !0, b.body = `fs.createReadStream('${g.fileName}')`, c((x) => x.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : g.value && (b.body = g.value), b.body && (g.contentType && (b["content-type"] = g.contentType), y.push(b));
1163
- }), p(`req.multipart(${z(y, { indent: s.indent })});`), u();
1164
+ }), p(`req.multipart(${z(y, { indent: i.indent })});`), u();
1164
1165
  break;
1165
1166
  }
1166
1167
  default:
1167
- i.text && (p(`req.send(${z(i.text, { indent: s.indent })});`), u());
1168
+ s.text && (p(`req.send(${z(s.text, { indent: i.indent })});`), u());
1168
1169
  }
1169
1170
  return l && h("const fs = require('fs');"), p("req.end(function (res) {"), p("if (res.error) throw new Error(res.error);", 1), u(), p("console.log(res.body);", 1), p("});"), f();
1170
1171
  }
1171
- }, Ko = {
1172
+ }, Do = {
1172
1173
  info: {
1173
1174
  key: "node",
1174
1175
  title: "Node.js",
@@ -1176,15 +1177,15 @@ var So = {
1176
1177
  cli: "node %s"
1177
1178
  },
1178
1179
  clientsById: {
1179
- native: Go,
1180
- request: Vo,
1181
- unirest: Qo,
1182
- axios: Wo,
1183
- fetch: Jo
1180
+ native: Vo,
1181
+ request: Qo,
1182
+ unirest: Ko,
1183
+ axios: Jo,
1184
+ fetch: Go
1184
1185
  }
1185
1186
  }, ht = (t, e, r, o) => {
1186
- const i = `${t} *${e} = `, a = Pt(r, o ? i.length : void 0);
1187
- return `${i}${a};`;
1187
+ const s = `${t} *${e} = `, a = Pt(r, o ? s.length : void 0);
1188
+ return `${s}${a};`;
1188
1189
  }, Pt = (t, e) => {
1189
1190
  const r = e === void 0 ? ", " : `,
1190
1191
  ${" ".repeat(e)}`;
@@ -1192,11 +1193,11 @@ var So = {
1192
1193
  case "[object Number]":
1193
1194
  return `@${t}`;
1194
1195
  case "[object Array]":
1195
- return `@[ ${t.map((i) => Pt(i)).join(r)} ]`;
1196
+ return `@[ ${t.map((s) => Pt(s)).join(r)} ]`;
1196
1197
  case "[object Object]": {
1197
1198
  const o = [];
1198
- return Object.keys(t).forEach((i) => {
1199
- o.push(`@"${i}": ${Pt(t[i])}`);
1199
+ return Object.keys(t).forEach((s) => {
1200
+ o.push(`@"${s}": ${Pt(t[s])}`);
1200
1201
  }), `@{ ${o.join(r)} }`;
1201
1202
  }
1202
1203
  case "[object Boolean]":
@@ -1204,7 +1205,7 @@ var So = {
1204
1205
  default:
1205
1206
  return t == null ? "" : `@"${t.toString().replace(/"/g, '\\"')}"`;
1206
1207
  }
1207
- }, Do = {
1208
+ }, Yo = {
1208
1209
  info: {
1209
1210
  key: "nsurlsession",
1210
1211
  title: "NSURLSession",
@@ -1212,14 +1213,14 @@ var So = {
1212
1213
  description: "Foundation's NSURLSession request",
1213
1214
  extname: ".m"
1214
1215
  },
1215
- convert: ({ allHeaders: t, postData: e, method: r, fullUrl: o }, i) => {
1216
+ convert: ({ allHeaders: t, postData: e, method: r, fullUrl: o }, s) => {
1216
1217
  var u;
1217
1218
  const a = {
1218
1219
  indent: " ",
1219
1220
  pretty: !0,
1220
1221
  timeout: 10,
1221
- ...i
1222
- }, { push: n, join: s, blank: l } = new C({ indent: a.indent }), c = {
1222
+ ...s
1223
+ }, { push: n, join: i, blank: l } = new C({ indent: a.indent }), c = {
1223
1224
  hasHeaders: !1,
1224
1225
  hasBody: !1
1225
1226
  };
@@ -1259,18 +1260,18 @@ var So = {
1259
1260
  ), n(" if (error) {", 1), n(' NSLog(@"%@", error);', 2), n(" } else {", 1), n(
1260
1261
  " NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",
1261
1262
  2
1262
- ), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), s();
1263
+ ), n(' NSLog(@"%@", httpResponse);', 2), n(" }", 1), n(" }];"), n("[dataTask resume];"), i();
1263
1264
  }
1264
- }, Yo = {
1265
+ }, Xo = {
1265
1266
  info: {
1266
1267
  key: "objc",
1267
1268
  title: "Objective-C",
1268
1269
  default: "nsurlsession"
1269
1270
  },
1270
1271
  clientsById: {
1271
- nsurlsession: Do
1272
+ nsurlsession: Yo
1272
1273
  }
1273
- }, Xo = {
1274
+ }, Zo = {
1274
1275
  info: {
1275
1276
  key: "cohttp",
1276
1277
  title: "CoHTTP",
@@ -1279,31 +1280,31 @@ var So = {
1279
1280
  extname: ".ml",
1280
1281
  installation: "opam install cohttp-lwt-unix cohttp-async"
1281
1282
  },
1282
- convert: ({ fullUrl: t, allHeaders: e, postData: r, method: o }, i) => {
1283
+ convert: ({ fullUrl: t, allHeaders: e, postData: r, method: o }, s) => {
1283
1284
  const a = {
1284
1285
  indent: " ",
1285
- ...i
1286
- }, n = ["get", "post", "head", "delete", "patch", "put", "options"], { push: s, blank: l, join: c } = new C({ indent: a.indent });
1287
- s("open Cohttp_lwt_unix"), s("open Cohttp"), s("open Lwt"), l(), s(`let uri = Uri.of_string "${t}" in`);
1286
+ ...s
1287
+ }, n = ["get", "post", "head", "delete", "patch", "put", "options"], { push: i, blank: l, join: c } = new C({ indent: a.indent });
1288
+ i("open Cohttp_lwt_unix"), i("open Cohttp"), i("open Lwt"), l(), i(`let uri = Uri.of_string "${t}" in`);
1288
1289
  const u = Object.keys(e);
1289
- u.length === 1 ? s(
1290
+ u.length === 1 ? i(
1290
1291
  `let headers = Header.add (Header.init ()) "${u[0]}" "${H(
1291
1292
  e[u[0]]
1292
1293
  )}" in`
1293
- ) : u.length > 1 && (s("let headers = Header.add_list (Header.init ()) ["), u.forEach((y) => {
1294
- s(`("${y}", "${H(e[y])}");`, 1);
1295
- }), s("] in")), r.text && s(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(r.text)} in`), l();
1294
+ ) : u.length > 1 && (i("let headers = Header.add_list (Header.init ()) ["), u.forEach((y) => {
1295
+ i(`("${y}", "${H(e[y])}");`, 1);
1296
+ }), i("] in")), r.text && i(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(r.text)} in`), l();
1296
1297
  const f = u.length ? "~headers " : "", p = r.text ? "~body " : "", h = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1297
- return s(`Client.call ${f}${p}${h} uri`), s(">>= fun (res, body_stream) ->"), s("(* Do stuff with the result *)", 1), c();
1298
+ return i(`Client.call ${f}${p}${h} uri`), i(">>= fun (res, body_stream) ->"), i("(* Do stuff with the result *)", 1), c();
1298
1299
  }
1299
- }, Zo = {
1300
+ }, ea = {
1300
1301
  info: {
1301
1302
  key: "ocaml",
1302
1303
  title: "OCaml",
1303
1304
  default: "cohttp"
1304
1305
  },
1305
1306
  clientsById: {
1306
- cohttp: Xo
1307
+ cohttp: Zo
1307
1308
  }
1308
1309
  }, N = (t, e, r) => {
1309
1310
  switch (r = r || "", e = e || "", Object.prototype.toString.call(t)) {
@@ -1318,7 +1319,7 @@ var So = {
1318
1319
  case "[object Number]":
1319
1320
  return t.toString();
1320
1321
  case "[object Array]": {
1321
- const o = t.map((i) => N(i, `${e}${e}`, e)).join(`,
1322
+ const o = t.map((s) => N(s, `${e}${e}`, e)).join(`,
1322
1323
  ${e}`);
1323
1324
  return `[
1324
1325
  ${e}${o}
@@ -1326,8 +1327,8 @@ ${r}]`;
1326
1327
  }
1327
1328
  case "[object Object]": {
1328
1329
  const o = [];
1329
- for (const i in t)
1330
- Object.prototype.hasOwnProperty.call(t, i) && o.push(`${N(i, e)} => ${N(t[i], `${e}${e}`, e)}`);
1330
+ for (const s in t)
1331
+ Object.prototype.hasOwnProperty.call(t, s) && o.push(`${N(s, e)} => ${N(t[s], `${e}${e}`, e)}`);
1331
1332
  return `[
1332
1333
  ${e}${o.join(`,
1333
1334
  ${e}`)}
@@ -1364,7 +1365,7 @@ ${r}]`;
1364
1365
  "UNLOCK",
1365
1366
  "UPDATE",
1366
1367
  "VERSION_CONTROL"
1367
- ], ea = {
1368
+ ], ta = {
1368
1369
  info: {
1369
1370
  key: "curl",
1370
1371
  title: "cURL",
@@ -1372,7 +1373,7 @@ ${r}]`;
1372
1373
  description: "PHP with ext-curl",
1373
1374
  extname: ".php"
1374
1375
  },
1375
- convert: ({ uriObj: t, postData: e, fullUrl: r, method: o, httpVersion: i, cookies: a, headersObj: n }, s = {}) => {
1376
+ convert: ({ uriObj: t, postData: e, fullUrl: r, method: o, httpVersion: s, cookies: a, headersObj: n }, i = {}) => {
1376
1377
  const {
1377
1378
  closingTag: l = !1,
1378
1379
  indent: c = " ",
@@ -1381,7 +1382,7 @@ ${r}]`;
1381
1382
  noTags: p = !1,
1382
1383
  shortTags: h = !1,
1383
1384
  timeout: y = 30
1384
- } = s, { push: g, blank: b, join: x } = new C({ indent: c });
1385
+ } = i, { push: g, blank: b, join: x } = new C({ indent: c });
1385
1386
  p || (g(h ? "<?" : "<?php"), b()), g("$curl = curl_init();"), b();
1386
1387
  const m = [
1387
1388
  {
@@ -1417,7 +1418,7 @@ ${r}]`;
1417
1418
  {
1418
1419
  escape: !1,
1419
1420
  name: "CURLOPT_HTTP_VERSION",
1420
- value: i === "HTTP/1.0" ? "CURL_HTTP_VERSION_1_0" : "CURL_HTTP_VERSION_1_1"
1421
+ value: s === "HTTP/1.0" ? "CURL_HTTP_VERSION_1_0" : "CURL_HTTP_VERSION_1_1"
1421
1422
  },
1422
1423
  {
1423
1424
  escape: !0,
@@ -1436,13 +1437,13 @@ ${c}` });
1436
1437
  m.forEach(({ value: S, name: k, escape: E }) => {
1437
1438
  S != null && v.push(`${k} => ${E ? JSON.stringify(S) : S},`);
1438
1439
  });
1439
- const j = a.map((S) => `${encodeURIComponent(S.name)}=${encodeURIComponent(S.value)}`);
1440
- j.length && v.push(`CURLOPT_COOKIE => "${j.join("; ")}",`);
1441
- const w = Object.keys(n).sort().map((S) => `"${S}: ${H(n[S])}"`);
1442
- return w.length && (v.push("CURLOPT_HTTPHEADER => ["), v.push(w.join(`,
1440
+ const w = a.map((S) => `${encodeURIComponent(S.name)}=${encodeURIComponent(S.value)}`);
1441
+ w.length && v.push(`CURLOPT_COOKIE => "${w.join("; ")}",`);
1442
+ const j = Object.keys(n).sort().map((S) => `"${S}: ${H(n[S])}"`);
1443
+ return j.length && (v.push("CURLOPT_HTTPHEADER => ["), v.push(j.join(`,
1443
1444
  ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = curl_exec($curl);"), g("$err = curl_error($curl);"), b(), g("curl_close($curl);"), b(), g("if ($err) {"), g(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), g("} else {"), g("echo $response;", 1), g("}"), !p && l && (b(), g("?>")), x();
1444
1445
  }
1445
- }, ta = {
1446
+ }, ra = {
1446
1447
  info: {
1447
1448
  key: "guzzle",
1448
1449
  title: "Guzzle",
@@ -1451,7 +1452,7 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1451
1452
  extname: ".php",
1452
1453
  installation: "composer require guzzlehttp/guzzle"
1453
1454
  },
1454
- convert: ({ postData: t, fullUrl: e, method: r, cookies: o, headersObj: i }, a) => {
1455
+ convert: ({ postData: t, fullUrl: e, method: r, cookies: o, headersObj: s }, a) => {
1455
1456
  var g;
1456
1457
  const n = {
1457
1458
  closingTag: !1,
@@ -1459,8 +1460,8 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1459
1460
  noTags: !1,
1460
1461
  shortTags: !1,
1461
1462
  ...a
1462
- }, { push: s, blank: l, join: c } = new C({ indent: n.indent }), { code: u, push: f, join: p } = new C({ indent: n.indent });
1463
- switch (n.noTags || s(n.shortTags ? "<?" : "<?php"), s("require_once('vendor/autoload.php');"), l(), t.mimeType) {
1463
+ }, { push: i, blank: l, join: c } = new C({ indent: n.indent }), { code: u, push: f, join: p } = new C({ indent: n.indent });
1464
+ switch (n.noTags || i(n.shortTags ? "<?" : "<?php"), i("require_once('vendor/autoload.php');"), l(), t.mimeType) {
1464
1465
  case "application/x-www-form-urlencoded":
1465
1466
  f(`'form_params' => ${N(t.paramsObj, n.indent + n.indent, n.indent)},`, 1);
1466
1467
  break;
@@ -1478,22 +1479,22 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1478
1479
  name: x.name,
1479
1480
  contents: x.value
1480
1481
  });
1481
- }), b.length && (f(`'multipart' => ${N(b, n.indent + n.indent, n.indent)}`, 1), pt(i, "content-type") && (g = ue(i, "content-type")) != null && g.indexOf("boundary"))) {
1482
- const x = J(i, "content-type");
1483
- x && delete i[x];
1482
+ }), b.length && (f(`'multipart' => ${N(b, n.indent + n.indent, n.indent)}`, 1), pt(s, "content-type") && (g = ue(s, "content-type")) != null && g.indexOf("boundary"))) {
1483
+ const x = J(s, "content-type");
1484
+ x && delete s[x];
1484
1485
  }
1485
1486
  break;
1486
1487
  }
1487
1488
  default:
1488
1489
  t.text && f(`'body' => ${N(t.text)},`, 1);
1489
1490
  }
1490
- const h = Object.keys(i).sort().map(function(b) {
1491
- return `${n.indent}${n.indent}'${b}' => '${Je(i[b])}',`;
1491
+ const h = Object.keys(s).sort().map(function(b) {
1492
+ return `${n.indent}${n.indent}'${b}' => '${Je(s[b])}',`;
1492
1493
  }), y = o.map((b) => `${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");
1493
1494
  return y.length && h.push(`${n.indent}${n.indent}'cookie' => '${Je(y)}',`), h.length && (f("'headers' => [", 1), f(h.join(`
1494
- `)), f("],", 1)), s("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (s(`$response = $client->request('${r}', '${e}', [`), s(p()), s("]);")) : s(`$response = $client->request('${r}', '${e}');`), l(), s("echo $response->getBody();"), !n.noTags && n.closingTag && (l(), s("?>")), c();
1495
+ `)), f("],", 1)), i("$client = new \\GuzzleHttp\\Client();"), l(), u.length ? (i(`$response = $client->request('${r}', '${e}', [`), i(p()), i("]);")) : i(`$response = $client->request('${r}', '${e}');`), l(), i("echo $response->getBody();"), !n.noTags && n.closingTag && (l(), i("?>")), c();
1495
1496
  }
1496
- }, ra = {
1497
+ }, na = {
1497
1498
  info: {
1498
1499
  key: "http1",
1499
1500
  title: "HTTP v1",
@@ -1501,9 +1502,9 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1501
1502
  description: "PHP with pecl/http v1",
1502
1503
  extname: ".php"
1503
1504
  },
1504
- convert: ({ method: t, url: e, postData: r, queryObj: o, headersObj: i, cookiesObj: a }, n = {}) => {
1505
- const { closingTag: s = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: p, join: h } = new C({ indent: l });
1506
- switch (c || (f(u ? "<?" : "<?php"), p()), fr.includes(t.toUpperCase()) || f(`HttpRequest::methodRegister('${t}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${N(e)});`), fr.includes(t.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${t.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${t.toUpperCase()});`), p(), Object.keys(o).length && (f(`$request->setQueryData(${N(o, l)});`), p()), Object.keys(i).length && (f(`$request->setHeaders(${N(i, l)});`), p()), Object.keys(a).length && (f(`$request->setCookies(${N(a, l)});`), p()), r.mimeType) {
1505
+ convert: ({ method: t, url: e, postData: r, queryObj: o, headersObj: s, cookiesObj: a }, n = {}) => {
1506
+ const { closingTag: i = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: p, join: h } = new C({ indent: l });
1507
+ switch (c || (f(u ? "<?" : "<?php"), p()), fr.includes(t.toUpperCase()) || f(`HttpRequest::methodRegister('${t}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${N(e)});`), fr.includes(t.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${t.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${t.toUpperCase()});`), p(), Object.keys(o).length && (f(`$request->setQueryData(${N(o, l)});`), p()), Object.keys(s).length && (f(`$request->setHeaders(${N(s, l)});`), p()), Object.keys(a).length && (f(`$request->setCookies(${N(a, l)});`), p()), r.mimeType) {
1507
1508
  case "application/x-www-form-urlencoded":
1508
1509
  f(`$request->setContentType(${N(r.mimeType)});`), f(`$request->setPostFields(${N(r.paramsObj, l)});`), p();
1509
1510
  break;
@@ -1513,9 +1514,9 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1513
1514
  default:
1514
1515
  r.text && (f(`$request->setBody(${N(r.text)});`), p());
1515
1516
  }
1516
- return f("try {"), f("$response = $request->send();", 1), p(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !c && s && (p(), f("?>")), h();
1517
+ return f("try {"), f("$response = $request->send();", 1), p(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !c && i && (p(), f("?>")), h();
1517
1518
  }
1518
- }, na = {
1519
+ }, oa = {
1519
1520
  info: {
1520
1521
  key: "http2",
1521
1522
  title: "HTTP v2",
@@ -1523,9 +1524,9 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1523
1524
  description: "PHP with pecl/http v2",
1524
1525
  extname: ".php"
1525
1526
  },
1526
- convert: ({ postData: t, headersObj: e, method: r, queryObj: o, cookiesObj: i, url: a }, n = {}) => {
1527
+ convert: ({ postData: t, headersObj: e, method: r, queryObj: o, cookiesObj: s, url: a }, n = {}) => {
1527
1528
  var g;
1528
- const { closingTag: s = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: p, join: h } = new C({ indent: l });
1529
+ const { closingTag: i = !1, indent: l = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: p, join: h } = new C({ indent: l });
1529
1530
  let y = !1;
1530
1531
  switch (c || (f(u ? "<?" : "<?php"), p()), f("$client = new http\\Client;"), f("$request = new http\\Client\\Request;"), p(), t.mimeType) {
1531
1532
  case "application/x-www-form-urlencoded":
@@ -1535,22 +1536,22 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1535
1536
  if (!t.params)
1536
1537
  break;
1537
1538
  const b = [], x = {};
1538
- t.params.forEach(({ name: j, fileName: w, value: S, contentType: k }) => {
1539
- if (w) {
1539
+ t.params.forEach(({ name: w, fileName: j, value: S, contentType: k }) => {
1540
+ if (j) {
1540
1541
  b.push({
1541
- name: j,
1542
+ name: w,
1542
1543
  type: k,
1543
- file: w,
1544
+ file: j,
1544
1545
  data: S
1545
1546
  });
1546
1547
  return;
1547
1548
  }
1548
- S && (x[j] = S);
1549
+ S && (x[w] = S);
1549
1550
  });
1550
1551
  const m = Object.keys(x).length ? N(x, l) : "null", v = b.length ? N(b, l) : "null";
1551
1552
  if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${m}, ${v});`), pt(e, "content-type") && (g = ue(e, "content-type")) != null && g.indexOf("boundary")) {
1552
- const j = J(e, "content-type");
1553
- j && delete e[j];
1553
+ const w = J(e, "content-type");
1554
+ w && delete e[w];
1554
1555
  }
1555
1556
  p(), y = !0;
1556
1557
  break;
@@ -1561,9 +1562,9 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1561
1562
  default:
1562
1563
  t.text && (f("$body = new http\\Message\\Body;"), f(`$body->append(${N(t.text)});`), p(), y = !0);
1563
1564
  }
1564
- return f(`$request->setRequestUrl(${N(a)});`), f(`$request->setRequestMethod(${N(r)});`), y && (f("$request->setBody($body);"), p()), Object.keys(o).length && (f(`$request->setQuery(new http\\QueryString(${N(o, l)}));`), p()), Object.keys(e).length && (f(`$request->setHeaders(${N(e, l)});`), p()), Object.keys(i).length && (p(), f(`$client->setCookies(${N(i, l)});`), p()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), p(), f("echo $response->getBody();"), !c && s && (p(), f("?>")), h();
1565
+ return f(`$request->setRequestUrl(${N(a)});`), f(`$request->setRequestMethod(${N(r)});`), y && (f("$request->setBody($body);"), p()), Object.keys(o).length && (f(`$request->setQuery(new http\\QueryString(${N(o, l)}));`), p()), Object.keys(e).length && (f(`$request->setHeaders(${N(e, l)});`), p()), Object.keys(s).length && (p(), f(`$client->setCookies(${N(s, l)});`), p()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), p(), f("echo $response->getBody();"), !c && i && (p(), f("?>")), h();
1565
1566
  }
1566
- }, oa = {
1567
+ }, aa = {
1567
1568
  info: {
1568
1569
  key: "php",
1569
1570
  title: "PHP",
@@ -1571,24 +1572,24 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1571
1572
  cli: "php %s"
1572
1573
  },
1573
1574
  clientsById: {
1574
- curl: ea,
1575
- guzzle: ta,
1576
- http1: ra,
1577
- http2: na
1575
+ curl: ta,
1576
+ guzzle: ra,
1577
+ http1: na,
1578
+ http2: oa
1578
1579
  }
1579
- }, rn = (t) => ({ method: r, headersObj: o, cookies: i, uriObj: a, fullUrl: n, postData: s, allHeaders: l }) => {
1580
+ }, rn = (t) => ({ method: r, headersObj: o, cookies: s, uriObj: a, fullUrl: n, postData: i, allHeaders: l }) => {
1580
1581
  const { push: c, join: u } = new C();
1581
1582
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(r.toUpperCase()))
1582
1583
  return "Method not supported";
1583
1584
  const p = [], h = Object.keys(o);
1584
1585
  return h.length && (c("$headers=@{}"), h.forEach((y) => {
1585
1586
  y !== "connection" && c(`$headers.Add("${y}", "${We(o[y], { escapeChar: "`" })}")`);
1586
- }), p.push("-Headers $headers")), i.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), i.forEach((y) => {
1587
+ }), p.push("-Headers $headers")), s.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), s.forEach((y) => {
1587
1588
  c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${y.name}'`), c(`$cookie.Value = '${y.value}'`), c(`$cookie.Domain = '${a.host}'`), c("$session.Cookies.Add($cookie)");
1588
- }), p.push("-WebSession $session")), s.text && (p.push(
1589
+ }), p.push("-WebSession $session")), i.text && (p.push(
1589
1590
  `-ContentType '${We(ue(l, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1590
- ), p.push(`-Body '${s.text}'`)), c(`$response = ${t} -Uri '${n}' -Method ${r} ${p.join(" ")}`.trim()), u();
1591
- }, aa = {
1591
+ ), p.push(`-Body '${i.text}'`)), c(`$response = ${t} -Uri '${n}' -Method ${r} ${p.join(" ")}`.trim()), u();
1592
+ }, ia = {
1592
1593
  info: {
1593
1594
  key: "restmethod",
1594
1595
  title: "Invoke-RestMethod",
@@ -1597,7 +1598,7 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1597
1598
  extname: ".ps1"
1598
1599
  },
1599
1600
  convert: rn("Invoke-RestMethod")
1600
- }, ia = {
1601
+ }, sa = {
1601
1602
  info: {
1602
1603
  key: "webrequest",
1603
1604
  title: "Invoke-WebRequest",
@@ -1606,23 +1607,23 @@ ${c}${c}`), 1), v.push("],")), g(v.join(), 1), g("]);"), b(), g("$response = cur
1606
1607
  extname: ".ps1"
1607
1608
  },
1608
1609
  convert: rn("Invoke-WebRequest")
1609
- }, sa = {
1610
+ }, la = {
1610
1611
  info: {
1611
1612
  key: "powershell",
1612
1613
  title: "Powershell",
1613
1614
  default: "webrequest"
1614
1615
  },
1615
1616
  clientsById: {
1616
- webrequest: ia,
1617
- restmethod: aa
1617
+ webrequest: sa,
1618
+ restmethod: ia
1618
1619
  }
1619
1620
  };
1620
- function dr(t, e, r, o, i) {
1621
- const a = o.repeat(i), n = o.repeat(i - 1), s = r ? `,
1621
+ function dr(t, e, r, o, s) {
1622
+ const a = o.repeat(s), n = o.repeat(s - 1), i = r ? `,
1622
1623
  ${a}` : ", ", l = t === "object" ? "{" : "[", c = t === "object" ? "}" : "]";
1623
1624
  return r ? `${l}
1624
- ${a}${e.join(s)}
1625
- ${n}${c}` : t === "object" && e.length > 0 ? `${l} ${e.join(s)} ${c}` : `${l}${e.join(s)}${c}`;
1625
+ ${a}${e.join(i)}
1626
+ ${n}${c}` : t === "object" && e.length > 0 ? `${l} ${e.join(i)} ${c}` : `${l}${e.join(i)}${c}`;
1626
1627
  }
1627
1628
  var ke = (t, e, r) => {
1628
1629
  switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(t)) {
@@ -1630,13 +1631,13 @@ var ke = (t, e, r) => {
1630
1631
  return t;
1631
1632
  case "[object Array]": {
1632
1633
  let o = !1;
1633
- const i = t.map((a) => (Object.prototype.toString.call(a) === "[object Object]" && (o = Object.keys(a).length > 1), ke(a, e, r)));
1634
- return dr("array", i, o, e.indent, r);
1634
+ const s = t.map((a) => (Object.prototype.toString.call(a) === "[object Object]" && (o = Object.keys(a).length > 1), ke(a, e, r)));
1635
+ return dr("array", s, o, e.indent, r);
1635
1636
  }
1636
1637
  case "[object Object]": {
1637
1638
  const o = [];
1638
- for (const i in t)
1639
- o.push(`"${i}": ${ke(t[i], e, r)}`);
1639
+ for (const s in t)
1640
+ o.push(`"${s}": ${ke(t[s], e, r)}`);
1640
1641
  return dr("object", o, e.pretty && o.length > 1, e.indent, r);
1641
1642
  }
1642
1643
  case "[object Null]":
@@ -1646,7 +1647,7 @@ var ke = (t, e, r) => {
1646
1647
  default:
1647
1648
  return t == null ? "" : `"${t.toString().replace(/"/g, '\\"')}"`;
1648
1649
  }
1649
- }, la = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ca = {
1650
+ }, ca = ["HEAD", "GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], ua = {
1650
1651
  info: {
1651
1652
  key: "requests",
1652
1653
  title: "Requests",
@@ -1655,13 +1656,13 @@ var ke = (t, e, r) => {
1655
1656
  extname: ".py",
1656
1657
  installation: "python -m pip install requests"
1657
1658
  },
1658
- convert: ({ fullUrl: t, postData: e, allHeaders: r, method: o }, i) => {
1659
+ convert: ({ fullUrl: t, postData: e, allHeaders: r, method: o }, s) => {
1659
1660
  const a = {
1660
1661
  indent: " ",
1661
1662
  pretty: !0,
1662
- ...i
1663
- }, { push: n, blank: s, join: l, addPostProcessor: c } = new C({ indent: a.indent });
1664
- n("import requests"), s(), n(`url = "${t}"`), s();
1663
+ ...s
1664
+ }, { push: n, blank: i, join: l, addPostProcessor: c } = new C({ indent: a.indent });
1665
+ n("import requests"), i(), n(`url = "${t}"`), i();
1665
1666
  const u = r;
1666
1667
  let f = {};
1667
1668
  const p = {};
@@ -1698,21 +1699,21 @@ var ke = (t, e, r) => {
1698
1699
  }
1699
1700
  const b = Object.keys(u).length;
1700
1701
  if (b === 0 && (y || h))
1701
- s();
1702
+ i();
1702
1703
  else if (b === 1)
1703
1704
  Object.keys(u).forEach((m) => {
1704
- n(`headers = {"${m}": "${H(u[m])}"}`), s();
1705
+ n(`headers = {"${m}": "${H(u[m])}"}`), i();
1705
1706
  });
1706
1707
  else if (b > 1) {
1707
1708
  let m = 1;
1708
1709
  n("headers = {"), Object.keys(u).forEach((v) => {
1709
1710
  n(m !== b ? `"${v}": "${H(u[v])}",` : `"${v}": "${H(u[v])}"`, 1), m += 1;
1710
- }), n("}"), s();
1711
+ }), n("}"), i();
1711
1712
  }
1712
- let x = la.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1713
- return y && (g ? x += ", json=payload" : x += ", data=payload"), h && (x += ", files=files"), b > 0 && (x += ", headers=headers"), x += ")", n(x), s(), n("print(response.text)"), l();
1713
+ let x = ca.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1714
+ return y && (g ? x += ", json=payload" : x += ", data=payload"), h && (x += ", files=files"), b > 0 && (x += ", headers=headers"), x += ")", n(x), i(), n("print(response.text)"), l();
1714
1715
  }
1715
- }, ua = {
1716
+ }, pa = {
1716
1717
  info: {
1717
1718
  key: "python",
1718
1719
  title: "Python",
@@ -1720,9 +1721,9 @@ var ke = (t, e, r) => {
1720
1721
  cli: "python3 %s"
1721
1722
  },
1722
1723
  clientsById: {
1723
- requests: ca
1724
+ requests: ua
1724
1725
  }
1725
- }, pa = {
1726
+ }, fa = {
1726
1727
  info: {
1727
1728
  key: "httr",
1728
1729
  title: "httr",
@@ -1730,47 +1731,47 @@ var ke = (t, e, r) => {
1730
1731
  description: "httr: Tools for Working with URLs and HTTP",
1731
1732
  extname: ".r"
1732
1733
  },
1733
- convert: ({ url: t, queryObj: e, queryString: r, postData: o, allHeaders: i, method: a }) => {
1734
- const { push: n, blank: s, join: l } = new C();
1735
- n("library(httr)"), s(), n(`url <- "${t}"`), s();
1734
+ convert: ({ url: t, queryObj: e, queryString: r, postData: o, allHeaders: s, method: a }) => {
1735
+ const { push: n, blank: i, join: l } = new C();
1736
+ n("library(httr)"), i(), n(`url <- "${t}"`), i();
1736
1737
  const c = e;
1737
1738
  delete e.key;
1738
1739
  const u = Object.keys(c).length;
1739
- r.length === 1 ? (n(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), s()) : r.length > 1 && (n("queryString <- list("), Object.keys(c).forEach((w, S) => {
1740
- S !== u - 1 ? n(` ${w} = "${c[w].toString()}",`) : n(` ${w} = "${c[w].toString()}"`);
1741
- }), n(")"), s());
1740
+ r.length === 1 ? (n(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), i()) : r.length > 1 && (n("queryString <- list("), Object.keys(c).forEach((j, S) => {
1741
+ S !== u - 1 ? n(` ${j} = "${c[j].toString()}",`) : n(` ${j} = "${c[j].toString()}"`);
1742
+ }), n(")"), i());
1742
1743
  const f = JSON.stringify(o.text);
1743
- if (f && (n(`payload <- ${f}`), s()), o.text || o.jsonObj || o.params)
1744
+ if (f && (n(`payload <- ${f}`), i()), o.text || o.jsonObj || o.params)
1744
1745
  switch (o.mimeType) {
1745
1746
  case "application/x-www-form-urlencoded":
1746
- n('encode <- "form"'), s();
1747
+ n('encode <- "form"'), i();
1747
1748
  break;
1748
1749
  case "application/json":
1749
- n('encode <- "json"'), s();
1750
+ n('encode <- "json"'), i();
1750
1751
  break;
1751
1752
  case "multipart/form-data":
1752
- n('encode <- "multipart"'), s();
1753
+ n('encode <- "multipart"'), i();
1753
1754
  break;
1754
1755
  default:
1755
- n('encode <- "raw"'), s();
1756
+ n('encode <- "raw"'), i();
1756
1757
  break;
1757
1758
  }
1758
- const p = ue(i, "cookie"), h = ue(i, "accept"), y = p ? `set_cookies(\`${String(p).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, g = h ? `accept("${H(h)}")` : void 0, b = `content_type("${H(o.mimeType)}")`, x = Object.entries(i).filter(([w]) => !["cookie", "accept", "content-type"].includes(w.toLowerCase())).map(([w, S]) => `'${w}' = '${Je(S)}'`).join(", "), m = x ? `add_headers(${x})` : void 0;
1759
+ const p = ue(s, "cookie"), h = ue(s, "accept"), y = p ? `set_cookies(\`${String(p).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, g = h ? `accept("${H(h)}")` : void 0, b = `content_type("${H(o.mimeType)}")`, x = Object.entries(s).filter(([j]) => !["cookie", "accept", "content-type"].includes(j.toLowerCase())).map(([j, S]) => `'${j}' = '${Je(S)}'`).join(", "), m = x ? `add_headers(${x})` : void 0;
1759
1760
  let v = `response <- VERB("${a}", url`;
1760
1761
  f && (v += ", body = payload"), r.length && (v += ", query = queryString");
1761
- const j = [m, b, g, y].filter((w) => !!w).join(", ");
1762
- return j && (v += `, ${j}`), (o.text || o.jsonObj || o.params) && (v += ", encode = encode"), v += ")", n(v), s(), n('content(response, "text")'), l();
1762
+ const w = [m, b, g, y].filter((j) => !!j).join(", ");
1763
+ return w && (v += `, ${w}`), (o.text || o.jsonObj || o.params) && (v += ", encode = encode"), v += ")", n(v), i(), n('content(response, "text")'), l();
1763
1764
  }
1764
- }, fa = {
1765
+ }, da = {
1765
1766
  info: {
1766
1767
  key: "r",
1767
1768
  title: "R",
1768
1769
  default: "httr"
1769
1770
  },
1770
1771
  clientsById: {
1771
- httr: pa
1772
+ httr: fa
1772
1773
  }
1773
- }, da = {
1774
+ }, ha = {
1774
1775
  info: {
1775
1776
  key: "native",
1776
1777
  title: "net::http",
@@ -1778,8 +1779,8 @@ var ke = (t, e, r) => {
1778
1779
  description: "Ruby HTTP client",
1779
1780
  extname: ".rb"
1780
1781
  },
1781
- convert: ({ uriObj: t, method: e, fullUrl: r, postData: o, allHeaders: i }) => {
1782
- const { push: a, blank: n, join: s } = new C();
1782
+ convert: ({ uriObj: t, method: e, fullUrl: r, postData: o, allHeaders: s }) => {
1783
+ const { push: a, blank: n, join: i } = new C();
1783
1784
  a("require 'uri'"), a("require 'net/http'"), n();
1784
1785
  const l = e.toUpperCase(), c = [
1785
1786
  "GET",
@@ -1796,21 +1797,21 @@ var ke = (t, e, r) => {
1796
1797
  "TRACE"
1797
1798
  ], u = l.charAt(0) + l.substring(1).toLowerCase();
1798
1799
  c.includes(l) || (a(`class Net::HTTP::${u} < Net::HTTPRequest`), a(` METHOD = '${l.toUpperCase()}'`), a(` REQUEST_HAS_BODY = '${o.text ? "true" : "false"}'`), a(" RESPONSE_HAS_BODY = true"), a("end"), n()), a(`url = URI("${r}")`), n(), a("http = Net::HTTP.new(url.host, url.port)"), t.protocol === "https:" && a("http.use_ssl = true"), n(), a(`request = Net::HTTP::${u}.new(url)`);
1799
- const f = Object.keys(i);
1800
+ const f = Object.keys(s);
1800
1801
  return f.length && f.forEach((p) => {
1801
- a(`request["${p}"] = '${Je(i[p])}'`);
1802
- }), o.text && a(`request.body = ${JSON.stringify(o.text)}`), n(), a("response = http.request(request)"), a("puts response.read_body"), s();
1802
+ a(`request["${p}"] = '${Je(s[p])}'`);
1803
+ }), o.text && a(`request.body = ${JSON.stringify(o.text)}`), n(), a("response = http.request(request)"), a("puts response.read_body"), i();
1803
1804
  }
1804
- }, ha = {
1805
+ }, ya = {
1805
1806
  info: {
1806
1807
  key: "ruby",
1807
1808
  title: "Ruby",
1808
1809
  default: "native"
1809
1810
  },
1810
1811
  clientsById: {
1811
- native: da
1812
+ native: ha
1812
1813
  }
1813
- }, M = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, ya = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ma = {
1814
+ }, M = (t = "") => /^[a-z0-9-_/.@%^=:]+$/i.test(t) ? t : `'${t.replace(/'/g, "'\\''")}'`, ma = (t) => t.replace(/\r/g, "\\r").replace(/\n/g, "\\n"), ga = {
1814
1815
  "http1.0": "0",
1815
1816
  "url ": "",
1816
1817
  cookie: "b",
@@ -1820,13 +1821,13 @@ var ke = (t, e, r) => {
1820
1821
  header: "H",
1821
1822
  insecure: "k",
1822
1823
  request: "X"
1823
- }, ga = (t) => (e) => {
1824
+ }, ba = (t) => (e) => {
1824
1825
  if (t) {
1825
- const r = ma[e];
1826
+ const r = ga[e];
1826
1827
  return r ? `-${r}` : "";
1827
1828
  }
1828
1829
  return `--${e}`;
1829
- }, ba = {
1830
+ }, va = {
1830
1831
  info: {
1831
1832
  key: "curl",
1832
1833
  title: "cURL",
@@ -1834,28 +1835,28 @@ var ke = (t, e, r) => {
1834
1835
  description: "cURL is a command line tool and library for transferring data with URL syntax",
1835
1836
  extname: ".sh"
1836
1837
  },
1837
- convert: ({ fullUrl: t, method: e, httpVersion: r, headersObj: o, allHeaders: i, postData: a }, n = {}) => {
1838
+ convert: ({ fullUrl: t, method: e, httpVersion: r, headersObj: o, allHeaders: s, postData: a }, n = {}) => {
1838
1839
  var b;
1839
- const { indent: s = " ", short: l = !1, binary: c = !1, globOff: u = !1 } = n, f = " ", { push: p, join: h } = new C({
1840
- ...typeof s == "string" ? { indent: s } : {},
1841
- join: s !== !1 ? ` \\
1842
- ${s}` : " "
1843
- }), y = ga(l);
1840
+ const { indent: i = " ", short: l = !1, binary: c = !1, globOff: u = !1 } = n, f = " ", { push: p, join: h } = new C({
1841
+ ...typeof i == "string" ? { indent: i } : {},
1842
+ join: i !== !1 ? ` \\
1843
+ ${i}` : " "
1844
+ }), y = ba(l);
1844
1845
  let g = M(t);
1845
- if (p(`curl ${y("request")} ${e}`), u && (g = unescape(g), p(y("globoff"))), p(`${y("url ")}${g}`), r === "HTTP/1.0" && p(y("http1.0")), ue(i, "accept-encoding") && p("--compressed"), a.mimeType === "multipart/form-data") {
1846
+ if (p(`curl ${y("request")} ${e}`), u && (g = unescape(g), p(y("globoff"))), p(`${y("url ")}${g}`), r === "HTTP/1.0" && p(y("http1.0")), ue(s, "accept-encoding") && p("--compressed"), a.mimeType === "multipart/form-data") {
1846
1847
  const x = J(o, "content-type");
1847
1848
  if (x) {
1848
1849
  const m = o[x];
1849
1850
  if (x && m) {
1850
1851
  const v = String(m).replace(/; boundary.+?(?=(;|$))/, "");
1851
- o[x] = v, i[x] = v;
1852
+ o[x] = v, s[x] = v;
1852
1853
  }
1853
1854
  }
1854
1855
  }
1855
1856
  switch (Object.keys(o).sort().forEach((x) => {
1856
1857
  const m = `${x}: ${o[x]}`;
1857
1858
  p(`${y("header")} ${M(m)}`);
1858
- }), i.cookie && p(`${y("cookie")} ${M(i.cookie)}`), a.mimeType) {
1859
+ }), s.cookie && p(`${y("cookie")} ${M(s.cookie)}`), a.mimeType) {
1859
1860
  case "multipart/form-data":
1860
1861
  (b = a.params) == null || b.forEach((m) => {
1861
1862
  let v = "";
@@ -1864,7 +1865,7 @@ ${s}` : " "
1864
1865
  break;
1865
1866
  case "application/x-www-form-urlencoded":
1866
1867
  a.params ? a.params.forEach((m) => {
1867
- const v = m.name, j = encodeURIComponent(m.name), w = j !== v, S = w ? j : v, k = c ? "--data-binary" : w ? "--data-urlencode" : y("data");
1868
+ const v = m.name, w = encodeURIComponent(m.name), j = w !== v, S = j ? w : v, k = c ? "--data-binary" : j ? "--data-urlencode" : y("data");
1868
1869
  p(`${k} ${M(`${S}=${m.value}`)}`);
1869
1870
  }) : p(`${c ? "--data-binary" : y("data")} ${M(a.text)}`);
1870
1871
  break;
@@ -1872,7 +1873,7 @@ ${s}` : " "
1872
1873
  if (!a.text)
1873
1874
  break;
1874
1875
  let x = !1;
1875
- if (go(a.mimeType) && a.text.length > 20)
1876
+ if (bo(a.mimeType) && a.text.length > 20)
1876
1877
  try {
1877
1878
  const m = JSON.parse(a.text);
1878
1879
  x = !0, a.text.indexOf("'") > 0 ? p(
@@ -1894,7 +1895,7 @@ ${JSON.stringify(m, null, f)}
1894
1895
  }
1895
1896
  return h();
1896
1897
  }
1897
- }, va = {
1898
+ }, xa = {
1898
1899
  info: {
1899
1900
  key: "httpie",
1900
1901
  title: "HTTPie",
@@ -1903,8 +1904,8 @@ ${JSON.stringify(m, null, f)}
1903
1904
  extname: ".sh",
1904
1905
  installation: "brew install httpie"
1905
1906
  },
1906
- convert: ({ allHeaders: t, postData: e, queryObj: r, fullUrl: o, method: i, url: a }, n) => {
1907
- const s = {
1907
+ convert: ({ allHeaders: t, postData: e, queryObj: r, fullUrl: o, method: s, url: a }, n) => {
1908
+ const i = {
1908
1909
  body: !1,
1909
1910
  cert: !1,
1910
1911
  headers: !1,
@@ -1919,31 +1920,31 @@ ${JSON.stringify(m, null, f)}
1919
1920
  verify: !1,
1920
1921
  ...n
1921
1922
  }, { push: l, join: c, unshift: u } = new C({
1922
- indent: s.indent,
1923
+ indent: i.indent,
1923
1924
  // @ts-expect-error SEEMS LEGIT
1924
- join: s.indent !== !1 ? ` \\
1925
- ${s.indent}` : " "
1925
+ join: i.indent !== !1 ? ` \\
1926
+ ${i.indent}` : " "
1926
1927
  });
1927
1928
  let f = !1;
1928
1929
  const p = [];
1929
- s.headers && p.push(s.short ? "-h" : "--headers"), s.body && p.push(s.short ? "-b" : "--body"), s.verbose && p.push(s.short ? "-v" : "--verbose"), s.print && p.push(`${s.short ? "-p" : "--print"}=${s.print}`), s.verify && p.push(`--verify=${s.verify}`), s.cert && p.push(`--cert=${s.cert}`), s.pretty && p.push(`--pretty=${s.pretty}`), s.style && p.push(`--style=${s.style}`), s.timeout && p.push(`--timeout=${s.timeout}`), s.queryParams && Object.keys(r).forEach((y) => {
1930
+ i.headers && p.push(i.short ? "-h" : "--headers"), i.body && p.push(i.short ? "-b" : "--body"), i.verbose && p.push(i.short ? "-v" : "--verbose"), i.print && p.push(`${i.short ? "-p" : "--print"}=${i.print}`), i.verify && p.push(`--verify=${i.verify}`), i.cert && p.push(`--cert=${i.cert}`), i.pretty && p.push(`--pretty=${i.pretty}`), i.style && p.push(`--style=${i.style}`), i.timeout && p.push(`--timeout=${i.timeout}`), i.queryParams && Object.keys(r).forEach((y) => {
1930
1931
  const g = r[y];
1931
1932
  Array.isArray(g) ? g.forEach((b) => {
1932
1933
  l(`${y}==${M(b)}`);
1933
1934
  }) : l(`${y}==${M(g)}`);
1934
1935
  }), Object.keys(t).sort().forEach((y) => {
1935
1936
  l(`${y}:${M(t[y])}`);
1936
- }), e.mimeType === "application/x-www-form-urlencoded" ? e.params && e.params.length && (p.push(s.short ? "-f" : "--form"), e.params.forEach((y) => {
1937
+ }), e.mimeType === "application/x-www-form-urlencoded" ? e.params && e.params.length && (p.push(i.short ? "-f" : "--form"), e.params.forEach((y) => {
1937
1938
  l(`${y.name}=${M(y.value)}`);
1938
1939
  })) : f = !0;
1939
1940
  const h = p.length ? `${p.join(" ")} ` : "";
1940
- if (a = M(s.queryParams ? a : o), u(`http ${h}${i} ${a}`), f && e.text) {
1941
+ if (a = M(i.queryParams ? a : o), u(`http ${h}${s} ${a}`), f && e.text) {
1941
1942
  const y = M(e.text);
1942
1943
  u(`echo ${y} | `);
1943
1944
  }
1944
1945
  return c();
1945
1946
  }
1946
- }, xa = {
1947
+ }, $a = {
1947
1948
  info: {
1948
1949
  key: "wget",
1949
1950
  title: "Wget",
@@ -1951,13 +1952,13 @@ ${s.indent}` : " "
1951
1952
  description: "a free software package for retrieving files using HTTP, HTTPS",
1952
1953
  extname: ".sh"
1953
1954
  },
1954
- convert: ({ method: t, postData: e, allHeaders: r, fullUrl: o }, i) => {
1955
+ convert: ({ method: t, postData: e, allHeaders: r, fullUrl: o }, s) => {
1955
1956
  const a = {
1956
1957
  indent: " ",
1957
1958
  short: !1,
1958
1959
  verbose: !1,
1959
- ...i
1960
- }, { push: n, join: s } = new C({
1960
+ ...s
1961
+ }, { push: n, join: i } = new C({
1961
1962
  ...typeof a.indent == "string" ? { indent: a.indent } : {},
1962
1963
  join: a.indent !== !1 ? ` \\
1963
1964
  ${a.indent}` : " "
@@ -1965,9 +1966,9 @@ ${a.indent}` : " "
1965
1966
  return a.verbose ? n(`wget ${a.short ? "-v" : "--verbose"}`) : n(`wget ${a.short ? "-q" : "--quiet"}`), n(`--method ${M(t)}`), Object.keys(r).forEach((l) => {
1966
1967
  const c = `${l}: ${r[l]}`;
1967
1968
  n(`--header ${M(c)}`);
1968
- }), e.text && n(`--body-data ${ya(M(e.text))}`), n(a.short ? "-O" : "--output-document"), n(`- ${M(o)}`), s();
1969
+ }), e.text && n(`--body-data ${ma(M(e.text))}`), n(a.short ? "-O" : "--output-document"), n(`- ${M(o)}`), i();
1969
1970
  }
1970
- }, $a = {
1971
+ }, ja = {
1971
1972
  info: {
1972
1973
  key: "shell",
1973
1974
  title: "Shell",
@@ -1975,15 +1976,15 @@ ${a.indent}` : " "
1975
1976
  cli: "%s"
1976
1977
  },
1977
1978
  clientsById: {
1978
- curl: ba,
1979
- httpie: va,
1980
- wget: xa
1979
+ curl: va,
1980
+ httpie: xa,
1981
+ wget: $a
1981
1982
  }
1982
1983
  }, hr = (t, e) => e.repeat(t), yr = (t, e, r, o) => {
1983
- const i = hr(o, r), a = hr(o - 1, r), n = e ? `,
1984
- ${i}` : ", ";
1984
+ const s = hr(o, r), a = hr(o - 1, r), n = e ? `,
1985
+ ${s}` : ", ";
1985
1986
  return e ? `[
1986
- ${i}${t.join(n)}
1987
+ ${s}${t.join(n)}
1987
1988
  ${a}]` : `[${t.join(n)}]`;
1988
1989
  }, mr = (t, e, r) => `let ${t} = ${ot(e, r)}`, ot = (t, e, r) => {
1989
1990
  switch (r = r === void 0 ? 1 : r + 1, Object.prototype.toString.call(t)) {
@@ -1991,13 +1992,13 @@ ${a}]` : `[${t.join(n)}]`;
1991
1992
  return t;
1992
1993
  case "[object Array]": {
1993
1994
  let o = !1;
1994
- const i = t.map((a) => (Object.prototype.toString.call(a) === "[object Object]" && (o = Object.keys(a).length > 1), ot(a, e, r)));
1995
- return yr(i, o, e.indent, r);
1995
+ const s = t.map((a) => (Object.prototype.toString.call(a) === "[object Object]" && (o = Object.keys(a).length > 1), ot(a, e, r)));
1996
+ return yr(s, o, e.indent, r);
1996
1997
  }
1997
1998
  case "[object Object]": {
1998
1999
  const o = [];
1999
- for (const i in t)
2000
- o.push(`"${i}": ${ot(t[i], e, r)}`);
2000
+ for (const s in t)
2001
+ o.push(`"${s}": ${ot(t[s], e, r)}`);
2001
2002
  return yr(
2002
2003
  o,
2003
2004
  // @ts-expect-error needs better types
@@ -2020,50 +2021,50 @@ ${a}]` : `[${t.join(n)}]`;
2020
2021
  description: "Foundation's URLSession request",
2021
2022
  extname: ".swift"
2022
2023
  },
2023
- convert: ({ allHeaders: t, postData: e, uriObj: r, queryObj: o, method: i }, a) => {
2024
+ convert: ({ allHeaders: t, postData: e, uriObj: r, queryObj: o, method: s }, a) => {
2024
2025
  var p;
2025
2026
  const n = {
2026
2027
  indent: " ",
2027
2028
  pretty: !0,
2028
2029
  timeout: 10,
2029
2030
  ...a
2030
- }, { push: s, blank: l, join: c } = new C({ indent: n.indent });
2031
- s("import Foundation"), l();
2031
+ }, { push: i, blank: l, join: c } = new C({ indent: n.indent });
2032
+ i("import Foundation"), l();
2032
2033
  const u = e.text || e.jsonObj || e.params;
2033
2034
  if (u)
2034
2035
  switch (e.mimeType) {
2035
2036
  case "application/x-www-form-urlencoded":
2036
2037
  if ((p = e.params) != null && p.length) {
2037
2038
  const h = e.params.map((y) => `"${y.name}": "${y.value}"`);
2038
- n.pretty ? (s("let parameters = ["), h.forEach((y) => s(`${y},`, 1)), s("]")) : s(`let parameters = [${h.join(", ")}]`), s('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), s("let postData = Data(joinedParameters.utf8)"), l();
2039
+ n.pretty ? (i("let parameters = ["), h.forEach((y) => i(`${y},`, 1)), i("]")) : i(`let parameters = [${h.join(", ")}]`), i('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), i("let postData = Data(joinedParameters.utf8)"), l();
2039
2040
  }
2040
2041
  break;
2041
2042
  case "application/json":
2042
- e.jsonObj && (s(`${mr("parameters", e.jsonObj, n)} as [String : Any?]`), l(), s("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
2043
+ e.jsonObj && (i(`${mr("parameters", e.jsonObj, n)} as [String : Any?]`), l(), i("let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])"), l());
2043
2044
  break;
2044
2045
  case "multipart/form-data":
2045
- s(mr("parameters", e.params, n)), l(), s(`let boundary = "${e.boundary}"`), l(), s('var body = ""'), s("for param in parameters {"), s('let paramName = param["name"]!', 1), s('body += "--\\(boundary)\\r\\n"', 1), s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), s('if let filename = param["fileName"] {', 1), s('let contentType = param["contentType"]!', 2), s("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), s('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), s("body += fileContent", 2), s('} else if let paramValue = param["value"] {', 1), s('body += "\\r\\n\\r\\n\\(paramValue)"', 2), s("}", 1), s("}"), l(), s("let postData = Data(body.utf8)"), l();
2046
+ i(mr("parameters", e.params, n)), l(), i(`let boundary = "${e.boundary}"`), l(), i('var body = ""'), i("for param in parameters {"), i('let paramName = param["name"]!', 1), i('body += "--\\(boundary)\\r\\n"', 1), i('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""', 1), i('if let filename = param["fileName"] {', 1), i('let contentType = param["contentType"]!', 2), i("let fileContent = try String(contentsOfFile: filename, encoding: .utf8)", 2), i('body += "; filename=\\"\\(filename)\\"\\r\\n"', 2), i('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"', 2), i("body += fileContent", 2), i('} else if let paramValue = param["value"] {', 1), i('body += "\\r\\n\\r\\n\\(paramValue)"', 2), i("}", 1), i("}"), l(), i("let postData = Data(body.utf8)"), l();
2046
2047
  break;
2047
2048
  default:
2048
- s(`let postData = Data("${e.text}".utf8)`), l();
2049
+ i(`let postData = Data("${e.text}".utf8)`), l();
2049
2050
  }
2050
- s(`let url = URL(string: "${r.href}")!`);
2051
+ i(`let url = URL(string: "${r.href}")!`);
2051
2052
  const f = o ? Object.entries(o) : [];
2052
- return f.length < 1 ? s("var request = URLRequest(url: url)") : (s("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), s("let queryItems: [URLQueryItem] = ["), f.forEach((h) => {
2053
+ return f.length < 1 ? i("var request = URLRequest(url: url)") : (i("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), i("let queryItems: [URLQueryItem] = ["), f.forEach((h) => {
2053
2054
  const y = h[0], g = h[1];
2054
2055
  switch (Object.prototype.toString.call(g)) {
2055
2056
  case "[object String]":
2056
- s(`URLQueryItem(name: "${y}", value: "${g}"),`, 1);
2057
+ i(`URLQueryItem(name: "${y}", value: "${g}"),`, 1);
2057
2058
  break;
2058
2059
  case "[object Array]":
2059
2060
  g.forEach((b) => {
2060
- s(`URLQueryItem(name: "${y}", value: "${b}"),`, 1);
2061
+ i(`URLQueryItem(name: "${y}", value: "${b}"),`, 1);
2061
2062
  });
2062
2063
  break;
2063
2064
  }
2064
- }), s("]"), s("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), s("var request = URLRequest(url: components.url!)")), s(`request.httpMethod = "${i}"`), s(`request.timeoutInterval = ${n.timeout}`), Object.keys(t).length && s(`request.allHTTPHeaderFields = ${ot(t, n)}`), u && s("request.httpBody = postData"), l(), s("let (data, _) = try await URLSession.shared.data(for: request)"), s("print(String(decoding: data, as: UTF8.self))"), c();
2065
+ }), i("]"), i("components.queryItems = components.queryItems.map { $0 + queryItems } ?? queryItems"), l(), i("var request = URLRequest(url: components.url!)")), i(`request.httpMethod = "${s}"`), i(`request.timeoutInterval = ${n.timeout}`), Object.keys(t).length && i(`request.allHTTPHeaderFields = ${ot(t, n)}`), u && i("request.httpBody = postData"), l(), i("let (data, _) = try await URLSession.shared.data(for: request)"), i("print(String(decoding: data, as: UTF8.self))"), c();
2065
2066
  }
2066
- }, ja = {
2067
+ }, Sa = {
2067
2068
  info: {
2068
2069
  key: "swift",
2069
2070
  title: "Swift",
@@ -2072,38 +2073,38 @@ ${a}]` : `[${t.join(n)}]`;
2072
2073
  clientsById: {
2073
2074
  urlsession: wa
2074
2075
  }
2075
- }, Sa = {
2076
- c: mo,
2077
- clojure: xo,
2078
- csharp: Oo,
2079
- go: Co,
2080
- http: ko,
2081
- java: qo,
2082
- javascript: _o,
2083
- json: Bo,
2084
- kotlin: zo,
2085
- node: Ko,
2086
- objc: Yo,
2087
- ocaml: Zo,
2088
- php: oa,
2089
- powershell: sa,
2090
- python: ua,
2091
- r: fa,
2092
- ruby: ha,
2093
- shell: $a,
2094
- swift: ja
2076
+ }, Oa = {
2077
+ c: go,
2078
+ clojure: $o,
2079
+ csharp: To,
2080
+ go: Po,
2081
+ http: Eo,
2082
+ java: Io,
2083
+ javascript: Ho,
2084
+ json: Mo,
2085
+ kotlin: Wo,
2086
+ node: Do,
2087
+ objc: Xo,
2088
+ ocaml: ea,
2089
+ php: aa,
2090
+ powershell: la,
2091
+ python: pa,
2092
+ r: da,
2093
+ ruby: ya,
2094
+ shell: ja,
2095
+ swift: Sa
2095
2096
  }, at = { exports: {} };
2096
2097
  /*! https://mths.be/punycode v1.4.1 by @mathias */
2097
2098
  at.exports;
2098
2099
  (function(t, e) {
2099
2100
  (function(r) {
2100
- var o = e && !e.nodeType && e, i = t && !t.nodeType && t, a = typeof He == "object" && He;
2101
+ var o = e && !e.nodeType && e, s = t && !t.nodeType && t, a = typeof He == "object" && He;
2101
2102
  (a.global === a || a.window === a || a.self === a) && (r = a);
2102
- var n, s = 2147483647, l = 36, c = 1, u = 26, f = 38, p = 700, h = 72, y = 128, g = "-", b = /^xn--/, x = /[^\x20-\x7E]/, m = /[\x2E\u3002\uFF0E\uFF61]/g, v = {
2103
+ var n, i = 2147483647, l = 36, c = 1, u = 26, f = 38, p = 700, h = 72, y = 128, g = "-", b = /^xn--/, x = /[^\x20-\x7E]/, m = /[\x2E\u3002\uFF0E\uFF61]/g, v = {
2103
2104
  overflow: "Overflow: input needs wider integers to process",
2104
2105
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2105
2106
  "invalid-input": "Invalid input"
2106
- }, j = l - c, w = Math.floor, S = String.fromCharCode, k;
2107
+ }, w = l - c, j = Math.floor, S = String.fromCharCode, k;
2107
2108
  function E($) {
2108
2109
  throw new RangeError(v[$]);
2109
2110
  }
@@ -2137,18 +2138,18 @@ at.exports;
2137
2138
  }
2138
2139
  function Q($, O, P) {
2139
2140
  var A = 0;
2140
- for ($ = P ? w($ / p) : $ >> 1, $ += w($ / O); $ > j * u >> 1; A += l)
2141
- $ = w($ / j);
2142
- return w(A + (j + 1) * $ / ($ + f));
2141
+ for ($ = P ? j($ / p) : $ >> 1, $ += j($ / O); $ > w * u >> 1; A += l)
2142
+ $ = j($ / w);
2143
+ return j(A + (w + 1) * $ / ($ + f));
2143
2144
  }
2144
2145
  function Y($) {
2145
2146
  var O = [], P = $.length, A, I = 0, K = y, B = h, X, ne, ie, pe, W, Z, oe, ye, $e;
2146
2147
  for (X = $.lastIndexOf(g), X < 0 && (X = 0), ne = 0; ne < X; ++ne)
2147
2148
  $.charCodeAt(ne) >= 128 && E("not-basic"), O.push($.charCodeAt(ne));
2148
2149
  for (ie = X > 0 ? X + 1 : 0; ie < P; ) {
2149
- for (pe = I, W = 1, Z = l; ie >= P && E("invalid-input"), oe = L($.charCodeAt(ie++)), (oe >= l || oe > w((s - I) / W)) && E("overflow"), I += oe * W, ye = Z <= B ? c : Z >= B + u ? u : Z - B, !(oe < ye); Z += l)
2150
- $e = l - ye, W > w(s / $e) && E("overflow"), W *= $e;
2151
- A = O.length + 1, B = Q(I - pe, A, pe == 0), w(I / A) > s - K && E("overflow"), K += w(I / A), I %= A, O.splice(I++, 0, K);
2150
+ for (pe = I, W = 1, Z = l; ie >= P && E("invalid-input"), oe = L($.charCodeAt(ie++)), (oe >= l || oe > j((i - I) / W)) && E("overflow"), I += oe * W, ye = Z <= B ? c : Z >= B + u ? u : Z - B, !(oe < ye); Z += l)
2151
+ $e = l - ye, W > j(i / $e) && E("overflow"), W *= $e;
2152
+ A = O.length + 1, B = Q(I - pe, A, pe == 0), j(I / A) > i - K && E("overflow"), K += j(I / A), I %= A, O.splice(I++, 0, K);
2152
2153
  }
2153
2154
  return re(O);
2154
2155
  }
@@ -2157,14 +2158,14 @@ at.exports;
2157
2158
  for ($ = te($), oe = $.length, O = y, P = 0, K = h, B = 0; B < oe; ++B)
2158
2159
  W = $[B], W < 128 && Z.push(S(W));
2159
2160
  for (A = I = Z.length, I && Z.push(g); A < oe; ) {
2160
- for (X = s, B = 0; B < oe; ++B)
2161
+ for (X = i, B = 0; B < oe; ++B)
2161
2162
  W = $[B], W >= O && W < X && (X = W);
2162
- for (ye = A + 1, X - O > w((s - P) / ye) && E("overflow"), P += (X - O) * ye, O = X, B = 0; B < oe; ++B)
2163
- if (W = $[B], W < O && ++P > s && E("overflow"), W == O) {
2163
+ for (ye = A + 1, X - O > j((i - P) / ye) && E("overflow"), P += (X - O) * ye, O = X, B = 0; B < oe; ++B)
2164
+ if (W = $[B], W < O && ++P > i && E("overflow"), W == O) {
2164
2165
  for (ne = P, ie = l; pe = ie <= K ? c : ie >= K + u ? u : ie - K, !(ne < pe); ie += l)
2165
2166
  dt = ne - pe, $e = l - pe, Z.push(
2166
2167
  S(V(pe + dt % $e, 0))
2167
- ), ne = w(dt / $e);
2168
+ ), ne = j(dt / $e);
2168
2169
  Z.push(S(V(ne, 0))), K = Q(P, ye, A == I), P = 0, ++A;
2169
2170
  }
2170
2171
  ++P, ++O;
@@ -2203,9 +2204,9 @@ at.exports;
2203
2204
  encode: he,
2204
2205
  toASCII: Ke,
2205
2206
  toUnicode: ft
2206
- }, o && i)
2207
+ }, o && s)
2207
2208
  if (t.exports == o)
2208
- i.exports = n;
2209
+ s.exports = n;
2209
2210
  else
2210
2211
  for (k in n)
2211
2212
  n.hasOwnProperty(k) && (o[k] = n[k]);
@@ -2213,7 +2214,7 @@ at.exports;
2213
2214
  r.punycode = n;
2214
2215
  })(He);
2215
2216
  })(at, at.exports);
2216
- var Oa = at.exports, Ta = Error, Ca = EvalError, Pa = RangeError, ka = ReferenceError, nn = SyntaxError, Ve = TypeError, Ea = URIError, Na = function() {
2217
+ var Ta = at.exports, Ca = Error, Pa = EvalError, ka = RangeError, Ea = ReferenceError, nn = SyntaxError, Ve = TypeError, Na = URIError, Ra = function() {
2217
2218
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
2218
2219
  return !1;
2219
2220
  if (typeof Symbol.iterator == "symbol")
@@ -2221,8 +2222,8 @@ var Oa = at.exports, Ta = Error, Ca = EvalError, Pa = RangeError, ka = Reference
2221
2222
  var e = {}, r = Symbol("test"), o = Object(r);
2222
2223
  if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(o) !== "[object Symbol]")
2223
2224
  return !1;
2224
- var i = 42;
2225
- e[r] = i;
2225
+ var s = 42;
2226
+ e[r] = s;
2226
2227
  for (r in e)
2227
2228
  return !1;
2228
2229
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
@@ -2232,37 +2233,37 @@ var Oa = at.exports, Ta = Error, Ca = EvalError, Pa = RangeError, ka = Reference
2232
2233
  return !1;
2233
2234
  if (typeof Object.getOwnPropertyDescriptor == "function") {
2234
2235
  var n = Object.getOwnPropertyDescriptor(e, r);
2235
- if (n.value !== i || n.enumerable !== !0)
2236
+ if (n.value !== s || n.enumerable !== !0)
2236
2237
  return !1;
2237
2238
  }
2238
2239
  return !0;
2239
- }, gr = typeof Symbol < "u" && Symbol, Ra = Na, Aa = function() {
2240
- return typeof gr != "function" || typeof Symbol != "function" || typeof gr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ra();
2240
+ }, gr = typeof Symbol < "u" && Symbol, Aa = Ra, qa = function() {
2241
+ return typeof gr != "function" || typeof Symbol != "function" || typeof gr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Aa();
2241
2242
  }, yt = {
2242
2243
  __proto__: null,
2243
2244
  foo: {}
2244
- }, qa = Object, Ia = function() {
2245
- return { __proto__: yt }.foo === yt.foo && !(yt instanceof qa);
2246
- }, La = "Function.prototype.bind called on incompatible ", Ua = Object.prototype.toString, Fa = Math.max, _a = "[object Function]", br = function(e, r) {
2247
- for (var o = [], i = 0; i < e.length; i += 1)
2248
- o[i] = e[i];
2245
+ }, Ia = Object, La = function() {
2246
+ return { __proto__: yt }.foo === yt.foo && !(yt instanceof Ia);
2247
+ }, Ua = "Function.prototype.bind called on incompatible ", Fa = Object.prototype.toString, _a = Math.max, Ha = "[object Function]", br = function(e, r) {
2248
+ for (var o = [], s = 0; s < e.length; s += 1)
2249
+ o[s] = e[s];
2249
2250
  for (var a = 0; a < r.length; a += 1)
2250
2251
  o[a + e.length] = r[a];
2251
2252
  return o;
2252
- }, Ha = function(e, r) {
2253
- for (var o = [], i = r, a = 0; i < e.length; i += 1, a += 1)
2254
- o[a] = e[i];
2253
+ }, Ba = function(e, r) {
2254
+ for (var o = [], s = r, a = 0; s < e.length; s += 1, a += 1)
2255
+ o[a] = e[s];
2255
2256
  return o;
2256
- }, Ba = function(t, e) {
2257
+ }, Ma = function(t, e) {
2257
2258
  for (var r = "", o = 0; o < t.length; o += 1)
2258
2259
  r += t[o], o + 1 < t.length && (r += e);
2259
2260
  return r;
2260
- }, Ma = function(e) {
2261
+ }, za = function(e) {
2261
2262
  var r = this;
2262
- if (typeof r != "function" || Ua.apply(r) !== _a)
2263
- throw new TypeError(La + r);
2264
- for (var o = Ha(arguments, 1), i, a = function() {
2265
- if (this instanceof i) {
2263
+ if (typeof r != "function" || Fa.apply(r) !== Ha)
2264
+ throw new TypeError(Ua + r);
2265
+ for (var o = Ba(arguments, 1), s, a = function() {
2266
+ if (this instanceof s) {
2266
2267
  var u = r.apply(
2267
2268
  this,
2268
2269
  br(o, arguments)
@@ -2273,15 +2274,15 @@ var Oa = at.exports, Ta = Error, Ca = EvalError, Pa = RangeError, ka = Reference
2273
2274
  e,
2274
2275
  br(o, arguments)
2275
2276
  );
2276
- }, n = Fa(0, r.length - o.length), s = [], l = 0; l < n; l++)
2277
- s[l] = "$" + l;
2278
- if (i = Function("binder", "return function (" + Ba(s, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
2277
+ }, n = _a(0, r.length - o.length), i = [], l = 0; l < n; l++)
2278
+ i[l] = "$" + l;
2279
+ if (s = Function("binder", "return function (" + Ma(i, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
2279
2280
  var c = function() {
2280
2281
  };
2281
- c.prototype = r.prototype, i.prototype = new c(), c.prototype = null;
2282
+ c.prototype = r.prototype, s.prototype = new c(), c.prototype = null;
2282
2283
  }
2283
- return i;
2284
- }, za = Ma, Jt = Function.prototype.bind || za, Wa = Function.prototype.call, Ja = Object.prototype.hasOwnProperty, Ga = Jt, Va = Ga.call(Wa, Ja), T, Qa = Ta, Ka = Ca, Da = Pa, Ya = ka, Ae = nn, Ee = Ve, Xa = Ea, on = Function, mt = function(t) {
2284
+ return s;
2285
+ }, Wa = za, Jt = Function.prototype.bind || Wa, Ja = Function.prototype.call, Ga = Object.prototype.hasOwnProperty, Va = Jt, Qa = Va.call(Ja, Ga), T, Ka = Ca, Da = Pa, Ya = ka, Xa = Ea, Ae = nn, Ee = Ve, Za = Na, on = Function, mt = function(t) {
2285
2286
  try {
2286
2287
  return on('"use strict"; return (' + t + ").constructor;")();
2287
2288
  } catch {
@@ -2295,7 +2296,7 @@ if (Se)
2295
2296
  }
2296
2297
  var gt = function() {
2297
2298
  throw new Ee();
2298
- }, Za = Se ? function() {
2299
+ }, ei = Se ? function() {
2299
2300
  try {
2300
2301
  return arguments.callee, gt;
2301
2302
  } catch {
@@ -2305,9 +2306,9 @@ var gt = function() {
2305
2306
  return gt;
2306
2307
  }
2307
2308
  }
2308
- }() : gt, Te = Aa(), ei = Ia(), _ = Object.getPrototypeOf || (ei ? function(t) {
2309
+ }() : gt, Te = qa(), ti = La(), _ = Object.getPrototypeOf || (ti ? function(t) {
2309
2310
  return t.__proto__;
2310
- } : null), Pe = {}, ti = typeof Uint8Array > "u" || !_ ? T : _(Uint8Array), Oe = {
2311
+ } : null), Pe = {}, ri = typeof Uint8Array > "u" || !_ ? T : _(Uint8Array), Oe = {
2311
2312
  __proto__: null,
2312
2313
  "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
2313
2314
  "%Array%": Array,
@@ -2329,10 +2330,10 @@ var gt = function() {
2329
2330
  "%decodeURIComponent%": decodeURIComponent,
2330
2331
  "%encodeURI%": encodeURI,
2331
2332
  "%encodeURIComponent%": encodeURIComponent,
2332
- "%Error%": Qa,
2333
+ "%Error%": Ka,
2333
2334
  "%eval%": eval,
2334
2335
  // eslint-disable-line no-eval
2335
- "%EvalError%": Ka,
2336
+ "%EvalError%": Da,
2336
2337
  "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
2337
2338
  "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
2338
2339
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
@@ -2354,8 +2355,8 @@ var gt = function() {
2354
2355
  "%parseInt%": parseInt,
2355
2356
  "%Promise%": typeof Promise > "u" ? T : Promise,
2356
2357
  "%Proxy%": typeof Proxy > "u" ? T : Proxy,
2357
- "%RangeError%": Da,
2358
- "%ReferenceError%": Ya,
2358
+ "%RangeError%": Ya,
2359
+ "%ReferenceError%": Xa,
2359
2360
  "%Reflect%": typeof Reflect > "u" ? T : Reflect,
2360
2361
  "%RegExp%": RegExp,
2361
2362
  "%Set%": typeof Set > "u" ? T : Set,
@@ -2365,14 +2366,14 @@ var gt = function() {
2365
2366
  "%StringIteratorPrototype%": Te && _ ? _(""[Symbol.iterator]()) : T,
2366
2367
  "%Symbol%": Te ? Symbol : T,
2367
2368
  "%SyntaxError%": Ae,
2368
- "%ThrowTypeError%": Za,
2369
- "%TypedArray%": ti,
2369
+ "%ThrowTypeError%": ei,
2370
+ "%TypedArray%": ri,
2370
2371
  "%TypeError%": Ee,
2371
2372
  "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
2372
2373
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
2373
2374
  "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
2374
2375
  "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
2375
- "%URIError%": Xa,
2376
+ "%URIError%": Za,
2376
2377
  "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
2377
2378
  "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
2378
2379
  "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
@@ -2381,10 +2382,10 @@ if (_)
2381
2382
  try {
2382
2383
  null.error;
2383
2384
  } catch (t) {
2384
- var ri = _(_(t));
2385
- Oe["%Error.prototype%"] = ri;
2385
+ var ni = _(_(t));
2386
+ Oe["%Error.prototype%"] = ni;
2386
2387
  }
2387
- var ni = function t(e) {
2388
+ var oi = function t(e) {
2388
2389
  var r;
2389
2390
  if (e === "%AsyncFunction%")
2390
2391
  r = mt("async function () {}");
@@ -2396,8 +2397,8 @@ var ni = function t(e) {
2396
2397
  var o = t("%AsyncGeneratorFunction%");
2397
2398
  o && (r = o.prototype);
2398
2399
  } else if (e === "%AsyncIteratorPrototype%") {
2399
- var i = t("%AsyncGenerator%");
2400
- i && _ && (r = _(i.prototype));
2400
+ var s = t("%AsyncGenerator%");
2401
+ s && _ && (r = _(s.prototype));
2401
2402
  }
2402
2403
  return Oe[e] = r, r;
2403
2404
  }, vr = {
@@ -2453,24 +2454,24 @@ var ni = function t(e) {
2453
2454
  "%URIErrorPrototype%": ["URIError", "prototype"],
2454
2455
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2455
2456
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2456
- }, Qe = Jt, it = Va, oi = Qe.call(Function.call, Array.prototype.concat), ai = Qe.call(Function.apply, Array.prototype.splice), xr = Qe.call(Function.call, String.prototype.replace), st = Qe.call(Function.call, String.prototype.slice), ii = Qe.call(Function.call, RegExp.prototype.exec), si = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, li = /\\(\\)?/g, ci = function(e) {
2457
+ }, Qe = Jt, it = Qa, ai = Qe.call(Function.call, Array.prototype.concat), ii = Qe.call(Function.apply, Array.prototype.splice), xr = Qe.call(Function.call, String.prototype.replace), st = Qe.call(Function.call, String.prototype.slice), si = Qe.call(Function.call, RegExp.prototype.exec), li = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ci = /\\(\\)?/g, ui = function(e) {
2457
2458
  var r = st(e, 0, 1), o = st(e, -1);
2458
2459
  if (r === "%" && o !== "%")
2459
2460
  throw new Ae("invalid intrinsic syntax, expected closing `%`");
2460
2461
  if (o === "%" && r !== "%")
2461
2462
  throw new Ae("invalid intrinsic syntax, expected opening `%`");
2462
- var i = [];
2463
- return xr(e, si, function(a, n, s, l) {
2464
- i[i.length] = s ? xr(l, li, "$1") : n || a;
2465
- }), i;
2466
- }, ui = function(e, r) {
2467
- var o = e, i;
2468
- if (it(vr, o) && (i = vr[o], o = "%" + i[0] + "%"), it(Oe, o)) {
2463
+ var s = [];
2464
+ return xr(e, li, function(a, n, i, l) {
2465
+ s[s.length] = i ? xr(l, ci, "$1") : n || a;
2466
+ }), s;
2467
+ }, pi = function(e, r) {
2468
+ var o = e, s;
2469
+ if (it(vr, o) && (s = vr[o], o = "%" + s[0] + "%"), it(Oe, o)) {
2469
2470
  var a = Oe[o];
2470
- if (a === Pe && (a = ni(o)), typeof a > "u" && !r)
2471
+ if (a === Pe && (a = oi(o)), typeof a > "u" && !r)
2471
2472
  throw new Ee("intrinsic " + e + " exists, but is not available. Please file an issue!");
2472
2473
  return {
2473
- alias: i,
2474
+ alias: s,
2474
2475
  name: o,
2475
2476
  value: a
2476
2477
  };
@@ -2481,31 +2482,31 @@ var ni = function t(e) {
2481
2482
  throw new Ee("intrinsic name must be a non-empty string");
2482
2483
  if (arguments.length > 1 && typeof r != "boolean")
2483
2484
  throw new Ee('"allowMissing" argument must be a boolean');
2484
- if (ii(/^%?[^%]*%?$/, e) === null)
2485
+ if (si(/^%?[^%]*%?$/, e) === null)
2485
2486
  throw new Ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
2486
- var o = ci(e), i = o.length > 0 ? o[0] : "", a = ui("%" + i + "%", r), n = a.name, s = a.value, l = !1, c = a.alias;
2487
- c && (i = c[0], ai(o, oi([0, 1], c)));
2487
+ var o = ui(e), s = o.length > 0 ? o[0] : "", a = pi("%" + s + "%", r), n = a.name, i = a.value, l = !1, c = a.alias;
2488
+ c && (s = c[0], ii(o, ai([0, 1], c)));
2488
2489
  for (var u = 1, f = !0; u < o.length; u += 1) {
2489
2490
  var p = o[u], h = st(p, 0, 1), y = st(p, -1);
2490
2491
  if ((h === '"' || h === "'" || h === "`" || y === '"' || y === "'" || y === "`") && h !== y)
2491
2492
  throw new Ae("property names with quotes must have matching quotes");
2492
- if ((p === "constructor" || !f) && (l = !0), i += "." + p, n = "%" + i + "%", it(Oe, n))
2493
- s = Oe[n];
2494
- else if (s != null) {
2495
- if (!(p in s)) {
2493
+ if ((p === "constructor" || !f) && (l = !0), s += "." + p, n = "%" + s + "%", it(Oe, n))
2494
+ i = Oe[n];
2495
+ else if (i != null) {
2496
+ if (!(p in i)) {
2496
2497
  if (!r)
2497
2498
  throw new Ee("base intrinsic for " + e + " exists, but the property is not available.");
2498
2499
  return;
2499
2500
  }
2500
2501
  if (Se && u + 1 >= o.length) {
2501
- var g = Se(s, p);
2502
- f = !!g, f && "get" in g && !("originalValue" in g.get) ? s = g.get : s = s[p];
2502
+ var g = Se(i, p);
2503
+ f = !!g, f && "get" in g && !("originalValue" in g.get) ? i = g.get : i = i[p];
2503
2504
  } else
2504
- f = it(s, p), s = s[p];
2505
- f && !l && (Oe[n] = s);
2505
+ f = it(i, p), i = i[p];
2506
+ f && !l && (Oe[n] = i);
2506
2507
  }
2507
2508
  }
2508
- return s;
2509
+ return i;
2509
2510
  }, an = { exports: {} }, bt, $r;
2510
2511
  function Gt() {
2511
2512
  if ($r) return bt;
@@ -2519,14 +2520,14 @@ function Gt() {
2519
2520
  }
2520
2521
  return bt = e, bt;
2521
2522
  }
2522
- var pi = Le, tt = pi("%Object.getOwnPropertyDescriptor%", !0);
2523
+ var fi = Le, tt = fi("%Object.getOwnPropertyDescriptor%", !0);
2523
2524
  if (tt)
2524
2525
  try {
2525
2526
  tt([], "length");
2526
2527
  } catch {
2527
2528
  tt = null;
2528
2529
  }
2529
- var sn = tt, wr = Gt(), fi = nn, Ce = Ve, jr = sn, di = function(e, r, o) {
2530
+ var sn = tt, jr = Gt(), di = nn, Ce = Ve, wr = sn, hi = function(e, r, o) {
2530
2531
  if (!e || typeof e != "object" && typeof e != "function")
2531
2532
  throw new Ce("`obj` must be an object or a function`");
2532
2533
  if (typeof r != "string" && typeof r != "symbol")
@@ -2539,18 +2540,18 @@ var sn = tt, wr = Gt(), fi = nn, Ce = Ve, jr = sn, di = function(e, r, o) {
2539
2540
  throw new Ce("`nonConfigurable`, if provided, must be a boolean or null");
2540
2541
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
2541
2542
  throw new Ce("`loose`, if provided, must be a boolean");
2542
- var i = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, n = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, l = !!jr && jr(e, r);
2543
- if (wr)
2544
- wr(e, r, {
2543
+ var s = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, n = arguments.length > 5 ? arguments[5] : null, i = arguments.length > 6 ? arguments[6] : !1, l = !!wr && wr(e, r);
2544
+ if (jr)
2545
+ jr(e, r, {
2545
2546
  configurable: n === null && l ? l.configurable : !n,
2546
- enumerable: i === null && l ? l.enumerable : !i,
2547
+ enumerable: s === null && l ? l.enumerable : !s,
2547
2548
  value: o,
2548
2549
  writable: a === null && l ? l.writable : !a
2549
2550
  });
2550
- else if (s || !i && !a && !n)
2551
+ else if (i || !s && !a && !n)
2551
2552
  e[r] = o;
2552
2553
  else
2553
- throw new fi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2554
+ throw new di("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
2554
2555
  }, kt = Gt(), ln = function() {
2555
2556
  return !!kt;
2556
2557
  };
@@ -2563,17 +2564,17 @@ ln.hasArrayLengthDefineBug = function() {
2563
2564
  return !0;
2564
2565
  }
2565
2566
  };
2566
- var hi = ln, yi = Le, Sr = di, mi = hi(), Or = sn, Tr = Ve, gi = yi("%Math.floor%"), bi = function(e, r) {
2567
+ var yi = ln, mi = Le, Sr = hi, gi = yi(), Or = sn, Tr = Ve, bi = mi("%Math.floor%"), vi = function(e, r) {
2567
2568
  if (typeof e != "function")
2568
2569
  throw new Tr("`fn` is not a function");
2569
- if (typeof r != "number" || r < 0 || r > 4294967295 || gi(r) !== r)
2570
+ if (typeof r != "number" || r < 0 || r > 4294967295 || bi(r) !== r)
2570
2571
  throw new Tr("`length` must be a positive 32-bit integer");
2571
- var o = arguments.length > 2 && !!arguments[2], i = !0, a = !0;
2572
+ var o = arguments.length > 2 && !!arguments[2], s = !0, a = !0;
2572
2573
  if ("length" in e && Or) {
2573
2574
  var n = Or(e, "length");
2574
- n && !n.configurable && (i = !1), n && !n.writable && (a = !1);
2575
+ n && !n.configurable && (s = !1), n && !n.writable && (a = !1);
2575
2576
  }
2576
- return (i || a || !o) && (mi ? Sr(
2577
+ return (s || a || !o) && (gi ? Sr(
2577
2578
  /** @type {Parameters<define>[0]} */
2578
2579
  e,
2579
2580
  "length",
@@ -2588,11 +2589,11 @@ var hi = ln, yi = Le, Sr = di, mi = hi(), Or = sn, Tr = Ve, gi = yi("%Math.floor
2588
2589
  )), e;
2589
2590
  };
2590
2591
  (function(t) {
2591
- var e = Jt, r = Le, o = bi, i = Ve, a = r("%Function.prototype.apply%"), n = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || e.call(n, a), l = Gt(), c = r("%Math.max%");
2592
+ var e = Jt, r = Le, o = vi, s = Ve, a = r("%Function.prototype.apply%"), n = r("%Function.prototype.call%"), i = r("%Reflect.apply%", !0) || e.call(n, a), l = Gt(), c = r("%Math.max%");
2592
2593
  t.exports = function(p) {
2593
2594
  if (typeof p != "function")
2594
- throw new i("a function is required");
2595
- var h = s(e, n, arguments);
2595
+ throw new s("a function is required");
2596
+ var h = i(e, n, arguments);
2596
2597
  return o(
2597
2598
  h,
2598
2599
  1 + c(0, p.length - (arguments.length - 1)),
@@ -2600,16 +2601,16 @@ var hi = ln, yi = Le, Sr = di, mi = hi(), Or = sn, Tr = Ve, gi = yi("%Math.floor
2600
2601
  );
2601
2602
  };
2602
2603
  var u = function() {
2603
- return s(e, a, arguments);
2604
+ return i(e, a, arguments);
2604
2605
  };
2605
2606
  l ? l(t.exports, "apply", { value: u }) : t.exports.apply = u;
2606
2607
  })(an);
2607
- var vi = an.exports, cn = Le, un = vi, xi = un(cn("String.prototype.indexOf")), $i = function(e, r) {
2608
+ var xi = an.exports, cn = Le, un = xi, $i = un(cn("String.prototype.indexOf")), ji = function(e, r) {
2608
2609
  var o = cn(e, !!r);
2609
- return typeof o == "function" && xi(e, ".prototype.") > -1 ? un(o) : o;
2610
+ return typeof o == "function" && $i(e, ".prototype.") > -1 ? un(o) : o;
2610
2611
  };
2611
- const wi = /* @__PURE__ */ Xn(Zn);
2612
- var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, lt = Vt && vt && typeof vt.get == "function" ? vt.get : null, Cr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, xt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ct = Qt && xt && typeof xt.get == "function" ? xt.get : null, Pr = Qt && Set.prototype.forEach, ji = typeof WeakMap == "function" && WeakMap.prototype, Be = ji ? WeakMap.prototype.has : null, Si = typeof WeakSet == "function" && WeakSet.prototype, Me = Si ? WeakSet.prototype.has : null, Oi = typeof WeakRef == "function" && WeakRef.prototype, kr = Oi ? WeakRef.prototype.deref : null, Ti = Boolean.prototype.valueOf, Ci = Object.prototype.toString, Pi = Function.prototype.toString, ki = String.prototype.match, Kt = String.prototype.slice, ge = String.prototype.replace, Ei = String.prototype.toUpperCase, Er = String.prototype.toLowerCase, pn = RegExp.prototype.test, Nr = Array.prototype.concat, ce = Array.prototype.join, Ni = Array.prototype.slice, Rr = Math.floor, Et = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $t = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, qe = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === qe || !0) ? Symbol.toStringTag : null, fn = Object.prototype.propertyIsEnumerable, Ar = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2612
+ const wi = /* @__PURE__ */ Zn(eo);
2613
+ var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, lt = Vt && vt && typeof vt.get == "function" ? vt.get : null, Cr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, xt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ct = Qt && xt && typeof xt.get == "function" ? xt.get : null, Pr = Qt && Set.prototype.forEach, Si = typeof WeakMap == "function" && WeakMap.prototype, Be = Si ? WeakMap.prototype.has : null, Oi = typeof WeakSet == "function" && WeakSet.prototype, Me = Oi ? WeakSet.prototype.has : null, Ti = typeof WeakRef == "function" && WeakRef.prototype, kr = Ti ? WeakRef.prototype.deref : null, Ci = Boolean.prototype.valueOf, Pi = Object.prototype.toString, ki = Function.prototype.toString, Ei = String.prototype.match, Kt = String.prototype.slice, ge = String.prototype.replace, Ni = String.prototype.toUpperCase, Er = String.prototype.toLowerCase, pn = RegExp.prototype.test, Nr = Array.prototype.concat, ce = Array.prototype.join, Ri = Array.prototype.slice, Rr = Math.floor, Et = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $t = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, qe = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === qe || !0) ? Symbol.toStringTag : null, fn = Object.prototype.propertyIsEnumerable, Ar = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
2613
2614
  return t.__proto__;
2614
2615
  } : null);
2615
2616
  function qr(t, e) {
@@ -2619,13 +2620,13 @@ function qr(t, e) {
2619
2620
  if (typeof t == "number") {
2620
2621
  var o = t < 0 ? -Rr(-t) : Rr(t);
2621
2622
  if (o !== t) {
2622
- var i = String(o), a = Kt.call(e, i.length + 1);
2623
- return ge.call(i, r, "$&_") + "." + ge.call(ge.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2623
+ var s = String(o), a = Kt.call(e, s.length + 1);
2624
+ return ge.call(s, r, "$&_") + "." + ge.call(ge.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2624
2625
  }
2625
2626
  }
2626
2627
  return ge.call(e, r, "$&_");
2627
2628
  }
2628
- var Rt = wi, Ir = Rt.custom, Lr = hn(Ir) ? Ir : null, Ri = function t(e, r, o, i) {
2629
+ var Rt = wi, Ir = Rt.custom, Lr = hn(Ir) ? Ir : null, Ai = function t(e, r, o, s) {
2629
2630
  var a = r || {};
2630
2631
  if (me(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
2631
2632
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -2638,7 +2639,7 @@ var Rt = wi, Ir = Rt.custom, Lr = hn(Ir) ? Ir : null, Ri = function t(e, r, o, i
2638
2639
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2639
2640
  if (me(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
2640
2641
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2641
- var s = a.numericSeparator;
2642
+ var i = a.numericSeparator;
2642
2643
  if (typeof e > "u")
2643
2644
  return "undefined";
2644
2645
  if (e === null)
@@ -2651,51 +2652,51 @@ var Rt = wi, Ir = Rt.custom, Lr = hn(Ir) ? Ir : null, Ri = function t(e, r, o, i
2651
2652
  if (e === 0)
2652
2653
  return 1 / 0 / e > 0 ? "0" : "-0";
2653
2654
  var l = String(e);
2654
- return s ? qr(e, l) : l;
2655
+ return i ? qr(e, l) : l;
2655
2656
  }
2656
2657
  if (typeof e == "bigint") {
2657
2658
  var c = String(e) + "n";
2658
- return s ? qr(e, c) : c;
2659
+ return i ? qr(e, c) : c;
2659
2660
  }
2660
2661
  var u = typeof a.depth > "u" ? 5 : a.depth;
2661
2662
  if (typeof o > "u" && (o = 0), o >= u && u > 0 && typeof e == "object")
2662
2663
  return At(e) ? "[Array]" : "[Object]";
2663
- var f = Di(a, o);
2664
- if (typeof i > "u")
2665
- i = [];
2666
- else if (yn(i, e) >= 0)
2664
+ var f = Yi(a, o);
2665
+ if (typeof s > "u")
2666
+ s = [];
2667
+ else if (yn(s, e) >= 0)
2667
2668
  return "[Circular]";
2668
2669
  function p(L, V, Q) {
2669
- if (V && (i = Ni.call(i), i.push(V)), Q) {
2670
+ if (V && (s = Ri.call(s), s.push(V)), Q) {
2670
2671
  var Y = {
2671
2672
  depth: a.depth
2672
2673
  };
2673
- return me(a, "quoteStyle") && (Y.quoteStyle = a.quoteStyle), t(L, Y, o + 1, i);
2674
+ return me(a, "quoteStyle") && (Y.quoteStyle = a.quoteStyle), t(L, Y, o + 1, s);
2674
2675
  }
2675
- return t(L, a, o + 1, i);
2676
+ return t(L, a, o + 1, s);
2676
2677
  }
2677
2678
  if (typeof e == "function" && !Ur(e)) {
2678
- var h = Bi(e), y = Ye(e, p);
2679
+ var h = Mi(e), y = Ye(e, p);
2679
2680
  return "[Function" + (h ? ": " + h : " (anonymous)") + "]" + (y.length > 0 ? " { " + ce.call(y, ", ") + " }" : "");
2680
2681
  }
2681
2682
  if (hn(e)) {
2682
2683
  var g = qe ? ge.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Nt.call(e);
2683
2684
  return typeof e == "object" && !qe ? Fe(g) : g;
2684
2685
  }
2685
- if (Vi(e)) {
2686
+ if (Qi(e)) {
2686
2687
  for (var b = "<" + Er.call(String(e.nodeName)), x = e.attributes || [], m = 0; m < x.length; m++)
2687
- b += " " + x[m].name + "=" + dn(Ai(x[m].value), "double", a);
2688
+ b += " " + x[m].name + "=" + dn(qi(x[m].value), "double", a);
2688
2689
  return b += ">", e.childNodes && e.childNodes.length && (b += "..."), b += "</" + Er.call(String(e.nodeName)) + ">", b;
2689
2690
  }
2690
2691
  if (At(e)) {
2691
2692
  if (e.length === 0)
2692
2693
  return "[]";
2693
2694
  var v = Ye(e, p);
2694
- return f && !Ki(v) ? "[" + qt(v, f) + "]" : "[ " + ce.call(v, ", ") + " ]";
2695
+ return f && !Di(v) ? "[" + qt(v, f) + "]" : "[ " + ce.call(v, ", ") + " ]";
2695
2696
  }
2696
- if (Ii(e)) {
2697
- var j = Ye(e, p);
2698
- return !("cause" in Error.prototype) && "cause" in e && !fn.call(e, "cause") ? "{ [" + String(e) + "] " + ce.call(Nr.call("[cause]: " + p(e.cause), j), ", ") + " }" : j.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + ce.call(j, ", ") + " }";
2697
+ if (Li(e)) {
2698
+ var w = Ye(e, p);
2699
+ return !("cause" in Error.prototype) && "cause" in e && !fn.call(e, "cause") ? "{ [" + String(e) + "] " + ce.call(Nr.call("[cause]: " + p(e.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + ce.call(w, ", ") + " }";
2699
2700
  }
2700
2701
  if (typeof e == "object" && n) {
2701
2702
  if (Lr && typeof e[Lr] == "function" && Rt)
@@ -2703,37 +2704,37 @@ var Rt = wi, Ir = Rt.custom, Lr = hn(Ir) ? Ir : null, Ri = function t(e, r, o, i
2703
2704
  if (n !== "symbol" && typeof e.inspect == "function")
2704
2705
  return e.inspect();
2705
2706
  }
2706
- if (Mi(e)) {
2707
- var w = [];
2707
+ if (zi(e)) {
2708
+ var j = [];
2708
2709
  return Cr && Cr.call(e, function(L, V) {
2709
- w.push(p(V, e, !0) + " => " + p(L, e));
2710
- }), Fr("Map", lt.call(e), w, f);
2710
+ j.push(p(V, e, !0) + " => " + p(L, e));
2711
+ }), Fr("Map", lt.call(e), j, f);
2711
2712
  }
2712
- if (Ji(e)) {
2713
+ if (Gi(e)) {
2713
2714
  var S = [];
2714
2715
  return Pr && Pr.call(e, function(L) {
2715
2716
  S.push(p(L, e));
2716
2717
  }), Fr("Set", ct.call(e), S, f);
2717
2718
  }
2718
- if (zi(e))
2719
- return wt("WeakMap");
2720
- if (Gi(e))
2721
- return wt("WeakSet");
2722
2719
  if (Wi(e))
2723
- return wt("WeakRef");
2724
- if (Ui(e))
2720
+ return jt("WeakMap");
2721
+ if (Vi(e))
2722
+ return jt("WeakSet");
2723
+ if (Ji(e))
2724
+ return jt("WeakRef");
2725
+ if (Fi(e))
2725
2726
  return Fe(p(Number(e)));
2726
- if (_i(e))
2727
+ if (Hi(e))
2727
2728
  return Fe(p(Et.call(e)));
2728
- if (Fi(e))
2729
- return Fe(Ti.call(e));
2730
- if (Li(e))
2729
+ if (_i(e))
2730
+ return Fe(Ci.call(e));
2731
+ if (Ui(e))
2731
2732
  return Fe(p(String(e)));
2732
2733
  if (typeof window < "u" && e === window)
2733
2734
  return "{ [object Window] }";
2734
2735
  if (typeof globalThis < "u" && e === globalThis || typeof He < "u" && e === He)
2735
2736
  return "{ [object globalThis] }";
2736
- if (!qi(e) && !Ur(e)) {
2737
+ if (!Ii(e) && !Ur(e)) {
2737
2738
  var k = Ye(e, p), E = Ar ? Ar(e) === Object.prototype : e instanceof Object || e.constructor === Object, R = e instanceof Object ? "" : "null prototype", F = !E && G && Object(e) === e && G in e ? Kt.call(xe(e), 8, -1) : R ? "Object" : "", te = E || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = te + (F || R ? "[" + ce.call(Nr.call([], F || [], R || []), ": ") + "] " : "");
2738
2739
  return k.length === 0 ? re + "{}" : f ? re + "{" + qt(k, f) + "}" : re + "{ " + ce.call(k, ", ") + " }";
2739
2740
  }
@@ -2743,28 +2744,28 @@ function dn(t, e, r) {
2743
2744
  var o = (r.quoteStyle || e) === "double" ? '"' : "'";
2744
2745
  return o + t + o;
2745
2746
  }
2746
- function Ai(t) {
2747
+ function qi(t) {
2747
2748
  return ge.call(String(t), /"/g, "&quot;");
2748
2749
  }
2749
2750
  function At(t) {
2750
2751
  return xe(t) === "[object Array]" && (!G || !(typeof t == "object" && G in t));
2751
2752
  }
2752
- function qi(t) {
2753
+ function Ii(t) {
2753
2754
  return xe(t) === "[object Date]" && (!G || !(typeof t == "object" && G in t));
2754
2755
  }
2755
2756
  function Ur(t) {
2756
2757
  return xe(t) === "[object RegExp]" && (!G || !(typeof t == "object" && G in t));
2757
2758
  }
2758
- function Ii(t) {
2759
+ function Li(t) {
2759
2760
  return xe(t) === "[object Error]" && (!G || !(typeof t == "object" && G in t));
2760
2761
  }
2761
- function Li(t) {
2762
+ function Ui(t) {
2762
2763
  return xe(t) === "[object String]" && (!G || !(typeof t == "object" && G in t));
2763
2764
  }
2764
- function Ui(t) {
2765
+ function Fi(t) {
2765
2766
  return xe(t) === "[object Number]" && (!G || !(typeof t == "object" && G in t));
2766
2767
  }
2767
- function Fi(t) {
2768
+ function _i(t) {
2768
2769
  return xe(t) === "[object Boolean]" && (!G || !(typeof t == "object" && G in t));
2769
2770
  }
2770
2771
  function hn(t) {
@@ -2780,7 +2781,7 @@ function hn(t) {
2780
2781
  }
2781
2782
  return !1;
2782
2783
  }
2783
- function _i(t) {
2784
+ function Hi(t) {
2784
2785
  if (!t || typeof t != "object" || !Et)
2785
2786
  return !1;
2786
2787
  try {
@@ -2789,19 +2790,19 @@ function _i(t) {
2789
2790
  }
2790
2791
  return !1;
2791
2792
  }
2792
- var Hi = Object.prototype.hasOwnProperty || function(t) {
2793
+ var Bi = Object.prototype.hasOwnProperty || function(t) {
2793
2794
  return t in this;
2794
2795
  };
2795
2796
  function me(t, e) {
2796
- return Hi.call(t, e);
2797
+ return Bi.call(t, e);
2797
2798
  }
2798
2799
  function xe(t) {
2799
- return Ci.call(t);
2800
+ return Pi.call(t);
2800
2801
  }
2801
- function Bi(t) {
2802
+ function Mi(t) {
2802
2803
  if (t.name)
2803
2804
  return t.name;
2804
- var e = ki.call(Pi.call(t), /^function\s*([\w$]+)/);
2805
+ var e = Ei.call(ki.call(t), /^function\s*([\w$]+)/);
2805
2806
  return e ? e[1] : null;
2806
2807
  }
2807
2808
  function yn(t, e) {
@@ -2812,7 +2813,7 @@ function yn(t, e) {
2812
2813
  return r;
2813
2814
  return -1;
2814
2815
  }
2815
- function Mi(t) {
2816
+ function zi(t) {
2816
2817
  if (!lt || !t || typeof t != "object")
2817
2818
  return !1;
2818
2819
  try {
@@ -2827,7 +2828,7 @@ function Mi(t) {
2827
2828
  }
2828
2829
  return !1;
2829
2830
  }
2830
- function zi(t) {
2831
+ function Wi(t) {
2831
2832
  if (!Be || !t || typeof t != "object")
2832
2833
  return !1;
2833
2834
  try {
@@ -2842,7 +2843,7 @@ function zi(t) {
2842
2843
  }
2843
2844
  return !1;
2844
2845
  }
2845
- function Wi(t) {
2846
+ function Ji(t) {
2846
2847
  if (!kr || !t || typeof t != "object")
2847
2848
  return !1;
2848
2849
  try {
@@ -2851,7 +2852,7 @@ function Wi(t) {
2851
2852
  }
2852
2853
  return !1;
2853
2854
  }
2854
- function Ji(t) {
2855
+ function Gi(t) {
2855
2856
  if (!ct || !t || typeof t != "object")
2856
2857
  return !1;
2857
2858
  try {
@@ -2866,7 +2867,7 @@ function Ji(t) {
2866
2867
  }
2867
2868
  return !1;
2868
2869
  }
2869
- function Gi(t) {
2870
+ function Vi(t) {
2870
2871
  if (!Me || !t || typeof t != "object")
2871
2872
  return !1;
2872
2873
  try {
@@ -2881,7 +2882,7 @@ function Gi(t) {
2881
2882
  }
2882
2883
  return !1;
2883
2884
  }
2884
- function Vi(t) {
2885
+ function Qi(t) {
2885
2886
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2886
2887
  }
2887
2888
  function mn(t, e) {
@@ -2889,10 +2890,10 @@ function mn(t, e) {
2889
2890
  var r = t.length - e.maxStringLength, o = "... " + r + " more character" + (r > 1 ? "s" : "");
2890
2891
  return mn(Kt.call(t, 0, e.maxStringLength), e) + o;
2891
2892
  }
2892
- var i = ge.call(ge.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Qi);
2893
- return dn(i, "single", e);
2893
+ var s = ge.call(ge.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ki);
2894
+ return dn(s, "single", e);
2894
2895
  }
2895
- function Qi(t) {
2896
+ function Ki(t) {
2896
2897
  var e = t.charCodeAt(0), r = {
2897
2898
  8: "b",
2898
2899
  9: "t",
@@ -2900,26 +2901,26 @@ function Qi(t) {
2900
2901
  12: "f",
2901
2902
  13: "r"
2902
2903
  }[e];
2903
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Ei.call(e.toString(16));
2904
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Ni.call(e.toString(16));
2904
2905
  }
2905
2906
  function Fe(t) {
2906
2907
  return "Object(" + t + ")";
2907
2908
  }
2908
- function wt(t) {
2909
+ function jt(t) {
2909
2910
  return t + " { ? }";
2910
2911
  }
2911
2912
  function Fr(t, e, r, o) {
2912
- var i = o ? qt(r, o) : ce.call(r, ", ");
2913
- return t + " (" + e + ") {" + i + "}";
2913
+ var s = o ? qt(r, o) : ce.call(r, ", ");
2914
+ return t + " (" + e + ") {" + s + "}";
2914
2915
  }
2915
- function Ki(t) {
2916
+ function Di(t) {
2916
2917
  for (var e = 0; e < t.length; e++)
2917
2918
  if (yn(t[e], `
2918
2919
  `) >= 0)
2919
2920
  return !1;
2920
2921
  return !0;
2921
2922
  }
2922
- function Di(t, e) {
2923
+ function Yi(t, e) {
2923
2924
  var r;
2924
2925
  if (t.indent === " ")
2925
2926
  r = " ";
@@ -2944,14 +2945,14 @@ function Ye(t, e) {
2944
2945
  var r = At(t), o = [];
2945
2946
  if (r) {
2946
2947
  o.length = t.length;
2947
- for (var i = 0; i < t.length; i++)
2948
- o[i] = me(t, i) ? e(t[i], t) : "";
2948
+ for (var s = 0; s < t.length; s++)
2949
+ o[s] = me(t, s) ? e(t[s], t) : "";
2949
2950
  }
2950
2951
  var a = typeof $t == "function" ? $t(t) : [], n;
2951
2952
  if (qe) {
2952
2953
  n = {};
2953
- for (var s = 0; s < a.length; s++)
2954
- n["$" + a[s]] = a[s];
2954
+ for (var i = 0; i < a.length; i++)
2955
+ n["$" + a[i]] = a[i];
2955
2956
  }
2956
2957
  for (var l in t)
2957
2958
  me(t, l) && (r && String(Number(l)) === l && l < t.length || qe && n["$" + l] instanceof Symbol || (pn.call(/[^\w$]/, l) ? o.push(e(l, t) + ": " + e(t[l], t)) : o.push(l + ": " + e(t[l], t))));
@@ -2960,15 +2961,15 @@ function Ye(t, e) {
2960
2961
  fn.call(t, a[c]) && o.push("[" + e(a[c]) + "]: " + e(t[a[c]], t));
2961
2962
  return o;
2962
2963
  }
2963
- var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%", !0), Zi = Ue("WeakMap.prototype.get", !0), es = Ue("WeakMap.prototype.set", !0), ts = Ue("WeakMap.prototype.has", !0), rs = Ue("Map.prototype.get", !0), ns = Ue("Map.prototype.set", !0), os = Ue("Map.prototype.has", !0), Dt = function(t, e) {
2964
+ var gn = Le, Ue = ji, Xi = Ai, Zi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%", !0), es = Ue("WeakMap.prototype.get", !0), ts = Ue("WeakMap.prototype.set", !0), rs = Ue("WeakMap.prototype.has", !0), ns = Ue("Map.prototype.get", !0), os = Ue("Map.prototype.set", !0), as = Ue("Map.prototype.has", !0), Dt = function(t, e) {
2964
2965
  for (var r = t, o; (o = r.next) !== null; r = o)
2965
2966
  if (o.key === e)
2966
2967
  return r.next = o.next, o.next = /** @type {NonNullable<typeof list.next>} */
2967
2968
  t.next, t.next = o, o;
2968
- }, as = function(t, e) {
2969
+ }, is = function(t, e) {
2969
2970
  var r = Dt(t, e);
2970
2971
  return r && r.value;
2971
- }, is = function(t, e, r) {
2972
+ }, ss = function(t, e, r) {
2972
2973
  var o = Dt(t, e);
2973
2974
  o ? o.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
2974
2975
  {
@@ -2977,77 +2978,77 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
2977
2978
  next: t.next,
2978
2979
  value: r
2979
2980
  };
2980
- }, ss = function(t, e) {
2981
+ }, ls = function(t, e) {
2981
2982
  return !!Dt(t, e);
2982
- }, ls = function() {
2983
- var e, r, o, i = {
2983
+ }, cs = function() {
2984
+ var e, r, o, s = {
2984
2985
  assert: function(a) {
2985
- if (!i.has(a))
2986
- throw new Xi("Side channel does not contain " + Yi(a));
2986
+ if (!s.has(a))
2987
+ throw new Zi("Side channel does not contain " + Xi(a));
2987
2988
  },
2988
2989
  get: function(a) {
2989
2990
  if (Xe && a && (typeof a == "object" || typeof a == "function")) {
2990
2991
  if (e)
2991
- return Zi(e, a);
2992
+ return es(e, a);
2992
2993
  } else if (Ze) {
2993
2994
  if (r)
2994
- return rs(r, a);
2995
+ return ns(r, a);
2995
2996
  } else if (o)
2996
- return as(o, a);
2997
+ return is(o, a);
2997
2998
  },
2998
2999
  has: function(a) {
2999
3000
  if (Xe && a && (typeof a == "object" || typeof a == "function")) {
3000
3001
  if (e)
3001
- return ts(e, a);
3002
+ return rs(e, a);
3002
3003
  } else if (Ze) {
3003
3004
  if (r)
3004
- return os(r, a);
3005
+ return as(r, a);
3005
3006
  } else if (o)
3006
- return ss(o, a);
3007
+ return ls(o, a);
3007
3008
  return !1;
3008
3009
  },
3009
3010
  set: function(a, n) {
3010
- Xe && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Xe()), es(e, a, n)) : Ze ? (r || (r = new Ze()), ns(r, a, n)) : (o || (o = { key: {}, next: null }), is(o, a, n));
3011
+ Xe && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new Xe()), ts(e, a, n)) : Ze ? (r || (r = new Ze()), os(r, a, n)) : (o || (o = { key: {}, next: null }), ss(o, a, n));
3011
3012
  }
3012
3013
  };
3013
- return i;
3014
- }, cs = String.prototype.replace, us = /%20/g, jt = {
3014
+ return s;
3015
+ }, us = String.prototype.replace, ps = /%20/g, wt = {
3015
3016
  RFC1738: "RFC1738",
3016
3017
  RFC3986: "RFC3986"
3017
3018
  }, Yt = {
3018
- default: jt.RFC3986,
3019
+ default: wt.RFC3986,
3019
3020
  formatters: {
3020
3021
  RFC1738: function(t) {
3021
- return cs.call(t, us, "+");
3022
+ return us.call(t, ps, "+");
3022
3023
  },
3023
3024
  RFC3986: function(t) {
3024
3025
  return String(t);
3025
3026
  }
3026
3027
  },
3027
- RFC1738: jt.RFC1738,
3028
- RFC3986: jt.RFC3986
3029
- }, ps = Yt, St = Object.prototype.hasOwnProperty, we = Array.isArray, se = function() {
3028
+ RFC1738: wt.RFC1738,
3029
+ RFC3986: wt.RFC3986
3030
+ }, fs = Yt, St = Object.prototype.hasOwnProperty, je = Array.isArray, se = function() {
3030
3031
  for (var t = [], e = 0; e < 256; ++e)
3031
3032
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
3032
3033
  return t;
3033
- }(), fs = function(e) {
3034
+ }(), ds = function(e) {
3034
3035
  for (; e.length > 1; ) {
3035
3036
  var r = e.pop(), o = r.obj[r.prop];
3036
- if (we(o)) {
3037
- for (var i = [], a = 0; a < o.length; ++a)
3038
- typeof o[a] < "u" && i.push(o[a]);
3039
- r.obj[r.prop] = i;
3037
+ if (je(o)) {
3038
+ for (var s = [], a = 0; a < o.length; ++a)
3039
+ typeof o[a] < "u" && s.push(o[a]);
3040
+ r.obj[r.prop] = s;
3040
3041
  }
3041
3042
  }
3042
3043
  }, bn = function(e, r) {
3043
- for (var o = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < e.length; ++i)
3044
- typeof e[i] < "u" && (o[i] = e[i]);
3044
+ for (var o = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, s = 0; s < e.length; ++s)
3045
+ typeof e[s] < "u" && (o[s] = e[s]);
3045
3046
  return o;
3046
- }, ds = function t(e, r, o) {
3047
+ }, hs = function t(e, r, o) {
3047
3048
  if (!r)
3048
3049
  return e;
3049
3050
  if (typeof r != "object") {
3050
- if (we(e))
3051
+ if (je(e))
3051
3052
  e.push(r);
3052
3053
  else if (e && typeof e == "object")
3053
3054
  (o && (o.plainObjects || o.allowPrototypes) || !St.call(Object.prototype, r)) && (e[r] = !0);
@@ -3057,22 +3058,22 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3057
3058
  }
3058
3059
  if (!e || typeof e != "object")
3059
3060
  return [e].concat(r);
3060
- var i = e;
3061
- return we(e) && !we(r) && (i = bn(e, o)), we(e) && we(r) ? (r.forEach(function(a, n) {
3061
+ var s = e;
3062
+ return je(e) && !je(r) && (s = bn(e, o)), je(e) && je(r) ? (r.forEach(function(a, n) {
3062
3063
  if (St.call(e, n)) {
3063
- var s = e[n];
3064
- s && typeof s == "object" && a && typeof a == "object" ? e[n] = t(s, a, o) : e.push(a);
3064
+ var i = e[n];
3065
+ i && typeof i == "object" && a && typeof a == "object" ? e[n] = t(i, a, o) : e.push(a);
3065
3066
  } else
3066
3067
  e[n] = a;
3067
3068
  }), e) : Object.keys(r).reduce(function(a, n) {
3068
- var s = r[n];
3069
- return St.call(a, n) ? a[n] = t(a[n], s, o) : a[n] = s, a;
3070
- }, i);
3071
- }, hs = function(e, r) {
3072
- return Object.keys(r).reduce(function(o, i) {
3073
- return o[i] = r[i], o;
3069
+ var i = r[n];
3070
+ return St.call(a, n) ? a[n] = t(a[n], i, o) : a[n] = i, a;
3071
+ }, s);
3072
+ }, ys = function(e, r) {
3073
+ return Object.keys(r).reduce(function(o, s) {
3074
+ return o[s] = r[s], o;
3074
3075
  }, e);
3075
- }, ys = function(t, e, r) {
3076
+ }, ms = function(t, e, r) {
3076
3077
  var o = t.replace(/\+/g, " ");
3077
3078
  if (r === "iso-8859-1")
3078
3079
  return o.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -3081,7 +3082,7 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3081
3082
  } catch {
3082
3083
  return o;
3083
3084
  }
3084
- }, Ot = 1024, ms = function(e, r, o, i, a) {
3085
+ }, Ot = 1024, gs = function(e, r, o, s, a) {
3085
3086
  if (e.length === 0)
3086
3087
  return e;
3087
3088
  var n = e;
@@ -3089,10 +3090,10 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3089
3090
  return escape(n).replace(/%u[0-9a-f]{4}/gi, function(h) {
3090
3091
  return "%26%23" + parseInt(h.slice(2), 16) + "%3B";
3091
3092
  });
3092
- for (var s = "", l = 0; l < n.length; l += Ot) {
3093
+ for (var i = "", l = 0; l < n.length; l += Ot) {
3093
3094
  for (var c = n.length >= Ot ? n.slice(l, l + Ot) : n, u = [], f = 0; f < c.length; ++f) {
3094
3095
  var p = c.charCodeAt(f);
3095
- if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || a === ps.RFC1738 && (p === 40 || p === 41)) {
3096
+ if (p === 45 || p === 46 || p === 95 || p === 126 || p >= 48 && p <= 57 || p >= 65 && p <= 90 || p >= 97 && p <= 122 || a === fs.RFC1738 && (p === 40 || p === 41)) {
3096
3097
  u[u.length] = c.charAt(f);
3097
3098
  continue;
3098
3099
  }
@@ -3110,41 +3111,41 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3110
3111
  }
3111
3112
  f += 1, p = 65536 + ((p & 1023) << 10 | c.charCodeAt(f) & 1023), u[u.length] = se[240 | p >> 18] + se[128 | p >> 12 & 63] + se[128 | p >> 6 & 63] + se[128 | p & 63];
3112
3113
  }
3113
- s += u.join("");
3114
+ i += u.join("");
3114
3115
  }
3115
- return s;
3116
- }, gs = function(e) {
3117
- for (var r = [{ obj: { o: e }, prop: "o" }], o = [], i = 0; i < r.length; ++i)
3118
- for (var a = r[i], n = a.obj[a.prop], s = Object.keys(n), l = 0; l < s.length; ++l) {
3119
- var c = s[l], u = n[c];
3116
+ return i;
3117
+ }, bs = function(e) {
3118
+ for (var r = [{ obj: { o: e }, prop: "o" }], o = [], s = 0; s < r.length; ++s)
3119
+ for (var a = r[s], n = a.obj[a.prop], i = Object.keys(n), l = 0; l < i.length; ++l) {
3120
+ var c = i[l], u = n[c];
3120
3121
  typeof u == "object" && u !== null && o.indexOf(u) === -1 && (r.push({ obj: n, prop: c }), o.push(u));
3121
3122
  }
3122
- return fs(r), e;
3123
- }, bs = function(e) {
3124
- return Object.prototype.toString.call(e) === "[object RegExp]";
3123
+ return ds(r), e;
3125
3124
  }, vs = function(e) {
3125
+ return Object.prototype.toString.call(e) === "[object RegExp]";
3126
+ }, xs = function(e) {
3126
3127
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
3127
- }, xs = function(e, r) {
3128
- return [].concat(e, r);
3129
3128
  }, $s = function(e, r) {
3130
- if (we(e)) {
3131
- for (var o = [], i = 0; i < e.length; i += 1)
3132
- o.push(r(e[i]));
3129
+ return [].concat(e, r);
3130
+ }, js = function(e, r) {
3131
+ if (je(e)) {
3132
+ for (var o = [], s = 0; s < e.length; s += 1)
3133
+ o.push(r(e[s]));
3133
3134
  return o;
3134
3135
  }
3135
3136
  return r(e);
3136
3137
  }, vn = {
3137
3138
  arrayToObject: bn,
3138
- assign: hs,
3139
- combine: xs,
3140
- compact: gs,
3141
- decode: ys,
3142
- encode: ms,
3143
- isBuffer: vs,
3144
- isRegExp: bs,
3145
- maybeMap: $s,
3146
- merge: ds
3147
- }, xn = ls, rt = vn, ze = Yt, ws = Object.prototype.hasOwnProperty, $n = {
3139
+ assign: ys,
3140
+ combine: $s,
3141
+ compact: bs,
3142
+ decode: ms,
3143
+ encode: gs,
3144
+ isBuffer: xs,
3145
+ isRegExp: vs,
3146
+ maybeMap: js,
3147
+ merge: hs
3148
+ }, xn = cs, rt = vn, ze = Yt, ws = Object.prototype.hasOwnProperty, $n = {
3148
3149
  brackets: function(e) {
3149
3150
  return e + "[]";
3150
3151
  },
@@ -3155,9 +3156,9 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3155
3156
  repeat: function(e) {
3156
3157
  return e;
3157
3158
  }
3158
- }, le = Array.isArray, js = Array.prototype.push, wn = function(t, e) {
3159
- js.apply(t, le(e) ? e : [e]);
3160
- }, Ss = Date.prototype.toISOString, _r = ze.default, U = {
3159
+ }, le = Array.isArray, Ss = Array.prototype.push, jn = function(t, e) {
3160
+ Ss.apply(t, le(e) ? e : [e]);
3161
+ }, Os = Date.prototype.toISOString, _r = ze.default, U = {
3161
3162
  addQueryPrefix: !1,
3162
3163
  allowDots: !1,
3163
3164
  allowEmptyArrays: !1,
@@ -3174,21 +3175,21 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3174
3175
  // deprecated
3175
3176
  indices: !1,
3176
3177
  serializeDate: function(e) {
3177
- return Ss.call(e);
3178
+ return Os.call(e);
3178
3179
  },
3179
3180
  skipNulls: !1,
3180
3181
  strictNullHandling: !1
3181
- }, Os = function(e) {
3182
+ }, Ts = function(e) {
3182
3183
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
3183
- }, Tt = {}, Ts = function t(e, r, o, i, a, n, s, l, c, u, f, p, h, y, g, b, x, m) {
3184
- for (var v = e, j = m, w = 0, S = !1; (j = j.get(Tt)) !== void 0 && !S; ) {
3185
- var k = j.get(e);
3186
- if (w += 1, typeof k < "u") {
3187
- if (k === w)
3184
+ }, Tt = {}, Cs = function t(e, r, o, s, a, n, i, l, c, u, f, p, h, y, g, b, x, m) {
3185
+ for (var v = e, w = m, j = 0, S = !1; (w = w.get(Tt)) !== void 0 && !S; ) {
3186
+ var k = w.get(e);
3187
+ if (j += 1, typeof k < "u") {
3188
+ if (k === j)
3188
3189
  throw new RangeError("Cyclic object value");
3189
3190
  S = !0;
3190
3191
  }
3191
- typeof j.get(Tt) > "u" && (w = 0);
3192
+ typeof w.get(Tt) > "u" && (j = 0);
3192
3193
  }
3193
3194
  if (typeof u == "function" ? v = u(r, v) : v instanceof Date ? v = h(v) : o === "comma" && le(v) && (v = rt.maybeMap(v, function($) {
3194
3195
  return $ instanceof Date ? h($) : $;
@@ -3197,7 +3198,7 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3197
3198
  return c && !b ? c(r, U.encoder, x, "key", y) : r;
3198
3199
  v = "";
3199
3200
  }
3200
- if (Os(v) || rt.isBuffer(v)) {
3201
+ if (Ts(v) || rt.isBuffer(v)) {
3201
3202
  if (c) {
3202
3203
  var E = b ? r : c(r, U.encoder, x, "key", y);
3203
3204
  return [g(E) + "=" + g(c(v, U.encoder, x, "value", y))];
@@ -3216,23 +3217,23 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3216
3217
  var te = Object.keys(v);
3217
3218
  F = f ? te.sort(f) : te;
3218
3219
  }
3219
- var re = l ? r.replace(/\./g, "%2E") : r, L = i && le(v) && v.length === 1 ? re + "[]" : re;
3220
+ var re = l ? r.replace(/\./g, "%2E") : r, L = s && le(v) && v.length === 1 ? re + "[]" : re;
3220
3221
  if (a && le(v) && v.length === 0)
3221
3222
  return L + "[]";
3222
3223
  for (var V = 0; V < F.length; ++V) {
3223
3224
  var Q = F[V], Y = typeof Q == "object" && typeof Q.value < "u" ? Q.value : v[Q];
3224
- if (!(s && Y === null)) {
3225
+ if (!(i && Y === null)) {
3225
3226
  var he = p && l ? Q.replace(/\./g, "%2E") : Q, ft = le(v) ? typeof o == "function" ? o(L, he) : L : L + (p ? "." + he : "[" + he + "]");
3226
- m.set(e, w);
3227
+ m.set(e, j);
3227
3228
  var Ke = xn();
3228
- Ke.set(Tt, m), wn(R, t(
3229
+ Ke.set(Tt, m), jn(R, t(
3229
3230
  Y,
3230
3231
  ft,
3231
3232
  o,
3232
- i,
3233
+ s,
3233
3234
  a,
3234
3235
  n,
3235
- s,
3236
+ i,
3236
3237
  l,
3237
3238
  o === "comma" && b && le(v) ? null : c,
3238
3239
  u,
@@ -3248,7 +3249,7 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3248
3249
  }
3249
3250
  }
3250
3251
  return R;
3251
- }, Cs = function(e) {
3252
+ }, Ps = function(e) {
3252
3253
  if (!e)
3253
3254
  return U;
3254
3255
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -3266,15 +3267,15 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3266
3267
  throw new TypeError("Unknown format option provided.");
3267
3268
  o = e.format;
3268
3269
  }
3269
- var i = ze.formatters[o], a = U.filter;
3270
+ var s = ze.formatters[o], a = U.filter;
3270
3271
  (typeof e.filter == "function" || le(e.filter)) && (a = e.filter);
3271
3272
  var n;
3272
3273
  if (e.arrayFormat in $n ? n = e.arrayFormat : "indices" in e ? n = e.indices ? "indices" : "repeat" : n = U.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
3273
3274
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3274
- var s = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : U.allowDots : !!e.allowDots;
3275
+ var i = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : U.allowDots : !!e.allowDots;
3275
3276
  return {
3276
3277
  addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : U.addQueryPrefix,
3277
- allowDots: s,
3278
+ allowDots: i,
3278
3279
  allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : U.allowEmptyArrays,
3279
3280
  arrayFormat: n,
3280
3281
  charset: r,
@@ -3287,26 +3288,26 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3287
3288
  encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : U.encodeValuesOnly,
3288
3289
  filter: a,
3289
3290
  format: o,
3290
- formatter: i,
3291
+ formatter: s,
3291
3292
  serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : U.serializeDate,
3292
3293
  skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : U.skipNulls,
3293
3294
  sort: typeof e.sort == "function" ? e.sort : null,
3294
3295
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : U.strictNullHandling
3295
3296
  };
3296
- }, Ps = function(t, e) {
3297
- var r = t, o = Cs(e), i, a;
3298
- typeof o.filter == "function" ? (a = o.filter, r = a("", r)) : le(o.filter) && (a = o.filter, i = a);
3297
+ }, ks = function(t, e) {
3298
+ var r = t, o = Ps(e), s, a;
3299
+ typeof o.filter == "function" ? (a = o.filter, r = a("", r)) : le(o.filter) && (a = o.filter, s = a);
3299
3300
  var n = [];
3300
3301
  if (typeof r != "object" || r === null)
3301
3302
  return "";
3302
- var s = $n[o.arrayFormat], l = s === "comma" && o.commaRoundTrip;
3303
- i || (i = Object.keys(r)), o.sort && i.sort(o.sort);
3304
- for (var c = xn(), u = 0; u < i.length; ++u) {
3305
- var f = i[u];
3306
- o.skipNulls && r[f] === null || wn(n, Ts(
3303
+ var i = $n[o.arrayFormat], l = i === "comma" && o.commaRoundTrip;
3304
+ s || (s = Object.keys(r)), o.sort && s.sort(o.sort);
3305
+ for (var c = xn(), u = 0; u < s.length; ++u) {
3306
+ var f = s[u];
3307
+ o.skipNulls && r[f] === null || jn(n, Cs(
3307
3308
  r[f],
3308
3309
  f,
3309
- s,
3310
+ i,
3310
3311
  l,
3311
3312
  o.allowEmptyArrays,
3312
3313
  o.strictNullHandling,
@@ -3326,7 +3327,7 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3326
3327
  }
3327
3328
  var p = n.join(o.delimiter), h = o.addQueryPrefix === !0 ? "?" : "";
3328
3329
  return o.charsetSentinel && (o.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), p.length > 0 ? h + p : "";
3329
- }, Ie = vn, It = Object.prototype.hasOwnProperty, ks = Array.isArray, q = {
3330
+ }, Ie = vn, It = Object.prototype.hasOwnProperty, Es = Array.isArray, q = {
3330
3331
  allowDots: !1,
3331
3332
  allowEmptyArrays: !1,
3332
3333
  allowPrototypes: !1,
@@ -3347,54 +3348,54 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3347
3348
  plainObjects: !1,
3348
3349
  strictDepth: !1,
3349
3350
  strictNullHandling: !1
3350
- }, Es = function(t) {
3351
+ }, Ns = function(t) {
3351
3352
  return t.replace(/&#(\d+);/g, function(e, r) {
3352
3353
  return String.fromCharCode(parseInt(r, 10));
3353
3354
  });
3354
- }, jn = function(t, e) {
3355
+ }, wn = function(t, e) {
3355
3356
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
3356
- }, Ns = "utf8=%26%2310003%3B", Rs = "utf8=%E2%9C%93", As = function(e, r) {
3357
- var o = { __proto__: null }, i = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
3358
- i = i.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3359
- var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, n = i.split(r.delimiter, a), s = -1, l, c = r.charset;
3357
+ }, Rs = "utf8=%26%2310003%3B", As = "utf8=%E2%9C%93", qs = function(e, r) {
3358
+ var o = { __proto__: null }, s = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
3359
+ s = s.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3360
+ var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, n = s.split(r.delimiter, a), i = -1, l, c = r.charset;
3360
3361
  if (r.charsetSentinel)
3361
3362
  for (l = 0; l < n.length; ++l)
3362
- n[l].indexOf("utf8=") === 0 && (n[l] === Rs ? c = "utf-8" : n[l] === Ns && (c = "iso-8859-1"), s = l, l = n.length);
3363
+ n[l].indexOf("utf8=") === 0 && (n[l] === As ? c = "utf-8" : n[l] === Rs && (c = "iso-8859-1"), i = l, l = n.length);
3363
3364
  for (l = 0; l < n.length; ++l)
3364
- if (l !== s) {
3365
+ if (l !== i) {
3365
3366
  var u = n[l], f = u.indexOf("]="), p = f === -1 ? u.indexOf("=") : f + 1, h, y;
3366
3367
  p === -1 ? (h = r.decoder(u, q.decoder, c, "key"), y = r.strictNullHandling ? null : "") : (h = r.decoder(u.slice(0, p), q.decoder, c, "key"), y = Ie.maybeMap(
3367
- jn(u.slice(p + 1), r),
3368
+ wn(u.slice(p + 1), r),
3368
3369
  function(b) {
3369
3370
  return r.decoder(b, q.decoder, c, "value");
3370
3371
  }
3371
- )), y && r.interpretNumericEntities && c === "iso-8859-1" && (y = Es(y)), u.indexOf("[]=") > -1 && (y = ks(y) ? [y] : y);
3372
+ )), y && r.interpretNumericEntities && c === "iso-8859-1" && (y = Ns(y)), u.indexOf("[]=") > -1 && (y = Es(y) ? [y] : y);
3372
3373
  var g = It.call(o, h);
3373
3374
  g && r.duplicates === "combine" ? o[h] = Ie.combine(o[h], y) : (!g || r.duplicates === "last") && (o[h] = y);
3374
3375
  }
3375
3376
  return o;
3376
- }, qs = function(t, e, r, o) {
3377
- for (var i = o ? e : jn(e, r), a = t.length - 1; a >= 0; --a) {
3378
- var n, s = t[a];
3379
- if (s === "[]" && r.parseArrays)
3380
- n = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : [].concat(i);
3377
+ }, Is = function(t, e, r, o) {
3378
+ for (var s = o ? e : wn(e, r), a = t.length - 1; a >= 0; --a) {
3379
+ var n, i = t[a];
3380
+ if (i === "[]" && r.parseArrays)
3381
+ n = r.allowEmptyArrays && (s === "" || r.strictNullHandling && s === null) ? [] : [].concat(s);
3381
3382
  else {
3382
3383
  n = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3383
- var l = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, c = r.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, u = parseInt(c, 10);
3384
- !r.parseArrays && c === "" ? n = { 0: i } : !isNaN(u) && s !== c && String(u) === c && u >= 0 && r.parseArrays && u <= r.arrayLimit ? (n = [], n[u] = i) : c !== "__proto__" && (n[c] = i);
3384
+ var l = i.charAt(0) === "[" && i.charAt(i.length - 1) === "]" ? i.slice(1, -1) : i, c = r.decodeDotInKeys ? l.replace(/%2E/g, ".") : l, u = parseInt(c, 10);
3385
+ !r.parseArrays && c === "" ? n = { 0: s } : !isNaN(u) && i !== c && String(u) === c && u >= 0 && r.parseArrays && u <= r.arrayLimit ? (n = [], n[u] = s) : c !== "__proto__" && (n[c] = s);
3385
3386
  }
3386
- i = n;
3387
+ s = n;
3387
3388
  }
3388
- return i;
3389
- }, Is = function(e, r, o, i) {
3389
+ return s;
3390
+ }, Ls = function(e, r, o, s) {
3390
3391
  if (e) {
3391
- var a = o.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, n = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, l = o.depth > 0 && n.exec(a), c = l ? a.slice(0, l.index) : a, u = [];
3392
+ var a = o.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, n = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, l = o.depth > 0 && n.exec(a), c = l ? a.slice(0, l.index) : a, u = [];
3392
3393
  if (c) {
3393
3394
  if (!o.plainObjects && It.call(Object.prototype, c) && !o.allowPrototypes)
3394
3395
  return;
3395
3396
  u.push(c);
3396
3397
  }
3397
- for (var f = 0; o.depth > 0 && (l = s.exec(a)) !== null && f < o.depth; ) {
3398
+ for (var f = 0; o.depth > 0 && (l = i.exec(a)) !== null && f < o.depth; ) {
3398
3399
  if (f += 1, !o.plainObjects && It.call(Object.prototype, l[1].slice(1, -1)) && !o.allowPrototypes)
3399
3400
  return;
3400
3401
  u.push(l[1]);
@@ -3404,9 +3405,9 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3404
3405
  throw new RangeError("Input depth exceeded depth option of " + o.depth + " and strictDepth is true");
3405
3406
  u.push("[" + a.slice(l.index) + "]");
3406
3407
  }
3407
- return qs(u, r, o, i);
3408
+ return Is(u, r, o, s);
3408
3409
  }
3409
- }, Ls = function(e) {
3410
+ }, Us = function(e) {
3410
3411
  if (!e)
3411
3412
  return q;
3412
3413
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -3420,9 +3421,9 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3420
3421
  var r = typeof e.charset > "u" ? q.charset : e.charset, o = typeof e.duplicates > "u" ? q.duplicates : e.duplicates;
3421
3422
  if (o !== "combine" && o !== "first" && o !== "last")
3422
3423
  throw new TypeError("The duplicates option must be either combine, first, or last");
3423
- var i = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : q.allowDots : !!e.allowDots;
3424
+ var s = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : q.allowDots : !!e.allowDots;
3424
3425
  return {
3425
- allowDots: i,
3426
+ allowDots: s,
3426
3427
  allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : q.allowEmptyArrays,
3427
3428
  allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : q.allowPrototypes,
3428
3429
  allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : q.allowSparse,
@@ -3444,24 +3445,24 @@ var gn = Le, Ue = $i, Yi = Ri, Xi = Ve, Xe = gn("%WeakMap%", !0), Ze = gn("%Map%
3444
3445
  strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : q.strictDepth,
3445
3446
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : q.strictNullHandling
3446
3447
  };
3447
- }, Us = function(t, e) {
3448
- var r = Ls(e);
3448
+ }, Fs = function(t, e) {
3449
+ var r = Us(e);
3449
3450
  if (t === "" || t === null || typeof t > "u")
3450
3451
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3451
- for (var o = typeof t == "string" ? As(t, r) : t, i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(o), n = 0; n < a.length; ++n) {
3452
- var s = a[n], l = Is(s, o[s], r, typeof t == "string");
3453
- i = Ie.merge(i, l, r);
3454
- }
3455
- return r.allowSparse === !0 ? i : Ie.compact(i);
3456
- }, Fs = Ps, _s = Us, Hs = Yt, nt = {
3457
- formats: Hs,
3458
- parse: _s,
3459
- stringify: Fs
3460
- }, Bs = Oa;
3452
+ for (var o = typeof t == "string" ? qs(t, r) : t, s = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(o), n = 0; n < a.length; ++n) {
3453
+ var i = a[n], l = Ls(i, o[i], r, typeof t == "string");
3454
+ s = Ie.merge(s, l, r);
3455
+ }
3456
+ return r.allowSparse === !0 ? s : Ie.compact(s);
3457
+ }, _s = ks, Hs = Fs, Bs = Yt, nt = {
3458
+ formats: Bs,
3459
+ parse: Hs,
3460
+ stringify: _s
3461
+ }, Ms = Ta;
3461
3462
  function ae() {
3462
3463
  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;
3463
3464
  }
3464
- var Ms = /^([a-z0-9.+-]+:)/i, zs = /:[0-9]*$/, Ws = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Js = [
3465
+ var zs = /^([a-z0-9.+-]+:)/i, Ws = /:[0-9]*$/, Js = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Gs = [
3465
3466
  "<",
3466
3467
  ">",
3467
3468
  '"',
@@ -3471,14 +3472,14 @@ var Ms = /^([a-z0-9.+-]+:)/i, zs = /:[0-9]*$/, Ws = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
3471
3472
  `
3472
3473
  `,
3473
3474
  " "
3474
- ], Gs = [
3475
+ ], Vs = [
3475
3476
  "{",
3476
3477
  "}",
3477
3478
  "|",
3478
3479
  "\\",
3479
3480
  "^",
3480
3481
  "`"
3481
- ].concat(Js), Lt = ["'"].concat(Gs), Hr = [
3482
+ ].concat(Gs), Lt = ["'"].concat(Vs), Hr = [
3482
3483
  "%",
3483
3484
  "/",
3484
3485
  "?",
@@ -3488,7 +3489,7 @@ var Ms = /^([a-z0-9.+-]+:)/i, zs = /:[0-9]*$/, Ws = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
3488
3489
  "/",
3489
3490
  "?",
3490
3491
  "#"
3491
- ], Vs = 255, Mr = /^[+a-z0-9A-Z_-]{0,63}$/, Qs = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ks = {
3492
+ ], Qs = 255, Mr = /^[+a-z0-9A-Z_-]{0,63}$/, Ks = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ds = {
3492
3493
  javascript: !0,
3493
3494
  "javascript:": !0
3494
3495
  }, Ut = {
@@ -3515,86 +3516,86 @@ function Xt(t, e, r) {
3515
3516
  ae.prototype.parse = function(t, e, r) {
3516
3517
  if (typeof t != "string")
3517
3518
  throw new TypeError("Parameter 'url' must be a string, not " + typeof t);
3518
- var o = t.indexOf("?"), i = o !== -1 && o < t.indexOf("#") ? "?" : "#", a = t.split(i), n = /\\/g;
3519
- a[0] = a[0].replace(n, "/"), t = a.join(i);
3520
- var s = t;
3521
- if (s = s.trim(), !r && t.split("#").length === 1) {
3522
- var l = Ws.exec(s);
3519
+ var o = t.indexOf("?"), s = o !== -1 && o < t.indexOf("#") ? "?" : "#", a = t.split(s), n = /\\/g;
3520
+ a[0] = a[0].replace(n, "/"), t = a.join(s);
3521
+ var i = t;
3522
+ if (i = i.trim(), !r && t.split("#").length === 1) {
3523
+ var l = Js.exec(i);
3523
3524
  if (l)
3524
- return this.path = s, this.href = s, this.pathname = l[1], l[2] ? (this.search = l[2], e ? this.query = Ft.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
3525
+ return this.path = i, this.href = i, this.pathname = l[1], l[2] ? (this.search = l[2], e ? this.query = Ft.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
3525
3526
  }
3526
- var c = Ms.exec(s);
3527
+ var c = zs.exec(i);
3527
3528
  if (c) {
3528
3529
  c = c[0];
3529
3530
  var u = c.toLowerCase();
3530
- this.protocol = u, s = s.substr(c.length);
3531
+ this.protocol = u, i = i.substr(c.length);
3531
3532
  }
3532
- if (r || c || s.match(/^\/\/[^@/]+@[^@/]+/)) {
3533
- var f = s.substr(0, 2) === "//";
3534
- f && !(c && Ut[c]) && (s = s.substr(2), this.slashes = !0);
3533
+ if (r || c || i.match(/^\/\/[^@/]+@[^@/]+/)) {
3534
+ var f = i.substr(0, 2) === "//";
3535
+ f && !(c && Ut[c]) && (i = i.substr(2), this.slashes = !0);
3535
3536
  }
3536
3537
  if (!Ut[c] && (f || c && !Ne[c])) {
3537
3538
  for (var p = -1, h = 0; h < Br.length; h++) {
3538
- var y = s.indexOf(Br[h]);
3539
+ var y = i.indexOf(Br[h]);
3539
3540
  y !== -1 && (p === -1 || y < p) && (p = y);
3540
3541
  }
3541
3542
  var g, b;
3542
- p === -1 ? b = s.lastIndexOf("@") : b = s.lastIndexOf("@", p), b !== -1 && (g = s.slice(0, b), s = s.slice(b + 1), this.auth = decodeURIComponent(g)), p = -1;
3543
+ p === -1 ? b = i.lastIndexOf("@") : b = i.lastIndexOf("@", p), b !== -1 && (g = i.slice(0, b), i = i.slice(b + 1), this.auth = decodeURIComponent(g)), p = -1;
3543
3544
  for (var h = 0; h < Hr.length; h++) {
3544
- var y = s.indexOf(Hr[h]);
3545
+ var y = i.indexOf(Hr[h]);
3545
3546
  y !== -1 && (p === -1 || y < p) && (p = y);
3546
3547
  }
3547
- p === -1 && (p = s.length), this.host = s.slice(0, p), s = s.slice(p), this.parseHost(), this.hostname = this.hostname || "";
3548
+ p === -1 && (p = i.length), this.host = i.slice(0, p), i = i.slice(p), this.parseHost(), this.hostname = this.hostname || "";
3548
3549
  var x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
3549
3550
  if (!x)
3550
3551
  for (var m = this.hostname.split(/\./), h = 0, v = m.length; h < v; h++) {
3551
- var j = m[h];
3552
- if (j && !j.match(Mr)) {
3553
- for (var w = "", S = 0, k = j.length; S < k; S++)
3554
- j.charCodeAt(S) > 127 ? w += "x" : w += j[S];
3555
- if (!w.match(Mr)) {
3556
- var E = m.slice(0, h), R = m.slice(h + 1), F = j.match(Qs);
3557
- F && (E.push(F[1]), R.unshift(F[2])), R.length && (s = "/" + R.join(".") + s), this.hostname = E.join(".");
3552
+ var w = m[h];
3553
+ if (w && !w.match(Mr)) {
3554
+ for (var j = "", S = 0, k = w.length; S < k; S++)
3555
+ w.charCodeAt(S) > 127 ? j += "x" : j += w[S];
3556
+ if (!j.match(Mr)) {
3557
+ var E = m.slice(0, h), R = m.slice(h + 1), F = w.match(Ks);
3558
+ F && (E.push(F[1]), R.unshift(F[2])), R.length && (i = "/" + R.join(".") + i), this.hostname = E.join(".");
3558
3559
  break;
3559
3560
  }
3560
3561
  }
3561
3562
  }
3562
- this.hostname.length > Vs ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), x || (this.hostname = Bs.toASCII(this.hostname));
3563
+ this.hostname.length > Qs ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), x || (this.hostname = Ms.toASCII(this.hostname));
3563
3564
  var te = this.port ? ":" + this.port : "", re = this.hostname || "";
3564
- this.host = re + te, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
3565
+ this.host = re + te, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), i[0] !== "/" && (i = "/" + i));
3565
3566
  }
3566
- if (!Ks[u])
3567
+ if (!Ds[u])
3567
3568
  for (var h = 0, v = Lt.length; h < v; h++) {
3568
3569
  var L = Lt[h];
3569
- if (s.indexOf(L) !== -1) {
3570
+ if (i.indexOf(L) !== -1) {
3570
3571
  var V = encodeURIComponent(L);
3571
- V === L && (V = escape(L)), s = s.split(L).join(V);
3572
+ V === L && (V = escape(L)), i = i.split(L).join(V);
3572
3573
  }
3573
3574
  }
3574
- var Q = s.indexOf("#");
3575
- Q !== -1 && (this.hash = s.substr(Q), s = s.slice(0, Q));
3576
- var Y = s.indexOf("?");
3577
- if (Y !== -1 ? (this.search = s.substr(Y), this.query = s.substr(Y + 1), e && (this.query = Ft.parse(this.query)), s = s.slice(0, Y)) : e && (this.search = "", this.query = {}), s && (this.pathname = s), Ne[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3575
+ var Q = i.indexOf("#");
3576
+ Q !== -1 && (this.hash = i.substr(Q), i = i.slice(0, Q));
3577
+ var Y = i.indexOf("?");
3578
+ if (Y !== -1 ? (this.search = i.substr(Y), this.query = i.substr(Y + 1), e && (this.query = Ft.parse(this.query)), i = i.slice(0, Y)) : e && (this.search = "", this.query = {}), i && (this.pathname = i), Ne[u] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3578
3579
  var te = this.pathname || "", he = this.search || "";
3579
3580
  this.path = te + he;
3580
3581
  }
3581
3582
  return this.href = this.format(), this;
3582
3583
  };
3583
- function Ds(t) {
3584
+ function Ys(t) {
3584
3585
  return typeof t == "string" && (t = Xt(t)), t instanceof ae ? t.format() : ae.prototype.format.call(t);
3585
3586
  }
3586
3587
  ae.prototype.format = function() {
3587
3588
  var t = this.auth || "";
3588
3589
  t && (t = encodeURIComponent(t), t = t.replace(/%3A/i, ":"), t += "@");
3589
- var e = this.protocol || "", r = this.pathname || "", o = this.hash || "", i = !1, a = "";
3590
- this.host ? i = t + this.host : this.hostname && (i = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a = Ft.stringify(this.query, {
3590
+ var e = this.protocol || "", r = this.pathname || "", o = this.hash || "", s = !1, a = "";
3591
+ this.host ? s = t + this.host : this.hostname && (s = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a = Ft.stringify(this.query, {
3591
3592
  arrayFormat: "repeat",
3592
3593
  addQueryPrefix: !1
3593
3594
  }));
3594
3595
  var n = this.search || a && "?" + a || "";
3595
- return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || Ne[e]) && i !== !1 ? (i = "//" + (i || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : i || (i = ""), o && o.charAt(0) !== "#" && (o = "#" + o), n && n.charAt(0) !== "?" && (n = "?" + n), r = r.replace(/[?#]/g, function(s) {
3596
- return encodeURIComponent(s);
3597
- }), n = n.replace("#", "%23"), e + i + r + n + o;
3596
+ return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || Ne[e]) && s !== !1 ? (s = "//" + (s || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : s || (s = ""), o && o.charAt(0) !== "#" && (o = "#" + o), n && n.charAt(0) !== "?" && (n = "?" + n), r = r.replace(/[?#]/g, function(i) {
3597
+ return encodeURIComponent(i);
3598
+ }), n = n.replace("#", "%23"), e + s + r + n + o;
3598
3599
  };
3599
3600
  ae.prototype.resolve = function(t) {
3600
3601
  return this.resolveObject(Xt(t, !1, !0)).format();
@@ -3604,15 +3605,15 @@ ae.prototype.resolveObject = function(t) {
3604
3605
  var e = new ae();
3605
3606
  e.parse(t, !1, !0), t = e;
3606
3607
  }
3607
- for (var r = new ae(), o = Object.keys(this), i = 0; i < o.length; i++) {
3608
- var a = o[i];
3608
+ for (var r = new ae(), o = Object.keys(this), s = 0; s < o.length; s++) {
3609
+ var a = o[s];
3609
3610
  r[a] = this[a];
3610
3611
  }
3611
3612
  if (r.hash = t.hash, t.href === "")
3612
3613
  return r.href = r.format(), r;
3613
3614
  if (t.slashes && !t.protocol) {
3614
- for (var n = Object.keys(t), s = 0; s < n.length; s++) {
3615
- var l = n[s];
3615
+ for (var n = Object.keys(t), i = 0; i < n.length; i++) {
3616
+ var l = n[i];
3616
3617
  l !== "protocol" && (r[l] = t[l]);
3617
3618
  }
3618
3619
  return Ne[r.protocol] && r.hostname && !r.pathname && (r.pathname = "/", r.path = r.pathname), r.href = r.format(), r;
@@ -3637,16 +3638,16 @@ ae.prototype.resolveObject = function(t) {
3637
3638
  }
3638
3639
  return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
3639
3640
  }
3640
- var y = r.pathname && r.pathname.charAt(0) === "/", g = t.host || t.pathname && t.pathname.charAt(0) === "/", b = g || y || r.host && t.pathname, x = b, m = r.pathname && r.pathname.split("/") || [], v = t.pathname && t.pathname.split("/") || [], j = r.protocol && !Ne[r.protocol];
3641
- if (j && (r.hostname = "", r.port = null, r.host && (m[0] === "" ? m[0] = r.host : m.unshift(r.host)), r.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (v[0] === "" ? v[0] = t.host : v.unshift(t.host)), t.host = null), b = b && (v[0] === "" || m[0] === "")), g)
3641
+ var y = r.pathname && r.pathname.charAt(0) === "/", g = t.host || t.pathname && t.pathname.charAt(0) === "/", b = g || y || r.host && t.pathname, x = b, m = r.pathname && r.pathname.split("/") || [], v = t.pathname && t.pathname.split("/") || [], w = r.protocol && !Ne[r.protocol];
3642
+ if (w && (r.hostname = "", r.port = null, r.host && (m[0] === "" ? m[0] = r.host : m.unshift(r.host)), r.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (v[0] === "" ? v[0] = t.host : v.unshift(t.host)), t.host = null), b = b && (v[0] === "" || m[0] === "")), g)
3642
3643
  r.host = t.host || t.host === "" ? t.host : r.host, r.hostname = t.hostname || t.hostname === "" ? t.hostname : r.hostname, r.search = t.search, r.query = t.query, m = v;
3643
3644
  else if (v.length)
3644
3645
  m || (m = []), m.pop(), m = m.concat(v), r.search = t.search, r.query = t.query;
3645
3646
  else if (t.search != null) {
3646
- if (j) {
3647
+ if (w) {
3647
3648
  r.host = m.shift(), r.hostname = r.host;
3648
- var w = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3649
- w && (r.auth = w.shift(), r.hostname = w.shift(), r.host = r.hostname);
3649
+ var j = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3650
+ j && (r.auth = j.shift(), r.hostname = j.shift(), r.host = r.hostname);
3650
3651
  }
3651
3652
  return r.search = t.search, r.query = t.query, (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r;
3652
3653
  }
@@ -3659,23 +3660,23 @@ ae.prototype.resolveObject = function(t) {
3659
3660
  m.unshift("..");
3660
3661
  b && m[0] !== "" && (!m[0] || m[0].charAt(0) !== "/") && m.unshift(""), k && m.join("/").substr(-1) !== "/" && m.push("");
3661
3662
  var F = m[0] === "" || m[0] && m[0].charAt(0) === "/";
3662
- if (j) {
3663
+ if (w) {
3663
3664
  r.hostname = F ? "" : m.length ? m.shift() : "", r.host = r.hostname;
3664
- var w = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3665
- w && (r.auth = w.shift(), r.hostname = w.shift(), r.host = r.hostname);
3665
+ var j = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1;
3666
+ j && (r.auth = j.shift(), r.hostname = j.shift(), r.host = r.hostname);
3666
3667
  }
3667
3668
  return b = b || r.host && m.length, b && !F && m.unshift(""), m.length > 0 ? r.pathname = m.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = t.auth || r.auth, r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
3668
3669
  };
3669
3670
  ae.prototype.parseHost = function() {
3670
- var t = this.host, e = zs.exec(t);
3671
+ var t = this.host, e = Ws.exec(t);
3671
3672
  e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);
3672
3673
  };
3673
- var Ys = Xt, zr = Ds, Xs = (t) => typeof t == "object" && "log" in t && typeof t.log == "object" && "entries" in t.log && Array.isArray(t.log.entries), Zs = class {
3674
+ var Xs = Xt, zr = Ys, Zs = (t) => typeof t == "object" && "log" in t && typeof t.log == "object" && "entries" in t.log && Array.isArray(t.log.entries), el = class {
3674
3675
  constructor(t, e = {}) {
3675
3676
  this.initCalled = !1, this.entries = [], this.requests = [], this.options = {}, this.options = {
3676
3677
  harIsAlreadyEncoded: !1,
3677
3678
  ...e
3678
- }, this.requests = [], Xs(t) ? this.entries = t.log.entries : this.entries = [
3679
+ }, this.requests = [], Zs(t) ? this.entries = t.log.entries : this.entries = [
3679
3680
  {
3680
3681
  request: t
3681
3682
  }
@@ -3735,13 +3736,13 @@ var Ys = Xt, zr = Ds, Xs = (t) => typeof t == "object" && "log" in t && typeof t
3735
3736
  case "multipart/alternative":
3736
3737
  if (r.postData.text = "", r.postData.mimeType = "multipart/form-data", (f = r.postData) != null && f.params) {
3737
3738
  const h = "---011000010111000001101001", y = `${h}--`, g = `\r
3738
- `, b = (j) => j.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (j) => j.replace(/\r?\n|\r/g, `\r
3739
+ `, b = (w) => w.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (w) => w.replace(/\r?\n|\r/g, `\r
3739
3740
  `), m = [`--${h}`];
3740
- (p = r.postData) == null || p.params.forEach((j, w) => {
3741
- const S = j.name, k = j.value || "", E = j.fileName || null, R = j.contentType || "application/octet-stream";
3741
+ (p = r.postData) == null || p.params.forEach((w, j) => {
3742
+ const S = w.name, k = w.value || "", E = w.fileName || null, R = w.contentType || "application/octet-stream";
3742
3743
  E ? (m.push(
3743
3744
  `Content-Disposition: form-data; name="${b(x(S))}"; filename="${E}"`
3744
- ), m.push(`Content-Type: ${R}`)) : m.push(`Content-Disposition: form-data; name="${b(x(S))}"`), m.push(""), m.push(x(k)), w !== r.postData.params.length - 1 && m.push(`--${h}`);
3745
+ ), m.push(`Content-Type: ${R}`)) : m.push(`Content-Disposition: form-data; name="${b(x(S))}"`), m.push(""), m.push(x(k)), j !== r.postData.params.length - 1 && m.push(`--${h}`);
3745
3746
  }), m.push(`--${y}`), r.postData.boundary = h, r.postData.text = m.join(g);
3746
3747
  const v = J(r.headersObj, "content-type") || "content-type";
3747
3748
  r.headersObj[v] = `multipart/form-data; boundary=${h}`;
@@ -3762,10 +3763,10 @@ var Ys = Xt, zr = Ds, Xs = (t) => typeof t == "object" && "log" in t && typeof t
3762
3763
  }
3763
3764
  break;
3764
3765
  }
3765
- const i = {
3766
+ const s = {
3766
3767
  ...r.allHeaders,
3767
3768
  ...r.headersObj
3768
- }, a = Ys(r.url, !0, !0);
3769
+ }, a = Xs(r.url, !0, !0);
3769
3770
  r.queryObj = {
3770
3771
  ...r.queryObj,
3771
3772
  ...a.query
@@ -3777,7 +3778,7 @@ var Ys = Xt, zr = Ds, Xs = (t) => typeof t == "object" && "log" in t && typeof t
3777
3778
  }) : n = nt.stringify(r.queryObj, {
3778
3779
  indices: !1
3779
3780
  });
3780
- const s = {
3781
+ const i = {
3781
3782
  ...a,
3782
3783
  query: r.queryObj,
3783
3784
  search: n,
@@ -3788,55 +3789,55 @@ var Ys = Xt, zr = Ds, Xs = (t) => typeof t == "object" && "log" in t && typeof t
3788
3789
  search: null
3789
3790
  }), c = zr({
3790
3791
  ...a,
3791
- ...s
3792
+ ...i
3792
3793
  });
3793
3794
  return {
3794
3795
  ...r,
3795
- allHeaders: i,
3796
+ allHeaders: s,
3796
3797
  fullUrl: c,
3797
3798
  url: l,
3798
- uriObj: s
3799
+ uriObj: i
3799
3800
  };
3800
3801
  }
3801
3802
  convert(t, e, r) {
3802
3803
  this.initCalled || this.init(), !r && e && (r = e);
3803
- const o = Sa[t];
3804
+ const o = Oa[t];
3804
3805
  if (!o)
3805
3806
  return !1;
3806
- const { convert: i } = o.clientsById[e || o.info.default];
3807
- return this.requests.map((n) => i(n, r));
3807
+ const { convert: s } = o.clientsById[e || o.info.default];
3808
+ return this.requests.map((n) => s(n, r));
3808
3809
  }
3809
3810
  };
3810
- const el = ({
3811
+ const tl = ({
3811
3812
  rootMargin: t = "0px",
3812
3813
  threshold: e
3813
3814
  } = {}) => {
3814
- const [r, o] = ve(!1), i = Vr(null);
3815
+ const [r, o] = ve(!1), s = Vr(null);
3815
3816
  return Qr(() => {
3816
3817
  const a = new IntersectionObserver(
3817
- ([s]) => {
3818
- s && o(s.isIntersecting);
3818
+ ([i]) => {
3819
+ i && o(i.isIntersecting);
3819
3820
  },
3820
3821
  { rootMargin: t, threshold: e }
3821
- ), n = i.current;
3822
+ ), n = s.current;
3822
3823
  if (n)
3823
3824
  return a.observe(n), () => a.unobserve(n);
3824
- }, [t, e]), [i, r];
3825
- }, tl = ee.Root, Wr = ee.CollapsibleTrigger, rl = ee.CollapsibleContent, nl = typeof window < "u" ? Un : Qr, Zt = ({
3825
+ }, [t, e]), [s, r];
3826
+ }, rl = ee.Root, Wr = ee.CollapsibleTrigger, nl = ee.CollapsibleContent, ol = typeof window < "u" ? Fn : Qr, Zt = ({
3826
3827
  children: t,
3827
3828
  maxHeight: e = 250
3828
3829
  }) => {
3829
- const r = Vr(null), [o, i] = ve(!1), [a, n] = ve(!1);
3830
- return nl(() => {
3831
- const s = r.current;
3832
- if (!s) return;
3833
- i(s.scrollHeight > e);
3830
+ const r = Vr(null), [o, s] = ve(!1), [a, n] = ve(!1);
3831
+ return ol(() => {
3832
+ const i = r.current;
3833
+ if (!i) return;
3834
+ s(i.scrollHeight > e);
3834
3835
  const l = new ResizeObserver(() => {
3835
- i(s.scrollHeight > e);
3836
+ s(i.scrollHeight > e);
3836
3837
  });
3837
- return l.observe(s), () => l.disconnect();
3838
+ return l.observe(i), () => l.disconnect();
3838
3839
  }, [e]), /* @__PURE__ */ d.jsxs(
3839
- tl,
3840
+ rl,
3840
3841
  {
3841
3842
  className: "group",
3842
3843
  open: a,
@@ -3844,7 +3845,7 @@ const el = ({
3844
3845
  style: { "--max-height": `${e}px` },
3845
3846
  children: [
3846
3847
  /* @__PURE__ */ d.jsxs(
3847
- rl,
3848
+ nl,
3848
3849
  {
3849
3850
  forceMount: !0,
3850
3851
  className: D(
@@ -3875,32 +3876,32 @@ const el = ({
3875
3876
  ]
3876
3877
  }
3877
3878
  );
3878
- }, ol = ({
3879
+ }, al = ({
3879
3880
  server: t,
3880
3881
  servers: e,
3881
3882
  operation: r
3882
3883
  }) => {
3883
- var n, s, l;
3884
+ var n, i, l;
3884
3885
  const o = (n = r.parameters) == null ? void 0 : n.filter((c) => c.in === "header").map((c) => {
3885
3886
  var u, f;
3886
3887
  return {
3887
3888
  name: c.name,
3888
3889
  defaultValue: ((f = (u = c.examples) == null ? void 0 : u.find((p) => p.value)) == null ? void 0 : f.value) ?? ""
3889
3890
  };
3890
- }), i = (s = r.parameters) == null ? void 0 : s.filter((c) => c.in === "query").sort((c, u) => c.required && !u.required ? -1 : 1).map((c) => ({
3891
+ }), s = (i = r.parameters) == null ? void 0 : i.filter((c) => c.in === "query").sort((c, u) => c.required && !u.required ? -1 : 1).map((c) => ({
3891
3892
  name: c.name,
3892
3893
  defaultActive: c.required ?? !1,
3893
3894
  isRequired: c.required ?? !1
3894
3895
  })), a = (l = r.parameters) == null ? void 0 : l.filter((c) => c.in === "path").map((c) => ({ name: c.name }));
3895
3896
  return /* @__PURE__ */ d.jsx(
3896
- Mn,
3897
+ zn,
3897
3898
  {
3898
3899
  server: t,
3899
3900
  servers: e,
3900
3901
  method: r.method,
3901
3902
  url: r.path,
3902
3903
  headers: o,
3903
- queryParams: i,
3904
+ queryParams: s,
3904
3905
  pathParams: a
3905
3906
  }
3906
3907
  );
@@ -3947,8 +3948,8 @@ const el = ({
3947
3948
  if (t.properties || t.type === "object") {
3948
3949
  const r = {};
3949
3950
  if (t.properties)
3950
- for (const [o, i] of Object.entries(t.properties))
3951
- r[o] = Re(i, o);
3951
+ for (const [o, s] of Object.entries(t.properties))
3952
+ r[o] = Re(s, o);
3952
3953
  return r;
3953
3954
  }
3954
3955
  if (t.type === "array")
@@ -3971,10 +3972,10 @@ const el = ({
3971
3972
  default:
3972
3973
  return {};
3973
3974
  }
3974
- }, al = ({ content: t }) => {
3975
- var o, i;
3975
+ }, il = ({ content: t }) => {
3976
+ var o, s;
3976
3977
  if (!t.length) return null;
3977
- const e = t.at(0), r = ((i = (o = e == null ? void 0 : e.examples) == null ? void 0 : o.at(0)) == null ? void 0 : i.value) ?? (e != null && e.schema ? Re(e.schema) : "");
3978
+ const e = t.at(0), r = ((s = (o = e == null ? void 0 : e.examples) == null ? void 0 : o.at(0)) == null ? void 0 : s.value) ?? (e != null && e.schema ? Re(e.schema) : "");
3978
3979
  return /* @__PURE__ */ d.jsx(d.Fragment, { children: /* @__PURE__ */ d.jsxs(er, { children: [
3979
3980
  /* @__PURE__ */ d.jsx(tr, { className: "text-xs flex justify-between items-center", children: /* @__PURE__ */ d.jsx("span", { className: "font-mono", children: "Request Body Example" }) }),
3980
3981
  /* @__PURE__ */ d.jsx(rr, { className: "p-0", children: /* @__PURE__ */ d.jsx(Zt, { children: /* @__PURE__ */ d.jsx(
@@ -3988,7 +3989,7 @@ const el = ({
3988
3989
  }
3989
3990
  ) }) })
3990
3991
  ] }) });
3991
- }, il = ({
3992
+ }, sl = ({
3992
3993
  responses: t,
3993
3994
  selectedResponse: e,
3994
3995
  onSelectResponse: r
@@ -3999,28 +4000,28 @@ const el = ({
3999
4000
  {
4000
4001
  defaultValue: (o = t[0]) == null ? void 0 : o.statusCode,
4001
4002
  value: e,
4002
- onValueChange: (i) => r(i),
4003
+ onValueChange: (s) => r(s),
4003
4004
  children: [
4004
4005
  /* @__PURE__ */ d.jsxs(tr, { className: "text-xs flex flex-col gap-2 pb-0", children: [
4005
4006
  /* @__PURE__ */ d.jsx("span", { className: "font-mono", children: "Example Responses" }),
4006
- /* @__PURE__ */ d.jsx(De.List, { className: "flex gap-2", children: t.map((i) => /* @__PURE__ */ d.jsx(
4007
+ /* @__PURE__ */ d.jsx(De.List, { className: "flex gap-2", children: t.map((s) => /* @__PURE__ */ d.jsx(
4007
4008
  De.Trigger,
4008
4009
  {
4009
- value: i.statusCode,
4010
+ value: s.statusCode,
4010
4011
  className: D(
4011
4012
  "text-xs font-mono px-1.5 py-1 pb-px translate-y-px border-b-2 border-transparent rounded-t cursor-pointer",
4012
4013
  "data-[state=active]:text-primary data-[state=active]:dark:text-inherit data-[state=active]:border-primary",
4013
4014
  "hover:border-accent-foreground/25"
4014
4015
  ),
4015
- children: i.statusCode
4016
+ children: s.statusCode
4016
4017
  },
4017
- i.statusCode
4018
+ s.statusCode
4018
4019
  )) })
4019
4020
  ] }),
4020
- t.map((i) => {
4021
- var s, l, c;
4022
- const a = (s = i.content) == null ? void 0 : s.at(0), n = ((c = (l = a == null ? void 0 : a.examples) == null ? void 0 : l.at(0)) == null ? void 0 : c.value) ?? (a != null && a.schema ? Re(a.schema) : "");
4023
- return /* @__PURE__ */ d.jsxs(De.Content, { value: i.statusCode, children: [
4021
+ t.map((s) => {
4022
+ var i, l, c;
4023
+ const a = (i = s.content) == null ? void 0 : i.at(0), n = ((c = (l = a == null ? void 0 : a.examples) == null ? void 0 : l.at(0)) == null ? void 0 : c.value) ?? (a != null && a.schema ? Re(a.schema) : "");
4024
+ return /* @__PURE__ */ d.jsxs(De.Content, { value: s.statusCode, children: [
4024
4025
  /* @__PURE__ */ d.jsx(rr, { className: "p-0", children: /* @__PURE__ */ d.jsx(Zt, { children: /* @__PURE__ */ d.jsx(
4025
4026
  Mt,
4026
4027
  {
@@ -4030,13 +4031,13 @@ const el = ({
4030
4031
  code: n ? JSON.stringify(n, null, 2) : "Empty response"
4031
4032
  }
4032
4033
  ) }) }),
4033
- /* @__PURE__ */ d.jsx(Sn, { className: "flex justify-end text-xs", children: i.description })
4034
- ] }, i.statusCode);
4034
+ /* @__PURE__ */ d.jsx(Sn, { className: "flex justify-end text-xs", children: s.description })
4035
+ ] }, s.statusCode);
4035
4036
  })
4036
4037
  ]
4037
4038
  }
4038
4039
  ) });
4039
- }, sl = (t, e) => {
4040
+ }, ll = (t, e) => {
4040
4041
  let r;
4041
4042
  switch (e) {
4042
4043
  case "shell":
@@ -4077,7 +4078,7 @@ const el = ({
4077
4078
  break;
4078
4079
  }
4079
4080
  return r ? r[0] : "";
4080
- }, ll = ut(
4081
+ }, cl = ut(
4081
4082
  /* GraphQL */
4082
4083
  `
4083
4084
  query getServerQuery($input: JSON!, $type: SchemaType!) {
@@ -4089,7 +4090,7 @@ const el = ({
4089
4090
  }
4090
4091
  }
4091
4092
  `
4092
- ), cl = {
4093
+ ), ul = {
4093
4094
  get: fe.green,
4094
4095
  post: fe.blue,
4095
4096
  put: fe.yellow,
@@ -4098,7 +4099,7 @@ const el = ({
4098
4099
  options: fe.indigo,
4099
4100
  head: fe.gray,
4100
4101
  trace: fe.gray
4101
- }, ul = [
4102
+ }, pl = [
4102
4103
  { value: "shell", label: "cURL" },
4103
4104
  { value: "js", label: "JavaScript" },
4104
4105
  { value: "python", label: "Python" },
@@ -4110,17 +4111,17 @@ const el = ({
4110
4111
  { value: "php", label: "PHP" },
4111
4112
  { value: "ruby", label: "Ruby" },
4112
4113
  { value: "swift", label: "Swift" }
4113
- ], pl = ({
4114
+ ], fl = ({
4114
4115
  operation: t,
4115
4116
  selectedResponse: e,
4116
4117
  onSelectResponse: r
4117
4118
  }) => {
4118
4119
  var m;
4119
- const { input: o, type: i } = Bt(), a = zt(ll, { input: o, type: i }), n = Ht(a), s = cl[t.method.toLocaleLowerCase()] ?? fe.gray, [l, c] = eo(), [, u] = Gr(), f = l.get("lang") ?? "shell", p = (m = t.requestBody) == null ? void 0 : m.content, h = t.path.split("/").map((v, j, w) => {
4120
+ const { input: o, type: s } = Bt(), a = zt(cl, { input: o, type: s }), n = Ht(a), i = ul[t.method.toLocaleLowerCase()] ?? fe.gray, [l, c] = to(), [, u] = Gr(), f = l.get("lang") ?? "shell", p = (m = t.requestBody) == null ? void 0 : m.content, h = t.path.split("/").map((v, w, j) => {
4120
4121
  const k = v.startsWith("{") && v.endsWith("}") || v.startsWith(":") ? v.replace(/[:{}]/g, "") : void 0;
4121
4122
  return (
4122
4123
  // eslint-disable-next-line react/no-array-index-key
4123
- /* @__PURE__ */ d.jsxs(Fn, { children: [
4124
+ /* @__PURE__ */ d.jsxs(_n, { children: [
4124
4125
  k ? /* @__PURE__ */ d.jsx(
4125
4126
  Xr,
4126
4127
  {
@@ -4130,13 +4131,13 @@ const el = ({
4130
4131
  children: v
4131
4132
  }
4132
4133
  ) : v,
4133
- j < w.length - 1 ? "/" : null,
4134
+ w < j.length - 1 ? "/" : null,
4134
4135
  /* @__PURE__ */ d.jsx("wbr", {})
4135
- ] }, v + j)
4136
+ ] }, v + w)
4136
4137
  );
4137
4138
  }), { selectedServer: y } = Kr(), g = Jr(() => {
4138
- var w;
4139
- const v = (w = p == null ? void 0 : p[0]) != null && w.schema ? Re(p[0].schema) : void 0, j = new Zs({
4139
+ var j;
4140
+ const v = (j = p == null ? void 0 : p[0]) != null && j.schema ? Re(p[0].schema) : void 0, w = new el({
4140
4141
  method: t.method.toLocaleUpperCase(),
4141
4142
  url: (y ?? n.data.schema.url ?? "") + t.path.replaceAll("{", ":").replaceAll("}", ""),
4142
4143
  postData: v ? {
@@ -4150,7 +4151,7 @@ const el = ({
4150
4151
  headersSize: 0,
4151
4152
  bodySize: 0
4152
4153
  });
4153
- return sl(j, f);
4154
+ return ll(w, f);
4154
4155
  }, [
4155
4156
  p,
4156
4157
  t.method,
@@ -4158,7 +4159,7 @@ const el = ({
4158
4159
  y,
4159
4160
  n.data.schema.url,
4160
4161
  f
4161
- ]), [b, x] = el({ rootMargin: "200px 0px 200px 0px" });
4162
+ ]), [b, x] = tl({ rootMargin: "200px 0px 200px 0px" });
4162
4163
  return /* @__PURE__ */ d.jsxs(
4163
4164
  "aside",
4164
4165
  {
@@ -4168,12 +4169,12 @@ const el = ({
4168
4169
  /* @__PURE__ */ d.jsxs(er, { children: [
4169
4170
  /* @__PURE__ */ d.jsxs(tr, { className: "flex justify-between items-center flex-nowrap py-3 gap-2 text-xs", children: [
4170
4171
  /* @__PURE__ */ d.jsxs("span", { className: "font-mono break-words", children: [
4171
- /* @__PURE__ */ d.jsx("span", { className: D("font-semibold", s), children: t.method.toLocaleUpperCase() }),
4172
+ /* @__PURE__ */ d.jsx("span", { className: D("font-semibold", i), children: t.method.toLocaleUpperCase() }),
4172
4173
  " ",
4173
4174
  h
4174
4175
  ] }),
4175
4176
  x && /* @__PURE__ */ d.jsx(
4176
- ol,
4177
+ al,
4177
4178
  {
4178
4179
  server: n.data.schema.url ?? "",
4179
4180
  servers: n.data.schema.servers.map((v) => v.url) ?? [],
@@ -4200,18 +4201,18 @@ const el = ({
4200
4201
  value: f,
4201
4202
  onChange: (v) => {
4202
4203
  u(() => {
4203
- c((j) => (j.set("lang", v.target.value), j));
4204
+ c((w) => (w.set("lang", v.target.value), w));
4204
4205
  });
4205
4206
  },
4206
- options: ul
4207
+ options: pl
4207
4208
  }
4208
4209
  )
4209
4210
  ] })
4210
4211
  ] })
4211
4212
  ] }),
4212
- x && p && /* @__PURE__ */ d.jsx(al, { content: p }),
4213
+ x && p && /* @__PURE__ */ d.jsx(il, { content: p }),
4213
4214
  x && t.responses.length > 0 && /* @__PURE__ */ d.jsx(
4214
- il,
4215
+ sl,
4215
4216
  {
4216
4217
  selectedResponse: e,
4217
4218
  onSelectResponse: r,
@@ -4221,15 +4222,15 @@ const el = ({
4221
4222
  ]
4222
4223
  }
4223
4224
  );
4224
- }, fl = (t) => Object.entries(t), dl = {
4225
- AND: /* @__PURE__ */ d.jsx(En, { size: 16, className: "fill-card" }),
4226
- OR: /* @__PURE__ */ d.jsx(Nn, { size: 16, className: "fill-card" }),
4227
- ONE: /* @__PURE__ */ d.jsx(Rn, { size: 14, className: "fill-card" })
4228
- }, hl = {
4225
+ }, dl = (t) => Object.entries(t), hl = {
4226
+ AND: /* @__PURE__ */ d.jsx(Nn, { size: 16, className: "fill-card" }),
4227
+ OR: /* @__PURE__ */ d.jsx(Rn, { size: 16, className: "fill-card" }),
4228
+ ONE: /* @__PURE__ */ d.jsx(An, { size: 14, className: "fill-card" })
4229
+ }, yl = {
4229
4230
  AND: "text-green-500 dark:text-green-300/60",
4230
4231
  OR: "text-blue-400 dark:text-blue-500",
4231
4232
  ONE: "text-purple-500 dark:text-purple-300/60"
4232
- }, yl = ({
4233
+ }, ml = ({
4233
4234
  type: t,
4234
4235
  isOpen: e,
4235
4236
  className: r
@@ -4237,13 +4238,13 @@ const el = ({
4237
4238
  "div",
4238
4239
  {
4239
4240
  className: D(
4240
- hl[t],
4241
+ yl[t],
4241
4242
  "relative text-sm flex py-2",
4242
4243
  "before:border-l before:absolute before:-top-2 before:-bottom-2 before:border-border before:border-dashed before:content-['']",
4243
4244
  r
4244
4245
  ),
4245
4246
  children: /* @__PURE__ */ d.jsxs("div", { className: "-translate-x-[7px] flex gap-1 items-center", children: [
4246
- dl[t],
4247
+ hl[t],
4247
4248
  /* @__PURE__ */ d.jsx(
4248
4249
  "div",
4249
4250
  {
@@ -4251,12 +4252,12 @@ const el = ({
4251
4252
  "translate-y-px mx-px opacity-0 group-hover:opacity-100 transition",
4252
4253
  !e && "-rotate-90"
4253
4254
  ),
4254
- children: /* @__PURE__ */ d.jsx(kn, { size: 16 })
4255
+ children: /* @__PURE__ */ d.jsx(En, { size: 16 })
4255
4256
  }
4256
4257
  )
4257
4258
  ] })
4258
4259
  }
4259
- ), ml = (t) => {
4260
+ ), gl = (t) => {
4260
4261
  const [e, r] = ve(!0);
4261
4262
  return /* @__PURE__ */ d.jsxs(
4262
4263
  ee.Root,
@@ -4265,31 +4266,31 @@ const el = ({
4265
4266
  onOpenChange: () => r((o) => !o),
4266
4267
  className: "group",
4267
4268
  children: [
4268
- /* @__PURE__ */ d.jsx(ee.Trigger, { children: /* @__PURE__ */ d.jsx(yl, { type: t.type, isOpen: e }) }),
4269
+ /* @__PURE__ */ d.jsx(ee.Trigger, { children: /* @__PURE__ */ d.jsx(ml, { type: t.type, isOpen: e }) }),
4269
4270
  !e && /* @__PURE__ */ d.jsx("div", { className: "wavy-line bg-border translate-y-1" }),
4270
4271
  /* @__PURE__ */ d.jsx(ee.Content, { children: /* @__PURE__ */ d.jsx(Ge, { schema: t.schema, level: t.level + 1 }) })
4271
4272
  ]
4272
4273
  }
4273
4274
  );
4274
- }, gl = {
4275
+ }, bl = {
4275
4276
  AND: "All of",
4276
4277
  OR: "Any of",
4277
4278
  ONE: "One of"
4278
- }, bl = ({
4279
+ }, vl = ({
4279
4280
  schemas: t,
4280
4281
  type: e,
4281
4282
  isOpen: r,
4282
4283
  level: o,
4283
- toggleOpen: i
4284
- }) => /* @__PURE__ */ d.jsx(ee.Root, { open: r, onOpenChange: i, asChild: !0, children: /* @__PURE__ */ d.jsxs(de, { className: "px-6", children: [
4284
+ toggleOpen: s
4285
+ }) => /* @__PURE__ */ d.jsx(ee.Root, { open: r, onOpenChange: s, asChild: !0, children: /* @__PURE__ */ d.jsxs(de, { className: "px-6", children: [
4285
4286
  /* @__PURE__ */ d.jsxs(ee.Trigger, { className: "flex gap-2 items-center py-2 w-full text-sm text-muted-foreground -translate-x-1.5", children: [
4286
- r ? /* @__PURE__ */ d.jsx(An, { size: 14 }) : /* @__PURE__ */ d.jsx(qn, { size: 14 }),
4287
- /* @__PURE__ */ d.jsx("span", { children: gl[e] })
4287
+ r ? /* @__PURE__ */ d.jsx(qn, { size: 14 }) : /* @__PURE__ */ d.jsx(In, { size: 14 }),
4288
+ /* @__PURE__ */ d.jsx("span", { children: bl[e] })
4288
4289
  ] }),
4289
4290
  /* @__PURE__ */ d.jsx(ee.Content, { className: "pb-4", children: t.map((a, n) => (
4290
4291
  // eslint-disable-next-line react/no-array-index-key
4291
4292
  /* @__PURE__ */ d.jsx(
4292
- ml,
4293
+ gl,
4293
4294
  {
4294
4295
  type: e,
4295
4296
  schema: a,
@@ -4298,7 +4299,7 @@ const el = ({
4298
4299
  n
4299
4300
  )
4300
4301
  )) })
4301
- ] }) }), vl = (t) => t.type === "object" || t.type === "array" && typeof t.items == "object" && (!t.items.type || t.items.type === "object"), _t = (t) => !!(t.oneOf ?? t.allOf ?? t.anyOf), xl = {
4302
+ ] }) }), xl = (t) => t.type === "object" || t.type === "array" && typeof t.items == "object" && (!t.items.type || t.items.type === "object"), _t = (t) => !!(t.oneOf ?? t.allOf ?? t.anyOf), $l = {
4302
4303
  allOf: "AND",
4303
4304
  anyOf: "OR",
4304
4305
  oneOf: "ONE"
@@ -4306,28 +4307,28 @@ const el = ({
4306
4307
  schema: t,
4307
4308
  level: e
4308
4309
  }) => {
4309
- const [r, o] = ve(!0), i = _n(() => o((a) => !a), []);
4310
- for (const [a, n] of fl(xl))
4310
+ const [r, o] = ve(!0), s = Hn(() => o((a) => !a), []);
4311
+ for (const [a, n] of dl($l))
4311
4312
  if (t[a])
4312
4313
  return /* @__PURE__ */ d.jsx(
4313
- bl,
4314
+ vl,
4314
4315
  {
4315
4316
  schemas: t[a],
4316
4317
  type: n,
4317
4318
  isOpen: r,
4318
- toggleOpen: i,
4319
+ toggleOpen: s,
4319
4320
  level: e
4320
4321
  }
4321
4322
  );
4322
- }, $l = ({
4323
+ }, jl = ({
4323
4324
  name: t,
4324
4325
  schema: e,
4325
4326
  group: r,
4326
4327
  level: o,
4327
- defaultOpen: i = !1,
4328
+ defaultOpen: s = !1,
4328
4329
  showCollapseButton: a = !0
4329
4330
  }) => {
4330
- const [n, s] = ve(i);
4331
+ const [n, i] = ve(s);
4331
4332
  return /* @__PURE__ */ d.jsx("li", { className: "p-4 bg-border/20 hover:bg-border/30", children: /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col gap-1 justify-between text-sm", children: [
4332
4333
  /* @__PURE__ */ d.jsxs("div", { className: "flex gap-2 items-center", children: [
4333
4334
  /* @__PURE__ */ d.jsx("code", { children: t }),
@@ -4340,16 +4341,16 @@ const el = ({
4340
4341
  e.description && /* @__PURE__ */ d.jsx(
4341
4342
  be,
4342
4343
  {
4343
- className: D(je, "text-sm leading-normal line-clamp-4"),
4344
+ className: D(we, "text-sm leading-normal line-clamp-4"),
4344
4345
  content: e.description
4345
4346
  }
4346
4347
  ),
4347
- (_t(e) || vl(e)) && /* @__PURE__ */ d.jsxs(
4348
+ (_t(e) || xl(e)) && /* @__PURE__ */ d.jsxs(
4348
4349
  ee.Root,
4349
4350
  {
4350
- defaultOpen: i,
4351
+ defaultOpen: s,
4351
4352
  open: n,
4352
- onOpenChange: () => s(!n),
4353
+ onOpenChange: () => i(!n),
4353
4354
  children: [
4354
4355
  a && /* @__PURE__ */ d.jsx(ee.Trigger, { asChild: !0, children: /* @__PURE__ */ d.jsxs(
4355
4356
  Dr,
@@ -4358,7 +4359,7 @@ const el = ({
4358
4359
  size: "sm",
4359
4360
  className: "mt-2 flex gap-1.5",
4360
4361
  children: [
4361
- /* @__PURE__ */ d.jsx(In, { size: 18 }),
4362
+ /* @__PURE__ */ d.jsx(Ln, { size: 18 }),
4362
4363
  n ? "Hide nested properties" : "Show nested properties"
4363
4364
  ]
4364
4365
  }
@@ -4375,24 +4376,24 @@ const el = ({
4375
4376
  }) => {
4376
4377
  if (!t || Object.keys(t).length === 0)
4377
4378
  return /* @__PURE__ */ d.jsx(de, { className: "p-4", children: /* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground italic", children: "No response specified" }) });
4378
- const o = (i, a) => {
4379
- if (_t(i))
4380
- return /* @__PURE__ */ d.jsx(On, { schema: i, level: a });
4381
- if (i.type === "array" && i.items) {
4382
- const n = i.items;
4379
+ const o = (s, a) => {
4380
+ if (_t(s))
4381
+ return /* @__PURE__ */ d.jsx(On, { schema: s, level: a });
4382
+ if (s.type === "array" && s.items) {
4383
+ const n = s.items;
4383
4384
  return typeof n.type == "string" && ["string", "number", "boolean", "integer"].includes(n.type) ? /* @__PURE__ */ d.jsxs(de, { className: "p-4", children: [
4384
4385
  /* @__PURE__ */ d.jsxs("span", { className: "text-sm text-muted-foreground", children: [
4385
4386
  n.type,
4386
4387
  "[]"
4387
4388
  ] }),
4388
- i.description && /* @__PURE__ */ d.jsx(
4389
+ s.description && /* @__PURE__ */ d.jsx(
4389
4390
  be,
4390
4391
  {
4391
4392
  className: D(
4392
- je,
4393
+ we,
4393
4394
  "text-sm leading-normal line-clamp-4"
4394
4395
  ),
4395
- content: i.description
4396
+ content: s.description
4396
4397
  }
4397
4398
  )
4398
4399
  ] }) : n.type === "object" ? /* @__PURE__ */ d.jsxs(de, { className: "flex flex-col gap-2 bg-border/30 p-4", children: [
@@ -4400,32 +4401,32 @@ const el = ({
4400
4401
  o(n, a + 1)
4401
4402
  ] }) : o(n, a + 1);
4402
4403
  }
4403
- if (i.type === "object" && (!i.properties || Object.keys(i.properties).length === 0))
4404
+ if (s.type === "object" && (!s.properties || Object.keys(s.properties).length === 0))
4404
4405
  return /* @__PURE__ */ d.jsxs(de, { className: "p-4 flex gap-2 items-center", children: [
4405
- "name" in i && /* @__PURE__ */ d.jsx(d.Fragment, { children: i.name }),
4406
+ "name" in s && /* @__PURE__ */ d.jsx(d.Fragment, { children: s.name }),
4406
4407
  /* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground", children: "object" }),
4407
- i.description && /* @__PURE__ */ d.jsx(
4408
+ s.description && /* @__PURE__ */ d.jsx(
4408
4409
  be,
4409
4410
  {
4410
4411
  className: D(
4411
- je,
4412
+ we,
4412
4413
  "text-sm leading-normal line-clamp-4"
4413
4414
  ),
4414
- content: i.description
4415
+ content: s.description
4415
4416
  }
4416
4417
  )
4417
4418
  ] });
4418
- if (i.properties) {
4419
+ if (s.properties) {
4419
4420
  const n = Zr(
4420
- Object.entries(i.properties),
4421
+ Object.entries(s.properties),
4421
4422
  ([l, c]) => {
4422
4423
  var u;
4423
- return c.deprecated ? "deprecated" : (u = i.required) != null && u.includes(l) ? "required" : "optional";
4424
+ return c.deprecated ? "deprecated" : (u = s.required) != null && u.includes(l) ? "required" : "optional";
4424
4425
  }
4425
- ), s = ["required", "optional", "deprecated"];
4426
- return /* @__PURE__ */ d.jsx(de, { className: "divide-y overflow-hidden", children: s.map(
4426
+ ), i = ["required", "optional", "deprecated"];
4427
+ return /* @__PURE__ */ d.jsx(de, { className: "divide-y overflow-hidden", children: i.map(
4427
4428
  (l) => n[l] && /* @__PURE__ */ d.jsx("ul", { className: "divide-y", children: n[l].map(([c, u]) => /* @__PURE__ */ d.jsx(
4428
- $l,
4429
+ jl,
4429
4430
  {
4430
4431
  name: c,
4431
4432
  schema: u,
@@ -4437,35 +4438,35 @@ const el = ({
4437
4438
  )) }, l)
4438
4439
  ) });
4439
4440
  }
4440
- return typeof i.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(i.type) ? /* @__PURE__ */ d.jsxs(de, { className: "p-4", children: [
4441
- /* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground", children: i.type }),
4442
- i.description && /* @__PURE__ */ d.jsx(
4441
+ return typeof s.type == "string" && ["string", "number", "boolean", "integer", "null"].includes(s.type) ? /* @__PURE__ */ d.jsxs(de, { className: "p-4", children: [
4442
+ /* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground", children: s.type }),
4443
+ s.description && /* @__PURE__ */ d.jsx(
4443
4444
  be,
4444
4445
  {
4445
4446
  className: D(
4446
- je,
4447
+ we,
4447
4448
  "text-sm leading-normal line-clamp-4"
4448
4449
  ),
4449
- content: i.description
4450
+ content: s.description
4450
4451
  }
4451
4452
  )
4452
- ] }) : i.additionalProperties ? /* @__PURE__ */ d.jsxs(de, { className: "my-2", children: [
4453
- /* @__PURE__ */ d.jsx(Qn, { children: /* @__PURE__ */ d.jsx(Kn, { children: "Additional Properties:" }) }),
4454
- /* @__PURE__ */ d.jsx(Dn, { children: o(
4455
- i.additionalProperties,
4453
+ ] }) : s.additionalProperties ? /* @__PURE__ */ d.jsxs(de, { className: "my-2", children: [
4454
+ /* @__PURE__ */ d.jsx(Kn, { children: /* @__PURE__ */ d.jsx(Dn, { children: "Additional Properties:" }) }),
4455
+ /* @__PURE__ */ d.jsx(Yn, { children: o(
4456
+ s.additionalProperties,
4456
4457
  a + 1
4457
4458
  ) })
4458
4459
  ] }) : null;
4459
4460
  };
4460
4461
  return o(t, e);
4461
- }, wl = ["path", "query", "header", "cookie"], jl = ({
4462
+ }, wl = ["path", "query", "header", "cookie"], Sl = ({
4462
4463
  operationFragment: t
4463
4464
  }) => {
4464
- var n, s, l;
4465
- const e = to(Sl, t), r = Zr(
4465
+ var n, i, l;
4466
+ const e = ro(Ol, t), r = Zr(
4466
4467
  e.parameters ?? [],
4467
4468
  (c) => c.in
4468
- ), o = e.responses.at(0), [i, a] = ve(o == null ? void 0 : o.statusCode);
4469
+ ), o = e.responses.at(0), [s, a] = ve(o == null ? void 0 : o.statusCode);
4469
4470
  return /* @__PURE__ */ d.jsxs(
4470
4471
  "div",
4471
4472
  {
@@ -4476,7 +4477,7 @@ const el = ({
4476
4477
  e.description && /* @__PURE__ */ d.jsx(
4477
4478
  be,
4478
4479
  {
4479
- className: `${je} max-w-full prose-img:max-w-prose`,
4480
+ className: `${we} max-w-full prose-img:max-w-prose`,
4480
4481
  content: e.description
4481
4482
  }
4482
4483
  ),
@@ -4484,7 +4485,7 @@ const el = ({
4484
4485
  (c) => {
4485
4486
  var u;
4486
4487
  return (u = r[c]) != null && u.length ? /* @__PURE__ */ d.jsx(
4487
- so,
4488
+ lo,
4488
4489
  {
4489
4490
  id: e.slug,
4490
4491
  parameters: r[c],
@@ -4494,7 +4495,7 @@ const el = ({
4494
4495
  ) : [];
4495
4496
  }
4496
4497
  ) }),
4497
- oo((l = (s = (n = e.requestBody) == null ? void 0 : n.content) == null ? void 0 : s.at(0)) == null ? void 0 : l.schema, (c) => /* @__PURE__ */ d.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4498
+ ao((l = (i = (n = e.requestBody) == null ? void 0 : n.content) == null ? void 0 : i.at(0)) == null ? void 0 : l.schema, (c) => /* @__PURE__ */ d.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4498
4499
  /* @__PURE__ */ d.jsx(
4499
4500
  _e,
4500
4501
  {
@@ -4519,13 +4520,13 @@ const el = ({
4519
4520
  }
4520
4521
  ),
4521
4522
  /* @__PURE__ */ d.jsxs(
4522
- zn,
4523
+ Wn,
4523
4524
  {
4524
4525
  onValueChange: (c) => a(c),
4525
- value: i,
4526
+ value: s,
4526
4527
  children: [
4527
- e.responses.length > 1 && /* @__PURE__ */ d.jsx(Wn, { children: e.responses.map((c) => /* @__PURE__ */ d.jsx(
4528
- Jn,
4528
+ e.responses.length > 1 && /* @__PURE__ */ d.jsx(Jn, { children: e.responses.map((c) => /* @__PURE__ */ d.jsx(
4529
+ Gn,
4529
4530
  {
4530
4531
  value: c.statusCode,
4531
4532
  title: c.description ?? void 0,
@@ -4536,7 +4537,7 @@ const el = ({
4536
4537
  /* @__PURE__ */ d.jsx("ul", { className: "list-none m-0 px-0", children: e.responses.map((c) => {
4537
4538
  var u, f;
4538
4539
  return /* @__PURE__ */ d.jsx(
4539
- Gn,
4540
+ Vn,
4540
4541
  {
4541
4542
  value: c.statusCode,
4542
4543
  children: /* @__PURE__ */ d.jsx(
@@ -4555,9 +4556,9 @@ const el = ({
4555
4556
  ] })
4556
4557
  ] }),
4557
4558
  /* @__PURE__ */ d.jsx(
4558
- pl,
4559
+ fl,
4559
4560
  {
4560
- selectedResponse: i,
4561
+ selectedResponse: s,
4561
4562
  onSelectResponse: a,
4562
4563
  operation: e
4563
4564
  }
@@ -4566,7 +4567,7 @@ const el = ({
4566
4567
  },
4567
4568
  e.operationId
4568
4569
  );
4569
- }, Sl = ut(
4570
+ }, Ol = ut(
4570
4571
  /* GraphQL */
4571
4572
  `
4572
4573
  fragment OperationsFragment on OperationItem {
@@ -4631,12 +4632,13 @@ const el = ({
4631
4632
  }
4632
4633
  }
4633
4634
  `
4634
- ), Ol = ut(
4635
+ ), Tl = ut(
4635
4636
  /* GraphQL */
4636
4637
  `
4637
4638
  query AllOperations($input: JSON!, $type: SchemaType!) {
4638
4639
  schema(input: $input, type: $type) {
4639
4640
  description
4641
+ summary
4640
4642
  title
4641
4643
  url
4642
4644
  version
@@ -4651,43 +4653,51 @@ const el = ({
4651
4653
  }
4652
4654
  }
4653
4655
  `
4654
- ), Gl = () => {
4655
- const { input: t, type: e } = Bt(), r = zt(Ol, { input: t, type: e }), o = Ht(r);
4656
+ );
4657
+ function Cl(t, e = 160) {
4658
+ return t ? (t = t.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1"), t = t.replace(/!\[.*?\]\(.*?\)/g, ""), t = t.replace(/[_*`~]/g, ""), t = t.replace(/^(?:>|\s*#+|-{3,}|\*{3,})/gm, ""), t = t.replace(/[|>{}[\]]/g, ""), t = t.replace(/\s+/g, " ").trim(), t = t.substring(0, e), t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;")) : "";
4659
+ }
4660
+ const Kl = () => {
4661
+ const { input: t, type: e } = Bt(), r = zt(Tl, { input: t, type: e }), o = Ht(r), s = o.data.schema.title, a = o.data.schema.summary, n = o.data.schema.description, i = a || (n ? Cl(n) : void 0);
4656
4662
  return /* @__PURE__ */ d.jsxs("div", { className: "pt-[--padding-content-top]", children: [
4663
+ /* @__PURE__ */ d.jsxs(Tn, { children: [
4664
+ /* @__PURE__ */ d.jsx("title", { children: s }),
4665
+ i && /* @__PURE__ */ d.jsx("meta", { name: "description", content: i })
4666
+ ] }),
4657
4667
  /* @__PURE__ */ d.jsxs(
4658
4668
  "div",
4659
4669
  {
4660
- className: D(je, "mb-16 max-w-full prose-img:max-w-prose"),
4670
+ className: D(we, "mb-16 max-w-full prose-img:max-w-prose"),
4661
4671
  children: [
4662
4672
  /* @__PURE__ */ d.jsx(nr, { children: "Overview" }),
4663
- /* @__PURE__ */ d.jsx(_e, { level: 1, id: "description", registerSidebarAnchor: !0, children: o.data.schema.title }),
4673
+ /* @__PURE__ */ d.jsx(_e, { level: 1, id: "description", registerSidebarAnchor: !0, children: s }),
4664
4674
  /* @__PURE__ */ d.jsx(be, { content: o.data.schema.description ?? "" })
4665
4675
  ]
4666
4676
  }
4667
4677
  ),
4668
4678
  /* @__PURE__ */ d.jsx("hr", {}),
4669
- /* @__PURE__ */ d.jsx("div", { className: "my-4 flex justify-end", children: /* @__PURE__ */ d.jsx(no, {}) }),
4670
- o.data.schema.tags.filter((i) => i.operations.length > 0).map((i) => /* @__PURE__ */ d.jsxs("div", { className: "[content-visibility:auto]", children: [
4671
- i.name && /* @__PURE__ */ d.jsx(nr, { children: i.name }),
4672
- i.description && /* @__PURE__ */ d.jsx(
4679
+ /* @__PURE__ */ d.jsx("div", { className: "my-4 flex justify-end", children: /* @__PURE__ */ d.jsx(oo, {}) }),
4680
+ o.data.schema.tags.filter((l) => l.operations.length > 0).map((l) => /* @__PURE__ */ d.jsxs("div", { className: "[content-visibility:auto]", children: [
4681
+ l.name && /* @__PURE__ */ d.jsx(nr, { children: l.name }),
4682
+ l.description && /* @__PURE__ */ d.jsx(
4673
4683
  be,
4674
4684
  {
4675
- className: `${je} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`,
4676
- content: i.description
4685
+ className: `${we} max-w-full prose-img:max-w-prose w-full mt-2 mb-12`,
4686
+ content: l.description
4677
4687
  }
4678
4688
  ),
4679
- /* @__PURE__ */ d.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ d.jsx(Vn, { children: i.operations.map((a) => /* @__PURE__ */ d.jsx(
4680
- jl,
4689
+ /* @__PURE__ */ d.jsx("div", { className: "operation mb-12", children: /* @__PURE__ */ d.jsx(Qn, { children: l.operations.map((c) => /* @__PURE__ */ d.jsx(
4690
+ Sl,
4681
4691
  {
4682
- operationFragment: a
4692
+ operationFragment: c
4683
4693
  },
4684
- a.slug
4694
+ c.slug
4685
4695
  )) }) })
4686
- ] }, i.name))
4696
+ ] }, l.name))
4687
4697
  ] });
4688
4698
  };
4689
4699
  export {
4690
- Gl as OperationList,
4691
- Sl as OperationsFragment
4700
+ Kl as OperationList,
4701
+ Ol as OperationsFragment
4692
4702
  };
4693
- //# sourceMappingURL=OperationList-BkNQEsNs.js.map
4703
+ //# sourceMappingURL=OperationList-DzE32oyS.js.map