zudoku 0.28.2 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/cli/common/output.js.map +1 -1
  2. package/dist/cli/dev/handler.js +5 -0
  3. package/dist/cli/dev/handler.js.map +1 -1
  4. package/dist/config/validators/common.d.ts +111 -0
  5. package/dist/config/validators/common.js +9 -6
  6. package/dist/config/validators/common.js.map +1 -1
  7. package/dist/config/validators/validate.d.ts +42 -0
  8. package/dist/lib/authentication/state.d.ts +9 -0
  9. package/dist/lib/authentication/state.js +11 -0
  10. package/dist/lib/authentication/state.js.map +1 -1
  11. package/dist/lib/components/Autocomplete.d.ts +4 -3
  12. package/dist/lib/components/Autocomplete.js +2 -2
  13. package/dist/lib/components/Autocomplete.js.map +1 -1
  14. package/dist/lib/components/PathRenderer.js +23 -20
  15. package/dist/lib/components/PathRenderer.js.map +1 -1
  16. package/dist/lib/components/navigation/SidebarItem.js +1 -0
  17. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  18. package/dist/lib/oas/graphql/index.d.ts +7 -0
  19. package/dist/lib/oas/graphql/index.js +7 -6
  20. package/dist/lib/oas/graphql/index.js.map +1 -1
  21. package/dist/lib/plugins/openapi/Endpoint.js +6 -7
  22. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  23. package/dist/lib/plugins/openapi/OperationList.js +11 -7
  24. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  25. package/dist/lib/plugins/openapi/Sidecar.js +4 -4
  26. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  27. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  28. package/dist/lib/plugins/openapi/graphql/gql.js +2 -2
  29. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  30. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +20 -4
  31. package/dist/lib/plugins/openapi/graphql/graphql.js +16 -2
  32. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  33. package/dist/lib/plugins/openapi/index.js +57 -28
  34. package/dist/lib/plugins/openapi/index.js.map +1 -1
  35. package/dist/lib/plugins/openapi/interfaces.d.ts +4 -2
  36. package/dist/lib/plugins/openapi/playground/Headers.d.ts +3 -2
  37. package/dist/lib/plugins/openapi/playground/Headers.js +42 -26
  38. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  39. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +4 -0
  40. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -1
  41. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  42. package/dist/lib/plugins/openapi/playground/PathParams.js +3 -3
  43. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  44. package/dist/lib/plugins/openapi/playground/Playground.d.ts +1 -0
  45. package/dist/lib/plugins/openapi/playground/Playground.js +4 -4
  46. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  47. package/dist/lib/plugins/openapi/playground/QueryParams.js +21 -21
  48. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  49. package/dist/lib/ui/Input.d.ts +1 -2
  50. package/dist/lib/ui/Input.js.map +1 -1
  51. package/dist/lib/util/useScrollToAnchor.js +1 -1
  52. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  53. package/dist/lib/util/useScrollToTop.js +6 -4
  54. package/dist/lib/util/useScrollToTop.js.map +1 -1
  55. package/dist/vite/plugin-api.js +13 -6
  56. package/dist/vite/plugin-api.js.map +1 -1
  57. package/dist/vite/plugin-mdx.js +18 -12
  58. package/dist/vite/plugin-mdx.js.map +1 -1
  59. package/dist/vite/plugin.js.map +1 -1
  60. package/lib/{Markdown-LcMEZ0Sn.js → Markdown-8mv9nhGd.js} +3338 -3360
  61. package/lib/Markdown-8mv9nhGd.js.map +1 -0
  62. package/lib/{MdxPage-DkH3V4hV.js → MdxPage-BalfwlsD.js} +3 -3
  63. package/lib/{MdxPage-DkH3V4hV.js.map → MdxPage-BalfwlsD.js.map} +1 -1
  64. package/lib/{OperationList-wzZNceUl.js → OperationList-B3VX94x4.js} +500 -493
  65. package/lib/OperationList-B3VX94x4.js.map +1 -0
  66. package/lib/{Select-DJkXPPD0.js → Select-BcAbBUmk.js} +2 -2
  67. package/lib/{Select-DJkXPPD0.js.map → Select-BcAbBUmk.js.map} +1 -1
  68. package/lib/{SlotletProvider-D1t2ePCI.js → SlotletProvider-D0mFmGJu.js} +2 -2
  69. package/lib/{SlotletProvider-D1t2ePCI.js.map → SlotletProvider-D0mFmGJu.js.map} +1 -1
  70. package/lib/{createServer-DIztAu7i.js → createServer-E3cXjB0P.js} +4 -6
  71. package/lib/{createServer-DIztAu7i.js.map → createServer-E3cXjB0P.js.map} +1 -1
  72. package/lib/{hook-CiX69UZ6.js → hook-NIpDSpau.js} +2 -2
  73. package/lib/{hook-CiX69UZ6.js.map → hook-NIpDSpau.js.map} +1 -1
  74. package/lib/{index-DrR58fsJ.js → index-P0YUtHIb.js} +802 -745
  75. package/lib/index-P0YUtHIb.js.map +1 -0
  76. package/lib/state-bfQxaDxU.js +211 -0
  77. package/lib/{state-mM7uaXTW.js.map → state-bfQxaDxU.js.map} +1 -1
  78. package/lib/ui/Input.js.map +1 -1
  79. package/lib/{useScrollToAnchor-DYGn1MT9.js → useScrollToAnchor-BVCQSeKB.js} +29 -28
  80. package/lib/{useScrollToAnchor-DYGn1MT9.js.map → useScrollToAnchor-BVCQSeKB.js.map} +1 -1
  81. package/lib/zudoku.auth-auth0.js +1 -1
  82. package/lib/zudoku.auth-clerk.js +1 -1
  83. package/lib/zudoku.auth-openid.js +1 -1
  84. package/lib/zudoku.components.js +348 -347
  85. package/lib/zudoku.components.js.map +1 -1
  86. package/lib/zudoku.plugin-api-catalog.js +2 -2
  87. package/lib/zudoku.plugin-api-keys.js +3 -3
  88. package/lib/zudoku.plugin-custom-pages.js +1 -1
  89. package/lib/zudoku.plugin-markdown.js +1 -1
  90. package/lib/zudoku.plugin-openapi.js +2 -2
  91. package/package.json +2 -1
  92. package/src/app/demo-cdn.html +31 -31
  93. package/src/lib/authentication/state.ts +18 -0
  94. package/src/lib/components/Autocomplete.tsx +6 -4
  95. package/src/lib/components/PathRenderer.tsx +6 -4
  96. package/src/lib/components/navigation/SidebarItem.tsx +1 -0
  97. package/src/lib/oas/graphql/index.ts +10 -9
  98. package/src/lib/plugins/openapi/Endpoint.tsx +11 -9
  99. package/src/lib/plugins/openapi/OperationList.tsx +16 -10
  100. package/src/lib/plugins/openapi/Sidecar.tsx +4 -4
  101. package/src/lib/plugins/openapi/graphql/gql.ts +4 -4
  102. package/src/lib/plugins/openapi/graphql/graphql.ts +30 -6
  103. package/src/lib/plugins/openapi/index.tsx +74 -41
  104. package/src/lib/plugins/openapi/interfaces.ts +5 -10
  105. package/src/lib/plugins/openapi/playground/Headers.tsx +125 -89
  106. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +6 -1
  107. package/src/lib/plugins/openapi/playground/PathParams.tsx +9 -9
  108. package/src/lib/plugins/openapi/playground/Playground.tsx +7 -4
  109. package/src/lib/plugins/openapi/playground/QueryParams.tsx +88 -86
  110. package/src/lib/ui/Input.tsx +1 -2
  111. package/src/lib/util/useScrollToAnchor.ts +1 -1
  112. package/src/lib/util/useScrollToTop.ts +8 -3
  113. package/lib/Markdown-LcMEZ0Sn.js.map +0 -1
  114. package/lib/OperationList-wzZNceUl.js.map +0 -1
  115. package/lib/index-DrR58fsJ.js.map +0 -1
  116. package/lib/state-mM7uaXTW.js +0 -202
@@ -2,16 +2,16 @@ import { j as g } from "./jsx-runtime-Bdg6XQ1m.js";
2
2
  import { u as vr, l as Ro } from "./ZudokuContext-dUyBGMap.js";
3
3
  import { H as qo } from "./index.esm-9-TF9KQB.js";
4
4
  import { b as No, a as ko } from "./chunk-SYFQ2XB5-QijJrSf0.js";
5
- import { S as Eo, a as Ao, b as Io, c as Lo, e as Uo } from "./Select-DJkXPPD0.js";
6
- import { a as br } from "./state-mM7uaXTW.js";
5
+ import { S as Eo, a as Ao, b as Io, c as Lo, e as Uo } from "./Select-BcAbBUmk.js";
6
+ import { a as br } from "./state-bfQxaDxU.js";
7
7
  import { C as Fo } from "./CategoryHeading-MYL1u_6K.js";
8
- import { I as _o, M as Re, H as Be, P as Le } from "./Markdown-LcMEZ0Sn.js";
8
+ import { I as _o, M as Re, H as Be, P as Le } from "./Markdown-8mv9nhGd.js";
9
9
  import { c as le } from "./cn-qaFjX9_3.js";
10
10
  import { ChevronsUpDownIcon as Bo, CheckIcon as Ho, CopyIcon as Mo, UnfoldVerticalIcon as zo, FoldVerticalIcon as Go, ChevronDownIcon as Wo, CircleFadingPlusIcon as Jo, CircleDotIcon as Vo, CircleIcon as Do, SquareMinusIcon as Qo, SquarePlusIcon as Ko, ListPlusIcon as Yo, RefreshCcwDotIcon as Xo } from "lucide-react";
11
11
  import { useContext as Zo, useTransition as eo, useState as ge, useRef as xr, useEffect as $r, useLayoutEffect as ea, useMemo as to, useCallback as ta } from "react";
12
12
  import { Button as ro } from "./ui/Button.js";
13
13
  import { a as ra, u as jr } from "./context-rwLGh-6_.js";
14
- import { g as rt, C as no, a as na, b as oa, c as _r, P as aa, m as oo, d as ia } from "./index-DrR58fsJ.js";
14
+ import { g as rt, C as no, a as na, b as oa, c as _r, P as aa, m as oo, d as ia } from "./index-P0YUtHIb.js";
15
15
  import { Tabs as sa, TabsList as la, TabsTrigger as ca, TabsContent as ua } from "./ui/Tabs.js";
16
16
  import { Card as be, CardHeader as fa, CardTitle as pa, CardContent as da } from "./ui/Card.js";
17
17
  import { c as ha } from "./index-Djenk2Hj.js";
@@ -91,29 +91,31 @@ const wr = (e, ...r) => {
91
91
  }
92
92
  );
93
93
  }, $a = () => {
94
- const { input: e, type: r } = jr(), t = wr(xa, { input: e, type: r }), o = vr(t), [, s] = eo(), { selectedServer: l, setSelectedServer: n } = br(), { servers: a } = o.data.schema;
95
- return a.length === 0 ? null : a.length === 1 ? /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
94
+ const { input: e, type: r } = jr(), t = wr(xa, { input: e, type: r }), o = vr(t), [, s] = eo(), { selectedServer: l, setSelectedServer: n } = br(
95
+ o.data.schema.servers
96
+ ), { servers: a } = o.data.schema;
97
+ if (a.length === 0) return null;
98
+ const i = a.at(0);
99
+ return a.length === 1 ? /* @__PURE__ */ g.jsxs("div", { className: "flex items-center gap-2", children: [
96
100
  /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint:" }),
97
- /* @__PURE__ */ g.jsx(_o, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: a[0].url }),
98
- /* @__PURE__ */ g.jsx(Hr, { url: a[0].url })
101
+ /* @__PURE__ */ g.jsx(_o, { className: "text-xs px-2 py-1.5", selectOnClick: !0, children: i.url }),
102
+ /* @__PURE__ */ g.jsx(Hr, { url: i.url })
99
103
  ] }) : /* @__PURE__ */ g.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
100
104
  /* @__PURE__ */ g.jsx("span", { className: "font-medium text-sm", children: "Endpoint" }),
101
105
  /* @__PURE__ */ g.jsx(
102
106
  et,
103
107
  {
104
108
  className: "font-mono text-xs bg-border/50 dark:bg-border/70 py-1.5 max-w-[450px] truncate",
105
- onChange: (i) => s(() => {
106
- n(i.target.value);
107
- }),
108
- value: l ?? a.at(0).url,
109
+ onChange: (c) => s(() => n(c.target.value)),
110
+ value: l,
109
111
  showChevrons: a.length > 1,
110
- options: a.map((i) => ({
111
- value: i.url,
112
- label: i.url
112
+ options: a.map((c) => ({
113
+ value: c.url,
114
+ label: c.url
113
115
  }))
114
116
  }
115
117
  ),
116
- /* @__PURE__ */ g.jsx(Hr, { url: l ?? a.at(0).url })
118
+ /* @__PURE__ */ g.jsx(Hr, { url: l })
117
119
  ] });
118
120
  }, io = (e, r) => e.reduce(
119
121
  (t, o) => {
@@ -239,15 +241,15 @@ function qa() {
239
241
  const n = [];
240
242
  return function a(i, c, u) {
241
243
  c = c || {}, c.indent = c.indent || " ", u = u || "";
242
- let f;
243
- c.inlineCharacterLimit === void 0 ? f = {
244
+ let p;
245
+ c.inlineCharacterLimit === void 0 ? p = {
244
246
  newLine: `
245
247
  `,
246
248
  newLineOrSpace: `
247
249
  `,
248
250
  pad: u,
249
251
  indent: u + c.indent
250
- } : f = {
252
+ } : p = {
251
253
  newLine: "@@__STRINGIFY_OBJECT_NEW_LINE__@@",
252
254
  newLineOrSpace: "@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
253
255
  pad: "@@__STRINGIFY_OBJECT_PAD__@@",
@@ -256,9 +258,9 @@ function qa() {
256
258
  const h = (y) => {
257
259
  if (c.inlineCharacterLimit === void 0)
258
260
  return y;
259
- const $ = y.replace(new RegExp(f.newLine, "g"), "").replace(new RegExp(f.newLineOrSpace, "g"), " ").replace(new RegExp(f.pad + "|" + f.indent, "g"), "");
260
- return $.length <= c.inlineCharacterLimit ? $ : y.replace(new RegExp(f.newLine + "|" + f.newLineOrSpace, "g"), `
261
- `).replace(new RegExp(f.pad, "g"), u).replace(new RegExp(f.indent, "g"), u + c.indent);
261
+ const x = y.replace(new RegExp(p.newLine, "g"), "").replace(new RegExp(p.newLineOrSpace, "g"), " ").replace(new RegExp(p.pad + "|" + p.indent, "g"), "");
262
+ return x.length <= c.inlineCharacterLimit ? x : y.replace(new RegExp(p.newLine + "|" + p.newLineOrSpace, "g"), `
263
+ `).replace(new RegExp(p.pad, "g"), u).replace(new RegExp(p.indent, "g"), u + c.indent);
262
264
  };
263
265
  if (n.indexOf(i) !== -1)
264
266
  return '"[Circular]"';
@@ -270,24 +272,24 @@ function qa() {
270
272
  if (i.length === 0)
271
273
  return "[]";
272
274
  n.push(i);
273
- const y = "[" + f.newLine + i.map(($, x) => {
274
- const p = i.length - 1 === x ? f.newLine : "," + f.newLineOrSpace;
275
- let m = a($, c, u + c.indent);
276
- return c.transform && (m = c.transform(i, x, m)), f.indent + m + p;
277
- }).join("") + f.pad + "]";
275
+ const y = "[" + p.newLine + i.map((x, $) => {
276
+ const f = i.length - 1 === $ ? p.newLine : "," + p.newLineOrSpace;
277
+ let m = a(x, c, u + c.indent);
278
+ return c.transform && (m = c.transform(i, $, m)), p.indent + m + f;
279
+ }).join("") + p.pad + "]";
278
280
  return n.pop(), h(y);
279
281
  }
280
282
  if (r(i)) {
281
283
  let y = Object.keys(i).concat(t(i));
282
- if (c.filter && (y = y.filter((x) => c.filter(i, x))), y.length === 0)
284
+ if (c.filter && (y = y.filter(($) => c.filter(i, $))), y.length === 0)
283
285
  return "{}";
284
286
  n.push(i);
285
- const $ = "{" + f.newLine + y.map((x, p) => {
286
- const m = y.length - 1 === p ? f.newLine : "," + f.newLineOrSpace, v = typeof x == "symbol", O = !v && /^[a-z$_][a-z$_0-9]*$/i.test(x), T = v || O ? x : a(x, c);
287
- let d = a(i[x], c, u + c.indent);
288
- return c.transform && (d = c.transform(i, x, d)), f.indent + String(T) + ": " + d + m;
289
- }).join("") + f.pad + "}";
290
- return n.pop(), h($);
287
+ const x = "{" + p.newLine + y.map(($, f) => {
288
+ const m = y.length - 1 === f ? p.newLine : "," + p.newLineOrSpace, v = typeof $ == "symbol", O = !v && /^[a-z$_][a-z$_0-9]*$/i.test($), T = v || O ? $ : a($, c);
289
+ let d = a(i[$], c, u + c.indent);
290
+ return c.transform && (d = c.transform(i, $, d)), p.indent + String(T) + ": " + d + m;
291
+ }).join("") + p.pad + "}";
292
+ return n.pop(), h(x);
291
293
  }
292
294
  return i = String(i).replace(/[\r\n]/g, (y) => y === `
293
295
  ` ? "\\n" : "\\r"), c.singleQuotes === !1 ? (i = i.replace(/"/g, '\\"'), `"${i}"`) : (i = i.replace(/\\?'/g, "\\'"), `'${i}'`);
@@ -414,12 +416,12 @@ ${t}`);
414
416
  break;
415
417
  case "multipart/form-data": {
416
418
  if (t.params) {
417
- c.multipart = t.params.map((f) => f.fileName && !f.value ? {
418
- name: f.name,
419
- content: new Ia(f.fileName)
419
+ c.multipart = t.params.map((p) => p.fileName && !p.value ? {
420
+ name: p.name,
421
+ content: new Ia(p.fileName)
420
422
  } : {
421
- name: f.name,
422
- content: f.value
423
+ name: p.name,
424
+ content: p.value
423
425
  });
424
426
  const u = pe(c.headers, "content-type");
425
427
  u && delete c.headers[u];
@@ -440,8 +442,8 @@ ${t}`);
440
442
  `), lo(Kr(c)))
441
443
  n(`(client/${r} "${o}")`);
442
444
  else {
443
- const u = 11 + r.length + o.length, f = Xe(u, yr(Kr(c)));
444
- n(`(client/${r} "${o}" ${f})`);
445
+ const u = 11 + r.length + o.length, p = Xe(u, yr(Kr(c)));
446
+ n(`(client/${r} "${o}" ${p})`);
445
447
  }
446
448
  return a();
447
449
  }
@@ -480,7 +482,7 @@ ${t}`);
480
482
  extname: ".cs"
481
483
  },
482
484
  convert: ({ allHeaders: e, postData: r, method: t, fullUrl: o }, s) => {
483
- var y, $;
485
+ var y, x;
484
486
  const l = {
485
487
  indent: " ",
486
488
  ...s
@@ -489,10 +491,10 @@ ${t}`);
489
491
  let i = "";
490
492
  const c = !!e.cookie, u = Fa(e);
491
493
  (c || u.length) && (i = "clientHandler", n("var clientHandler = new HttpClientHandler"), n("{"), c && n("UseCookies = false,", 1), u.length && n(`AutomaticDecompression = ${u.join(" | ")},`, 1), n("};")), n(`var client = new HttpClient(${i});`), n("var request = new HttpRequestMessage"), n("{");
492
- const f = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
493
- t = t.toUpperCase(), t && f.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, n(`Method = ${t},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
494
- const h = Object.keys(e).filter((x) => {
495
- switch (x.toLowerCase()) {
494
+ const p = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "TRACE"];
495
+ t = t.toUpperCase(), t && p.includes(t) ? t = `HttpMethod.${t[0]}${t.substring(1).toLowerCase()}` : t = `new HttpMethod("${t}")`, n(`Method = ${t},`, 1), n(`RequestUri = new Uri("${o}"),`, 1);
496
+ const h = Object.keys(e).filter(($) => {
497
+ switch ($.toLowerCase()) {
496
498
  case "content-type":
497
499
  case "content-length":
498
500
  case "accept-encoding":
@@ -501,23 +503,23 @@ ${t}`);
501
503
  return !0;
502
504
  }
503
505
  });
504
- if (h.length && (n("Headers =", 1), n("{", 1), h.forEach((x) => {
505
- n(`{ "${x}", "${ce(e[x])}" },`, 2);
506
+ if (h.length && (n("Headers =", 1), n("{", 1), h.forEach(($) => {
507
+ n(`{ "${$}", "${ce(e[$])}" },`, 2);
506
508
  }), n("},", 1)), r.text) {
507
- const x = r.mimeType;
508
- switch (x) {
509
+ const $ = r.mimeType;
510
+ switch ($) {
509
511
  case "application/x-www-form-urlencoded":
510
- n("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), n("{", 1), (y = r.params) == null || y.forEach((p) => {
511
- n(`{ "${p.name}", "${p.value}" },`, 2);
512
+ n("Content = new FormUrlEncodedContent(new Dictionary<string, string>", 1), n("{", 1), (y = r.params) == null || y.forEach((f) => {
513
+ n(`{ "${f.name}", "${f.value}" },`, 2);
512
514
  }), n("}),", 1);
513
515
  break;
514
516
  case "multipart/form-data":
515
- n("Content = new MultipartFormDataContent", 1), n("{", 1), ($ = r.params) == null || $.forEach((p) => {
516
- n(`new StringContent(${JSON.stringify(p.value || "")})`, 2), n("{", 2), n("Headers =", 3), n("{", 3), p.contentType && n(`ContentType = new MediaTypeHeaderValue("${p.contentType}"),`, 4), n('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), n("{", 4), n(`Name = "${p.name}",`, 5), p.fileName && n(`FileName = "${p.fileName}",`, 5), n("}", 4), n("}", 3), n("},", 2);
517
+ n("Content = new MultipartFormDataContent", 1), n("{", 1), (x = r.params) == null || x.forEach((f) => {
518
+ n(`new StringContent(${JSON.stringify(f.value || "")})`, 2), n("{", 2), n("Headers =", 3), n("{", 3), f.contentType && n(`ContentType = new MediaTypeHeaderValue("${f.contentType}"),`, 4), n('ContentDisposition = new ContentDispositionHeaderValue("form-data")', 4), n("{", 4), n(`Name = "${f.name}",`, 5), f.fileName && n(`FileName = "${f.fileName}",`, 5), n("}", 4), n("}", 3), n("},", 2);
517
519
  }), n("},", 1);
518
520
  break;
519
521
  default:
520
- n(`Content = new StringContent(${JSON.stringify(r.text || "")})`, 1), n("{", 1), n("Headers =", 2), n("{", 2), n(`ContentType = new MediaTypeHeaderValue("${x}")`, 3), n("}", 2), n("}", 1);
522
+ n(`Content = new StringContent(${JSON.stringify(r.text || "")})`, 1), n("{", 1), n("Headers =", 2), n("{", 2), n(`ContentType = new MediaTypeHeaderValue("${$}")`, 3), n("}", 2), n("}", 1);
521
523
  break;
522
524
  }
523
525
  }
@@ -552,8 +554,8 @@ var Ha = {
552
554
  return;
553
555
  }
554
556
  n(`request.AddHeader("${u}", "${ce(t[u])}");`);
555
- }), o.forEach(({ name: u, value: f }) => {
556
- n(`request.AddCookie("${u}", "${ce(f)}", "${l.pathname}", "${l.host}");`);
557
+ }), o.forEach(({ name: u, value: p }) => {
558
+ n(`request.AddCookie("${u}", "${ce(p)}", "${l.pathname}", "${l.host}");`);
557
559
  }), s.mimeType) {
558
560
  case "multipart/form-data":
559
561
  if (!s.params) break;
@@ -601,14 +603,14 @@ var Ha = {
601
603
  extname: ".go"
602
604
  },
603
605
  convert: ({ postData: e, method: r, allHeaders: t, fullUrl: o }, s = {}) => {
604
- const { blank: l, push: n, join: a } = new V({ indent: " " }), { showBoilerplate: i = !0, checkErrors: c = !1, printBody: u = !0, timeout: f = -1 } = s, h = c ? "err" : "_", y = i ? 1 : 0, $ = () => {
606
+ const { blank: l, push: n, join: a } = new V({ indent: " " }), { showBoilerplate: i = !0, checkErrors: c = !1, printBody: u = !0, timeout: p = -1 } = s, h = c ? "err" : "_", y = i ? 1 : 0, x = () => {
605
607
  c && (n("if err != nil {", y), n("panic(err)", y + 1), n("}", y));
606
608
  };
607
- i && (n("package main"), l(), n("import ("), n('"fmt"', y), f > 0 && n('"time"', y), e.text && n('"strings"', y), n('"net/http"', y), u && n('"io"', y), n(")"), l(), n("func main() {"), l());
608
- const x = f > 0, p = x, m = p ? "client" : "http.DefaultClient";
609
- return p && (n("client := http.Client{", y), x && n(`Timeout: time.Duration(${f} * time.Second),`, y + 1), n("}", y), l()), n(`url := "${o}"`, y), l(), e.text ? (n(`payload := strings.NewReader(${JSON.stringify(e.text)})`, y), l(), n(`req, ${h} := http.NewRequest("${r}", url, payload)`, y), l()) : (n(`req, ${h} := http.NewRequest("${r}", url, nil)`, y), l()), $(), Object.keys(t).length && (Object.keys(t).forEach((v) => {
609
+ i && (n("package main"), l(), n("import ("), n('"fmt"', y), p > 0 && n('"time"', y), e.text && n('"strings"', y), n('"net/http"', y), u && n('"io"', y), n(")"), l(), n("func main() {"), l());
610
+ const $ = p > 0, f = $, m = f ? "client" : "http.DefaultClient";
611
+ return f && (n("client := http.Client{", y), $ && n(`Timeout: time.Duration(${p} * time.Second),`, y + 1), n("}", y), l()), n(`url := "${o}"`, y), l(), e.text ? (n(`payload := strings.NewReader(${JSON.stringify(e.text)})`, y), l(), n(`req, ${h} := http.NewRequest("${r}", url, payload)`, y), l()) : (n(`req, ${h} := http.NewRequest("${r}", url, nil)`, y), l()), x(), Object.keys(t).length && (Object.keys(t).forEach((v) => {
610
612
  n(`req.Header.Add("${v}", "${ce(t[v])}")`, y);
611
- }), l()), n(`res, ${h} := ${m}.Do(req)`, y), $(), u && (l(), n("defer res.Body.Close()", y), n(`body, ${h} := io.ReadAll(res.Body)`, y), $()), l(), u && n("fmt.Println(string(body))", y), i && (l(), n("}")), a();
613
+ }), l()), n(`res, ${h} := ${m}.Do(req)`, y), x(), u && (l(), n("defer res.Body.Close()", y), n(`body, ${h} := io.ReadAll(res.Body)`, y), x()), l(), u && n("fmt.Println(string(body))", y), i && (l(), n("}")), a();
612
614
  }
613
615
  }, Ga = {
614
616
  info: {
@@ -635,19 +637,19 @@ var Ha = {
635
637
  autoContentLength: !0,
636
638
  autoHost: !0,
637
639
  ...n
638
- }, { blank: i, push: c, join: u } = new V({ indent: "", join: Yr }), f = a.absoluteURI ? r : t.path;
639
- c(`${e} ${f} ${o}`);
640
+ }, { blank: i, push: c, join: u } = new V({ indent: "", join: Yr }), p = a.absoluteURI ? r : t.path;
641
+ c(`${e} ${p} ${o}`);
640
642
  const h = Object.keys(s);
641
- if (h.forEach((x) => {
642
- const p = x.toLowerCase().replace(/(^|-)(\w)/g, (m) => m.toUpperCase());
643
- c(`${p}: ${s[x]}`);
643
+ if (h.forEach(($) => {
644
+ const f = $.toLowerCase().replace(/(^|-)(\w)/g, (m) => m.toUpperCase());
645
+ c(`${f}: ${s[$]}`);
644
646
  }), a.autoHost && !h.includes("host") && c(`Host: ${t.host}`), a.autoContentLength && l.text && !h.includes("content-length")) {
645
- const p = new TextEncoder().encode(l.text).length.toString();
646
- c(`Content-Length: ${p}`);
647
+ const f = new TextEncoder().encode(l.text).length.toString();
648
+ c(`Content-Length: ${f}`);
647
649
  }
648
650
  i();
649
- const y = u(), $ = l.text || "";
650
- return `${y}${Yr}${$}`;
651
+ const y = u(), x = l.text || "";
652
+ return `${y}${Yr}${x}`;
651
653
  }
652
654
  }, Ja = {
653
655
  info: {
@@ -710,8 +712,8 @@ var Ha = {
710
712
  indent: " ",
711
713
  ...s
712
714
  }, { push: n, blank: a, join: i } = new V({ indent: l.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
713
- return n("OkHttpClient client = new OkHttpClient();"), a(), e.text && (e.boundary ? n(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : n(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), n(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), n("Request request = new Request.Builder()"), n(`.url("${t}")`, 1), c.includes(r.toUpperCase()) ? u.includes(r.toUpperCase()) ? e.text ? n(`.${r.toLowerCase()}(body)`, 1) : n(`.${r.toLowerCase()}(null)`, 1) : n(`.${r.toLowerCase()}()`, 1) : e.text ? n(`.method("${r.toUpperCase()}", body)`, 1) : n(`.method("${r.toUpperCase()}", null)`, 1), Object.keys(o).forEach((f) => {
714
- n(`.addHeader("${f}", "${ce(o[f])}")`, 1);
715
+ return n("OkHttpClient client = new OkHttpClient();"), a(), e.text && (e.boundary ? n(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : n(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), n(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), n("Request request = new Request.Builder()"), n(`.url("${t}")`, 1), c.includes(r.toUpperCase()) ? u.includes(r.toUpperCase()) ? e.text ? n(`.${r.toLowerCase()}(body)`, 1) : n(`.${r.toLowerCase()}(null)`, 1) : n(`.${r.toLowerCase()}()`, 1) : e.text ? n(`.method("${r.toUpperCase()}", body)`, 1) : n(`.method("${r.toUpperCase()}", null)`, 1), Object.keys(o).forEach((p) => {
716
+ n(`.addHeader("${p}", "${ce(o[p])}")`, 1);
715
717
  }), n(".build();", 1), a(), n("Response response = client.newCall(request).execute();"), i();
716
718
  }
717
719
  }, Ka = {
@@ -758,30 +760,30 @@ var Ha = {
758
760
  ...l
759
761
  }, { blank: a, push: i, join: c, addPostProcessor: u } = new V({ indent: n.indent });
760
762
  i("import axios from 'axios';"), a();
761
- const f = {
763
+ const p = {
762
764
  method: r,
763
765
  url: t
764
766
  };
765
- switch (Object.keys(o).length && (f.params = o), Object.keys(e).length && (f.headers = e), s.mimeType) {
767
+ switch (Object.keys(o).length && (p.params = o), Object.keys(e).length && (p.headers = e), s.mimeType) {
766
768
  case "application/x-www-form-urlencoded":
767
769
  s.params && (i("const encodedParams = new URLSearchParams();"), s.params.forEach((y) => {
768
770
  i(`encodedParams.set('${y.name}', '${y.value}');`);
769
- }), a(), f.data = "encodedParams,", u((y) => y.replace(/'encodedParams,'/, "encodedParams,")));
771
+ }), a(), p.data = "encodedParams,", u((y) => y.replace(/'encodedParams,'/, "encodedParams,")));
770
772
  break;
771
773
  case "application/json":
772
- s.jsonObj && (f.data = s.jsonObj);
774
+ s.jsonObj && (p.data = s.jsonObj);
773
775
  break;
774
776
  case "multipart/form-data":
775
777
  if (!s.params)
776
778
  break;
777
779
  i("const form = new FormData();"), s.params.forEach((y) => {
778
780
  i(`form.append('${y.name}', '${y.value || y.fileName || ""}');`);
779
- }), a(), f.data = "[form]";
781
+ }), a(), p.data = "[form]";
780
782
  break;
781
783
  default:
782
- s.text && (f.data = s.text);
784
+ s.text && (p.data = s.text);
783
785
  }
784
- const h = fe(f, {
786
+ const h = fe(p, {
785
787
  indent: " ",
786
788
  inlineCharacterLimit: 80
787
789
  }).replace('"[form]"', "form");
@@ -814,8 +816,8 @@ var Ha = {
814
816
  if (!t.params)
815
817
  break;
816
818
  const u = pe(r, "content-type");
817
- u && delete r[u], i("const form = new FormData();"), t.params.forEach((f) => {
818
- i(`form.append('${f.name}', '${f.value || f.fileName || ""}');`);
819
+ u && delete r[u], i("const form = new FormData();"), t.params.forEach((p) => {
820
+ i(`form.append('${p.name}', '${p.value || p.fileName || ""}');`);
819
821
  }), n();
820
822
  break;
821
823
  default:
@@ -828,8 +830,8 @@ var Ha = {
828
830
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult
829
831
  // to read, so we keep the object as a literal and use this transform function to wrap the
830
832
  // literal in a `JSON.stringify` call.
831
- transform: (u, f, h) => {
832
- if (f === "body") {
833
+ transform: (u, p, h) => {
834
+ if (p === "body") {
833
835
  if (t.mimeType === "application/x-www-form-urlencoded")
834
836
  return `new URLSearchParams(${h})`;
835
837
  if (t.mimeType === "application/json")
@@ -849,7 +851,7 @@ var Ha = {
849
851
  extname: ".js"
850
852
  },
851
853
  convert: ({ fullUrl: e, method: r, allHeaders: t, postData: o }, s) => {
852
- var f;
854
+ var p;
853
855
  const l = {
854
856
  indent: " ",
855
857
  ...s
@@ -872,7 +874,7 @@ var Ha = {
872
874
  break;
873
875
  if (a("const form = new FormData();"), o.params.forEach((h) => {
874
876
  a(`form.append('${h.name}', '${h.value || h.fileName || ""}');`);
875
- }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", nt(t, "content-type") && (f = ve(t, "content-type")) != null && f.includes("boundary")) {
877
+ }), c.processData = !1, c.contentType = !1, c.mimeType = "multipart/form-data", c.data = "[form]", nt(t, "content-type") && (p = ve(t, "content-type")) != null && p.includes("boundary")) {
876
878
  const h = pe(t, "content-type");
877
879
  h && delete c.headers[h];
878
880
  }
@@ -993,8 +995,8 @@ var Ha = {
993
995
  indent: " ",
994
996
  ...s
995
997
  }, { blank: n, join: a, push: i } = new V({ indent: l.indent }), c = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
996
- return i("val client = OkHttpClient()"), n(), e.text && (e.boundary ? i(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : i(`val mediaType = MediaType.parse("${e.mimeType}")`), i(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), i("val request = Request.Builder()"), i(`.url("${r}")`, 1), c.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e.text ? i(`.${t.toLowerCase()}(body)`, 1) : i(`.${t.toLowerCase()}(null)`, 1) : i(`.${t.toLowerCase()}()`, 1) : e.text ? i(`.method("${t.toUpperCase()}", body)`, 1) : i(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(o).forEach((f) => {
997
- i(`.addHeader("${f}", "${ce(o[f])}")`, 1);
998
+ return i("val client = OkHttpClient()"), n(), e.text && (e.boundary ? i(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`) : i(`val mediaType = MediaType.parse("${e.mimeType}")`), i(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)), i("val request = Request.Builder()"), i(`.url("${r}")`, 1), c.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e.text ? i(`.${t.toLowerCase()}(body)`, 1) : i(`.${t.toLowerCase()}(null)`, 1) : i(`.${t.toLowerCase()}()`, 1) : e.text ? i(`.method("${t.toUpperCase()}", body)`, 1) : i(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(o).forEach((p) => {
999
+ i(`.addHeader("${p}", "${ce(o[p])}")`, 1);
998
1000
  }), i(".build()", 1), n(), i("val response = client.newCall(request).execute()"), a();
999
1001
  }
1000
1002
  }, ii = {
@@ -1037,8 +1039,8 @@ var Ha = {
1037
1039
  default:
1038
1040
  n(), o.text && (u.data = o.text);
1039
1041
  }
1040
- const f = fe(u, { indent: " ", inlineCharacterLimit: 80 });
1041
- return i(`const options = ${f};`), n(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), a();
1042
+ const p = fe(u, { indent: " ", inlineCharacterLimit: 80 });
1043
+ return i(`const options = ${p};`), n(), i("axios"), i(".request(options)", 1), i(".then(function (response) {", 1), i("console.log(response.data);", 2), i("})", 1), i(".catch(function (error) {", 1), i("console.error(error);", 2), i("});", 1), a();
1042
1044
  }
1043
1045
  }, li = {
1044
1046
  info: {
@@ -1050,20 +1052,20 @@ var Ha = {
1050
1052
  installation: "npm install node-fetch@2 --save"
1051
1053
  },
1052
1054
  convert: ({ method: e, fullUrl: r, postData: t, headersObj: o, cookies: s }, l) => {
1053
- var x;
1055
+ var $;
1054
1056
  const n = {
1055
1057
  indent: " ",
1056
1058
  ...l
1057
1059
  };
1058
1060
  let a = !1;
1059
- const { blank: i, push: c, join: u, unshift: f } = new V({ indent: n.indent });
1061
+ const { blank: i, push: c, join: u, unshift: p } = new V({ indent: n.indent });
1060
1062
  c("const fetch = require('node-fetch');");
1061
1063
  const h = r, y = {
1062
1064
  method: e
1063
1065
  };
1064
1066
  switch (Object.keys(o).length && (y.headers = o), t.mimeType) {
1065
1067
  case "application/x-www-form-urlencoded":
1066
- f("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), i(), (x = t.params) == null || x.forEach((m) => {
1068
+ p("const { URLSearchParams } = require('url');"), c("const encodedParams = new URLSearchParams();"), i(), ($ = t.params) == null || $.forEach((m) => {
1067
1069
  c(`encodedParams.set('${m.name}', '${m.value}');`);
1068
1070
  }), y.body = "encodedParams";
1069
1071
  break;
@@ -1073,8 +1075,8 @@ var Ha = {
1073
1075
  case "multipart/form-data":
1074
1076
  if (!t.params)
1075
1077
  break;
1076
- const p = pe(o, "content-type");
1077
- p && delete o[p], f("const FormData = require('form-data');"), c("const formData = new FormData();"), i(), t.params.forEach((m) => {
1078
+ const f = pe(o, "content-type");
1079
+ f && delete o[f], p("const FormData = require('form-data');"), c("const formData = new FormData();"), i(), t.params.forEach((m) => {
1078
1080
  if (!m.fileName && !m.fileName && !m.contentType) {
1079
1081
  c(`formData.append('${m.name}', '${m.value}');`);
1080
1082
  return;
@@ -1086,19 +1088,19 @@ var Ha = {
1086
1088
  t.text && (y.body = t.text);
1087
1089
  }
1088
1090
  if (s.length) {
1089
- const p = s.map(({ name: m, value: v }) => `${encodeURIComponent(m)}=${encodeURIComponent(v)}`).join("; ");
1090
- y.headers || (y.headers = {}), y.headers.cookie = p;
1091
+ const f = s.map(({ name: m, value: v }) => `${encodeURIComponent(m)}=${encodeURIComponent(v)}`).join("; ");
1092
+ y.headers || (y.headers = {}), y.headers.cookie = f;
1091
1093
  }
1092
1094
  i(), c(`const url = '${h}';`), y.headers && !Object.keys(y.headers).length && delete y.headers;
1093
- const $ = fe(y, {
1095
+ const x = fe(y, {
1094
1096
  indent: " ",
1095
1097
  inlineCharacterLimit: 80,
1096
1098
  // The Fetch API body only accepts string parameters, but stringified JSON can be difficult to
1097
1099
  // read, so we keep the object as a literal and use this transform function to wrap the literal
1098
1100
  // in a `JSON.stringify` call.
1099
- transform: (p, m, v) => m === "body" && t.mimeType === "application/json" ? `JSON.stringify(${v})` : v
1101
+ transform: (f, m, v) => m === "body" && t.mimeType === "application/json" ? `JSON.stringify(${v})` : v
1100
1102
  });
1101
- return c(`const options = ${$};`), i(), a && f("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), i()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1103
+ return c(`const options = ${x};`), i(), a && p("const fs = require('fs');"), t.params && t.mimeType === "multipart/form-data" && (c("options.body = formData;"), i()), c("fetch(url, options)"), c(".then(res => res.json())", 1), c(".then(json => console.log(json))", 1), c(".catch(err => console.error('error:' + err));", 1), u().replace(/'encodedParams'/, "encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/, 'fs.createReadStream("$1")');
1102
1104
  }
1103
1105
  }, ci = {
1104
1106
  info: {
@@ -1109,7 +1111,7 @@ var Ha = {
1109
1111
  extname: ".cjs"
1110
1112
  },
1111
1113
  convert: ({ uriObj: e, method: r, allHeaders: t, postData: o }, s = {}) => {
1112
- var f;
1114
+ var p;
1113
1115
  const { indent: l = " " } = s, { blank: n, join: a, push: i, unshift: c } = new V({ indent: l }), u = {
1114
1116
  method: r,
1115
1117
  hostname: e.hostname,
@@ -1117,7 +1119,7 @@ var Ha = {
1117
1119
  path: e.path,
1118
1120
  headers: t
1119
1121
  };
1120
- switch (i(`const http = require('${(f = e.protocol) == null ? void 0 : f.replace(":", "")}');`), n(), i(`const options = ${fe(u, { indent: l })};`), n(), i("const req = http.request(options, function (res) {"), i("const chunks = [];", 1), n(), i("res.on('data', function (chunk) {", 1), i("chunks.push(chunk);", 2), i("});", 1), n(), i("res.on('end', function () {", 1), i("const body = Buffer.concat(chunks);", 2), i("console.log(body.toString());", 2), i("});", 1), i("});"), n(), o.mimeType) {
1122
+ switch (i(`const http = require('${(p = e.protocol) == null ? void 0 : p.replace(":", "")}');`), n(), i(`const options = ${fe(u, { indent: l })};`), n(), i("const req = http.request(options, function (res) {"), i("const chunks = [];", 1), n(), i("res.on('data', function (chunk) {", 1), i("chunks.push(chunk);", 2), i("});", 1), n(), i("res.on('end', function () {", 1), i("const body = Buffer.concat(chunks);", 2), i("console.log(body.toString());", 2), i("});", 1), i("});"), n(), o.mimeType) {
1121
1123
  case "application/x-www-form-urlencoded":
1122
1124
  o.paramsObj && (c("const qs = require('querystring');"), i(
1123
1125
  `req.write(qs.stringify(${fe(o.paramsObj, {
@@ -1154,43 +1156,43 @@ var Ha = {
1154
1156
  ...n
1155
1157
  };
1156
1158
  let i = !1;
1157
- const { push: c, blank: u, join: f, unshift: h, addPostProcessor: y } = new V({ indent: a.indent });
1159
+ const { push: c, blank: u, join: p, unshift: h, addPostProcessor: y } = new V({ indent: a.indent });
1158
1160
  c("const request = require('request');"), u();
1159
- const $ = {
1161
+ const x = {
1160
1162
  method: e,
1161
1163
  url: t
1162
1164
  };
1163
- switch (Object.keys(s).length && ($.headers = s), o.mimeType) {
1165
+ switch (Object.keys(s).length && (x.headers = s), o.mimeType) {
1164
1166
  case "application/x-www-form-urlencoded":
1165
- $.form = o.paramsObj;
1167
+ x.form = o.paramsObj;
1166
1168
  break;
1167
1169
  case "application/json":
1168
- o.jsonObj && ($.body = o.jsonObj, $.json = !0);
1170
+ o.jsonObj && (x.body = o.jsonObj, x.json = !0);
1169
1171
  break;
1170
1172
  case "multipart/form-data":
1171
1173
  if (!o.params)
1172
1174
  break;
1173
- $.formData = {}, o.params.forEach((x) => {
1174
- if (!x.fileName && !x.fileName && !x.contentType) {
1175
- $.formData[x.name] = x.value;
1175
+ x.formData = {}, o.params.forEach(($) => {
1176
+ if (!$.fileName && !$.fileName && !$.contentType) {
1177
+ x.formData[$.name] = $.value;
1176
1178
  return;
1177
1179
  }
1178
- let p = {};
1179
- x.fileName ? (i = !0, p = {
1180
- value: `fs.createReadStream(${x.fileName})`,
1180
+ let f = {};
1181
+ $.fileName ? (i = !0, f = {
1182
+ value: `fs.createReadStream(${$.fileName})`,
1181
1183
  options: {
1182
- filename: x.fileName,
1183
- contentType: x.contentType ? x.contentType : null
1184
+ filename: $.fileName,
1185
+ contentType: $.contentType ? $.contentType : null
1184
1186
  }
1185
- }) : x.value && (p.value = x.value), $.formData[x.name] = p;
1186
- }), y((x) => x.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
1187
+ }) : $.value && (f.value = $.value), x.formData[$.name] = f;
1188
+ }), y(($) => $.replace(/'fs\.createReadStream\((.*)\)'/, "fs.createReadStream('$1')"));
1187
1189
  break;
1188
1190
  default:
1189
- o.text && ($.body = o.text);
1191
+ o.text && (x.body = o.text);
1190
1192
  }
1191
- return l.length && ($.jar = "JAR", c("const jar = request.jar();"), l.forEach(({ name: x, value: p }) => {
1192
- c(`jar.setCookie(request.cookie('${encodeURIComponent(x)}=${encodeURIComponent(p)}'), '${r}');`);
1193
- }), u(), y((x) => x.replace(/'JAR'/, "jar"))), i && h("const fs = require('fs');"), c(`const options = ${fe($, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), f();
1193
+ return l.length && (x.jar = "JAR", c("const jar = request.jar();"), l.forEach(({ name: $, value: f }) => {
1194
+ c(`jar.setCookie(request.cookie('${encodeURIComponent($)}=${encodeURIComponent(f)}'), '${r}');`);
1195
+ }), u(), y(($) => $.replace(/'JAR'/, "jar"))), i && h("const fs = require('fs');"), c(`const options = ${fe(x, { indent: " ", inlineCharacterLimit: 80 })};`), u(), c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);", 1), u(), c("console.log(body);", 1), c("});"), p();
1194
1196
  }
1195
1197
  }, fi = {
1196
1198
  info: {
@@ -1206,11 +1208,11 @@ var Ha = {
1206
1208
  ...n
1207
1209
  };
1208
1210
  let i = !1;
1209
- const { addPostProcessor: c, blank: u, join: f, push: h, unshift: y } = new V({
1211
+ const { addPostProcessor: c, blank: u, join: p, push: h, unshift: y } = new V({
1210
1212
  indent: a.indent
1211
1213
  });
1212
- switch (h("const unirest = require('unirest');"), u(), h(`const req = unirest('${e}', '${r}');`), u(), t.length && (h("const CookieJar = unirest.jar();"), t.forEach(($) => {
1213
- h(`CookieJar.add('${encodeURIComponent($.name)}=${encodeURIComponent($.value)}', '${r}');`);
1214
+ switch (h("const unirest = require('unirest');"), u(), h(`const req = unirest('${e}', '${r}');`), u(), t.length && (h("const CookieJar = unirest.jar();"), t.forEach((x) => {
1215
+ h(`CookieJar.add('${encodeURIComponent(x.name)}=${encodeURIComponent(x.value)}', '${r}');`);
1214
1216
  }), h("req.jar(CookieJar);"), u()), Object.keys(o).length && (h(`req.query(${fe(o, { indent: a.indent })});`), u()), Object.keys(l).length && (h(`req.headers(${fe(l, { indent: a.indent })});`), u()), s.mimeType) {
1215
1217
  case "application/x-www-form-urlencoded":
1216
1218
  s.paramsObj && (h(`req.form(${fe(s.paramsObj, { indent: a.indent })});`), u());
@@ -1221,17 +1223,17 @@ var Ha = {
1221
1223
  case "multipart/form-data": {
1222
1224
  if (!s.params)
1223
1225
  break;
1224
- const $ = [];
1225
- s.params.forEach((x) => {
1226
- const p = {};
1227
- x.fileName && !x.value ? (i = !0, p.body = `fs.createReadStream('${x.fileName}')`, c((m) => m.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : x.value && (p.body = x.value), p.body && (x.contentType && (p["content-type"] = x.contentType), $.push(p));
1228
- }), h(`req.multipart(${fe($, { indent: a.indent })});`), u();
1226
+ const x = [];
1227
+ s.params.forEach(($) => {
1228
+ const f = {};
1229
+ $.fileName && !$.value ? (i = !0, f.body = `fs.createReadStream('${$.fileName}')`, c((m) => m.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/, "fs.createReadStream('$1')"))) : $.value && (f.body = $.value), f.body && ($.contentType && (f["content-type"] = $.contentType), x.push(f));
1230
+ }), h(`req.multipart(${fe(x, { indent: a.indent })});`), u();
1229
1231
  break;
1230
1232
  }
1231
1233
  default:
1232
1234
  s.text && (h(`req.send(${fe(s.text, { indent: a.indent })});`), u());
1233
1235
  }
1234
- return i && y("const fs = require('fs');"), h("req.end(function (res) {"), h("if (res.error) throw new Error(res.error);", 1), u(), h("console.log(res.body);", 1), h("});"), f();
1236
+ return i && y("const fs = require('fs');"), h("req.end(function (res) {"), h("if (res.error) throw new Error(res.error);", 1), u(), h("console.log(res.body);", 1), h("});"), p();
1235
1237
  }
1236
1238
  }, pi = {
1237
1239
  info: {
@@ -1293,11 +1295,11 @@ var Ha = {
1293
1295
  case "application/x-www-form-urlencoded":
1294
1296
  if ((u = r.params) != null && u.length) {
1295
1297
  i();
1296
- const [f, ...h] = r.params;
1298
+ const [p, ...h] = r.params;
1297
1299
  n(
1298
- `NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${f.name}=${f.value}" dataUsingEncoding:NSUTF8StringEncoding]];`
1299
- ), h.forEach(({ name: y, value: $ }) => {
1300
- n(`[postData appendData:[@"&${y}=${$}" dataUsingEncoding:NSUTF8StringEncoding]];`);
1300
+ `NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${p.name}=${p.value}" dataUsingEncoding:NSUTF8StringEncoding]];`
1301
+ ), h.forEach(({ name: y, value: x }) => {
1302
+ n(`[postData appendData:[@"&${y}=${x}" dataUsingEncoding:NSUTF8StringEncoding]];`);
1301
1303
  });
1302
1304
  } else
1303
1305
  c.hasBody = !1;
@@ -1355,11 +1357,11 @@ var Ha = {
1355
1357
  `let headers = Header.add (Header.init ()) "${u[0]}" "${ce(
1356
1358
  r[u[0]]
1357
1359
  )}" in`
1358
- ) : u.length > 1 && (a("let headers = Header.add_list (Header.init ()) ["), u.forEach(($) => {
1359
- a(`("${$}", "${ce(r[$])}");`, 1);
1360
+ ) : u.length > 1 && (a("let headers = Header.add_list (Header.init ()) ["), u.forEach((x) => {
1361
+ a(`("${x}", "${ce(r[x])}");`, 1);
1360
1362
  }), a("] in")), t.text && a(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(t.text)} in`), i();
1361
- const f = u.length ? "~headers " : "", h = t.text ? "~body " : "", y = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1362
- return a(`Client.call ${f}${h}${y} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), c();
1363
+ const p = u.length ? "~headers " : "", h = t.text ? "~body " : "", y = n.includes(o.toLowerCase()) ? `\`${o.toUpperCase()}` : `(Code.method_of_string "${o}")`;
1364
+ return a(`Client.call ${p}${h}${y} uri`), a(">>= fun (res, body_stream) ->"), a("(* Do stuff with the result *)", 1), c();
1363
1365
  }
1364
1366
  }, mi = {
1365
1367
  info: {
@@ -1442,12 +1444,12 @@ ${t}]`;
1442
1444
  closingTag: i = !1,
1443
1445
  indent: c = " ",
1444
1446
  maxRedirects: u = 10,
1445
- namedErrors: f = !1,
1447
+ namedErrors: p = !1,
1446
1448
  noTags: h = !1,
1447
1449
  shortTags: y = !1,
1448
- timeout: $ = 30
1449
- } = a, { push: x, blank: p, join: m } = new V({ indent: c });
1450
- h || (x(y ? "<?" : "<?php"), p()), x("$curl = curl_init();"), p();
1450
+ timeout: x = 30
1451
+ } = a, { push: $, blank: f, join: m } = new V({ indent: c });
1452
+ h || ($(y ? "<?" : "<?php"), f()), $("$curl = curl_init();"), f();
1451
1453
  const v = [
1452
1454
  {
1453
1455
  escape: !0,
@@ -1477,7 +1479,7 @@ ${t}]`;
1477
1479
  {
1478
1480
  escape: !1,
1479
1481
  name: "CURLOPT_TIMEOUT",
1480
- value: $
1482
+ value: x
1481
1483
  },
1482
1484
  {
1483
1485
  escape: !1,
@@ -1495,7 +1497,7 @@ ${t}]`;
1495
1497
  value: r ? r.jsonObj ? `json_encode(${te(r.jsonObj, c.repeat(2), c)})` : r.text : void 0
1496
1498
  }
1497
1499
  ];
1498
- x("curl_setopt_array($curl, [");
1500
+ $("curl_setopt_array($curl, [");
1499
1501
  const O = new V({ indent: c, join: `
1500
1502
  ${c}` });
1501
1503
  v.forEach(({ value: S, name: b, escape: q }) => {
@@ -1505,7 +1507,7 @@ ${c}` });
1505
1507
  T.length && O.push(`CURLOPT_COOKIE => "${T.join("; ")}",`);
1506
1508
  const d = Object.keys(n).sort().map((S) => `"${S}: ${ce(n[S])}"`);
1507
1509
  return d.length && (O.push("CURLOPT_HTTPHEADER => ["), O.push(d.join(`,
1508
- ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = curl_exec($curl);"), x("$err = curl_error($curl);"), p(), x("curl_close($curl);"), p(), x("if ($err) {"), x(f ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), x("} else {"), x("echo $response;", 1), x("}"), !h && i && (p(), x("?>")), m();
1510
+ ${c}${c}`), 1), O.push("],")), $(O.join(), 1), $("]);"), f(), $("$response = curl_exec($curl);"), $("$err = curl_error($curl);"), f(), $("curl_close($curl);"), f(), $("if ($err) {"), $(p ? 'echo array_flip(get_defined_constants(true)["curl"])[$err];' : 'echo "cURL Error #:" . $err;', 1), $("} else {"), $("echo $response;", 1), $("}"), !h && i && (f(), $("?>")), m();
1509
1511
  }
1510
1512
  }, vi = {
1511
1513
  info: {
@@ -1517,20 +1519,20 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1517
1519
  installation: "composer require guzzlehttp/guzzle"
1518
1520
  },
1519
1521
  convert: ({ postData: e, fullUrl: r, method: t, cookies: o, headersObj: s }, l) => {
1520
- var x;
1522
+ var $;
1521
1523
  const n = {
1522
1524
  closingTag: !1,
1523
1525
  indent: " ",
1524
1526
  noTags: !1,
1525
1527
  shortTags: !1,
1526
1528
  ...l
1527
- }, { push: a, blank: i, join: c } = new V({ indent: n.indent }), { code: u, push: f, join: h } = new V({ indent: n.indent });
1529
+ }, { push: a, blank: i, join: c } = new V({ indent: n.indent }), { code: u, push: p, join: h } = new V({ indent: n.indent });
1528
1530
  switch (n.noTags || a(n.shortTags ? "<?" : "<?php"), a("require_once('vendor/autoload.php');"), i(), e.mimeType) {
1529
1531
  case "application/x-www-form-urlencoded":
1530
- f(`'form_params' => ${te(e.paramsObj, n.indent + n.indent, n.indent)},`, 1);
1532
+ p(`'form_params' => ${te(e.paramsObj, n.indent + n.indent, n.indent)},`, 1);
1531
1533
  break;
1532
1534
  case "multipart/form-data": {
1533
- const p = [];
1535
+ const f = [];
1534
1536
  if (e.params && e.params.forEach((m) => {
1535
1537
  if (m.fileName) {
1536
1538
  const v = {
@@ -1538,25 +1540,25 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1538
1540
  filename: m.fileName,
1539
1541
  contents: m.value
1540
1542
  };
1541
- m.contentType && (v.headers = { "Content-Type": m.contentType }), p.push(v);
1542
- } else m.value && p.push({
1543
+ m.contentType && (v.headers = { "Content-Type": m.contentType }), f.push(v);
1544
+ } else m.value && f.push({
1543
1545
  name: m.name,
1544
1546
  contents: m.value
1545
1547
  });
1546
- }), p.length && (f(`'multipart' => ${te(p, n.indent + n.indent, n.indent)}`, 1), nt(s, "content-type") && (x = ve(s, "content-type")) != null && x.indexOf("boundary"))) {
1548
+ }), f.length && (p(`'multipart' => ${te(f, n.indent + n.indent, n.indent)}`, 1), nt(s, "content-type") && ($ = ve(s, "content-type")) != null && $.indexOf("boundary"))) {
1547
1549
  const m = pe(s, "content-type");
1548
1550
  m && delete s[m];
1549
1551
  }
1550
1552
  break;
1551
1553
  }
1552
1554
  default:
1553
- e.text && f(`'body' => ${te(e.text)},`, 1);
1555
+ e.text && p(`'body' => ${te(e.text)},`, 1);
1554
1556
  }
1555
- const y = Object.keys(s).sort().map(function(p) {
1556
- return `${n.indent}${n.indent}'${p}' => '${ze(s[p])}',`;
1557
- }), $ = o.map((p) => `${encodeURIComponent(p.name)}=${encodeURIComponent(p.value)}`).join("; ");
1558
- return $.length && y.push(`${n.indent}${n.indent}'cookie' => '${ze($)}',`), y.length && (f("'headers' => [", 1), f(y.join(`
1559
- `)), f("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), i(), u.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(h()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), i(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (i(), a("?>")), c();
1557
+ const y = Object.keys(s).sort().map(function(f) {
1558
+ return `${n.indent}${n.indent}'${f}' => '${ze(s[f])}',`;
1559
+ }), x = o.map((f) => `${encodeURIComponent(f.name)}=${encodeURIComponent(f.value)}`).join("; ");
1560
+ return x.length && y.push(`${n.indent}${n.indent}'cookie' => '${ze(x)}',`), y.length && (p("'headers' => [", 1), p(y.join(`
1561
+ `)), p("],", 1)), a("$client = new \\GuzzleHttp\\Client();"), i(), u.length ? (a(`$response = $client->request('${t}', '${r}', [`), a(h()), a("]);")) : a(`$response = $client->request('${t}', '${r}');`), i(), a("echo $response->getBody();"), !n.noTags && n.closingTag && (i(), a("?>")), c();
1560
1562
  }
1561
1563
  }, bi = {
1562
1564
  info: {
@@ -1567,18 +1569,18 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1567
1569
  extname: ".php"
1568
1570
  },
1569
1571
  convert: ({ method: e, url: r, postData: t, queryObj: o, headersObj: s, cookiesObj: l }, n = {}) => {
1570
- const { closingTag: a = !1, indent: i = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: h, join: y } = new V({ indent: i });
1571
- switch (c || (f(u ? "<?" : "<?php"), h()), Xr.includes(e.toUpperCase()) || f(`HttpRequest::methodRegister('${e}');`), f("$request = new HttpRequest();"), f(`$request->setUrl(${te(r)});`), Xr.includes(e.toUpperCase()) ? f(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : f(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), h(), Object.keys(o).length && (f(`$request->setQueryData(${te(o, i)});`), h()), Object.keys(s).length && (f(`$request->setHeaders(${te(s, i)});`), h()), Object.keys(l).length && (f(`$request->setCookies(${te(l, i)});`), h()), t.mimeType) {
1572
+ const { closingTag: a = !1, indent: i = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: p, blank: h, join: y } = new V({ indent: i });
1573
+ switch (c || (p(u ? "<?" : "<?php"), h()), Xr.includes(e.toUpperCase()) || p(`HttpRequest::methodRegister('${e}');`), p("$request = new HttpRequest();"), p(`$request->setUrl(${te(r)});`), Xr.includes(e.toUpperCase()) ? p(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`) : p(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), h(), Object.keys(o).length && (p(`$request->setQueryData(${te(o, i)});`), h()), Object.keys(s).length && (p(`$request->setHeaders(${te(s, i)});`), h()), Object.keys(l).length && (p(`$request->setCookies(${te(l, i)});`), h()), t.mimeType) {
1572
1574
  case "application/x-www-form-urlencoded":
1573
- f(`$request->setContentType(${te(t.mimeType)});`), f(`$request->setPostFields(${te(t.paramsObj, i)});`), h();
1575
+ p(`$request->setContentType(${te(t.mimeType)});`), p(`$request->setPostFields(${te(t.paramsObj, i)});`), h();
1574
1576
  break;
1575
1577
  case "application/json":
1576
- f(`$request->setContentType(${te(t.mimeType)});`), f(`$request->setBody(json_encode(${te(t.jsonObj, i)}));`), h();
1578
+ p(`$request->setContentType(${te(t.mimeType)});`), p(`$request->setBody(json_encode(${te(t.jsonObj, i)}));`), h();
1577
1579
  break;
1578
1580
  default:
1579
- t.text && (f(`$request->setBody(${te(t.text)});`), h());
1581
+ t.text && (p(`$request->setBody(${te(t.text)});`), h());
1580
1582
  }
1581
- return f("try {"), f("$response = $request->send();", 1), h(), f("echo $response->getBody();", 1), f("} catch (HttpException $ex) {"), f("echo $ex;", 1), f("}"), !c && a && (h(), f("?>")), y();
1583
+ return p("try {"), p("$response = $request->send();", 1), h(), p("echo $response->getBody();", 1), p("} catch (HttpException $ex) {"), p("echo $ex;", 1), p("}"), !c && a && (h(), p("?>")), y();
1582
1584
  }
1583
1585
  }, xi = {
1584
1586
  info: {
@@ -1589,20 +1591,20 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1589
1591
  extname: ".php"
1590
1592
  },
1591
1593
  convert: ({ postData: e, headersObj: r, method: t, queryObj: o, cookiesObj: s, url: l }, n = {}) => {
1592
- var x;
1593
- const { closingTag: a = !1, indent: i = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: f, blank: h, join: y } = new V({ indent: i });
1594
- let $ = !1;
1595
- switch (c || (f(u ? "<?" : "<?php"), h()), f("$client = new http\\Client;"), f("$request = new http\\Client\\Request;"), h(), e.mimeType) {
1594
+ var $;
1595
+ const { closingTag: a = !1, indent: i = " ", noTags: c = !1, shortTags: u = !1 } = n, { push: p, blank: h, join: y } = new V({ indent: i });
1596
+ let x = !1;
1597
+ switch (c || (p(u ? "<?" : "<?php"), h()), p("$client = new http\\Client;"), p("$request = new http\\Client\\Request;"), h(), e.mimeType) {
1596
1598
  case "application/x-www-form-urlencoded":
1597
- f("$body = new http\\Message\\Body;"), f(`$body->append(new http\\QueryString(${te(e.paramsObj, i)}));`), h(), $ = !0;
1599
+ p("$body = new http\\Message\\Body;"), p(`$body->append(new http\\QueryString(${te(e.paramsObj, i)}));`), h(), x = !0;
1598
1600
  break;
1599
1601
  case "multipart/form-data": {
1600
1602
  if (!e.params)
1601
1603
  break;
1602
- const p = [], m = {};
1604
+ const f = [], m = {};
1603
1605
  e.params.forEach(({ name: T, fileName: d, value: S, contentType: b }) => {
1604
1606
  if (d) {
1605
- p.push({
1607
+ f.push({
1606
1608
  name: T,
1607
1609
  type: b,
1608
1610
  file: d,
@@ -1612,21 +1614,21 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1612
1614
  }
1613
1615
  S && (m[T] = S);
1614
1616
  });
1615
- const v = Object.keys(m).length ? te(m, i) : "null", O = p.length ? te(p, i) : "null";
1616
- if (f("$body = new http\\Message\\Body;"), f(`$body->addForm(${v}, ${O});`), nt(r, "content-type") && (x = ve(r, "content-type")) != null && x.indexOf("boundary")) {
1617
+ const v = Object.keys(m).length ? te(m, i) : "null", O = f.length ? te(f, i) : "null";
1618
+ if (p("$body = new http\\Message\\Body;"), p(`$body->addForm(${v}, ${O});`), nt(r, "content-type") && ($ = ve(r, "content-type")) != null && $.indexOf("boundary")) {
1617
1619
  const T = pe(r, "content-type");
1618
1620
  T && delete r[T];
1619
1621
  }
1620
- h(), $ = !0;
1622
+ h(), x = !0;
1621
1623
  break;
1622
1624
  }
1623
1625
  case "application/json":
1624
- f("$body = new http\\Message\\Body;"), f(`$body->append(json_encode(${te(e.jsonObj, i)}));`), $ = !0;
1626
+ p("$body = new http\\Message\\Body;"), p(`$body->append(json_encode(${te(e.jsonObj, i)}));`), x = !0;
1625
1627
  break;
1626
1628
  default:
1627
- e.text && (f("$body = new http\\Message\\Body;"), f(`$body->append(${te(e.text)});`), h(), $ = !0);
1629
+ e.text && (p("$body = new http\\Message\\Body;"), p(`$body->append(${te(e.text)});`), h(), x = !0);
1628
1630
  }
1629
- return f(`$request->setRequestUrl(${te(l)});`), f(`$request->setRequestMethod(${te(t)});`), $ && (f("$request->setBody($body);"), h()), Object.keys(o).length && (f(`$request->setQuery(new http\\QueryString(${te(o, i)}));`), h()), Object.keys(r).length && (f(`$request->setHeaders(${te(r, i)});`), h()), Object.keys(s).length && (h(), f(`$client->setCookies(${te(s, i)});`), h()), f("$client->enqueue($request)->send();"), f("$response = $client->getResponse();"), h(), f("echo $response->getBody();"), !c && a && (h(), f("?>")), y();
1631
+ return p(`$request->setRequestUrl(${te(l)});`), p(`$request->setRequestMethod(${te(t)});`), x && (p("$request->setBody($body);"), h()), Object.keys(o).length && (p(`$request->setQuery(new http\\QueryString(${te(o, i)}));`), h()), Object.keys(r).length && (p(`$request->setHeaders(${te(r, i)});`), h()), Object.keys(s).length && (h(), p(`$client->setCookies(${te(s, i)});`), h()), p("$client->enqueue($request)->send();"), p("$response = $client->getResponse();"), h(), p("echo $response->getBody();"), !c && a && (h(), p("?>")), y();
1630
1632
  }
1631
1633
  }, $i = {
1632
1634
  info: {
@@ -1646,10 +1648,10 @@ ${c}${c}`), 1), O.push("],")), x(O.join(), 1), x("]);"), p(), x("$response = cur
1646
1648
  if (!["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(t.toUpperCase()))
1647
1649
  return "Method not supported";
1648
1650
  const h = [], y = Object.keys(o);
1649
- return y.length && (c("$headers=@{}"), y.forEach(($) => {
1650
- $ !== "connection" && c(`$headers.Add("${$}", "${Me(o[$], { escapeChar: "`" })}")`);
1651
- }), h.push("-Headers $headers")), s.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), s.forEach(($) => {
1652
- c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${$.name}'`), c(`$cookie.Value = '${$.value}'`), c(`$cookie.Domain = '${l.host}'`), c("$session.Cookies.Add($cookie)");
1651
+ return y.length && (c("$headers=@{}"), y.forEach((x) => {
1652
+ x !== "connection" && c(`$headers.Add("${x}", "${Me(o[x], { escapeChar: "`" })}")`);
1653
+ }), h.push("-Headers $headers")), s.length && (c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), s.forEach((x) => {
1654
+ c("$cookie = New-Object System.Net.Cookie"), c(`$cookie.Name = '${x.name}'`), c(`$cookie.Value = '${x.value}'`), c(`$cookie.Domain = '${l.host}'`), c("$session.Cookies.Add($cookie)");
1653
1655
  }), h.push("-WebSession $session")), a.text && (h.push(
1654
1656
  `-ContentType '${Me(ve(i, "content-type"), { delimiter: "'", escapeChar: "`" })}'`
1655
1657
  ), h.push(`-Body '${a.text}'`)), c(`$response = ${e} -Uri '${n}' -Method ${t} ${h.join(" ")}`.trim()), u();
@@ -1728,25 +1730,25 @@ var Ie = (e, r, t) => {
1728
1730
  }, { push: n, blank: a, join: i, addPostProcessor: c } = new V({ indent: l.indent });
1729
1731
  n("import requests"), a(), n(`url = "${e}"`), a();
1730
1732
  const u = t;
1731
- let f = {};
1733
+ let p = {};
1732
1734
  const h = {};
1733
- let y = !1, $ = !1, x = !1;
1735
+ let y = !1, x = !1, $ = !1;
1734
1736
  switch (r.mimeType) {
1735
1737
  case "application/json":
1736
- r.jsonObj && (n(`payload = ${Ie(r.jsonObj, l)}`), x = !0, $ = !0);
1738
+ r.jsonObj && (n(`payload = ${Ie(r.jsonObj, l)}`), $ = !0, x = !0);
1737
1739
  break;
1738
1740
  case "multipart/form-data":
1739
1741
  if (!r.params)
1740
1742
  break;
1741
- if (f = {}, r.params.forEach((v) => {
1742
- v.fileName ? (v.contentType ? h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (f[v.name] = v.value, $ = !0);
1743
+ if (p = {}, r.params.forEach((v) => {
1744
+ v.fileName ? (v.contentType ? h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'), '${v.contentType}')` : h[v.name] = `('${v.fileName}', open('${v.fileName}', 'rb'))`, y = !0) : (p[v.name] = v.value, x = !0);
1743
1745
  }), y) {
1744
- n(`files = ${Ie(h, l)}`), $ && n(`payload = ${Ie(f, l)}`);
1746
+ n(`files = ${Ie(h, l)}`), x && n(`payload = ${Ie(p, l)}`);
1745
1747
  const v = pe(u, "content-type");
1746
1748
  v && delete u[v];
1747
1749
  } else {
1748
1750
  const v = JSON.stringify(r.text);
1749
- v && (n(`payload = ${v}`), $ = !0);
1751
+ v && (n(`payload = ${v}`), x = !0);
1750
1752
  }
1751
1753
  c(
1752
1754
  (v) => v.replace(/"\('(.+)', open\('(.+)', 'rb'\)\)"/g, '("$1", open("$2", "rb"))').replace(/"\('(.+)', open\('(.+)', 'rb'\), '(.+)'\)"/g, '("$1", open("$2", "rb"), "$3")')
@@ -1754,28 +1756,28 @@ var Ie = (e, r, t) => {
1754
1756
  break;
1755
1757
  default: {
1756
1758
  if (r.mimeType === "application/x-www-form-urlencoded" && r.paramsObj) {
1757
- n(`payload = ${Ie(r.paramsObj, l)}`), $ = !0;
1759
+ n(`payload = ${Ie(r.paramsObj, l)}`), x = !0;
1758
1760
  break;
1759
1761
  }
1760
1762
  const v = JSON.stringify(r.text);
1761
- v && (n(`payload = ${v}`), $ = !0);
1763
+ v && (n(`payload = ${v}`), x = !0);
1762
1764
  }
1763
1765
  }
1764
- const p = Object.keys(u).length;
1765
- if (p === 0 && ($ || y))
1766
+ const f = Object.keys(u).length;
1767
+ if (f === 0 && (x || y))
1766
1768
  a();
1767
- else if (p === 1)
1769
+ else if (f === 1)
1768
1770
  Object.keys(u).forEach((v) => {
1769
1771
  n(`headers = {"${v}": "${ce(u[v])}"}`), a();
1770
1772
  });
1771
- else if (p > 1) {
1773
+ else if (f > 1) {
1772
1774
  let v = 1;
1773
1775
  n("headers = {"), Object.keys(u).forEach((O) => {
1774
- n(v !== p ? `"${O}": "${ce(u[O])}",` : `"${O}": "${ce(u[O])}"`, 1), v += 1;
1776
+ n(v !== f ? `"${O}": "${ce(u[O])}",` : `"${O}": "${ce(u[O])}"`, 1), v += 1;
1775
1777
  }), n("}"), a();
1776
1778
  }
1777
1779
  let m = Oi.includes(o) ? `response = requests.${o.toLowerCase()}(url` : `response = requests.request("${o}", url`;
1778
- return $ && (x ? m += ", json=payload" : m += ", data=payload"), y && (m += ", files=files"), p > 0 && (m += ", headers=headers"), m += ")", n(m), a(), n("print(response.text)"), i();
1780
+ return x && ($ ? m += ", json=payload" : m += ", data=payload"), y && (m += ", files=files"), f > 0 && (m += ", headers=headers"), m += ")", n(m), a(), n("print(response.text)"), i();
1779
1781
  }
1780
1782
  }, Pi = {
1781
1783
  info: {
@@ -1804,8 +1806,8 @@ var Ie = (e, r, t) => {
1804
1806
  t.length === 1 ? (n(`queryString <- list(${Object.keys(c)} = "${Object.values(c).toString()}")`), a()) : t.length > 1 && (n("queryString <- list("), Object.keys(c).forEach((d, S) => {
1805
1807
  S !== u - 1 ? n(` ${d} = "${c[d].toString()}",`) : n(` ${d} = "${c[d].toString()}"`);
1806
1808
  }), n(")"), a());
1807
- const f = JSON.stringify(o.text);
1808
- if (f && (n(`payload <- ${f}`), a()), o.text || o.jsonObj || o.params)
1809
+ const p = JSON.stringify(o.text);
1810
+ if (p && (n(`payload <- ${p}`), a()), o.text || o.jsonObj || o.params)
1809
1811
  switch (o.mimeType) {
1810
1812
  case "application/x-www-form-urlencoded":
1811
1813
  n('encode <- "form"'), a();
@@ -1820,10 +1822,10 @@ var Ie = (e, r, t) => {
1820
1822
  n('encode <- "raw"'), a();
1821
1823
  break;
1822
1824
  }
1823
- const h = ve(s, "cookie"), y = ve(s, "accept"), $ = h ? `set_cookies(\`${String(h).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, x = y ? `accept("${ce(y)}")` : void 0, p = `content_type("${ce(o.mimeType)}")`, m = Object.entries(s).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, S]) => `'${d}' = '${ze(S)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
1825
+ const h = ve(s, "cookie"), y = ve(s, "accept"), x = h ? `set_cookies(\`${String(h).replace(/;/g, '", `').replace(/` /g, "`").replace(/[=]/g, '` = "')}")` : void 0, $ = y ? `accept("${ce(y)}")` : void 0, f = `content_type("${ce(o.mimeType)}")`, m = Object.entries(s).filter(([d]) => !["cookie", "accept", "content-type"].includes(d.toLowerCase())).map(([d, S]) => `'${d}' = '${ze(S)}'`).join(", "), v = m ? `add_headers(${m})` : void 0;
1824
1826
  let O = `response <- VERB("${l}", url`;
1825
- f && (O += ", body = payload"), t.length && (O += ", query = queryString");
1826
- const T = [v, p, x, $].filter((d) => !!d).join(", ");
1827
+ p && (O += ", body = payload"), t.length && (O += ", query = queryString");
1828
+ const T = [v, f, $, x].filter((d) => !!d).join(", ");
1827
1829
  return T && (O += `, ${T}`), (o.text || o.jsonObj || o.params) && (O += ", encode = encode"), O += ")", n(O), a(), n('content(response, "text")'), i();
1828
1830
  }
1829
1831
  }, Ri = {
@@ -1861,8 +1863,8 @@ var Ie = (e, r, t) => {
1861
1863
  "TRACE"
1862
1864
  ], u = i.charAt(0) + i.substring(1).toLowerCase();
1863
1865
  c.includes(i) || (l(`class Net::HTTP::${u} < Net::HTTPRequest`), l(` METHOD = '${i.toUpperCase()}'`), l(` REQUEST_HAS_BODY = '${o.text ? "true" : "false"}'`), l(" RESPONSE_HAS_BODY = true"), l("end"), n()), l(`url = URI("${t}")`), n(), l("http = Net::HTTP.new(url.host, url.port)"), e.protocol === "https:" && l("http.use_ssl = true"), n(), l(`request = Net::HTTP::${u}.new(url)`);
1864
- const f = Object.keys(s);
1865
- return f.length && f.forEach((h) => {
1866
+ const p = Object.keys(s);
1867
+ return p.length && p.forEach((h) => {
1866
1868
  l(`request["${h}"] = '${ze(s[h])}'`);
1867
1869
  }), o.text && l(`request.body = ${JSON.stringify(o.text)}`), n(), l("response = http.request(request)"), l("puts response.read_body"), a();
1868
1870
  }
@@ -1900,14 +1902,14 @@ var Ie = (e, r, t) => {
1900
1902
  extname: ".sh"
1901
1903
  },
1902
1904
  convert: ({ fullUrl: e, method: r, httpVersion: t, headersObj: o, allHeaders: s, postData: l }, n = {}) => {
1903
- var p;
1904
- const { indent: a = " ", short: i = !1, binary: c = !1, globOff: u = !1 } = n, f = " ", { push: h, join: y } = new V({
1905
+ var f;
1906
+ const { indent: a = " ", short: i = !1, binary: c = !1, globOff: u = !1 } = n, p = " ", { push: h, join: y } = new V({
1905
1907
  ...typeof a == "string" ? { indent: a } : {},
1906
1908
  join: a !== !1 ? ` \\
1907
1909
  ${a}` : " "
1908
- }), $ = Ai(i);
1909
- let x = ue(e);
1910
- if (h(`curl ${$("request")} ${r}`), u && (x = unescape(x), h($("globoff"))), h(`${$("url ")}${x}`), t === "HTTP/1.0" && h($("http1.0")), ve(s, "accept-encoding") && h("--compressed"), l.mimeType === "multipart/form-data") {
1910
+ }), x = Ai(i);
1911
+ let $ = ue(e);
1912
+ if (h(`curl ${x("request")} ${r}`), u && ($ = unescape($), h(x("globoff"))), h(`${x("url ")}${$}`), t === "HTTP/1.0" && h(x("http1.0")), ve(s, "accept-encoding") && h("--compressed"), l.mimeType === "multipart/form-data") {
1911
1913
  const m = pe(o, "content-type");
1912
1914
  if (m) {
1913
1915
  const v = o[m];
@@ -1919,19 +1921,19 @@ ${a}` : " "
1919
1921
  }
1920
1922
  switch (Object.keys(o).sort().forEach((m) => {
1921
1923
  const v = `${m}: ${o[m]}`;
1922
- h(`${$("header")} ${ue(v)}`);
1923
- }), s.cookie && h(`${$("cookie")} ${ue(s.cookie)}`), l.mimeType) {
1924
+ h(`${x("header")} ${ue(v)}`);
1925
+ }), s.cookie && h(`${x("cookie")} ${ue(s.cookie)}`), l.mimeType) {
1924
1926
  case "multipart/form-data":
1925
- (p = l.params) == null || p.forEach((v) => {
1927
+ (f = l.params) == null || f.forEach((v) => {
1926
1928
  let O = "";
1927
- v.fileName ? O = `${v.name}='@${v.fileName}'` : O = ue(`${v.name}=${v.value}`), h(`${$("form")} ${O}`);
1929
+ v.fileName ? O = `${v.name}='@${v.fileName}'` : O = ue(`${v.name}=${v.value}`), h(`${x("form")} ${O}`);
1928
1930
  });
1929
1931
  break;
1930
1932
  case "application/x-www-form-urlencoded":
1931
1933
  l.params ? l.params.forEach((v) => {
1932
- const O = v.name, T = encodeURIComponent(v.name), d = T !== O, S = d ? T : O, b = c ? "--data-binary" : d ? "--data-urlencode" : $("data");
1934
+ const O = v.name, T = encodeURIComponent(v.name), d = T !== O, S = d ? T : O, b = c ? "--data-binary" : d ? "--data-urlencode" : x("data");
1933
1935
  h(`${b} ${ue(`${S}=${v.value}`)}`);
1934
- }) : h(`${c ? "--data-binary" : $("data")} ${ue(l.text)}`);
1936
+ }) : h(`${c ? "--data-binary" : x("data")} ${ue(l.text)}`);
1935
1937
  break;
1936
1938
  default:
1937
1939
  if (!l.text)
@@ -1941,21 +1943,21 @@ ${a}` : " "
1941
1943
  try {
1942
1944
  const v = JSON.parse(l.text);
1943
1945
  m = !0, l.text.indexOf("'") > 0 ? h(
1944
- `${c ? "--data-binary" : $("data")} @- <<EOF
1946
+ `${c ? "--data-binary" : x("data")} @- <<EOF
1945
1947
  ${JSON.stringify(
1946
1948
  v,
1947
1949
  null,
1948
- f
1950
+ p
1949
1951
  )}
1950
1952
  EOF`
1951
1953
  ) : h(
1952
- `${c ? "--data-binary" : $("data")} '
1953
- ${JSON.stringify(v, null, f)}
1954
+ `${c ? "--data-binary" : x("data")} '
1955
+ ${JSON.stringify(v, null, p)}
1954
1956
  '`
1955
1957
  );
1956
1958
  } catch {
1957
1959
  }
1958
- m || h(`${c ? "--data-binary" : $("data")} ${ue(l.text)}`);
1960
+ m || h(`${c ? "--data-binary" : x("data")} ${ue(l.text)}`);
1959
1961
  }
1960
1962
  return y();
1961
1963
  }
@@ -1989,22 +1991,22 @@ ${JSON.stringify(v, null, f)}
1989
1991
  join: a.indent !== !1 ? ` \\
1990
1992
  ${a.indent}` : " "
1991
1993
  });
1992
- let f = !1;
1994
+ let p = !1;
1993
1995
  const h = [];
1994
- a.headers && h.push(a.short ? "-h" : "--headers"), a.body && h.push(a.short ? "-b" : "--body"), a.verbose && h.push(a.short ? "-v" : "--verbose"), a.print && h.push(`${a.short ? "-p" : "--print"}=${a.print}`), a.verify && h.push(`--verify=${a.verify}`), a.cert && h.push(`--cert=${a.cert}`), a.pretty && h.push(`--pretty=${a.pretty}`), a.style && h.push(`--style=${a.style}`), a.timeout && h.push(`--timeout=${a.timeout}`), a.queryParams && Object.keys(t).forEach(($) => {
1995
- const x = t[$];
1996
- Array.isArray(x) ? x.forEach((p) => {
1997
- i(`${$}==${ue(p)}`);
1998
- }) : i(`${$}==${ue(x)}`);
1999
- }), Object.keys(e).sort().forEach(($) => {
2000
- i(`${$}:${ue(e[$])}`);
2001
- }), r.mimeType === "application/x-www-form-urlencoded" ? r.params && r.params.length && (h.push(a.short ? "-f" : "--form"), r.params.forEach(($) => {
2002
- i(`${$.name}=${ue($.value)}`);
2003
- })) : f = !0;
1996
+ a.headers && h.push(a.short ? "-h" : "--headers"), a.body && h.push(a.short ? "-b" : "--body"), a.verbose && h.push(a.short ? "-v" : "--verbose"), a.print && h.push(`${a.short ? "-p" : "--print"}=${a.print}`), a.verify && h.push(`--verify=${a.verify}`), a.cert && h.push(`--cert=${a.cert}`), a.pretty && h.push(`--pretty=${a.pretty}`), a.style && h.push(`--style=${a.style}`), a.timeout && h.push(`--timeout=${a.timeout}`), a.queryParams && Object.keys(t).forEach((x) => {
1997
+ const $ = t[x];
1998
+ Array.isArray($) ? $.forEach((f) => {
1999
+ i(`${x}==${ue(f)}`);
2000
+ }) : i(`${x}==${ue($)}`);
2001
+ }), Object.keys(e).sort().forEach((x) => {
2002
+ i(`${x}:${ue(e[x])}`);
2003
+ }), r.mimeType === "application/x-www-form-urlencoded" ? r.params && r.params.length && (h.push(a.short ? "-f" : "--form"), r.params.forEach((x) => {
2004
+ i(`${x.name}=${ue(x.value)}`);
2005
+ })) : p = !0;
2004
2006
  const y = h.length ? `${h.join(" ")} ` : "";
2005
- if (l = ue(a.queryParams ? l : o), u(`http ${y}${s} ${l}`), f && r.text) {
2006
- const $ = ue(r.text);
2007
- u(`echo ${$} | `);
2007
+ if (l = ue(a.queryParams ? l : o), u(`http ${y}${s} ${l}`), p && r.text) {
2008
+ const x = ue(r.text);
2009
+ u(`echo ${x} | `);
2008
2010
  }
2009
2011
  return c();
2010
2012
  }
@@ -2099,8 +2101,8 @@ ${l}]` : `[${e.join(n)}]`;
2099
2101
  switch (r.mimeType) {
2100
2102
  case "application/x-www-form-urlencoded":
2101
2103
  if ((h = r.params) != null && h.length) {
2102
- const y = r.params.map(($) => `"${$.name}": "${$.value}"`);
2103
- n.pretty ? (a("let parameters = ["), y.forEach(($) => a(`${$},`, 1)), a("]")) : a(`let parameters = [${y.join(", ")}]`), a('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), a("let postData = Data(joinedParameters.utf8)"), i();
2104
+ const y = r.params.map((x) => `"${x.name}": "${x.value}"`);
2105
+ n.pretty ? (a("let parameters = ["), y.forEach((x) => a(`${x},`, 1)), a("]")) : a(`let parameters = [${y.join(", ")}]`), a('let joinedParameters = parameters.map { "\\($0.key)=\\($0.value)" }.joined(separator: "&")'), a("let postData = Data(joinedParameters.utf8)"), i();
2104
2106
  }
2105
2107
  break;
2106
2108
  case "application/json":
@@ -2113,16 +2115,16 @@ ${l}]` : `[${e.join(n)}]`;
2113
2115
  a(`let postData = Data("${r.text}".utf8)`), i();
2114
2116
  }
2115
2117
  a(`let url = URL(string: "${t.href}")!`);
2116
- const f = o ? Object.entries(o) : [];
2117
- return f.length < 1 ? a("var request = URLRequest(url: url)") : (a("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), a("let queryItems: [URLQueryItem] = ["), f.forEach((y) => {
2118
- const $ = y[0], x = y[1];
2119
- switch (Object.prototype.toString.call(x)) {
2118
+ const p = o ? Object.entries(o) : [];
2119
+ return p.length < 1 ? a("var request = URLRequest(url: url)") : (a("var components = URLComponents(url: url, resolvingAgainstBaseURL: true)!"), a("let queryItems: [URLQueryItem] = ["), p.forEach((y) => {
2120
+ const x = y[0], $ = y[1];
2121
+ switch (Object.prototype.toString.call($)) {
2120
2122
  case "[object String]":
2121
- a(`URLQueryItem(name: "${$}", value: "${x}"),`, 1);
2123
+ a(`URLQueryItem(name: "${x}", value: "${$}"),`, 1);
2122
2124
  break;
2123
2125
  case "[object Array]":
2124
- x.forEach((p) => {
2125
- a(`URLQueryItem(name: "${$}", value: "${p}"),`, 1);
2126
+ $.forEach((f) => {
2127
+ a(`URLQueryItem(name: "${x}", value: "${f}"),`, 1);
2126
2128
  });
2127
2129
  break;
2128
2130
  }
@@ -2165,7 +2167,7 @@ function zi() {
2165
2167
  (function(t) {
2166
2168
  var o = r && !r.nodeType && r, s = !e.nodeType && e, l = typeof Ze == "object" && Ze;
2167
2169
  (l.global === l || l.window === l || l.self === l) && (t = l);
2168
- var n, a = 2147483647, i = 36, c = 1, u = 26, f = 38, h = 700, y = 72, $ = 128, x = "-", p = /^xn--/, m = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
2170
+ var n, a = 2147483647, i = 36, c = 1, u = 26, p = 38, h = 700, y = 72, x = 128, $ = "-", f = /^xn--/, m = /[^\x20-\x7E]/, v = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
2169
2171
  overflow: "Overflow: input needs wider integers to process",
2170
2172
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
2171
2173
  "invalid-input": "Invalid input"
@@ -2205,11 +2207,11 @@ function zi() {
2205
2207
  var C = 0;
2206
2208
  for (R = U ? d(R / h) : R >> 1, R += d(R / N); R > T * u >> 1; C += i)
2207
2209
  R = d(R / T);
2208
- return d(C + (T + 1) * R / (R + f));
2210
+ return d(C + (T + 1) * R / (R + p));
2209
2211
  }
2210
2212
  function se(R) {
2211
- var N = [], U = R.length, C, I = 0, W = $, z = y, K, ne, J, A, F, _, Q, G, Y;
2212
- for (K = R.lastIndexOf(x), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
2213
+ var N = [], U = R.length, C, I = 0, W = x, z = y, K, ne, J, A, F, _, Q, G, Y;
2214
+ for (K = R.lastIndexOf($), K < 0 && (K = 0), ne = 0; ne < K; ++ne)
2213
2215
  R.charCodeAt(ne) >= 128 && q("not-basic"), N.push(R.charCodeAt(ne));
2214
2216
  for (J = K > 0 ? K + 1 : 0; J < U; ) {
2215
2217
  for (A = I, F = 1, _ = i; J >= U && q("invalid-input"), Q = ae(R.charCodeAt(J++)), (Q >= i || Q > d((a - I) / F)) && q("overflow"), I += Q * F, G = _ <= z ? c : _ >= z + u ? u : _ - z, !(Q < G); _ += i)
@@ -2220,9 +2222,9 @@ function zi() {
2220
2222
  }
2221
2223
  function Z(R) {
2222
2224
  var N, U, C, I, W, z, K, ne, J, A, F, _ = [], Q, G, Y, oe;
2223
- for (R = B(R), Q = R.length, N = $, U = 0, W = y, z = 0; z < Q; ++z)
2225
+ for (R = B(R), Q = R.length, N = x, U = 0, W = y, z = 0; z < Q; ++z)
2224
2226
  F = R[z], F < 128 && _.push(S(F));
2225
- for (C = I = _.length, I && _.push(x); C < Q; ) {
2227
+ for (C = I = _.length, I && _.push($); C < Q; ) {
2226
2228
  for (K = a, z = 0; z < Q; ++z)
2227
2229
  F = R[z], F >= N && F < K && (K = F);
2228
2230
  for (G = C + 1, K - N > d((a - U) / G) && q("overflow"), U += (K - N) * G, N = K, z = 0; z < Q; ++z)
@@ -2239,7 +2241,7 @@ function zi() {
2239
2241
  }
2240
2242
  function k(R) {
2241
2243
  return E(R, function(N) {
2242
- return p.test(N) ? se(N.slice(4).toLowerCase()) : N;
2244
+ return f.test(N) ? se(N.slice(4).toLowerCase()) : N;
2243
2245
  });
2244
2246
  }
2245
2247
  function re(R) {
@@ -2436,14 +2438,14 @@ function is() {
2436
2438
  if (Cn) return Mt;
2437
2439
  Cn = 1;
2438
2440
  var e = "Function.prototype.bind called on incompatible ", r = Object.prototype.toString, t = Math.max, o = "[object Function]", s = function(i, c) {
2439
- for (var u = [], f = 0; f < i.length; f += 1)
2440
- u[f] = i[f];
2441
+ for (var u = [], p = 0; p < i.length; p += 1)
2442
+ u[p] = i[p];
2441
2443
  for (var h = 0; h < c.length; h += 1)
2442
2444
  u[h + i.length] = c[h];
2443
2445
  return u;
2444
2446
  }, l = function(i, c) {
2445
- for (var u = [], f = c, h = 0; f < i.length; f += 1, h += 1)
2446
- u[h] = i[f];
2447
+ for (var u = [], p = c, h = 0; p < i.length; p += 1, h += 1)
2448
+ u[h] = i[p];
2447
2449
  return u;
2448
2450
  }, n = function(a, i) {
2449
2451
  for (var c = "", u = 0; u < a.length; u += 1)
@@ -2454,8 +2456,8 @@ function is() {
2454
2456
  var c = this;
2455
2457
  if (typeof c != "function" || r.apply(c) !== o)
2456
2458
  throw new TypeError(e + c);
2457
- for (var u = l(arguments, 1), f, h = function() {
2458
- if (this instanceof f) {
2459
+ for (var u = l(arguments, 1), p, h = function() {
2460
+ if (this instanceof p) {
2459
2461
  var m = c.apply(
2460
2462
  this,
2461
2463
  s(u, arguments)
@@ -2466,14 +2468,14 @@ function is() {
2466
2468
  i,
2467
2469
  s(u, arguments)
2468
2470
  );
2469
- }, y = t(0, c.length - u.length), $ = [], x = 0; x < y; x++)
2470
- $[x] = "$" + x;
2471
- if (f = Function("binder", "return function (" + n($, ",") + "){ return binder.apply(this,arguments); }")(h), c.prototype) {
2472
- var p = function() {
2471
+ }, y = t(0, c.length - u.length), x = [], $ = 0; $ < y; $++)
2472
+ x[$] = "$" + $;
2473
+ if (p = Function("binder", "return function (" + n(x, ",") + "){ return binder.apply(this,arguments); }")(h), c.prototype) {
2474
+ var f = function() {
2473
2475
  };
2474
- p.prototype = c.prototype, f.prototype = new p(), p.prototype = null;
2476
+ f.prototype = c.prototype, p.prototype = new f(), f.prototype = null;
2475
2477
  }
2476
- return f;
2478
+ return p;
2477
2479
  }, Mt;
2478
2480
  }
2479
2481
  var zt, Rn;
@@ -2563,9 +2565,9 @@ var Xt, Fn;
2563
2565
  function Tr() {
2564
2566
  if (Fn) return Xt;
2565
2567
  Fn = 1;
2566
- var e, r = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Gi(), o = /* @__PURE__ */ Wi(), s = /* @__PURE__ */ Ji(), l = /* @__PURE__ */ Vi(), n = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Di(), c = /* @__PURE__ */ Qi(), u = /* @__PURE__ */ Ki(), f = /* @__PURE__ */ Yi(), h = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), $ = /* @__PURE__ */ es(), x = /* @__PURE__ */ rs(), p = Function, m = function(J) {
2568
+ var e, r = /* @__PURE__ */ uo(), t = /* @__PURE__ */ Gi(), o = /* @__PURE__ */ Wi(), s = /* @__PURE__ */ Ji(), l = /* @__PURE__ */ Vi(), n = /* @__PURE__ */ fo(), a = /* @__PURE__ */ We(), i = /* @__PURE__ */ Di(), c = /* @__PURE__ */ Qi(), u = /* @__PURE__ */ Ki(), p = /* @__PURE__ */ Yi(), h = /* @__PURE__ */ Xi(), y = /* @__PURE__ */ Zi(), x = /* @__PURE__ */ es(), $ = /* @__PURE__ */ rs(), f = Function, m = function(J) {
2567
2569
  try {
2568
- return p('"use strict"; return (' + J + ").constructor;")();
2570
+ return f('"use strict"; return (' + J + ").constructor;")();
2569
2571
  } catch {
2570
2572
  }
2571
2573
  }, v = /* @__PURE__ */ ot(), O = /* @__PURE__ */ at(), T = function() {
@@ -2609,7 +2611,7 @@ function Tr() {
2609
2611
  "%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
2610
2612
  "%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
2611
2613
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
2612
- "%Function%": p,
2614
+ "%Function%": f,
2613
2615
  "%GeneratorFunction%": P,
2614
2616
  "%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
2615
2617
  "%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
@@ -2656,11 +2658,11 @@ function Tr() {
2656
2658
  "%Object.getPrototypeOf%": q,
2657
2659
  "%Math.abs%": c,
2658
2660
  "%Math.floor%": u,
2659
- "%Math.max%": f,
2661
+ "%Math.max%": p,
2660
2662
  "%Math.min%": h,
2661
2663
  "%Math.pow%": y,
2662
- "%Math.round%": $,
2663
- "%Math.sign%": x,
2664
+ "%Math.round%": x,
2665
+ "%Math.sign%": $,
2664
2666
  "%Reflect.getPrototypeOf%": L
2665
2667
  };
2666
2668
  if (b)
@@ -2813,7 +2815,7 @@ function fs() {
2813
2815
  throw new t("`nonConfigurable`, if provided, must be a boolean or null");
2814
2816
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
2815
2817
  throw new t("`loose`, if provided, must be a boolean");
2816
- var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, u = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, h = !!o && o(l, n);
2818
+ var i = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, u = arguments.length > 5 ? arguments[5] : null, p = arguments.length > 6 ? arguments[6] : !1, h = !!o && o(l, n);
2817
2819
  if (e)
2818
2820
  e(l, n, {
2819
2821
  configurable: u === null && h ? h.configurable : !u,
@@ -2821,7 +2823,7 @@ function fs() {
2821
2823
  value: a,
2822
2824
  writable: c === null && h ? h.writable : !c
2823
2825
  });
2824
- else if (f || !i && !c && !u)
2826
+ else if (p || !i && !c && !u)
2825
2827
  l[n] = a;
2826
2828
  else
2827
2829
  throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
@@ -2854,12 +2856,12 @@ function ds() {
2854
2856
  throw new s("`fn` is not a function");
2855
2857
  if (typeof i != "number" || i < 0 || i > 4294967295 || l(i) !== i)
2856
2858
  throw new s("`length` must be a positive 32-bit integer");
2857
- var c = arguments.length > 2 && !!arguments[2], u = !0, f = !0;
2859
+ var c = arguments.length > 2 && !!arguments[2], u = !0, p = !0;
2858
2860
  if ("length" in a && o) {
2859
2861
  var h = o(a, "length");
2860
- h && !h.configurable && (u = !1), h && !h.writable && (f = !1);
2862
+ h && !h.configurable && (u = !1), h && !h.writable && (p = !1);
2861
2863
  }
2862
- return (u || f || !c) && (t ? r(
2864
+ return (u || p || !c) && (t ? r(
2863
2865
  /** @type {Parameters<define>[0]} */
2864
2866
  a,
2865
2867
  "length",
@@ -2912,7 +2914,7 @@ var ar, Wn;
2912
2914
  function vs() {
2913
2915
  if (Wn) return ar;
2914
2916
  Wn = 1;
2915
- var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, f = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, $ = Boolean.prototype.valueOf, x = Object.prototype.toString, p = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2917
+ var e = typeof Map == "function" && Map.prototype, r = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = e && r && typeof r.get == "function" ? r.get : null, o = e && Map.prototype.forEach, s = typeof Set == "function" && Set.prototype, l = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = s && l && typeof l.get == "function" ? l.get : null, a = s && Set.prototype.forEach, i = typeof WeakMap == "function" && WeakMap.prototype, c = i ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, p = u ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, y = h ? WeakRef.prototype.deref : null, x = Boolean.prototype.valueOf, $ = Object.prototype.toString, f = Function.prototype.toString, m = String.prototype.match, v = String.prototype.slice, O = String.prototype.replace, T = String.prototype.toUpperCase, d = String.prototype.toLowerCase, S = RegExp.prototype.test, b = Array.prototype.concat, q = Array.prototype.join, L = Array.prototype.slice, E = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, P = Object.getOwnPropertySymbols, ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, H = typeof Symbol == "function" && typeof Symbol.iterator == "object", D = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === H || !0) ? Symbol.toStringTag : null, se = Object.prototype.propertyIsEnumerable, Z = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(j) {
2916
2918
  return j.__proto__;
2917
2919
  } : null);
2918
2920
  function k(j, w) {
@@ -3030,7 +3032,7 @@ function vs() {
3030
3032
  if (_(w))
3031
3033
  return Ue(me(B.call(w)));
3032
3034
  if (A(w))
3033
- return Ue($.call(w));
3035
+ return Ue(x.call(w));
3034
3036
  if (ne(w))
3035
3037
  return Ue(me(String(w)));
3036
3038
  if (typeof window < "u" && w === window)
@@ -3100,12 +3102,12 @@ function vs() {
3100
3102
  return Q.call(j, w);
3101
3103
  }
3102
3104
  function Y(j) {
3103
- return x.call(j);
3105
+ return $.call(j);
3104
3106
  }
3105
3107
  function oe(j) {
3106
3108
  if (j.name)
3107
3109
  return j.name;
3108
- var w = m.call(p.call(j), /^function\s*([\w$]+)/);
3110
+ var w = m.call(f.call(j), /^function\s*([\w$]+)/);
3109
3111
  return w ? w[1] : null;
3110
3112
  }
3111
3113
  function he(j, w) {
@@ -3137,7 +3139,7 @@ function vs() {
3137
3139
  try {
3138
3140
  c.call(j, c);
3139
3141
  try {
3140
- f.call(j, f);
3142
+ p.call(j, p);
3141
3143
  } catch {
3142
3144
  return !0;
3143
3145
  }
@@ -3171,10 +3173,10 @@ function vs() {
3171
3173
  return !1;
3172
3174
  }
3173
3175
  function Ne(j) {
3174
- if (!f || !j || typeof j != "object")
3176
+ if (!p || !j || typeof j != "object")
3175
3177
  return !1;
3176
3178
  try {
3177
- f.call(j, f);
3179
+ p.call(j, p);
3178
3180
  try {
3179
3181
  c.call(j, c);
3180
3182
  } catch {
@@ -3270,25 +3272,25 @@ var ir, Jn;
3270
3272
  function bs() {
3271
3273
  if (Jn) return ir;
3272
3274
  Jn = 1;
3273
- var e = /* @__PURE__ */ Tr(), r = ms(), t = /* @__PURE__ */ vs(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), f = r("Map.prototype.has", !0), h = function(p, m) {
3274
- for (var v = p, O; (O = v.next) !== null; v = O)
3275
+ var e = /* @__PURE__ */ Tr(), r = ms(), t = /* @__PURE__ */ vs(), o = /* @__PURE__ */ We(), s = e("%WeakMap%", !0), l = e("%Map%", !0), n = r("WeakMap.prototype.get", !0), a = r("WeakMap.prototype.set", !0), i = r("WeakMap.prototype.has", !0), c = r("Map.prototype.get", !0), u = r("Map.prototype.set", !0), p = r("Map.prototype.has", !0), h = function(f, m) {
3276
+ for (var v = f, O; (O = v.next) !== null; v = O)
3275
3277
  if (O.key === m)
3276
3278
  return v.next = O.next, O.next = /** @type {NonNullable<typeof list.next>} */
3277
- p.next, p.next = O, O;
3278
- }, y = function(p, m) {
3279
- var v = h(p, m);
3279
+ f.next, f.next = O, O;
3280
+ }, y = function(f, m) {
3281
+ var v = h(f, m);
3280
3282
  return v && v.value;
3281
- }, $ = function(p, m, v) {
3282
- var O = h(p, m);
3283
- O ? O.value = v : p.next = /** @type {import('.').ListNode<typeof value>} */
3283
+ }, x = function(f, m, v) {
3284
+ var O = h(f, m);
3285
+ O ? O.value = v : f.next = /** @type {import('.').ListNode<typeof value>} */
3284
3286
  {
3285
3287
  // eslint-disable-line no-param-reassign, no-extra-parens
3286
3288
  key: m,
3287
- next: p.next,
3289
+ next: f.next,
3288
3290
  value: v
3289
3291
  };
3290
- }, x = function(p, m) {
3291
- return !!h(p, m);
3292
+ }, $ = function(f, m) {
3293
+ return !!h(f, m);
3292
3294
  };
3293
3295
  return ir = function() {
3294
3296
  var m, v, O, T = {
@@ -3312,13 +3314,13 @@ function bs() {
3312
3314
  return i(m, d);
3313
3315
  } else if (l) {
3314
3316
  if (v)
3315
- return f(v, d);
3317
+ return p(v, d);
3316
3318
  } else if (O)
3317
- return x(O, d);
3319
+ return $(O, d);
3318
3320
  return !1;
3319
3321
  },
3320
3322
  set: function(d, S) {
3321
- s && d && (typeof d == "object" || typeof d == "function") ? (m || (m = new s()), a(m, d, S)) : l ? (v || (v = new l()), u(v, d, S)) : (O || (O = { key: {}, next: null }), $(O, d, S));
3323
+ s && d && (typeof d == "object" || typeof d == "function") ? (m || (m = new s()), a(m, d, S)) : l ? (v || (v = new l()), u(v, d, S)) : (O || (O = { key: {}, next: null }), x(O, d, S));
3322
3324
  }
3323
3325
  };
3324
3326
  return T;
@@ -3351,9 +3353,9 @@ function go() {
3351
3353
  if (Dn) return lr;
3352
3354
  Dn = 1;
3353
3355
  var e = /* @__PURE__ */ Pr(), r = Object.prototype.hasOwnProperty, t = Array.isArray, o = function() {
3354
- for (var p = [], m = 0; m < 256; ++m)
3355
- p.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
3356
- return p;
3356
+ for (var f = [], m = 0; m < 256; ++m)
3357
+ f.push("%" + ((m < 16 ? "0" : "") + m.toString(16)).toUpperCase());
3358
+ return f;
3357
3359
  }(), s = function(m) {
3358
3360
  for (; m.length > 1; ) {
3359
3361
  var v = m.pop(), O = v.obj[v.prop];
@@ -3367,7 +3369,7 @@ function go() {
3367
3369
  for (var O = v && v.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, T = 0; T < m.length; ++T)
3368
3370
  typeof m[T] < "u" && (O[T] = m[T]);
3369
3371
  return O;
3370
- }, n = function p(m, v, O) {
3372
+ }, n = function f(m, v, O) {
3371
3373
  if (!v)
3372
3374
  return m;
3373
3375
  if (typeof v != "object") {
@@ -3385,19 +3387,19 @@ function go() {
3385
3387
  return t(m) && !t(v) && (T = l(m, O)), t(m) && t(v) ? (v.forEach(function(d, S) {
3386
3388
  if (r.call(m, S)) {
3387
3389
  var b = m[S];
3388
- b && typeof b == "object" && d && typeof d == "object" ? m[S] = p(b, d, O) : m.push(d);
3390
+ b && typeof b == "object" && d && typeof d == "object" ? m[S] = f(b, d, O) : m.push(d);
3389
3391
  } else
3390
3392
  m[S] = d;
3391
3393
  }), m) : Object.keys(v).reduce(function(d, S) {
3392
3394
  var b = v[S];
3393
- return r.call(d, S) ? d[S] = p(d[S], b, O) : d[S] = b, d;
3395
+ return r.call(d, S) ? d[S] = f(d[S], b, O) : d[S] = b, d;
3394
3396
  }, T);
3395
3397
  }, a = function(m, v) {
3396
3398
  return Object.keys(v).reduce(function(O, T) {
3397
3399
  return O[T] = v[T], O;
3398
3400
  }, m);
3399
- }, i = function(p, m, v) {
3400
- var O = p.replace(/\+/g, " ");
3401
+ }, i = function(f, m, v) {
3402
+ var O = f.replace(/\+/g, " ");
3401
3403
  if (v === "iso-8859-1")
3402
3404
  return O.replace(/%[0-9a-f]{2}/gi, unescape);
3403
3405
  try {
@@ -3437,7 +3439,7 @@ function go() {
3437
3439
  b += E.join("");
3438
3440
  }
3439
3441
  return b;
3440
- }, f = function(m) {
3442
+ }, p = function(m) {
3441
3443
  for (var v = [{ obj: { o: m }, prop: "o" }], O = [], T = 0; T < v.length; ++T)
3442
3444
  for (var d = v[T], S = d.obj[d.prop], b = Object.keys(S), q = 0; q < b.length; ++q) {
3443
3445
  var L = b[q], E = S[L];
@@ -3448,9 +3450,9 @@ function go() {
3448
3450
  return Object.prototype.toString.call(m) === "[object RegExp]";
3449
3451
  }, y = function(m) {
3450
3452
  return !m || typeof m != "object" ? !1 : !!(m.constructor && m.constructor.isBuffer && m.constructor.isBuffer(m));
3451
- }, $ = function(m, v) {
3452
- return [].concat(m, v);
3453
3453
  }, x = function(m, v) {
3454
+ return [].concat(m, v);
3455
+ }, $ = function(m, v) {
3454
3456
  if (t(m)) {
3455
3457
  for (var O = [], T = 0; T < m.length; T += 1)
3456
3458
  O.push(v(m[T]));
@@ -3461,13 +3463,13 @@ function go() {
3461
3463
  return lr = {
3462
3464
  arrayToObject: l,
3463
3465
  assign: a,
3464
- combine: $,
3465
- compact: f,
3466
+ combine: x,
3467
+ compact: p,
3466
3468
  decode: i,
3467
3469
  encode: u,
3468
3470
  isBuffer: y,
3469
3471
  isRegExp: h,
3470
- maybeMap: x,
3472
+ maybeMap: $,
3471
3473
  merge: n
3472
3474
  }, lr;
3473
3475
  }
@@ -3476,18 +3478,18 @@ function xs() {
3476
3478
  if (Qn) return cr;
3477
3479
  Qn = 1;
3478
3480
  var e = bs(), r = /* @__PURE__ */ go(), t = /* @__PURE__ */ Pr(), o = Object.prototype.hasOwnProperty, s = {
3479
- brackets: function(p) {
3480
- return p + "[]";
3481
+ brackets: function(f) {
3482
+ return f + "[]";
3481
3483
  },
3482
3484
  comma: "comma",
3483
- indices: function(p, m) {
3484
- return p + "[" + m + "]";
3485
+ indices: function(f, m) {
3486
+ return f + "[" + m + "]";
3485
3487
  },
3486
- repeat: function(p) {
3487
- return p;
3488
+ repeat: function(f) {
3489
+ return f;
3488
3490
  }
3489
- }, l = Array.isArray, n = Array.prototype.push, a = function(x, p) {
3490
- n.apply(x, l(p) ? p : [p]);
3491
+ }, l = Array.isArray, n = Array.prototype.push, a = function($, f) {
3492
+ n.apply($, l(f) ? f : [f]);
3491
3493
  }, i = Date.prototype.toISOString, c = t.default, u = {
3492
3494
  addQueryPrefix: !1,
3493
3495
  allowDots: !1,
@@ -3504,16 +3506,16 @@ function xs() {
3504
3506
  formatter: t.formatters[c],
3505
3507
  // deprecated
3506
3508
  indices: !1,
3507
- serializeDate: function(p) {
3508
- return i.call(p);
3509
+ serializeDate: function(f) {
3510
+ return i.call(f);
3509
3511
  },
3510
3512
  skipNulls: !1,
3511
3513
  strictNullHandling: !1
3512
- }, f = function(p) {
3513
- return typeof p == "string" || typeof p == "number" || typeof p == "boolean" || typeof p == "symbol" || typeof p == "bigint";
3514
- }, h = {}, y = function x(p, m, v, O, T, d, S, b, q, L, E, B, P, ae, H, D, se, Z) {
3515
- for (var k = p, re = Z, R = 0, N = !1; (re = re.get(h)) !== void 0 && !N; ) {
3516
- var U = re.get(p);
3514
+ }, p = function(f) {
3515
+ return typeof f == "string" || typeof f == "number" || typeof f == "boolean" || typeof f == "symbol" || typeof f == "bigint";
3516
+ }, h = {}, y = function $(f, m, v, O, T, d, S, b, q, L, E, B, P, ae, H, D, se, Z) {
3517
+ for (var k = f, re = Z, R = 0, N = !1; (re = re.get(h)) !== void 0 && !N; ) {
3518
+ var U = re.get(f);
3517
3519
  if (R += 1, typeof U < "u") {
3518
3520
  if (U === R)
3519
3521
  throw new RangeError("Cyclic object value");
@@ -3528,7 +3530,7 @@ function xs() {
3528
3530
  return q && !D ? q(m, u.encoder, se, "key", ae) : m;
3529
3531
  k = "";
3530
3532
  }
3531
- if (f(k) || r.isBuffer(k)) {
3533
+ if (p(k) || r.isBuffer(k)) {
3532
3534
  if (q) {
3533
3535
  var C = D ? m : q(m, u.encoder, se, "key", ae);
3534
3536
  return [H(C) + "=" + H(q(k, u.encoder, se, "value", ae))];
@@ -3554,9 +3556,9 @@ function xs() {
3554
3556
  var A = W[J], F = typeof A == "object" && typeof A.value < "u" ? A.value : k[A];
3555
3557
  if (!(S && F === null)) {
3556
3558
  var _ = B && b ? A.replace(/\./g, "%2E") : A, Q = l(k) ? typeof v == "function" ? v(ne, _) : ne : ne + (B ? "." + _ : "[" + _ + "]");
3557
- Z.set(p, R);
3559
+ Z.set(f, R);
3558
3560
  var G = e();
3559
- G.set(h, Z), a(I, x(
3561
+ G.set(h, Z), a(I, $(
3560
3562
  F,
3561
3563
  Q,
3562
3564
  v,
@@ -3579,54 +3581,54 @@ function xs() {
3579
3581
  }
3580
3582
  }
3581
3583
  return I;
3582
- }, $ = function(p) {
3583
- if (!p)
3584
+ }, x = function(f) {
3585
+ if (!f)
3584
3586
  return u;
3585
- if (typeof p.allowEmptyArrays < "u" && typeof p.allowEmptyArrays != "boolean")
3587
+ if (typeof f.allowEmptyArrays < "u" && typeof f.allowEmptyArrays != "boolean")
3586
3588
  throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3587
- if (typeof p.encodeDotInKeys < "u" && typeof p.encodeDotInKeys != "boolean")
3589
+ if (typeof f.encodeDotInKeys < "u" && typeof f.encodeDotInKeys != "boolean")
3588
3590
  throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3589
- if (p.encoder !== null && typeof p.encoder < "u" && typeof p.encoder != "function")
3591
+ if (f.encoder !== null && typeof f.encoder < "u" && typeof f.encoder != "function")
3590
3592
  throw new TypeError("Encoder has to be a function.");
3591
- var m = p.charset || u.charset;
3592
- if (typeof p.charset < "u" && p.charset !== "utf-8" && p.charset !== "iso-8859-1")
3593
+ var m = f.charset || u.charset;
3594
+ if (typeof f.charset < "u" && f.charset !== "utf-8" && f.charset !== "iso-8859-1")
3593
3595
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3594
3596
  var v = t.default;
3595
- if (typeof p.format < "u") {
3596
- if (!o.call(t.formatters, p.format))
3597
+ if (typeof f.format < "u") {
3598
+ if (!o.call(t.formatters, f.format))
3597
3599
  throw new TypeError("Unknown format option provided.");
3598
- v = p.format;
3600
+ v = f.format;
3599
3601
  }
3600
3602
  var O = t.formatters[v], T = u.filter;
3601
- (typeof p.filter == "function" || l(p.filter)) && (T = p.filter);
3603
+ (typeof f.filter == "function" || l(f.filter)) && (T = f.filter);
3602
3604
  var d;
3603
- if (p.arrayFormat in s ? d = p.arrayFormat : "indices" in p ? d = p.indices ? "indices" : "repeat" : d = u.arrayFormat, "commaRoundTrip" in p && typeof p.commaRoundTrip != "boolean")
3605
+ if (f.arrayFormat in s ? d = f.arrayFormat : "indices" in f ? d = f.indices ? "indices" : "repeat" : d = u.arrayFormat, "commaRoundTrip" in f && typeof f.commaRoundTrip != "boolean")
3604
3606
  throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3605
- var S = typeof p.allowDots > "u" ? p.encodeDotInKeys === !0 ? !0 : u.allowDots : !!p.allowDots;
3607
+ var S = typeof f.allowDots > "u" ? f.encodeDotInKeys === !0 ? !0 : u.allowDots : !!f.allowDots;
3606
3608
  return {
3607
- addQueryPrefix: typeof p.addQueryPrefix == "boolean" ? p.addQueryPrefix : u.addQueryPrefix,
3609
+ addQueryPrefix: typeof f.addQueryPrefix == "boolean" ? f.addQueryPrefix : u.addQueryPrefix,
3608
3610
  allowDots: S,
3609
- allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : u.allowEmptyArrays,
3611
+ allowEmptyArrays: typeof f.allowEmptyArrays == "boolean" ? !!f.allowEmptyArrays : u.allowEmptyArrays,
3610
3612
  arrayFormat: d,
3611
3613
  charset: m,
3612
- charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : u.charsetSentinel,
3613
- commaRoundTrip: p.commaRoundTrip,
3614
- delimiter: typeof p.delimiter > "u" ? u.delimiter : p.delimiter,
3615
- encode: typeof p.encode == "boolean" ? p.encode : u.encode,
3616
- encodeDotInKeys: typeof p.encodeDotInKeys == "boolean" ? p.encodeDotInKeys : u.encodeDotInKeys,
3617
- encoder: typeof p.encoder == "function" ? p.encoder : u.encoder,
3618
- encodeValuesOnly: typeof p.encodeValuesOnly == "boolean" ? p.encodeValuesOnly : u.encodeValuesOnly,
3614
+ charsetSentinel: typeof f.charsetSentinel == "boolean" ? f.charsetSentinel : u.charsetSentinel,
3615
+ commaRoundTrip: f.commaRoundTrip,
3616
+ delimiter: typeof f.delimiter > "u" ? u.delimiter : f.delimiter,
3617
+ encode: typeof f.encode == "boolean" ? f.encode : u.encode,
3618
+ encodeDotInKeys: typeof f.encodeDotInKeys == "boolean" ? f.encodeDotInKeys : u.encodeDotInKeys,
3619
+ encoder: typeof f.encoder == "function" ? f.encoder : u.encoder,
3620
+ encodeValuesOnly: typeof f.encodeValuesOnly == "boolean" ? f.encodeValuesOnly : u.encodeValuesOnly,
3619
3621
  filter: T,
3620
3622
  format: v,
3621
3623
  formatter: O,
3622
- serializeDate: typeof p.serializeDate == "function" ? p.serializeDate : u.serializeDate,
3623
- skipNulls: typeof p.skipNulls == "boolean" ? p.skipNulls : u.skipNulls,
3624
- sort: typeof p.sort == "function" ? p.sort : null,
3625
- strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : u.strictNullHandling
3624
+ serializeDate: typeof f.serializeDate == "function" ? f.serializeDate : u.serializeDate,
3625
+ skipNulls: typeof f.skipNulls == "boolean" ? f.skipNulls : u.skipNulls,
3626
+ sort: typeof f.sort == "function" ? f.sort : null,
3627
+ strictNullHandling: typeof f.strictNullHandling == "boolean" ? f.strictNullHandling : u.strictNullHandling
3626
3628
  };
3627
3629
  };
3628
- return cr = function(x, p) {
3629
- var m = x, v = $(p), O, T;
3630
+ return cr = function($, f) {
3631
+ var m = $, v = x(f), O, T;
3630
3632
  typeof v.filter == "function" ? (T = v.filter, m = T("", m)) : l(v.filter) && (T = v.filter, O = T);
3631
3633
  var d = [];
3632
3634
  if (typeof m != "object" || m === null)
@@ -3686,65 +3688,65 @@ function $s() {
3686
3688
  strictDepth: !1,
3687
3689
  strictNullHandling: !1
3688
3690
  }, s = function(h) {
3689
- return h.replace(/&#(\d+);/g, function(y, $) {
3690
- return String.fromCharCode(parseInt($, 10));
3691
+ return h.replace(/&#(\d+);/g, function(y, x) {
3692
+ return String.fromCharCode(parseInt(x, 10));
3691
3693
  });
3692
3694
  }, l = function(h, y) {
3693
3695
  return h && typeof h == "string" && y.comma && h.indexOf(",") > -1 ? h.split(",") : h;
3694
- }, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", i = function(y, $) {
3695
- var x = { __proto__: null }, p = $.ignoreQueryPrefix ? y.replace(/^\?/, "") : y;
3696
- p = p.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3697
- var m = $.parameterLimit === 1 / 0 ? void 0 : $.parameterLimit, v = p.split($.delimiter, m), O = -1, T, d = $.charset;
3698
- if ($.charsetSentinel)
3696
+ }, n = "utf8=%26%2310003%3B", a = "utf8=%E2%9C%93", i = function(y, x) {
3697
+ var $ = { __proto__: null }, f = x.ignoreQueryPrefix ? y.replace(/^\?/, "") : y;
3698
+ f = f.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3699
+ var m = x.parameterLimit === 1 / 0 ? void 0 : x.parameterLimit, v = f.split(x.delimiter, m), O = -1, T, d = x.charset;
3700
+ if (x.charsetSentinel)
3699
3701
  for (T = 0; T < v.length; ++T)
3700
3702
  v[T].indexOf("utf8=") === 0 && (v[T] === a ? d = "utf-8" : v[T] === n && (d = "iso-8859-1"), O = T, T = v.length);
3701
3703
  for (T = 0; T < v.length; ++T)
3702
3704
  if (T !== O) {
3703
3705
  var S = v[T], b = S.indexOf("]="), q = b === -1 ? S.indexOf("=") : b + 1, L, E;
3704
- q === -1 ? (L = $.decoder(S, o.decoder, d, "key"), E = $.strictNullHandling ? null : "") : (L = $.decoder(S.slice(0, q), o.decoder, d, "key"), E = e.maybeMap(
3705
- l(S.slice(q + 1), $),
3706
+ q === -1 ? (L = x.decoder(S, o.decoder, d, "key"), E = x.strictNullHandling ? null : "") : (L = x.decoder(S.slice(0, q), o.decoder, d, "key"), E = e.maybeMap(
3707
+ l(S.slice(q + 1), x),
3706
3708
  function(P) {
3707
- return $.decoder(P, o.decoder, d, "value");
3709
+ return x.decoder(P, o.decoder, d, "value");
3708
3710
  }
3709
- )), E && $.interpretNumericEntities && d === "iso-8859-1" && (E = s(E)), S.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
3710
- var B = r.call(x, L);
3711
- B && $.duplicates === "combine" ? x[L] = e.combine(x[L], E) : (!B || $.duplicates === "last") && (x[L] = E);
3711
+ )), E && x.interpretNumericEntities && d === "iso-8859-1" && (E = s(E)), S.indexOf("[]=") > -1 && (E = t(E) ? [E] : E);
3712
+ var B = r.call($, L);
3713
+ B && x.duplicates === "combine" ? $[L] = e.combine($[L], E) : (!B || x.duplicates === "last") && ($[L] = E);
3712
3714
  }
3713
- return x;
3714
- }, c = function(h, y, $, x) {
3715
- for (var p = x ? y : l(y, $), m = h.length - 1; m >= 0; --m) {
3715
+ return $;
3716
+ }, c = function(h, y, x, $) {
3717
+ for (var f = $ ? y : l(y, x), m = h.length - 1; m >= 0; --m) {
3716
3718
  var v, O = h[m];
3717
- if (O === "[]" && $.parseArrays)
3718
- v = $.allowEmptyArrays && (p === "" || $.strictNullHandling && p === null) ? [] : [].concat(p);
3719
+ if (O === "[]" && x.parseArrays)
3720
+ v = x.allowEmptyArrays && (f === "" || x.strictNullHandling && f === null) ? [] : [].concat(f);
3719
3721
  else {
3720
- v = $.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3721
- var T = O.charAt(0) === "[" && O.charAt(O.length - 1) === "]" ? O.slice(1, -1) : O, d = $.decodeDotInKeys ? T.replace(/%2E/g, ".") : T, S = parseInt(d, 10);
3722
- !$.parseArrays && d === "" ? v = { 0: p } : !isNaN(S) && O !== d && String(S) === d && S >= 0 && $.parseArrays && S <= $.arrayLimit ? (v = [], v[S] = p) : d !== "__proto__" && (v[d] = p);
3722
+ v = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3723
+ var T = O.charAt(0) === "[" && O.charAt(O.length - 1) === "]" ? O.slice(1, -1) : O, d = x.decodeDotInKeys ? T.replace(/%2E/g, ".") : T, S = parseInt(d, 10);
3724
+ !x.parseArrays && d === "" ? v = { 0: f } : !isNaN(S) && O !== d && String(S) === d && S >= 0 && x.parseArrays && S <= x.arrayLimit ? (v = [], v[S] = f) : d !== "__proto__" && (v[d] = f);
3723
3725
  }
3724
- p = v;
3726
+ f = v;
3725
3727
  }
3726
- return p;
3727
- }, u = function(y, $, x, p) {
3728
+ return f;
3729
+ }, u = function(y, x, $, f) {
3728
3730
  if (y) {
3729
- var m = x.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, O = /(\[[^[\]]*])/g, T = x.depth > 0 && v.exec(m), d = T ? m.slice(0, T.index) : m, S = [];
3731
+ var m = $.allowDots ? y.replace(/\.([^.[]+)/g, "[$1]") : y, v = /(\[[^[\]]*])/, O = /(\[[^[\]]*])/g, T = $.depth > 0 && v.exec(m), d = T ? m.slice(0, T.index) : m, S = [];
3730
3732
  if (d) {
3731
- if (!x.plainObjects && r.call(Object.prototype, d) && !x.allowPrototypes)
3733
+ if (!$.plainObjects && r.call(Object.prototype, d) && !$.allowPrototypes)
3732
3734
  return;
3733
3735
  S.push(d);
3734
3736
  }
3735
- for (var b = 0; x.depth > 0 && (T = O.exec(m)) !== null && b < x.depth; ) {
3736
- if (b += 1, !x.plainObjects && r.call(Object.prototype, T[1].slice(1, -1)) && !x.allowPrototypes)
3737
+ for (var b = 0; $.depth > 0 && (T = O.exec(m)) !== null && b < $.depth; ) {
3738
+ if (b += 1, !$.plainObjects && r.call(Object.prototype, T[1].slice(1, -1)) && !$.allowPrototypes)
3737
3739
  return;
3738
3740
  S.push(T[1]);
3739
3741
  }
3740
3742
  if (T) {
3741
- if (x.strictDepth === !0)
3742
- throw new RangeError("Input depth exceeded depth option of " + x.depth + " and strictDepth is true");
3743
+ if ($.strictDepth === !0)
3744
+ throw new RangeError("Input depth exceeded depth option of " + $.depth + " and strictDepth is true");
3743
3745
  S.push("[" + m.slice(T.index) + "]");
3744
3746
  }
3745
- return c(S, $, x, p);
3747
+ return c(S, x, $, f);
3746
3748
  }
3747
- }, f = function(y) {
3749
+ }, p = function(y) {
3748
3750
  if (!y)
3749
3751
  return o;
3750
3752
  if (typeof y.allowEmptyArrays < "u" && typeof y.allowEmptyArrays != "boolean")
@@ -3755,17 +3757,17 @@ function $s() {
3755
3757
  throw new TypeError("Decoder has to be a function.");
3756
3758
  if (typeof y.charset < "u" && y.charset !== "utf-8" && y.charset !== "iso-8859-1")
3757
3759
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3758
- var $ = typeof y.charset > "u" ? o.charset : y.charset, x = typeof y.duplicates > "u" ? o.duplicates : y.duplicates;
3759
- if (x !== "combine" && x !== "first" && x !== "last")
3760
+ var x = typeof y.charset > "u" ? o.charset : y.charset, $ = typeof y.duplicates > "u" ? o.duplicates : y.duplicates;
3761
+ if ($ !== "combine" && $ !== "first" && $ !== "last")
3760
3762
  throw new TypeError("The duplicates option must be either combine, first, or last");
3761
- var p = typeof y.allowDots > "u" ? y.decodeDotInKeys === !0 ? !0 : o.allowDots : !!y.allowDots;
3763
+ var f = typeof y.allowDots > "u" ? y.decodeDotInKeys === !0 ? !0 : o.allowDots : !!y.allowDots;
3762
3764
  return {
3763
- allowDots: p,
3765
+ allowDots: f,
3764
3766
  allowEmptyArrays: typeof y.allowEmptyArrays == "boolean" ? !!y.allowEmptyArrays : o.allowEmptyArrays,
3765
3767
  allowPrototypes: typeof y.allowPrototypes == "boolean" ? y.allowPrototypes : o.allowPrototypes,
3766
3768
  allowSparse: typeof y.allowSparse == "boolean" ? y.allowSparse : o.allowSparse,
3767
3769
  arrayLimit: typeof y.arrayLimit == "number" ? y.arrayLimit : o.arrayLimit,
3768
- charset: $,
3770
+ charset: x,
3769
3771
  charsetSentinel: typeof y.charsetSentinel == "boolean" ? y.charsetSentinel : o.charsetSentinel,
3770
3772
  comma: typeof y.comma == "boolean" ? y.comma : o.comma,
3771
3773
  decodeDotInKeys: typeof y.decodeDotInKeys == "boolean" ? y.decodeDotInKeys : o.decodeDotInKeys,
@@ -3773,7 +3775,7 @@ function $s() {
3773
3775
  delimiter: typeof y.delimiter == "string" || e.isRegExp(y.delimiter) ? y.delimiter : o.delimiter,
3774
3776
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3775
3777
  depth: typeof y.depth == "number" || y.depth === !1 ? +y.depth : o.depth,
3776
- duplicates: x,
3778
+ duplicates: $,
3777
3779
  ignoreQueryPrefix: y.ignoreQueryPrefix === !0,
3778
3780
  interpretNumericEntities: typeof y.interpretNumericEntities == "boolean" ? y.interpretNumericEntities : o.interpretNumericEntities,
3779
3781
  parameterLimit: typeof y.parameterLimit == "number" ? y.parameterLimit : o.parameterLimit,
@@ -3784,14 +3786,14 @@ function $s() {
3784
3786
  };
3785
3787
  };
3786
3788
  return ur = function(h, y) {
3787
- var $ = f(y);
3789
+ var x = p(y);
3788
3790
  if (h === "" || h === null || typeof h > "u")
3789
- return $.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3790
- for (var x = typeof h == "string" ? i(h, $) : h, p = $.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, m = Object.keys(x), v = 0; v < m.length; ++v) {
3791
- var O = m[v], T = u(O, x[O], $, typeof h == "string");
3792
- p = e.merge(p, T, $);
3791
+ return x.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3792
+ for (var $ = typeof h == "string" ? i(h, x) : h, f = x.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, m = Object.keys($), v = 0; v < m.length; ++v) {
3793
+ var O = m[v], T = u(O, $[O], x, typeof h == "string");
3794
+ f = e.merge(f, T, x);
3793
3795
  }
3794
- return $.allowSparse === !0 ? p : e.compact(p);
3796
+ return x.allowSparse === !0 ? f : e.compact(f);
3795
3797
  }, ur;
3796
3798
  }
3797
3799
  var fr, Yn;
@@ -3840,13 +3842,13 @@ function js() {
3840
3842
  "/",
3841
3843
  "?",
3842
3844
  "#"
3843
- ], u = 255, f = /^[+a-z0-9A-Z_-]{0,63}$/, h = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, y = {
3845
+ ], u = 255, p = /^[+a-z0-9A-Z_-]{0,63}$/, h = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, y = {
3844
3846
  javascript: !0,
3845
3847
  "javascript:": !0
3846
- }, $ = {
3848
+ }, x = {
3847
3849
  javascript: !0,
3848
3850
  "javascript:": !0
3849
- }, x = {
3851
+ }, $ = {
3850
3852
  http: !0,
3851
3853
  https: !0,
3852
3854
  ftp: !0,
@@ -3857,7 +3859,7 @@ function js() {
3857
3859
  "ftp:": !0,
3858
3860
  "gopher:": !0,
3859
3861
  "file:": !0
3860
- }, p = /* @__PURE__ */ vo();
3862
+ }, f = /* @__PURE__ */ vo();
3861
3863
  function m(d, S, b) {
3862
3864
  if (d && typeof d == "object" && d instanceof r)
3863
3865
  return d;
@@ -3873,7 +3875,7 @@ function js() {
3873
3875
  if (P = P.trim(), !b && d.split("#").length === 1) {
3874
3876
  var ae = s.exec(P);
3875
3877
  if (ae)
3876
- return this.path = P, this.href = P, this.pathname = ae[1], ae[2] ? (this.search = ae[2], S ? this.query = p.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : S && (this.search = "", this.query = {}), this;
3878
+ return this.path = P, this.href = P, this.pathname = ae[1], ae[2] ? (this.search = ae[2], S ? this.query = f.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : S && (this.search = "", this.query = {}), this;
3877
3879
  }
3878
3880
  var H = t.exec(P);
3879
3881
  if (H) {
@@ -3883,9 +3885,9 @@ function js() {
3883
3885
  }
3884
3886
  if (b || H || P.match(/^\/\/[^@/]+@[^@/]+/)) {
3885
3887
  var se = P.substr(0, 2) === "//";
3886
- se && !(H && $[H]) && (P = P.substr(2), this.slashes = !0);
3888
+ se && !(H && x[H]) && (P = P.substr(2), this.slashes = !0);
3887
3889
  }
3888
- if (!$[H] && (se || H && !x[H])) {
3890
+ if (!x[H] && (se || H && !$[H])) {
3889
3891
  for (var Z = -1, k = 0; k < c.length; k++) {
3890
3892
  var re = P.indexOf(c[k]);
3891
3893
  re !== -1 && (Z === -1 || re < Z) && (Z = re);
@@ -3901,10 +3903,10 @@ function js() {
3901
3903
  if (!U)
3902
3904
  for (var C = this.hostname.split(/\./), k = 0, I = C.length; k < I; k++) {
3903
3905
  var W = C[k];
3904
- if (W && !W.match(f)) {
3906
+ if (W && !W.match(p)) {
3905
3907
  for (var z = "", K = 0, ne = W.length; K < ne; K++)
3906
3908
  W.charCodeAt(K) > 127 ? z += "x" : z += W[K];
3907
- if (!z.match(f)) {
3909
+ if (!z.match(p)) {
3908
3910
  var J = C.slice(0, k), A = C.slice(k + 1), F = W.match(h);
3909
3911
  F && (J.push(F[1]), A.unshift(F[2])), A.length && (P = "/" + A.join(".") + P), this.hostname = J.join(".");
3910
3912
  break;
@@ -3926,7 +3928,7 @@ function js() {
3926
3928
  var oe = P.indexOf("#");
3927
3929
  oe !== -1 && (this.hash = P.substr(oe), P = P.slice(0, oe));
3928
3930
  var he = P.indexOf("?");
3929
- if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), S && (this.query = p.parse(this.query)), P = P.slice(0, he)) : S && (this.search = "", this.query = {}), P && (this.pathname = P), x[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3931
+ if (he !== -1 ? (this.search = P.substr(he), this.query = P.substr(he + 1), S && (this.query = f.parse(this.query)), P = P.slice(0, he)) : S && (this.search = "", this.query = {}), P && (this.pathname = P), $[D] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
3930
3932
  var _ = this.pathname || "", we = this.search || "";
3931
3933
  this.path = _ + we;
3932
3934
  }
@@ -3939,12 +3941,12 @@ function js() {
3939
3941
  var d = this.auth || "";
3940
3942
  d && (d = encodeURIComponent(d), d = d.replace(/%3A/i, ":"), d += "@");
3941
3943
  var S = this.protocol || "", b = this.pathname || "", q = this.hash || "", L = !1, E = "";
3942
- this.host ? L = d + this.host : this.hostname && (L = d + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = p.stringify(this.query, {
3944
+ this.host ? L = d + this.host : this.hostname && (L = d + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (L += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (E = f.stringify(this.query, {
3943
3945
  arrayFormat: "repeat",
3944
3946
  addQueryPrefix: !1
3945
3947
  }));
3946
3948
  var B = this.search || E && "?" + E || "";
3947
- return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || x[S]) && L !== !1 ? (L = "//" + (L || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : L || (L = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), b = b.replace(/[?#]/g, function(P) {
3949
+ return S && S.substr(-1) !== ":" && (S += ":"), this.slashes || (!S || $[S]) && L !== !1 ? (L = "//" + (L || ""), b && b.charAt(0) !== "/" && (b = "/" + b)) : L || (L = ""), q && q.charAt(0) !== "#" && (q = "#" + q), B && B.charAt(0) !== "?" && (B = "?" + B), b = b.replace(/[?#]/g, function(P) {
3948
3950
  return encodeURIComponent(P);
3949
3951
  }), B = B.replace("#", "%23"), S + L + b + B + q;
3950
3952
  };
@@ -3973,17 +3975,17 @@ function js() {
3973
3975
  var ae = B[P];
3974
3976
  ae !== "protocol" && (b[ae] = d[ae]);
3975
3977
  }
3976
- return x[b.protocol] && b.hostname && !b.pathname && (b.pathname = "/", b.path = b.pathname), b.href = b.format(), b;
3978
+ return $[b.protocol] && b.hostname && !b.pathname && (b.pathname = "/", b.path = b.pathname), b.href = b.format(), b;
3977
3979
  }
3978
3980
  if (d.protocol && d.protocol !== b.protocol) {
3979
- if (!x[d.protocol]) {
3981
+ if (!$[d.protocol]) {
3980
3982
  for (var H = Object.keys(d), D = 0; D < H.length; D++) {
3981
3983
  var se = H[D];
3982
3984
  b[se] = d[se];
3983
3985
  }
3984
3986
  return b.href = b.format(), b;
3985
3987
  }
3986
- if (b.protocol = d.protocol, !d.host && !$[d.protocol]) {
3988
+ if (b.protocol = d.protocol, !d.host && !x[d.protocol]) {
3987
3989
  for (var I = (d.pathname || "").split("/"); I.length && !(d.host = I.shift()); )
3988
3990
  ;
3989
3991
  d.host || (d.host = ""), d.hostname || (d.hostname = ""), I[0] !== "" && I.unshift(""), I.length < 2 && I.unshift(""), b.pathname = I.join("/");
@@ -3995,7 +3997,7 @@ function js() {
3995
3997
  }
3996
3998
  return b.slashes = b.slashes || d.slashes, b.href = b.format(), b;
3997
3999
  }
3998
- var re = b.pathname && b.pathname.charAt(0) === "/", R = d.host || d.pathname && d.pathname.charAt(0) === "/", N = R || re || b.host && d.pathname, U = N, C = b.pathname && b.pathname.split("/") || [], I = d.pathname && d.pathname.split("/") || [], W = b.protocol && !x[b.protocol];
4000
+ var re = b.pathname && b.pathname.charAt(0) === "/", R = d.host || d.pathname && d.pathname.charAt(0) === "/", N = R || re || b.host && d.pathname, U = N, C = b.pathname && b.pathname.split("/") || [], I = d.pathname && d.pathname.split("/") || [], W = b.protocol && !$[b.protocol];
3999
4001
  if (W && (b.hostname = "", b.port = null, b.host && (C[0] === "" ? C[0] = b.host : C.unshift(b.host)), b.host = "", d.protocol && (d.hostname = null, d.port = null, d.host && (I[0] === "" ? I[0] = d.host : I.unshift(d.host)), d.host = null), N = N && (I[0] === "" || C[0] === "")), R)
4000
4002
  b.host = d.host || d.host === "" ? d.host : b.host, b.hostname = d.hostname || d.hostname === "" ? d.hostname : b.hostname, b.search = d.search, b.query = d.query, C = I;
4001
4003
  else if (I.length)
@@ -4058,7 +4060,7 @@ var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "l
4058
4060
  }), this;
4059
4061
  }
4060
4062
  prepare(e, r) {
4061
- var u, f, h;
4063
+ var u, p, h;
4062
4064
  const t = {
4063
4065
  ...e,
4064
4066
  fullUrl: "",
@@ -4070,37 +4072,37 @@ var pr = js(), dr = /* @__PURE__ */ vo(), ws = (e) => typeof e == "object" && "l
4070
4072
  };
4071
4073
  if (t.queryString && t.queryString.length && (t.queryObj = t.queryString.reduce(Mr, {})), t.headers && t.headers.length) {
4072
4074
  const y = /^HTTP\/2/;
4073
- t.headersObj = t.headers.reduce(($, { name: x, value: p }) => {
4074
- const m = y.exec(t.httpVersion) ? x.toLocaleLowerCase() : x;
4075
+ t.headersObj = t.headers.reduce((x, { name: $, value: f }) => {
4076
+ const m = y.exec(t.httpVersion) ? $.toLocaleLowerCase() : $;
4075
4077
  return {
4076
- ...$,
4077
- [m]: p
4078
+ ...x,
4079
+ [m]: f
4078
4080
  };
4079
4081
  }, {});
4080
4082
  }
4081
4083
  t.cookies && t.cookies.length && (t.cookiesObj = t.cookies.reduceRight(
4082
- (y, { name: $, value: x }) => ({
4084
+ (y, { name: x, value: $ }) => ({
4083
4085
  ...y,
4084
- [$]: x
4086
+ [x]: $
4085
4087
  }),
4086
4088
  {}
4087
4089
  ));
4088
- const o = (u = t.cookies) == null ? void 0 : u.map(({ name: y, value: $ }) => r.harIsAlreadyEncoded ? `${y}=${$}` : `${encodeURIComponent(y)}=${encodeURIComponent($)}`);
4090
+ const o = (u = t.cookies) == null ? void 0 : u.map(({ name: y, value: x }) => r.harIsAlreadyEncoded ? `${y}=${x}` : `${encodeURIComponent(y)}=${encodeURIComponent(x)}`);
4089
4091
  switch (o != null && o.length && (t.allHeaders.cookie = o.join("; ")), t.postData.mimeType) {
4090
4092
  case "multipart/mixed":
4091
4093
  case "multipart/related":
4092
4094
  case "multipart/form-data":
4093
4095
  case "multipart/alternative":
4094
- if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", (f = t.postData) != null && f.params) {
4095
- const y = "---011000010111000001101001", $ = `${y}--`, x = `\r
4096
- `, p = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), m = (T) => T.replace(/\r?\n|\r/g, `\r
4096
+ if (t.postData.text = "", t.postData.mimeType = "multipart/form-data", (p = t.postData) != null && p.params) {
4097
+ const y = "---011000010111000001101001", x = `${y}--`, $ = `\r
4098
+ `, f = (T) => T.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), m = (T) => T.replace(/\r?\n|\r/g, `\r
4097
4099
  `), v = [`--${y}`];
4098
4100
  (h = t.postData) == null || h.params.forEach((T, d) => {
4099
4101
  const S = T.name, b = T.value || "", q = T.fileName || null, L = T.contentType || "application/octet-stream";
4100
4102
  q ? (v.push(
4101
- `Content-Disposition: form-data; name="${p(m(S))}"; filename="${q}"`
4102
- ), v.push(`Content-Type: ${L}`)) : v.push(`Content-Disposition: form-data; name="${p(m(S))}"`), v.push(""), v.push(m(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4103
- }), v.push(`--${$}`), t.postData.boundary = y, t.postData.text = v.join(x);
4103
+ `Content-Disposition: form-data; name="${f(m(S))}"; filename="${q}"`
4104
+ ), v.push(`Content-Type: ${L}`)) : v.push(`Content-Disposition: form-data; name="${f(m(S))}"`), v.push(""), v.push(m(b)), d !== t.postData.params.length - 1 && v.push(`--${y}`);
4105
+ }), v.push(`--${x}`), t.postData.boundary = y, t.postData.text = v.join($);
4104
4106
  const O = pe(t.headersObj, "content-type") || "content-type";
4105
4107
  t.headersObj[O] = `multipart/form-data; boundary=${y}`;
4106
4108
  }
@@ -4246,24 +4248,24 @@ const Os = ({
4246
4248
  examples: o
4247
4249
  }) => {
4248
4250
  var a, i, c;
4249
- const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4250
- var f, h, y, $, x, p, m, v;
4251
+ const s = (a = t.parameters) == null ? void 0 : a.filter((u) => u.in === "header").sort((u, p) => u.required && !p.required ? -1 : 1).map((u) => {
4252
+ var p, h, y, x, $, f, m, v;
4251
4253
  return {
4252
4254
  name: u.name,
4253
- defaultValue: ((f = u.schema) == null ? void 0 : f.default) ?? ((y = (h = u.examples) == null ? void 0 : h.find((O) => O.value)) == null ? void 0 : y.value) ?? "",
4255
+ defaultValue: ((p = u.schema) == null ? void 0 : p.default) ?? ((y = (h = u.examples) == null ? void 0 : h.find((O) => O.value)) == null ? void 0 : y.value) ?? "",
4254
4256
  defaultActive: u.required ?? !1,
4255
4257
  isRequired: u.required ?? !1,
4256
- enum: (($ = u.schema) == null ? void 0 : $.type) == "array" ? (p = (x = u.schema) == null ? void 0 : x.items) == null ? void 0 : p.enum : (m = u.schema) == null ? void 0 : m.enum,
4258
+ enum: ((x = u.schema) == null ? void 0 : x.type) == "array" ? (f = ($ = u.schema) == null ? void 0 : $.items) == null ? void 0 : f.enum : (m = u.schema) == null ? void 0 : m.enum,
4257
4259
  type: ((v = u.schema) == null ? void 0 : v.type) ?? "string"
4258
4260
  };
4259
- }), l = (i = t.parameters) == null ? void 0 : i.filter((u) => u.in === "query").sort((u, f) => u.required && !f.required ? -1 : 1).map((u) => {
4260
- var f, h, y, $, x;
4261
+ }), l = (i = t.parameters) == null ? void 0 : i.filter((u) => u.in === "query").sort((u, p) => u.required && !p.required ? -1 : 1).map((u) => {
4262
+ var p, h, y, x, $;
4261
4263
  return {
4262
4264
  name: u.name,
4263
4265
  defaultActive: u.required ?? !1,
4264
4266
  isRequired: u.required ?? !1,
4265
- enum: ((f = u.schema) == null ? void 0 : f.type) == "array" ? (y = (h = u.schema) == null ? void 0 : h.items) == null ? void 0 : y.enum : ($ = u.schema) == null ? void 0 : $.enum,
4266
- type: ((x = u.schema) == null ? void 0 : x.type) ?? "string"
4267
+ enum: ((p = u.schema) == null ? void 0 : p.type) == "array" ? (y = (h = u.schema) == null ? void 0 : h.items) == null ? void 0 : y.enum : (x = u.schema) == null ? void 0 : x.enum,
4268
+ type: (($ = u.schema) == null ? void 0 : $.type) ?? "string"
4267
4269
  };
4268
4270
  }), n = (c = t.parameters) == null ? void 0 : c.filter((u) => u.in === "path").map((u) => ({ name: u.name }));
4269
4271
  return /* @__PURE__ */ g.jsx(
@@ -4352,7 +4354,7 @@ const Os = ({
4352
4354
  $r(() => {
4353
4355
  u && (t == null || t(u));
4354
4356
  }, [u, t]);
4355
- const f = Cs(u), h = Rs(a == null ? void 0 : a.mediaType);
4357
+ const p = Cs(u), h = Rs(a == null ? void 0 : a.mediaType);
4356
4358
  return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4357
4359
  /* @__PURE__ */ g.jsxs(xo, { className: "p-0", children: [
4358
4360
  c != null && c.externalValue ? /* @__PURE__ */ g.jsx("div", { className: "p-2", children: /* @__PURE__ */ g.jsx(
@@ -4371,7 +4373,7 @@ const Os = ({
4371
4373
  noBackground: !0,
4372
4374
  copyable: !0,
4373
4375
  className: "[--scrollbar-color:gray] text-xs max-h-[500px] p-2",
4374
- code: f
4376
+ code: p
4375
4377
  }
4376
4378
  ) }),
4377
4379
  (c == null ? void 0 : c.description) && /* @__PURE__ */ g.jsx("div", { className: "border-t text-xs px-3 py-1.5 text-muted-foreground", children: c.description })
@@ -4384,10 +4386,10 @@ const Os = ({
4384
4386
  {
4385
4387
  className: "max-w-[200px]",
4386
4388
  value: o.toString(),
4387
- onChange: ($) => s(Number($.target.value)),
4388
- options: e.map(($, x) => ({
4389
- value: x.toString(),
4390
- label: $.mediaType
4389
+ onChange: (x) => s(Number(x.target.value)),
4390
+ options: e.map((x, $) => ({
4391
+ value: $.toString(),
4392
+ label: x.mediaType
4391
4393
  }))
4392
4394
  }
4393
4395
  ) : /* @__PURE__ */ g.jsx("span", { className: "font-mono text-[11px]", children: (y = e[0]) == null ? void 0 : y.mediaType }) }),
@@ -4396,10 +4398,10 @@ const Os = ({
4396
4398
  {
4397
4399
  className: "max-w-[180px]",
4398
4400
  value: l.toString(),
4399
- onChange: ($) => n(Number($.target.value)),
4400
- options: i.map(($, x) => ({
4401
- value: x.toString(),
4402
- label: $.summary || $.name || $.description || `Example ${x + 1}`
4401
+ onChange: (x) => n(Number(x.target.value)),
4402
+ options: i.map((x, $) => ({
4403
+ value: $.toString(),
4404
+ label: x.summary || x.name || x.description || `Example ${$ + 1}`
4403
4405
  }))
4404
4406
  }
4405
4407
  ) })
@@ -4522,7 +4524,7 @@ const Os = ({
4522
4524
  onSelectResponse: t
4523
4525
  }) => {
4524
4526
  var d;
4525
- const { input: o, type: s, options: l } = jr(), n = wr(As, { input: o, type: s }), a = vr(n), i = oo(e.method), [c, u] = No(), [, f] = eo(), [h, y] = ge(), $ = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", x = (d = e.requestBody) == null ? void 0 : d.content, p = /* @__PURE__ */ g.jsx(
4527
+ const { input: o, type: s, options: l } = jr(), n = wr(As, { input: o, type: s }), a = vr(n), i = oo(e.method), [c, u] = No(), [, p] = eo(), [h, y] = ge(), x = c.get("lang") ?? (l == null ? void 0 : l.examplesDefaultLanguage) ?? "shell", $ = (d = e.requestBody) == null ? void 0 : d.content, f = /* @__PURE__ */ g.jsx(
4526
4528
  ia,
4527
4529
  {
4528
4530
  path: e.path,
@@ -4536,11 +4538,11 @@ const Os = ({
4536
4538
  }
4537
4539
  )
4538
4540
  }
4539
- ), { selectedServer: m } = br(), v = to(() => {
4541
+ ), { selectedServer: m } = br(a.data.schema.servers), v = to(() => {
4540
4542
  var q;
4541
- const S = h ?? ((q = x == null ? void 0 : x[0]) != null && q.schema ? He(x[0].schema) : void 0), b = new Ss({
4543
+ const S = h ?? ((q = $ == null ? void 0 : $[0]) != null && q.schema ? He($[0].schema) : void 0), b = new Ss({
4542
4544
  method: e.method.toLocaleUpperCase(),
4543
- url: (m ?? a.data.schema.url ?? "") + e.path.replaceAll("{", ":").replaceAll("}", ""),
4545
+ url: m + e.path.replaceAll("{", ":").replaceAll("}", ""),
4544
4546
  postData: S ? {
4545
4547
  text: JSON.stringify(S, null, 2),
4546
4548
  mimeType: "application/json"
@@ -4552,15 +4554,15 @@ const Os = ({
4552
4554
  headersSize: 0,
4553
4555
  bodySize: 0
4554
4556
  });
4555
- return Es(b, $);
4557
+ return Es(b, x);
4556
4558
  }, [
4557
4559
  h,
4558
- x,
4560
+ $,
4559
4561
  e.method,
4560
4562
  e.path,
4561
4563
  m,
4562
4564
  a.data.schema.url,
4563
- $
4565
+ x
4564
4566
  ]), [O, T] = Os({ rootMargin: "200px 0px 200px 0px" });
4565
4567
  return /* @__PURE__ */ g.jsxs(
4566
4568
  "aside",
@@ -4573,15 +4575,15 @@ const Os = ({
4573
4575
  /* @__PURE__ */ g.jsxs("span", { className: "font-mono break-words", children: [
4574
4576
  /* @__PURE__ */ g.jsx("span", { className: le("font-semibold", i), children: e.method.toLocaleUpperCase() }),
4575
4577
  " ",
4576
- p
4578
+ f
4577
4579
  ] }),
4578
4580
  T && /* @__PURE__ */ g.jsx(
4579
4581
  Ps,
4580
4582
  {
4581
- server: a.data.schema.url ?? "",
4583
+ server: m,
4582
4584
  servers: a.data.schema.servers.map((S) => S.url),
4583
4585
  operation: e,
4584
- examples: x ?? void 0
4586
+ examples: $ ?? void 0
4585
4587
  }
4586
4588
  )
4587
4589
  ] }),
@@ -4589,7 +4591,7 @@ const Os = ({
4589
4591
  /* @__PURE__ */ g.jsx(xo, { className: "p-0", children: /* @__PURE__ */ g.jsx(bo, { children: /* @__PURE__ */ g.jsx(
4590
4592
  ao,
4591
4593
  {
4592
- language: $,
4594
+ language: x,
4593
4595
  noBackground: !0,
4594
4596
  className: "[--scrollbar-color:gray] text-xs max-h-[500px] p-2",
4595
4597
  code: v
@@ -4601,9 +4603,9 @@ const Os = ({
4601
4603
  et,
4602
4604
  {
4603
4605
  className: "self-start max-w-[150px]",
4604
- value: $,
4606
+ value: x,
4605
4607
  onChange: (S) => {
4606
- f(() => {
4608
+ p(() => {
4607
4609
  u((b) => (b.set("lang", S.target.value), b));
4608
4610
  });
4609
4611
  },
@@ -4613,10 +4615,10 @@ const Os = ({
4613
4615
  ] })
4614
4616
  ] })
4615
4617
  ] }),
4616
- T && x && /* @__PURE__ */ g.jsx(
4618
+ T && $ && /* @__PURE__ */ g.jsx(
4617
4619
  qs,
4618
4620
  {
4619
- content: x,
4621
+ content: $,
4620
4622
  onExampleChange: y
4621
4623
  }
4622
4624
  ),
@@ -4884,7 +4886,7 @@ const Os = ({
4884
4886
  var i, c, u;
4885
4887
  const t = ba(Ks, e), o = io(
4886
4888
  t.parameters ?? [],
4887
- (f) => f.in
4889
+ (p) => p.in
4888
4890
  ), s = xr(null), l = t.responses.at(0), [n, a] = ge(l == null ? void 0 : l.statusCode);
4889
4891
  return /* @__PURE__ */ g.jsxs(
4890
4892
  "div",
@@ -4911,10 +4913,10 @@ const Os = ({
4911
4913
  className: "max-w-full truncate flex cursor-pointer",
4912
4914
  onClick: () => {
4913
4915
  if (s.current) {
4914
- const f = document.createRange();
4915
- f.selectNodeContents(s.current);
4916
+ const p = document.createRange();
4917
+ p.selectNodeContents(s.current);
4916
4918
  const h = window.getSelection();
4917
- h == null || h.removeAllRanges(), h == null || h.addRange(f);
4919
+ h == null || h.removeAllRanges(), h == null || h.addRange(p);
4918
4920
  }
4919
4921
  },
4920
4922
  children: [
@@ -4932,20 +4934,20 @@ const Os = ({
4932
4934
  }
4933
4935
  ),
4934
4936
  t.parameters && t.parameters.length > 0 && /* @__PURE__ */ g.jsx(g.Fragment, { children: Vs.flatMap(
4935
- (f) => {
4937
+ (p) => {
4936
4938
  var h;
4937
- return (h = o[f]) != null && h.length ? /* @__PURE__ */ g.jsx(
4939
+ return (h = o[p]) != null && h.length ? /* @__PURE__ */ g.jsx(
4938
4940
  Ta,
4939
4941
  {
4940
4942
  id: t.slug,
4941
- parameters: o[f],
4942
- group: f
4943
+ parameters: o[p],
4944
+ group: p
4943
4945
  },
4944
- f
4946
+ p
4945
4947
  ) : [];
4946
4948
  }
4947
4949
  ) }),
4948
- ja((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (f) => /* @__PURE__ */ g.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4950
+ ja((u = (c = (i = t.requestBody) == null ? void 0 : i.content) == null ? void 0 : c.at(0)) == null ? void 0 : u.schema, (p) => /* @__PURE__ */ g.jsxs("div", { className: "mt-4 flex flex-col gap-4", children: [
4949
4951
  /* @__PURE__ */ g.jsx(
4950
4952
  Be,
4951
4953
  {
@@ -4955,7 +4957,7 @@ const Os = ({
4955
4957
  children: "Request Body"
4956
4958
  }
4957
4959
  ),
4958
- /* @__PURE__ */ g.jsx(Ge, { schema: f })
4960
+ /* @__PURE__ */ g.jsx(Ge, { schema: p })
4959
4961
  ] })),
4960
4962
  t.responses.length > 0 && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
4961
4963
  /* @__PURE__ */ g.jsx(
@@ -4970,32 +4972,32 @@ const Os = ({
4970
4972
  /* @__PURE__ */ g.jsxs(
4971
4973
  sa,
4972
4974
  {
4973
- onValueChange: (f) => a(f),
4975
+ onValueChange: (p) => a(p),
4974
4976
  value: n,
4975
4977
  children: [
4976
- t.responses.length > 1 && /* @__PURE__ */ g.jsx(la, { children: t.responses.map((f) => /* @__PURE__ */ g.jsx(
4978
+ t.responses.length > 1 && /* @__PURE__ */ g.jsx(la, { children: t.responses.map((p) => /* @__PURE__ */ g.jsx(
4977
4979
  ca,
4978
4980
  {
4979
- value: f.statusCode,
4980
- title: f.description ?? void 0,
4981
- children: f.statusCode
4981
+ value: p.statusCode,
4982
+ title: p.description ?? void 0,
4983
+ children: p.statusCode
4982
4984
  },
4983
- f.statusCode
4985
+ p.statusCode
4984
4986
  )) }),
4985
- /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((f) => {
4987
+ /* @__PURE__ */ g.jsx("ul", { className: "list-none m-0 px-0", children: t.responses.map((p) => {
4986
4988
  var h, y;
4987
4989
  return /* @__PURE__ */ g.jsx(
4988
4990
  ua,
4989
4991
  {
4990
- value: f.statusCode,
4992
+ value: p.statusCode,
4991
4993
  children: /* @__PURE__ */ g.jsx(
4992
4994
  Ge,
4993
4995
  {
4994
- schema: (y = (h = f.content) == null ? void 0 : h.find(($) => $.schema)) == null ? void 0 : y.schema
4996
+ schema: (y = (h = p.content) == null ? void 0 : h.find((x) => x.schema)) == null ? void 0 : y.schema
4995
4997
  }
4996
4998
  )
4997
4999
  },
4998
- f.statusCode
5000
+ p.statusCode
4999
5001
  );
5000
5002
  }) })
5001
5003
  ]
@@ -5094,6 +5096,9 @@ const Ks = rt(
5094
5096
  $untagged: Boolean
5095
5097
  ) {
5096
5098
  schema(input: $input, type: $type) {
5099
+ servers {
5100
+ url
5101
+ }
5097
5102
  description
5098
5103
  summary
5099
5104
  title
@@ -5119,12 +5124,14 @@ const Ks = rt(
5119
5124
  type: o,
5120
5125
  tag: e,
5121
5126
  untagged: r
5122
- }), { selectedServer: a } = br(), i = vr(n), c = i.data.schema.title, u = i.data.schema.summary, f = i.data.schema.description, h = ko(), y = i.data.schema.operations;
5127
+ }), a = vr(n), {
5128
+ data: { schema: i }
5129
+ } = a, { selectedServer: c } = br(i.servers), u = i.title, p = i.summary, h = i.description, y = ko(), x = i.operations;
5123
5130
  Ro();
5124
- const $ = u || (f ? Qs(f) : void 0);
5131
+ const $ = p || (h ? Qs(h) : void 0);
5125
5132
  return /* @__PURE__ */ g.jsxs("div", { className: "pt-[--padding-content-top]", children: [
5126
5133
  /* @__PURE__ */ g.jsxs(qo, { children: [
5127
- /* @__PURE__ */ g.jsx("title", { children: c }),
5134
+ /* @__PURE__ */ g.jsx("title", { children: u }),
5128
5135
  $ && /* @__PURE__ */ g.jsx("meta", { name: "description", content: $ })
5129
5136
  ] }),
5130
5137
  /* @__PURE__ */ g.jsxs(
@@ -5135,33 +5142,33 @@ const Ks = rt(
5135
5142
  /* @__PURE__ */ g.jsxs("div", { className: "flex", children: [
5136
5143
  /* @__PURE__ */ g.jsxs("div", { className: "flex-1", children: [
5137
5144
  /* @__PURE__ */ g.jsx(Fo, { children: "Overview" }),
5138
- /* @__PURE__ */ g.jsx(Be, { level: 1, id: "description", registerSidebarAnchor: !0, children: c })
5145
+ /* @__PURE__ */ g.jsx(Be, { level: 1, id: "description", registerSidebarAnchor: !0, children: u })
5139
5146
  ] }),
5140
5147
  /* @__PURE__ */ g.jsx("div", { children: Object.entries(s).length > 1 && /* @__PURE__ */ g.jsxs(
5141
5148
  Eo,
5142
5149
  {
5143
- onValueChange: (x) => h(s[x]),
5150
+ onValueChange: (f) => y(s[f]),
5144
5151
  defaultValue: l,
5145
5152
  children: [
5146
5153
  /* @__PURE__ */ g.jsx(Ao, { className: "w-[180px]", children: /* @__PURE__ */ g.jsx(Io, { placeholder: "Select version" }) }),
5147
- /* @__PURE__ */ g.jsx(Lo, { children: Object.entries(s).map(([x]) => /* @__PURE__ */ g.jsx(Uo, { value: x, children: x }, x)) })
5154
+ /* @__PURE__ */ g.jsx(Lo, { children: Object.entries(s).map(([f]) => /* @__PURE__ */ g.jsx(Uo, { value: f, children: f }, f)) })
5148
5155
  ]
5149
5156
  }
5150
5157
  ) })
5151
5158
  ] }),
5152
- /* @__PURE__ */ g.jsx(Re, { content: i.data.schema.description ?? "" })
5159
+ /* @__PURE__ */ g.jsx(Re, { content: i.description ?? "" })
5153
5160
  ]
5154
5161
  }
5155
5162
  ),
5156
5163
  /* @__PURE__ */ g.jsx("hr", {}),
5157
5164
  /* @__PURE__ */ g.jsx("div", { className: "my-4 flex items-center justify-end gap-4", children: /* @__PURE__ */ g.jsx($a, {}) }),
5158
- y.map((x) => /* @__PURE__ */ g.jsx(
5165
+ x.map((f) => /* @__PURE__ */ g.jsx(
5159
5166
  Ds,
5160
5167
  {
5161
- serverUrl: a ?? i.data.schema.url ?? "",
5162
- operationFragment: x
5168
+ serverUrl: c,
5169
+ operationFragment: f
5163
5170
  },
5164
- x.slug
5171
+ f.slug
5165
5172
  ))
5166
5173
  ] });
5167
5174
  };
@@ -5169,4 +5176,4 @@ export {
5169
5176
  xl as OperationList,
5170
5177
  Ks as OperationsFragment
5171
5178
  };
5172
- //# sourceMappingURL=OperationList-wzZNceUl.js.map
5179
+ //# sourceMappingURL=OperationList-B3VX94x4.js.map