zudoku 0.53.5 → 0.54.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 (201) hide show
  1. package/dist/config/config.d.ts +1 -0
  2. package/dist/config/validators/InputNavigationSchema.d.ts +254 -158
  3. package/dist/config/validators/InputNavigationSchema.js +4 -1
  4. package/dist/config/validators/InputNavigationSchema.js.map +1 -1
  5. package/dist/config/validators/ProtectedRoutesSchema.d.ts +12 -0
  6. package/dist/config/validators/ProtectedRoutesSchema.js +19 -0
  7. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  8. package/dist/config/validators/icon-types.d.ts +1 -1
  9. package/dist/config/validators/icon-types.js +16 -0
  10. package/dist/config/validators/icon-types.js.map +1 -1
  11. package/dist/config/validators/validate.d.ts +32 -19
  12. package/dist/config/validators/validate.js +6 -2
  13. package/dist/config/validators/validate.js.map +1 -1
  14. package/dist/lib/authentication/components/CallbackHandler.js +11 -9
  15. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  16. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  17. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  18. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  19. package/dist/lib/authentication/errors.d.ts +6 -12
  20. package/dist/lib/authentication/errors.js +2 -1
  21. package/dist/lib/authentication/errors.js.map +1 -1
  22. package/dist/lib/authentication/hook.d.ts +1 -0
  23. package/dist/lib/authentication/hook.js.map +1 -1
  24. package/dist/lib/authentication/providers/azureb2c.js +4 -2
  25. package/dist/lib/authentication/providers/azureb2c.js.map +1 -1
  26. package/dist/lib/authentication/providers/clerk.js +4 -2
  27. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  28. package/dist/lib/authentication/providers/openid.js +3 -1
  29. package/dist/lib/authentication/providers/openid.js.map +1 -1
  30. package/dist/lib/components/Heading.js +1 -1
  31. package/dist/lib/components/Heading.js.map +1 -1
  32. package/dist/lib/components/MobileTopNavigation.js +5 -3
  33. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  34. package/dist/lib/components/TopNavigation.js +4 -3
  35. package/dist/lib/components/TopNavigation.js.map +1 -1
  36. package/dist/lib/components/context/ZudokuContext.js +21 -13
  37. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  38. package/dist/lib/components/navigation/NavigationItem.d.ts +1 -1
  39. package/dist/lib/components/navigation/NavigationItem.js +8 -1
  40. package/dist/lib/components/navigation/NavigationItem.js.map +1 -1
  41. package/dist/lib/components/navigation/utils.d.ts +3 -1
  42. package/dist/lib/components/navigation/utils.js +6 -3
  43. package/dist/lib/components/navigation/utils.js.map +1 -1
  44. package/dist/lib/core/RouteGuard.js +9 -9
  45. package/dist/lib/core/RouteGuard.js.map +1 -1
  46. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  47. package/dist/lib/core/ZudokuContext.js +13 -1
  48. package/dist/lib/core/ZudokuContext.js.map +1 -1
  49. package/dist/lib/core/plugins.d.ts +2 -1
  50. package/dist/lib/core/plugins.js.map +1 -1
  51. package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
  52. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  53. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +3 -1
  54. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  55. package/dist/lib/plugins/api-keys/index.d.ts +1 -0
  56. package/dist/lib/plugins/api-keys/index.js +3 -7
  57. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  58. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  59. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  60. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  61. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
  62. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  63. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  64. package/dist/lib/plugins/openapi/index.js +42 -10
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/ui/ActionButton.js +1 -1
  67. package/dist/lib/ui/ActionButton.js.map +1 -1
  68. package/dist/lib/ui/Badge.d.ts +1 -1
  69. package/dist/lib/ui/Button.d.ts +2 -2
  70. package/dist/lib/ui/Command.d.ts +1 -1
  71. package/dist/lib/util/invariant.d.ts +6 -5
  72. package/dist/lib/util/invariant.js +1 -1
  73. package/dist/lib/util/invariant.js.map +1 -1
  74. package/dist/vite/dev-server.js +1 -1
  75. package/dist/vite/dev-server.js.map +1 -1
  76. package/dist/vite/plugin-docs.js +15 -10
  77. package/dist/vite/plugin-docs.js.map +1 -1
  78. package/dist/vite/prerender/worker.js +5 -1
  79. package/dist/vite/prerender/worker.js.map +1 -1
  80. package/dist/vite/shadcn-registry.d.ts +8 -8
  81. package/lib/{Command-C9AC5cf-.js → Command-BYukybsa.js} +2 -2
  82. package/lib/{Command-C9AC5cf-.js.map → Command-BYukybsa.js.map} +1 -1
  83. package/lib/{Dialog-DMWw1doX.js → Dialog-u9Uz9sTt.js} +4 -4
  84. package/lib/{Dialog-DMWw1doX.js.map → Dialog-u9Uz9sTt.js.map} +1 -1
  85. package/lib/{MdxPage-DVI4iYgW.js → MdxPage-Bsko6_kb.js} +11 -11
  86. package/lib/{MdxPage-DVI4iYgW.js.map → MdxPage-Bsko6_kb.js.map} +1 -1
  87. package/lib/OAuthErrorPage-DJzGiIBt.js +150 -0
  88. package/lib/OAuthErrorPage-DJzGiIBt.js.map +1 -0
  89. package/lib/{OasProvider-CbwsKPNc.js → OasProvider-DQQRt3oS.js} +3 -3
  90. package/lib/{OasProvider-CbwsKPNc.js.map → OasProvider-DQQRt3oS.js.map} +1 -1
  91. package/lib/{OperationList-Bn9ggxw8.js → OperationList-DpmkHf26.js} +45 -43
  92. package/lib/{OperationList-Bn9ggxw8.js.map → OperationList-DpmkHf26.js.map} +1 -1
  93. package/lib/{Pagination-bavPec-z.js → Pagination-kqFNgtnI.js} +3 -3
  94. package/lib/{Pagination-bavPec-z.js.map → Pagination-kqFNgtnI.js.map} +1 -1
  95. package/lib/{RouteGuard-Vnlz_t51.js → RouteGuard-0wPUKdxJ.js} +166 -165
  96. package/lib/{RouteGuard-Vnlz_t51.js.map → RouteGuard-0wPUKdxJ.js.map} +1 -1
  97. package/lib/{SchemaList-DETyCVqu.js → SchemaList-DS-pMd6B.js} +8 -8
  98. package/lib/{SchemaList-DETyCVqu.js.map → SchemaList-DS-pMd6B.js.map} +1 -1
  99. package/lib/{SchemaView-Dvxo2RNe.js → SchemaView-BnN6WHjw.js} +4 -4
  100. package/lib/{SchemaView-Dvxo2RNe.js.map → SchemaView-BnN6WHjw.js.map} +1 -1
  101. package/lib/Select-BmTTKNPp.js +273 -0
  102. package/lib/Select-BmTTKNPp.js.map +1 -0
  103. package/lib/{SignUp-ClYhZq9H.js → SignUp-BwOSCD-6.js} +9 -9
  104. package/lib/{SignUp-ClYhZq9H.js.map → SignUp-BwOSCD-6.js.map} +1 -1
  105. package/lib/{Slot-B31yZlfB.js → Slot-DAyXieeZ.js} +1352 -1349
  106. package/lib/{Slot-B31yZlfB.js.map → Slot-DAyXieeZ.js.map} +1 -1
  107. package/lib/{SyntaxHighlight-bm761HDo.js → SyntaxHighlight-BMKR4pl6.js} +3 -3
  108. package/lib/{SyntaxHighlight-bm761HDo.js.map → SyntaxHighlight-BMKR4pl6.js.map} +1 -1
  109. package/lib/{Toc-D4oBWE8D.js → Toc-BKDRCQzU.js} +2 -2
  110. package/lib/{Toc-D4oBWE8D.js.map → Toc-BKDRCQzU.js.map} +1 -1
  111. package/lib/ZudokuContext-CLl5w57E.js +1278 -0
  112. package/lib/ZudokuContext-CLl5w57E.js.map +1 -0
  113. package/lib/{chunk-DQRVZFIR-DHK7_Ilc.js → chunk-QMGIS6GS-CEOk3lro.js} +3 -3
  114. package/lib/chunk-QMGIS6GS-CEOk3lro.js.map +1 -0
  115. package/lib/{circular-CRbFI6Zl.js → circular-8GWQDvCW.js} +2 -2
  116. package/lib/{circular-CRbFI6Zl.js.map → circular-8GWQDvCW.js.map} +1 -1
  117. package/lib/{createServer-DNyGJJNX.js → createServer-BsezSzvV.js} +5 -5
  118. package/lib/{createServer-DNyGJJNX.js.map → createServer-BsezSzvV.js.map} +1 -1
  119. package/lib/{errors-C1GlNcV3.js → errors-Cs7hKmdL.js} +11 -10
  120. package/lib/errors-Cs7hKmdL.js.map +1 -0
  121. package/lib/hook-DbUCLQNg.js +247 -0
  122. package/lib/hook-DbUCLQNg.js.map +1 -0
  123. package/lib/{index-D09PbNex.js → index-A5Qdwj1B.js} +1521 -1420
  124. package/lib/index-A5Qdwj1B.js.map +1 -0
  125. package/lib/{index-C_PXQ8Bx.js → index-Bg7Js3jB.js} +832 -912
  126. package/lib/index-Bg7Js3jB.js.map +1 -0
  127. package/lib/{index-CZTEgYDd.js → index-BkW9tJ6j.js} +2 -2
  128. package/lib/{index-CZTEgYDd.js.map → index-BkW9tJ6j.js.map} +1 -1
  129. package/lib/index.esm-CdzlRw50.js +1254 -0
  130. package/lib/index.esm-CdzlRw50.js.map +1 -0
  131. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  132. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  133. package/lib/ui/ActionButton.js +9 -9
  134. package/lib/ui/ActionButton.js.map +1 -1
  135. package/lib/ui/Command.js +1 -1
  136. package/lib/ui/Form.js +1 -1
  137. package/lib/ui/SyntaxHighlight.js +3 -3
  138. package/lib/{useExposedProps-BIYjecPD.js → useExposedProps-KcgXHKeE.js} +2 -2
  139. package/lib/{useExposedProps-BIYjecPD.js.map → useExposedProps-KcgXHKeE.js.map} +1 -1
  140. package/lib/zudoku.auth-auth0.js +1 -1
  141. package/lib/zudoku.auth-azureb2c.js +25 -17
  142. package/lib/zudoku.auth-azureb2c.js.map +1 -1
  143. package/lib/zudoku.auth-clerk.js +24 -21
  144. package/lib/zudoku.auth-clerk.js.map +1 -1
  145. package/lib/zudoku.auth-openid.js +213 -205
  146. package/lib/zudoku.auth-openid.js.map +1 -1
  147. package/lib/zudoku.auth-supabase.js +2 -2
  148. package/lib/zudoku.components.js +29 -28
  149. package/lib/zudoku.components.js.map +1 -1
  150. package/lib/zudoku.hooks.js +16 -15
  151. package/lib/zudoku.hooks.js.map +1 -1
  152. package/lib/zudoku.plugin-api-catalog.js +26 -25
  153. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  154. package/lib/zudoku.plugin-api-keys.js +404 -289
  155. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  156. package/lib/zudoku.plugin-custom-pages.js +1 -1
  157. package/lib/zudoku.plugin-markdown.js +1 -1
  158. package/lib/zudoku.plugin-openapi.js +7 -6
  159. package/lib/zudoku.plugin-openapi.js.map +1 -1
  160. package/lib/zudoku.plugin-redirect.js +1 -1
  161. package/lib/zudoku.plugin-search-pagefind.js +28 -27
  162. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  163. package/lib/zudoku.plugins.js.map +1 -1
  164. package/package.json +8 -8
  165. package/src/lib/authentication/components/CallbackHandler.tsx +22 -15
  166. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  167. package/src/lib/authentication/errors.ts +27 -13
  168. package/src/lib/authentication/hook.ts +2 -0
  169. package/src/lib/authentication/providers/azureb2c.tsx +8 -3
  170. package/src/lib/authentication/providers/clerk.tsx +4 -1
  171. package/src/lib/authentication/providers/openid.tsx +7 -1
  172. package/src/lib/components/Heading.tsx +1 -1
  173. package/src/lib/components/MobileTopNavigation.tsx +6 -3
  174. package/src/lib/components/TopNavigation.tsx +4 -4
  175. package/src/lib/components/context/ZudokuContext.ts +25 -18
  176. package/src/lib/components/navigation/NavigationItem.tsx +9 -1
  177. package/src/lib/components/navigation/utils.ts +9 -3
  178. package/src/lib/core/RouteGuard.tsx +13 -13
  179. package/src/lib/core/ZudokuContext.ts +18 -5
  180. package/src/lib/core/plugins.ts +2 -1
  181. package/src/lib/plugins/api-keys/CreateApiKey.tsx +12 -1
  182. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +24 -4
  183. package/src/lib/plugins/api-keys/index.tsx +7 -8
  184. package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
  185. package/src/lib/plugins/openapi/graphql/graphql.ts +2 -0
  186. package/src/lib/plugins/openapi/index.tsx +66 -16
  187. package/src/lib/ui/ActionButton.tsx +3 -1
  188. package/src/lib/util/invariant.ts +7 -5
  189. package/lib/Alert-CWApD0CL.js +0 -161
  190. package/lib/Alert-CWApD0CL.js.map +0 -1
  191. package/lib/CallbackHandler-Dr5Lva9x.js +0 -38
  192. package/lib/CallbackHandler-Dr5Lva9x.js.map +0 -1
  193. package/lib/chunk-DQRVZFIR-DHK7_Ilc.js.map +0 -1
  194. package/lib/errors-C1GlNcV3.js.map +0 -1
  195. package/lib/hook-CZjW2buS.js +0 -1510
  196. package/lib/hook-CZjW2buS.js.map +0 -1
  197. package/lib/index-C_PXQ8Bx.js.map +0 -1
  198. package/lib/index-D09PbNex.js.map +0 -1
  199. package/lib/index.esm-Cp4wkyud.js +0 -1236
  200. package/lib/index.esm-Cp4wkyud.js.map +0 -1
  201. package/lib/invariant-DAFpPywt.js.map +0 -1
@@ -1,51 +1,51 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronDown as yt, ChevronUp as wn, Check as vt, ChevronUpIcon as Cn, ChevronRightIcon as Sn, CheckIcon as bt, DotIcon as Tn, PlusCircleIcon as fe, FileInput as An, TableOfContentsIcon as On, LockIcon as Rn, CircleAlertIcon as Pn, XIcon as jt, Circle as Ln, Unlink2Icon as $n, CornerDownRightIcon as En, CornerDownLeftIcon as In, DownloadIcon as kn, UnplugIcon as Dn, SendIcon as zn, CopyIcon as Fn, IdCardLanyardIcon as qn, ShapesIcon as Vn, LogInIcon as Bn, CirclePlayIcon as _n } from "lucide-react";
3
- import { r as Un, c as Mn, u as Gn, N as Hn, g as Qn, m as ot } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
4
- import { o as $e, p as Ee, q as Nt, d as Jn, l as Wn, r as Xn, j as I, c as Zn, e as Yn } from "./hook-CZjW2buS.js";
5
- import { Button as re } from "./ui/Button.js";
6
- import { Z as Kn, i as es } from "./invariant-DAFpPywt.js";
7
- import * as w from "react";
8
- import { createContext as wt, use as ts, useRef as L, useEffect as z, useMemo as Ct, useState as k, useCallback as St, Fragment as ee, useLayoutEffect as ns, useTransition as ss, useContext as rs } from "react";
9
- import { VisuallyHidden as as } from "@radix-ui/react-visually-hidden";
10
- import { D as Ie, a as ke, b as De, d as Tt, f as At, e as os } from "./Dialog-DMWw1doX.js";
11
- import { S as is, a as cs } from "./index-D09PbNex.js";
12
- import { A as ls, a as ds, b as us, u as ms } from "./Alert-CWApD0CL.js";
13
- import { u as ie, a as ze, C as F, b as ps, F as hs } from "./index.esm-Cp4wkyud.js";
2
+ import { ChevronUpIcon as yn, ChevronRightIcon as vn, CheckIcon as ft, DotIcon as bn, PlusCircleIcon as he, FileInput as jn, Check as Cn, TableOfContentsIcon as wn, LockIcon as Nn, CircleAlertIcon as Sn, XIcon as gt, Circle as Tn, Unlink2Icon as An, CornerDownRightIcon as On, CornerDownLeftIcon as Pn, DownloadIcon as Rn, UnplugIcon as Ln, SendIcon as $n, CopyIcon as En, IdCardLanyardIcon as In, ShapesIcon as kn, LogInIcon as Dn, CirclePlayIcon as zn } from "lucide-react";
3
+ import { r as Fn, c as qn, u as Vn, N as Bn, g as _n, m as st } from "./chunk-QMGIS6GS-CEOk3lro.js";
4
+ import { c as Le, p as $e, b as xt, a as Un } from "./hook-DbUCLQNg.js";
5
+ import { Button as ne } from "./ui/Button.js";
6
+ import { c as Mn, i as Gn, l as Hn, j as I, b as Qn } from "./ZudokuContext-CLl5w57E.js";
7
+ import { Z as Jn, i as Wn } from "./invariant-Bm-FVUQE.js";
8
+ import * as A from "react";
9
+ import { createContext as yt, use as Xn, useRef as R, useEffect as z, useMemo as vt, useState as k, useCallback as bt, Fragment as K, useLayoutEffect as Zn, useTransition as Yn, useContext as Kn } from "react";
10
+ import { VisuallyHidden as es } from "@radix-ui/react-visually-hidden";
11
+ import { D as Ee, a as Ie, b as ke, d as jt, e as Ct, g as ts } from "./Dialog-u9Uz9sTt.js";
12
+ import { S as ns, a as ss } from "./index-A5Qdwj1B.js";
13
+ import { S as wt, c as Nt, d as St, e as Tt, g as le, A as rs, a as as, b as os, u as is } from "./Select-BmTTKNPp.js";
14
+ import { u as ae, b as De, C as F, a as cs, F as ls } from "./index.esm-CdzlRw50.js";
14
15
  import { B as E } from "./Button-B3o-2Xdf.js";
15
- import * as Fe from "@radix-ui/react-collapsible";
16
- import * as S from "@radix-ui/react-select";
17
- import { c as v } from "./cn-dYga0KKN.js";
18
- import { b as it, c as ct, d as lt, f as fs } from "./Slot-B31yZlfB.js";
19
- import { u as xs } from "./CodeBlock-B-G0eKtw.js";
20
- import { u as gs } from "./RouteGuard-Vnlz_t51.js";
21
- import * as C from "@radix-ui/react-dropdown-menu";
22
- import * as Re from "@radix-ui/react-checkbox";
23
- import * as ue from "@radix-ui/react-popover";
24
- import { PopoverAnchor as ys } from "@radix-ui/react-popover";
25
- import { P as vs } from "./index-CrcNWbel.js";
26
- import { f as bs, g as js, C as Ns, b as ws } from "./Command-C9AC5cf-.js";
27
- import { Input as me } from "./ui/Input.js";
28
- import { Slot as Cs } from "@radix-ui/react-slot";
29
- import { C as Ss } from "./Card-CMDQUPM4.js";
30
- import * as Ot from "@radix-ui/react-label";
31
- import { c as Ts } from "./index-DI5SPFK9.js";
32
- import * as ae from "@radix-ui/react-radio-group";
33
- import { z as As } from "./index-Bm35Tkgf.js";
34
- import { h as Os } from "./SyntaxHighlight-bm761HDo.js";
35
- let Ne;
36
- const Rs = (e) => {
16
+ import * as ze from "@radix-ui/react-collapsible";
17
+ import { b as rt, c as at, d as ot, f as ds } from "./Slot-DAyXieeZ.js";
18
+ import { c as C } from "./cn-dYga0KKN.js";
19
+ import { u as us } from "./CodeBlock-B-G0eKtw.js";
20
+ import { u as ms } from "./RouteGuard-0wPUKdxJ.js";
21
+ import * as w from "@radix-ui/react-dropdown-menu";
22
+ import * as Oe from "@radix-ui/react-checkbox";
23
+ import * as de from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as ps } from "@radix-ui/react-popover";
25
+ import { P as hs } from "./index-CrcNWbel.js";
26
+ import { f as fs, g as gs, C as xs, b as ys } from "./Command-BYukybsa.js";
27
+ import { Input as ue } from "./ui/Input.js";
28
+ import { Slot as vs } from "@radix-ui/react-slot";
29
+ import { C as bs } from "./Card-CMDQUPM4.js";
30
+ import * as At from "@radix-ui/react-label";
31
+ import { c as js } from "./index-DI5SPFK9.js";
32
+ import * as se from "@radix-ui/react-radio-group";
33
+ import { z as Cs } from "./index-Bm35Tkgf.js";
34
+ import { h as ws } from "./SyntaxHighlight-BMKR4pl6.js";
35
+ let je;
36
+ const Ns = (e) => {
37
37
  if (e.errors?.[0])
38
- throw new Kn(e.errors[0].message, {
38
+ throw new Jn(e.errors[0].message, {
39
39
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
40
  });
41
41
  };
42
- class Ps {
42
+ class Ss {
43
43
  constructor(t) {
44
44
  this.config = t;
45
45
  }
46
- #e = async () => (Ne || (Ne = import("./createServer-DNyGJJNX.js").then(
46
+ #e = async () => (je || (je = import("./createServer-BsezSzvV.js").then(
47
47
  (t) => t.createServer(this.config)
48
- )), Ne);
48
+ )), je);
49
49
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
50
50
  fetch = async (t, s) => {
51
51
  const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
@@ -56,27 +56,27 @@ class Ps {
56
56
  if (!r.ok)
57
57
  throw new Error("Network response was not ok");
58
58
  const o = await r.json();
59
- return Rs(o), o.data;
59
+ return Ns(o), o.data;
60
60
  };
61
61
  }
62
- function we(e, t) {
62
+ function Ce(e, t) {
63
63
  if (!!!e)
64
64
  throw new Error(t);
65
65
  }
66
- function Ls(e) {
66
+ function Ts(e) {
67
67
  return typeof e == "object" && e !== null;
68
68
  }
69
- function $s(e, t) {
69
+ function As(e, t) {
70
70
  if (!!!e)
71
71
  throw new Error(
72
72
  t ?? "Unexpected invariant triggered."
73
73
  );
74
74
  }
75
- const Es = /\r\n|[\n\r]/g;
75
+ const Os = /\r\n|[\n\r]/g;
76
76
  function Pe(e, t) {
77
77
  let s = 0, a = 1;
78
- for (const r of e.body.matchAll(Es)) {
79
- if (typeof r.index == "number" || $s(!1), r.index >= t)
78
+ for (const r of e.body.matchAll(Os)) {
79
+ if (typeof r.index == "number" || As(!1), r.index >= t)
80
80
  break;
81
81
  s = r.index + r[0].length, a += 1;
82
82
  }
@@ -85,27 +85,27 @@ function Pe(e, t) {
85
85
  column: t + 1 - s
86
86
  };
87
87
  }
88
- function Is(e) {
89
- return Rt(
88
+ function Ps(e) {
89
+ return Ot(
90
90
  e.source,
91
91
  Pe(e.source, e.start)
92
92
  );
93
93
  }
94
- function Rt(e, t) {
94
+ function Ot(e, t) {
95
95
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
96
  `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
97
97
  if (h.length > 120) {
98
- const f = Math.floor(c / 80), m = c % 80, x = [];
99
- for (let y = 0; y < h.length; y += 80)
100
- x.push(h.slice(y, y + 80));
101
- return u + dt([
102
- [`${i} |`, x[0]],
103
- ...x.slice(1, f + 1).map((y) => ["|", y]),
98
+ const g = Math.floor(c / 80), m = c % 80, y = [];
99
+ for (let v = 0; v < h.length; v += 80)
100
+ y.push(h.slice(v, v + 80));
101
+ return u + it([
102
+ [`${i} |`, y[0]],
103
+ ...y.slice(1, g + 1).map((v) => ["|", v]),
104
104
  ["|", "^".padStart(m)],
105
- ["|", x[f + 1]]
105
+ ["|", y[g + 1]]
106
106
  ]);
107
107
  }
108
- return u + dt([
108
+ return u + it([
109
109
  // Lines specified like this: ["prefix", "string"],
110
110
  [`${i - 1} |`, d[r - 1]],
111
111
  [`${i} |`, h],
@@ -113,12 +113,12 @@ function Rt(e, t) {
113
113
  [`${i + 1} |`, d[r + 1]]
114
114
  ]);
115
115
  }
116
- function dt(e) {
116
+ function it(e) {
117
117
  const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
118
118
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
119
  `);
120
120
  }
121
- function ks(e) {
121
+ function Rs(e) {
122
122
  const t = e[0];
123
123
  return t == null || "kind" in t || "length" in t ? {
124
124
  nodes: t,
@@ -129,7 +129,7 @@ function ks(e) {
129
129
  extensions: e[5]
130
130
  } : t;
131
131
  }
132
- class qe extends Error {
132
+ class Fe extends Error {
133
133
  /**
134
134
  * An array of `{ line, column }` locations within the source GraphQL document
135
135
  * which correspond to this error.
@@ -170,15 +170,15 @@ class qe extends Error {
170
170
  */
171
171
  constructor(t, ...s) {
172
172
  var a, r, o;
173
- const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = ks(s);
174
- super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ut(
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
174
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
175
175
  Array.isArray(i) ? i : i ? [i] : void 0
176
176
  );
177
- const f = ut(
178
- (a = this.nodes) === null || a === void 0 ? void 0 : a.map((x) => x.loc).filter((x) => x != null)
177
+ const g = ct(
178
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((y) => y.loc).filter((y) => y != null)
179
179
  );
180
- this.source = l ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? f?.map((x) => x.start), this.locations = c && l ? c.map((x) => Pe(l, x)) : f?.map((x) => Pe(x.source, x.start));
181
- const m = Ls(
180
+ this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((y) => y.start), this.locations = c && l ? c.map((y) => Pe(l, y)) : g?.map((y) => Pe(y.source, y.start));
181
+ const m = Ts(
182
182
  d?.extensions
183
183
  ) ? d?.extensions : void 0;
184
184
  this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
@@ -205,7 +205,7 @@ class qe extends Error {
205
205
  value: d.stack,
206
206
  writable: !0,
207
207
  configurable: !0
208
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, qe) : Object.defineProperty(this, "stack", {
208
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
209
209
  value: Error().stack,
210
210
  writable: !0,
211
211
  configurable: !0
@@ -220,12 +220,12 @@ class qe extends Error {
220
220
  for (const s of this.nodes)
221
221
  s.loc && (t += `
222
222
 
223
- ` + Is(s.loc));
223
+ ` + Ps(s.loc));
224
224
  else if (this.source && this.locations)
225
225
  for (const s of this.locations)
226
226
  t += `
227
227
 
228
- ` + Rt(this.source, s);
228
+ ` + Ot(this.source, s);
229
229
  return t;
230
230
  }
231
231
  toJSON() {
@@ -235,16 +235,16 @@ class qe extends Error {
235
235
  return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
236
236
  }
237
237
  }
238
- function ut(e) {
238
+ function ct(e) {
239
239
  return e === void 0 || e.length === 0 ? void 0 : e;
240
240
  }
241
- function $(e, t, s) {
242
- return new qe(`Syntax Error: ${s}`, {
241
+ function L(e, t, s) {
242
+ return new Fe(`Syntax Error: ${s}`, {
243
243
  source: e,
244
244
  positions: [t]
245
245
  });
246
246
  }
247
- class Ha {
247
+ class Va {
248
248
  /**
249
249
  * The character offset at which this Node begins.
250
250
  */
@@ -315,7 +315,7 @@ class Pt {
315
315
  };
316
316
  }
317
317
  }
318
- const Ds = {
318
+ const Ls = {
319
319
  Name: [],
320
320
  Document: ["definitions"],
321
321
  OperationDefinition: [
@@ -389,37 +389,37 @@ const Ds = {
389
389
  UnionTypeExtension: ["name", "directives", "types"],
390
390
  EnumTypeExtension: ["name", "directives", "values"],
391
391
  InputObjectTypeExtension: ["name", "directives", "fields"]
392
- }, zs = new Set(Object.keys(Ds));
393
- function Qa(e) {
392
+ }, $s = new Set(Object.keys(Ls));
393
+ function Ba(e) {
394
394
  const t = e?.kind;
395
- return typeof t == "string" && zs.has(t);
395
+ return typeof t == "string" && $s.has(t);
396
396
  }
397
- var mt;
397
+ var lt;
398
398
  (function(e) {
399
399
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
400
- })(mt || (mt = {}));
401
- function Le(e) {
400
+ })(lt || (lt = {}));
401
+ function Re(e) {
402
402
  return e === 9 || e === 32;
403
403
  }
404
- function oe(e) {
404
+ function re(e) {
405
405
  return e >= 48 && e <= 57;
406
406
  }
407
- function Lt(e) {
407
+ function Rt(e) {
408
408
  return e >= 97 && e <= 122 || // A-Z
409
409
  e >= 65 && e <= 90;
410
410
  }
411
- function $t(e) {
412
- return Lt(e) || e === 95;
411
+ function Lt(e) {
412
+ return Rt(e) || e === 95;
413
413
  }
414
- function Fs(e) {
415
- return Lt(e) || oe(e) || e === 95;
414
+ function Es(e) {
415
+ return Rt(e) || re(e) || e === 95;
416
416
  }
417
- function qs(e) {
417
+ function Is(e) {
418
418
  var t;
419
419
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
420
420
  for (let i = 0; i < e.length; ++i) {
421
421
  var o;
422
- const l = e[i], c = Vs(l);
422
+ const l = e[i], c = ks(l);
423
423
  c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
424
424
  }
425
425
  return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
@@ -427,26 +427,26 @@ function qs(e) {
427
427
  r + 1
428
428
  );
429
429
  }
430
- function Vs(e) {
430
+ function ks(e) {
431
431
  let t = 0;
432
- for (; t < e.length && Le(e.charCodeAt(t)); )
432
+ for (; t < e.length && Re(e.charCodeAt(t)); )
433
433
  ++t;
434
434
  return t;
435
435
  }
436
- function Bs(e, t) {
437
- const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Le(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
436
+ function Ds(e, t) {
437
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Re(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
438
  (!r || e.length > 70 || u || o || i);
439
439
  let h = "";
440
- const f = r && Le(e.charCodeAt(0));
441
- return (d && !f || o) && (h += `
440
+ const g = r && Re(e.charCodeAt(0));
441
+ return (d && !g || o) && (h += `
442
442
  `), h += s, (d || u) && (h += `
443
443
  `), '"""' + h + '"""';
444
444
  }
445
- var g;
445
+ var x;
446
446
  (function(e) {
447
447
  e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
448
- })(g || (g = {}));
449
- class _s {
448
+ })(x || (x = {}));
449
+ class zs {
450
450
  /**
451
451
  * The previously focused non-ignored token.
452
452
  */
@@ -460,7 +460,7 @@ class _s {
460
460
  * The character offset at which the current line begins.
461
461
  */
462
462
  constructor(t) {
463
- const s = new Pt(g.SOF, 0, 0, 0, 0);
463
+ const s = new Pt(x.SOF, 0, 0, 0, 0);
464
464
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
465
465
  }
466
466
  get [Symbol.toStringTag]() {
@@ -478,48 +478,48 @@ class _s {
478
478
  */
479
479
  lookahead() {
480
480
  let t = this.token;
481
- if (t.kind !== g.EOF)
481
+ if (t.kind !== x.EOF)
482
482
  do
483
483
  if (t.next)
484
484
  t = t.next;
485
485
  else {
486
- const s = Ms(this, t.end);
486
+ const s = qs(this, t.end);
487
487
  t.next = s, s.prev = t, t = s;
488
488
  }
489
- while (t.kind === g.COMMENT);
489
+ while (t.kind === x.COMMENT);
490
490
  return t;
491
491
  }
492
492
  }
493
- function Us(e) {
494
- return e === g.BANG || e === g.DOLLAR || e === g.AMP || e === g.PAREN_L || e === g.PAREN_R || e === g.SPREAD || e === g.COLON || e === g.EQUALS || e === g.AT || e === g.BRACKET_L || e === g.BRACKET_R || e === g.BRACE_L || e === g.PIPE || e === g.BRACE_R;
493
+ function Fs(e) {
494
+ return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
495
495
  }
496
- function Y(e) {
496
+ function Z(e) {
497
497
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
498
498
  }
499
- function xe(e, t) {
500
- return Et(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
499
+ function fe(e, t) {
500
+ return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
501
501
  }
502
- function Et(e) {
502
+ function $t(e) {
503
503
  return e >= 55296 && e <= 56319;
504
504
  }
505
- function It(e) {
505
+ function Et(e) {
506
506
  return e >= 56320 && e <= 57343;
507
507
  }
508
508
  function U(e, t) {
509
509
  const s = e.source.body.codePointAt(t);
510
510
  if (s === void 0)
511
- return g.EOF;
511
+ return x.EOF;
512
512
  if (s >= 32 && s <= 126) {
513
513
  const a = String.fromCodePoint(s);
514
514
  return a === '"' ? `'"'` : `"${a}"`;
515
515
  }
516
516
  return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
517
517
  }
518
- function T(e, t, s, a, r) {
518
+ function N(e, t, s, a, r) {
519
519
  const o = e.line, i = 1 + s - e.lineStart;
520
520
  return new Pt(t, s, a, o, i, r);
521
521
  }
522
- function Ms(e, t) {
522
+ function qs(e, t) {
523
523
  const s = e.source.body, a = s.length;
524
524
  let r = t;
525
525
  for (; r < a; ) {
@@ -560,7 +560,7 @@ function Ms(e, t) {
560
560
  continue;
561
561
  // Comment
562
562
  case 35:
563
- return Gs(e, r);
563
+ return Vs(e, r);
564
564
  // Token ::
565
565
  // - Punctuator
566
566
  // - Name
@@ -570,79 +570,79 @@ function Ms(e, t) {
570
570
  //
571
571
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
572
572
  case 33:
573
- return T(e, g.BANG, r, r + 1);
573
+ return N(e, x.BANG, r, r + 1);
574
574
  case 36:
575
- return T(e, g.DOLLAR, r, r + 1);
575
+ return N(e, x.DOLLAR, r, r + 1);
576
576
  case 38:
577
- return T(e, g.AMP, r, r + 1);
577
+ return N(e, x.AMP, r, r + 1);
578
578
  case 40:
579
- return T(e, g.PAREN_L, r, r + 1);
579
+ return N(e, x.PAREN_L, r, r + 1);
580
580
  case 41:
581
- return T(e, g.PAREN_R, r, r + 1);
581
+ return N(e, x.PAREN_R, r, r + 1);
582
582
  case 46:
583
583
  if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
584
- return T(e, g.SPREAD, r, r + 3);
584
+ return N(e, x.SPREAD, r, r + 3);
585
585
  break;
586
586
  case 58:
587
- return T(e, g.COLON, r, r + 1);
587
+ return N(e, x.COLON, r, r + 1);
588
588
  case 61:
589
- return T(e, g.EQUALS, r, r + 1);
589
+ return N(e, x.EQUALS, r, r + 1);
590
590
  case 64:
591
- return T(e, g.AT, r, r + 1);
591
+ return N(e, x.AT, r, r + 1);
592
592
  case 91:
593
- return T(e, g.BRACKET_L, r, r + 1);
593
+ return N(e, x.BRACKET_L, r, r + 1);
594
594
  case 93:
595
- return T(e, g.BRACKET_R, r, r + 1);
595
+ return N(e, x.BRACKET_R, r, r + 1);
596
596
  case 123:
597
- return T(e, g.BRACE_L, r, r + 1);
597
+ return N(e, x.BRACE_L, r, r + 1);
598
598
  case 124:
599
- return T(e, g.PIPE, r, r + 1);
599
+ return N(e, x.PIPE, r, r + 1);
600
600
  case 125:
601
- return T(e, g.BRACE_R, r, r + 1);
601
+ return N(e, x.BRACE_R, r, r + 1);
602
602
  // StringValue
603
603
  case 34:
604
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Zs(e, r) : Qs(e, r);
604
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Hs(e, r) : _s(e, r);
605
605
  }
606
- if (oe(o) || o === 45)
607
- return Hs(e, r, o);
608
- if ($t(o))
609
- return Ys(e, r);
610
- throw $(
606
+ if (re(o) || o === 45)
607
+ return Bs(e, r, o);
608
+ if (Lt(o))
609
+ return Qs(e, r);
610
+ throw L(
611
611
  e.source,
612
612
  r,
613
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Y(o) || xe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
613
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(o) || fe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
614
614
  );
615
615
  }
616
- return T(e, g.EOF, a, a);
616
+ return N(e, x.EOF, a, a);
617
617
  }
618
- function Gs(e, t) {
618
+ function Vs(e, t) {
619
619
  const s = e.source.body, a = s.length;
620
620
  let r = t + 1;
621
621
  for (; r < a; ) {
622
622
  const o = s.charCodeAt(r);
623
623
  if (o === 10 || o === 13)
624
624
  break;
625
- if (Y(o))
625
+ if (Z(o))
626
626
  ++r;
627
- else if (xe(s, r))
627
+ else if (fe(s, r))
628
628
  r += 2;
629
629
  else
630
630
  break;
631
631
  }
632
- return T(
632
+ return N(
633
633
  e,
634
- g.COMMENT,
634
+ x.COMMENT,
635
635
  t,
636
636
  r,
637
637
  s.slice(t + 1, r)
638
638
  );
639
639
  }
640
- function Hs(e, t, s) {
640
+ function Bs(e, t, s) {
641
641
  const a = e.source.body;
642
642
  let r = t, o = s, i = !1;
643
643
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
644
- if (o = a.charCodeAt(++r), oe(o))
645
- throw $(
644
+ if (o = a.charCodeAt(++r), re(o))
645
+ throw L(
646
646
  e.source,
647
647
  r,
648
648
  `Invalid number, unexpected digit after 0: ${U(
@@ -651,9 +651,9 @@ function Hs(e, t, s) {
651
651
  )}.`
652
652
  );
653
653
  } else
654
- r = Ce(e, r, o), o = a.charCodeAt(r);
655
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = Ce(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = Ce(e, r, o), o = a.charCodeAt(r)), o === 46 || $t(o))
656
- throw $(
654
+ r = we(e, r, o), o = a.charCodeAt(r);
655
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = we(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = we(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
656
+ throw L(
657
657
  e.source,
658
658
  r,
659
659
  `Invalid number, expected digit but got: ${U(
@@ -661,17 +661,17 @@ function Hs(e, t, s) {
661
661
  r
662
662
  )}.`
663
663
  );
664
- return T(
664
+ return N(
665
665
  e,
666
- i ? g.FLOAT : g.INT,
666
+ i ? x.FLOAT : x.INT,
667
667
  t,
668
668
  r,
669
669
  a.slice(t, r)
670
670
  );
671
671
  }
672
- function Ce(e, t, s) {
673
- if (!oe(s))
674
- throw $(
672
+ function we(e, t, s) {
673
+ if (!re(s))
674
+ throw L(
675
675
  e.source,
676
676
  t,
677
677
  `Invalid number, expected digit but got: ${U(
@@ -681,31 +681,31 @@ function Ce(e, t, s) {
681
681
  );
682
682
  const a = e.source.body;
683
683
  let r = t + 1;
684
- for (; oe(a.charCodeAt(r)); )
684
+ for (; re(a.charCodeAt(r)); )
685
685
  ++r;
686
686
  return r;
687
687
  }
688
- function Qs(e, t) {
688
+ function _s(e, t) {
689
689
  const s = e.source.body, a = s.length;
690
690
  let r = t + 1, o = r, i = "";
691
691
  for (; r < a; ) {
692
692
  const l = s.charCodeAt(r);
693
693
  if (l === 34)
694
- return i += s.slice(o, r), T(e, g.STRING, t, r + 1, i);
694
+ return i += s.slice(o, r), N(e, x.STRING, t, r + 1, i);
695
695
  if (l === 92) {
696
696
  i += s.slice(o, r);
697
- const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Js(e, r) : Ws(e, r) : Xs(e, r);
697
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Us(e, r) : Ms(e, r) : Gs(e, r);
698
698
  i += c.value, r += c.size, o = r;
699
699
  continue;
700
700
  }
701
701
  if (l === 10 || l === 13)
702
702
  break;
703
- if (Y(l))
703
+ if (Z(l))
704
704
  ++r;
705
- else if (xe(s, r))
705
+ else if (fe(s, r))
706
706
  r += 2;
707
707
  else
708
- throw $(
708
+ throw L(
709
709
  e.source,
710
710
  r,
711
711
  `Invalid character within String: ${U(
@@ -714,25 +714,25 @@ function Qs(e, t) {
714
714
  )}.`
715
715
  );
716
716
  }
717
- throw $(e.source, r, "Unterminated string.");
717
+ throw L(e.source, r, "Unterminated string.");
718
718
  }
719
- function Js(e, t) {
719
+ function Us(e, t) {
720
720
  const s = e.source.body;
721
721
  let a = 0, r = 3;
722
722
  for (; r < 12; ) {
723
723
  const o = s.charCodeAt(t + r++);
724
724
  if (o === 125) {
725
- if (r < 5 || !Y(a))
725
+ if (r < 5 || !Z(a))
726
726
  break;
727
727
  return {
728
728
  value: String.fromCodePoint(a),
729
729
  size: r
730
730
  };
731
731
  }
732
- if (a = a << 4 | te(o), a < 0)
732
+ if (a = a << 4 | ee(o), a < 0)
733
733
  break;
734
734
  }
735
- throw $(
735
+ throw L(
736
736
  e.source,
737
737
  t,
738
738
  `Invalid Unicode escape sequence: "${s.slice(
@@ -741,34 +741,34 @@ function Js(e, t) {
741
741
  )}".`
742
742
  );
743
743
  }
744
- function Ws(e, t) {
745
- const s = e.source.body, a = pt(s, t + 2);
746
- if (Y(a))
744
+ function Ms(e, t) {
745
+ const s = e.source.body, a = dt(s, t + 2);
746
+ if (Z(a))
747
747
  return {
748
748
  value: String.fromCodePoint(a),
749
749
  size: 6
750
750
  };
751
- if (Et(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
- const r = pt(s, t + 8);
753
- if (It(r))
751
+ if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
+ const r = dt(s, t + 8);
753
+ if (Et(r))
754
754
  return {
755
755
  value: String.fromCodePoint(a, r),
756
756
  size: 12
757
757
  };
758
758
  }
759
- throw $(
759
+ throw L(
760
760
  e.source,
761
761
  t,
762
762
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
763
763
  );
764
764
  }
765
- function pt(e, t) {
766
- return te(e.charCodeAt(t)) << 12 | te(e.charCodeAt(t + 1)) << 8 | te(e.charCodeAt(t + 2)) << 4 | te(e.charCodeAt(t + 3));
765
+ function dt(e, t) {
766
+ return ee(e.charCodeAt(t)) << 12 | ee(e.charCodeAt(t + 1)) << 8 | ee(e.charCodeAt(t + 2)) << 4 | ee(e.charCodeAt(t + 3));
767
767
  }
768
- function te(e) {
768
+ function ee(e) {
769
769
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
770
770
  }
771
- function Xs(e, t) {
771
+ function Gs(e, t) {
772
772
  const s = e.source.body;
773
773
  switch (s.charCodeAt(t + 1)) {
774
774
  case 34:
@@ -813,7 +813,7 @@ function Xs(e, t) {
813
813
  size: 2
814
814
  };
815
815
  }
816
- throw $(
816
+ throw L(
817
817
  e.source,
818
818
  t,
819
819
  `Invalid character escape sequence: "${s.slice(
@@ -822,7 +822,7 @@ function Xs(e, t) {
822
822
  )}".`
823
823
  );
824
824
  }
825
- function Zs(e, t) {
825
+ function Hs(e, t) {
826
826
  const s = e.source.body, a = s.length;
827
827
  let r = e.lineStart, o = t + 3, i = o, l = "";
828
828
  const c = [];
@@ -830,13 +830,13 @@ function Zs(e, t) {
830
830
  const u = s.charCodeAt(o);
831
831
  if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
832
832
  l += s.slice(i, o), c.push(l);
833
- const d = T(
833
+ const d = N(
834
834
  e,
835
- g.BLOCK_STRING,
835
+ x.BLOCK_STRING,
836
836
  t,
837
837
  o + 3,
838
838
  // Return a string of the lines joined with U+000A.
839
- qs(c).join(`
839
+ Is(c).join(`
840
840
  `)
841
841
  );
842
842
  return e.line += c.length - 1, e.lineStart = r, d;
@@ -849,12 +849,12 @@ function Zs(e, t) {
849
849
  l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
850
850
  continue;
851
851
  }
852
- if (Y(u))
852
+ if (Z(u))
853
853
  ++o;
854
- else if (xe(s, o))
854
+ else if (fe(s, o))
855
855
  o += 2;
856
856
  else
857
- throw $(
857
+ throw L(
858
858
  e.source,
859
859
  o,
860
860
  `Invalid character within String: ${U(
@@ -863,28 +863,28 @@ function Zs(e, t) {
863
863
  )}.`
864
864
  );
865
865
  }
866
- throw $(e.source, o, "Unterminated string.");
866
+ throw L(e.source, o, "Unterminated string.");
867
867
  }
868
- function Ys(e, t) {
868
+ function Qs(e, t) {
869
869
  const s = e.source.body, a = s.length;
870
870
  let r = t + 1;
871
871
  for (; r < a; ) {
872
872
  const o = s.charCodeAt(r);
873
- if (Fs(o))
873
+ if (Es(o))
874
874
  ++r;
875
875
  else
876
876
  break;
877
877
  }
878
- return T(
878
+ return N(
879
879
  e,
880
- g.NAME,
880
+ x.NAME,
881
881
  t,
882
882
  r,
883
883
  s.slice(t, r)
884
884
  );
885
885
  }
886
- const Ks = 10, kt = 2;
887
- function Dt(e) {
886
+ const Js = 10, It = 2;
887
+ function kt(e) {
888
888
  return ge(e, []);
889
889
  }
890
890
  function ge(e, t) {
@@ -894,45 +894,45 @@ function ge(e, t) {
894
894
  case "function":
895
895
  return e.name ? `[function ${e.name}]` : "[function]";
896
896
  case "object":
897
- return er(e, t);
897
+ return Ws(e, t);
898
898
  default:
899
899
  return String(e);
900
900
  }
901
901
  }
902
- function er(e, t) {
902
+ function Ws(e, t) {
903
903
  if (e === null)
904
904
  return "null";
905
905
  if (t.includes(e))
906
906
  return "[Circular]";
907
907
  const s = [...t, e];
908
- if (tr(e)) {
908
+ if (Xs(e)) {
909
909
  const a = e.toJSON();
910
910
  if (a !== e)
911
911
  return typeof a == "string" ? a : ge(a, s);
912
912
  } else if (Array.isArray(e))
913
- return sr(e, s);
914
- return nr(e, s);
913
+ return Ys(e, s);
914
+ return Zs(e, s);
915
915
  }
916
- function tr(e) {
916
+ function Xs(e) {
917
917
  return typeof e.toJSON == "function";
918
918
  }
919
- function nr(e, t) {
919
+ function Zs(e, t) {
920
920
  const s = Object.entries(e);
921
- return s.length === 0 ? "{}" : t.length > kt ? "[" + rr(e) + "]" : "{ " + s.map(
921
+ return s.length === 0 ? "{}" : t.length > It ? "[" + Ks(e) + "]" : "{ " + s.map(
922
922
  ([r, o]) => r + ": " + ge(o, t)
923
923
  ).join(", ") + " }";
924
924
  }
925
- function sr(e, t) {
925
+ function Ys(e, t) {
926
926
  if (e.length === 0)
927
927
  return "[]";
928
- if (t.length > kt)
928
+ if (t.length > It)
929
929
  return "[Array]";
930
- const s = Math.min(Ks, e.length), a = e.length - s, r = [];
930
+ const s = Math.min(Js, e.length), a = e.length - s, r = [];
931
931
  for (let o = 0; o < s; ++o)
932
932
  r.push(ge(e[o], t));
933
933
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
934
934
  }
935
- function rr(e) {
935
+ function Ks(e) {
936
936
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
937
937
  if (t === "Object" && typeof e.constructor == "function") {
938
938
  const s = e.constructor.name;
@@ -941,11 +941,11 @@ function rr(e) {
941
941
  }
942
942
  return t;
943
943
  }
944
- const ar = globalThis.process && // eslint-disable-next-line no-undef
945
- process.env.NODE_ENV === "production", or = (
944
+ const er = globalThis.process && // eslint-disable-next-line no-undef
945
+ process.env.NODE_ENV === "production", tr = (
946
946
  /* c8 ignore next 6 */
947
947
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
948
- ar ? function(t, s) {
948
+ er ? function(t, s) {
949
949
  return t instanceof s;
950
950
  } : function(t, s) {
951
951
  if (t instanceof s)
@@ -957,7 +957,7 @@ process.env.NODE_ENV === "production", or = (
957
957
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
958
  );
959
959
  if (r === o) {
960
- const i = Dt(t);
960
+ const i = kt(t);
961
961
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
962
 
963
963
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -975,15 +975,15 @@ spurious results.`);
975
975
  return !1;
976
976
  }
977
977
  );
978
- class zt {
978
+ class Dt {
979
979
  constructor(t, s = "GraphQL request", a = {
980
980
  line: 1,
981
981
  column: 1
982
982
  }) {
983
- typeof t == "string" || we(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || we(
983
+ typeof t == "string" || Ce(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || Ce(
984
984
  !1,
985
985
  "line in locationOffset is 1-indexed and must be positive."
986
- ), this.locationOffset.column > 0 || we(
986
+ ), this.locationOffset.column > 0 || Ce(
987
987
  !1,
988
988
  "column in locationOffset is 1-indexed and must be positive."
989
989
  );
@@ -992,35 +992,35 @@ class zt {
992
992
  return "Source";
993
993
  }
994
994
  }
995
- function ir(e) {
996
- return or(e, zt);
995
+ function nr(e) {
996
+ return tr(e, Dt);
997
997
  }
998
- function cr(e) {
999
- const t = ir(e) ? e : new zt(e), s = t.body, a = new _s(t);
998
+ function sr(e) {
999
+ const t = nr(e) ? e : new Dt(e), s = t.body, a = new zs(t);
1000
1000
  let r = "", o = !1;
1001
- for (; a.advance().kind !== g.EOF; ) {
1002
- const i = a.token, l = i.kind, c = !Us(i.kind);
1003
- o && (c || i.kind === g.SPREAD) && (r += " ");
1001
+ for (; a.advance().kind !== x.EOF; ) {
1002
+ const i = a.token, l = i.kind, c = !Fs(i.kind);
1003
+ o && (c || i.kind === x.SPREAD) && (r += " ");
1004
1004
  const u = s.slice(i.start, i.end);
1005
- l === g.BLOCK_STRING ? r += Bs(i.value, {
1005
+ l === x.BLOCK_STRING ? r += Ds(i.value, {
1006
1006
  minimize: !0
1007
1007
  }) : r += u, o = c;
1008
1008
  }
1009
1009
  return r;
1010
1010
  }
1011
- const Ft = wt(
1011
+ const zt = yt(
1012
1012
  void 0
1013
- ), Ja = ({
1013
+ ), _a = ({
1014
1014
  children: e,
1015
1015
  client: t
1016
- }) => /* @__PURE__ */ n.jsx(Ft.Provider, { value: t, children: e }), qt = (e, t, ...[s]) => ({
1016
+ }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1017
1017
  queryFn: () => e.fetch(t, s),
1018
- queryKey: [cr(t.toString()), s]
1019
- }), lr = (e, ...[t]) => {
1020
- const s = ts(Ft);
1018
+ queryKey: [sr(t.toString()), s]
1019
+ }), rr = (e, ...[t]) => {
1020
+ const s = Xn(zt);
1021
1021
  if (s === void 0)
1022
1022
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1023
- return qt(s, e, ...t === void 0 ? [] : [t]);
1023
+ return Ft(s, e, ...t === void 0 ? [] : [t]);
1024
1024
  };
1025
1025
  class H extends String {
1026
1026
  __apiType;
@@ -1033,7 +1033,7 @@ class H extends String {
1033
1033
  return this.value;
1034
1034
  }
1035
1035
  }
1036
- const dr = new H(
1036
+ const ar = new H(
1037
1037
  `
1038
1038
  fragment OperationsFragment on OperationItem {
1039
1039
  slug
@@ -1101,7 +1101,7 @@ const dr = new H(
1101
1101
  }
1102
1102
  `,
1103
1103
  { fragmentName: "OperationsFragment" }
1104
- ), ur = new H(`
1104
+ ), or = new H(`
1105
1105
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1106
1106
  schema(input: $input, type: $type) {
1107
1107
  url
@@ -1110,13 +1110,13 @@ const dr = new H(
1110
1110
  }
1111
1111
  }
1112
1112
  }
1113
- `), mr = new H(`
1113
+ `), ir = new H(`
1114
1114
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1115
1115
  schema(input: $input, type: $type) {
1116
1116
  openapi
1117
1117
  }
1118
1118
  }
1119
- `), pr = new H(`
1119
+ `), cr = new H(`
1120
1120
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1121
1121
  schema(input: $input, type: $type) {
1122
1122
  servers {
@@ -1208,7 +1208,7 @@ const dr = new H(
1208
1208
  schema
1209
1209
  }
1210
1210
  }
1211
- }`), hr = new H(`
1211
+ }`), lr = new H(`
1212
1212
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1213
1213
  schema(input: $input, type: $type) {
1214
1214
  title
@@ -1223,7 +1223,7 @@ const dr = new H(
1223
1223
  }
1224
1224
  }
1225
1225
  }
1226
- `), fr = new H(`
1226
+ `), dr = new H(`
1227
1227
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1228
1228
  schema(input: $input, type: $type) {
1229
1229
  url
@@ -1232,9 +1232,10 @@ const dr = new H(
1232
1232
  }
1233
1233
  }
1234
1234
  }
1235
- `), xr = new H(`
1235
+ `), ur = new H(`
1236
1236
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1237
1237
  schema(input: $input, type: $type) {
1238
+ extensions
1238
1239
  tags {
1239
1240
  slug
1240
1241
  name
@@ -1254,123 +1255,20 @@ const dr = new H(
1254
1255
  }
1255
1256
  }
1256
1257
  }
1257
- `), gr = {
1258
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": ur,
1259
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": dr,
1260
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": mr,
1261
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": pr,
1262
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": hr,
1263
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": fr,
1264
- "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": xr
1258
+ `), mr = {
1259
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": or,
1260
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ar,
1261
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": ir,
1262
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": cr,
1263
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": lr,
1264
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": dr,
1265
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": ur
1265
1266
  };
1266
- function yr(e) {
1267
- return gr[e] ?? {};
1267
+ function pr(e) {
1268
+ return mr[e] ?? {};
1268
1269
  }
1269
- const q = Fe.Root, Vt = Fe.CollapsibleTrigger, V = Fe.CollapsibleContent, Bt = S.Root, _t = S.Value, Ve = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1270
- S.Trigger,
1271
- {
1272
- ref: a,
1273
- className: v(
1274
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring focus:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",
1275
- e
1276
- ),
1277
- ...s,
1278
- children: [
1279
- /* @__PURE__ */ n.jsx("span", { className: "truncate", children: t }),
1280
- /* @__PURE__ */ n.jsx(S.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(yt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1281
- ]
1282
- }
1283
- ));
1284
- Ve.displayName = S.Trigger.displayName;
1285
- const Ut = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1286
- S.ScrollUpButton,
1287
- {
1288
- ref: s,
1289
- className: v(
1290
- "flex cursor-default items-center justify-center py-1",
1291
- e
1292
- ),
1293
- ...t,
1294
- children: /* @__PURE__ */ n.jsx(wn, { className: "h-4 w-4" })
1295
- }
1296
- ));
1297
- Ut.displayName = S.ScrollUpButton.displayName;
1298
- const Mt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1299
- S.ScrollDownButton,
1300
- {
1301
- ref: s,
1302
- className: v(
1303
- "flex cursor-default items-center justify-center py-1",
1304
- e
1305
- ),
1306
- ...t,
1307
- children: /* @__PURE__ */ n.jsx(yt, { className: "h-4 w-4" })
1308
- }
1309
- ));
1310
- Mt.displayName = S.ScrollDownButton.displayName;
1311
- const Be = w.forwardRef(({ className: e, children: t, position: s = "popper", ...a }, r) => /* @__PURE__ */ n.jsx(S.Portal, { children: /* @__PURE__ */ n.jsxs(
1312
- S.Content,
1313
- {
1314
- ref: r,
1315
- className: v(
1316
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1317
- s === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
1318
- e
1319
- ),
1320
- position: s,
1321
- ...a,
1322
- children: [
1323
- /* @__PURE__ */ n.jsx(Ut, {}),
1324
- /* @__PURE__ */ n.jsx(
1325
- S.Viewport,
1326
- {
1327
- className: v(
1328
- s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
1329
- "divide-y"
1330
- ),
1331
- children: t
1332
- }
1333
- ),
1334
- /* @__PURE__ */ n.jsx(Mt, {})
1335
- ]
1336
- }
1337
- ) }));
1338
- Be.displayName = S.Content.displayName;
1339
- const vr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1340
- S.Label,
1341
- {
1342
- ref: s,
1343
- className: v("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
1344
- ...t
1345
- }
1346
- ));
1347
- vr.displayName = S.Label.displayName;
1348
- const ne = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1349
- S.Item,
1350
- {
1351
- ref: a,
1352
- className: v(
1353
- "relative flex w-full cursor-default select-none items-center py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1354
- e
1355
- ),
1356
- ...s,
1357
- children: [
1358
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(S.ItemIndicator, { children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" }) }) }),
1359
- /* @__PURE__ */ n.jsx(S.ItemText, { children: t })
1360
- ]
1361
- }
1362
- ));
1363
- ne.displayName = S.Item.displayName;
1364
- const br = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1365
- S.Separator,
1366
- {
1367
- ref: s,
1368
- className: v("-mx-1 my-1 h-px bg-muted", e),
1369
- ...t
1370
- }
1371
- ));
1372
- br.displayName = S.Separator.displayName;
1373
- function jr() {
1270
+ const q = ze.Root, qt = ze.CollapsibleTrigger, V = ze.CollapsibleContent;
1271
+ function hr() {
1374
1272
  const t = navigator.userAgent.toLowerCase();
1375
1273
  if (t.indexOf("win") !== -1)
1376
1274
  return "windows";
@@ -1381,10 +1279,10 @@ function jr() {
1381
1279
  if (t.indexOf("x11") !== -1)
1382
1280
  return "unix";
1383
1281
  }
1384
- function Nr() {
1385
- return jr() === "apple";
1282
+ function fr() {
1283
+ return hr() === "apple";
1386
1284
  }
1387
- const wr = {
1285
+ const gr = {
1388
1286
  other: {
1389
1287
  alt: "Alt",
1390
1288
  meta: "Ctrl",
@@ -1399,8 +1297,8 @@ const wr = {
1399
1297
  shift: "⇧",
1400
1298
  option: "⌥"
1401
1299
  }
1402
- }, Cr = (e, t) => {
1403
- const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = L(t);
1300
+ }, xr = (e, t) => {
1301
+ const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = R(t);
1404
1302
  return z(() => {
1405
1303
  c.current = t;
1406
1304
  }, [t]), z(() => {
@@ -1413,28 +1311,28 @@ const wr = {
1413
1311
  }, [l, a, r, o, i]), {
1414
1312
  trigger: () => c.current(),
1415
1313
  label: s.map(
1416
- (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? wr[Nr() ? "apple" : "other"][u] : u
1314
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? gr[fr() ? "apple" : "other"][u] : u
1417
1315
  )
1418
1316
  };
1419
- }, Sr = $e()(
1420
- Ee(
1317
+ }, yr = Le()(
1318
+ $e(
1421
1319
  (e) => ({
1422
1320
  selectedServer: void 0,
1423
1321
  setSelectedServer: (t) => e({ selectedServer: t })
1424
1322
  }),
1425
1323
  { name: "zudoku-selected-server" }
1426
1324
  )
1427
- ), Tr = (e) => {
1428
- const { selectedServer: t, setSelectedServer: s } = Sr();
1429
- return { selectedServer: Ct(
1325
+ ), vr = (e) => {
1326
+ const { selectedServer: t, setSelectedServer: s } = yr();
1327
+ return { selectedServer: vt(
1430
1328
  () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1431
1329
  [t, e]
1432
1330
  ), setSelectedServer: s };
1433
- }, Gt = w.forwardRef(
1331
+ }, Vt = A.forwardRef(
1434
1332
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1435
1333
  "textarea",
1436
1334
  {
1437
- className: v(
1335
+ className: C(
1438
1336
  "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1439
1337
  e
1440
1338
  ),
@@ -1443,28 +1341,28 @@ const wr = {
1443
1341
  }
1444
1342
  )
1445
1343
  );
1446
- Gt.displayName = "Textarea";
1344
+ Vt.displayName = "Textarea";
1447
1345
  const M = ({
1448
1346
  children: e,
1449
1347
  className: t
1450
1348
  }) => /* @__PURE__ */ n.jsxs(
1451
1349
  "div",
1452
1350
  {
1453
- className: v(
1351
+ className: C(
1454
1352
  "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1455
1353
  t
1456
1354
  ),
1457
1355
  children: [
1458
1356
  e,
1459
1357
  /* @__PURE__ */ n.jsx(
1460
- Vt,
1358
+ qt,
1461
1359
  {
1462
- className: v(
1360
+ className: C(
1463
1361
  "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1464
1362
  t
1465
1363
  ),
1466
1364
  children: /* @__PURE__ */ n.jsx(
1467
- Cn,
1365
+ yn,
1468
1366
  {
1469
1367
  className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1470
1368
  size: 16
@@ -1477,11 +1375,11 @@ const M = ({
1477
1375
  ), G = ({
1478
1376
  children: e,
1479
1377
  className: t
1480
- }) => /* @__PURE__ */ n.jsx("span", { className: v("font-semibold w-full text-start", t), children: e }), Ar = C.Root, Or = C.Trigger, Rr = C.Group, Pr = w.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1481
- C.SubTrigger,
1378
+ }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), br = w.Root, jr = w.Trigger, Cr = w.Group, wr = A.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1379
+ w.SubTrigger,
1482
1380
  {
1483
1381
  ref: r,
1484
- className: v(
1382
+ className: C(
1485
1383
  "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1486
1384
  t && "pl-8",
1487
1385
  e
@@ -1489,29 +1387,29 @@ const M = ({
1489
1387
  ...a,
1490
1388
  children: [
1491
1389
  s,
1492
- /* @__PURE__ */ n.jsx(Sn, { className: "ml-auto h-4 w-4" })
1390
+ /* @__PURE__ */ n.jsx(vn, { className: "ml-auto h-4 w-4" })
1493
1391
  ]
1494
1392
  }
1495
1393
  ));
1496
- Pr.displayName = C.SubTrigger.displayName;
1497
- const Lr = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1498
- C.SubContent,
1394
+ wr.displayName = w.SubTrigger.displayName;
1395
+ const Nr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1396
+ w.SubContent,
1499
1397
  {
1500
1398
  ref: s,
1501
- className: v(
1399
+ className: C(
1502
1400
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1503
1401
  e
1504
1402
  ),
1505
1403
  ...t
1506
1404
  }
1507
1405
  ));
1508
- Lr.displayName = C.SubContent.displayName;
1509
- const Ht = w.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(C.Portal, { children: /* @__PURE__ */ n.jsx(
1510
- C.Content,
1406
+ Nr.displayName = w.SubContent.displayName;
1407
+ const Bt = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsx(
1408
+ w.Content,
1511
1409
  {
1512
1410
  ref: a,
1513
1411
  sideOffset: t,
1514
- className: v(
1412
+ className: C(
1515
1413
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1516
1414
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1517
1415
  e
@@ -1519,12 +1417,12 @@ const Ht = w.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__
1519
1417
  ...s
1520
1418
  }
1521
1419
  ) }));
1522
- Ht.displayName = C.Content.displayName;
1523
- const Qt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1524
- C.Item,
1420
+ Bt.displayName = w.Content.displayName;
1421
+ const _t = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1422
+ w.Item,
1525
1423
  {
1526
1424
  ref: a,
1527
- className: v(
1425
+ className: C(
1528
1426
  "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1529
1427
  t && "pl-8",
1530
1428
  e
@@ -1532,45 +1430,45 @@ const Qt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1532
1430
  ...s
1533
1431
  }
1534
1432
  ));
1535
- Qt.displayName = C.Item.displayName;
1536
- const $r = w.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1537
- C.CheckboxItem,
1433
+ _t.displayName = w.Item.displayName;
1434
+ const Sr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1435
+ w.CheckboxItem,
1538
1436
  {
1539
1437
  ref: r,
1540
- className: v(
1438
+ className: C(
1541
1439
  "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1542
1440
  e
1543
1441
  ),
1544
1442
  checked: s,
1545
1443
  ...a,
1546
1444
  children: [
1547
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" }) }) }),
1445
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ft, { className: "h-4 w-4" }) }) }),
1548
1446
  t
1549
1447
  ]
1550
1448
  }
1551
1449
  ));
1552
- $r.displayName = C.CheckboxItem.displayName;
1553
- const Er = w.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1554
- C.RadioItem,
1450
+ Sr.displayName = w.CheckboxItem.displayName;
1451
+ const Tr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1452
+ w.RadioItem,
1555
1453
  {
1556
1454
  ref: a,
1557
- className: v(
1455
+ className: C(
1558
1456
  "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1559
1457
  e
1560
1458
  ),
1561
1459
  ...s,
1562
1460
  children: [
1563
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(C.ItemIndicator, { children: /* @__PURE__ */ n.jsx(Tn, { className: "h-4 w-4 fill-current" }) }) }),
1461
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bn, { className: "h-4 w-4 fill-current" }) }) }),
1564
1462
  t
1565
1463
  ]
1566
1464
  }
1567
1465
  ));
1568
- Er.displayName = C.RadioItem.displayName;
1569
- const Jt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1570
- C.Label,
1466
+ Tr.displayName = w.RadioItem.displayName;
1467
+ const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1468
+ w.Label,
1571
1469
  {
1572
1470
  ref: a,
1573
- className: v(
1471
+ className: C(
1574
1472
  "px-2 py-1.5 text-sm font-semibold",
1575
1473
  t && "pl-8",
1576
1474
  e
@@ -1578,21 +1476,21 @@ const Jt = w.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1578
1476
  ...s
1579
1477
  }
1580
1478
  ));
1581
- Jt.displayName = C.Label.displayName;
1582
- const Wt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1583
- C.Separator,
1479
+ Ut.displayName = w.Label.displayName;
1480
+ const Mt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1481
+ w.Separator,
1584
1482
  {
1585
1483
  ref: s,
1586
- className: v("-mx-1 my-1 h-px bg-muted", e),
1484
+ className: C("-mx-1 my-1 h-px bg-muted", e),
1587
1485
  ...t
1588
1486
  }
1589
1487
  ));
1590
- Wt.displayName = C.Separator.displayName;
1591
- const Ir = ({
1488
+ Mt.displayName = w.Separator.displayName;
1489
+ const Ar = ({
1592
1490
  examples: e,
1593
1491
  onSelect: t
1594
- }) => /* @__PURE__ */ n.jsxs(Ar, { children: [
1595
- /* @__PURE__ */ n.jsx(Or, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1492
+ }) => /* @__PURE__ */ n.jsxs(br, { children: [
1493
+ /* @__PURE__ */ n.jsx(jr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1596
1494
  E,
1597
1495
  {
1598
1496
  variant: "ghost",
@@ -1600,15 +1498,15 @@ const Ir = ({
1600
1498
  className: "hover:bg-accent hover:brightness-95",
1601
1499
  children: [
1602
1500
  "Use Example ",
1603
- /* @__PURE__ */ n.jsx(fe, { size: 16, className: "ml-2" })
1501
+ /* @__PURE__ */ n.jsx(he, { size: 16, className: "ml-2" })
1604
1502
  ]
1605
1503
  }
1606
1504
  ) }),
1607
- /* @__PURE__ */ n.jsx(Ht, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1608
- /* @__PURE__ */ n.jsx(Jt, { children: s.mediaType }),
1609
- /* @__PURE__ */ n.jsx(Wt, {}),
1610
- /* @__PURE__ */ n.jsx(Rr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1611
- Qt,
1505
+ /* @__PURE__ */ n.jsx(Bt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1506
+ /* @__PURE__ */ n.jsx(Ut, { children: s.mediaType }),
1507
+ /* @__PURE__ */ n.jsx(Mt, {}),
1508
+ /* @__PURE__ */ n.jsx(Cr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1509
+ _t,
1612
1510
  {
1613
1511
  onSelect: () => t(a, s.mediaType),
1614
1512
  children: /* @__PURE__ */ n.jsx(
@@ -1623,14 +1521,14 @@ const Ir = ({
1623
1521
  a.name
1624
1522
  )) })
1625
1523
  ] }, s.mediaType)) })
1626
- ] }), kr = ({ content: e }) => {
1627
- const { register: t, setValue: s, watch: a } = ie(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1524
+ ] }), Or = ({ content: e }) => {
1525
+ const { register: t, setValue: s, watch: a } = ae(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1628
1526
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1629
1527
  /* @__PURE__ */ n.jsxs(M, { children: [
1630
- /* @__PURE__ */ n.jsx(An, { size: 16 }),
1528
+ /* @__PURE__ */ n.jsx(jn, { size: 16 }),
1631
1529
  /* @__PURE__ */ n.jsx(G, { children: "Body" }),
1632
1530
  e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1633
- Ir,
1531
+ Ar,
1634
1532
  {
1635
1533
  examples: e,
1636
1534
  onSelect: (i, l) => {
@@ -1647,17 +1545,17 @@ const Ir = ({
1647
1545
  ) : /* @__PURE__ */ n.jsx("div", {})
1648
1546
  ] }),
1649
1547
  /* @__PURE__ */ n.jsx(V, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1650
- Gt,
1548
+ Vt,
1651
1549
  {
1652
1550
  ...t("body"),
1653
- className: v(
1551
+ className: C(
1654
1552
  "w-full p-2 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0"
1655
1553
  ),
1656
1554
  placeholder: "Your body here..."
1657
1555
  }
1658
1556
  ) })
1659
1557
  ] });
1660
- }, ht = (e, t, s) => {
1558
+ }, ut = (e, t, s) => {
1661
1559
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1662
1560
  const i = o.replace(/[:{}]/g, "");
1663
1561
  return s.pathParams.find((c) => c.name === i)?.value ?? o;
@@ -1669,12 +1567,12 @@ const Ir = ({
1669
1567
  r.searchParams.set(o.name, o.value);
1670
1568
  }), r;
1671
1569
  };
1672
- function Dr(e) {
1570
+ function Pr(e) {
1673
1571
  return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1674
1572
  e
1675
1573
  );
1676
1574
  }
1677
- const zr = (e, t) => {
1575
+ const Rr = (e, t) => {
1678
1576
  const s = e.find(
1679
1577
  ([a]) => a.toLowerCase() === "content-disposition"
1680
1578
  )?.[1];
@@ -1691,41 +1589,41 @@ const zr = (e, t) => {
1691
1589
  } catch {
1692
1590
  return "download";
1693
1591
  }
1694
- }, ye = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1695
- Re.Root,
1592
+ }, xe = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1593
+ Oe.Root,
1696
1594
  {
1697
1595
  ref: s,
1698
- className: v(
1596
+ className: C(
1699
1597
  "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden 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",
1700
1598
  "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1701
1599
  e
1702
1600
  ),
1703
1601
  ...t,
1704
1602
  children: /* @__PURE__ */ n.jsx(
1705
- Re.Indicator,
1603
+ Oe.Indicator,
1706
1604
  {
1707
- className: v("flex items-center justify-center text-current"),
1708
- children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" })
1605
+ className: C("flex items-center justify-center text-current"),
1606
+ children: /* @__PURE__ */ n.jsx(Cn, { className: "h-4 w-4" })
1709
1607
  }
1710
1608
  )
1711
1609
  }
1712
1610
  ));
1713
- ye.displayName = Re.Root.displayName;
1714
- const Fr = ue.Root, Xt = w.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ue.Portal, { children: /* @__PURE__ */ n.jsx(
1715
- ue.Content,
1611
+ xe.displayName = Oe.Root.displayName;
1612
+ const Lr = de.Root, Gt = A.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(de.Portal, { children: /* @__PURE__ */ n.jsx(
1613
+ de.Content,
1716
1614
  {
1717
1615
  ref: r,
1718
1616
  align: t,
1719
1617
  sideOffset: s,
1720
- className: v(
1618
+ className: C(
1721
1619
  "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1722
1620
  e
1723
1621
  ),
1724
1622
  ...a
1725
1623
  }
1726
1624
  ) }));
1727
- Xt.displayName = ue.Content.displayName;
1728
- const qr = ({
1625
+ Gt.displayName = de.Content.displayName;
1626
+ const $r = ({
1729
1627
  value: e,
1730
1628
  options: t,
1731
1629
  onChange: s,
@@ -1734,35 +1632,35 @@ const qr = ({
1734
1632
  onEnterPress: o,
1735
1633
  ref: i
1736
1634
  }) => {
1737
- const [l, c] = k(!1), [u, d] = k(!1), h = vs((m) => m.filtered.count), f = L(null);
1738
- return /* @__PURE__ */ n.jsxs(Fr, { open: l, children: [
1739
- /* @__PURE__ */ n.jsx(ys, { children: /* @__PURE__ */ n.jsx(
1740
- js,
1635
+ const [l, c] = k(!1), [u, d] = k(!1), h = hs((m) => m.filtered.count), g = R(null);
1636
+ return /* @__PURE__ */ n.jsxs(Lr, { open: l, children: [
1637
+ /* @__PURE__ */ n.jsx(ps, { children: /* @__PURE__ */ n.jsx(
1638
+ gs,
1741
1639
  {
1742
1640
  autoComplete: "off",
1743
1641
  ref: (m) => {
1744
- f.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1642
+ g.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1745
1643
  },
1746
1644
  value: e,
1747
1645
  placeholder: r,
1748
- className: v("h-9 bg-transparent", a),
1646
+ className: C("h-9 bg-transparent", a),
1749
1647
  onFocus: () => c(!0),
1750
1648
  onBlur: () => {
1751
1649
  u || c(!1);
1752
1650
  },
1753
1651
  onKeyDown: (m) => {
1754
- m.key === "Enter" && (c(!1), f.current?.blur(), o?.(m));
1652
+ m.key === "Enter" && (c(!1), g.current?.blur(), o?.(m));
1755
1653
  },
1756
1654
  onValueChange: (m) => s(m)
1757
1655
  }
1758
1656
  ) }),
1759
1657
  /* @__PURE__ */ n.jsx(
1760
- Xt,
1658
+ Gt,
1761
1659
  {
1762
1660
  onMouseEnter: () => d(!0),
1763
1661
  onMouseLeave: () => d(!1),
1764
1662
  onOpenAutoFocus: (m) => m.preventDefault(),
1765
- className: v("p-0 w-(--radix-popover-trigger-width)", {
1663
+ className: C("p-0 w-(--radix-popover-trigger-width)", {
1766
1664
  "border-0": h === 0
1767
1665
  }),
1768
1666
  align: "start",
@@ -1773,12 +1671,12 @@ const qr = ({
1773
1671
  onTouchMove: (m) => {
1774
1672
  m.stopPropagation();
1775
1673
  },
1776
- children: /* @__PURE__ */ n.jsx(Ns, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1777
- ws,
1674
+ children: /* @__PURE__ */ n.jsx(xs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1675
+ ys,
1778
1676
  {
1779
1677
  value: m,
1780
- onSelect: (x) => {
1781
- s(x), c(!1);
1678
+ onSelect: (y) => {
1679
+ s(y), c(!1);
1782
1680
  },
1783
1681
  className: "cursor-pointer",
1784
1682
  children: m
@@ -1788,23 +1686,23 @@ const qr = ({
1788
1686
  }
1789
1687
  )
1790
1688
  ] });
1791
- }, pe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(bs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(qr, { ...t }) }), ce = (e, t) => {
1792
- const s = w.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1793
- const l = r ? Cs : e;
1794
- return w.createElement(l, {
1689
+ }, me = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(fs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx($r, { ...t }) }), oe = (e, t) => {
1690
+ const s = A.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1691
+ const l = r ? vs : e;
1692
+ return A.createElement(l, {
1795
1693
  ...o,
1796
1694
  ref: i,
1797
- className: typeof t == "function" ? t({ className: a }) : v(t, a)
1695
+ className: typeof t == "function" ? t({ className: a }) : C(t, a)
1798
1696
  });
1799
1697
  });
1800
1698
  return s.displayName = `VariantComponent(${e})`, s;
1801
- }, _e = ce(
1699
+ }, qe = oe(
1802
1700
  "div",
1803
1701
  "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1804
- ), he = ce(
1702
+ ), pe = oe(
1805
1703
  "div",
1806
1704
  "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1807
- ), Vr = Object.freeze([
1705
+ ), Er = Object.freeze([
1808
1706
  "Accept",
1809
1707
  "Accept-Encoding",
1810
1708
  "Accept-Language",
@@ -1831,76 +1729,76 @@ const qr = ({
1831
1729
  "Set-Cookie",
1832
1730
  "User-Agent",
1833
1731
  "X-Requested-With"
1834
- ]), Br = ({
1732
+ ]), Ir = ({
1835
1733
  control: e,
1836
1734
  schemaHeaders: t,
1837
1735
  lockedHeaders: s
1838
1736
  }) => {
1839
- const { fields: a, append: r, remove: o } = ze({
1737
+ const { fields: a, append: r, remove: o } = De({
1840
1738
  control: e,
1841
1739
  name: "headers"
1842
- }), { setValue: i, watch: l, formState: c } = ie(), u = L([]), d = L([]), h = l("headers"), f = St(
1843
- (j) => {
1844
- j?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1740
+ }), { setValue: i, watch: l, formState: c } = ae(), u = R([]), d = R([]), h = l("headers"), g = bt(
1741
+ (f) => {
1742
+ f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1845
1743
  },
1846
1744
  [r]
1847
1745
  );
1848
1746
  z(() => {
1849
- h.length === 0 && f();
1850
- }, [h, f]);
1851
- const m = (j) => {
1852
- u.current[j]?.focus();
1853
- }, x = (j) => {
1854
- f(), requestAnimationFrame(() => d.current[j + 1]?.focus());
1855
- }, y = t.filter((j) => !h.some((N) => N.name === j.name)).map(({ name: j }) => j), b = a.flatMap((j, N) => !s?.map((O) => O.toLowerCase()).includes(j.name.toLowerCase()) ? [] : [N]), R = s?.map((j) => ({
1856
- name: j,
1857
- id: `locked-${j}`,
1747
+ h.length === 0 && g();
1748
+ }, [h, g]);
1749
+ const m = (f) => {
1750
+ u.current[f]?.focus();
1751
+ }, y = (f) => {
1752
+ g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1753
+ }, v = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((S) => S.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), O = s?.map((f) => ({
1754
+ name: f,
1755
+ id: `locked-${f}`,
1858
1756
  value: "••••••••••",
1859
1757
  active: !0,
1860
1758
  locked: !0
1861
1759
  })) ?? [];
1862
1760
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1863
1761
  /* @__PURE__ */ n.jsxs(M, { children: [
1864
- /* @__PURE__ */ n.jsx(On, { size: 16 }),
1762
+ /* @__PURE__ */ n.jsx(wn, { size: 16 }),
1865
1763
  /* @__PURE__ */ n.jsx(G, { children: "Headers" }),
1866
1764
  /* @__PURE__ */ n.jsxs(
1867
- re,
1765
+ ne,
1868
1766
  {
1869
- onClick: f,
1767
+ onClick: g,
1870
1768
  type: "button",
1871
1769
  size: "sm",
1872
1770
  variant: "ghost",
1873
1771
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
1874
1772
  children: [
1875
1773
  "Add header ",
1876
- /* @__PURE__ */ n.jsx(fe, { size: 16 })
1774
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
1877
1775
  ]
1878
1776
  }
1879
1777
  )
1880
1778
  ] }),
1881
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(_e, { children: [
1882
- R.map((j) => /* @__PURE__ */ n.jsxs(it, { children: [
1883
- /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1884
- he,
1779
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
1780
+ O.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
1781
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1782
+ pe,
1885
1783
  {
1886
1784
  className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1887
1785
  children: [
1888
- /* @__PURE__ */ n.jsx(Rn, { size: 16 }),
1786
+ /* @__PURE__ */ n.jsx(Nn, { size: 16 }),
1889
1787
  /* @__PURE__ */ n.jsx(
1890
- me,
1788
+ ue,
1891
1789
  {
1892
- value: j.name,
1790
+ value: f.name,
1893
1791
  disabled: !0,
1894
1792
  className: "w-full border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1895
1793
  }
1896
1794
  ),
1897
- /* @__PURE__ */ n.jsx("div", { children: j.value })
1795
+ /* @__PURE__ */ n.jsx("div", { children: f.value })
1898
1796
  ]
1899
1797
  },
1900
- j.id
1798
+ f.id
1901
1799
  ) }),
1902
1800
  /* @__PURE__ */ n.jsx(
1903
- lt,
1801
+ ot,
1904
1802
  {
1905
1803
  alignOffset: 10,
1906
1804
  side: "bottom",
@@ -1908,51 +1806,51 @@ const qr = ({
1908
1806
  children: /* @__PURE__ */ n.jsx("p", { children: "This header is set by the selected authentication." })
1909
1807
  }
1910
1808
  )
1911
- ] }, j.id)),
1912
- a.map((j, N) => {
1913
- const Q = t.find(
1914
- (O) => O.name === h.at(N)?.name
1809
+ ] }, f.id)),
1810
+ a.map((f, j) => {
1811
+ const $ = t.find(
1812
+ (S) => S.name === h.at(j)?.name
1915
1813
  );
1916
1814
  return /* @__PURE__ */ n.jsxs(
1917
- he,
1815
+ pe,
1918
1816
  {
1919
- className: v(
1920
- b.includes(N) && "text-amber-600",
1921
- b.includes(N) && !c.dirtyFields.headers?.[N]?.value && "hidden"
1817
+ className: C(
1818
+ b.includes(j) && "text-amber-600",
1819
+ b.includes(j) && !c.dirtyFields.headers?.[j]?.value && "hidden"
1922
1820
  ),
1923
1821
  children: [
1924
1822
  /* @__PURE__ */ n.jsx(
1925
1823
  F,
1926
1824
  {
1927
1825
  control: e,
1928
- name: `headers.${N}.active`,
1929
- render: ({ field: O }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1826
+ name: `headers.${j}.active`,
1827
+ render: ({ field: S }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1930
1828
  /* @__PURE__ */ n.jsx(
1931
- ye,
1829
+ xe,
1932
1830
  {
1933
- id: `headers.${N}.active`,
1934
- className: v(
1935
- b.includes(N) && "hidden"
1831
+ id: `headers.${j}.active`,
1832
+ className: C(
1833
+ b.includes(j) && "hidden"
1936
1834
  ),
1937
- checked: O.value,
1835
+ checked: S.value,
1938
1836
  onCheckedChange: (D) => {
1939
- O.onChange(D);
1837
+ S.onChange(D);
1940
1838
  }
1941
1839
  }
1942
1840
  ),
1943
- /* @__PURE__ */ n.jsxs(it, { children: [
1944
- /* @__PURE__ */ n.jsx(ct, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1945
- Pn,
1841
+ /* @__PURE__ */ n.jsxs(rt, { children: [
1842
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1843
+ Sn,
1946
1844
  {
1947
- className: v(
1845
+ className: C(
1948
1846
  "text-amber-600",
1949
- !b.includes(N) && "hidden"
1847
+ !b.includes(j) && "hidden"
1950
1848
  ),
1951
1849
  size: 16
1952
1850
  }
1953
1851
  ) }),
1954
1852
  /* @__PURE__ */ n.jsx(
1955
- lt,
1853
+ ot,
1956
1854
  {
1957
1855
  alignOffset: 10,
1958
1856
  side: "bottom",
@@ -1968,20 +1866,20 @@ const qr = ({
1968
1866
  F,
1969
1867
  {
1970
1868
  control: e,
1971
- name: `headers.${N}.name`,
1972
- render: ({ field: O }) => /* @__PURE__ */ n.jsx(
1973
- pe,
1869
+ name: `headers.${j}.name`,
1870
+ render: ({ field: S }) => /* @__PURE__ */ n.jsx(
1871
+ me,
1974
1872
  {
1975
- ...O,
1873
+ ...S,
1976
1874
  placeholder: "Name",
1977
1875
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1978
- options: [...y, ...Vr],
1979
- onEnterPress: () => m(N),
1876
+ options: [...v, ...Er],
1877
+ onEnterPress: () => m(j),
1980
1878
  onChange: (D) => {
1981
- O.onChange(D), i(`headers.${N}.active`, !0);
1879
+ S.onChange(D), i(`headers.${j}.active`, !0);
1982
1880
  },
1983
1881
  ref: (D) => {
1984
- d.current[N] = D;
1882
+ d.current[j] = D;
1985
1883
  }
1986
1884
  }
1987
1885
  )
@@ -1992,106 +1890,106 @@ const qr = ({
1992
1890
  F,
1993
1891
  {
1994
1892
  control: e,
1995
- name: `headers.${N}.value`,
1996
- render: ({ field: O }) => Q?.enum && Q.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1997
- pe,
1893
+ name: `headers.${j}.value`,
1894
+ render: ({ field: S }) => $?.enum && $.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1895
+ me,
1998
1896
  {
1999
1897
  shouldFilter: !1,
2000
- value: O.value,
2001
- options: Q.enum ?? [],
1898
+ value: S.value,
1899
+ options: $.enum ?? [],
2002
1900
  onChange: (P) => {
2003
- O.onChange(P), i(`headers.${N}.active`, !0);
1901
+ S.onChange(P), i(`headers.${j}.active`, !0);
2004
1902
  },
2005
1903
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2006
1904
  }
2007
1905
  ) : /* @__PURE__ */ n.jsx(
2008
- me,
1906
+ ue,
2009
1907
  {
2010
1908
  placeholder: "Value",
2011
1909
  className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
2012
1910
  autoComplete: "off",
2013
- ...O,
1911
+ ...S,
2014
1912
  ref: (P) => {
2015
- u.current[N] = P;
1913
+ u.current[j] = P;
2016
1914
  },
2017
1915
  onKeyDown: (P) => {
2018
- P.key === "Enter" && P.currentTarget.value.trim() && x(N);
1916
+ P.key === "Enter" && P.currentTarget.value.trim() && y(j);
2019
1917
  }
2020
1918
  }
2021
1919
  )
2022
1920
  }
2023
1921
  ),
2024
1922
  /* @__PURE__ */ n.jsx(
2025
- re,
1923
+ ne,
2026
1924
  {
2027
1925
  size: "icon-xs",
2028
1926
  variant: "ghost",
2029
1927
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2030
- onClick: () => o(N),
1928
+ onClick: () => o(j),
2031
1929
  type: "button",
2032
- children: /* @__PURE__ */ n.jsx(jt, { size: 16 })
1930
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
2033
1931
  }
2034
1932
  )
2035
1933
  ] })
2036
1934
  ]
2037
1935
  },
2038
- j.id
1936
+ f.id
2039
1937
  );
2040
1938
  })
2041
1939
  ] }) }) }) })
2042
1940
  ] });
2043
- }, _r = Ts(
1941
+ }, kr = js(
2044
1942
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
2045
- ), Ue = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2046
- Ot.Root,
1943
+ ), Ve = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1944
+ At.Root,
2047
1945
  {
2048
1946
  ref: s,
2049
- className: v(_r(), e),
1947
+ className: C(kr(), e),
2050
1948
  ...t
2051
1949
  }
2052
1950
  ));
2053
- Ue.displayName = Ot.Root.displayName;
2054
- const Zt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2055
- ae.Root,
1951
+ Ve.displayName = At.Root.displayName;
1952
+ const Ht = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1953
+ se.Root,
2056
1954
  {
2057
- className: v("grid gap-2", e),
1955
+ className: C("grid gap-2", e),
2058
1956
  ...t,
2059
1957
  ref: s
2060
1958
  }
2061
1959
  ));
2062
- Zt.displayName = ae.Root.displayName;
2063
- const Yt = w.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
2064
- ae.Item,
1960
+ Ht.displayName = se.Root.displayName;
1961
+ const Qt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1962
+ se.Item,
2065
1963
  {
2066
1964
  ref: s,
2067
- className: v(
1965
+ className: C(
2068
1966
  "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
2069
1967
  e
2070
1968
  ),
2071
1969
  ...t,
2072
- children: /* @__PURE__ */ n.jsx(ae.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Ln, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1970
+ children: /* @__PURE__ */ n.jsx(se.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Tn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
2073
1971
  }
2074
1972
  ));
2075
- Yt.displayName = ae.Item.displayName;
2076
- const Kt = ({
1973
+ Qt.displayName = se.Item.displayName;
1974
+ const Jt = ({
2077
1975
  identities: e,
2078
1976
  setValue: t,
2079
1977
  value: s
2080
1978
  }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
2081
- Zt,
1979
+ Ht,
2082
1980
  {
2083
1981
  onValueChange: (a) => t(a),
2084
1982
  value: s,
2085
- defaultValue: se,
1983
+ defaultValue: te,
2086
1984
  className: "gap-0",
2087
1985
  disabled: e?.length === 0,
2088
- children: [{ id: se, label: "None" }, ...e ?? []].map(
1986
+ children: [{ id: te, label: "None" }, ...e ?? []].map(
2089
1987
  (a) => /* @__PURE__ */ n.jsxs(
2090
- Ue,
1988
+ Ve,
2091
1989
  {
2092
1990
  className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
2093
1991
  children: [
2094
- /* @__PURE__ */ n.jsx(Yt, { value: a.id, id: a.id }),
1992
+ /* @__PURE__ */ n.jsx(Qt, { value: a.id, id: a.id }),
2095
1993
  /* @__PURE__ */ n.jsx("span", { children: a.label })
2096
1994
  ]
2097
1995
  },
@@ -2099,28 +1997,28 @@ const Kt = ({
2099
1997
  )
2100
1998
  )
2101
1999
  }
2102
- ) }), Ur = ({
2000
+ ) }), Dr = ({
2103
2001
  onSubmit: e,
2104
2002
  identities: t,
2105
2003
  open: s,
2106
2004
  onOpenChange: a
2107
2005
  }) => {
2108
2006
  const [r, o] = k(void 0), [i, l] = k(!1);
2109
- return /* @__PURE__ */ n.jsx(Ie, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2110
- /* @__PURE__ */ n.jsx(De, { children: "Select an auth identity" }),
2111
- /* @__PURE__ */ n.jsx(Tt, { children: "Please select an identity for this request." }),
2112
- /* @__PURE__ */ n.jsx(Ss, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2113
- Kt,
2007
+ return /* @__PURE__ */ n.jsx(Ee, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2008
+ /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2009
+ /* @__PURE__ */ n.jsx(jt, { children: "Please select an identity for this request." }),
2010
+ /* @__PURE__ */ n.jsx(bs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2011
+ Jt,
2114
2012
  {
2115
2013
  identities: t,
2116
2014
  setValue: o,
2117
2015
  value: r
2118
2016
  }
2119
2017
  ) }),
2120
- /* @__PURE__ */ n.jsxs(At, { className: "flex flex-col gap-2", children: [
2018
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
2121
2019
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2122
2020
  /* @__PURE__ */ n.jsx(
2123
- ye,
2021
+ xe,
2124
2022
  {
2125
2023
  id: "remember",
2126
2024
  checked: i,
@@ -2129,7 +2027,7 @@ const Kt = ({
2129
2027
  )
2130
2028
  }
2131
2029
  ),
2132
- /* @__PURE__ */ n.jsx(Ue, { htmlFor: "remember", children: "Remember my choice" })
2030
+ /* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
2133
2031
  ] }),
2134
2032
  /* @__PURE__ */ n.jsx(
2135
2033
  E,
@@ -2140,24 +2038,24 @@ const Kt = ({
2140
2038
  )
2141
2039
  ] })
2142
2040
  ] }) });
2143
- }, Se = (e) => Math.abs(
2041
+ }, Ne = (e) => Math.abs(
2144
2042
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
2145
- ), Te = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Se(t) + Se(s)}`)) : Se(e), ft = (e, t = {}) => {
2146
- const s = (3 * Te(e) + 2 * Te(e) + Te(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2043
+ ), Se = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Ne(t) + Ne(s)}`)) : Ne(e), mt = (e, t = {}) => {
2044
+ const s = (3 * Se(e) + 2 * Se(e) + Se(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2147
2045
  return `${s}deg ${a}% ${r}%`;
2148
- }, Ae = "data-linked-param", Mr = (e) => {
2149
- const { resolvedTheme: t } = As();
2046
+ }, Te = "data-linked-param", zr = (e) => {
2047
+ const { resolvedTheme: t } = Cs();
2150
2048
  return {
2151
- text: ft(
2049
+ text: mt(
2152
2050
  e,
2153
2051
  t === "light" ? { saturation: 95, lightness: 38 } : {}
2154
2052
  ),
2155
- background: ft(
2053
+ background: mt(
2156
2054
  e,
2157
2055
  t === "light" ? { saturation: 85, lightness: 40 } : {}
2158
2056
  )
2159
2057
  };
2160
- }, en = ({
2058
+ }, Wt = ({
2161
2059
  name: e,
2162
2060
  className: t,
2163
2061
  slug: s,
@@ -2165,26 +2063,26 @@ const Kt = ({
2165
2063
  children: r,
2166
2064
  onClick: o
2167
2065
  }) => {
2168
- const i = L(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = Mr(c), h = `hsl(${u} / 100%)`, f = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2066
+ const i = R(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = zr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2169
2067
  return z(() => {
2170
2068
  if (!l || !i.current) return;
2171
- const x = () => {
2172
- document.querySelectorAll(`[${Ae}="${l}"]`).forEach((R) => {
2173
- R instanceof HTMLElement && (R.dataset.active = "true");
2069
+ const y = () => {
2070
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2071
+ O instanceof HTMLElement && (O.dataset.active = "true");
2174
2072
  });
2175
- }, y = () => {
2176
- document.querySelectorAll(`[${Ae}="${l}"]`).forEach((R) => {
2177
- R instanceof HTMLElement && (R.dataset.active = "false");
2073
+ }, v = () => {
2074
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2075
+ O instanceof HTMLElement && (O.dataset.active = "false");
2178
2076
  });
2179
2077
  }, b = i.current;
2180
- return b.addEventListener("mouseenter", x), b.addEventListener("mouseleave", y), () => {
2181
- b.removeEventListener("mouseenter", x), b.removeEventListener("mouseleave", y);
2078
+ return b.addEventListener("mouseenter", y), b.addEventListener("mouseleave", v), () => {
2079
+ b.removeEventListener("mouseenter", y), b.removeEventListener("mouseleave", v);
2182
2080
  };
2183
2081
  }, [l]), /* @__PURE__ */ n.jsx(
2184
2082
  "span",
2185
2083
  {
2186
- [Ae]: l,
2187
- className: v(
2084
+ [Te]: l,
2085
+ className: C(
2188
2086
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2189
2087
  "relative transition-all duration-100 rounded-lg",
2190
2088
  "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
@@ -2198,29 +2096,29 @@ const Kt = ({
2198
2096
  style: {
2199
2097
  "--param-color": h,
2200
2098
  "--border-color": m,
2201
- "--background-color": f
2099
+ "--background-color": g
2202
2100
  },
2203
2101
  children: r ?? e
2204
2102
  }
2205
2103
  );
2206
- }, Gr = ({
2104
+ }, Fr = ({
2207
2105
  control: e,
2208
2106
  url: t
2209
2107
  }) => {
2210
- const { fields: s } = ze({
2108
+ const { fields: s } = De({
2211
2109
  control: e,
2212
2110
  name: "pathParams"
2213
2111
  }), a = [...s].sort(
2214
2112
  (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2215
2113
  );
2216
- return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(_e, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(he, { children: [
2114
+ return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(pe, { children: [
2217
2115
  /* @__PURE__ */ n.jsx(
2218
2116
  F,
2219
2117
  {
2220
2118
  control: e,
2221
2119
  name: `pathParams.${o}.name`,
2222
2120
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2223
- en,
2121
+ Wt,
2224
2122
  {
2225
2123
  slug: r.name,
2226
2124
  name: r.name,
@@ -2235,7 +2133,7 @@ const Kt = ({
2235
2133
  control: e,
2236
2134
  name: `pathParams.${o}.value`,
2237
2135
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2238
- me,
2136
+ ue,
2239
2137
  {
2240
2138
  ...i,
2241
2139
  required: !0,
@@ -2246,17 +2144,17 @@ const Kt = ({
2246
2144
  }
2247
2145
  ) })
2248
2146
  ] }, r.id)) }) });
2249
- }, Hr = ce(
2147
+ }, qr = oe(
2250
2148
  "input",
2251
2149
  "bg-transparent h-9 font-mono text-xs"
2252
- ), Qr = ({
2150
+ ), Vr = ({
2253
2151
  control: e,
2254
2152
  schemaQueryParams: t
2255
2153
  }) => {
2256
- const { fields: s, remove: a, append: r } = ze({
2154
+ const { fields: s, remove: a, append: r } = De({
2257
2155
  control: e,
2258
2156
  name: "queryParams"
2259
- }), { setValue: o, getValues: i, watch: l } = ie(), c = l("queryParams");
2157
+ }), { setValue: o, getValues: i, watch: l } = ae(), c = l("queryParams");
2260
2158
  z(() => {
2261
2159
  c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2262
2160
  }, [c, r]);
@@ -2265,7 +2163,7 @@ const Kt = ({
2265
2163
  );
2266
2164
  return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2267
2165
  /* @__PURE__ */ n.jsxs(M, { children: [
2268
- /* @__PURE__ */ n.jsx($n, { size: 16 }),
2166
+ /* @__PURE__ */ n.jsx(An, { size: 16 }),
2269
2167
  /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2270
2168
  /* @__PURE__ */ n.jsxs(
2271
2169
  E,
@@ -2282,23 +2180,23 @@ const Kt = ({
2282
2180
  className: "hover:bg-accent hover:brightness-95 flex gap-2",
2283
2181
  children: [
2284
2182
  "Add parameter ",
2285
- /* @__PURE__ */ n.jsx(fe, { size: 16 })
2183
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
2286
2184
  ]
2287
2185
  }
2288
2186
  )
2289
2187
  ] }),
2290
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(_e, { children: s.map((d, h) => {
2291
- const f = t.find(
2188
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
2189
+ const g = t.find(
2292
2190
  (m) => m.name === c.at(h)?.name
2293
2191
  );
2294
- return /* @__PURE__ */ n.jsxs(he, { children: [
2192
+ return /* @__PURE__ */ n.jsxs(pe, { children: [
2295
2193
  /* @__PURE__ */ n.jsx(
2296
2194
  F,
2297
2195
  {
2298
2196
  control: e,
2299
2197
  name: `queryParams.${h}.active`,
2300
2198
  render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2301
- ye,
2199
+ xe,
2302
2200
  {
2303
2201
  id: `queryParams.${h}.active`,
2304
2202
  checked: m.value,
@@ -2311,7 +2209,7 @@ const Kt = ({
2311
2209
  F,
2312
2210
  {
2313
2211
  control: e,
2314
- render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(Hr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2212
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(qr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2315
2213
  "label",
2316
2214
  {
2317
2215
  className: "flex items-center cursor-pointer gap-1",
@@ -2323,13 +2221,13 @@ const Kt = ({
2323
2221
  ]
2324
2222
  }
2325
2223
  ) }) : /* @__PURE__ */ n.jsx(
2326
- pe,
2224
+ me,
2327
2225
  {
2328
2226
  placeholder: "Name",
2329
2227
  value: m.value,
2330
- options: t.map((x) => x.name),
2331
- onChange: (x) => {
2332
- m.onChange(x);
2228
+ options: t.map((y) => y.name),
2229
+ onChange: (y) => {
2230
+ m.onChange(y);
2333
2231
  },
2334
2232
  className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2335
2233
  }
@@ -2342,22 +2240,22 @@ const Kt = ({
2342
2240
  F,
2343
2241
  {
2344
2242
  control: e,
2345
- render: ({ field: m }) => f?.enum && f.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2346
- pe,
2243
+ render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2244
+ me,
2347
2245
  {
2348
2246
  value: m.value,
2349
- options: f.enum ?? [],
2350
- onChange: (y) => {
2351
- m.onChange(y), o(`queryParams.${h}.active`, !0);
2247
+ options: g.enum ?? [],
2248
+ onChange: (v) => {
2249
+ m.onChange(v), o(`queryParams.${h}.active`, !0);
2352
2250
  },
2353
2251
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2354
2252
  }
2355
2253
  ) : /* @__PURE__ */ n.jsx(
2356
- me,
2254
+ ue,
2357
2255
  {
2358
2256
  ...m,
2359
- onChange: (y) => {
2360
- m.onChange(y.target.value), y.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
2257
+ onChange: (v) => {
2258
+ m.onChange(v.target.value), v.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
2361
2259
  },
2362
2260
  placeholder: "Value",
2363
2261
  "aria-label": "Query parameter value",
@@ -2375,15 +2273,15 @@ const Kt = ({
2375
2273
  className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2376
2274
  onClick: () => a(h),
2377
2275
  type: "button",
2378
- children: /* @__PURE__ */ n.jsx(jt, { size: 16 })
2276
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
2379
2277
  }
2380
2278
  )
2381
2279
  ] })
2382
2280
  ] }, d.id);
2383
2281
  }) }) }) })
2384
2282
  ] });
2385
- }, Jr = $e()(
2386
- Ee(
2283
+ }, Br = Le()(
2284
+ $e(
2387
2285
  (e, t) => ({
2388
2286
  rememberedIdentity: null,
2389
2287
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2393,10 +2291,10 @@ const Kt = ({
2393
2291
  }),
2394
2292
  {
2395
2293
  name: "identity-storage",
2396
- storage: Nt(() => sessionStorage)
2294
+ storage: xt(() => sessionStorage)
2397
2295
  }
2398
2296
  )
2399
- ), Wr = ({
2297
+ ), _r = ({
2400
2298
  path: e,
2401
2299
  renderParam: t
2402
2300
  }) => {
@@ -2407,25 +2305,25 @@ const Kt = ({
2407
2305
  return i.forEach((u) => {
2408
2306
  const [d, h] = u;
2409
2307
  if (!h) return;
2410
- const f = u.index;
2411
- f > c && l.push(
2412
- /* @__PURE__ */ n.jsx(ee, { children: a.slice(c, f) }, `text-${c}-${f}`)
2308
+ const g = u.index;
2309
+ g > c && l.push(
2310
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c, g) }, `text-${c}-${g}`)
2413
2311
  ), l.push(
2414
- /* @__PURE__ */ n.jsx(ee, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2415
- ), c = f + d.length;
2312
+ /* @__PURE__ */ n.jsx(K, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2313
+ ), c = g + d.length;
2416
2314
  }), c < a.length && l.push(
2417
- /* @__PURE__ */ n.jsx(ee, { children: a.slice(c) }, `text-${c}-${a.length}`)
2315
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c) }, `text-${c}-${a.length}`)
2418
2316
  ), // eslint-disable-next-line react/no-array-index-key
2419
- /* @__PURE__ */ n.jsxs(ee, { children: [
2317
+ /* @__PURE__ */ n.jsxs(K, { children: [
2420
2318
  l,
2421
2319
  r < o.length - 1 && "/",
2422
2320
  /* @__PURE__ */ n.jsx("wbr", {})
2423
2321
  ] }, `${a}-${r}`);
2424
2322
  });
2425
- }, Xr = ({ url: e }) => {
2426
- const { watch: t, setFocus: s } = ie(), [a] = t(["pathParams"]);
2323
+ }, Ur = ({ url: e }) => {
2324
+ const { watch: t, setFocus: s } = ae(), [a] = t(["pathParams"]);
2427
2325
  return /* @__PURE__ */ n.jsx(
2428
- Wr,
2326
+ _r,
2429
2327
  {
2430
2328
  path: e,
2431
2329
  renderParam: ({ name: r, originalValue: o, index: i }) => {
@@ -2433,7 +2331,7 @@ const Kt = ({
2433
2331
  (c) => c.name === r
2434
2332
  )?.value;
2435
2333
  return /* @__PURE__ */ n.jsx(
2436
- en,
2334
+ Wt,
2437
2335
  {
2438
2336
  name: r,
2439
2337
  backgroundOpacity: "0",
@@ -2445,8 +2343,8 @@ const Kt = ({
2445
2343
  }
2446
2344
  }
2447
2345
  );
2448
- }, Zr = () => {
2449
- const { watch: e } = ie(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(ee, { children: [
2346
+ }, Mr = () => {
2347
+ const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(K, { children: [
2450
2348
  a.name,
2451
2349
  "=",
2452
2350
  encodeURIComponent(a.value).replaceAll("%20", "+"),
@@ -2457,29 +2355,29 @@ const Kt = ({
2457
2355
  s.length > 0 ? "?" : "",
2458
2356
  s
2459
2357
  ] });
2460
- }, Yr = ({
2358
+ }, Gr = ({
2461
2359
  open: e,
2462
2360
  setOpen: t,
2463
2361
  onSignUp: s,
2464
2362
  onLogin: a
2465
- }) => /* @__PURE__ */ n.jsx(Ie, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(ke, { children: [
2466
- /* @__PURE__ */ n.jsx(De, { children: "Welcome to the Playground!" }),
2467
- /* @__PURE__ */ n.jsx(Tt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2468
- /* @__PURE__ */ n.jsxs(At, { className: "flex gap-2 sm:justify-between", children: [
2363
+ }) => /* @__PURE__ */ n.jsx(Ee, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2364
+ /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2365
+ /* @__PURE__ */ n.jsx(jt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2366
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2469
2367
  /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2470
2368
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2471
2369
  s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2472
2370
  a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2473
2371
  ] })
2474
2372
  ] })
2475
- ] }) }), tn = (e = 0) => {
2373
+ ] }) }), Xt = (e = 0) => {
2476
2374
  if (e === 0)
2477
2375
  return "0 B";
2478
2376
  const t = Math.floor(Math.log(e) / Math.log(1e3));
2479
2377
  return `${(e / Math.pow(1e3, t)).toFixed(
2480
2378
  t ? 2 : 0
2481
2379
  )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2482
- }, Kr = ({ status: e }) => {
2380
+ }, Hr = ({ status: e }) => {
2483
2381
  if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2484
2382
  switch (Number(e.toString().slice(0, 1))) {
2485
2383
  case 2:
@@ -2491,21 +2389,21 @@ const Kt = ({
2491
2389
  default:
2492
2390
  return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2493
2391
  }
2494
- }, ea = () => {
2495
- const e = L(null), t = L(null), s = L(Date.now()), a = L(null), r = St(() => {
2392
+ }, Qr = () => {
2393
+ const e = R(null), t = R(null), s = R(Date.now()), a = R(null), r = bt(() => {
2496
2394
  if (t.current) {
2497
2395
  const o = Date.now() - s.current;
2498
2396
  t.current.nodeValue = o.toFixed();
2499
2397
  }
2500
2398
  a.current = requestAnimationFrame(r);
2501
2399
  }, []);
2502
- return ns(() => {
2400
+ return Zn(() => {
2503
2401
  const o = document.createTextNode("0"), i = e.current;
2504
2402
  return i.appendChild(o), t.current = o, s.current = Date.now(), a.current = requestAnimationFrame(r), () => {
2505
2403
  a.current && cancelAnimationFrame(a.current), t.current && i.contains(o) && i.removeChild(o);
2506
2404
  };
2507
2405
  }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2508
- }, ta = ({
2406
+ }, Jr = ({
2509
2407
  status: e,
2510
2408
  time: t,
2511
2409
  size: s,
@@ -2526,7 +2424,7 @@ const Kt = ({
2526
2424
  };
2527
2425
  return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2528
2426
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2529
- /* @__PURE__ */ n.jsx(Kr, { status: e }),
2427
+ /* @__PURE__ */ n.jsx(Hr, { status: e }),
2530
2428
  " ",
2531
2429
  e ?? "Sending Request...",
2532
2430
  e ? ` ${o[e]}` : ""
@@ -2535,12 +2433,12 @@ const Kt = ({
2535
2433
  /* @__PURE__ */ n.jsxs("div", { children: [
2536
2434
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2537
2435
  " ",
2538
- /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? tn(s) : "- B" })
2436
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Xt(s) : "- B" })
2539
2437
  ] }),
2540
2438
  /* @__PURE__ */ n.jsxs("div", { children: [
2541
2439
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2542
2440
  " ",
2543
- t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(ea, {}),
2441
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Qr, {}),
2544
2442
  "ms"
2545
2443
  ] })
2546
2444
  ] }),
@@ -2556,42 +2454,42 @@ const Kt = ({
2556
2454
  )
2557
2455
  ] });
2558
2456
  };
2559
- function Me(e) {
2457
+ function Be(e) {
2560
2458
  if (e === null) return "null";
2561
2459
  if (Array.isArray(e)) {
2562
2460
  if (e.length === 0) return "any[]";
2563
2461
  const t = e[0];
2564
- return t === void 0 ? "any[]" : `${Me(t)}[]`;
2462
+ return t === void 0 ? "any[]" : `${Be(t)}[]`;
2565
2463
  }
2566
- return typeof e == "object" ? na(e) : typeof e;
2464
+ return typeof e == "object" ? Wr(e) : typeof e;
2567
2465
  }
2568
- function na(e, t = "") {
2466
+ function Wr(e, t = "") {
2569
2467
  const s = ["{"];
2570
2468
  for (const [a, r] of Object.entries(e)) {
2571
- const o = Me(r);
2469
+ const o = Be(r);
2572
2470
  s.push(` ${a}: ${o};`);
2573
2471
  }
2574
2472
  return s.push("}"), s.join(`
2575
2473
  `);
2576
2474
  }
2577
- function sa(e) {
2578
- return { lines: [`type GeneratedType = ${Me(e)};`] };
2475
+ function Xr(e) {
2476
+ return { lines: [`type GeneratedType = ${Be(e)};`] };
2579
2477
  }
2580
- const nn = ({
2478
+ const Zt = ({
2581
2479
  code: e,
2582
2480
  language: t,
2583
2481
  children: s
2584
2482
  }) => {
2585
- const { syntaxHighlighting: a } = Jn().options;
2586
- return es(a?.highlighter, "Highlighter not found"), Os(
2483
+ const { syntaxHighlighting: a } = Mn().options;
2484
+ return Wn(a?.highlighter, "Highlighter not found"), ws(
2587
2485
  a.highlighter,
2588
2486
  e ?? s ?? "",
2589
2487
  t,
2590
2488
  a.themes
2591
2489
  );
2592
2490
  };
2593
- nn.displayName = "Highlight";
2594
- const ra = (e) => Object.entries({
2491
+ Zt.displayName = "Highlight";
2492
+ const Zr = (e) => Object.entries({
2595
2493
  "application/json": "json",
2596
2494
  "text/json": "json",
2597
2495
  "text/html": "html",
@@ -2601,16 +2499,16 @@ const ra = (e) => Object.entries({
2601
2499
  "application/xhtml+xml": "xhtml"
2602
2500
  }).find(
2603
2501
  ([s]) => e.includes(s)
2604
- )?.[1], aa = (e) => {
2502
+ )?.[1], Yr = (e) => {
2605
2503
  const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2606
- return ra(t);
2607
- }, oa = (e) => {
2504
+ return Zr(t);
2505
+ }, Kr = (e) => {
2608
2506
  try {
2609
2507
  return JSON.stringify(JSON.parse(e), null, 2);
2610
2508
  } catch {
2611
2509
  return null;
2612
2510
  }
2613
- }, ia = (e) => {
2511
+ }, ea = (e) => {
2614
2512
  const t = [
2615
2513
  "Content-Type",
2616
2514
  "Content-Length",
@@ -2624,10 +2522,10 @@ const ra = (e) => Object.entries({
2624
2522
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2625
2523
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2626
2524
  });
2627
- }, K = 3, Oe = ce(
2525
+ }, Y = 3, Ae = oe(
2628
2526
  "div",
2629
2527
  "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2630
- ), Z = ce("div", "py-1 break-all"), ca = ({
2528
+ ), X = oe("div", "py-1 break-all"), ta = ({
2631
2529
  body: e = "",
2632
2530
  headers: t,
2633
2531
  request: s,
@@ -2636,66 +2534,66 @@ const ra = (e) => Object.entries({
2636
2534
  fileName: o,
2637
2535
  blob: i
2638
2536
  }) => {
2639
- const l = aa(t), c = oa(e), u = c || e, [d, h] = k(
2537
+ const l = Yr(t), c = Kr(e), u = c || e, [d, h] = k(
2640
2538
  c ? "formatted" : "raw"
2641
- ), f = Wn({
2539
+ ), g = Gn({
2642
2540
  queryKey: ["types", u],
2643
- queryFn: async () => sa(JSON.parse(u)),
2541
+ queryFn: async () => Xr(JSON.parse(u)),
2644
2542
  enabled: d === "types" && !r
2645
2543
  }), m = () => {
2646
2544
  if (i && o) {
2647
- const y = URL.createObjectURL(i), b = document.createElement("a");
2648
- b.href = y, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(y);
2545
+ const v = URL.createObjectURL(i), b = document.createElement("a");
2546
+ b.href = v, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(v);
2649
2547
  }
2650
- }, x = ia([...t]);
2548
+ }, y = ea([...t]);
2651
2549
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2652
2550
  /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2653
2551
  /* @__PURE__ */ n.jsxs(M, { children: [
2654
- /* @__PURE__ */ n.jsx(En, { size: 16 }),
2552
+ /* @__PURE__ */ n.jsx(On, { size: 16 }),
2655
2553
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Request" })
2656
2554
  ] }),
2657
- /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2658
- /* @__PURE__ */ n.jsx(Z, { children: y }),
2659
- /* @__PURE__ */ n.jsx(Z, { children: b })
2660
- ] }, y)) }) })
2555
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2556
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2557
+ /* @__PURE__ */ n.jsx(X, { children: b })
2558
+ ] }, v)) }) })
2661
2559
  ] }),
2662
2560
  /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2663
2561
  /* @__PURE__ */ n.jsxs(M, { children: [
2664
- /* @__PURE__ */ n.jsx(In, { size: 16 }),
2562
+ /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2665
2563
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Response" })
2666
2564
  ] }),
2667
2565
  /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2668
- x.slice(0, K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2669
- /* @__PURE__ */ n.jsx(Z, { children: y }),
2670
- /* @__PURE__ */ n.jsx(Z, { children: b })
2671
- ] }, y)),
2672
- x.length > K && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2673
- /* @__PURE__ */ n.jsxs(Vt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2566
+ y.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2567
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2568
+ /* @__PURE__ */ n.jsx(X, { children: b })
2569
+ ] }, v)),
2570
+ y.length > Y && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2571
+ /* @__PURE__ */ n.jsxs(qt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2674
2572
  /* @__PURE__ */ n.jsxs("span", { children: [
2675
2573
  "Show ",
2676
- x.length - K,
2574
+ y.length - Y,
2677
2575
  " more headers"
2678
2576
  ] }),
2679
- /* @__PURE__ */ n.jsx(fe, { size: 12, className: "text-muted-foreground" })
2577
+ /* @__PURE__ */ n.jsx(he, { size: 12, className: "text-muted-foreground" })
2680
2578
  ] }),
2681
- /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: x.slice(K).map(([y, b]) => /* @__PURE__ */ n.jsxs(Oe, { children: [
2682
- /* @__PURE__ */ n.jsx(Z, { children: y }),
2683
- /* @__PURE__ */ n.jsx(Z, { children: b })
2684
- ] }, y)) })
2579
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: y.slice(Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2580
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2581
+ /* @__PURE__ */ n.jsx(X, { children: b })
2582
+ ] }, v)) })
2685
2583
  ] })
2686
2584
  ] }) })
2687
2585
  ] }),
2688
2586
  /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2689
- Bt,
2587
+ wt,
2690
2588
  {
2691
2589
  value: d,
2692
- onValueChange: (y) => h(y),
2590
+ onValueChange: (v) => h(v),
2693
2591
  children: [
2694
- /* @__PURE__ */ n.jsx(Ve, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(_t, { placeholder: "View" }) }),
2695
- /* @__PURE__ */ n.jsxs(Be, { children: [
2696
- /* @__PURE__ */ n.jsx(ne, { value: "formatted", children: "Formatted" }),
2697
- /* @__PURE__ */ n.jsx(ne, { value: "raw", children: "Raw" }),
2698
- /* @__PURE__ */ n.jsx(ne, { value: "types", children: "Types" })
2592
+ /* @__PURE__ */ n.jsx(Nt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(St, { placeholder: "View" }) }),
2593
+ /* @__PURE__ */ n.jsxs(Tt, { children: [
2594
+ /* @__PURE__ */ n.jsx(le, { value: "formatted", children: "Formatted" }),
2595
+ /* @__PURE__ */ n.jsx(le, { value: "raw", children: "Raw" }),
2596
+ /* @__PURE__ */ n.jsx(le, { value: "types", children: "Types" })
2699
2597
  ] })
2700
2598
  ]
2701
2599
  }
@@ -2710,25 +2608,25 @@ const ra = (e) => Object.entries({
2710
2608
  className: "flex items-center gap-2",
2711
2609
  disabled: !i,
2712
2610
  children: [
2713
- /* @__PURE__ */ n.jsx(kn, { className: "h-4 w-4" }),
2611
+ /* @__PURE__ */ n.jsx(Rn, { className: "h-4 w-4" }),
2714
2612
  "Download ",
2715
2613
  o || "file",
2716
2614
  " (",
2717
- tn(a),
2615
+ Xt(a),
2718
2616
  ")"
2719
2617
  ]
2720
2618
  }
2721
2619
  )
2722
2620
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2723
- nn,
2621
+ Zt,
2724
2622
  {
2725
2623
  language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2726
- code: (d === "raw" ? e : d === "types" ? f.data?.lines.join(`
2624
+ code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
2727
2625
  `) : u) ?? ""
2728
2626
  }
2729
2627
  ) }) })
2730
2628
  ] });
2731
- }, la = ({
2629
+ }, na = ({
2732
2630
  queryMutation: e,
2733
2631
  showLongRunningWarning: t,
2734
2632
  onCancel: s,
@@ -2737,7 +2635,7 @@ const ra = (e) => Object.entries({
2737
2635
  progress: o
2738
2636
  }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2739
2637
  (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2740
- ta,
2638
+ Jr,
2741
2639
  {
2742
2640
  status: e.data?.status,
2743
2641
  time: e.data?.time,
@@ -2746,12 +2644,12 @@ const ra = (e) => Object.entries({
2746
2644
  progress: o
2747
2645
  }
2748
2646
  ),
2749
- e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(ls, { children: [
2750
- /* @__PURE__ */ n.jsx(Dn, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2751
- /* @__PURE__ */ n.jsx(ds, { children: "Request failed" }),
2752
- /* @__PURE__ */ n.jsx(us, { children: e.error.message || String(e.error) || "Unexpected error" })
2647
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(rs, { children: [
2648
+ /* @__PURE__ */ n.jsx(Ln, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2649
+ /* @__PURE__ */ n.jsx(as, { children: "Request failed" }),
2650
+ /* @__PURE__ */ n.jsx(os, { children: e.error.message || String(e.error) || "Unexpected error" })
2753
2651
  ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2754
- ca,
2652
+ ta,
2755
2653
  {
2756
2654
  request: e.data.request,
2757
2655
  size: e.data.size,
@@ -2762,18 +2660,18 @@ const ra = (e) => Object.entries({
2762
2660
  blob: e.data.blob
2763
2661
  }
2764
2662
  ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2765
- /* @__PURE__ */ n.jsx(is, {}),
2663
+ /* @__PURE__ */ n.jsx(ns, {}),
2766
2664
  /* @__PURE__ */ n.jsxs(
2767
2665
  "div",
2768
2666
  {
2769
- className: v(
2667
+ className: C(
2770
2668
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2771
2669
  t && "opacity-100 pointer-events-auto"
2772
2670
  ),
2773
2671
  children: [
2774
2672
  "Looks like the request is taking longer than expected.",
2775
2673
  /* @__PURE__ */ n.jsx(
2776
- re,
2674
+ ne,
2777
2675
  {
2778
2676
  type: "button",
2779
2677
  onClick: s,
@@ -2788,7 +2686,7 @@ const ra = (e) => Object.entries({
2788
2686
  )
2789
2687
  ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2790
2688
  /* @__PURE__ */ n.jsx(
2791
- zn,
2689
+ $n,
2792
2690
  {
2793
2691
  size: 64,
2794
2692
  className: "text-muted-foreground",
@@ -2798,18 +2696,18 @@ const ra = (e) => Object.entries({
2798
2696
  /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2799
2697
  a
2800
2698
  ] }) })
2801
- ] }), da = $e()(
2802
- Ee(
2699
+ ] }), sa = Le()(
2700
+ $e(
2803
2701
  (e) => ({
2804
2702
  skipLogin: !1,
2805
2703
  setSkipLogin: (t) => e({ skipLogin: t })
2806
2704
  }),
2807
2705
  {
2808
2706
  name: "remember-skip-login",
2809
- storage: Nt(() => sessionStorage)
2707
+ storage: xt(() => sessionStorage)
2810
2708
  }
2811
2709
  )
2812
- ), se = "__none", ua = ({
2710
+ ), te = "__none", ra = ({
2813
2711
  server: e,
2814
2712
  servers: t = [],
2815
2713
  url: s,
@@ -2823,13 +2721,13 @@ const ra = (e) => Object.entries({
2823
2721
  onLogin: d,
2824
2722
  onSignUp: h
2825
2723
  }) => {
2826
- const { selectedServer: f, setSelectedServer: m } = Tr(
2724
+ const { selectedServer: g, setSelectedServer: m } = vr(
2827
2725
  t.map((p) => ({ url: p }))
2828
- ), [x, y] = k(!1), b = Xn(), { setRememberedIdentity: R, getRememberedIdentity: j } = Jr(), [, N] = ss(), { skipLogin: Q, setSkipLogin: O } = da(), [D, P] = k(!1), J = L(void 0), He = gs(R), Qe = L(null), { label: ln } = Cr("meta+enter", () => {
2829
- Qe.current?.requestSubmit();
2830
- }), Je = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], We = [...i].sort(
2831
- (p, X) => Je.indexOf(p.name) - Je.indexOf(X.name)
2832
- ), { register: dn, control: le, handleSubmit: Xe, watch: Ze, setValue: ve, ...be } = ps({
2726
+ ), [y, v] = k(!1), b = Hn(), { setRememberedIdentity: O, getRememberedIdentity: f } = Br(), [, j] = Yn(), { skipLogin: $, setSkipLogin: S } = sa(), [D, P] = k(!1), Q = R(void 0), Ue = ms(O), Me = R(null), { label: sn } = xr("meta+enter", () => {
2727
+ Me.current?.requestSubmit();
2728
+ }), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
2729
+ (p, W) => Ge.indexOf(p.name) - Ge.indexOf(W.name)
2730
+ ), { register: rn, control: ie, handleSubmit: Qe, watch: Je, setValue: ye, ...ve } = cs({
2833
2731
  defaultValues: {
2834
2732
  body: l,
2835
2733
  queryParams: o.length > 0 ? o.map((p) => ({
@@ -2845,7 +2743,7 @@ const ra = (e) => Object.entries({
2845
2743
  enum: []
2846
2744
  }
2847
2745
  ],
2848
- pathParams: We.map((p) => ({
2746
+ pathParams: He.map((p) => ({
2849
2747
  name: p.name,
2850
2748
  value: p.defaultValue ?? ""
2851
2749
  })),
@@ -2860,134 +2758,134 @@ const ra = (e) => Object.entries({
2860
2758
  active: !1
2861
2759
  }
2862
2760
  ],
2863
- identity: j([
2864
- se,
2761
+ identity: f([
2762
+ te,
2865
2763
  ...b.data?.map((p) => p.id) ?? []
2866
2764
  ])
2867
2765
  }
2868
- }), W = Ze("identity"), un = Ct(
2869
- () => b.data?.find((p) => p.id === W)?.authorizationFields,
2870
- [b.data, W]
2766
+ }), J = Je("identity"), an = vt(
2767
+ () => b.data?.find((p) => p.id === J)?.authorizationFields,
2768
+ [b.data, J]
2871
2769
  );
2872
2770
  z(() => {
2873
- W && He.current(W);
2874
- }, [He, W]);
2875
- const B = ms({
2771
+ J && Ue.current(J);
2772
+ }, [Ue, J]);
2773
+ const B = is({
2876
2774
  gcTime: 0,
2877
2775
  mutationFn: async (p) => {
2878
- const X = performance.now(), bn = Object.fromEntries([
2879
- ...p.headers.filter((A) => A.name && A.active).map((A) => [A.name, A.value])
2776
+ const W = performance.now(), fn = Object.fromEntries([
2777
+ ...p.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
2880
2778
  ]), _ = new Request(
2881
- ht(e ?? f, s, p),
2779
+ ut(e ?? g, s, p),
2882
2780
  {
2883
2781
  method: a.toUpperCase(),
2884
- headers: bn,
2782
+ headers: fn,
2885
2783
  body: p.body ? p.body : void 0
2886
2784
  }
2887
2785
  );
2888
- p.identity !== se && await b.data?.find((A) => A.id === p.identity)?.authorizeRequest(_);
2889
- const je = setTimeout(
2786
+ p.identity !== te && await b.data?.find((T) => T.id === p.identity)?.authorizeRequest(_);
2787
+ const be = setTimeout(
2890
2788
  () => P(!0),
2891
2789
  3210
2892
2790
  );
2893
- J.current = new AbortController(), J.current.signal.addEventListener("abort", () => {
2894
- clearTimeout(je);
2791
+ Q.current = new AbortController(), Q.current.signal.addEventListener("abort", () => {
2792
+ clearTimeout(be);
2895
2793
  });
2896
2794
  try {
2897
- const A = await fetch(_, {
2795
+ const T = await fetch(_, {
2898
2796
  cache: "no-store",
2899
- signal: J.current.signal
2797
+ signal: Q.current.signal
2900
2798
  });
2901
- clearTimeout(je), P(!1);
2902
- const jn = performance.now() - X, Nn = new URL(_.url), et = Array.from(A.headers.entries()), tt = A.headers.get("content-type") || "", nt = Dr(tt);
2903
- let de = "", st, rt;
2904
- nt ? (st = await A.blob(), rt = zr(et, _.url), de = `Binary content (${tt})`) : de = await A.text();
2905
- const at = A.headers.get("content-length");
2799
+ clearTimeout(be), P(!1);
2800
+ const gn = performance.now() - W, xn = new URL(_.url), Ze = Array.from(T.headers.entries()), Ye = T.headers.get("content-type") || "", Ke = Pr(Ye);
2801
+ let ce = "", et, tt;
2802
+ Ke ? (et = await T.blob(), tt = Rr(Ze, _.url), ce = `Binary content (${Ye})`) : ce = await T.text();
2803
+ const nt = T.headers.get("content-length");
2906
2804
  return {
2907
- status: A.status,
2908
- headers: et,
2909
- size: at ? parseInt(at) : de.length,
2910
- body: de,
2911
- time: jn,
2912
- isBinary: nt,
2913
- fileName: rt,
2914
- blob: st,
2805
+ status: T.status,
2806
+ headers: Ze,
2807
+ size: nt ? parseInt(nt) : ce.length,
2808
+ body: ce,
2809
+ time: gn,
2810
+ isBinary: Ke,
2811
+ fileName: tt,
2812
+ blob: et,
2915
2813
  request: {
2916
2814
  method: _.method.toUpperCase(),
2917
2815
  url: _.url,
2918
2816
  headers: [
2919
- ["Host", Nn.host],
2817
+ ["Host", xn.host],
2920
2818
  ["User-Agent", "Zudoku Playground"],
2921
2819
  ...Array.from(_.headers.entries())
2922
2820
  ],
2923
2821
  body: p.body ? p.body : void 0
2924
2822
  }
2925
2823
  };
2926
- } catch (A) {
2927
- throw clearTimeout(je), P(!1), A instanceof TypeError ? new Error(
2824
+ } catch (T) {
2825
+ throw clearTimeout(be), P(!1), T instanceof TypeError ? new Error(
2928
2826
  "The request failed, possibly due to network issues or CORS policy."
2929
- ) : A;
2827
+ ) : T;
2930
2828
  }
2931
2829
  }
2932
- }), Ye = B.isPending, [mn, pn] = k(!1);
2830
+ }), We = B.isPending, [on, cn] = k(!1);
2933
2831
  z(() => {
2934
- const p = setTimeout(() => pn(Ye), 100);
2832
+ const p = setTimeout(() => cn(We), 100);
2935
2833
  return () => clearTimeout(p);
2936
- }, [Ye]);
2937
- const { isFinished: hn, progress: fn } = cs({ isAnimating: mn });
2834
+ }, [We]);
2835
+ const { isFinished: ln, progress: dn } = ss({ isAnimating: on });
2938
2836
  z(() => () => {
2939
- J.current?.abort();
2837
+ Q.current?.abort();
2940
2838
  }, []);
2941
- const xn = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2942
- Bt,
2839
+ const un = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2840
+ wt,
2943
2841
  {
2944
2842
  onValueChange: (p) => {
2945
- N(() => m(p));
2843
+ j(() => m(p));
2946
2844
  },
2947
- value: f,
2948
- defaultValue: f,
2845
+ value: g,
2846
+ defaultValue: g,
2949
2847
  children: [
2950
- /* @__PURE__ */ n.jsx(Ve, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(_t, {}) }),
2951
- /* @__PURE__ */ n.jsx(Be, { children: t.map((p) => /* @__PURE__ */ n.jsx(ne, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2848
+ /* @__PURE__ */ n.jsx(Nt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(St, {}) }),
2849
+ /* @__PURE__ */ n.jsx(Tt, { children: t.map((p) => /* @__PURE__ */ n.jsx(le, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2952
2850
  ]
2953
2851
  }
2954
- ) }), gn = u && !Q, yn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2852
+ ) }), mn = u && !$, pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2955
2853
  a.toUpperCase()
2956
- ), [Ke, vn] = xs();
2854
+ ), [Xe, hn] = us();
2957
2855
  return /* @__PURE__ */ n.jsx(
2958
- hs,
2856
+ ls,
2959
2857
  {
2960
- register: dn,
2961
- control: le,
2962
- handleSubmit: Xe,
2963
- watch: Ze,
2964
- setValue: ve,
2965
- ...be,
2966
- children: /* @__PURE__ */ n.jsx(fs, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2858
+ register: rn,
2859
+ control: ie,
2860
+ handleSubmit: Qe,
2861
+ watch: Je,
2862
+ setValue: ye,
2863
+ ...ve,
2864
+ children: /* @__PURE__ */ n.jsx(ds, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2967
2865
  "form",
2968
2866
  {
2969
- ref: Qe,
2970
- onSubmit: Xe((p) => {
2971
- b.data?.length === 0 || p.identity ? B.mutate(p) : y(!0);
2867
+ ref: Me,
2868
+ onSubmit: Qe((p) => {
2869
+ b.data?.length === 0 || p.identity ? B.mutate(p) : v(!0);
2972
2870
  }),
2973
2871
  className: "relative",
2974
2872
  children: [
2975
2873
  /* @__PURE__ */ n.jsx(
2976
- Ur,
2874
+ Dr,
2977
2875
  {
2978
2876
  identities: b.data ?? [],
2979
- open: x,
2980
- onOpenChange: y,
2981
- onSubmit: ({ rememberedIdentity: p, identity: X }) => {
2982
- p && ve("identity", X ?? se), y(!1), B.mutate({ ...be.getValues(), identity: X });
2877
+ open: y,
2878
+ onOpenChange: v,
2879
+ onSubmit: ({ rememberedIdentity: p, identity: W }) => {
2880
+ p && ye("identity", W ?? te), v(!1), B.mutate({ ...ve.getValues(), identity: W });
2983
2881
  }
2984
2882
  }
2985
2883
  ),
2986
2884
  /* @__PURE__ */ n.jsx(
2987
- Yr,
2885
+ Gr,
2988
2886
  {
2989
- open: gn,
2990
- setOpen: (p) => O(!p),
2887
+ open: mn,
2888
+ setOpen: (p) => S(!p),
2991
2889
  onSignUp: h,
2992
2890
  onLogin: d
2993
2891
  }
@@ -2997,30 +2895,30 @@ const ra = (e) => Object.entries({
2997
2895
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2998
2896
  /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2999
2897
  /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
3000
- xn,
3001
- /* @__PURE__ */ n.jsx(Xr, { url: s }),
3002
- /* @__PURE__ */ n.jsx(Zr, {})
2898
+ un,
2899
+ /* @__PURE__ */ n.jsx(Ur, { url: s }),
2900
+ /* @__PURE__ */ n.jsx(Mr, {})
3003
2901
  ] }) }),
3004
2902
  /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
3005
2903
  E,
3006
2904
  {
3007
2905
  type: "button",
3008
2906
  onClick: () => {
3009
- vn(
3010
- ht(
3011
- e ?? f,
2907
+ hn(
2908
+ ut(
2909
+ e ?? g,
3012
2910
  s,
3013
- be.getValues()
2911
+ ve.getValues()
3014
2912
  ).toString()
3015
2913
  );
3016
2914
  },
3017
2915
  variant: "ghost",
3018
2916
  size: "icon-xs",
3019
- className: v(
2917
+ className: C(
3020
2918
  "hover:opacity-100 transition",
3021
- Ke ? "text-emerald-600 opacity-100" : "opacity-50"
2919
+ Xe ? "text-emerald-600 opacity-100" : "opacity-50"
3022
2920
  ),
3023
- children: Ke ? /* @__PURE__ */ n.jsx(bt, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(Fn, { size: 14 })
2921
+ children: Xe ? /* @__PURE__ */ n.jsx(ft, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(En, { size: 14 })
3024
2922
  }
3025
2923
  ) })
3026
2924
  ] }),
@@ -3030,7 +2928,7 @@ const ra = (e) => Object.entries({
3030
2928
  type: "submit",
3031
2929
  variant: B.isPending ? "destructive" : "default",
3032
2930
  onClick: (p) => {
3033
- B.isPending && (J.current?.abort(
2931
+ B.isPending && (Q.current?.abort(
3034
2932
  "Request cancelled by user"
3035
2933
  ), p.preventDefault());
3036
2934
  },
@@ -3042,53 +2940,53 @@ const ra = (e) => Object.entries({
3042
2940
  /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
3043
2941
  b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
3044
2942
  /* @__PURE__ */ n.jsxs(M, { children: [
3045
- /* @__PURE__ */ n.jsx(qn, { size: 16 }),
2943
+ /* @__PURE__ */ n.jsx(In, { size: 16 }),
3046
2944
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Authentication" })
3047
2945
  ] }),
3048
2946
  /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
3049
- Kt,
2947
+ Jt,
3050
2948
  {
3051
- value: W,
2949
+ value: J,
3052
2950
  identities: b.data ?? [],
3053
- setValue: (p) => ve("identity", p)
2951
+ setValue: (p) => ye("identity", p)
3054
2952
  }
3055
2953
  ) })
3056
2954
  ] }),
3057
- We.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2955
+ He.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
3058
2956
  /* @__PURE__ */ n.jsxs(M, { children: [
3059
- /* @__PURE__ */ n.jsx(Vn, { size: 16 }),
2957
+ /* @__PURE__ */ n.jsx(kn, { size: 16 }),
3060
2958
  /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Path Parameters" })
3061
2959
  ] }),
3062
- /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Gr, { url: s, control: le }) })
2960
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Fr, { url: s, control: ie }) })
3063
2961
  ] }),
3064
- /* @__PURE__ */ n.jsx(Qr, { control: le, schemaQueryParams: o }),
2962
+ /* @__PURE__ */ n.jsx(Vr, { control: ie, schemaQueryParams: o }),
3065
2963
  /* @__PURE__ */ n.jsx(
3066
- Br,
2964
+ Ir,
3067
2965
  {
3068
- control: le,
2966
+ control: ie,
3069
2967
  schemaHeaders: r,
3070
- lockedHeaders: un?.headers
2968
+ lockedHeaders: an?.headers
3071
2969
  }
3072
2970
  ),
3073
- yn && /* @__PURE__ */ n.jsx(kr, { content: c })
2971
+ pn && /* @__PURE__ */ n.jsx(Or, { content: c })
3074
2972
  ] }),
3075
2973
  /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
3076
2974
  /* @__PURE__ */ n.jsx(
3077
- la,
2975
+ na,
3078
2976
  {
3079
2977
  queryMutation: B,
3080
2978
  showLongRunningWarning: D,
3081
- isFinished: hn,
3082
- progress: fn,
2979
+ isFinished: ln,
2980
+ progress: dn,
3083
2981
  tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
3084
2982
  "Press",
3085
2983
  " ",
3086
- /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: ln.join(" + ") }),
2984
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: sn.join(" + ") }),
3087
2985
  " ",
3088
2986
  "to send a request"
3089
2987
  ] }) }),
3090
2988
  onCancel: () => {
3091
- J.current?.abort(
2989
+ Q.current?.abort(
3092
2990
  "Request cancelled by the user"
3093
2991
  ), P(!1);
3094
2992
  }
@@ -3100,7 +2998,7 @@ const ra = (e) => Object.entries({
3100
2998
  ) })
3101
2999
  }
3102
3000
  );
3103
- }, ma = ({
3001
+ }, aa = ({
3104
3002
  className: e,
3105
3003
  size: t = 16
3106
3004
  }) => /* @__PURE__ */ n.jsx(
@@ -3121,34 +3019,34 @@ const ra = (e) => Object.entries({
3121
3019
  }
3122
3020
  )
3123
3021
  }
3124
- ), pa = (e) => {
3022
+ ), oa = (e) => {
3125
3023
  const [t, s] = k(!1);
3126
- return /* @__PURE__ */ n.jsxs(Ie, { onOpenChange: (a) => s(a), children: [
3127
- /* @__PURE__ */ n.jsx(os, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3024
+ return /* @__PURE__ */ n.jsxs(Ee, { onOpenChange: (a) => s(a), children: [
3025
+ /* @__PURE__ */ n.jsx(ts, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3128
3026
  "button",
3129
3027
  {
3130
3028
  type: "button",
3131
3029
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
3132
3030
  children: [
3133
3031
  "Test",
3134
- /* @__PURE__ */ n.jsx(ma, { size: 14 })
3032
+ /* @__PURE__ */ n.jsx(aa, { size: 14 })
3135
3033
  ]
3136
3034
  }
3137
3035
  ) }),
3138
3036
  /* @__PURE__ */ n.jsxs(
3139
- ke,
3037
+ Ie,
3140
3038
  {
3141
3039
  className: "max-w-screen-xl w-full overflow-hidden p-0",
3142
3040
  "aria-describedby": void 0,
3143
3041
  showCloseButton: !0,
3144
3042
  children: [
3145
- /* @__PURE__ */ n.jsx(as, { children: /* @__PURE__ */ n.jsx(De, { children: "Playground" }) }),
3146
- t && /* @__PURE__ */ n.jsx(ua, { ...e })
3043
+ /* @__PURE__ */ n.jsx(es, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
3044
+ t && /* @__PURE__ */ n.jsx(ra, { ...e })
3147
3045
  ]
3148
3046
  }
3149
3047
  )
3150
3048
  ] });
3151
- }, ha = {
3049
+ }, ia = {
3152
3050
  get: "green",
3153
3051
  post: "blue",
3154
3052
  put: "yellow",
@@ -3156,7 +3054,7 @@ const ra = (e) => Object.entries({
3156
3054
  patch: "purple",
3157
3055
  options: "gray",
3158
3056
  head: "gray"
3159
- }, xt = ({
3057
+ }, pt = ({
3160
3058
  label: e,
3161
3059
  path: t,
3162
3060
  operations: s,
@@ -3179,21 +3077,21 @@ const ra = (e) => Object.entries({
3179
3077
  to: `${t}#${o.slug}`,
3180
3078
  badge: {
3181
3079
  label: o.method,
3182
- color: ha[o.method.toLowerCase()],
3080
+ color: ia[o.method.toLowerCase()],
3183
3081
  invert: !0
3184
3082
  }
3185
3083
  }))
3186
- }), sn = wt(
3084
+ }), Yt = yt(
3187
3085
  void 0
3188
- ), Wa = sn.Provider, fa = () => {
3189
- const e = rs(sn);
3086
+ ), Ua = Yt.Provider, ca = () => {
3087
+ const e = Kn(Yt);
3190
3088
  if (!e)
3191
3089
  throw new Error("useOasConfig must be used within a OasConfigProvider");
3192
3090
  return e.config;
3193
- }, gt = (e) => ({
3091
+ }, ht = (e) => ({
3194
3092
  path: e.routePath,
3195
3093
  async lazy() {
3196
- const { OasProvider: t } = await import("./OasProvider-CbwsKPNc.js");
3094
+ const { OasProvider: t } = await import("./OasProvider-DQQRt3oS.js");
3197
3095
  return {
3198
3096
  element: /* @__PURE__ */ n.jsx(
3199
3097
  t,
@@ -3207,39 +3105,39 @@ const ra = (e) => Object.entries({
3207
3105
  };
3208
3106
  },
3209
3107
  children: e.routes
3210
- }), rn = ({
3108
+ }), Kt = ({
3211
3109
  path: e,
3212
3110
  tag: t,
3213
3111
  untagged: s
3214
3112
  }) => ({
3215
3113
  path: e,
3216
3114
  async lazy() {
3217
- const { OperationList: a } = await import("./OperationList-Bn9ggxw8.js");
3115
+ const { OperationList: a } = await import("./OperationList-DpmkHf26.js");
3218
3116
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3219
3117
  }
3220
- }), xa = ({
3118
+ }), la = ({
3221
3119
  render: e,
3222
3120
  path: t
3223
3121
  }) => {
3224
- const { type: s, input: a } = fa(), { tag: r } = Mn(), o = Gn(), i = lr(cn, { type: s, input: a }), {
3122
+ const { type: s, input: a } = ca(), { tag: r } = qn(), o = Vn(), i = rr(nn, { type: s, input: a }), {
3225
3123
  data: { schema: l }
3226
- } = Zn(i), c = l.tags.at(0);
3124
+ } = Qn(i), c = l.tags.at(0);
3227
3125
  return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3228
- Hn,
3126
+ Bn,
3229
3127
  {
3230
3128
  to: {
3231
- pathname: Qn(t, { tag: c.slug }),
3129
+ pathname: _n(t, { tag: c.slug }),
3232
3130
  search: o.search
3233
3131
  }
3234
3132
  }
3235
3133
  ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3236
- }, ga = ({ path: e }) => ({
3134
+ }, da = ({ path: e }) => ({
3237
3135
  path: e,
3238
3136
  async lazy() {
3239
- const { OperationList: t } = await import("./OperationList-Bn9ggxw8.js");
3137
+ const { OperationList: t } = await import("./OperationList-DpmkHf26.js");
3240
3138
  return {
3241
3139
  element: /* @__PURE__ */ n.jsx(
3242
- xa,
3140
+ la,
3243
3141
  {
3244
3142
  path: e,
3245
3143
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -3247,35 +3145,35 @@ const ra = (e) => Object.entries({
3247
3145
  )
3248
3146
  };
3249
3147
  }
3250
- }), an = (e) => [
3148
+ }), en = (e) => [
3251
3149
  // Category without tagged operations
3252
- rn({
3253
- path: I(e, Ge),
3150
+ Kt({
3151
+ path: I(e, _e),
3254
3152
  untagged: !0
3255
3153
  }),
3256
3154
  // Schema list route
3257
3155
  {
3258
3156
  path: I(e, "~schemas"),
3259
3157
  lazy: async () => {
3260
- const { SchemaList: t } = await import("./SchemaList-DETyCVqu.js");
3158
+ const { SchemaList: t } = await import("./SchemaList-DS-pMd6B.js");
3261
3159
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
3262
3160
  }
3263
3161
  }
3264
- ], ya = (e, t) => {
3265
- const s = I(e, t.at(0) ?? Ge);
3162
+ ], ua = (e, t) => {
3163
+ const s = I(e, t.at(0) ?? _e);
3266
3164
  return [
3267
3165
  // Redirect to first tag on the index route
3268
- { index: !0, loader: () => Un(s) },
3166
+ { index: !0, loader: () => Fn(s) },
3269
3167
  // Create routes for each tag
3270
3168
  ...t.map(
3271
- (a) => rn({
3169
+ (a) => Kt({
3272
3170
  path: I(e, a),
3273
3171
  tag: a
3274
3172
  })
3275
3173
  ),
3276
- ...an(e)
3174
+ ...en(e)
3277
3175
  ];
3278
- }, on = (e) => e.type === "file" ? Object.keys(e.input) : [], va = ({
3176
+ }, tn = (e) => e.type === "file" ? Object.keys(e.input) : [], ma = ({
3279
3177
  basePath: e,
3280
3178
  config: t,
3281
3179
  client: s
@@ -3283,32 +3181,33 @@ const ra = (e) => Object.entries({
3283
3181
  const a = t.tagPages;
3284
3182
  if (!a)
3285
3183
  return [
3286
- gt({
3184
+ ht({
3287
3185
  basePath: e,
3288
3186
  routePath: e,
3289
3187
  routes: [
3290
- ga({ path: e + "/:tag?" }),
3291
- ...an(e)
3188
+ da({ path: e + "/:tag?" }),
3189
+ ...en(e)
3292
3190
  ],
3293
3191
  client: s,
3294
3192
  config: t
3295
3193
  })
3296
3194
  ];
3297
- const r = on(t);
3195
+ const r = tn(t);
3298
3196
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3299
3197
  const l = I(e, i);
3300
- return gt({
3198
+ return ht({
3301
3199
  basePath: e,
3302
3200
  version: i,
3303
3201
  routePath: l,
3304
- routes: ya(l, a),
3202
+ routes: ua(l, a),
3305
3203
  client: s,
3306
3204
  config: t
3307
3205
  });
3308
3206
  });
3309
- }, cn = yr(`
3207
+ }, nn = pr(`
3310
3208
  query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3311
3209
  schema(input: $input, type: $type) {
3210
+ extensions
3312
3211
  tags {
3313
3212
  slug
3314
3213
  name
@@ -3328,8 +3227,8 @@ const ra = (e) => Object.entries({
3328
3227
  }
3329
3228
  }
3330
3229
  }
3331
- `), Ge = "~endpoints", Xa = (e) => {
3332
- const t = I(e.path), s = new Ps(e);
3230
+ `), _e = "~endpoints", Ma = (e) => {
3231
+ const t = I(e.path), s = new Ss(e);
3333
3232
  return {
3334
3233
  getHead: () => {
3335
3234
  if (e.type === "url" && !e.skipPreload)
@@ -3354,118 +3253,139 @@ const ra = (e) => Object.entries({
3354
3253
  children: l,
3355
3254
  ...c
3356
3255
  }) => {
3357
- const u = Yn();
3256
+ const u = Un();
3358
3257
  if (!r)
3359
3258
  throw new Error("Server is required");
3360
3259
  return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3361
- re,
3260
+ ne,
3362
3261
  {
3363
3262
  className: "gap-2 items-center",
3364
3263
  variant: "outline",
3365
3264
  onClick: u.login,
3366
3265
  children: [
3367
3266
  "Login to open in Playground ",
3368
- /* @__PURE__ */ n.jsx(Bn, { size: 16 })
3267
+ /* @__PURE__ */ n.jsx(Dn, { size: 16 })
3369
3268
  ]
3370
3269
  }
3371
3270
  ) : /* @__PURE__ */ n.jsx(
3372
- pa,
3271
+ oa,
3373
3272
  {
3374
3273
  url: i ?? "/",
3375
3274
  method: o ?? "get",
3376
3275
  server: r,
3377
3276
  ...c,
3378
- children: /* @__PURE__ */ n.jsx(re, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3277
+ children: /* @__PURE__ */ n.jsx(ne, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3379
3278
  "Open in Playground ",
3380
- /* @__PURE__ */ n.jsx(_n, { size: 16 })
3279
+ /* @__PURE__ */ n.jsx(zn, { size: 16 })
3381
3280
  ] }) })
3382
3281
  }
3383
3282
  );
3384
3283
  }
3385
3284
  }),
3386
3285
  getNavigation: async (a, r) => {
3387
- if (!ot({ path: t, end: !1 }, a))
3286
+ if (!st({ path: t, end: !1 }, a))
3388
3287
  return [];
3389
- const o = ot(
3288
+ const o = st(
3390
3289
  { path: `${t}/:version?/:tag`, end: !0 },
3391
3290
  a
3392
3291
  );
3393
3292
  try {
3394
- const i = o?.params.version, l = i ?? on(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = qt(s, cn, {
3293
+ const i = o?.params.version, l = i ?? tn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, nn, {
3395
3294
  type: c,
3396
3295
  input: u
3397
- }), h = await r.queryClient.ensureQueryData(d), f = h.schema.tags.flatMap((x) => {
3398
- if (!x.name || x.operations.length === 0) return [];
3399
- const y = I(t, i, x.slug), b = x.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, R = x.extensions?.["x-zudoku-collapsible"] ?? !0;
3400
- return xt({
3401
- label: x.name,
3402
- path: y,
3403
- operations: x.operations,
3404
- collapsed: b,
3405
- collapsible: R
3406
- });
3407
- }), m = h.schema.tags.find(
3408
- (x) => !x.name
3296
+ }), h = await r.queryClient.ensureQueryData(d), g = new Map(
3297
+ h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
3298
+ if (!f.name)
3299
+ throw new Error(`Tag ${f.slug} has no name`);
3300
+ const j = I(t, i, f.slug), $ = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, S = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3301
+ return [
3302
+ f.name,
3303
+ pt({
3304
+ label: f.name,
3305
+ path: j,
3306
+ operations: f.operations,
3307
+ collapsed: $,
3308
+ collapsible: S
3309
+ })
3310
+ ];
3311
+ })
3312
+ ), m = h.schema.extensions?.["x-tagGroups"] ?? [], y = new Set(
3313
+ m.flatMap(
3314
+ (f) => f.tags.filter((j) => g.has(j))
3315
+ )
3316
+ ), b = [
3317
+ ...m.flatMap(
3318
+ (f) => {
3319
+ const j = f.tags.map(($) => g.get($)).filter(Boolean);
3320
+ return j.length === 0 ? [] : [
3321
+ {
3322
+ type: "category",
3323
+ label: f.name,
3324
+ items: j,
3325
+ collapsible: !0,
3326
+ collapsed: !e.options?.expandAllTags
3327
+ }
3328
+ ];
3329
+ }
3330
+ ),
3331
+ ...Array.from(g.entries()).filter(([f]) => !y.has(f)).map(([, f]) => f)
3332
+ ], O = h.schema.tags.find(
3333
+ (f) => !f.name
3409
3334
  )?.operations;
3410
- return m && f.push(
3411
- xt({
3412
- label: f.length === 0 ? "Endpoints" : "Other endpoints",
3413
- path: I(t, i, Ge),
3414
- operations: m,
3335
+ return O && b.push(
3336
+ pt({
3337
+ label: b.length === 0 ? "Endpoints" : "Other endpoints",
3338
+ path: I(t, i, _e),
3339
+ operations: O,
3415
3340
  collapsed: !e.options?.expandAllTags
3416
3341
  })
3417
- ), h.schema.components?.schemas?.length && f.push({
3342
+ ), h.schema.components?.schemas?.length && b.push({
3418
3343
  type: "link",
3419
3344
  label: "Schemas",
3420
3345
  to: I(t, i, "~schemas")
3421
- }), f;
3346
+ }), b;
3422
3347
  } catch {
3423
3348
  return [];
3424
3349
  }
3425
3350
  },
3426
- getRoutes: () => va({ basePath: t, config: e, client: s })
3351
+ getRoutes: () => ma({ basePath: t, config: e, client: s })
3427
3352
  };
3428
3353
  };
3429
3354
  export {
3430
- Bs as A,
3431
- Fs as B,
3432
3355
  q as C,
3433
- $t as D,
3434
- cn as E,
3435
- Xa as F,
3436
- Ja as G,
3437
- _s as L,
3438
- Wa as O,
3439
- pa as P,
3440
- Ds as Q,
3441
- Bt as S,
3442
- g as T,
3443
- Ge as U,
3444
- lr as a,
3445
- Vt as b,
3356
+ _a as G,
3357
+ zs as L,
3358
+ Ua as O,
3359
+ oa as P,
3360
+ Ls as Q,
3361
+ Dt as S,
3362
+ x as T,
3363
+ _e as U,
3364
+ rr as a,
3365
+ qt as b,
3446
3366
  V as c,
3447
- on as d,
3448
- Tr as e,
3449
- en as f,
3450
- yr as g,
3451
- Wr as h,
3452
- Ve as i,
3453
- _t as j,
3454
- Be as k,
3455
- ne as l,
3456
- ir as m,
3457
- zt as n,
3458
- mt as o,
3459
- Ha as p,
3460
- Us as q,
3461
- qe as r,
3462
- $ as s,
3463
- Dt as t,
3464
- fa as u,
3465
- Ls as v,
3466
- or as w,
3467
- we as x,
3468
- $s as y,
3469
- Qa as z
3367
+ tn as d,
3368
+ vr as e,
3369
+ Wt as f,
3370
+ pr as g,
3371
+ _r as h,
3372
+ nr as i,
3373
+ lt as j,
3374
+ Va as k,
3375
+ Fs as l,
3376
+ Fe as m,
3377
+ kt as n,
3378
+ Ts as o,
3379
+ tr as p,
3380
+ Ce as q,
3381
+ As as r,
3382
+ L as s,
3383
+ Ba as t,
3384
+ ca as u,
3385
+ Ds as v,
3386
+ Es as w,
3387
+ Lt as x,
3388
+ nn as y,
3389
+ Ma as z
3470
3390
  };
3471
- //# sourceMappingURL=index-C_PXQ8Bx.js.map
3391
+ //# sourceMappingURL=index-Bg7Js3jB.js.map