zudoku 0.45.1 → 0.46.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 (532) hide show
  1. package/dist/app/main.js +4 -23
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/config.d.ts +2 -2
  4. package/dist/config/file-exists.d.ts +1 -0
  5. package/dist/config/file-exists.js +5 -0
  6. package/dist/config/file-exists.js.map +1 -0
  7. package/dist/config/loader.d.ts +19 -4
  8. package/dist/config/loader.js +94 -14
  9. package/dist/config/loader.js.map +1 -1
  10. package/dist/config/validators/validate.d.ts +3536 -743
  11. package/dist/config/validators/validate.js +396 -11
  12. package/dist/config/validators/validate.js.map +1 -1
  13. package/dist/index.d.ts +4 -2
  14. package/dist/index.js +2 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/lib/authentication/AuthenticationPlugin.d.ts +7 -2
  17. package/dist/lib/authentication/AuthenticationPlugin.js +13 -1
  18. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  19. package/dist/lib/authentication/authentication.d.ts +2 -4
  20. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  21. package/dist/lib/authentication/providers/clerk.js +62 -43
  22. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  23. package/dist/lib/authentication/providers/openid.d.ts +7 -12
  24. package/dist/lib/authentication/providers/openid.js +11 -22
  25. package/dist/lib/authentication/providers/openid.js.map +1 -1
  26. package/dist/lib/authentication/providers/supabase.js +3 -5
  27. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  28. package/dist/lib/components/Autocomplete.js +1 -1
  29. package/dist/lib/components/Banner.js +1 -1
  30. package/dist/lib/components/Banner.js.map +1 -1
  31. package/dist/lib/components/ErrorPage.js +1 -1
  32. package/dist/lib/components/Footer.js +3 -3
  33. package/dist/lib/components/Footer.js.map +1 -1
  34. package/dist/lib/components/Header.js +16 -8
  35. package/dist/lib/components/Header.js.map +1 -1
  36. package/dist/lib/components/Heading.js +6 -1
  37. package/dist/lib/components/Heading.js.map +1 -1
  38. package/dist/lib/components/InlineCode.js +1 -1
  39. package/dist/lib/components/InlineCode.js.map +1 -1
  40. package/dist/lib/components/Layout.js +2 -2
  41. package/dist/lib/components/Layout.js.map +1 -1
  42. package/dist/lib/components/Main.js +2 -2
  43. package/dist/lib/components/Main.js.map +1 -1
  44. package/dist/lib/components/Markdown.js +8 -3
  45. package/dist/lib/components/Markdown.js.map +1 -1
  46. package/dist/lib/components/MobileTopNavigation.js +3 -2
  47. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  48. package/dist/lib/components/NotFoundPage.js +1 -1
  49. package/dist/lib/components/Pagination.js +1 -1
  50. package/dist/lib/components/Pagination.js.map +1 -1
  51. package/dist/lib/components/Search.js +1 -1
  52. package/dist/lib/components/Search.js.map +1 -1
  53. package/dist/lib/components/Slot.d.ts +17 -0
  54. package/dist/lib/components/Slot.js +24 -0
  55. package/dist/lib/components/Slot.js.map +1 -0
  56. package/dist/lib/components/Slot.test.js +168 -0
  57. package/dist/lib/components/Slot.test.js.map +1 -0
  58. package/dist/lib/components/TopNavigation.d.ts +1 -4
  59. package/dist/lib/components/TopNavigation.js +3 -11
  60. package/dist/lib/components/TopNavigation.js.map +1 -1
  61. package/dist/lib/components/Zudoku.js +2 -2
  62. package/dist/lib/components/Zudoku.js.map +1 -1
  63. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  64. package/dist/lib/components/context/SlotProvider.js +83 -0
  65. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  66. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  67. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  68. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  69. package/dist/lib/components/index.d.ts +29 -23
  70. package/dist/lib/components/index.js +13 -7
  71. package/dist/lib/components/index.js.map +1 -1
  72. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  73. package/dist/lib/components/navigation/Sidebar.js +3 -3
  74. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  75. package/dist/lib/components/navigation/SidebarBadge.js +1 -1
  76. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  77. package/dist/lib/components/navigation/SidebarCategory.js +3 -3
  78. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  79. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -5
  80. package/dist/lib/components/navigation/SidebarItem.js +19 -23
  81. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  82. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  83. package/dist/lib/components/navigation/Toc.js +1 -1
  84. package/dist/lib/components/navigation/Toc.js.map +1 -1
  85. package/dist/lib/components/navigation/utils.d.ts +8 -0
  86. package/dist/lib/components/navigation/utils.js +34 -6
  87. package/dist/lib/components/navigation/utils.js.map +1 -1
  88. package/dist/lib/core/ZudokuContext.d.ts +12 -8
  89. package/dist/lib/core/ZudokuContext.js +6 -5
  90. package/dist/lib/core/ZudokuContext.js.map +1 -1
  91. package/dist/lib/core/plugins.d.ts +5 -2
  92. package/dist/lib/core/plugins.js +1 -0
  93. package/dist/lib/core/plugins.js.map +1 -1
  94. package/dist/lib/errors/ErrorAlert.js +1 -1
  95. package/dist/lib/hooks/index.d.ts +19 -0
  96. package/dist/lib/hooks/index.js +11 -0
  97. package/dist/lib/hooks/index.js.map +1 -1
  98. package/dist/lib/plugins/api-catalog/Catalog.js +1 -1
  99. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  100. package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
  101. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  102. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  103. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +54 -23
  104. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  105. package/dist/lib/plugins/api-keys/index.d.ts +18 -9
  106. package/dist/lib/plugins/api-keys/index.js +49 -34
  107. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  108. package/dist/lib/plugins/custom-pages/index.d.ts +1 -1
  109. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  110. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  111. package/dist/lib/plugins/markdown/index.d.ts +1 -1
  112. package/dist/lib/plugins/markdown/resolver.d.ts +1 -1
  113. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  114. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  115. package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
  116. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  117. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  118. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  119. package/dist/lib/plugins/openapi/OperationListItem.js +2 -3
  120. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  121. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -1
  122. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  123. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  124. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  125. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  126. package/dist/lib/plugins/openapi/SchemaList.js +6 -5
  127. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  128. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  129. package/dist/lib/plugins/openapi/SidecarExamples.js +8 -0
  130. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  131. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  132. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  133. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  134. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  135. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  136. package/dist/lib/plugins/openapi/playground/Playground.js +2 -0
  137. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  138. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  139. package/dist/lib/plugins/openapi/playground/SubmitButton.js +7 -10
  140. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -1
  141. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +2 -2
  142. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  143. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +2 -1
  144. package/dist/lib/plugins/openapi/schema/SchemaView.js +3 -3
  145. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  146. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  147. package/dist/lib/ui/Badge.d.ts +2 -2
  148. package/dist/lib/ui/Badge.js +1 -1
  149. package/dist/lib/ui/Badge.js.map +1 -1
  150. package/dist/lib/ui/Button.d.ts +2 -2
  151. package/dist/lib/ui/Button.js +8 -6
  152. package/dist/lib/ui/Button.js.map +1 -1
  153. package/dist/lib/ui/Callout.js +1 -1
  154. package/dist/lib/ui/Callout.js.map +1 -1
  155. package/dist/lib/ui/Card.js +1 -1
  156. package/dist/lib/ui/Checkbox.js +1 -1
  157. package/dist/lib/ui/Checkbox.js.map +1 -1
  158. package/dist/lib/ui/Command.d.ts +2 -2
  159. package/dist/lib/ui/Command.js +3 -3
  160. package/dist/lib/ui/Command.js.map +1 -1
  161. package/dist/lib/ui/Dialog.js +1 -1
  162. package/dist/lib/ui/Dialog.js.map +1 -1
  163. package/dist/lib/ui/DropdownMenu.js +4 -4
  164. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  165. package/dist/lib/ui/HoverCard.js +1 -1
  166. package/dist/lib/ui/HoverCard.js.map +1 -1
  167. package/dist/lib/ui/Input.js +1 -1
  168. package/dist/lib/ui/Input.js.map +1 -1
  169. package/dist/lib/ui/Popover.js +1 -1
  170. package/dist/lib/ui/Popover.js.map +1 -1
  171. package/dist/lib/ui/RadioGroup.js +1 -1
  172. package/dist/lib/ui/RadioGroup.js.map +1 -1
  173. package/dist/lib/ui/Select.js +2 -2
  174. package/dist/lib/ui/Select.js.map +1 -1
  175. package/dist/lib/ui/Slider.js +1 -1
  176. package/dist/lib/ui/Slider.js.map +1 -1
  177. package/dist/lib/ui/Switch.js +1 -1
  178. package/dist/lib/ui/Switch.js.map +1 -1
  179. package/dist/lib/ui/Tabs.js +2 -2
  180. package/dist/lib/ui/Tabs.js.map +1 -1
  181. package/dist/lib/ui/Textarea.js +1 -1
  182. package/dist/lib/ui/Textarea.js.map +1 -1
  183. package/dist/lib/ui/Toggle.js +1 -1
  184. package/dist/lib/ui/Toggle.js.map +1 -1
  185. package/dist/lib/ui/Tooltip.d.ts +2 -1
  186. package/dist/lib/ui/Tooltip.js +2 -1
  187. package/dist/lib/ui/Tooltip.js.map +1 -1
  188. package/dist/lib/util/useExposedProps.d.ts +8 -1
  189. package/dist/lib/util/useExposedProps.js.map +1 -1
  190. package/dist/vite/api/SchemaManager.js +16 -1
  191. package/dist/vite/api/SchemaManager.js.map +1 -1
  192. package/dist/vite/build.js +44 -6
  193. package/dist/vite/build.js.map +1 -1
  194. package/dist/vite/config.d.ts +2 -9
  195. package/dist/vite/config.js +6 -95
  196. package/dist/vite/config.js.map +1 -1
  197. package/dist/vite/config.test.js +1 -1
  198. package/dist/vite/config.test.js.map +1 -1
  199. package/dist/vite/css/plugin.d.ts +1 -2
  200. package/dist/vite/css/plugin.js +3 -2
  201. package/dist/vite/css/plugin.js.map +1 -1
  202. package/dist/vite/dev-server.d.ts +0 -1
  203. package/dist/vite/dev-server.js +10 -12
  204. package/dist/vite/dev-server.js.map +1 -1
  205. package/dist/vite/html.d.ts +2 -2
  206. package/dist/vite/html.js +5 -2
  207. package/dist/vite/html.js.map +1 -1
  208. package/dist/vite/plugin-api-keys.d.ts +1 -2
  209. package/dist/vite/plugin-api-keys.js +9 -3
  210. package/dist/vite/plugin-api-keys.js.map +1 -1
  211. package/dist/vite/plugin-api.d.ts +1 -2
  212. package/dist/vite/plugin-api.js +5 -4
  213. package/dist/vite/plugin-api.js.map +1 -1
  214. package/dist/vite/plugin-auth.d.ts +1 -2
  215. package/dist/vite/plugin-auth.js +3 -2
  216. package/dist/vite/plugin-auth.js.map +1 -1
  217. package/dist/vite/plugin-component.d.ts +1 -2
  218. package/dist/vite/plugin-component.js +3 -2
  219. package/dist/vite/plugin-component.js.map +1 -1
  220. package/dist/vite/plugin-config-reload.d.ts +1 -2
  221. package/dist/vite/plugin-config-reload.js +21 -22
  222. package/dist/vite/plugin-config-reload.js.map +1 -1
  223. package/dist/vite/plugin-config.d.ts +1 -2
  224. package/dist/vite/plugin-config.js +4 -3
  225. package/dist/vite/plugin-config.js.map +1 -1
  226. package/dist/vite/plugin-configure-tailwind.d.ts +2 -0
  227. package/dist/vite/plugin-configure-tailwind.js +38 -0
  228. package/dist/vite/plugin-configure-tailwind.js.map +1 -0
  229. package/dist/vite/plugin-custom-pages.d.ts +1 -2
  230. package/dist/vite/plugin-custom-pages.js +3 -2
  231. package/dist/vite/plugin-custom-pages.js.map +1 -1
  232. package/dist/vite/plugin-docs.d.ts +1 -2
  233. package/dist/vite/plugin-docs.js +4 -3
  234. package/dist/vite/plugin-docs.js.map +1 -1
  235. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  236. package/dist/vite/plugin-frontmatter.js +3 -2
  237. package/dist/vite/plugin-frontmatter.js.map +1 -1
  238. package/dist/vite/plugin-mdx.d.ts +1 -2
  239. package/dist/vite/plugin-mdx.js +3 -2
  240. package/dist/vite/plugin-mdx.js.map +1 -1
  241. package/dist/vite/plugin-redirect.d.ts +1 -2
  242. package/dist/vite/plugin-redirect.js +3 -2
  243. package/dist/vite/plugin-redirect.js.map +1 -1
  244. package/dist/vite/plugin-search.d.ts +1 -2
  245. package/dist/vite/plugin-search.js +3 -2
  246. package/dist/vite/plugin-search.js.map +1 -1
  247. package/dist/vite/plugin-shiki-register.d.ts +1 -2
  248. package/dist/vite/plugin-shiki-register.js +2 -1
  249. package/dist/vite/plugin-shiki-register.js.map +1 -1
  250. package/dist/vite/plugin-sidebar.d.ts +1 -2
  251. package/dist/vite/plugin-sidebar.js +3 -2
  252. package/dist/vite/plugin-sidebar.js.map +1 -1
  253. package/dist/vite/plugin-theme-css.d.ts +1 -2
  254. package/dist/vite/plugin-theme-css.js +20 -60
  255. package/dist/vite/plugin-theme-css.js.map +1 -1
  256. package/dist/vite/plugin.d.ts +1 -2
  257. package/dist/vite/plugin.js +22 -21
  258. package/dist/vite/plugin.js.map +1 -1
  259. package/dist/vite/sitemap.d.ts +1 -1
  260. package/dist/zuplo/with-zuplo.d.ts +2 -2
  261. package/dist/zuplo/with-zuplo.js.map +1 -1
  262. package/lib/Button-BE9IVkWV.js +51 -0
  263. package/lib/Button-BE9IVkWV.js.map +1 -0
  264. package/lib/{Callout-XadUe37J.js → Callout-BkgOUkoZ.js} +9 -8
  265. package/lib/Callout-BkgOUkoZ.js.map +1 -0
  266. package/lib/{Card-BlCYNw5W.js → Card-DPhGbYUM.js} +3 -3
  267. package/lib/{Card-BlCYNw5W.js.map → Card-DPhGbYUM.js.map} +1 -1
  268. package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-Cu2RwgjC.js} +2 -2
  269. package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-Cu2RwgjC.js.map} +1 -1
  270. package/lib/{Dialog-CNf2oWXG.js → Dialog-Du6WMcIA.js} +8 -7
  271. package/lib/Dialog-Du6WMcIA.js.map +1 -0
  272. package/lib/{Drawer-BPBxzel2.js → Drawer-BzkOKwgC.js} +2 -2
  273. package/lib/{Drawer-BPBxzel2.js.map → Drawer-BzkOKwgC.js.map} +1 -1
  274. package/lib/Markdown-BRAyzyUJ.js +15348 -0
  275. package/lib/Markdown-BRAyzyUJ.js.map +1 -0
  276. package/lib/{MdxPage-tTTaDsLc.js → MdxPage-B3v1BSKr.js} +11 -11
  277. package/lib/MdxPage-B3v1BSKr.js.map +1 -0
  278. package/lib/{OasProvider-DalHQixM.js → OasProvider-5jrFuhVk.js} +3 -3
  279. package/lib/{OasProvider-DalHQixM.js.map → OasProvider-5jrFuhVk.js.map} +1 -1
  280. package/lib/{OperationList-BB09ENaq.js → OperationList-BmoMLQPO.js} +1039 -1005
  281. package/lib/OperationList-BmoMLQPO.js.map +1 -0
  282. package/lib/Pagination-Cr0fWZS3.js +36 -0
  283. package/lib/Pagination-Cr0fWZS3.js.map +1 -0
  284. package/lib/RouteGuard-PrSVLbSr.js +55 -0
  285. package/lib/RouteGuard-PrSVLbSr.js.map +1 -0
  286. package/lib/{SchemaList-BH9bgMRw.js → SchemaList-B4riYLoP.js} +61 -47
  287. package/lib/SchemaList-B4riYLoP.js.map +1 -0
  288. package/lib/{SchemaView-BsB7EFRl.js → SchemaView-CPZ6RgsF.js} +100 -95
  289. package/lib/SchemaView-CPZ6RgsF.js.map +1 -0
  290. package/lib/{AuthenticationPlugin-BTJ37DKg.js → SignUp-CWaiH0tY.js} +23 -50
  291. package/lib/SignUp-CWaiH0tY.js.map +1 -0
  292. package/lib/Slot-Bo6K4tnb.js +160 -0
  293. package/lib/Slot-Bo6K4tnb.js.map +1 -0
  294. package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-DedRjJNr.js} +233 -212
  295. package/lib/{SyntaxHighlight-UxOF1xNb.js.map → SyntaxHighlight-DedRjJNr.js.map} +1 -1
  296. package/lib/{Toc-Ax54Pw8S.js → Toc-lL3fzNkl.js} +5 -5
  297. package/lib/Toc-lL3fzNkl.js.map +1 -0
  298. package/lib/{circular-CZaZtOBs.js → circular-oB4auIIg.js} +2 -2
  299. package/lib/{circular-CZaZtOBs.js.map → circular-oB4auIIg.js.map} +1 -1
  300. package/lib/clsx-OuTLNxxd.js +17 -0
  301. package/lib/clsx-OuTLNxxd.js.map +1 -0
  302. package/lib/{cn-CwJPJKOE.js → cn-wvCW-ho6.js} +1015 -562
  303. package/lib/cn-wvCW-ho6.js.map +1 -0
  304. package/lib/{createServer-DmqFeMgf.js → createServer-DCB82j2t.js} +81 -81
  305. package/lib/{createServer-DmqFeMgf.js.map → createServer-DCB82j2t.js.map} +1 -1
  306. package/lib/{hook-BwOB_iZo.js → hook-DawSLaZr.js} +323 -300
  307. package/lib/hook-DawSLaZr.js.map +1 -0
  308. package/lib/{index-sS7O9W-R.js → index-BXYvD5-7.js} +868 -758
  309. package/lib/index-BXYvD5-7.js.map +1 -0
  310. package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
  311. package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
  312. package/lib/index-QzXzw_ra.js +24 -0
  313. package/lib/index-QzXzw_ra.js.map +1 -0
  314. package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BFcSKCe-.js} +232 -281
  315. package/lib/index.esm-BFcSKCe-.js.map +1 -0
  316. package/lib/{index.esm-D2ZUREQN.js → index.esm-DSfX_eMP.js} +3 -3
  317. package/lib/{index.esm-D2ZUREQN.js.map → index.esm-DSfX_eMP.js.map} +1 -1
  318. package/lib/joinPath-B7kNnUX4.js +8 -0
  319. package/lib/joinPath-B7kNnUX4.js.map +1 -0
  320. package/lib/{mutation-CL2MCRQL.js → mutation-oxMvODNQ.js} +2 -2
  321. package/lib/{mutation-CL2MCRQL.js.map → mutation-oxMvODNQ.js.map} +1 -1
  322. package/lib/ui/Accordion.js +1 -1
  323. package/lib/ui/ActionButton.js +2 -2
  324. package/lib/ui/Alert.js +2 -2
  325. package/lib/ui/AlertDialog.js +1 -1
  326. package/lib/ui/Badge.js +3 -3
  327. package/lib/ui/Badge.js.map +1 -1
  328. package/lib/ui/Breadcrumb.js +1 -1
  329. package/lib/ui/Button.js +20 -18
  330. package/lib/ui/Button.js.map +1 -1
  331. package/lib/ui/Callout.js +6 -5
  332. package/lib/ui/Callout.js.map +1 -1
  333. package/lib/ui/Card.js +8 -8
  334. package/lib/ui/Card.js.map +1 -1
  335. package/lib/ui/Carousel.js +1 -1
  336. package/lib/ui/Checkbox.js +7 -7
  337. package/lib/ui/Checkbox.js.map +1 -1
  338. package/lib/ui/CodeBlock.js +1 -1
  339. package/lib/ui/Command.js +43 -43
  340. package/lib/ui/Command.js.map +1 -1
  341. package/lib/ui/Dialog.js +2 -2
  342. package/lib/ui/Dialog.js.map +1 -1
  343. package/lib/ui/Drawer.js +2 -2
  344. package/lib/ui/DropdownMenu.js +34 -34
  345. package/lib/ui/DropdownMenu.js.map +1 -1
  346. package/lib/ui/Form.js +2 -2
  347. package/lib/ui/HoverCard.js +5 -5
  348. package/lib/ui/HoverCard.js.map +1 -1
  349. package/lib/ui/Input.js +2 -2
  350. package/lib/ui/Input.js.map +1 -1
  351. package/lib/ui/Label.js +2 -2
  352. package/lib/ui/Pagination.js +1 -1
  353. package/lib/ui/Popover.js +2 -2
  354. package/lib/ui/Popover.js.map +1 -1
  355. package/lib/ui/Progress.js +1 -1
  356. package/lib/ui/RadioGroup.js +10 -10
  357. package/lib/ui/RadioGroup.js.map +1 -1
  358. package/lib/ui/ScrollArea.js +1 -1
  359. package/lib/ui/Select.js +31 -31
  360. package/lib/ui/Select.js.map +1 -1
  361. package/lib/ui/Skeleton.js +1 -1
  362. package/lib/ui/Slider.js +5 -5
  363. package/lib/ui/Slider.js.map +1 -1
  364. package/lib/ui/Switch.js +5 -5
  365. package/lib/ui/Switch.js.map +1 -1
  366. package/lib/ui/SyntaxHighlight.js +2 -2
  367. package/lib/ui/Tabs.js +16 -16
  368. package/lib/ui/Tabs.js.map +1 -1
  369. package/lib/ui/Textarea.js +5 -5
  370. package/lib/ui/Textarea.js.map +1 -1
  371. package/lib/ui/Toggle.js +7 -7
  372. package/lib/ui/Toggle.js.map +1 -1
  373. package/lib/ui/ToggleGroup.js +1 -1
  374. package/lib/ui/Tooltip.js +15 -8
  375. package/lib/ui/Tooltip.js.map +1 -1
  376. package/lib/ui/util.js +1 -1
  377. package/lib/useExposedProps-DG8J6ewJ.js.map +1 -1
  378. package/lib/useMutation-C_j3dA_L.js +97 -0
  379. package/lib/useMutation-C_j3dA_L.js.map +1 -0
  380. package/lib/zudoku.auth-auth0.js +1 -1
  381. package/lib/zudoku.auth-auth0.js.map +1 -1
  382. package/lib/zudoku.auth-clerk.js +99 -82
  383. package/lib/zudoku.auth-clerk.js.map +1 -1
  384. package/lib/zudoku.auth-openid.js +246 -216
  385. package/lib/zudoku.auth-openid.js.map +1 -1
  386. package/lib/zudoku.components.js +4957 -33
  387. package/lib/zudoku.components.js.map +1 -1
  388. package/lib/zudoku.hooks.js +21 -12
  389. package/lib/zudoku.hooks.js.map +1 -1
  390. package/lib/zudoku.plugin-api-catalog.js +8 -8
  391. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  392. package/lib/zudoku.plugin-api-keys.js +5022 -214
  393. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  394. package/lib/zudoku.plugin-custom-pages.js +2 -2
  395. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  396. package/lib/zudoku.plugin-markdown.js +1 -1
  397. package/lib/zudoku.plugin-markdown.js.map +1 -1
  398. package/lib/zudoku.plugin-openapi.js +3 -3
  399. package/lib/zudoku.plugin-redirect.js.map +1 -1
  400. package/lib/zudoku.plugin-search-pagefind.js +5 -5
  401. package/lib/zudoku.plugins.js +7 -6
  402. package/lib/zudoku.plugins.js.map +1 -1
  403. package/package.json +15 -15
  404. package/src/app/defaultTheme.css +54 -0
  405. package/src/app/font.geist.css +73 -0
  406. package/src/app/main.css +113 -156
  407. package/src/app/main.tsx +4 -28
  408. package/src/lib/authentication/AuthenticationPlugin.tsx +18 -4
  409. package/src/lib/authentication/authentication.ts +2 -5
  410. package/src/lib/authentication/providers/auth0.tsx +8 -2
  411. package/src/lib/authentication/providers/clerk.tsx +72 -48
  412. package/src/lib/authentication/providers/openid.tsx +19 -26
  413. package/src/lib/authentication/providers/supabase.tsx +7 -7
  414. package/src/lib/components/Autocomplete.tsx +1 -1
  415. package/src/lib/components/Banner.tsx +1 -1
  416. package/src/lib/components/ErrorPage.tsx +1 -1
  417. package/src/lib/components/Footer.tsx +4 -4
  418. package/src/lib/components/Header.tsx +29 -29
  419. package/src/lib/components/Heading.tsx +9 -5
  420. package/src/lib/components/InlineCode.tsx +1 -1
  421. package/src/lib/components/Layout.tsx +3 -3
  422. package/src/lib/components/Main.tsx +4 -4
  423. package/src/lib/components/Markdown.tsx +14 -4
  424. package/src/lib/components/MobileTopNavigation.tsx +3 -2
  425. package/src/lib/components/NotFoundPage.tsx +1 -1
  426. package/src/lib/components/Pagination.tsx +3 -9
  427. package/src/lib/components/Search.tsx +1 -1
  428. package/src/lib/components/Slot.test.tsx +465 -0
  429. package/src/lib/components/Slot.tsx +64 -0
  430. package/src/lib/components/TopNavigation.tsx +5 -17
  431. package/src/lib/components/Zudoku.tsx +9 -9
  432. package/src/lib/components/context/SlotProvider.tsx +149 -0
  433. package/src/lib/components/context/ZudokuProvider.tsx +2 -1
  434. package/src/lib/components/index.ts +14 -10
  435. package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
  436. package/src/lib/components/navigation/Sidebar.tsx +3 -3
  437. package/src/lib/components/navigation/SidebarBadge.tsx +1 -1
  438. package/src/lib/components/navigation/SidebarCategory.tsx +3 -3
  439. package/src/lib/components/navigation/SidebarItem.tsx +57 -30
  440. package/src/lib/components/navigation/SidebarWrapper.tsx +2 -2
  441. package/src/lib/components/navigation/Toc.tsx +2 -2
  442. package/src/lib/components/navigation/utils.ts +42 -6
  443. package/src/lib/core/ZudokuContext.ts +24 -12
  444. package/src/lib/core/plugins.ts +10 -2
  445. package/src/lib/errors/ErrorAlert.tsx +1 -1
  446. package/src/lib/hooks/index.ts +11 -0
  447. package/src/lib/plugins/api-catalog/Catalog.tsx +1 -1
  448. package/src/lib/plugins/api-keys/CreateApiKey.tsx +54 -42
  449. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +292 -112
  450. package/src/lib/plugins/api-keys/index.tsx +101 -55
  451. package/src/lib/plugins/custom-pages/index.tsx +1 -1
  452. package/src/lib/plugins/markdown/MdxPage.tsx +2 -2
  453. package/src/lib/plugins/markdown/index.tsx +2 -2
  454. package/src/lib/plugins/markdown/resolver.ts +4 -2
  455. package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
  456. package/src/lib/plugins/openapi/ColorizedParam.tsx +2 -2
  457. package/src/lib/plugins/openapi/OperationList.tsx +2 -2
  458. package/src/lib/plugins/openapi/OperationListItem.tsx +6 -34
  459. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -1
  460. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  461. package/src/lib/plugins/openapi/SchemaList.tsx +20 -8
  462. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  463. package/src/lib/plugins/openapi/SidecarExamples.tsx +6 -0
  464. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  465. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  466. package/src/lib/plugins/openapi/playground/Playground.tsx +7 -1
  467. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  468. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +24 -29
  469. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +2 -2
  470. package/src/lib/plugins/openapi/schema/SchemaView.tsx +7 -3
  471. package/src/lib/plugins/redirect/index.tsx +1 -1
  472. package/src/lib/ui/Badge.tsx +2 -2
  473. package/src/lib/ui/Button.tsx +9 -6
  474. package/src/lib/ui/Callout.tsx +1 -0
  475. package/src/lib/ui/Card.tsx +1 -1
  476. package/src/lib/ui/Checkbox.tsx +1 -1
  477. package/src/lib/ui/Command.tsx +5 -5
  478. package/src/lib/ui/Dialog.tsx +1 -1
  479. package/src/lib/ui/DropdownMenu.tsx +4 -4
  480. package/src/lib/ui/HoverCard.tsx +1 -1
  481. package/src/lib/ui/Input.tsx +1 -1
  482. package/src/lib/ui/Popover.tsx +1 -1
  483. package/src/lib/ui/RadioGroup.tsx +1 -1
  484. package/src/lib/ui/Select.tsx +3 -3
  485. package/src/lib/ui/Slider.tsx +1 -1
  486. package/src/lib/ui/Switch.tsx +1 -1
  487. package/src/lib/ui/Tabs.tsx +2 -2
  488. package/src/lib/ui/Textarea.tsx +1 -1
  489. package/src/lib/ui/Toggle.tsx +1 -1
  490. package/src/lib/ui/Tooltip.tsx +16 -1
  491. package/src/lib/util/useExposedProps.tsx +12 -1
  492. package/dist/app/tailwind.d.ts +0 -4
  493. package/dist/app/tailwind.js +0 -97
  494. package/dist/app/tailwind.js.map +0 -1
  495. package/dist/config/common.d.ts +0 -10
  496. package/dist/config/common.js +0 -2
  497. package/dist/config/common.js.map +0 -1
  498. package/dist/config/validators/common.d.ts +0 -8001
  499. package/dist/config/validators/common.js +0 -414
  500. package/dist/config/validators/common.js.map +0 -1
  501. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  502. package/dist/lib/components/SlotletProvider.js +0 -18
  503. package/dist/lib/components/SlotletProvider.js.map +0 -1
  504. package/dist/vite/plugin-docs.test.js +0 -22
  505. package/dist/vite/plugin-docs.test.js.map +0 -1
  506. package/lib/AuthenticationPlugin-BTJ37DKg.js.map +0 -1
  507. package/lib/Button-Bdk_Ij3U.js +0 -49
  508. package/lib/Button-Bdk_Ij3U.js.map +0 -1
  509. package/lib/Callout-XadUe37J.js.map +0 -1
  510. package/lib/Dialog-CNf2oWXG.js.map +0 -1
  511. package/lib/Markdown-D96AphCL.js +0 -7691
  512. package/lib/Markdown-D96AphCL.js.map +0 -1
  513. package/lib/MdxPage-tTTaDsLc.js.map +0 -1
  514. package/lib/OperationList-BB09ENaq.js.map +0 -1
  515. package/lib/Pagination-CtmnJOJi.js +0 -48
  516. package/lib/Pagination-CtmnJOJi.js.map +0 -1
  517. package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
  518. package/lib/SchemaList-BH9bgMRw.js.map +0 -1
  519. package/lib/SchemaView-BsB7EFRl.js.map +0 -1
  520. package/lib/Select-HTio1oSE.js +0 -211
  521. package/lib/Select-HTio1oSE.js.map +0 -1
  522. package/lib/SlotletProvider-CTgIBRWg.js +0 -257
  523. package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
  524. package/lib/Toc-Ax54Pw8S.js.map +0 -1
  525. package/lib/cn-CwJPJKOE.js.map +0 -1
  526. package/lib/hook-BwOB_iZo.js.map +0 -1
  527. package/lib/index-BnT4-Efz.js +0 -4975
  528. package/lib/index-BnT4-Efz.js.map +0 -1
  529. package/lib/index-sS7O9W-R.js.map +0 -1
  530. package/src/app/tailwind.ts +0 -103
  531. package/src/lib/components/SlotletProvider.tsx +0 -55
  532. /package/dist/{vite/plugin-docs.test.d.ts → lib/components/Slot.test.d.ts} +0 -0
@@ -1,53 +1,54 @@
1
1
  import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronRightIcon as W, CheckIcon as ln, DotIcon as cn, Check as dn, XIcon as un, Circle as mn, ChevronDownIcon as pn, InfoIcon as nt, LogInIcon as hn, CirclePlayIcon as fn } from "lucide-react";
3
- import { r as xn, c as gn, u as yn, N as vn, h as bn, m as st } from "./chunk-BAXFHI7N-C9WnHsLV.js";
4
- import { J as vt, K as bt, L as jn, m as Nn, M as Cn, f as L, d as Sn, l as wn } from "./hook-BwOB_iZo.js";
5
- import { Button as X } from "./ui/Button.js";
6
- import { Z as Tn } from "./invariant-DAFpPywt.js";
7
- import * as S from "react";
8
- import { createContext as jt, use as An, Fragment as D, useRef as U, useEffect as re, useMemo as On, useState as P, useCallback as En, useTransition as Pn, useContext as $n } from "react";
9
- import { VisuallyHidden as Ln } from "@radix-ui/react-visually-hidden";
10
- import { D as Le, a as Re, b as Ie, d as Nt, e as Ct, f as Rn } from "./Dialog-CNf2oWXG.js";
11
- import { S as Ne, a as Ce, b as Se, c as we, e as J, u as In } from "./Select-HTio1oSE.js";
12
- import { b as ke, u as De, C as q, a as kn, F as Dn } from "./index.esm-D2ZUREQN.js";
13
- import { c as St } from "./index-Z13x6tPX.js";
14
- import { c as v } from "./cn-CwJPJKOE.js";
15
- import { Tabs as wt, TabsList as Tt, TabsTrigger as z, TabsContent as M } from "./ui/Tabs.js";
16
- import { o as qn } from "./objectEntries-yMIkr2mI.js";
17
- import { u as Vn } from "./useLatest-hmRS46UF.js";
18
- import { z as Fn } from "./index--oeBayMa.js";
19
- import { B as V } from "./Button-Bdk_Ij3U.js";
20
- import * as b from "@radix-ui/react-dropdown-menu";
21
- import { C as ce } from "./Card-BlCYNw5W.js";
22
- import * as Te from "@radix-ui/react-checkbox";
23
- import * as ae from "@radix-ui/react-popover";
24
- import { PopoverAnchor as _n } from "@radix-ui/react-popover";
25
- import { P as Bn } from "./index-CrcNWbel.js";
26
- import { g as zn, h as Mn, C as Gn, b as Un, f as Hn } from "./Callout-XadUe37J.js";
27
- import { Input as qe } from "./ui/Input.js";
28
- import { Slot as Qn } from "@radix-ui/react-slot";
29
- import * as At from "@radix-ui/react-label";
30
- import * as Z from "@radix-ui/react-radio-group";
31
- import { S as Jn } from "./Spinner-mNLZ6awP.js";
32
- import { Callout as Wn } from "./ui/Callout.js";
33
- import { Card as Ot, CardHeader as Xn, CardTitle as Zn, CardContent as Yn } from "./ui/Card.js";
2
+ import { ChevronDown as vt, ChevronUp as hn, Check as bt, ChevronRightIcon as X, CheckIcon as jt, DotIcon as fn, XIcon as xn, Circle as gn, ChevronDownIcon as yn, InfoIcon as nt, LogInIcon as vn, CirclePlayIcon as bn } from "lucide-react";
3
+ import { r as jn, c as Nn, u as wn, N as Cn, h as Sn, m as st } from "./chunk-BAXFHI7N-C9WnHsLV.js";
4
+ import { L as Nt, M as wt, O as Tn, m as An, P as On, l as R, d as Pn, f as En } from "./hook-DawSLaZr.js";
5
+ import { Button as Z } from "./ui/Button.js";
6
+ import { Z as $n } from "./invariant-DAFpPywt.js";
7
+ import * as b from "react";
8
+ import { createContext as Ct, use as Rn, Fragment as q, useRef as Q, useEffect as ae, useMemo as Ln, useState as L, useCallback as In, useTransition as kn, useContext as Dn } from "react";
9
+ import { VisuallyHidden as qn } from "@radix-ui/react-visually-hidden";
10
+ import { D as Le, a as Ie, c as ke, d as St, e as Tt, f as Vn } from "./Dialog-Du6WMcIA.js";
11
+ import { u as Fn } from "./useMutation-C_j3dA_L.js";
12
+ import { a as De, u as qe, C as V, b as Bn, F as zn } from "./index.esm-DSfX_eMP.js";
13
+ import { c as At } from "./index-DI5SPFK9.js";
14
+ import { c as g } from "./cn-wvCW-ho6.js";
15
+ import * as w from "@radix-ui/react-select";
16
+ import { Tabs as Ot, TabsList as Pt, TabsTrigger as M, TabsContent as U } from "./ui/Tabs.js";
17
+ import { o as _n } from "./objectEntries-yMIkr2mI.js";
18
+ import { u as Mn } from "./useLatest-hmRS46UF.js";
19
+ import { z as Un } from "./index--oeBayMa.js";
20
+ import { B as F } from "./Button-BE9IVkWV.js";
21
+ import * as j from "@radix-ui/react-dropdown-menu";
22
+ import { C as ue } from "./Card-DPhGbYUM.js";
23
+ import * as Ce from "@radix-ui/react-checkbox";
24
+ import * as oe from "@radix-ui/react-popover";
25
+ import { PopoverAnchor as Gn } from "@radix-ui/react-popover";
26
+ import { P as Hn } from "./index-CrcNWbel.js";
27
+ import { g as Qn, h as Jn, C as Wn, b as Xn, f as Zn } from "./Callout-BkgOUkoZ.js";
28
+ import { Input as Ve } from "./ui/Input.js";
29
+ import { Slot as Yn } from "@radix-ui/react-slot";
30
+ import * as Et from "@radix-ui/react-label";
31
+ import * as Y from "@radix-ui/react-radio-group";
32
+ import { S as Kn } from "./Spinner-mNLZ6awP.js";
33
+ import { Callout as es } from "./ui/Callout.js";
34
+ import { Card as $t, CardHeader as ts, CardTitle as ns, CardContent as ss } from "./ui/Card.js";
34
35
  import { Collapsible as rt, CollapsibleTrigger as at, CollapsibleContent as ot } from "./ui/Collapsible.js";
35
- import * as Ve from "@radix-ui/react-collapsible";
36
- import { S as Kn } from "./SyntaxHighlight-UxOF1xNb.js";
37
- let fe;
38
- const es = (e) => {
36
+ import * as Fe from "@radix-ui/react-collapsible";
37
+ import { S as rs } from "./SyntaxHighlight-DedRjJNr.js";
38
+ let ge;
39
+ const as = (e) => {
39
40
  if (e.errors?.[0])
40
- throw new Tn(e.errors[0].message, {
41
+ throw new $n(e.errors[0].message, {
41
42
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
42
43
  });
43
44
  };
44
- class ts {
45
+ class os {
45
46
  constructor(t) {
46
47
  this.config = t;
47
48
  }
48
- #e = async () => (fe || (fe = import("./createServer-DmqFeMgf.js").then(
49
+ #e = async () => (ge || (ge = import("./createServer-DCB82j2t.js").then(
49
50
  (t) => t.createServer(this.config)
50
- )), fe);
51
+ )), ge);
51
52
  #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
52
53
  fetch = async (t, s) => {
53
54
  const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
@@ -58,27 +59,27 @@ class ts {
58
59
  if (!r.ok)
59
60
  throw new Error("Network response was not ok");
60
61
  const o = await r.json();
61
- return es(o), o.data;
62
+ return as(o), o.data;
62
63
  };
63
64
  }
64
- function xe(e, t) {
65
+ function ye(e, t) {
65
66
  if (!!!e)
66
67
  throw new Error(t);
67
68
  }
68
- function ns(e) {
69
+ function is(e) {
69
70
  return typeof e == "object" && e !== null;
70
71
  }
71
- function ss(e, t) {
72
+ function ls(e, t) {
72
73
  if (!!!e)
73
74
  throw new Error(
74
75
  t ?? "Unexpected invariant triggered."
75
76
  );
76
77
  }
77
- const rs = /\r\n|[\n\r]/g;
78
- function Ae(e, t) {
78
+ const cs = /\r\n|[\n\r]/g;
79
+ function Se(e, t) {
79
80
  let s = 0, a = 1;
80
- for (const r of e.body.matchAll(rs)) {
81
- if (typeof r.index == "number" || ss(!1), r.index >= t)
81
+ for (const r of e.body.matchAll(cs)) {
82
+ if (typeof r.index == "number" || ls(!1), r.index >= t)
82
83
  break;
83
84
  s = r.index + r[0].length, a += 1;
84
85
  }
@@ -87,22 +88,22 @@ function Ae(e, t) {
87
88
  column: t + 1 - s
88
89
  };
89
90
  }
90
- function as(e) {
91
- return Et(
91
+ function ds(e) {
92
+ return Rt(
92
93
  e.source,
93
- Ae(e.source, e.start)
94
+ Se(e.source, e.start)
94
95
  );
95
96
  }
96
- function Et(e, t) {
97
+ function Rt(e, t) {
97
98
  const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, c = t.line === 1 ? s : 0, l = t.column + c, u = `${e.name}:${i}:${l}
98
- `, p = a.split(/\r\n|[\n\r]/g), y = p[r];
99
- if (y.length > 120) {
99
+ `, p = a.split(/\r\n|[\n\r]/g), v = p[r];
100
+ if (v.length > 120) {
100
101
  const f = Math.floor(l / 80), x = l % 80, m = [];
101
- for (let g = 0; g < y.length; g += 80)
102
- m.push(y.slice(g, g + 80));
102
+ for (let y = 0; y < v.length; y += 80)
103
+ m.push(v.slice(y, y + 80));
103
104
  return u + it([
104
105
  [`${i} |`, m[0]],
105
- ...m.slice(1, f + 1).map((g) => ["|", g]),
106
+ ...m.slice(1, f + 1).map((y) => ["|", y]),
106
107
  ["|", "^".padStart(x)],
107
108
  ["|", m[f + 1]]
108
109
  ]);
@@ -110,7 +111,7 @@ function Et(e, t) {
110
111
  return u + it([
111
112
  // Lines specified like this: ["prefix", "string"],
112
113
  [`${i - 1} |`, p[r - 1]],
113
- [`${i} |`, y],
114
+ [`${i} |`, v],
114
115
  ["|", "^".padStart(l)],
115
116
  [`${i + 1} |`, p[r + 1]]
116
117
  ]);
@@ -120,7 +121,7 @@ function it(e) {
120
121
  return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
121
122
  `);
122
123
  }
123
- function os(e) {
124
+ function us(e) {
124
125
  const t = e[0];
125
126
  return t == null || "kind" in t || "length" in t ? {
126
127
  nodes: t,
@@ -131,7 +132,7 @@ function os(e) {
131
132
  extensions: e[5]
132
133
  } : t;
133
134
  }
134
- class Fe extends Error {
135
+ class Be extends Error {
135
136
  /**
136
137
  * An array of `{ line, column }` locations within the source GraphQL document
137
138
  * which correspond to this error.
@@ -172,18 +173,18 @@ class Fe extends Error {
172
173
  */
173
174
  constructor(t, ...s) {
174
175
  var a, r, o;
175
- const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: y } = os(s);
176
+ const { nodes: i, source: c, positions: l, path: u, originalError: p, extensions: v } = us(s);
176
177
  super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = p ?? void 0, this.nodes = lt(
177
178
  Array.isArray(i) ? i : i ? [i] : void 0
178
179
  );
179
180
  const f = lt(
180
181
  (a = this.nodes) === null || a === void 0 ? void 0 : a.map((m) => m.loc).filter((m) => m != null)
181
182
  );
182
- this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Ae(c, m)) : f?.map((m) => Ae(m.source, m.start));
183
- const x = ns(
183
+ this.source = c ?? (f == null || (r = f[0]) === null || r === void 0 ? void 0 : r.source), this.positions = l ?? f?.map((m) => m.start), this.locations = l && c ? l.map((m) => Se(c, m)) : f?.map((m) => Se(m.source, m.start));
184
+ const x = is(
184
185
  p?.extensions
185
186
  ) ? p?.extensions : void 0;
186
- this.extensions = (o = y ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
187
+ this.extensions = (o = v ?? x) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
187
188
  message: {
188
189
  writable: !0,
189
190
  enumerable: !0
@@ -207,7 +208,7 @@ class Fe extends Error {
207
208
  value: p.stack,
208
209
  writable: !0,
209
210
  configurable: !0
210
- }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
211
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Be) : Object.defineProperty(this, "stack", {
211
212
  value: Error().stack,
212
213
  writable: !0,
213
214
  configurable: !0
@@ -222,12 +223,12 @@ class Fe extends Error {
222
223
  for (const s of this.nodes)
223
224
  s.loc && (t += `
224
225
 
225
- ` + as(s.loc));
226
+ ` + ds(s.loc));
226
227
  else if (this.source && this.locations)
227
228
  for (const s of this.locations)
228
229
  t += `
229
230
 
230
- ` + Et(this.source, s);
231
+ ` + Rt(this.source, s);
231
232
  return t;
232
233
  }
233
234
  toJSON() {
@@ -240,13 +241,13 @@ class Fe extends Error {
240
241
  function lt(e) {
241
242
  return e === void 0 || e.length === 0 ? void 0 : e;
242
243
  }
243
- function A(e, t, s) {
244
- return new Fe(`Syntax Error: ${s}`, {
244
+ function O(e, t, s) {
245
+ return new Be(`Syntax Error: ${s}`, {
245
246
  source: e,
246
247
  positions: [t]
247
248
  });
248
249
  }
249
- class da {
250
+ class ga {
250
251
  /**
251
252
  * The character offset at which this Node begins.
252
253
  */
@@ -275,7 +276,7 @@ class da {
275
276
  };
276
277
  }
277
278
  }
278
- class Pt {
279
+ class Lt {
279
280
  /**
280
281
  * The kind of Token.
281
282
  */
@@ -317,7 +318,7 @@ class Pt {
317
318
  };
318
319
  }
319
320
  }
320
- const is = {
321
+ const ms = {
321
322
  Name: [],
322
323
  Document: ["definitions"],
323
324
  OperationDefinition: [
@@ -391,37 +392,37 @@ const is = {
391
392
  UnionTypeExtension: ["name", "directives", "types"],
392
393
  EnumTypeExtension: ["name", "directives", "values"],
393
394
  InputObjectTypeExtension: ["name", "directives", "fields"]
394
- }, ls = new Set(Object.keys(is));
395
- function ua(e) {
395
+ }, ps = new Set(Object.keys(ms));
396
+ function ya(e) {
396
397
  const t = e?.kind;
397
- return typeof t == "string" && ls.has(t);
398
+ return typeof t == "string" && ps.has(t);
398
399
  }
399
400
  var ct;
400
401
  (function(e) {
401
402
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
402
403
  })(ct || (ct = {}));
403
- function Oe(e) {
404
+ function Te(e) {
404
405
  return e === 9 || e === 32;
405
406
  }
406
- function Y(e) {
407
+ function K(e) {
407
408
  return e >= 48 && e <= 57;
408
409
  }
409
- function $t(e) {
410
+ function It(e) {
410
411
  return e >= 97 && e <= 122 || // A-Z
411
412
  e >= 65 && e <= 90;
412
413
  }
413
- function Lt(e) {
414
- return $t(e) || e === 95;
414
+ function kt(e) {
415
+ return It(e) || e === 95;
415
416
  }
416
- function cs(e) {
417
- return $t(e) || Y(e) || e === 95;
417
+ function hs(e) {
418
+ return It(e) || K(e) || e === 95;
418
419
  }
419
- function ds(e) {
420
+ function fs(e) {
420
421
  var t;
421
422
  let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
422
423
  for (let i = 0; i < e.length; ++i) {
423
424
  var o;
424
- const c = e[i], l = us(c);
425
+ const c = e[i], l = xs(c);
425
426
  l !== c.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && l < s && (s = l));
426
427
  }
427
428
  return e.map((i, c) => c === 0 ? i : i.slice(s)).slice(
@@ -429,26 +430,26 @@ function ds(e) {
429
430
  r + 1
430
431
  );
431
432
  }
432
- function us(e) {
433
+ function xs(e) {
433
434
  let t = 0;
434
- for (; t < e.length && Oe(e.charCodeAt(t)); )
435
+ for (; t < e.length && Te(e.charCodeAt(t)); )
435
436
  ++t;
436
437
  return t;
437
438
  }
438
- function ms(e, t) {
439
- 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((x) => x.length === 0 || Oe(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
439
+ function gs(e, t) {
440
+ 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((x) => x.length === 0 || Te(x.charCodeAt(0))), i = s.endsWith('\\"""'), c = e.endsWith('"') && !i, l = e.endsWith("\\"), u = c || l, p = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
440
441
  (!r || e.length > 70 || u || o || i);
441
- let y = "";
442
- const f = r && Oe(e.charCodeAt(0));
443
- return (p && !f || o) && (y += `
444
- `), y += s, (p || u) && (y += `
445
- `), '"""' + y + '"""';
442
+ let v = "";
443
+ const f = r && Te(e.charCodeAt(0));
444
+ return (p && !f || o) && (v += `
445
+ `), v += s, (p || u) && (v += `
446
+ `), '"""' + v + '"""';
446
447
  }
447
448
  var h;
448
449
  (function(e) {
449
450
  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";
450
451
  })(h || (h = {}));
451
- class ps {
452
+ class ys {
452
453
  /**
453
454
  * The previously focused non-ignored token.
454
455
  */
@@ -462,7 +463,7 @@ class ps {
462
463
  * The character offset at which the current line begins.
463
464
  */
464
465
  constructor(t) {
465
- const s = new Pt(h.SOF, 0, 0, 0, 0);
466
+ const s = new Lt(h.SOF, 0, 0, 0, 0);
466
467
  this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
467
468
  }
468
469
  get [Symbol.toStringTag]() {
@@ -485,29 +486,29 @@ class ps {
485
486
  if (t.next)
486
487
  t = t.next;
487
488
  else {
488
- const s = fs(this, t.end);
489
+ const s = bs(this, t.end);
489
490
  t.next = s, s.prev = t, t = s;
490
491
  }
491
492
  while (t.kind === h.COMMENT);
492
493
  return t;
493
494
  }
494
495
  }
495
- function hs(e) {
496
+ function vs(e) {
496
497
  return e === h.BANG || e === h.DOLLAR || e === h.AMP || e === h.PAREN_L || e === h.PAREN_R || e === h.SPREAD || e === h.COLON || e === h.EQUALS || e === h.AT || e === h.BRACKET_L || e === h.BRACKET_R || e === h.BRACE_L || e === h.PIPE || e === h.BRACE_R;
497
498
  }
498
- function H(e) {
499
+ function J(e) {
499
500
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
500
501
  }
501
- function de(e, t) {
502
- return Rt(e.charCodeAt(t)) && It(e.charCodeAt(t + 1));
502
+ function me(e, t) {
503
+ return Dt(e.charCodeAt(t)) && qt(e.charCodeAt(t + 1));
503
504
  }
504
- function Rt(e) {
505
+ function Dt(e) {
505
506
  return e >= 55296 && e <= 56319;
506
507
  }
507
- function It(e) {
508
+ function qt(e) {
508
509
  return e >= 56320 && e <= 57343;
509
510
  }
510
- function F(e, t) {
511
+ function B(e, t) {
511
512
  const s = e.source.body.codePointAt(t);
512
513
  if (s === void 0)
513
514
  return h.EOF;
@@ -517,11 +518,11 @@ function F(e, t) {
517
518
  }
518
519
  return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
519
520
  }
520
- function N(e, t, s, a, r) {
521
+ function C(e, t, s, a, r) {
521
522
  const o = e.line, i = 1 + s - e.lineStart;
522
- return new Pt(t, s, a, o, i, r);
523
+ return new Lt(t, s, a, o, i, r);
523
524
  }
524
- function fs(e, t) {
525
+ function bs(e, t) {
525
526
  const s = e.source.body, a = s.length;
526
527
  let r = t;
527
528
  for (; r < a; ) {
@@ -562,7 +563,7 @@ function fs(e, t) {
562
563
  continue;
563
564
  // Comment
564
565
  case 35:
565
- return xs(e, r);
566
+ return js(e, r);
566
567
  // Token ::
567
568
  // - Punctuator
568
569
  // - Name
@@ -572,66 +573,66 @@ function fs(e, t) {
572
573
  //
573
574
  // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
574
575
  case 33:
575
- return N(e, h.BANG, r, r + 1);
576
+ return C(e, h.BANG, r, r + 1);
576
577
  case 36:
577
- return N(e, h.DOLLAR, r, r + 1);
578
+ return C(e, h.DOLLAR, r, r + 1);
578
579
  case 38:
579
- return N(e, h.AMP, r, r + 1);
580
+ return C(e, h.AMP, r, r + 1);
580
581
  case 40:
581
- return N(e, h.PAREN_L, r, r + 1);
582
+ return C(e, h.PAREN_L, r, r + 1);
582
583
  case 41:
583
- return N(e, h.PAREN_R, r, r + 1);
584
+ return C(e, h.PAREN_R, r, r + 1);
584
585
  case 46:
585
586
  if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
586
- return N(e, h.SPREAD, r, r + 3);
587
+ return C(e, h.SPREAD, r, r + 3);
587
588
  break;
588
589
  case 58:
589
- return N(e, h.COLON, r, r + 1);
590
+ return C(e, h.COLON, r, r + 1);
590
591
  case 61:
591
- return N(e, h.EQUALS, r, r + 1);
592
+ return C(e, h.EQUALS, r, r + 1);
592
593
  case 64:
593
- return N(e, h.AT, r, r + 1);
594
+ return C(e, h.AT, r, r + 1);
594
595
  case 91:
595
- return N(e, h.BRACKET_L, r, r + 1);
596
+ return C(e, h.BRACKET_L, r, r + 1);
596
597
  case 93:
597
- return N(e, h.BRACKET_R, r, r + 1);
598
+ return C(e, h.BRACKET_R, r, r + 1);
598
599
  case 123:
599
- return N(e, h.BRACE_L, r, r + 1);
600
+ return C(e, h.BRACE_L, r, r + 1);
600
601
  case 124:
601
- return N(e, h.PIPE, r, r + 1);
602
+ return C(e, h.PIPE, r, r + 1);
602
603
  case 125:
603
- return N(e, h.BRACE_R, r, r + 1);
604
+ return C(e, h.BRACE_R, r, r + 1);
604
605
  // StringValue
605
606
  case 34:
606
- return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Ns(e, r) : ys(e, r);
607
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? As(e, r) : ws(e, r);
607
608
  }
608
- if (Y(o) || o === 45)
609
- return gs(e, r, o);
610
- if (Lt(o))
611
- return Cs(e, r);
612
- throw A(
609
+ if (K(o) || o === 45)
610
+ return Ns(e, r, o);
611
+ if (kt(o))
612
+ return Os(e, r);
613
+ throw O(
613
614
  e.source,
614
615
  r,
615
- o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : H(o) || de(s, r) ? `Unexpected character: ${F(e, r)}.` : `Invalid character: ${F(e, r)}.`
616
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : J(o) || me(s, r) ? `Unexpected character: ${B(e, r)}.` : `Invalid character: ${B(e, r)}.`
616
617
  );
617
618
  }
618
- return N(e, h.EOF, a, a);
619
+ return C(e, h.EOF, a, a);
619
620
  }
620
- function xs(e, t) {
621
+ function js(e, t) {
621
622
  const s = e.source.body, a = s.length;
622
623
  let r = t + 1;
623
624
  for (; r < a; ) {
624
625
  const o = s.charCodeAt(r);
625
626
  if (o === 10 || o === 13)
626
627
  break;
627
- if (H(o))
628
+ if (J(o))
628
629
  ++r;
629
- else if (de(s, r))
630
+ else if (me(s, r))
630
631
  r += 2;
631
632
  else
632
633
  break;
633
634
  }
634
- return N(
635
+ return C(
635
636
  e,
636
637
  h.COMMENT,
637
638
  t,
@@ -639,31 +640,31 @@ function xs(e, t) {
639
640
  s.slice(t + 1, r)
640
641
  );
641
642
  }
642
- function gs(e, t, s) {
643
+ function Ns(e, t, s) {
643
644
  const a = e.source.body;
644
645
  let r = t, o = s, i = !1;
645
646
  if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
646
- if (o = a.charCodeAt(++r), Y(o))
647
- throw A(
647
+ if (o = a.charCodeAt(++r), K(o))
648
+ throw O(
648
649
  e.source,
649
650
  r,
650
- `Invalid number, unexpected digit after 0: ${F(
651
+ `Invalid number, unexpected digit after 0: ${B(
651
652
  e,
652
653
  r
653
654
  )}.`
654
655
  );
655
656
  } else
656
- r = ge(e, r, o), o = a.charCodeAt(r);
657
- if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ge(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 = ge(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
658
- throw A(
657
+ r = ve(e, r, o), o = a.charCodeAt(r);
658
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = ve(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 = ve(e, r, o), o = a.charCodeAt(r)), o === 46 || kt(o))
659
+ throw O(
659
660
  e.source,
660
661
  r,
661
- `Invalid number, expected digit but got: ${F(
662
+ `Invalid number, expected digit but got: ${B(
662
663
  e,
663
664
  r
664
665
  )}.`
665
666
  );
666
- return N(
667
+ return C(
667
668
  e,
668
669
  i ? h.FLOAT : h.INT,
669
670
  t,
@@ -671,70 +672,70 @@ function gs(e, t, s) {
671
672
  a.slice(t, r)
672
673
  );
673
674
  }
674
- function ge(e, t, s) {
675
- if (!Y(s))
676
- throw A(
675
+ function ve(e, t, s) {
676
+ if (!K(s))
677
+ throw O(
677
678
  e.source,
678
679
  t,
679
- `Invalid number, expected digit but got: ${F(
680
+ `Invalid number, expected digit but got: ${B(
680
681
  e,
681
682
  t
682
683
  )}.`
683
684
  );
684
685
  const a = e.source.body;
685
686
  let r = t + 1;
686
- for (; Y(a.charCodeAt(r)); )
687
+ for (; K(a.charCodeAt(r)); )
687
688
  ++r;
688
689
  return r;
689
690
  }
690
- function ys(e, t) {
691
+ function ws(e, t) {
691
692
  const s = e.source.body, a = s.length;
692
693
  let r = t + 1, o = r, i = "";
693
694
  for (; r < a; ) {
694
695
  const c = s.charCodeAt(r);
695
696
  if (c === 34)
696
- return i += s.slice(o, r), N(e, h.STRING, t, r + 1, i);
697
+ return i += s.slice(o, r), C(e, h.STRING, t, r + 1, i);
697
698
  if (c === 92) {
698
699
  i += s.slice(o, r);
699
- const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? vs(e, r) : bs(e, r) : js(e, r);
700
+ const l = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Cs(e, r) : Ss(e, r) : Ts(e, r);
700
701
  i += l.value, r += l.size, o = r;
701
702
  continue;
702
703
  }
703
704
  if (c === 10 || c === 13)
704
705
  break;
705
- if (H(c))
706
+ if (J(c))
706
707
  ++r;
707
- else if (de(s, r))
708
+ else if (me(s, r))
708
709
  r += 2;
709
710
  else
710
- throw A(
711
+ throw O(
711
712
  e.source,
712
713
  r,
713
- `Invalid character within String: ${F(
714
+ `Invalid character within String: ${B(
714
715
  e,
715
716
  r
716
717
  )}.`
717
718
  );
718
719
  }
719
- throw A(e.source, r, "Unterminated string.");
720
+ throw O(e.source, r, "Unterminated string.");
720
721
  }
721
- function vs(e, t) {
722
+ function Cs(e, t) {
722
723
  const s = e.source.body;
723
724
  let a = 0, r = 3;
724
725
  for (; r < 12; ) {
725
726
  const o = s.charCodeAt(t + r++);
726
727
  if (o === 125) {
727
- if (r < 5 || !H(a))
728
+ if (r < 5 || !J(a))
728
729
  break;
729
730
  return {
730
731
  value: String.fromCodePoint(a),
731
732
  size: r
732
733
  };
733
734
  }
734
- if (a = a << 4 | Q(o), a < 0)
735
+ if (a = a << 4 | W(o), a < 0)
735
736
  break;
736
737
  }
737
- throw A(
738
+ throw O(
738
739
  e.source,
739
740
  t,
740
741
  `Invalid Unicode escape sequence: "${s.slice(
@@ -743,34 +744,34 @@ function vs(e, t) {
743
744
  )}".`
744
745
  );
745
746
  }
746
- function bs(e, t) {
747
+ function Ss(e, t) {
747
748
  const s = e.source.body, a = dt(s, t + 2);
748
- if (H(a))
749
+ if (J(a))
749
750
  return {
750
751
  value: String.fromCodePoint(a),
751
752
  size: 6
752
753
  };
753
- if (Rt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
754
+ if (Dt(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
754
755
  const r = dt(s, t + 8);
755
- if (It(r))
756
+ if (qt(r))
756
757
  return {
757
758
  value: String.fromCodePoint(a, r),
758
759
  size: 12
759
760
  };
760
761
  }
761
- throw A(
762
+ throw O(
762
763
  e.source,
763
764
  t,
764
765
  `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
765
766
  );
766
767
  }
767
768
  function dt(e, t) {
768
- return Q(e.charCodeAt(t)) << 12 | Q(e.charCodeAt(t + 1)) << 8 | Q(e.charCodeAt(t + 2)) << 4 | Q(e.charCodeAt(t + 3));
769
+ return W(e.charCodeAt(t)) << 12 | W(e.charCodeAt(t + 1)) << 8 | W(e.charCodeAt(t + 2)) << 4 | W(e.charCodeAt(t + 3));
769
770
  }
770
- function Q(e) {
771
+ function W(e) {
771
772
  return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
772
773
  }
773
- function js(e, t) {
774
+ function Ts(e, t) {
774
775
  const s = e.source.body;
775
776
  switch (s.charCodeAt(t + 1)) {
776
777
  case 34:
@@ -815,7 +816,7 @@ function js(e, t) {
815
816
  size: 2
816
817
  };
817
818
  }
818
- throw A(
819
+ throw O(
819
820
  e.source,
820
821
  t,
821
822
  `Invalid character escape sequence: "${s.slice(
@@ -824,7 +825,7 @@ function js(e, t) {
824
825
  )}".`
825
826
  );
826
827
  }
827
- function Ns(e, t) {
828
+ function As(e, t) {
828
829
  const s = e.source.body, a = s.length;
829
830
  let r = e.lineStart, o = t + 3, i = o, c = "";
830
831
  const l = [];
@@ -832,13 +833,13 @@ function Ns(e, t) {
832
833
  const u = s.charCodeAt(o);
833
834
  if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
834
835
  c += s.slice(i, o), l.push(c);
835
- const p = N(
836
+ const p = C(
836
837
  e,
837
838
  h.BLOCK_STRING,
838
839
  t,
839
840
  o + 3,
840
841
  // Return a string of the lines joined with U+000A.
841
- ds(l).join(`
842
+ fs(l).join(`
842
843
  `)
843
844
  );
844
845
  return e.line += l.length - 1, e.lineStart = r, p;
@@ -851,33 +852,33 @@ function Ns(e, t) {
851
852
  c += s.slice(i, o), l.push(c), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, c = "", i = o, r = o;
852
853
  continue;
853
854
  }
854
- if (H(u))
855
+ if (J(u))
855
856
  ++o;
856
- else if (de(s, o))
857
+ else if (me(s, o))
857
858
  o += 2;
858
859
  else
859
- throw A(
860
+ throw O(
860
861
  e.source,
861
862
  o,
862
- `Invalid character within String: ${F(
863
+ `Invalid character within String: ${B(
863
864
  e,
864
865
  o
865
866
  )}.`
866
867
  );
867
868
  }
868
- throw A(e.source, o, "Unterminated string.");
869
+ throw O(e.source, o, "Unterminated string.");
869
870
  }
870
- function Cs(e, t) {
871
+ function Os(e, t) {
871
872
  const s = e.source.body, a = s.length;
872
873
  let r = t + 1;
873
874
  for (; r < a; ) {
874
875
  const o = s.charCodeAt(r);
875
- if (cs(o))
876
+ if (hs(o))
876
877
  ++r;
877
878
  else
878
879
  break;
879
880
  }
880
- return N(
881
+ return C(
881
882
  e,
882
883
  h.NAME,
883
884
  t,
@@ -885,56 +886,56 @@ function Cs(e, t) {
885
886
  s.slice(t, r)
886
887
  );
887
888
  }
888
- const Ss = 10, kt = 2;
889
- function Dt(e) {
890
- return ue(e, []);
889
+ const Ps = 10, Vt = 2;
890
+ function Ft(e) {
891
+ return pe(e, []);
891
892
  }
892
- function ue(e, t) {
893
+ function pe(e, t) {
893
894
  switch (typeof e) {
894
895
  case "string":
895
896
  return JSON.stringify(e);
896
897
  case "function":
897
898
  return e.name ? `[function ${e.name}]` : "[function]";
898
899
  case "object":
899
- return ws(e, t);
900
+ return Es(e, t);
900
901
  default:
901
902
  return String(e);
902
903
  }
903
904
  }
904
- function ws(e, t) {
905
+ function Es(e, t) {
905
906
  if (e === null)
906
907
  return "null";
907
908
  if (t.includes(e))
908
909
  return "[Circular]";
909
910
  const s = [...t, e];
910
- if (Ts(e)) {
911
+ if ($s(e)) {
911
912
  const a = e.toJSON();
912
913
  if (a !== e)
913
- return typeof a == "string" ? a : ue(a, s);
914
+ return typeof a == "string" ? a : pe(a, s);
914
915
  } else if (Array.isArray(e))
915
- return Os(e, s);
916
- return As(e, s);
916
+ return Ls(e, s);
917
+ return Rs(e, s);
917
918
  }
918
- function Ts(e) {
919
+ function $s(e) {
919
920
  return typeof e.toJSON == "function";
920
921
  }
921
- function As(e, t) {
922
+ function Rs(e, t) {
922
923
  const s = Object.entries(e);
923
- return s.length === 0 ? "{}" : t.length > kt ? "[" + Es(e) + "]" : "{ " + s.map(
924
- ([r, o]) => r + ": " + ue(o, t)
924
+ return s.length === 0 ? "{}" : t.length > Vt ? "[" + Is(e) + "]" : "{ " + s.map(
925
+ ([r, o]) => r + ": " + pe(o, t)
925
926
  ).join(", ") + " }";
926
927
  }
927
- function Os(e, t) {
928
+ function Ls(e, t) {
928
929
  if (e.length === 0)
929
930
  return "[]";
930
- if (t.length > kt)
931
+ if (t.length > Vt)
931
932
  return "[Array]";
932
- const s = Math.min(Ss, e.length), a = e.length - s, r = [];
933
+ const s = Math.min(Ps, e.length), a = e.length - s, r = [];
933
934
  for (let o = 0; o < s; ++o)
934
- r.push(ue(e[o], t));
935
+ r.push(pe(e[o], t));
935
936
  return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
936
937
  }
937
- function Es(e) {
938
+ function Is(e) {
938
939
  const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
939
940
  if (t === "Object" && typeof e.constructor == "function") {
940
941
  const s = e.constructor.name;
@@ -943,11 +944,11 @@ function Es(e) {
943
944
  }
944
945
  return t;
945
946
  }
946
- const Ps = globalThis.process && // eslint-disable-next-line no-undef
947
- process.env.NODE_ENV === "production", $s = (
947
+ const ks = globalThis.process && // eslint-disable-next-line no-undef
948
+ process.env.NODE_ENV === "production", Ds = (
948
949
  /* c8 ignore next 6 */
949
950
  // FIXME: https://github.com/graphql/graphql-js/issues/2317
950
- Ps ? function(t, s) {
951
+ ks ? function(t, s) {
951
952
  return t instanceof s;
952
953
  } : function(t, s) {
953
954
  if (t instanceof s)
@@ -959,7 +960,7 @@ process.env.NODE_ENV === "production", $s = (
959
960
  Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
960
961
  );
961
962
  if (r === o) {
962
- const i = Dt(t);
963
+ const i = Ft(t);
963
964
  throw new Error(`Cannot use ${r} "${i}" from another module or realm.
964
965
 
965
966
  Ensure that there is only one instance of "graphql" in the node_modules
@@ -977,15 +978,15 @@ spurious results.`);
977
978
  return !1;
978
979
  }
979
980
  );
980
- class qt {
981
+ class Bt {
981
982
  constructor(t, s = "GraphQL request", a = {
982
983
  line: 1,
983
984
  column: 1
984
985
  }) {
985
- typeof t == "string" || xe(!1, `Body must be a string. Received: ${Dt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || xe(
986
+ typeof t == "string" || ye(!1, `Body must be a string. Received: ${Ft(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || ye(
986
987
  !1,
987
988
  "line in locationOffset is 1-indexed and must be positive."
988
- ), this.locationOffset.column > 0 || xe(
989
+ ), this.locationOffset.column > 0 || ye(
989
990
  !1,
990
991
  "column in locationOffset is 1-indexed and must be positive."
991
992
  );
@@ -994,37 +995,37 @@ class qt {
994
995
  return "Source";
995
996
  }
996
997
  }
997
- function Ls(e) {
998
- return $s(e, qt);
998
+ function qs(e) {
999
+ return Ds(e, Bt);
999
1000
  }
1000
- function Rs(e) {
1001
- const t = Ls(e) ? e : new qt(e), s = t.body, a = new ps(t);
1001
+ function Vs(e) {
1002
+ const t = qs(e) ? e : new Bt(e), s = t.body, a = new ys(t);
1002
1003
  let r = "", o = !1;
1003
1004
  for (; a.advance().kind !== h.EOF; ) {
1004
- const i = a.token, c = i.kind, l = !hs(i.kind);
1005
+ const i = a.token, c = i.kind, l = !vs(i.kind);
1005
1006
  o && (l || i.kind === h.SPREAD) && (r += " ");
1006
1007
  const u = s.slice(i.start, i.end);
1007
- c === h.BLOCK_STRING ? r += ms(i.value, {
1008
+ c === h.BLOCK_STRING ? r += gs(i.value, {
1008
1009
  minimize: !0
1009
1010
  }) : r += u, o = l;
1010
1011
  }
1011
1012
  return r;
1012
1013
  }
1013
- const Vt = jt(
1014
+ const zt = Ct(
1014
1015
  void 0
1015
- ), ma = ({
1016
+ ), va = ({
1016
1017
  children: e,
1017
1018
  client: t
1018
- }) => /* @__PURE__ */ n.jsx(Vt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1019
+ }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), _t = (e, t, ...[s]) => ({
1019
1020
  queryFn: () => e.fetch(t, s),
1020
- queryKey: [Rs(t.toString()), s]
1021
- }), Is = (e, ...[t]) => {
1022
- const s = An(Vt);
1021
+ queryKey: [Vs(t.toString()), s]
1022
+ }), Fs = (e, ...[t]) => {
1023
+ const s = Rn(zt);
1023
1024
  if (s === void 0)
1024
1025
  throw new Error("useGraphQL must be used within a GraphQLProvider");
1025
- return Ft(s, e, ...t === void 0 ? [] : [t]);
1026
+ return _t(s, e, ...t === void 0 ? [] : [t]);
1026
1027
  };
1027
- class _ extends String {
1028
+ class z extends String {
1028
1029
  __apiType;
1029
1030
  value;
1030
1031
  __meta__;
@@ -1035,7 +1036,7 @@ class _ extends String {
1035
1036
  return this.value;
1036
1037
  }
1037
1038
  }
1038
- const ks = new _(
1039
+ const Bs = new z(
1039
1040
  `
1040
1041
  fragment OperationsFragment on OperationItem {
1041
1042
  slug
@@ -1103,7 +1104,7 @@ const ks = new _(
1103
1104
  }
1104
1105
  `,
1105
1106
  { fragmentName: "OperationsFragment" }
1106
- ), Ds = new _(`
1107
+ ), zs = new z(`
1107
1108
  query ServersQuery($input: JSON!, $type: SchemaType!) {
1108
1109
  schema(input: $input, type: $type) {
1109
1110
  url
@@ -1112,13 +1113,13 @@ const ks = new _(
1112
1113
  }
1113
1114
  }
1114
1115
  }
1115
- `), qs = new _(`
1116
+ `), _s = new z(`
1116
1117
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1117
1118
  schema(input: $input, type: $type) {
1118
1119
  openapi
1119
1120
  }
1120
1121
  }
1121
- `), Vs = new _(`
1122
+ `), Ms = new z(`
1122
1123
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1123
1124
  schema(input: $input, type: $type) {
1124
1125
  servers {
@@ -1210,7 +1211,7 @@ const ks = new _(
1210
1211
  schema
1211
1212
  }
1212
1213
  }
1213
- }`), Fs = new _(`
1214
+ }`), Us = new z(`
1214
1215
  query GetSchemas($input: JSON!, $type: SchemaType!) {
1215
1216
  schema(input: $input, type: $type) {
1216
1217
  title
@@ -1225,7 +1226,7 @@ const ks = new _(
1225
1226
  }
1226
1227
  }
1227
1228
  }
1228
- `), _s = new _(`
1229
+ `), Gs = new z(`
1229
1230
  query getServerQuery($input: JSON!, $type: SchemaType!) {
1230
1231
  schema(input: $input, type: $type) {
1231
1232
  url
@@ -1234,7 +1235,7 @@ const ks = new _(
1234
1235
  }
1235
1236
  }
1236
1237
  }
1237
- `), Bs = new _(`
1238
+ `), Hs = new z(`
1238
1239
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
1239
1240
  schema(input: $input, type: $type) {
1240
1241
  tags {
@@ -1256,19 +1257,19 @@ const ks = new _(
1256
1257
  }
1257
1258
  }
1258
1259
  }
1259
- `), zs = {
1260
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Ds,
1261
- "\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": ks,
1262
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": qs,
1263
- "\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": Vs,
1264
- "\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": Fs,
1265
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": _s,
1266
- "\n query GetSidebarOperations($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": Bs
1260
+ `), Qs = {
1261
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": zs,
1262
+ "\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": Bs,
1263
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": _s,
1264
+ "\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": Ms,
1265
+ "\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": Us,
1266
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Gs,
1267
+ "\n query GetSidebarOperations($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": Hs
1267
1268
  };
1268
- function Ms(e) {
1269
- return zs[e] ?? {};
1269
+ function Js(e) {
1270
+ return Qs[e] ?? {};
1270
1271
  }
1271
- const Gs = St(
1272
+ const Ws = At(
1272
1273
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
1273
1274
  {
1274
1275
  variants: {
@@ -1281,35 +1282,35 @@ const Gs = St(
1281
1282
  variant: "default"
1282
1283
  }
1283
1284
  }
1284
- ), Ee = S.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1285
+ ), Ae = b.forwardRef(({ className: e, variant: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1285
1286
  "div",
1286
1287
  {
1287
1288
  ref: a,
1288
1289
  role: "alert",
1289
- className: v(Gs({ variant: t }), e),
1290
+ className: g(Ws({ variant: t }), e),
1290
1291
  ...s
1291
1292
  }
1292
1293
  ));
1293
- Ee.displayName = "Alert";
1294
- const Pe = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1294
+ Ae.displayName = "Alert";
1295
+ const Oe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1295
1296
  "h5",
1296
1297
  {
1297
1298
  ref: s,
1298
- className: v("mb-1 font-medium leading-none tracking-tight", e),
1299
+ className: g("mb-1 font-medium leading-none tracking-tight", e),
1299
1300
  ...t
1300
1301
  }
1301
1302
  ));
1302
- Pe.displayName = "AlertTitle";
1303
- const $e = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1303
+ Oe.displayName = "AlertTitle";
1304
+ const Pe = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1304
1305
  "div",
1305
1306
  {
1306
1307
  ref: s,
1307
- className: v("text-sm [&_p]:leading-relaxed", e),
1308
+ className: g("text-sm [&_p]:leading-relaxed", e),
1308
1309
  ...t
1309
1310
  }
1310
1311
  ));
1311
- $e.displayName = "AlertDescription";
1312
- const Us = ({
1312
+ Pe.displayName = "AlertDescription";
1313
+ const Xs = ({
1313
1314
  path: e,
1314
1315
  renderParam: t
1315
1316
  }) => {
@@ -1318,29 +1319,133 @@ const Us = ({
1318
1319
  const i = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
1319
1320
  let l = 0;
1320
1321
  return i.forEach((u) => {
1321
- const [p, y] = u;
1322
- if (!y) return;
1322
+ const [p, v] = u;
1323
+ if (!v) return;
1323
1324
  const f = u.index;
1324
1325
  f > l && c.push(
1325
- /* @__PURE__ */ n.jsx(D, { children: a.slice(l, f) }, `text-${l}-${f}`)
1326
+ /* @__PURE__ */ n.jsx(q, { children: a.slice(l, f) }, `text-${l}-${f}`)
1326
1327
  ), c.push(
1327
- /* @__PURE__ */ n.jsx(D, { children: t({ name: y, originalValue: p, index: s++ }) }, `param-${y}`)
1328
+ /* @__PURE__ */ n.jsx(q, { children: t({ name: v, originalValue: p, index: s++ }) }, `param-${v}`)
1328
1329
  ), l = f + p.length;
1329
1330
  }), l < a.length && c.push(
1330
- /* @__PURE__ */ n.jsx(D, { children: a.slice(l) }, `text-${l}-${a.length}`)
1331
+ /* @__PURE__ */ n.jsx(q, { children: a.slice(l) }, `text-${l}-${a.length}`)
1331
1332
  ), // eslint-disable-next-line react/no-array-index-key
1332
- /* @__PURE__ */ n.jsxs(D, { children: [
1333
+ /* @__PURE__ */ n.jsxs(q, { children: [
1333
1334
  c,
1334
1335
  r < o.length - 1 && "/",
1335
1336
  /* @__PURE__ */ n.jsx("wbr", {})
1336
1337
  ] }, `${a}-${r}`);
1337
1338
  });
1338
- }, _t = S.forwardRef(
1339
+ }, Ee = w.Root, $e = w.Value, ie = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1340
+ w.Trigger,
1341
+ {
1342
+ ref: a,
1343
+ className: g(
1344
+ "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-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1345
+ e
1346
+ ),
1347
+ ...s,
1348
+ children: [
1349
+ /* @__PURE__ */ n.jsx("span", { className: "truncate", children: t }),
1350
+ /* @__PURE__ */ n.jsx(w.Icon, { asChild: !0, children: /* @__PURE__ */ n.jsx(vt, { className: "shrink-0 h-4 w-4 opacity-50" }) })
1351
+ ]
1352
+ }
1353
+ ));
1354
+ ie.displayName = w.Trigger.displayName;
1355
+ const Mt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1356
+ w.ScrollUpButton,
1357
+ {
1358
+ ref: s,
1359
+ className: g(
1360
+ "flex cursor-default items-center justify-center py-1",
1361
+ e
1362
+ ),
1363
+ ...t,
1364
+ children: /* @__PURE__ */ n.jsx(hn, { className: "h-4 w-4" })
1365
+ }
1366
+ ));
1367
+ Mt.displayName = w.ScrollUpButton.displayName;
1368
+ const Ut = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1369
+ w.ScrollDownButton,
1370
+ {
1371
+ ref: s,
1372
+ className: g(
1373
+ "flex cursor-default items-center justify-center py-1",
1374
+ e
1375
+ ),
1376
+ ...t,
1377
+ children: /* @__PURE__ */ n.jsx(vt, { className: "h-4 w-4" })
1378
+ }
1379
+ ));
1380
+ Ut.displayName = w.ScrollDownButton.displayName;
1381
+ const le = b.forwardRef(({ className: e, children: t, position: s = "popper", ...a }, r) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsxs(
1382
+ w.Content,
1383
+ {
1384
+ ref: r,
1385
+ className: g(
1386
+ "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",
1387
+ 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",
1388
+ e
1389
+ ),
1390
+ position: s,
1391
+ ...a,
1392
+ children: [
1393
+ /* @__PURE__ */ n.jsx(Mt, {}),
1394
+ /* @__PURE__ */ n.jsx(
1395
+ w.Viewport,
1396
+ {
1397
+ className: g(
1398
+ s === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
1399
+ "divide-y"
1400
+ ),
1401
+ children: t
1402
+ }
1403
+ ),
1404
+ /* @__PURE__ */ n.jsx(Ut, {})
1405
+ ]
1406
+ }
1407
+ ) }));
1408
+ le.displayName = w.Content.displayName;
1409
+ const Zs = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1410
+ w.Label,
1411
+ {
1412
+ ref: s,
1413
+ className: g("py-1.5 pl-8 pr-2 text-sm font-semibold", e),
1414
+ ...t
1415
+ }
1416
+ ));
1417
+ Zs.displayName = w.Label.displayName;
1418
+ const G = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1419
+ w.Item,
1420
+ {
1421
+ ref: a,
1422
+ className: g(
1423
+ "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",
1424
+ e
1425
+ ),
1426
+ ...s,
1427
+ children: [
1428
+ /* @__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(bt, { className: "h-4 w-4" }) }) }),
1429
+ /* @__PURE__ */ n.jsx(w.ItemText, { children: t })
1430
+ ]
1431
+ }
1432
+ ));
1433
+ G.displayName = w.Item.displayName;
1434
+ const Ys = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1435
+ w.Separator,
1436
+ {
1437
+ ref: s,
1438
+ className: g("-mx-1 my-1 h-px bg-muted", e),
1439
+ ...t
1440
+ }
1441
+ ));
1442
+ Ys.displayName = w.Separator.displayName;
1443
+ const Gt = b.forwardRef(
1339
1444
  ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1340
1445
  "textarea",
1341
1446
  {
1342
- className: v(
1343
- "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-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1447
+ className: g(
1448
+ "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",
1344
1449
  e
1345
1450
  ),
1346
1451
  ref: s,
@@ -1348,14 +1453,14 @@ const Us = ({
1348
1453
  }
1349
1454
  )
1350
1455
  );
1351
- _t.displayName = "Textarea";
1352
- const ye = (e) => Math.abs(
1456
+ Gt.displayName = "Textarea";
1457
+ const be = (e) => Math.abs(
1353
1458
  isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(e)) ? 0 : parseInt(e)
1354
- ), ve = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${ye(t) + ye(s)}`)) : ye(e), ut = (e, t = {}) => {
1355
- const s = (3 * ve(e) + 2 * ve(e) + ve(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1459
+ ), je = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${be(t) + be(s)}`)) : be(e), ut = (e, t = {}) => {
1460
+ const s = (3 * je(e) + 2 * je(e) + je(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
1356
1461
  return `${s}deg ${a}% ${r}%`;
1357
- }, be = "data-linked-param", Hs = (e) => {
1358
- const { resolvedTheme: t } = Fn();
1462
+ }, Ne = "data-linked-param", Ks = (e) => {
1463
+ const { resolvedTheme: t } = Un();
1359
1464
  return {
1360
1465
  text: ut(
1361
1466
  e,
@@ -1366,7 +1471,7 @@ const ye = (e) => Math.abs(
1366
1471
  t === "light" ? { saturation: 85, lightness: 40 } : {}
1367
1472
  )
1368
1473
  };
1369
- }, Bt = ({
1474
+ }, Ht = ({
1370
1475
  name: e,
1371
1476
  className: t,
1372
1477
  slug: s,
@@ -1374,30 +1479,30 @@ const ye = (e) => Math.abs(
1374
1479
  children: r,
1375
1480
  onClick: o
1376
1481
  }) => {
1377
- const i = U(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Hs(l), y = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1378
- return re(() => {
1482
+ const i = Q(null), c = s?.replace(/[{}]/g, ""), l = e.replace(/[{}]/g, ""), { text: u, background: p } = Ks(l), v = `hsl(${u} / 100%)`, f = `hsl(${p} / 10%)`, x = `hsl(${p} / 50%)`;
1483
+ return ae(() => {
1379
1484
  if (!c || !i.current) return;
1380
1485
  const m = () => {
1381
- document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1382
- j instanceof HTMLElement && (j.dataset.active = "true");
1486
+ document.querySelectorAll(`[${Ne}="${c}"]`).forEach((N) => {
1487
+ N instanceof HTMLElement && (N.dataset.active = "true");
1383
1488
  });
1384
- }, g = () => {
1385
- document.querySelectorAll(`[${be}="${c}"]`).forEach((j) => {
1386
- j instanceof HTMLElement && (j.dataset.active = "false");
1489
+ }, y = () => {
1490
+ document.querySelectorAll(`[${Ne}="${c}"]`).forEach((N) => {
1491
+ N instanceof HTMLElement && (N.dataset.active = "false");
1387
1492
  });
1388
- }, C = i.current;
1389
- return C.addEventListener("mouseenter", m), C.addEventListener("mouseleave", g), () => {
1390
- C.removeEventListener("mouseenter", m), C.removeEventListener("mouseleave", g);
1493
+ }, S = i.current;
1494
+ return S.addEventListener("mouseenter", m), S.addEventListener("mouseleave", y), () => {
1495
+ S.removeEventListener("mouseenter", m), S.removeEventListener("mouseleave", y);
1391
1496
  };
1392
1497
  }, [c]), /* @__PURE__ */ n.jsx(
1393
1498
  "span",
1394
1499
  {
1395
- [be]: c,
1396
- className: v(
1500
+ [Ne]: c,
1501
+ className: g(
1397
1502
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
1398
1503
  "relative transition-all duration-100 rounded-lg",
1399
- "border border-[--border-color] p-0.5 text-[--param-color] bg-[--background-color]",
1400
- "data-[active=true]:border-[--param-color] data-[active=true]:shadow data-[active=true]:bottom-px",
1504
+ "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
1505
+ "data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",
1401
1506
  t
1402
1507
  ),
1403
1508
  title: a,
@@ -1405,28 +1510,28 @@ const ye = (e) => Math.abs(
1405
1510
  ref: i,
1406
1511
  onClick: o,
1407
1512
  style: {
1408
- "--param-color": y,
1513
+ "--param-color": v,
1409
1514
  "--border-color": x,
1410
1515
  "--background-color": f
1411
1516
  },
1412
1517
  children: r ?? e
1413
1518
  }
1414
1519
  );
1415
- }, Qs = vt()(
1416
- bt(
1520
+ }, er = Nt()(
1521
+ wt(
1417
1522
  (e) => ({
1418
1523
  selectedServer: void 0,
1419
1524
  setSelectedServer: (t) => e({ selectedServer: t })
1420
1525
  }),
1421
1526
  { name: "zudoku-selected-server" }
1422
1527
  )
1423
- ), Js = (e) => {
1424
- const { selectedServer: t, setSelectedServer: s } = Qs();
1425
- return { selectedServer: On(
1528
+ ), tr = (e) => {
1529
+ const { selectedServer: t, setSelectedServer: s } = er();
1530
+ return { selectedServer: Ln(
1426
1531
  () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1427
1532
  [t, e]
1428
1533
  ), setSelectedServer: s };
1429
- }, Ws = (e, t, s) => {
1534
+ }, nr = (e, t, s) => {
1430
1535
  const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1431
1536
  const i = o.replace(/[:{}]/g, "");
1432
1537
  return s.pathParams.find((l) => l.name === i)?.value ?? o;
@@ -1437,41 +1542,41 @@ const ye = (e) => Math.abs(
1437
1542
  return s.queryParams.filter((o) => o.active).forEach((o) => {
1438
1543
  r.searchParams.set(o.name, o.value);
1439
1544
  }), r;
1440
- }, zt = b.Root, Mt = b.Trigger, Xs = b.Group, Zs = S.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1441
- b.SubTrigger,
1545
+ }, Qt = j.Root, Jt = j.Trigger, sr = j.Group, rr = b.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1546
+ j.SubTrigger,
1442
1547
  {
1443
1548
  ref: r,
1444
- className: v(
1445
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1549
+ className: g(
1550
+ "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",
1446
1551
  t && "pl-8",
1447
1552
  e
1448
1553
  ),
1449
1554
  ...a,
1450
1555
  children: [
1451
1556
  s,
1452
- /* @__PURE__ */ n.jsx(W, { className: "ml-auto h-4 w-4" })
1557
+ /* @__PURE__ */ n.jsx(X, { className: "ml-auto h-4 w-4" })
1453
1558
  ]
1454
1559
  }
1455
1560
  ));
1456
- Zs.displayName = b.SubTrigger.displayName;
1457
- const Ys = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1458
- b.SubContent,
1561
+ rr.displayName = j.SubTrigger.displayName;
1562
+ const ar = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1563
+ j.SubContent,
1459
1564
  {
1460
1565
  ref: s,
1461
- className: v(
1566
+ className: g(
1462
1567
  "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",
1463
1568
  e
1464
1569
  ),
1465
1570
  ...t
1466
1571
  }
1467
1572
  ));
1468
- Ys.displayName = b.SubContent.displayName;
1469
- const _e = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(b.Portal, { children: /* @__PURE__ */ n.jsx(
1470
- b.Content,
1573
+ ar.displayName = j.SubContent.displayName;
1574
+ const ze = b.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(j.Portal, { children: /* @__PURE__ */ n.jsx(
1575
+ j.Content,
1471
1576
  {
1472
1577
  ref: a,
1473
1578
  sideOffset: t,
1474
- className: v(
1579
+ className: g(
1475
1580
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1476
1581
  "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",
1477
1582
  e
@@ -1479,58 +1584,58 @@ const _e = S.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__
1479
1584
  ...s
1480
1585
  }
1481
1586
  ) }));
1482
- _e.displayName = b.Content.displayName;
1483
- const Be = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1484
- b.Item,
1587
+ ze.displayName = j.Content.displayName;
1588
+ const _e = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1589
+ j.Item,
1485
1590
  {
1486
1591
  ref: a,
1487
- className: v(
1488
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1592
+ className: g(
1593
+ "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",
1489
1594
  t && "pl-8",
1490
1595
  e
1491
1596
  ),
1492
1597
  ...s
1493
1598
  }
1494
1599
  ));
1495
- Be.displayName = b.Item.displayName;
1496
- const Ks = S.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1497
- b.CheckboxItem,
1600
+ _e.displayName = j.Item.displayName;
1601
+ const or = b.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1602
+ j.CheckboxItem,
1498
1603
  {
1499
1604
  ref: r,
1500
- className: v(
1501
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1605
+ className: g(
1606
+ "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",
1502
1607
  e
1503
1608
  ),
1504
1609
  checked: s,
1505
1610
  ...a,
1506
1611
  children: [
1507
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ln, { className: "h-4 w-4" }) }) }),
1612
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(jt, { className: "h-4 w-4" }) }) }),
1508
1613
  t
1509
1614
  ]
1510
1615
  }
1511
1616
  ));
1512
- Ks.displayName = b.CheckboxItem.displayName;
1513
- const er = S.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1514
- b.RadioItem,
1617
+ or.displayName = j.CheckboxItem.displayName;
1618
+ const ir = b.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1619
+ j.RadioItem,
1515
1620
  {
1516
1621
  ref: a,
1517
- className: v(
1518
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1622
+ className: g(
1623
+ "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",
1519
1624
  e
1520
1625
  ),
1521
1626
  ...s,
1522
1627
  children: [
1523
- /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(b.ItemIndicator, { children: /* @__PURE__ */ n.jsx(cn, { className: "h-4 w-4 fill-current" }) }) }),
1628
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(j.ItemIndicator, { children: /* @__PURE__ */ n.jsx(fn, { className: "h-4 w-4 fill-current" }) }) }),
1524
1629
  t
1525
1630
  ]
1526
1631
  }
1527
1632
  ));
1528
- er.displayName = b.RadioItem.displayName;
1529
- const Gt = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1530
- b.Label,
1633
+ ir.displayName = j.RadioItem.displayName;
1634
+ const Wt = b.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1635
+ j.Label,
1531
1636
  {
1532
1637
  ref: a,
1533
- className: v(
1638
+ className: g(
1534
1639
  "px-2 py-1.5 text-sm font-semibold",
1535
1640
  t && "pl-8",
1536
1641
  e
@@ -1538,26 +1643,26 @@ const Gt = S.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */
1538
1643
  ...s
1539
1644
  }
1540
1645
  ));
1541
- Gt.displayName = b.Label.displayName;
1542
- const Ut = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1543
- b.Separator,
1646
+ Wt.displayName = j.Label.displayName;
1647
+ const Xt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1648
+ j.Separator,
1544
1649
  {
1545
1650
  ref: s,
1546
- className: v("-mx-1 my-1 h-px bg-muted", e),
1651
+ className: g("-mx-1 my-1 h-px bg-muted", e),
1547
1652
  ...t
1548
1653
  }
1549
1654
  ));
1550
- Ut.displayName = b.Separator.displayName;
1551
- const tr = ({
1655
+ Xt.displayName = j.Separator.displayName;
1656
+ const lr = ({
1552
1657
  examples: e,
1553
1658
  onSelect: t
1554
- }) => /* @__PURE__ */ n.jsxs(zt, { children: [
1555
- /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(V, { variant: "outline", children: "Use Example" }) }),
1556
- /* @__PURE__ */ n.jsx(_e, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1557
- /* @__PURE__ */ n.jsx(Gt, { children: s.mediaType }),
1558
- /* @__PURE__ */ n.jsx(Ut, {}),
1559
- /* @__PURE__ */ n.jsx(Xs, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1560
- Be,
1659
+ }) => /* @__PURE__ */ n.jsxs(Qt, { children: [
1660
+ /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(F, { variant: "outline", children: "Use Example" }) }),
1661
+ /* @__PURE__ */ n.jsx(ze, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1662
+ /* @__PURE__ */ n.jsx(Wt, { children: s.mediaType }),
1663
+ /* @__PURE__ */ n.jsx(Xt, {}),
1664
+ /* @__PURE__ */ n.jsx(sr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1665
+ _e,
1561
1666
  {
1562
1667
  onSelect: () => t(a, s.mediaType),
1563
1668
  children: /* @__PURE__ */ n.jsx(
@@ -1572,41 +1677,41 @@ const tr = ({
1572
1677
  a.name
1573
1678
  )) })
1574
1679
  ] }, s.mediaType)) })
1575
- ] }), me = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1576
- Te.Root,
1680
+ ] }), he = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1681
+ Ce.Root,
1577
1682
  {
1578
1683
  ref: s,
1579
- className: v(
1580
- "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1684
+ className: g(
1685
+ "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",
1581
1686
  "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1582
1687
  e
1583
1688
  ),
1584
1689
  ...t,
1585
1690
  children: /* @__PURE__ */ n.jsx(
1586
- Te.Indicator,
1691
+ Ce.Indicator,
1587
1692
  {
1588
- className: v("flex items-center justify-center text-current"),
1589
- children: /* @__PURE__ */ n.jsx(dn, { className: "h-4 w-4" })
1693
+ className: g("flex items-center justify-center text-current"),
1694
+ children: /* @__PURE__ */ n.jsx(bt, { className: "h-4 w-4" })
1590
1695
  }
1591
1696
  )
1592
1697
  }
1593
1698
  ));
1594
- me.displayName = Te.Root.displayName;
1595
- const nr = ae.Root, Ht = S.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(ae.Portal, { children: /* @__PURE__ */ n.jsx(
1596
- ae.Content,
1699
+ he.displayName = Ce.Root.displayName;
1700
+ const cr = oe.Root, Zt = b.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(oe.Portal, { children: /* @__PURE__ */ n.jsx(
1701
+ oe.Content,
1597
1702
  {
1598
1703
  ref: r,
1599
1704
  align: t,
1600
1705
  sideOffset: s,
1601
- className: v(
1602
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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",
1706
+ className: g(
1707
+ "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",
1603
1708
  e
1604
1709
  ),
1605
1710
  ...a
1606
1711
  }
1607
1712
  ) }));
1608
- Ht.displayName = ae.Content.displayName;
1609
- const sr = ({
1713
+ Zt.displayName = oe.Content.displayName;
1714
+ const dr = ({
1610
1715
  value: e,
1611
1716
  options: t,
1612
1717
  onChange: s,
@@ -1615,17 +1720,17 @@ const sr = ({
1615
1720
  onEnterPress: o,
1616
1721
  ref: i
1617
1722
  }) => {
1618
- const [c, l] = P(!1), [u, p] = P(!1), y = Bn((x) => x.filtered.count), f = U(null);
1619
- return /* @__PURE__ */ n.jsxs(nr, { open: c, children: [
1620
- /* @__PURE__ */ n.jsx(_n, { children: /* @__PURE__ */ n.jsx(
1621
- Mn,
1723
+ const [c, l] = L(!1), [u, p] = L(!1), v = Hn((x) => x.filtered.count), f = Q(null);
1724
+ return /* @__PURE__ */ n.jsxs(cr, { open: c, children: [
1725
+ /* @__PURE__ */ n.jsx(Gn, { children: /* @__PURE__ */ n.jsx(
1726
+ Jn,
1622
1727
  {
1623
1728
  ref: (x) => {
1624
1729
  f.current = x, typeof i == "function" ? i(x) : i && (i.current = x);
1625
1730
  },
1626
1731
  value: e,
1627
1732
  placeholder: r,
1628
- className: v("h-9 bg-transparent", a),
1733
+ className: g("h-9 bg-transparent", a),
1629
1734
  onFocus: () => l(!0),
1630
1735
  onBlur: () => {
1631
1736
  u || l(!1);
@@ -1637,13 +1742,13 @@ const sr = ({
1637
1742
  }
1638
1743
  ) }),
1639
1744
  /* @__PURE__ */ n.jsx(
1640
- Ht,
1745
+ Zt,
1641
1746
  {
1642
1747
  onMouseEnter: () => p(!0),
1643
1748
  onMouseLeave: () => p(!1),
1644
1749
  onOpenAutoFocus: (x) => x.preventDefault(),
1645
- className: v("p-0 w-[--radix-popover-trigger-width]", {
1646
- "border-0": y === 0
1750
+ className: g("p-0 w-(--radix-popover-trigger-width)", {
1751
+ "border-0": v === 0
1647
1752
  }),
1648
1753
  align: "start",
1649
1754
  side: "bottom",
@@ -1653,8 +1758,8 @@ const sr = ({
1653
1758
  onTouchMove: (x) => {
1654
1759
  x.stopPropagation();
1655
1760
  },
1656
- children: /* @__PURE__ */ n.jsx(Gn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1657
- Un,
1761
+ children: /* @__PURE__ */ n.jsx(Wn, { className: "max-h-[140px]", children: t.map((x) => /* @__PURE__ */ n.jsx(
1762
+ Xn,
1658
1763
  {
1659
1764
  value: x,
1660
1765
  onSelect: (m) => {
@@ -1668,23 +1773,23 @@ const sr = ({
1668
1773
  }
1669
1774
  )
1670
1775
  ] });
1671
- }, oe = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(zn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(sr, { ...t }) }), ze = (e, t) => {
1672
- const s = S.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1673
- const c = r ? Qn : e;
1674
- return S.createElement(c, {
1776
+ }, ce = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(Qn, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx(dr, { ...t }) }), Me = (e, t) => {
1777
+ const s = b.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1778
+ const c = r ? Yn : e;
1779
+ return b.createElement(c, {
1675
1780
  ...o,
1676
1781
  ref: i,
1677
- className: typeof t == "function" ? t({ className: a }) : v(t, a)
1782
+ className: typeof t == "function" ? t({ className: a }) : g(t, a)
1678
1783
  });
1679
1784
  });
1680
1785
  return s.displayName = `VariantComponent(${e})`, s;
1681
- }, Me = ze(
1786
+ }, Ue = Me(
1682
1787
  "div",
1683
1788
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
1684
- ), Ge = ze(
1789
+ ), Ge = Me(
1685
1790
  "div",
1686
1791
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
1687
- ), rr = Object.freeze([
1792
+ ), ur = Object.freeze([
1688
1793
  "Accept",
1689
1794
  "Accept-Encoding",
1690
1795
  "Accept-Language",
@@ -1711,66 +1816,66 @@ const sr = ({
1711
1816
  "Set-Cookie",
1712
1817
  "User-Agent",
1713
1818
  "X-Requested-With"
1714
- ]), ar = ({
1819
+ ]), mr = ({
1715
1820
  control: e,
1716
1821
  headers: t
1717
1822
  }) => {
1718
- const { fields: s, append: a, remove: r } = ke({
1823
+ const { fields: s, append: a, remove: r } = De({
1719
1824
  control: e,
1720
1825
  name: "headers"
1721
- }), { setValue: o, watch: i } = De(), c = U([]), l = U([]), u = i("headers"), p = En(() => {
1826
+ }), { setValue: o, watch: i } = qe(), c = Q([]), l = Q([]), u = i("headers"), p = In(() => {
1722
1827
  a({ name: "", value: "", active: !1 });
1723
1828
  }, [a]);
1724
- re(() => {
1829
+ ae(() => {
1725
1830
  u.length === 0 && p();
1726
1831
  }, [u, p]);
1727
- const y = (m) => {
1832
+ const v = (m) => {
1728
1833
  c.current[m]?.focus();
1729
1834
  }, f = (m) => {
1730
1835
  p(), requestAnimationFrame(() => l.current[m + 1]?.focus());
1731
- }, x = t.filter((m) => !u.some((g) => g.name === m.name)).map(({ name: m }) => m);
1836
+ }, x = t.filter((m) => !u.some((y) => y.name === m.name)).map(({ name: m }) => m);
1732
1837
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
1733
- /* @__PURE__ */ n.jsx(ce, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((m, g) => {
1734
- const C = t.find(
1735
- (j) => j.name === i(`headers.${g}.name`)
1838
+ /* @__PURE__ */ n.jsx(ue, { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((m, y) => {
1839
+ const S = t.find(
1840
+ (N) => N.name === i(`headers.${y}.name`)
1736
1841
  );
1737
1842
  return /* @__PURE__ */ n.jsxs(Ge, { children: [
1738
1843
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 ", children: [
1739
1844
  /* @__PURE__ */ n.jsx(
1740
- q,
1845
+ V,
1741
1846
  {
1742
1847
  control: e,
1743
- name: `headers.${g}.active`,
1744
- render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1745
- me,
1848
+ name: `headers.${y}.active`,
1849
+ render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1850
+ he,
1746
1851
  {
1747
- id: `headers.${g}.active`,
1748
- checked: j.value,
1749
- onCheckedChange: (R) => {
1750
- j.onChange(R);
1852
+ id: `headers.${y}.active`,
1853
+ checked: N.value,
1854
+ onCheckedChange: (I) => {
1855
+ N.onChange(I);
1751
1856
  }
1752
1857
  }
1753
1858
  )
1754
1859
  }
1755
1860
  ),
1756
1861
  /* @__PURE__ */ n.jsx(
1757
- q,
1862
+ V,
1758
1863
  {
1759
1864
  control: e,
1760
- name: `headers.${g}.name`,
1761
- render: ({ field: j }) => /* @__PURE__ */ n.jsx(
1762
- oe,
1865
+ name: `headers.${y}.name`,
1866
+ render: ({ field: N }) => /* @__PURE__ */ n.jsx(
1867
+ ce,
1763
1868
  {
1764
- ...j,
1869
+ ...N,
1765
1870
  placeholder: "Name",
1766
1871
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1767
- options: [...x, ...rr],
1768
- onEnterPress: () => y(g),
1769
- onChange: (R) => {
1770
- j.onChange(R), o(`headers.${g}.active`, !0);
1872
+ options: [...x, ...ur],
1873
+ onEnterPress: () => v(y),
1874
+ onChange: (I) => {
1875
+ N.onChange(I), o(`headers.${y}.active`, !0);
1771
1876
  },
1772
- ref: (R) => {
1773
- l.current[g] = R;
1877
+ ref: (I) => {
1878
+ l.current[y] = I;
1774
1879
  }
1775
1880
  }
1776
1881
  )
@@ -1779,32 +1884,32 @@ const sr = ({
1779
1884
  ] }),
1780
1885
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1781
1886
  /* @__PURE__ */ n.jsx(
1782
- q,
1887
+ V,
1783
1888
  {
1784
1889
  control: e,
1785
- name: `headers.${g}.value`,
1786
- render: ({ field: j }) => C?.enum && C.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1787
- oe,
1890
+ name: `headers.${y}.value`,
1891
+ render: ({ field: N }) => S?.enum && S.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1892
+ ce,
1788
1893
  {
1789
1894
  shouldFilter: !1,
1790
- value: j.value,
1791
- options: C.enum ?? [],
1792
- onChange: (I) => {
1793
- j.onChange(I), o(`headers.${g}.active`, !0);
1895
+ value: N.value,
1896
+ options: S.enum ?? [],
1897
+ onChange: (k) => {
1898
+ N.onChange(k), o(`headers.${y}.active`, !0);
1794
1899
  },
1795
1900
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1796
1901
  }
1797
1902
  ) : /* @__PURE__ */ n.jsx(
1798
- qe,
1903
+ Ve,
1799
1904
  {
1800
1905
  placeholder: "Value",
1801
1906
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
1802
- ...j,
1803
- ref: (I) => {
1804
- c.current[g] = I;
1907
+ ...N,
1908
+ ref: (k) => {
1909
+ c.current[y] = k;
1805
1910
  },
1806
- onKeyDown: (I) => {
1807
- I.key === "Enter" && I.currentTarget.value.trim() && f(g);
1911
+ onKeyDown: (k) => {
1912
+ k.key === "Enter" && k.currentTarget.value.trim() && f(y);
1808
1913
  },
1809
1914
  autoComplete: "off"
1810
1915
  }
@@ -1812,21 +1917,21 @@ const sr = ({
1812
1917
  }
1813
1918
  ),
1814
1919
  /* @__PURE__ */ n.jsx(
1815
- X,
1920
+ Z,
1816
1921
  {
1817
1922
  size: "icon",
1818
1923
  variant: "ghost",
1819
1924
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
1820
- onClick: () => r(g),
1925
+ onClick: () => r(y),
1821
1926
  type: "button",
1822
- children: /* @__PURE__ */ n.jsx(un, { size: 16 })
1927
+ children: /* @__PURE__ */ n.jsx(xn, { size: 16 })
1823
1928
  }
1824
1929
  )
1825
1930
  ] })
1826
1931
  ] }, m.id);
1827
1932
  }) }) }),
1828
1933
  /* @__PURE__ */ n.jsx("div", { className: "text-end", children: /* @__PURE__ */ n.jsx(
1829
- X,
1934
+ Z,
1830
1935
  {
1831
1936
  className: "",
1832
1937
  onClick: p,
@@ -1836,62 +1941,62 @@ const sr = ({
1836
1941
  }
1837
1942
  ) })
1838
1943
  ] });
1839
- }, or = St(
1944
+ }, pr = At(
1840
1945
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1841
- ), ie = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1842
- At.Root,
1946
+ ), de = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1947
+ Et.Root,
1843
1948
  {
1844
1949
  ref: s,
1845
- className: v(or(), e),
1950
+ className: g(pr(), e),
1846
1951
  ...t
1847
1952
  }
1848
1953
  ));
1849
- ie.displayName = At.Root.displayName;
1850
- const Ue = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1851
- Z.Root,
1954
+ de.displayName = Et.Root.displayName;
1955
+ const Yt = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1956
+ Y.Root,
1852
1957
  {
1853
- className: v("grid gap-2", e),
1958
+ className: g("grid gap-2", e),
1854
1959
  ...t,
1855
1960
  ref: s
1856
1961
  }
1857
1962
  ));
1858
- Ue.displayName = Z.Root.displayName;
1859
- const le = S.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1860
- Z.Item,
1963
+ Yt.displayName = Y.Root.displayName;
1964
+ const Re = b.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1965
+ Y.Item,
1861
1966
  {
1862
1967
  ref: s,
1863
- className: v(
1864
- "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1968
+ className: g(
1969
+ "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",
1865
1970
  e
1866
1971
  ),
1867
1972
  ...t,
1868
- children: /* @__PURE__ */ n.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(mn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1973
+ children: /* @__PURE__ */ n.jsx(Y.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(gn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1869
1974
  }
1870
1975
  ));
1871
- le.displayName = Z.Item.displayName;
1872
- const Qt = ({
1976
+ Re.displayName = Y.Item.displayName;
1977
+ const Kt = ({
1873
1978
  identities: e,
1874
1979
  setValue: t,
1875
1980
  value: s
1876
- }) => /* @__PURE__ */ n.jsx(ce, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1877
- Ue,
1981
+ }) => /* @__PURE__ */ n.jsx(ue, { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsxs(
1982
+ Yt,
1878
1983
  {
1879
1984
  onValueChange: (a) => t(a),
1880
1985
  value: s,
1881
- defaultValue: G,
1986
+ defaultValue: H,
1882
1987
  className: "gap-0",
1883
1988
  disabled: e?.length === 0,
1884
1989
  children: [
1885
- /* @__PURE__ */ n.jsxs(ie, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1886
- /* @__PURE__ */ n.jsx(le, { value: G, id: "none" }),
1990
+ /* @__PURE__ */ n.jsxs(de, { className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent", children: [
1991
+ /* @__PURE__ */ n.jsx(Re, { value: H, id: "none" }),
1887
1992
  /* @__PURE__ */ n.jsx("span", { children: "None" })
1888
1993
  ] }),
1889
1994
  e?.map((a) => /* @__PURE__ */ n.jsxs(
1890
- ie,
1995
+ de,
1891
1996
  {
1892
1997
  className: "h-12 border-b items-center flex gap-2 p-4 cursor-pointer hover:bg-accent",
1893
1998
  children: [
1894
- /* @__PURE__ */ n.jsx(le, { value: a.id, id: a.id }),
1999
+ /* @__PURE__ */ n.jsx(Re, { value: a.id, id: a.id }),
1895
2000
  /* @__PURE__ */ n.jsx("span", { children: a.label })
1896
2001
  ]
1897
2002
  },
@@ -1899,28 +2004,28 @@ const Qt = ({
1899
2004
  ))
1900
2005
  ]
1901
2006
  }
1902
- ) }), ir = ({
2007
+ ) }), hr = ({
1903
2008
  onSubmit: e,
1904
2009
  identities: t,
1905
2010
  open: s,
1906
2011
  onOpenChange: a
1907
2012
  }) => {
1908
- const [r, o] = P(void 0), [i, c] = P(!1);
1909
- return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Re, { children: [
1910
- /* @__PURE__ */ n.jsx(Ie, { children: "Select an auth identity" }),
1911
- /* @__PURE__ */ n.jsx(Nt, { children: "Please select an identity for this request." }),
2013
+ const [r, o] = L(void 0), [i, c] = L(!1);
2014
+ return /* @__PURE__ */ n.jsx(Le, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2015
+ /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2016
+ /* @__PURE__ */ n.jsx(St, { children: "Please select an identity for this request." }),
1912
2017
  /* @__PURE__ */ n.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
1913
- Qt,
2018
+ Kt,
1914
2019
  {
1915
2020
  identities: t,
1916
2021
  setValue: o,
1917
2022
  value: r
1918
2023
  }
1919
2024
  ) }),
1920
- /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
2025
+ /* @__PURE__ */ n.jsxs(Tt, { className: "flex flex-col gap-2", children: [
1921
2026
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1922
2027
  /* @__PURE__ */ n.jsx(
1923
- me,
2028
+ he,
1924
2029
  {
1925
2030
  id: "remember",
1926
2031
  checked: i,
@@ -1929,10 +2034,10 @@ const Qt = ({
1929
2034
  )
1930
2035
  }
1931
2036
  ),
1932
- /* @__PURE__ */ n.jsx(ie, { htmlFor: "remember", children: "Remember my choice" })
2037
+ /* @__PURE__ */ n.jsx(de, { htmlFor: "remember", children: "Remember my choice" })
1933
2038
  ] }),
1934
2039
  /* @__PURE__ */ n.jsx(
1935
- V,
2040
+ F,
1936
2041
  {
1937
2042
  onClick: () => e({ identity: r, rememberedIdentity: i }),
1938
2043
  children: "Send"
@@ -1940,24 +2045,24 @@ const Qt = ({
1940
2045
  )
1941
2046
  ] })
1942
2047
  ] }) });
1943
- }, lr = ({
2048
+ }, fr = ({
1944
2049
  control: e,
1945
2050
  url: t
1946
2051
  }) => {
1947
- const { fields: s } = ke({
2052
+ const { fields: s } = De({
1948
2053
  control: e,
1949
2054
  name: "pathParams"
1950
2055
  }), a = [...s].sort(
1951
2056
  (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
1952
2057
  );
1953
- return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Me, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
2058
+ return /* @__PURE__ */ n.jsx(ue, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx(Ue, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(Ge, { children: [
1954
2059
  /* @__PURE__ */ n.jsx(
1955
- q,
2060
+ V,
1956
2061
  {
1957
2062
  control: e,
1958
2063
  name: `pathParams.${o}.name`,
1959
2064
  render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
1960
- Bt,
2065
+ Ht,
1961
2066
  {
1962
2067
  slug: r.name,
1963
2068
  name: r.name,
@@ -1967,12 +2072,12 @@ const Qt = ({
1967
2072
  }
1968
2073
  ),
1969
2074
  /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
1970
- q,
2075
+ V,
1971
2076
  {
1972
2077
  control: e,
1973
2078
  name: `pathParams.${o}.value`,
1974
2079
  render: ({ field: i }) => /* @__PURE__ */ n.jsx(
1975
- qe,
2080
+ Ve,
1976
2081
  {
1977
2082
  ...i,
1978
2083
  required: !0,
@@ -1983,30 +2088,30 @@ const Qt = ({
1983
2088
  }
1984
2089
  ) })
1985
2090
  ] }, r.id)) }) });
1986
- }, cr = ze(
2091
+ }, xr = Me(
1987
2092
  "input",
1988
2093
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1989
- ), dr = ({
2094
+ ), gr = ({
1990
2095
  control: e,
1991
2096
  queryParams: t
1992
2097
  }) => {
1993
- const { fields: s } = ke({
2098
+ const { fields: s } = De({
1994
2099
  control: e,
1995
2100
  name: "queryParams"
1996
- }), a = De(), r = t.map((o) => !!o.isRequired);
1997
- return /* @__PURE__ */ n.jsx(ce, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Me, { children: s.map((o, i) => {
2101
+ }), a = qe(), r = t.map((o) => !!o.isRequired);
2102
+ return /* @__PURE__ */ n.jsx(ue, { className: "rounded-lg", children: /* @__PURE__ */ n.jsx("div", { className: "w-full ", children: /* @__PURE__ */ n.jsx(Ue, { children: s.map((o, i) => {
1998
2103
  const c = t.find(
1999
2104
  (l) => l.name === a.watch(`queryParams.${i}.name`)
2000
2105
  );
2001
2106
  return /* @__PURE__ */ n.jsxs(Ge, { children: [
2002
2107
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2003
2108
  /* @__PURE__ */ n.jsx(
2004
- q,
2109
+ V,
2005
2110
  {
2006
2111
  control: e,
2007
2112
  name: `queryParams.${i}.active`,
2008
2113
  render: ({ field: l }) => /* @__PURE__ */ n.jsx(
2009
- me,
2114
+ he,
2010
2115
  {
2011
2116
  id: `queryParams.${i}.active`,
2012
2117
  className: "me-2",
@@ -2017,10 +2122,10 @@ const Qt = ({
2017
2122
  }
2018
2123
  ),
2019
2124
  /* @__PURE__ */ n.jsx(
2020
- q,
2125
+ V,
2021
2126
  {
2022
2127
  control: e,
2023
- render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(cr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2128
+ render: ({ field: l }) => r[i] ? /* @__PURE__ */ n.jsx(xr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2024
2129
  "label",
2025
2130
  {
2026
2131
  className: "flex items-center cursor-pointer gap-1",
@@ -2032,7 +2137,7 @@ const Qt = ({
2032
2137
  ]
2033
2138
  }
2034
2139
  ) }) : /* @__PURE__ */ n.jsx(
2035
- oe,
2140
+ ce,
2036
2141
  {
2037
2142
  value: l.value,
2038
2143
  options: t.map((u) => u.name),
@@ -2047,11 +2152,11 @@ const Qt = ({
2047
2152
  )
2048
2153
  ] }, o.id),
2049
2154
  /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ n.jsx(
2050
- q,
2155
+ V,
2051
2156
  {
2052
2157
  control: e,
2053
2158
  render: ({ field: l }) => c?.enum && c.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2054
- oe,
2159
+ ce,
2055
2160
  {
2056
2161
  value: l.value,
2057
2162
  options: c.enum ?? [],
@@ -2061,7 +2166,7 @@ const Qt = ({
2061
2166
  className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2062
2167
  }
2063
2168
  ) : /* @__PURE__ */ n.jsx(
2064
- qe,
2169
+ Ve,
2065
2170
  {
2066
2171
  ...l,
2067
2172
  onChange: (p) => {
@@ -2076,8 +2181,8 @@ const Qt = ({
2076
2181
  ) })
2077
2182
  ] }, o.id);
2078
2183
  }) }) }) });
2079
- }, ur = vt()(
2080
- bt(
2184
+ }, yr = Nt()(
2185
+ wt(
2081
2186
  (e, t) => ({
2082
2187
  rememberedIdentity: null,
2083
2188
  setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
@@ -2087,22 +2192,22 @@ const Qt = ({
2087
2192
  }),
2088
2193
  {
2089
2194
  name: "identity-storage",
2090
- storage: jn(() => sessionStorage)
2195
+ storage: Tn(() => sessionStorage)
2091
2196
  }
2092
2197
  )
2093
- ), mr = ({
2198
+ ), vr = ({
2094
2199
  open: e,
2095
2200
  setOpen: t,
2096
2201
  onSignUp: s,
2097
2202
  onLogin: a
2098
- }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Re, { children: [
2099
- /* @__PURE__ */ n.jsx(Ie, { children: "Welcome to the Playground!" }),
2100
- /* @__PURE__ */ n.jsx(Nt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2101
- /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2102
- /* @__PURE__ */ n.jsx(V, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2203
+ }) => /* @__PURE__ */ n.jsx(Le, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2204
+ /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2205
+ /* @__PURE__ */ n.jsx(St, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2206
+ /* @__PURE__ */ n.jsxs(Tt, { className: "flex gap-2 sm:justify-between", children: [
2207
+ /* @__PURE__ */ n.jsx(F, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2103
2208
  /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2104
- s && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2105
- a && /* @__PURE__ */ n.jsx(V, { type: "button", variant: "default", onClick: a, children: "Login" })
2209
+ s && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2210
+ a && /* @__PURE__ */ n.jsx(F, { type: "button", variant: "default", onClick: a, children: "Login" })
2106
2211
  ] })
2107
2212
  ] })
2108
2213
  ] }) }), $ = {
@@ -2113,7 +2218,7 @@ const Qt = ({
2113
2218
  purple: "text-purple-600",
2114
2219
  indigo: "text-indigo-600",
2115
2220
  gray: "text-gray-600"
2116
- }, pr = {
2221
+ }, br = {
2117
2222
  get: $.green,
2118
2223
  post: $.blue,
2119
2224
  put: $.yellow,
@@ -2122,14 +2227,14 @@ const Qt = ({
2122
2227
  options: $.indigo,
2123
2228
  head: $.gray,
2124
2229
  trace: $.gray
2125
- }, hr = (e) => pr[e.toLocaleLowerCase()] ?? $.gray, fr = ({
2230
+ }, jr = (e) => br[e.toLocaleLowerCase()] ?? $.gray, Nr = ({
2126
2231
  method: e,
2127
2232
  url: t,
2128
2233
  headers: s,
2129
2234
  body: a
2130
2235
  }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
2131
2236
  /* @__PURE__ */ n.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
2132
- /* @__PURE__ */ n.jsx("span", { className: v(hr(e), "font-semibold"), children: e }),
2237
+ /* @__PURE__ */ n.jsx("span", { className: g(jr(e), "font-semibold"), children: e }),
2133
2238
  " ",
2134
2239
  /* @__PURE__ */ n.jsx("span", { className: "break-all", children: t }),
2135
2240
  " ",
@@ -2138,23 +2243,23 @@ const Qt = ({
2138
2243
  /* @__PURE__ */ n.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
2139
2244
  /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2140
2245
  /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2141
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2246
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2142
2247
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2143
2248
  ] }),
2144
- /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(D, { children: [
2249
+ /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2", children: s.map(([r, o]) => /* @__PURE__ */ n.jsxs(q, { children: [
2145
2250
  /* @__PURE__ */ n.jsx("div", { className: "text-primary", children: r }),
2146
2251
  /* @__PURE__ */ n.jsx("div", { className: "break-all", children: o })
2147
2252
  ] }, r)) }) })
2148
2253
  ] }),
2149
2254
  /* @__PURE__ */ n.jsxs(rt, { defaultOpen: !0, children: [
2150
2255
  /* @__PURE__ */ n.jsxs(at, { className: "flex items-center gap-2 hover:text-primary group", children: [
2151
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2256
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2152
2257
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Body" })
2153
2258
  ] }),
2154
2259
  /* @__PURE__ */ n.jsx(ot, { children: /* @__PURE__ */ n.jsx("div", { className: "ps-0 pt-2", children: /* @__PURE__ */ n.jsx(
2155
2260
  "div",
2156
2261
  {
2157
- className: v(
2262
+ className: g(
2158
2263
  "whitespace-pre-wrap break-all bg-muted p-2 rounded-md",
2159
2264
  !a && "text-muted-foreground"
2160
2265
  ),
@@ -2163,7 +2268,7 @@ const Qt = ({
2163
2268
  ) }) })
2164
2269
  ] })
2165
2270
  ] })
2166
- ] }), mt = Ve.Root, pt = Ve.CollapsibleTrigger, ht = Ve.CollapsibleContent;
2271
+ ] }), mt = Fe.Root, pt = Fe.CollapsibleTrigger, ht = Fe.CollapsibleContent;
2167
2272
  function He(e) {
2168
2273
  if (e === null) return "null";
2169
2274
  if (Array.isArray(e)) {
@@ -2171,9 +2276,9 @@ function He(e) {
2171
2276
  const t = e[0];
2172
2277
  return t === void 0 ? "any[]" : `${He(t)}[]`;
2173
2278
  }
2174
- return typeof e == "object" ? xr(e) : typeof e;
2279
+ return typeof e == "object" ? wr(e) : typeof e;
2175
2280
  }
2176
- function xr(e, t = "") {
2281
+ function wr(e, t = "") {
2177
2282
  const s = ["{"];
2178
2283
  for (const [a, r] of Object.entries(e)) {
2179
2284
  const o = He(r);
@@ -2182,10 +2287,10 @@ function xr(e, t = "") {
2182
2287
  return s.push("}"), s.join(`
2183
2288
  `);
2184
2289
  }
2185
- function gr(e) {
2290
+ function Cr(e) {
2186
2291
  return { lines: [`type GeneratedType = ${He(e)};`] };
2187
2292
  }
2188
- const yr = {
2293
+ const Sr = {
2189
2294
  200: "OK",
2190
2295
  201: "Created",
2191
2296
  202: "Accepted",
@@ -2201,7 +2306,7 @@ const yr = {
2201
2306
  return `${(e / Math.pow(1e3, t)).toFixed(
2202
2307
  t ? 2 : 0
2203
2308
  )} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2204
- }, vr = (e) => Object.entries({
2309
+ }, Tr = (e) => Object.entries({
2205
2310
  "application/json": "json",
2206
2311
  "text/json": "json",
2207
2312
  "text/html": "html",
@@ -2211,16 +2316,16 @@ const yr = {
2211
2316
  "application/xhtml+xml": "xhtml"
2212
2317
  }).find(
2213
2318
  ([s]) => e.includes(s)
2214
- )?.[1], br = (e) => {
2319
+ )?.[1], Ar = (e) => {
2215
2320
  const t = e.find(([s, a]) => s === "Content-Type")?.[1] || "";
2216
- return vr(t);
2217
- }, jr = (e) => {
2321
+ return Tr(t);
2322
+ }, Or = (e) => {
2218
2323
  try {
2219
2324
  return JSON.stringify(JSON.parse(e), null, 2);
2220
2325
  } catch {
2221
2326
  return null;
2222
2327
  }
2223
- }, Nr = (e) => {
2328
+ }, Pr = (e) => {
2224
2329
  const t = [
2225
2330
  "Content-Type",
2226
2331
  "Content-Length",
@@ -2234,7 +2339,7 @@ const yr = {
2234
2339
  const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2235
2340
  return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2236
2341
  });
2237
- }, xt = 64e3, Cr = ({
2342
+ }, xt = 64e3, Er = ({
2238
2343
  body: e = "",
2239
2344
  headers: t,
2240
2345
  status: s,
@@ -2242,53 +2347,53 @@ const yr = {
2242
2347
  size: r,
2243
2348
  url: o
2244
2349
  }) => {
2245
- const i = br(t), c = jr(e), l = c || e, [u, p] = P(
2350
+ const i = Ar(t), c = Or(e), l = c || e, [u, p] = L(
2246
2351
  c ? "formatted" : "raw"
2247
- ), y = Nn({
2352
+ ), v = An({
2248
2353
  queryKey: ["types", l],
2249
- queryFn: async () => gr(JSON.parse(l)),
2354
+ queryFn: async () => Cr(JSON.parse(l)),
2250
2355
  enabled: u === "types"
2251
- }), f = Nr([...t]), x = r > xt;
2356
+ }), f = Pr([...t]), x = r > xt;
2252
2357
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
2253
2358
  /* @__PURE__ */ n.jsxs(mt, { defaultOpen: !0, children: [
2254
2359
  /* @__PURE__ */ n.jsxs(pt, { className: "flex items-center gap-2 hover:text-primary group", children: [
2255
- /* @__PURE__ */ n.jsx(W, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2360
+ /* @__PURE__ */ n.jsx(X, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2256
2361
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Headers" })
2257
2362
  ] }),
2258
2363
  /* @__PURE__ */ n.jsx(ht, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 ps-1.5 pt-2 font-mono text-xs", children: [
2259
- f.slice(0, 5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2364
+ f.slice(0, 5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2260
2365
  /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2261
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2366
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2262
2367
  ] }, m)),
2263
2368
  f.length > 5 && /* @__PURE__ */ n.jsxs(mt, { className: "col-span-full grid-cols-subgrid grid", children: [
2264
2369
  /* @__PURE__ */ n.jsxs(pt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
2265
- /* @__PURE__ */ n.jsx(W, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2370
+ /* @__PURE__ */ n.jsx(X, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
2266
2371
  "Show ",
2267
2372
  f.length - 5,
2268
2373
  " more headers"
2269
2374
  ] }),
2270
- /* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, g]) => /* @__PURE__ */ n.jsxs(D, { children: [
2375
+ /* @__PURE__ */ n.jsx(ht, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: f.slice(5).map(([m, y]) => /* @__PURE__ */ n.jsxs(q, { children: [
2271
2376
  /* @__PURE__ */ n.jsx("div", { className: "text-primary whitespace-pre", children: m }),
2272
- /* @__PURE__ */ n.jsx("div", { className: "break-all", children: g })
2377
+ /* @__PURE__ */ n.jsx("div", { className: "break-all", children: y })
2273
2378
  ] }, m)) })
2274
2379
  ] })
2275
2380
  ] }) })
2276
2381
  ] }),
2277
- /* @__PURE__ */ n.jsxs(Ot, { className: "shadow-none", children: [
2278
- x && /* @__PURE__ */ n.jsxs(Hn, { type: "info", className: "my-0 p-2", children: [
2382
+ /* @__PURE__ */ n.jsxs($t, { className: "shadow-none", children: [
2383
+ x && /* @__PURE__ */ n.jsxs(Zn, { type: "info", className: "my-0 p-2", children: [
2279
2384
  "Code highlight is disabled for responses larger than",
2280
2385
  " ",
2281
2386
  ft(xt)
2282
2387
  ] }),
2283
2388
  /* @__PURE__ */ n.jsx(
2284
- Kn,
2389
+ rs,
2285
2390
  {
2286
2391
  language: u === "types" ? "typescript" : u === "raw" ? c ? "plain" : i : "json",
2287
2392
  showCopy: "always",
2288
2393
  disabled: x,
2289
2394
  noBackground: !0,
2290
2395
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
2291
- code: (u === "raw" ? e : u === "types" ? y.data?.lines.join(`
2396
+ code: (u === "raw" ? e : u === "types" ? v.data?.lines.join(`
2292
2397
  `) : l) ?? ""
2293
2398
  }
2294
2399
  )
@@ -2300,7 +2405,7 @@ const yr = {
2300
2405
  " ",
2301
2406
  s,
2302
2407
  " ",
2303
- yr[s] ?? ""
2408
+ Sr[s] ?? ""
2304
2409
  ] }),
2305
2410
  /* @__PURE__ */ n.jsxs("div", { children: [
2306
2411
  /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -2315,23 +2420,23 @@ const yr = {
2315
2420
  ] })
2316
2421
  ] }),
2317
2422
  c && /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsxs(
2318
- Ne,
2423
+ Ee,
2319
2424
  {
2320
2425
  value: u,
2321
2426
  onValueChange: (m) => p(m),
2322
2427
  children: [
2323
- /* @__PURE__ */ n.jsx(Ce, { className: "min-w-32", children: /* @__PURE__ */ n.jsx(Se, { placeholder: "View" }) }),
2324
- /* @__PURE__ */ n.jsxs(we, { children: [
2325
- /* @__PURE__ */ n.jsx(J, { value: "formatted", children: "Formatted" }),
2326
- /* @__PURE__ */ n.jsx(J, { value: "raw", children: "Raw" }),
2327
- /* @__PURE__ */ n.jsx(J, { value: "types", children: "Types" })
2428
+ /* @__PURE__ */ n.jsx(ie, { className: "min-w-32", children: /* @__PURE__ */ n.jsx($e, { placeholder: "View" }) }),
2429
+ /* @__PURE__ */ n.jsxs(le, { children: [
2430
+ /* @__PURE__ */ n.jsx(G, { value: "formatted", children: "Formatted" }),
2431
+ /* @__PURE__ */ n.jsx(G, { value: "raw", children: "Raw" }),
2432
+ /* @__PURE__ */ n.jsx(G, { value: "types", children: "Types" })
2328
2433
  ] })
2329
2434
  ]
2330
2435
  }
2331
2436
  ) })
2332
2437
  ] })
2333
2438
  ] });
2334
- }, Sr = ({
2439
+ }, $r = ({
2335
2440
  queryMutation: e,
2336
2441
  showPathParamsWarning: t,
2337
2442
  showLongRunningWarning: s,
@@ -2339,24 +2444,24 @@ const yr = {
2339
2444
  }) => {
2340
2445
  const r = ((e.data?.status ?? 0) / 100).toFixed(0);
2341
2446
  return /* @__PURE__ */ n.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: e.error ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2342
- t && /* @__PURE__ */ n.jsx(Wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2343
- /* @__PURE__ */ n.jsxs(Ot, { children: [
2344
- /* @__PURE__ */ n.jsx(Xn, { children: /* @__PURE__ */ n.jsx(Zn, { children: "Request failed" }) }),
2345
- /* @__PURE__ */ n.jsxs(Yn, { children: [
2447
+ t && /* @__PURE__ */ n.jsx(es, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
2448
+ /* @__PURE__ */ n.jsxs($t, { children: [
2449
+ /* @__PURE__ */ n.jsx(ts, { children: /* @__PURE__ */ n.jsx(ns, { children: "Request failed" }) }),
2450
+ /* @__PURE__ */ n.jsxs(ss, { children: [
2346
2451
  "Error:",
2347
2452
  " ",
2348
2453
  e.error.message || String(e.error) || "Unexpected error"
2349
2454
  ] })
2350
2455
  ] })
2351
- ] }) : e.data ? /* @__PURE__ */ n.jsxs(wt, { defaultValue: "response", children: [
2352
- /* @__PURE__ */ n.jsxs(Tt, { children: [
2353
- /* @__PURE__ */ n.jsx(z, { value: "request", children: "Request" }),
2354
- /* @__PURE__ */ n.jsxs(z, { value: "response", children: [
2456
+ ] }) : e.data ? /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "response", children: [
2457
+ /* @__PURE__ */ n.jsxs(Pt, { children: [
2458
+ /* @__PURE__ */ n.jsx(M, { value: "request", children: "Request" }),
2459
+ /* @__PURE__ */ n.jsxs(M, { value: "response", children: [
2355
2460
  "Response",
2356
2461
  /* @__PURE__ */ n.jsxs(
2357
2462
  "span",
2358
2463
  {
2359
- className: v(
2464
+ className: g(
2360
2465
  "text-xs font-mono ms-1",
2361
2466
  r === "2" && "text-green-500",
2362
2467
  r === "3" && "text-blue-500",
@@ -2372,9 +2477,9 @@ const yr = {
2372
2477
  )
2373
2478
  ] })
2374
2479
  ] }),
2375
- /* @__PURE__ */ n.jsx(M, { value: "request", children: /* @__PURE__ */ n.jsx(fr, { ...e.data.request }) }),
2376
- /* @__PURE__ */ n.jsx(M, { value: "response", children: /* @__PURE__ */ n.jsx(
2377
- Cr,
2480
+ /* @__PURE__ */ n.jsx(U, { value: "request", children: /* @__PURE__ */ n.jsx(Nr, { ...e.data.request }) }),
2481
+ /* @__PURE__ */ n.jsx(U, { value: "response", children: /* @__PURE__ */ n.jsx(
2482
+ Er,
2378
2483
  {
2379
2484
  status: e.data.status,
2380
2485
  time: e.data.time,
@@ -2385,18 +2490,18 @@ const yr = {
2385
2490
  }
2386
2491
  ) })
2387
2492
  ] }) : /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: e.isPending ? /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2388
- /* @__PURE__ */ n.jsx(Jn, { size: 20 }),
2493
+ /* @__PURE__ */ n.jsx(Kn, { size: 20 }),
2389
2494
  /* @__PURE__ */ n.jsxs(
2390
2495
  "div",
2391
2496
  {
2392
- className: v(
2497
+ className: g(
2393
2498
  "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2394
2499
  s && "opacity-100 pointer-events-auto"
2395
2500
  ),
2396
2501
  children: [
2397
2502
  "Looks like the request is taking longer than expected.",
2398
2503
  /* @__PURE__ */ n.jsx(
2399
- X,
2504
+ Z,
2400
2505
  {
2401
2506
  type: "button",
2402
2507
  onClick: a,
@@ -2410,58 +2515,56 @@ const yr = {
2410
2515
  }
2411
2516
  )
2412
2517
  ] }) : /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
2413
- }, wr = ({
2518
+ }, Rr = ({
2414
2519
  identities: e,
2415
2520
  formRef: t,
2416
2521
  disabled: s
2417
2522
  }) => {
2418
- const { setValue: a } = De(), [r, o] = P();
2419
- return e.length === 0 ? /* @__PURE__ */ n.jsx(V, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2523
+ const { setValue: a, watch: r } = qe(), o = r("identity");
2524
+ return e.length === 0 ? /* @__PURE__ */ n.jsx(F, { disabled: s, children: "Send" }) : /* @__PURE__ */ n.jsxs("div", { className: "flex", children: [
2420
2525
  /* @__PURE__ */ n.jsx(
2421
- V,
2526
+ F,
2422
2527
  {
2423
- className: "rounded-r-none inset-shadow-sm",
2528
+ className: "rounded-r-none inset-shadow-xs",
2424
2529
  disabled: s,
2425
2530
  onClick: () => t?.current?.requestSubmit(),
2426
2531
  children: "Send"
2427
2532
  }
2428
2533
  ),
2429
- /* @__PURE__ */ n.jsxs(zt, { children: [
2430
- /* @__PURE__ */ n.jsx(Mt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2431
- V,
2534
+ /* @__PURE__ */ n.jsxs(Qt, { children: [
2535
+ /* @__PURE__ */ n.jsx(Jt, { asChild: !0, children: /* @__PURE__ */ n.jsx(
2536
+ F,
2432
2537
  {
2433
2538
  disabled: s,
2434
- className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
2539
+ className: "rounded-l-none border-l border-border/40 inset-shadow-xs w-6",
2435
2540
  size: "icon",
2436
- children: /* @__PURE__ */ n.jsx(pn, { className: "w-4 h-4" })
2541
+ children: /* @__PURE__ */ n.jsx(yn, { className: "w-4 h-4" })
2437
2542
  }
2438
2543
  ) }),
2439
- /* @__PURE__ */ n.jsx(Ue, { value: r, children: /* @__PURE__ */ n.jsx(_e, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: G, label: "None" }, ...e].map(
2544
+ /* @__PURE__ */ n.jsx(ze, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...e].map(
2440
2545
  (i) => /* @__PURE__ */ n.jsxs(
2441
- Be,
2546
+ _e,
2442
2547
  {
2443
2548
  onClick: () => {
2444
- o(i.id), a("identity", i.id), t?.current?.requestSubmit();
2549
+ a("identity", i.id), t?.current?.requestSubmit();
2445
2550
  },
2446
- onMouseEnter: () => o(i.id),
2447
- onMouseLeave: () => o(void 0),
2448
2551
  children: [
2449
- /* @__PURE__ */ n.jsx(le, { value: i.id, className: "me-2" }),
2450
- i.label
2552
+ i.label,
2553
+ o === i.id && /* @__PURE__ */ n.jsx(jt, { className: "ms-2", size: 16 })
2451
2554
  ]
2452
2555
  },
2453
2556
  i.id
2454
2557
  )
2455
- ) }) })
2558
+ ) })
2456
2559
  ] })
2457
2560
  ] });
2458
- }, G = "__none", je = {
2561
+ }, H = "__none", we = {
2459
2562
  Plain: "text/plain",
2460
2563
  JSON: "application/json",
2461
2564
  XML: "application/xml",
2462
2565
  YAML: "application/yaml",
2463
2566
  CSV: "text/csv"
2464
- }, Tr = ({
2567
+ }, Lr = ({
2465
2568
  server: e,
2466
2569
  servers: t = [],
2467
2570
  url: s,
@@ -2473,11 +2576,11 @@ const yr = {
2473
2576
  examples: l,
2474
2577
  requiresLogin: u = !1,
2475
2578
  onLogin: p,
2476
- onSignUp: y
2579
+ onSignUp: v
2477
2580
  }) => {
2478
- const { selectedServer: f, setSelectedServer: x } = Js(
2581
+ const { selectedServer: f, setSelectedServer: x } = tr(
2479
2582
  t.map((d) => ({ url: d }))
2480
- ), [m, g] = P(!1), C = Cn(), { setRememberedIdentity: j, getRememberedIdentity: R } = ur(), [, I] = Pn(), [Kt, en] = P(!1), [tn, K] = P(!1), ee = U(void 0), Je = Vn(j), { register: We, control: te, handleSubmit: Xe, watch: Ze, setValue: B, ...pe } = kn({
2583
+ ), [m, y] = L(!1), S = On(), { setRememberedIdentity: N, getRememberedIdentity: I } = yr(), [, k] = kn(), [an, on] = L(!1), [ln, ee] = L(!1), te = Q(void 0), Je = Mn(N), { register: We, control: ne, handleSubmit: Xe, watch: Ze, setValue: _, ...fe } = Bn({
2481
2584
  defaultValues: {
2482
2585
  body: c,
2483
2586
  bodyContentType: "JSON",
@@ -2509,145 +2612,147 @@ const yr = {
2509
2612
  active: !1
2510
2613
  }
2511
2614
  ]),
2512
- identity: R(
2513
- C.data?.map((d) => d.id) ?? []
2615
+ identity: I(
2616
+ S.data?.map((d) => d.id) ?? []
2514
2617
  )
2515
2618
  }
2516
- }), T = Ze(), Ye = U(null);
2517
- re(() => {
2518
- T.identity && Je.current(T.identity);
2519
- }, [Je, T.identity]);
2520
- const he = In({
2619
+ }), A = Ze(), Ye = Q(null);
2620
+ ae(() => {
2621
+ A.identity && Je.current(A.identity);
2622
+ }, [Je, A.identity]);
2623
+ const xe = Fn({
2624
+ gcTime: 0,
2521
2625
  mutationFn: async (d) => {
2522
- const O = performance.now(), k = !d.headers.some(
2523
- (w) => w.active && w.name.toLowerCase() === "content-type"
2524
- ), se = Object.fromEntries([
2525
- ...d.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
2526
- ...k ? [["content-type", je[d.bodyContentType]]] : []
2626
+ const P = performance.now(), D = !d.headers.some(
2627
+ (T) => T.active && T.name.toLowerCase() === "content-type"
2628
+ ), re = Object.fromEntries([
2629
+ ...d.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value]),
2630
+ ...D ? [["content-type", we[d.bodyContentType]]] : []
2527
2631
  ]), E = new Request(
2528
- Ws(e ?? f, s, d),
2632
+ nr(e ?? f, s, d),
2529
2633
  {
2530
2634
  method: a.toUpperCase(),
2531
- headers: se,
2635
+ headers: re,
2532
2636
  body: d.body ? d.body : void 0
2533
2637
  }
2534
2638
  );
2535
- d.identity !== G && await C.data?.find((w) => w.id === d.identity)?.authorizeRequest(E);
2639
+ d.identity !== H && await S.data?.find((T) => T.id === d.identity)?.authorizeRequest(E);
2536
2640
  const et = setTimeout(
2537
- () => K(!0),
2641
+ () => ee(!0),
2538
2642
  3210
2539
2643
  );
2540
- ee.current = new AbortController();
2644
+ te.current = new AbortController();
2541
2645
  try {
2542
- const w = await fetch(E, {
2543
- signal: ee.current.signal
2646
+ const T = await fetch(E, {
2647
+ cache: "no-store",
2648
+ signal: te.current.signal
2544
2649
  });
2545
- clearTimeout(et), K(!1);
2546
- const an = performance.now() - O, tt = await w.text(), on = new URL(E.url);
2650
+ clearTimeout(et), ee(!1);
2651
+ const mn = performance.now() - P, tt = await T.text(), pn = new URL(E.url);
2547
2652
  return {
2548
- status: w.status,
2549
- headers: Array.from(w.headers.entries()),
2653
+ status: T.status,
2654
+ headers: Array.from(T.headers.entries()),
2550
2655
  size: tt.length,
2551
2656
  body: tt,
2552
- time: an,
2657
+ time: mn,
2553
2658
  request: {
2554
2659
  method: E.method.toUpperCase(),
2555
2660
  url: E.url,
2556
2661
  headers: [
2557
- ["Host", on.host],
2662
+ ["Host", pn.host],
2558
2663
  ["User-Agent", "Zudoku Playground"],
2559
2664
  ...Array.from(E.headers.entries())
2560
2665
  ],
2561
2666
  body: d.body ? d.body : void 0
2562
2667
  }
2563
2668
  };
2564
- } catch (w) {
2565
- throw clearTimeout(et), K(!1), w instanceof TypeError ? new Error(
2669
+ } catch (T) {
2670
+ throw clearTimeout(et), ee(!1), T instanceof TypeError ? new Error(
2566
2671
  "The request failed, possibly due to network issues or CORS policy."
2567
- ) : w;
2672
+ ) : T;
2568
2673
  }
2569
2674
  }
2570
2675
  });
2571
- re(() => () => {
2572
- ee.current?.abort();
2676
+ ae(() => () => {
2677
+ te.current?.abort();
2573
2678
  }, []);
2574
- const nn = /* @__PURE__ */ n.jsx(
2575
- Us,
2679
+ const cn = /* @__PURE__ */ n.jsx(
2680
+ Xs,
2576
2681
  {
2577
2682
  path: s,
2578
- renderParam: ({ name: d, originalValue: O, index: k }) => {
2579
- const se = T.pathParams.find(
2683
+ renderParam: ({ name: d, originalValue: P, index: D }) => {
2684
+ const re = A.pathParams.find(
2580
2685
  (E) => E.name === d
2581
2686
  )?.value;
2582
2687
  return /* @__PURE__ */ n.jsx(
2583
- Bt,
2688
+ Ht,
2584
2689
  {
2585
2690
  name: d,
2586
2691
  backgroundOpacity: "0",
2587
2692
  slug: d,
2588
- onClick: () => pe.setFocus(`pathParams.${k}.value`),
2589
- children: se || O
2693
+ onClick: () => fe.setFocus(`pathParams.${D}.value`),
2694
+ children: re || P
2590
2695
  }
2591
2696
  );
2592
2697
  }
2593
2698
  }
2594
- ), Ke = T.queryParams.filter((d) => d.active).map((d, O, k) => /* @__PURE__ */ n.jsxs(D, { children: [
2699
+ ), Ke = A.queryParams.filter((d) => d.active).map((d, P, D) => /* @__PURE__ */ n.jsxs(q, { children: [
2595
2700
  d.name,
2596
2701
  "=",
2597
2702
  encodeURIComponent(d.value).replaceAll("%20", "+"),
2598
- O < k.length - 1 && "&",
2703
+ P < D.length - 1 && "&",
2599
2704
  /* @__PURE__ */ n.jsx("wbr", {})
2600
- ] }, d.name)), sn = /* @__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(
2601
- Ne,
2705
+ ] }, d.name)), dn = /* @__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(
2706
+ Ee,
2602
2707
  {
2603
2708
  onValueChange: (d) => {
2604
- I(() => x(d));
2709
+ k(() => x(d));
2605
2710
  },
2606
2711
  value: f,
2607
2712
  defaultValue: f,
2608
2713
  children: [
2609
- /* @__PURE__ */ n.jsx(Ce, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2610
- /* @__PURE__ */ n.jsx(we, { children: t.map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2714
+ /* @__PURE__ */ n.jsx(ie, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx($e, {}) }),
2715
+ /* @__PURE__ */ n.jsx(le, { children: t.map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d.replace(/^https?:\/\//, "").replace(/\/$/, "") }, d)) })
2611
2716
  ]
2612
2717
  }
2613
- ) }), rn = u && !Kt, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
2718
+ ) }), un = u && !an, se = ["POST", "PUT", "PATCH", "DELETE"].includes(
2614
2719
  a.toUpperCase()
2615
2720
  );
2616
2721
  return /* @__PURE__ */ n.jsx(
2617
- Dn,
2722
+ zn,
2618
2723
  {
2619
2724
  register: We,
2620
- control: te,
2725
+ control: ne,
2621
2726
  handleSubmit: Xe,
2622
2727
  watch: Ze,
2623
- setValue: B,
2624
- ...pe,
2728
+ setValue: _,
2729
+ ...fe,
2625
2730
  children: /* @__PURE__ */ n.jsxs(
2626
2731
  "form",
2627
2732
  {
2628
2733
  onSubmit: Xe((d) => {
2629
- C.data?.length === 0 || d.identity ? he.mutate(d) : g(!0);
2734
+ S.data?.length === 0 || d.identity ? xe.mutate(d) : y(!0);
2630
2735
  }),
2631
2736
  ref: Ye,
2632
2737
  className: "relative",
2633
2738
  children: [
2634
2739
  /* @__PURE__ */ n.jsx(
2635
- ir,
2740
+ hr,
2636
2741
  {
2637
- identities: C.data ?? [],
2742
+ identities: S.data ?? [],
2638
2743
  open: m,
2639
- onOpenChange: g,
2640
- onSubmit: ({ rememberedIdentity: d, identity: O }) => {
2641
- d && B("identity", O ?? G), g(!1), he.mutate({ ...T, identity: O });
2744
+ onOpenChange: y,
2745
+ onSubmit: ({ rememberedIdentity: d, identity: P }) => {
2746
+ d && _("identity", P ?? H), y(!1), xe.mutate({ ...A, identity: P });
2642
2747
  }
2643
2748
  }
2644
2749
  ),
2645
2750
  /* @__PURE__ */ n.jsx(
2646
- mr,
2751
+ vr,
2647
2752
  {
2648
- open: rn,
2649
- setOpen: (d) => en(!d),
2650
- onSignUp: y,
2753
+ open: un,
2754
+ setOpen: (d) => on(!d),
2755
+ onSignUp: v,
2651
2756
  onLogin: p
2652
2757
  }
2653
2758
  ),
@@ -2657,133 +2762,133 @@ const yr = {
2657
2762
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
2658
2763
  /* @__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() }),
2659
2764
  /* @__PURE__ */ n.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
2660
- sn,
2661
- nn,
2765
+ dn,
2766
+ cn,
2662
2767
  Ke.length > 0 ? "?" : "",
2663
2768
  Ke
2664
2769
  ] })
2665
2770
  ] }),
2666
2771
  /* @__PURE__ */ n.jsx(
2667
- wr,
2772
+ Rr,
2668
2773
  {
2669
- identities: C.data ?? [],
2774
+ identities: S.data ?? [],
2670
2775
  formRef: Ye,
2671
- disabled: C.isLoading || pe.formState.isSubmitting
2776
+ disabled: S.isLoading || fe.formState.isSubmitting
2672
2777
  }
2673
2778
  )
2674
2779
  ] }),
2675
- /* @__PURE__ */ n.jsxs(wt, { defaultValue: "parameters", children: [
2676
- /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Tt, { children: [
2677
- /* @__PURE__ */ n.jsxs(z, { value: "parameters", children: [
2780
+ /* @__PURE__ */ n.jsxs(Ot, { defaultValue: "parameters", children: [
2781
+ /* @__PURE__ */ n.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ n.jsxs(Pt, { children: [
2782
+ /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2678
2783
  "Parameters",
2679
- (T.pathParams.some((d) => d.value !== "") || T.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2784
+ (A.pathParams.some((d) => d.value !== "") || A.queryParams.some((d) => d.active)) && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2680
2785
  ] }),
2681
- /* @__PURE__ */ n.jsxs(z, { value: "headers", children: [
2786
+ /* @__PURE__ */ n.jsxs(M, { value: "headers", children: [
2682
2787
  "Headers",
2683
- T.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2788
+ A.headers.filter((d) => d.active).length > 0 && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2684
2789
  ] }),
2685
- /* @__PURE__ */ n.jsxs(z, { value: "auth", children: [
2790
+ /* @__PURE__ */ n.jsxs(M, { value: "auth", children: [
2686
2791
  "Auth",
2687
- T.identity !== G && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2792
+ A.identity !== H && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2688
2793
  ] }),
2689
- /* @__PURE__ */ n.jsxs(z, { value: "body", children: [
2794
+ /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2690
2795
  "Body",
2691
- T.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2796
+ A.body && /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ms-2" })
2692
2797
  ] })
2693
2798
  ] }) }),
2694
- /* @__PURE__ */ n.jsx(M, { value: "headers", children: /* @__PURE__ */ n.jsx(ar, { control: te, headers: r }) }),
2695
- /* @__PURE__ */ n.jsxs(M, { value: "parameters", children: [
2799
+ /* @__PURE__ */ n.jsx(U, { value: "headers", children: /* @__PURE__ */ n.jsx(mr, { control: ne, headers: r }) }),
2800
+ /* @__PURE__ */ n.jsxs(U, { value: "parameters", children: [
2696
2801
  i.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2697
2802
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
2698
- /* @__PURE__ */ n.jsx(lr, { url: s, control: te })
2803
+ /* @__PURE__ */ n.jsx(fr, { url: s, control: ne })
2699
2804
  ] }),
2700
2805
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2701
2806
  /* @__PURE__ */ n.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
2702
- /* @__PURE__ */ n.jsx(dr, { control: te, queryParams: o })
2807
+ /* @__PURE__ */ n.jsx(gr, { control: ne, queryParams: o })
2703
2808
  ] })
2704
2809
  ] }),
2705
- /* @__PURE__ */ n.jsxs(M, { value: "body", children: [
2810
+ /* @__PURE__ */ n.jsxs(U, { value: "body", children: [
2706
2811
  !["POST", "PUT", "PATCH", "DELETE"].includes(
2707
2812
  a.toUpperCase()
2708
- ) && /* @__PURE__ */ n.jsxs(Ee, { className: "mb-2", children: [
2813
+ ) && /* @__PURE__ */ n.jsxs(Ae, { className: "mb-2", children: [
2709
2814
  /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2710
- /* @__PURE__ */ n.jsx(Pe, { children: "Body" }),
2711
- /* @__PURE__ */ n.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2815
+ /* @__PURE__ */ n.jsx(Oe, { children: "Body" }),
2816
+ /* @__PURE__ */ n.jsx(Pe, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
2712
2817
  ] }),
2713
2818
  /* @__PURE__ */ n.jsx(
2714
- _t,
2819
+ Gt,
2715
2820
  {
2716
2821
  ...We("body"),
2717
- className: v(
2822
+ className: g(
2718
2823
  "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
2719
- !ne && "h-20 bg-muted"
2824
+ !se && "h-20 bg-muted"
2720
2825
  ),
2721
- placeholder: ne ? void 0 : "This request does not support a body",
2722
- disabled: !ne
2826
+ placeholder: se ? void 0 : "This request does not support a body",
2827
+ disabled: !se
2723
2828
  }
2724
2829
  ),
2725
- ne && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2830
+ se && /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
2726
2831
  /* @__PURE__ */ n.jsxs(
2727
- Ne,
2832
+ Ee,
2728
2833
  {
2729
- value: T.bodyContentType,
2730
- onValueChange: (d) => B(
2834
+ value: A.bodyContentType,
2835
+ onValueChange: (d) => _(
2731
2836
  "bodyContentType",
2732
2837
  d
2733
2838
  ),
2734
2839
  children: [
2735
- /* @__PURE__ */ n.jsx(Ce, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx(Se, {}) }),
2736
- /* @__PURE__ */ n.jsx(we, { children: Object.keys(je).map((d) => /* @__PURE__ */ n.jsx(J, { value: d, children: d }, d)) })
2840
+ /* @__PURE__ */ n.jsx(ie, { className: "w-[100px]", children: /* @__PURE__ */ n.jsx($e, {}) }),
2841
+ /* @__PURE__ */ n.jsx(le, { children: Object.keys(we).map((d) => /* @__PURE__ */ n.jsx(G, { value: d, children: d }, d)) })
2737
2842
  ]
2738
2843
  }
2739
2844
  ),
2740
2845
  l && l.length > 0 && /* @__PURE__ */ n.jsx(
2741
- tr,
2846
+ lr,
2742
2847
  {
2743
2848
  examples: l,
2744
- onSelect: (d, O) => {
2745
- B(
2849
+ onSelect: (d, P) => {
2850
+ _(
2746
2851
  "body",
2747
2852
  JSON.stringify(d.value, null, 2)
2748
2853
  );
2749
- const k = qn(je).find(
2750
- ([se, E]) => E === O
2854
+ const D = _n(we).find(
2855
+ ([re, E]) => E === P
2751
2856
  )?.[0];
2752
- k && B("bodyContentType", k);
2857
+ D && _("bodyContentType", D);
2753
2858
  }
2754
2859
  }
2755
2860
  )
2756
2861
  ] })
2757
2862
  ] }),
2758
- /* @__PURE__ */ n.jsx(M, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2759
- C.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ee, { children: [
2863
+ /* @__PURE__ */ n.jsx(U, { value: "auth", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
2864
+ S.data?.length === 0 && /* @__PURE__ */ n.jsxs(Ae, { children: [
2760
2865
  /* @__PURE__ */ n.jsx(nt, { className: "w-4 h-4" }),
2761
- /* @__PURE__ */ n.jsx(Pe, { children: "Authentication" }),
2762
- /* @__PURE__ */ n.jsx($e, { children: "No identities found. Please create an identity first." })
2866
+ /* @__PURE__ */ n.jsx(Oe, { children: "Authentication" }),
2867
+ /* @__PURE__ */ n.jsx(Pe, { children: "No identities found. Please create an identity first." })
2763
2868
  ] }),
2764
2869
  /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ n.jsx(
2765
- Qt,
2870
+ Kt,
2766
2871
  {
2767
- value: T.identity,
2768
- identities: C.data ?? [],
2769
- setValue: (d) => B("identity", d)
2872
+ value: A.identity,
2873
+ identities: S.data ?? [],
2874
+ setValue: (d) => _("identity", d)
2770
2875
  }
2771
2876
  ) })
2772
2877
  ] }) })
2773
2878
  ] })
2774
2879
  ] }),
2775
2880
  /* @__PURE__ */ n.jsx(
2776
- Sr,
2881
+ $r,
2777
2882
  {
2778
- queryMutation: he,
2779
- showPathParamsWarning: T.pathParams.some(
2883
+ queryMutation: xe,
2884
+ showPathParamsWarning: A.pathParams.some(
2780
2885
  (d) => d.value === ""
2781
2886
  ),
2782
- showLongRunningWarning: tn,
2887
+ showLongRunningWarning: ln,
2783
2888
  onCancel: () => {
2784
- ee.current?.abort(
2889
+ te.current?.abort(
2785
2890
  "Request cancelled by the user"
2786
- ), K(!1);
2891
+ ), ee(!1);
2787
2892
  }
2788
2893
  }
2789
2894
  )
@@ -2793,7 +2898,7 @@ const yr = {
2793
2898
  )
2794
2899
  }
2795
2900
  );
2796
- }, Ar = ({
2901
+ }, Ir = ({
2797
2902
  className: e,
2798
2903
  size: t = 16
2799
2904
  }) => /* @__PURE__ */ n.jsx(
@@ -2814,33 +2919,33 @@ const yr = {
2814
2919
  }
2815
2920
  )
2816
2921
  }
2817
- ), Or = (e) => {
2818
- const [t, s] = P(!1);
2922
+ ), kr = (e) => {
2923
+ const [t, s] = L(!1);
2819
2924
  return /* @__PURE__ */ n.jsxs(Le, { onOpenChange: (a) => s(a), children: [
2820
- /* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2925
+ /* @__PURE__ */ n.jsx(Vn, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
2821
2926
  "button",
2822
2927
  {
2823
2928
  type: "button",
2824
- className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
2929
+ 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",
2825
2930
  children: [
2826
2931
  "Test",
2827
- /* @__PURE__ */ n.jsx(Ar, { size: 14 })
2932
+ /* @__PURE__ */ n.jsx(Ir, { size: 14 })
2828
2933
  ]
2829
2934
  }
2830
2935
  ) }),
2831
2936
  /* @__PURE__ */ n.jsxs(
2832
- Re,
2937
+ Ie,
2833
2938
  {
2834
2939
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
2835
2940
  "aria-describedby": void 0,
2836
2941
  children: [
2837
- /* @__PURE__ */ n.jsx(Ln, { children: /* @__PURE__ */ n.jsx(Ie, { children: "Playground" }) }),
2838
- t && /* @__PURE__ */ n.jsx(Tr, { ...e })
2942
+ /* @__PURE__ */ n.jsx(qn, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
2943
+ t && /* @__PURE__ */ n.jsx(Lr, { ...e })
2839
2944
  ]
2840
2945
  }
2841
2946
  )
2842
2947
  ] });
2843
- }, Er = {
2948
+ }, Dr = {
2844
2949
  get: "green",
2845
2950
  post: "blue",
2846
2951
  put: "yellow",
@@ -2870,21 +2975,21 @@ const yr = {
2870
2975
  href: `${t}#${o.slug}`,
2871
2976
  badge: {
2872
2977
  label: o.method,
2873
- color: Er[o.method.toLowerCase()],
2978
+ color: Dr[o.method.toLowerCase()],
2874
2979
  invert: !0
2875
2980
  }
2876
2981
  }))
2877
- }), Jt = jt(
2982
+ }), en = Ct(
2878
2983
  void 0
2879
- ), pa = Jt.Provider, Pr = () => {
2880
- const e = $n(Jt);
2984
+ ), ba = en.Provider, qr = () => {
2985
+ const e = Dn(en);
2881
2986
  if (!e)
2882
2987
  throw new Error("useOasConfig must be used within a OasConfigProvider");
2883
2988
  return e.config;
2884
2989
  }, yt = (e) => ({
2885
2990
  path: e.routePath,
2886
2991
  async lazy() {
2887
- const { OasProvider: t } = await import("./OasProvider-DalHQixM.js");
2992
+ const { OasProvider: t } = await import("./OasProvider-5jrFuhVk.js");
2888
2993
  return {
2889
2994
  element: /* @__PURE__ */ n.jsx(
2890
2995
  t,
@@ -2898,39 +3003,39 @@ const yr = {
2898
3003
  };
2899
3004
  },
2900
3005
  children: e.routes
2901
- }), Wt = ({
3006
+ }), tn = ({
2902
3007
  path: e,
2903
3008
  tag: t,
2904
3009
  untagged: s
2905
3010
  }) => ({
2906
3011
  path: e,
2907
3012
  async lazy() {
2908
- const { OperationList: a } = await import("./OperationList-BB09ENaq.js");
3013
+ const { OperationList: a } = await import("./OperationList-BmoMLQPO.js");
2909
3014
  return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
2910
3015
  }
2911
- }), $r = ({
3016
+ }), Vr = ({
2912
3017
  render: e,
2913
3018
  path: t
2914
3019
  }) => {
2915
- const { type: s, input: a } = Pr(), { tag: r } = gn(), o = yn(), i = Is(Yt, { type: s, input: a }), {
3020
+ const { type: s, input: a } = qr(), { tag: r } = Nn(), o = wn(), i = Fs(rn, { type: s, input: a }), {
2916
3021
  data: { schema: c }
2917
- } = Sn(i), l = c.tags.at(0);
3022
+ } = Pn(i), l = c.tags.at(0);
2918
3023
  return !r && l?.slug ? /* @__PURE__ */ n.jsx(
2919
- vn,
3024
+ Cn,
2920
3025
  {
2921
3026
  to: {
2922
- pathname: bn(t, { tag: l.slug }),
3027
+ pathname: Sn(t, { tag: l.slug }),
2923
3028
  search: o.search
2924
3029
  }
2925
3030
  }
2926
3031
  ) : r && c.tags.some((u) => u.slug === r) ? e(r) : null;
2927
- }, Lr = ({ path: e }) => ({
3032
+ }, Fr = ({ path: e }) => ({
2928
3033
  path: e,
2929
3034
  async lazy() {
2930
- const { OperationList: t } = await import("./OperationList-BB09ENaq.js");
3035
+ const { OperationList: t } = await import("./OperationList-BmoMLQPO.js");
2931
3036
  return {
2932
3037
  element: /* @__PURE__ */ n.jsx(
2933
- $r,
3038
+ Vr,
2934
3039
  {
2935
3040
  path: e,
2936
3041
  render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
@@ -2938,35 +3043,35 @@ const yr = {
2938
3043
  )
2939
3044
  };
2940
3045
  }
2941
- }), Xt = (e) => [
3046
+ }), nn = (e) => [
2942
3047
  // Category without tagged operations
2943
- Wt({
2944
- path: L(e, Qe),
3048
+ tn({
3049
+ path: R(e, Qe),
2945
3050
  untagged: !0
2946
3051
  }),
2947
3052
  // Schema list route
2948
3053
  {
2949
- path: L(e, "~schemas"),
3054
+ path: R(e, "~schemas"),
2950
3055
  lazy: async () => {
2951
- const { SchemaList: t } = await import("./SchemaList-BH9bgMRw.js");
3056
+ const { SchemaList: t } = await import("./SchemaList-B4riYLoP.js");
2952
3057
  return { element: /* @__PURE__ */ n.jsx(t, {}) };
2953
3058
  }
2954
3059
  }
2955
- ], Rr = (e, t) => {
2956
- const s = L(e, t.at(0) ?? Qe);
3060
+ ], Br = (e, t) => {
3061
+ const s = R(e, t.at(0) ?? Qe);
2957
3062
  return [
2958
3063
  // Redirect to first tag on the index route
2959
- { index: !0, loader: () => xn(s) },
3064
+ { index: !0, loader: () => jn(s) },
2960
3065
  // Create routes for each tag
2961
3066
  ...t.map(
2962
- (a) => Wt({
2963
- path: L(e, a),
3067
+ (a) => tn({
3068
+ path: R(e, a),
2964
3069
  tag: a
2965
3070
  })
2966
3071
  ),
2967
- ...Xt(e)
3072
+ ...nn(e)
2968
3073
  ];
2969
- }, Zt = (e) => e.type === "file" ? Object.keys(e.input) : [], Ir = ({
3074
+ }, sn = (e) => e.type === "file" ? Object.keys(e.input) : [], zr = ({
2970
3075
  basePath: e,
2971
3076
  config: t,
2972
3077
  client: s
@@ -2978,26 +3083,26 @@ const yr = {
2978
3083
  basePath: e,
2979
3084
  routePath: e,
2980
3085
  routes: [
2981
- Lr({ path: e + "/:tag?" }),
2982
- ...Xt(e)
3086
+ Fr({ path: e + "/:tag?" }),
3087
+ ...nn(e)
2983
3088
  ],
2984
3089
  client: s,
2985
3090
  config: t
2986
3091
  })
2987
3092
  ];
2988
- const r = Zt(t);
3093
+ const r = sn(t);
2989
3094
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
2990
- const c = L(e, i);
3095
+ const c = R(e, i);
2991
3096
  return yt({
2992
3097
  basePath: e,
2993
3098
  version: i,
2994
3099
  routePath: c,
2995
- routes: Rr(c, a),
3100
+ routes: Br(c, a),
2996
3101
  client: s,
2997
3102
  config: t
2998
3103
  });
2999
3104
  });
3000
- }, Yt = Ms(`
3105
+ }, rn = Js(`
3001
3106
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
3002
3107
  schema(input: $input, type: $type) {
3003
3108
  tags {
@@ -3019,8 +3124,8 @@ const yr = {
3019
3124
  }
3020
3125
  }
3021
3126
  }
3022
- `), Qe = "~endpoints", ha = (e) => {
3023
- const t = L(e.navigationId ?? "/reference"), s = new ts(e);
3127
+ `), Qe = "~endpoints", ja = (e) => {
3128
+ const t = R(e.navigationId ?? "/reference"), s = new os(e);
3024
3129
  return {
3025
3130
  getHead: () => {
3026
3131
  if (e.type === "url" && !e.skipPreload)
@@ -3045,30 +3150,30 @@ const yr = {
3045
3150
  children: c,
3046
3151
  ...l
3047
3152
  }) => {
3048
- const u = wn();
3153
+ const u = En();
3049
3154
  if (!r)
3050
3155
  throw new Error("Server is required");
3051
3156
  return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3052
- X,
3157
+ Z,
3053
3158
  {
3054
3159
  className: "gap-2 items-center",
3055
3160
  variant: "outline",
3056
3161
  onClick: u.login,
3057
3162
  children: [
3058
3163
  "Login to open in Playground ",
3059
- /* @__PURE__ */ n.jsx(hn, { size: 16 })
3164
+ /* @__PURE__ */ n.jsx(vn, { size: 16 })
3060
3165
  ]
3061
3166
  }
3062
3167
  ) : /* @__PURE__ */ n.jsx(
3063
- Or,
3168
+ kr,
3064
3169
  {
3065
3170
  url: i ?? "/",
3066
3171
  method: o ?? "get",
3067
3172
  server: r,
3068
3173
  ...l,
3069
- children: /* @__PURE__ */ n.jsx(X, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3174
+ children: /* @__PURE__ */ n.jsx(Z, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3070
3175
  "Open in Playground ",
3071
- /* @__PURE__ */ n.jsx(fn, { size: 16 })
3176
+ /* @__PURE__ */ n.jsx(bn, { size: 16 })
3072
3177
  ] }) })
3073
3178
  }
3074
3179
  );
@@ -3082,77 +3187,82 @@ const yr = {
3082
3187
  a
3083
3188
  );
3084
3189
  try {
3085
- const i = o?.params.version, c = i ?? Zt(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = Ft(s, Yt, {
3190
+ const i = o?.params.version, c = i ?? sn(e).at(0), { type: l } = e, u = l === "file" ? e.input[c] : e.input, p = _t(s, rn, {
3086
3191
  type: l,
3087
3192
  input: u
3088
- }), y = await r.queryClient.ensureQueryData(p), f = y.schema.tags.flatMap((m) => {
3193
+ }), v = await r.queryClient.ensureQueryData(p), f = v.schema.tags.flatMap((m) => {
3089
3194
  if (!m.name || m.operations.length === 0) return [];
3090
- const g = L(t, i, m.slug), C = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, j = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3195
+ const y = R(t, i, m.slug), S = m.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, N = m.extensions?.["x-zudoku-collapsible"] ?? !0;
3091
3196
  return gt({
3092
3197
  label: m.name,
3093
- path: g,
3198
+ path: y,
3094
3199
  operations: m.operations,
3095
- collapsed: C,
3096
- collapsible: j
3200
+ collapsed: S,
3201
+ collapsible: N
3097
3202
  });
3098
- }), x = y.schema.tags.find(
3203
+ }), x = v.schema.tags.find(
3099
3204
  (m) => !m.name
3100
3205
  )?.operations;
3101
3206
  return x && f.push(
3102
3207
  gt({
3103
3208
  label: "Other endpoints",
3104
- path: L(t, i, Qe),
3209
+ path: R(t, i, Qe),
3105
3210
  operations: x,
3106
3211
  collapsed: !e.options?.expandAllTags
3107
3212
  })
3108
- ), y.schema.components?.schemas?.length && f.push({
3213
+ ), v.schema.components?.schemas?.length && f.push({
3109
3214
  type: "link",
3110
3215
  label: "Schemas",
3111
- href: L(t, i, "~schemas")
3216
+ href: R(t, i, "~schemas")
3112
3217
  }), f;
3113
3218
  } catch {
3114
3219
  return [];
3115
3220
  }
3116
3221
  },
3117
- getRoutes: () => Ir({ basePath: t, config: e, client: s })
3222
+ getRoutes: () => zr({ basePath: t, config: e, client: s })
3118
3223
  };
3119
3224
  };
3120
3225
  export {
3121
- ha as A,
3226
+ ya as A,
3227
+ gs as B,
3122
3228
  mt as C,
3123
- ma as G,
3124
- ps as L,
3125
- pa as O,
3126
- Or as P,
3127
- is as Q,
3128
- qt as S,
3229
+ hs as D,
3230
+ kt as E,
3231
+ rn as F,
3232
+ va as G,
3233
+ ja as H,
3234
+ ys as L,
3235
+ ba as O,
3236
+ kr as P,
3237
+ ms as Q,
3238
+ Ee as S,
3129
3239
  h as T,
3130
3240
  Qe as U,
3131
- Is as a,
3241
+ Fs as a,
3132
3242
  pt as b,
3133
3243
  ht as c,
3134
- Ms as d,
3135
- Js as e,
3136
- Bt as f,
3137
- Zt as g,
3138
- Us as h,
3139
- Ls as i,
3140
- ct as j,
3141
- da as k,
3142
- hs as l,
3143
- hr as m,
3144
- Fe as n,
3145
- Dt as o,
3146
- ns as p,
3147
- $s as q,
3148
- xe as r,
3149
- A as s,
3150
- ss as t,
3151
- Pr as u,
3152
- ua as v,
3153
- ms as w,
3154
- cs as x,
3155
- Lt as y,
3156
- Yt as z
3244
+ Js as d,
3245
+ tr as e,
3246
+ Ht as f,
3247
+ sn as g,
3248
+ Xs as h,
3249
+ ie as i,
3250
+ $e as j,
3251
+ le as k,
3252
+ G as l,
3253
+ jr as m,
3254
+ qs as n,
3255
+ Bt as o,
3256
+ ct as p,
3257
+ ga as q,
3258
+ vs as r,
3259
+ O as s,
3260
+ Be as t,
3261
+ qr as u,
3262
+ Ft as v,
3263
+ is as w,
3264
+ Ds as x,
3265
+ ye as y,
3266
+ ls as z
3157
3267
  };
3158
- //# sourceMappingURL=index-sS7O9W-R.js.map
3268
+ //# sourceMappingURL=index-BXYvD5-7.js.map