zudoku 0.25.3 → 0.26.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 (162) hide show
  1. package/dist/cli/dev/handler.js +2 -2
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +28 -28
  4. package/dist/config/validators/icon-types.d.ts +1 -1
  5. package/dist/config/validators/validate.d.ts +12 -12
  6. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  7. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  8. package/dist/lib/plugins/openapi/OperationList.js +3 -0
  9. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  10. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  11. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  12. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -1
  13. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  14. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  15. package/dist/lib/plugins/openapi/Sidecar.js +9 -6
  16. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  17. package/dist/lib/plugins/openapi/SidecarBox.js +1 -1
  18. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  19. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -1
  20. package/dist/lib/plugins/openapi/SidecarExamples.js +7 -4
  21. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  22. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
  23. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  24. package/dist/lib/ui/Badge.d.ts +1 -1
  25. package/dist/lib/ui/Badge.js +1 -0
  26. package/dist/lib/ui/Badge.js.map +1 -1
  27. package/dist/vite/config.test.js +5 -1
  28. package/dist/vite/config.test.js.map +1 -1
  29. package/lib/{AnchorLink-DFZZbmvr.js → AnchorLink-_Vu02ceN.js} +3 -3
  30. package/lib/{AnchorLink-DFZZbmvr.js.map → AnchorLink-_Vu02ceN.js.map} +1 -1
  31. package/lib/{AuthenticationPlugin-D7G3me8L.js → AuthenticationPlugin-DNXBcsVN.js} +4 -4
  32. package/lib/{AuthenticationPlugin-D7G3me8L.js.map → AuthenticationPlugin-DNXBcsVN.js.map} +1 -1
  33. package/lib/{Button-DeAoTouo.js → Button-oroWHXAy.js} +3 -3
  34. package/lib/{Button-DeAoTouo.js.map → Button-oroWHXAy.js.map} +1 -1
  35. package/lib/{CategoryHeading-CBconmtI.js → CategoryHeading-MYL1u_6K.js} +3 -3
  36. package/lib/{CategoryHeading-CBconmtI.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
  37. package/lib/{Command-9x_kZHr4.js → Command-D5DE0DD7.js} +136 -136
  38. package/lib/Command-D5DE0DD7.js.map +1 -0
  39. package/lib/{Markdown-CZDLNOFc.js → Markdown-BrfrjEk_.js} +1041 -1041
  40. package/lib/{Markdown-CZDLNOFc.js.map → Markdown-BrfrjEk_.js.map} +1 -1
  41. package/lib/{MdxPage-DKMbBROv.js → MdxPage-LNZLj_A5.js} +24 -24
  42. package/lib/{MdxPage-DKMbBROv.js.map → MdxPage-LNZLj_A5.js.map} +1 -1
  43. package/lib/{OperationList-B8bHMKme.js → OperationList-PCwzTp1r.js} +1489 -1473
  44. package/lib/OperationList-PCwzTp1r.js.map +1 -0
  45. package/lib/{Route-DYwKZ_c_.js → Route-Pzk6qwIk.js} +5 -5
  46. package/lib/{Route-DYwKZ_c_.js.map → Route-Pzk6qwIk.js.map} +1 -1
  47. package/lib/{Select-B_IxRUUC.js → Select-DkOpAG0c.js} +36 -36
  48. package/lib/{Select-B_IxRUUC.js.map → Select-DkOpAG0c.js.map} +1 -1
  49. package/lib/{SlotletProvider-pfc9oejW.js → SlotletProvider-DPbx9KdU.js} +53 -53
  50. package/lib/{SlotletProvider-pfc9oejW.js.map → SlotletProvider-DPbx9KdU.js.map} +1 -1
  51. package/lib/{Spinner-DuxJLLNE.js → Spinner-C5gHXrVz.js} +2 -2
  52. package/lib/{Spinner-DuxJLLNE.js.map → Spinner-C5gHXrVz.js.map} +1 -1
  53. package/lib/{SyntaxHighlight-Bz-lOJtH.js → SyntaxHighlight-CJCSPG1F.js} +297 -301
  54. package/lib/{SyntaxHighlight-Bz-lOJtH.js.map → SyntaxHighlight-CJCSPG1F.js.map} +1 -1
  55. package/lib/{ZudokuContext-hmLMUdf2.js → ZudokuContext-D3ayHjP-.js} +357 -356
  56. package/lib/ZudokuContext-D3ayHjP-.js.map +1 -0
  57. package/lib/{chunk-D52XG6IA-Dl7HLe6j.js → chunk-SYFQ2XB5-KWlHsT7t.js} +407 -410
  58. package/lib/chunk-SYFQ2XB5-KWlHsT7t.js.map +1 -0
  59. package/lib/context-rwLGh-6_.js +22 -0
  60. package/lib/{context-h_UkBLvr.js.map → context-rwLGh-6_.js.map} +1 -1
  61. package/lib/{createServer-BznDkeSA.js → createServer-BcaswoFO.js} +1274 -1286
  62. package/lib/createServer-BcaswoFO.js.map +1 -0
  63. package/lib/{hook-CHq7pFyz.js → hook-DUyACbIK.js} +17 -17
  64. package/lib/{hook-CHq7pFyz.js.map → hook-DUyACbIK.js.map} +1 -1
  65. package/lib/{index-sD8L1_Dl.js → index-CaILD1AV.js} +132 -132
  66. package/lib/{index-sD8L1_Dl.js.map → index-CaILD1AV.js.map} +1 -1
  67. package/lib/index-Djenk2Hj.js +36 -0
  68. package/lib/{index-CPNSgwSb.js.map → index-Djenk2Hj.js.map} +1 -1
  69. package/lib/{index-CBXSgjaE.js → index-Dl3Yl0yb.js} +65 -69
  70. package/lib/index-Dl3Yl0yb.js.map +1 -0
  71. package/lib/{index.esm-BSV1C092.js → index.esm-9-TF9KQB.js} +52 -52
  72. package/lib/{index.esm-BSV1C092.js.map → index.esm-9-TF9KQB.js.map} +1 -1
  73. package/lib/index.esm-CrSoEshU.js +1207 -0
  74. package/lib/index.esm-CrSoEshU.js.map +1 -0
  75. package/lib/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +135 -135
  76. package/lib/{jsx-runtime-Dx-03ztt.js.map → jsx-runtime-Bdg6XQ1m.js.map} +1 -1
  77. package/lib/post-processors/removeExtensions.js +3 -3
  78. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  79. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  80. package/lib/{prism-csharp.min-DUwvItt4.js → prism-csharp.min-bQAo2pmx.js} +33 -33
  81. package/lib/{prism-csharp.min-DUwvItt4.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  82. package/lib/{prism-java.min-BtgBR4yd.js → prism-java.min-BpvsOuIa.js} +12 -12
  83. package/lib/{prism-java.min-BtgBR4yd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  84. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  85. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  86. package/lib/{prism-ruby.min-DeDXCp1r.js → prism-ruby.min-Dx9KO9ds.js} +16 -16
  87. package/lib/{prism-ruby.min-DeDXCp1r.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  88. package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
  89. package/lib/state-mM7uaXTW.js +202 -0
  90. package/lib/state-mM7uaXTW.js.map +1 -0
  91. package/lib/ui/Accordion.js +1 -1
  92. package/lib/ui/ActionButton.js +3 -3
  93. package/lib/ui/Alert.js +2 -2
  94. package/lib/ui/AlertDialog.js +1 -1
  95. package/lib/ui/Badge.js +3 -2
  96. package/lib/ui/Badge.js.map +1 -1
  97. package/lib/ui/Breadcrumb.js +1 -1
  98. package/lib/ui/Button.js +2 -2
  99. package/lib/ui/Callout.js +1 -1
  100. package/lib/ui/Card.js +1 -1
  101. package/lib/ui/Carousel.js +3 -3
  102. package/lib/ui/Carousel.js.map +1 -1
  103. package/lib/ui/Checkbox.js +2 -2
  104. package/lib/ui/Command.js +2 -2
  105. package/lib/ui/Dialog.js +1 -1
  106. package/lib/ui/Drawer.js +520 -519
  107. package/lib/ui/Drawer.js.map +1 -1
  108. package/lib/ui/DropdownMenu.js +1 -1
  109. package/lib/ui/Form.js +2 -2
  110. package/lib/ui/HoverCard.js +1 -1
  111. package/lib/ui/Input.js +1 -1
  112. package/lib/ui/Label.js +2 -2
  113. package/lib/ui/Pagination.js +7 -7
  114. package/lib/ui/Popover.js +1 -1
  115. package/lib/ui/Progress.js +1 -1
  116. package/lib/ui/RadioGroup.js +1 -1
  117. package/lib/ui/ScrollArea.js +1 -1
  118. package/lib/ui/Select.js +1 -1
  119. package/lib/ui/Skeleton.js +1 -1
  120. package/lib/ui/Slider.js +1 -1
  121. package/lib/ui/Switch.js +1 -1
  122. package/lib/ui/Tabs.js +1 -1
  123. package/lib/ui/Textarea.js +1 -1
  124. package/lib/ui/Toggle.js +2 -2
  125. package/lib/ui/ToggleGroup.js +1 -1
  126. package/lib/ui/Tooltip.js +1 -1
  127. package/lib/{useExposedProps-DE9lR6MF.js → useExposedProps-BBHR7aLM.js} +2 -2
  128. package/lib/{useExposedProps-DE9lR6MF.js.map → useExposedProps-BBHR7aLM.js.map} +1 -1
  129. package/lib/zudoku.auth-auth0.js +1 -1
  130. package/lib/zudoku.auth-clerk.js +18 -18
  131. package/lib/zudoku.auth-openid.js +5 -5
  132. package/lib/zudoku.components.js +492 -477
  133. package/lib/zudoku.components.js.map +1 -1
  134. package/lib/zudoku.plugin-api-catalog.js +5 -5
  135. package/lib/zudoku.plugin-api-keys.js +7 -7
  136. package/lib/zudoku.plugin-custom-pages.js +3 -3
  137. package/lib/zudoku.plugin-markdown.js +2 -2
  138. package/lib/zudoku.plugin-openapi.js +5 -5
  139. package/lib/zudoku.plugin-redirect.js +1 -1
  140. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  141. package/package.json +48 -48
  142. package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
  143. package/src/lib/plugins/openapi/OperationList.tsx +4 -0
  144. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -5
  145. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +8 -2
  146. package/src/lib/plugins/openapi/Sidecar.tsx +14 -7
  147. package/src/lib/plugins/openapi/SidecarBox.tsx +1 -1
  148. package/src/lib/plugins/openapi/SidecarExamples.tsx +14 -6
  149. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
  150. package/src/lib/ui/Badge.tsx +1 -0
  151. package/lib/Command-9x_kZHr4.js.map +0 -1
  152. package/lib/OperationList-B8bHMKme.js.map +0 -1
  153. package/lib/ZudokuContext-hmLMUdf2.js.map +0 -1
  154. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +0 -1
  155. package/lib/context-h_UkBLvr.js +0 -22
  156. package/lib/createServer-BznDkeSA.js.map +0 -1
  157. package/lib/index-CBXSgjaE.js.map +0 -1
  158. package/lib/index-CPNSgwSb.js +0 -36
  159. package/lib/index.esm-BnnBRKJX.js +0 -1214
  160. package/lib/index.esm-BnnBRKJX.js.map +0 -1
  161. package/lib/state-CFQsUZUP.js +0 -202
  162. package/lib/state-CFQsUZUP.js.map +0 -1
@@ -2,39 +2,39 @@ var Se = Object.defineProperty;
2
2
  var oe = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var $e = (t, a, n) => a in t ? Se(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n;
6
- var H = (t, a, n) => $e(t, typeof a != "symbol" ? a + "" : a, n), Te = (t, a, n) => a.has(t) || oe("Cannot " + n);
7
- var J = (t, a, n) => (Te(t, a, "read from private field"), n ? n.call(t) : a.get(t)), Q = (t, a, n) => a.has(t) ? oe("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(t) : a.set(t, n);
8
- import { j as e } from "./jsx-runtime-Dx-03ztt.js";
9
- import { m as Pe } from "./chunk-D52XG6IA-Dl7HLe6j.js";
10
- import { i as ke, j as le, k as Oe } from "./ZudokuContext-hmLMUdf2.js";
5
+ var $e = (t, n, a) => n in t ? Se(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a;
6
+ var H = (t, n, a) => $e(t, typeof n != "symbol" ? n + "" : n, a), Te = (t, n, a) => n.has(t) || oe("Cannot " + a);
7
+ var J = (t, n, a) => (Te(t, n, "read from private field"), a ? a.call(t) : n.get(t)), Q = (t, n, a) => n.has(t) ? oe("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, a);
8
+ import { j as e } from "./jsx-runtime-Bdg6XQ1m.js";
9
+ import { m as Pe } from "./chunk-SYFQ2XB5-KWlHsT7t.js";
10
+ import { i as ke, j as le, k as Oe } from "./ZudokuContext-D3ayHjP-.js";
11
11
  import { XIcon as qe, EraserIcon as ye, Check as Ie, ChevronsUpDownIcon as Ee, LogInIcon as Ve, CirclePlayIcon as Re } from "lucide-react";
12
- import { u as ze } from "./hook-CHq7pFyz.js";
12
+ import { u as ze } from "./hook-DUyACbIK.js";
13
13
  import { Button as C } from "./ui/Button.js";
14
14
  import { Z as Ae } from "./invariant-Caa8-XvF.js";
15
15
  import { VisuallyHidden as _e } from "@radix-ui/react-visually-hidden";
16
16
  import * as v from "react";
17
17
  import { useRef as ge, useEffect as ve, useState as _, useTransition as Fe, Fragment as U } from "react";
18
- import { C as Le, a as De, b as Me, c as He, d as Je, D as Qe, e as Ue, f as Be, g as Ge } from "./Command-9x_kZHr4.js";
19
- import { u as We, S as ie, a as ce, b as de, c as me, e as B } from "./Select-B_IxRUUC.js";
20
- import { b as ee, C as w, u as Ze, a as Ke, F as Xe } from "./index.esm-BnnBRKJX.js";
21
- import { a as Ye } from "./state-CFQsUZUP.js";
22
- import { S as ue } from "./Spinner-DuxJLLNE.js";
18
+ import { C as Le, a as De, b as Me, c as He, d as Je, D as Qe, e as Ue, f as Be, g as Ge } from "./Command-D5DE0DD7.js";
19
+ import { u as We, S as ie, a as ce, b as de, c as me, e as B } from "./Select-DkOpAG0c.js";
20
+ import { b as ee, C as w, u as Ze, a as Ke, F as Xe } from "./index.esm-CrSoEshU.js";
21
+ import { a as Ye } from "./state-mM7uaXTW.js";
22
+ import { S as ue } from "./Spinner-C5gHXrVz.js";
23
23
  import { Callout as et } from "./ui/Callout.js";
24
- import { Card as X, CardHeader as tt, CardTitle as at, CardContent as nt } from "./ui/Card.js";
24
+ import { Card as X, CardHeader as tt, CardTitle as nt, CardContent as at } from "./ui/Card.js";
25
25
  import { Tabs as pe, TabsList as he, TabsTrigger as q, TabsContent as I } from "./ui/Tabs.js";
26
- import { z as st, S as rt } from "./SyntaxHighlight-Bz-lOJtH.js";
26
+ import { z as st, S as rt } from "./SyntaxHighlight-CJCSPG1F.js";
27
27
  import { c as h } from "./cn-qaFjX9_3.js";
28
28
  import { Input as F } from "./ui/Input.js";
29
29
  import * as Y from "@radix-ui/react-checkbox";
30
- import { c as ot } from "./index-CPNSgwSb.js";
30
+ import { c as ot } from "./index-Djenk2Hj.js";
31
31
  import { Popover as lt, PopoverTrigger as it, PopoverContent as ct } from "./ui/Popover.js";
32
32
  import { Slot as dt } from "@radix-ui/react-slot";
33
33
  class E extends String {
34
- constructor(n, r) {
35
- super(n);
34
+ constructor(a, r) {
35
+ super(a);
36
36
  H(this, "__apiType");
37
- this.value = n, this.__meta__ = r;
37
+ this.value = a, this.__meta__ = r;
38
38
  }
39
39
  toString() {
40
40
  return this.value;
@@ -232,24 +232,24 @@ function yt(t) {
232
232
  }
233
233
  let G;
234
234
  const gt = (t) => {
235
- var a;
236
- if ((a = t.errors) != null && a[0])
235
+ var n;
236
+ if ((n = t.errors) != null && n[0])
237
237
  throw new Ae(t.errors[0].message, {
238
238
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
239
239
  });
240
240
  };
241
241
  var L, D;
242
242
  class vt {
243
- constructor(a) {
244
- Q(this, L, async () => (G || (G = import("./createServer-BznDkeSA.js").then(
245
- (a) => a.createServer(this.config)
243
+ constructor(n) {
244
+ Q(this, L, async () => (G || (G = import("./createServer-BcaswoFO.js").then(
245
+ (n) => n.createServer(this.config)
246
246
  )), G));
247
- Q(this, D, async (a) => this.config.server ? fetch(this.config.server, a) : (await J(this, L).call(this)).fetch("http://localhost/graphql", a));
248
- H(this, "fetch", async (a, ...[n]) => {
247
+ Q(this, D, async (n) => this.config.server ? fetch(this.config.server, n) : (await J(this, L).call(this)).fetch("http://localhost/graphql", n));
248
+ H(this, "fetch", async (n, ...[a]) => {
249
249
  var c;
250
- const r = (c = a.match(/query (\w+)/)) == null ? void 0 : c[1], l = await J(this, D).call(this, {
250
+ const r = (c = n.match(/query (\w+)/)) == null ? void 0 : c[1], l = await J(this, D).call(this, {
251
251
  method: "POST",
252
- body: JSON.stringify({ query: a, variables: n, operationName: r }),
252
+ body: JSON.stringify({ query: n, variables: a, operationName: r }),
253
253
  headers: { "Content-Type": "application/json" }
254
254
  });
255
255
  if (!l.ok)
@@ -257,39 +257,39 @@ class vt {
257
257
  const o = await l.json();
258
258
  return gt(o), o.data;
259
259
  });
260
- this.config = a;
260
+ this.config = n;
261
261
  }
262
262
  }
263
263
  L = new WeakMap(), D = new WeakMap();
264
264
  const W = (t) => Math.abs(
265
265
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
266
- ), Z = (t) => t.length > 1 ? parseInt(t.split("").reduce((a, n) => `${W(a) + W(n)}`)) : W(t), xe = (t, a = {}) => {
267
- const n = (3 * Z(t) + 2 * Z(t) + Z(t)) % 360, { saturation: r = 75, lightness: l = 60 } = a;
268
- return `${n}deg ${r}% ${l}%`;
266
+ ), Z = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, a) => `${W(n) + W(a)}`)) : W(t), xe = (t, n = {}) => {
267
+ const a = (3 * Z(t) + 2 * Z(t) + Z(t)) % 360, { saturation: r = 75, lightness: l = 60 } = n;
268
+ return `${a}deg ${r}% ${l}%`;
269
269
  }, K = "data-linked-param", je = (t) => {
270
- const { resolvedTheme: a } = st();
270
+ const { resolvedTheme: n } = st();
271
271
  return {
272
272
  text: xe(
273
273
  t,
274
- a === "light" ? { saturation: 95, lightness: 38 } : {}
274
+ n === "light" ? { saturation: 95, lightness: 38 } : {}
275
275
  ),
276
276
  background: xe(
277
277
  t,
278
- a === "light" ? { saturation: 85, lightness: 40 } : {}
278
+ n === "light" ? { saturation: 85, lightness: 40 } : {}
279
279
  )
280
280
  };
281
281
  }, jt = (t) => {
282
- const a = t.replace(/[{}]/g, "");
283
- return je(a);
282
+ const n = t.replace(/[{}]/g, "");
283
+ return je(n);
284
284
  }, be = ({
285
285
  name: t,
286
- className: a,
287
- slug: n,
286
+ className: n,
287
+ slug: a,
288
288
  title: r,
289
289
  children: l,
290
290
  onClick: o
291
291
  }) => {
292
- const c = ge(null), d = n == null ? void 0 : n.replace(/[{}]/g, ""), i = t.replace(/[{}]/g, ""), { text: m, background: u } = je(i), g = `hsl(${m} / 100%)`, j = `hsl(${u} / 10%)`, b = `hsl(${u} / 50%)`;
292
+ const c = ge(null), d = a == null ? void 0 : a.replace(/[{}]/g, ""), i = t.replace(/[{}]/g, ""), { text: m, background: u } = je(i), g = `hsl(${m} / 100%)`, j = `hsl(${u} / 10%)`, b = `hsl(${u} / 50%)`;
293
293
  return ve(() => {
294
294
  if (!d || !c.current) return;
295
295
  const T = () => {
@@ -313,7 +313,7 @@ const W = (t) => Math.abs(
313
313
  "rounded-lg",
314
314
  "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
315
315
  "data-[active=true]:border-[--param-color] data-[active=true]:shadow data-[active=true]:-translate-y-px",
316
- a
316
+ n
317
317
  ),
318
318
  title: r,
319
319
  suppressHydrationWarning: !0,
@@ -327,28 +327,28 @@ const W = (t) => Math.abs(
327
327
  children: l ?? t
328
328
  }
329
329
  );
330
- }, bt = (t, a, n) => {
331
- const r = a.replace(/(:\w+|\{\w+})/g, (o) => {
330
+ }, bt = (t, n, a) => {
331
+ const r = n.replace(/(:\w+|\{\w+})/g, (o) => {
332
332
  var i;
333
333
  const c = o.replace(/[:{}]/g, "");
334
- return ((i = n.pathParams.find((m) => m.name === c)) == null ? void 0 : i.value) ?? o;
334
+ return ((i = a.pathParams.find((m) => m.name === c)) == null ? void 0 : i.value) ?? o;
335
335
  }), l = new URL(
336
336
  r.replace(/^\//, ""),
337
337
  t.endsWith("/") ? t : `${t}/`
338
338
  );
339
- return n.queryParams.filter((o) => o.active).forEach((o) => {
339
+ return a.queryParams.filter((o) => o.active).forEach((o) => {
340
340
  l.searchParams.set(o.name, o.value);
341
341
  }), l;
342
342
  }, Nt = ({
343
343
  control: t,
344
- register: a
344
+ register: n
345
345
  }) => {
346
- const { fields: n, append: r, remove: l } = ee({
346
+ const { fields: a, append: r, remove: l } = ee({
347
347
  control: t,
348
348
  name: "headers"
349
349
  });
350
350
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
351
- /* @__PURE__ */ e.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ e.jsx("tbody", { children: n.map((o, c) => /* @__PURE__ */ e.jsxs(
351
+ /* @__PURE__ */ e.jsx("table", { className: "w-full [&_td]:border [&_td]:p-1.5 [&_td]:px-2", children: /* @__PURE__ */ e.jsx("tbody", { children: a.map((o, c) => /* @__PURE__ */ e.jsxs(
352
352
  "tr",
353
353
  {
354
354
  className: "group has-[:focus]:bg-muted/50 hover:bg-muted/50",
@@ -356,7 +356,7 @@ const W = (t) => Math.abs(
356
356
  /* @__PURE__ */ e.jsx("td", { className: "flex gap-2 items-center", children: /* @__PURE__ */ e.jsx(
357
357
  F,
358
358
  {
359
- ...a(`headers.${c}.name`),
359
+ ...n(`headers.${c}.name`),
360
360
  placeholder: "Name",
361
361
  className: "border-0 shadow-none text-xs font-mono",
362
362
  autoComplete: "off"
@@ -368,7 +368,7 @@ const W = (t) => Math.abs(
368
368
  {
369
369
  placeholder: "Value",
370
370
  className: "border-0 shadow-none text-xs font-mono",
371
- ...a(`headers.${c}.value`),
371
+ ...n(`headers.${c}.value`),
372
372
  autoComplete: "off"
373
373
  }
374
374
  ),
@@ -401,64 +401,64 @@ const W = (t) => Math.abs(
401
401
  }
402
402
  ) })
403
403
  ] });
404
- }, te = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx(
404
+ }, te = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx(
405
405
  "div",
406
406
  {
407
- ref: n,
407
+ ref: a,
408
408
  className: h(
409
409
  "rounded-xl border bg-card text-card-foreground shadow-sm",
410
410
  t
411
411
  ),
412
- ...a
412
+ ...n
413
413
  }
414
414
  ));
415
415
  te.displayName = "Card";
416
- const wt = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx(
416
+ const wt = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx(
417
417
  "div",
418
418
  {
419
- ref: n,
419
+ ref: a,
420
420
  className: h("flex flex-col space-y-1.5 p-6", t),
421
- ...a
421
+ ...n
422
422
  }
423
423
  ));
424
424
  wt.displayName = "CardHeader";
425
- const Ct = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx(
425
+ const Ct = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx(
426
426
  "h3",
427
427
  {
428
- ref: n,
428
+ ref: a,
429
429
  className: h("font-semibold leading-none tracking-tight", t),
430
- ...a
430
+ ...n
431
431
  }
432
432
  ));
433
433
  Ct.displayName = "CardTitle";
434
- const St = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx(
434
+ const St = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx(
435
435
  "p",
436
436
  {
437
- ref: n,
437
+ ref: a,
438
438
  className: h("text-sm text-muted-foreground", t),
439
- ...a
439
+ ...n
440
440
  }
441
441
  ));
442
442
  St.displayName = "CardDescription";
443
- const $t = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx("div", { ref: n, className: h("p-6 pt-0", t), ...a }));
443
+ const $t = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx("div", { ref: a, className: h("p-6 pt-0", t), ...n }));
444
444
  $t.displayName = "CardContent";
445
- const Tt = v.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e.jsx(
445
+ const Tt = v.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e.jsx(
446
446
  "div",
447
447
  {
448
- ref: n,
448
+ ref: a,
449
449
  className: h("flex items-center p-6 pt-0", t),
450
- ...a
450
+ ...n
451
451
  }
452
452
  ));
453
453
  Tt.displayName = "CardFooter";
454
454
  const Pt = ({ name: t }) => {
455
- const a = jt(t);
455
+ const n = jt(t);
456
456
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center", children: [
457
457
  /* @__PURE__ */ e.jsx(
458
458
  "div",
459
459
  {
460
460
  className: "w-2 h-2 rounded-full",
461
- style: { backgroundColor: `hsl(${a})` }
461
+ style: { backgroundColor: `hsl(${n})` }
462
462
  }
463
463
  ),
464
464
  /* @__PURE__ */ e.jsx(
@@ -473,17 +473,17 @@ const Pt = ({ name: t }) => {
473
473
  }, kt = ({
474
474
  control: t
475
475
  }) => {
476
- const { fields: a } = ee({
476
+ const { fields: n } = ee({
477
477
  control: t,
478
478
  name: "pathParams"
479
479
  });
480
- return /* @__PURE__ */ e.jsx(te, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("table", { className: "w-full", children: /* @__PURE__ */ e.jsx("tbody", { children: a.map((n, r) => /* @__PURE__ */ e.jsxs("tr", { className: "hover:bg-accent/40", children: [
480
+ return /* @__PURE__ */ e.jsx(te, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("table", { className: "w-full", children: /* @__PURE__ */ e.jsx("tbody", { children: n.map((a, r) => /* @__PURE__ */ e.jsxs("tr", { className: "hover:bg-accent/40", children: [
481
481
  /* @__PURE__ */ e.jsx("td", { className: "w-5/12", children: /* @__PURE__ */ e.jsx(
482
482
  w,
483
483
  {
484
484
  control: t,
485
485
  name: `pathParams.${r}.value`,
486
- render: () => /* @__PURE__ */ e.jsx(Pt, { name: n.name })
486
+ render: () => /* @__PURE__ */ e.jsx(Pt, { name: a.name })
487
487
  }
488
488
  ) }),
489
489
  /* @__PURE__ */ e.jsx("td", { className: "w-7/12", children: /* @__PURE__ */ e.jsxs("div", { className: "flex justify-between items-center", children: [
@@ -527,7 +527,7 @@ const Pt = ({ name: t }) => {
527
527
  }
528
528
  )
529
529
  ] }) })
530
- ] }, n.id)) }) }) });
530
+ ] }, a.id)) }) }) });
531
531
  }, Ot = ot(
532
532
  "peer h-4 w-4 shrink-0 rounded-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
533
533
  {
@@ -541,12 +541,12 @@ const Pt = ({ name: t }) => {
541
541
  variant: "default"
542
542
  }
543
543
  }
544
- ), Ne = v.forwardRef(({ className: t, variant: a, ...n }, r) => /* @__PURE__ */ e.jsx(
544
+ ), Ne = v.forwardRef(({ className: t, variant: n, ...a }, r) => /* @__PURE__ */ e.jsx(
545
545
  Y.Root,
546
546
  {
547
547
  ref: r,
548
- className: h(Ot({ variant: a, className: t })),
549
- ...n,
548
+ className: h(Ot({ variant: n, className: t })),
549
+ ...a,
550
550
  children: /* @__PURE__ */ e.jsx(
551
551
  Y.Indicator,
552
552
  {
@@ -559,8 +559,8 @@ const Pt = ({ name: t }) => {
559
559
  Ne.displayName = Y.Root.displayName;
560
560
  const qt = ({
561
561
  value: t,
562
- enumValues: a,
563
- onChange: n,
562
+ enumValues: n,
563
+ onChange: a,
564
564
  onValueSelected: r
565
565
  }) => {
566
566
  const [l, o] = _(""), [c, d] = _(!1);
@@ -593,7 +593,7 @@ const qt = ({
593
593
  className: "h-9 bg-transparent ",
594
594
  onValueChange: o,
595
595
  onKeyDown: (i) => {
596
- i.key === "Enter" && (n(l), r(), d(!1));
596
+ i.key === "Enter" && (a(l), r(), d(!1));
597
597
  }
598
598
  }
599
599
  ),
@@ -603,12 +603,12 @@ const qt = ({
603
603
  l,
604
604
  '"'
605
605
  ] }),
606
- a.map((i) => /* @__PURE__ */ e.jsx(
606
+ n.map((i) => /* @__PURE__ */ e.jsx(
607
607
  Je,
608
608
  {
609
609
  value: i,
610
610
  onSelect: (m) => {
611
- n(m), r(), d(!1);
611
+ a(m), r(), d(!1);
612
612
  },
613
613
  children: i
614
614
  },
@@ -619,32 +619,32 @@ const qt = ({
619
619
  }
620
620
  )
621
621
  ] });
622
- }, It = (t, a) => {
623
- const n = v.forwardRef(({ className: r, asChild: l, ...o }, c) => {
622
+ }, It = (t, n) => {
623
+ const a = v.forwardRef(({ className: r, asChild: l, ...o }, c) => {
624
624
  const d = l ? dt : t;
625
625
  return v.createElement(d, {
626
626
  ...o,
627
627
  ref: c,
628
- className: h(a, r)
628
+ className: h(n, r)
629
629
  });
630
630
  });
631
- return n.displayName = `VariantComponent(${t})`, n;
631
+ return a.displayName = `VariantComponent(${t})`, a;
632
632
  }, Et = It(
633
633
  "input",
634
634
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
635
635
  ), Vt = ({
636
636
  control: t,
637
- queryParams: a
637
+ queryParams: n
638
638
  }) => {
639
- const { fields: n } = ee({
639
+ const { fields: a } = ee({
640
640
  control: t,
641
641
  name: "queryParams"
642
- }), r = Ze(), l = a.map((d) => !!d.isRequired), c = r.watch("identity") !== A;
643
- return /* @__PURE__ */ e.jsx(te, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("table", { className: "w-full", children: /* @__PURE__ */ e.jsx("tbody", { children: n.filter(
642
+ }), r = Ze(), l = n.map((d) => !!d.isRequired), c = r.watch("identity") !== A;
643
+ return /* @__PURE__ */ e.jsx(te, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("table", { className: "w-full", children: /* @__PURE__ */ e.jsx("tbody", { children: a.filter(
644
644
  // TODO remove this hack for Accu or make it more generic
645
645
  (d) => !(c && d.name === "apikey")
646
646
  ).map((d, i) => {
647
- const m = a.find(
647
+ const m = n.find(
648
648
  (u) => u.name === d.name
649
649
  );
650
650
  return /* @__PURE__ */ e.jsxs("tr", { className: "hover:bg-accent/40", children: [
@@ -750,8 +750,8 @@ const qt = ({
750
750
  }) }) }) });
751
751
  }, Rt = ({
752
752
  value: t,
753
- onChange: a,
754
- className: n,
753
+ onChange: n,
754
+ className: a,
755
755
  options: r,
756
756
  showChevrons: l = !0
757
757
  }) => /* @__PURE__ */ e.jsxs("div", { className: "grid", children: [
@@ -761,10 +761,10 @@ const qt = ({
761
761
  className: h(
762
762
  "row-start-1 col-start-1 border border-input text-foreground px-2 py-1 pe-6",
763
763
  "rounded-md appearance-none bg-zinc-50 hover:bg-white dark:bg-zinc-800 hover:dark:bg-zinc-800/75",
764
- n
764
+ a
765
765
  ),
766
766
  value: t,
767
- onChange: a,
767
+ onChange: n,
768
768
  children: r.map((o) => /* @__PURE__ */ e.jsx("option", { value: o.value, children: o.label }, o.value))
769
769
  }
770
770
  ),
@@ -779,8 +779,8 @@ const qt = ({
779
779
  }
780
780
  )
781
781
  ] }), zt = (t) => {
782
- var n;
783
- return (n = Object.entries({
782
+ var a;
783
+ return (a = Object.entries({
784
784
  "application/json": "json",
785
785
  "text/json": "json",
786
786
  "text/html": "html",
@@ -790,10 +790,10 @@ const qt = ({
790
790
  "application/xhtml+xml": "xhtml"
791
791
  }).find(
792
792
  ([r]) => t.includes(r)
793
- )) == null ? void 0 : n[1];
793
+ )) == null ? void 0 : a[1];
794
794
  }, At = (t) => {
795
- const a = t.get("Content-Type") || "";
796
- return zt(a);
795
+ const n = t.get("Content-Type") || "";
796
+ return zt(n);
797
797
  }, _t = (t) => {
798
798
  try {
799
799
  return JSON.stringify(JSON.parse(t), null, 2);
@@ -802,16 +802,16 @@ const qt = ({
802
802
  }
803
803
  }, Ft = ({
804
804
  body: t = "",
805
- headers: a
805
+ headers: n
806
806
  }) => {
807
- const n = At(a), r = _t(t), l = r || t, [o, c] = _(
807
+ const a = At(n), r = _t(t), l = r || t, [o, c] = _(
808
808
  r ? "formatted" : "raw"
809
809
  );
810
810
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
811
811
  /* @__PURE__ */ e.jsx(X, { className: "shadow-none", children: /* @__PURE__ */ e.jsx(
812
812
  rt,
813
813
  {
814
- language: o === "raw" ? r ? "plain" : n : "json",
814
+ language: o === "raw" ? r ? "plain" : a : "json",
815
815
  noBackground: !0,
816
816
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
817
817
  code: o === "raw" ? t : l
@@ -842,8 +842,8 @@ const qt = ({
842
842
  500: "Internal Server Error"
843
843
  }, Dt = ({
844
844
  server: t,
845
- servers: a,
846
- url: n,
845
+ servers: n,
846
+ url: a,
847
847
  method: r,
848
848
  headers: l = [],
849
849
  queryParams: o = [],
@@ -870,17 +870,17 @@ const qt = ({
870
870
  })),
871
871
  identity: A
872
872
  }
873
- }), x = T(), P = ke(), ae = ge(!1);
873
+ }), x = T(), P = ke(), ne = ge(!1);
874
874
  ve(() => {
875
875
  var y;
876
- if (ae.current) return;
876
+ if (ne.current) return;
877
877
  const s = (y = P.data) == null ? void 0 : y.at(0);
878
- s && (N("identity", s.id), ae.current = !0);
878
+ s && (N("identity", s.id), ne.current = !0);
879
879
  }, [N, P.data]);
880
880
  const f = We({
881
881
  mutationFn: async (s) => {
882
882
  var O, $;
883
- const y = bt(i ?? t, n, s), k = performance.now(), V = new Request(y, {
883
+ const y = bt(i ?? t, a, s), k = performance.now(), V = new Request(y, {
884
884
  method: r.toUpperCase(),
885
885
  headers: Object.fromEntries(
886
886
  s.headers.filter((p) => p.name).map((p) => [p.name, p.value])
@@ -905,7 +905,7 @@ const qt = ({
905
905
  ) : p;
906
906
  }
907
907
  }
908
- }), we = n.split("/").map((s, y, k) => {
908
+ }), we = a.split("/").map((s, y, k) => {
909
909
  var R;
910
910
  const V = s.startsWith("{") && s.endsWith("}") || s.startsWith(":"), O = s.replace(/[:{}]/g, ""), $ = (R = x.pathParams.find((z) => z.name === O)) == null ? void 0 : R.value, p = /* @__PURE__ */ e.jsx(
911
911
  be,
@@ -925,13 +925,13 @@ const qt = ({
925
925
  /* @__PURE__ */ e.jsx("wbr", {})
926
926
  ] }, s + y)
927
927
  );
928
- }), M = Array.from(((se = f.data) == null ? void 0 : se.headers.entries()) ?? []), ne = x.queryParams.filter((s) => s.active).map((s, y, k) => /* @__PURE__ */ e.jsxs(U, { children: [
928
+ }), M = Array.from(((se = f.data) == null ? void 0 : se.headers.entries()) ?? []), ae = x.queryParams.filter((s) => s.active).map((s, y, k) => /* @__PURE__ */ e.jsxs(U, { children: [
929
929
  s.name,
930
930
  "=",
931
931
  encodeURIComponent(s.value).replaceAll("%20", "+"),
932
932
  y < k.length - 1 && "&",
933
933
  /* @__PURE__ */ e.jsx("wbr", {})
934
- ] }, s.name)), Ce = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: a && a.length > 1 ? /* @__PURE__ */ e.jsxs(
934
+ ] }, s.name)), Ce = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: n && n.length > 1 ? /* @__PURE__ */ e.jsxs(
935
935
  ie,
936
936
  {
937
937
  onValueChange: (s) => {
@@ -942,7 +942,7 @@ const qt = ({
942
942
  value: i,
943
943
  children: [
944
944
  /* @__PURE__ */ e.jsx(ce, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto", children: /* @__PURE__ */ e.jsx(de, {}) }),
945
- /* @__PURE__ */ e.jsx(me, { children: a.map((s) => /* @__PURE__ */ e.jsx(B, { value: s, children: s.replace(/^https?:\/\//, "") }, s)) })
945
+ /* @__PURE__ */ e.jsx(me, { children: n.map((s) => /* @__PURE__ */ e.jsx(B, { value: s, children: s.replace(/^https?:\/\//, "") }, s)) })
946
946
  ]
947
947
  }
948
948
  ) : /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "") }) });
@@ -963,8 +963,8 @@ const qt = ({
963
963
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center flex-wrap p-2 font-mono text-xs", children: [
964
964
  Ce,
965
965
  we,
966
- ne.length > 0 ? "?" : "",
967
- ne
966
+ ae.length > 0 ? "?" : "",
967
+ ae
968
968
  ] })
969
969
  ] }),
970
970
  /* @__PURE__ */ e.jsx(C, { type: "submit", className: "h-auto flex gap-1", children: "Send" })
@@ -1037,8 +1037,8 @@ const qt = ({
1037
1037
  /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-8 bg-muted/70", children: f.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1038
1038
  x.pathParams.some((s) => s.value === "") && /* @__PURE__ */ e.jsx(et, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1039
1039
  /* @__PURE__ */ e.jsxs(X, { children: [
1040
- /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(at, { children: "Request failed" }) }),
1041
- /* @__PURE__ */ e.jsxs(nt, { children: [
1040
+ /* @__PURE__ */ e.jsx(tt, { children: /* @__PURE__ */ e.jsx(nt, { children: "Request failed" }) }),
1041
+ /* @__PURE__ */ e.jsxs(at, { children: [
1042
1042
  "Error:",
1043
1043
  " ",
1044
1044
  f.error.message || String(f.error) || "Unexpected error"
@@ -1096,7 +1096,7 @@ const qt = ({
1096
1096
  );
1097
1097
  }, Mt = ({
1098
1098
  className: t,
1099
- size: a = 16
1099
+ size: n = 16
1100
1100
  }) => /* @__PURE__ */ e.jsx(
1101
1101
  "svg",
1102
1102
  {
@@ -1104,8 +1104,8 @@ const qt = ({
1104
1104
  viewBox: "0 0 24 24",
1105
1105
  fill: "currentColor",
1106
1106
  className: t,
1107
- width: a,
1108
- height: a,
1107
+ width: n,
1108
+ height: n,
1109
1109
  children: /* @__PURE__ */ e.jsx(
1110
1110
  "path",
1111
1111
  {
@@ -1116,8 +1116,8 @@ const qt = ({
1116
1116
  )
1117
1117
  }
1118
1118
  ), Ht = (t) => {
1119
- const [a, n] = _(!1);
1120
- return /* @__PURE__ */ e.jsxs(Qe, { onOpenChange: (r) => n(r), children: [
1119
+ const [n, a] = _(!1);
1120
+ return /* @__PURE__ */ e.jsxs(Qe, { onOpenChange: (r) => a(r), children: [
1121
1121
  /* @__PURE__ */ e.jsx(Ue, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs("button", { className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80", children: [
1122
1122
  "Test",
1123
1123
  /* @__PURE__ */ e.jsx(Mt, { className: "", size: 14 })
@@ -1129,7 +1129,7 @@ const qt = ({
1129
1129
  "aria-describedby": void 0,
1130
1130
  children: [
1131
1131
  /* @__PURE__ */ e.jsx(_e, { children: /* @__PURE__ */ e.jsx(Ge, { children: "Playground" }) }),
1132
- a && /* @__PURE__ */ e.jsx(Dt, { ...t })
1132
+ n && /* @__PURE__ */ e.jsx(Dt, { ...t })
1133
1133
  ]
1134
1134
  }
1135
1135
  )
@@ -1161,8 +1161,8 @@ const qt = ({
1161
1161
  patch: "purple",
1162
1162
  options: "gray",
1163
1163
  head: "gray"
1164
- }, xa = (t) => {
1165
- const a = le(t.navigationId ?? "/reference"), n = t.type === "file" ? Object.keys(t.input) : [], r = new vt(t);
1164
+ }, fn = (t) => {
1165
+ const n = le(t.navigationId ?? "/reference"), a = t.type === "file" ? Object.keys(t.input) : [], r = new vt(t);
1166
1166
  return {
1167
1167
  getHead: () => {
1168
1168
  if (t.type === "url" && !t.skipPreload)
@@ -1222,10 +1222,10 @@ const qt = ({
1222
1222
  }
1223
1223
  }),
1224
1224
  getSidebar: async (l) => {
1225
- if (!Pe({ path: a, end: !1 }, l))
1225
+ if (!Pe({ path: n, end: !1 }, l))
1226
1226
  return [];
1227
1227
  try {
1228
- const o = n.find((i) => l === le(a, i)) ?? Object.keys(t.input).at(0), d = (await r.fetch(fe, {
1228
+ const o = a.find((i) => l === le(n, i)) ?? Object.keys(t.input).at(0), d = (await r.fetch(fe, {
1229
1229
  type: t.type,
1230
1230
  input: t.type === "file" ? t.input[o] : t.input,
1231
1231
  version: o
@@ -1254,16 +1254,16 @@ const qt = ({
1254
1254
  return [];
1255
1255
  }
1256
1256
  },
1257
- getRoutes: () => [null, ...n].map((o) => ({
1258
- path: a + (o ? `/${o}` : ""),
1257
+ getRoutes: () => [null, ...a].map((o) => ({
1258
+ path: n + (o ? `/${o}` : ""),
1259
1259
  async lazy() {
1260
- const { OpenApiRoute: c } = await import("./Route-DYwKZ_c_.js");
1260
+ const { OpenApiRoute: c } = await import("./Route-Pzk6qwIk.js");
1261
1261
  return {
1262
1262
  element: /* @__PURE__ */ e.jsx(
1263
1263
  c,
1264
1264
  {
1265
- basePath: a,
1266
- versions: n,
1265
+ basePath: n,
1266
+ versions: a,
1267
1267
  client: r,
1268
1268
  config: t
1269
1269
  }
@@ -1274,7 +1274,7 @@ const qt = ({
1274
1274
  {
1275
1275
  index: !0,
1276
1276
  async lazy() {
1277
- const { OperationList: c } = await import("./OperationList-B8bHMKme.js");
1277
+ const { OperationList: c } = await import("./OperationList-PCwzTp1r.js");
1278
1278
  return { element: /* @__PURE__ */ e.jsx(c, {}) };
1279
1279
  }
1280
1280
  }
@@ -1287,6 +1287,6 @@ export {
1287
1287
  Ht as P,
1288
1288
  Rt as S,
1289
1289
  yt as g,
1290
- xa as o
1290
+ fn as o
1291
1291
  };
1292
- //# sourceMappingURL=index-sD8L1_Dl.js.map
1292
+ //# sourceMappingURL=index-CaILD1AV.js.map