zudoku 0.42.0 → 0.42.1

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 (525) hide show
  1. package/dist/app/main.js +0 -6
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +288 -420
  4. package/dist/config/validators/common.js +0 -10
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +108 -161
  7. package/dist/index.d.ts +0 -1
  8. package/dist/index.js +0 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/components/Markdown.d.ts +1 -3
  11. package/dist/lib/components/Markdown.js +14 -8
  12. package/dist/lib/components/Markdown.js.map +1 -1
  13. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  14. package/dist/lib/components/index.d.ts +1 -2
  15. package/dist/lib/core/ZudokuContext.d.ts +0 -7
  16. package/dist/lib/core/ZudokuContext.js.map +1 -1
  17. package/dist/lib/errors/ErrorAlert.js +1 -1
  18. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  19. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  20. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  21. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  22. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  23. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  24. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  25. package/dist/lib/ui/Callout.js +1 -1
  26. package/dist/lib/ui/Callout.js.map +1 -1
  27. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -10
  28. package/dist/lib/ui/SyntaxHighlight.js +60 -10
  29. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  30. package/dist/lib/util/MdxComponents.d.ts +3 -9
  31. package/dist/lib/util/MdxComponents.js +10 -9
  32. package/dist/lib/util/MdxComponents.js.map +1 -1
  33. package/dist/vite/config.js +0 -34
  34. package/dist/vite/config.js.map +1 -1
  35. package/dist/vite/plugin-mdx.js +11 -4
  36. package/dist/vite/plugin-mdx.js.map +1 -1
  37. package/dist/vite/plugin.js +0 -2
  38. package/dist/vite/plugin.js.map +1 -1
  39. package/lib/AuthenticationPlugin-DPCuR3xm.js +58 -0
  40. package/lib/{AuthenticationPlugin-EeQpQI3D.js.map → AuthenticationPlugin-DPCuR3xm.js.map} +1 -1
  41. package/lib/{Button-Bdk_Ij3U.js → Button-BBNrKpQd.js} +3 -3
  42. package/lib/{Button-Bdk_Ij3U.js.map → Button-BBNrKpQd.js.map} +1 -1
  43. package/lib/{Callout-XadUe37J.js → Callout-D3Ja4OPX.js} +12 -12
  44. package/lib/{Callout-XadUe37J.js.map → Callout-D3Ja4OPX.js.map} +1 -1
  45. package/lib/{CategoryHeading-DZi-Szor.js → CategoryHeading-D06WK_Wo.js} +2 -2
  46. package/lib/{CategoryHeading-DZi-Szor.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  47. package/lib/{Dialog-CNf2oWXG.js → Dialog-ByYz4ABw.js} +2 -2
  48. package/lib/{Dialog-CNf2oWXG.js.map → Dialog-ByYz4ABw.js.map} +1 -1
  49. package/lib/{Drawer-BPBxzel2.js → Drawer-CEwbkLDb.js} +25 -25
  50. package/lib/{Drawer-BPBxzel2.js.map → Drawer-CEwbkLDb.js.map} +1 -1
  51. package/lib/Markdown-mFpg_n9p.js +17125 -0
  52. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  53. package/lib/MdxPage-Cm7atiW3.js +85 -0
  54. package/lib/{MdxPage-Dxbq6lFr.js.map → MdxPage-Cm7atiW3.js.map} +1 -1
  55. package/lib/{OasProvider-DKpTJMH2.js → OasProvider-CZiF_RMW.js} +4 -4
  56. package/lib/{OasProvider-DKpTJMH2.js.map → OasProvider-CZiF_RMW.js.map} +1 -1
  57. package/lib/{OperationList-DVOyNeno.js → OperationList-CMMzLfIZ.js} +1417 -1385
  58. package/lib/{OperationList-DVOyNeno.js.map → OperationList-CMMzLfIZ.js.map} +1 -1
  59. package/lib/{Pagination-COMmV-g9.js → Pagination-DLPL5z77.js} +4 -4
  60. package/lib/{Pagination-COMmV-g9.js.map → Pagination-DLPL5z77.js.map} +1 -1
  61. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  62. package/lib/{RouteGuard-CGqivwrh.js.map → RouteGuard-DRtEu9nh.js.map} +1 -1
  63. package/lib/{SchemaList-BTWzXyYQ.js → SchemaList-_d3Mf4IX.js} +44 -43
  64. package/lib/{SchemaList-BTWzXyYQ.js.map → SchemaList-_d3Mf4IX.js.map} +1 -1
  65. package/lib/{SchemaView-DNKKW3nB.js → SchemaView-J7Srn-Iy.js} +11 -7
  66. package/lib/{SchemaView-DNKKW3nB.js.map → SchemaView-J7Srn-Iy.js.map} +1 -1
  67. package/lib/Select-CT64Ou40.js +223 -0
  68. package/lib/{Select-m-ITdvFa.js.map → Select-CT64Ou40.js.map} +1 -1
  69. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  70. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  71. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  72. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  73. package/lib/{Toc-CzMOgcPS.js → Toc-D_tV8_Ri.js} +3 -3
  74. package/lib/{Toc-CzMOgcPS.js.map → Toc-D_tV8_Ri.js.map} +1 -1
  75. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js → chunk-BAXFHI7N-BVBOl9s0.js} +264 -257
  76. package/lib/{chunk-BAXFHI7N-CFrZQ7Oh.js.map → chunk-BAXFHI7N-BVBOl9s0.js.map} +1 -1
  77. package/lib/{circular-D__GEK2G.js → circular-ByJI6Mci.js} +47 -47
  78. package/lib/{circular-D__GEK2G.js.map → circular-ByJI6Mci.js.map} +1 -1
  79. package/lib/{cn-CwJPJKOE.js → cn-qaFjX9_3.js} +29 -28
  80. package/lib/{cn-CwJPJKOE.js.map → cn-qaFjX9_3.js.map} +1 -1
  81. package/lib/{createServer-B4l2NSkt.js → createServer-IW7v5hWm.js} +3868 -3724
  82. package/lib/{createServer-B4l2NSkt.js.map → createServer-IW7v5hWm.js.map} +1 -1
  83. package/lib/hook-CldJlP5c.js +1478 -0
  84. package/lib/{hook-CyNmcNr8.js.map → hook-CldJlP5c.js.map} +1 -1
  85. package/lib/{index-CCS3ifKs.js → index-BPqJMdth.js} +733 -690
  86. package/lib/{index-CCS3ifKs.js.map → index-BPqJMdth.js.map} +1 -1
  87. package/lib/{index-Z13x6tPX.js → index-CPNSgwSb.js} +5 -5
  88. package/lib/{index-Z13x6tPX.js.map → index-CPNSgwSb.js.map} +1 -1
  89. package/lib/{index-CrcNWbel.js → index-CuBIgTKC.js} +9 -9
  90. package/lib/{index-CrcNWbel.js.map → index-CuBIgTKC.js.map} +1 -1
  91. package/lib/{index-zddirpDj.js → index-DcHeSvkE.js} +609 -581
  92. package/lib/{index-zddirpDj.js.map → index-DcHeSvkE.js.map} +1 -1
  93. package/lib/index-DnQftvP4.js +5031 -0
  94. package/lib/{index-BcMPFdRU.js.map → index-DnQftvP4.js.map} +1 -1
  95. package/lib/{index--oeBayMa.js → index-DwT-v3zK.js} +2 -2
  96. package/lib/{index--oeBayMa.js.map → index-DwT-v3zK.js.map} +1 -1
  97. package/lib/{index-BvvmIczU.js → index-LNp6rxyU.js} +2 -2
  98. package/lib/{index-BvvmIczU.js.map → index-LNp6rxyU.js.map} +1 -1
  99. package/lib/invariant-Caa8-XvF.js +26 -0
  100. package/lib/{invariant-D3QcI9fa.js.map → invariant-Caa8-XvF.js.map} +1 -1
  101. package/lib/mutation-DBQh7AOZ.js +211 -0
  102. package/lib/{mutation-narTVsCe.js.map → mutation-DBQh7AOZ.js.map} +1 -1
  103. package/lib/prism-bash.min-HHIMdNJ_.js +7 -0
  104. package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -0
  105. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  106. package/lib/prism-csharp.min-C43x1RY2.js.map +1 -0
  107. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  108. package/lib/prism-java.min-CQzr40NQ.js.map +1 -0
  109. package/lib/prism-javascript.min-CEqHqgbm.js +9 -0
  110. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -0
  111. package/lib/prism-json.min-B1GJqK1k.js +2 -0
  112. package/lib/prism-json.min-B1GJqK1k.js.map +1 -0
  113. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  114. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  115. package/lib/prism-markdown.min-C0Qn0m-5.js +61 -0
  116. package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -0
  117. package/lib/prism-markup-BNGj0Tvm.js +174 -0
  118. package/lib/prism-markup-BNGj0Tvm.js.map +1 -0
  119. package/lib/prism-objectivec.min-BXSWqpJJ.js +2 -0
  120. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -0
  121. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  122. package/lib/prism-ruby.min-L9OdQ6tU.js.map +1 -0
  123. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  124. package/lib/prism-typescript.min-qTySPvCh.js.map +1 -0
  125. package/lib/processors/removeParameters.js +28 -27
  126. package/lib/processors/removeParameters.js.map +1 -1
  127. package/lib/processors/removePaths.js +17 -17
  128. package/lib/processors/removePaths.js.map +1 -1
  129. package/lib/ui/Accordion.js +1 -1
  130. package/lib/ui/ActionButton.js +2 -2
  131. package/lib/ui/Alert.js +2 -2
  132. package/lib/ui/AlertDialog.js +1 -1
  133. package/lib/ui/Badge.js +2 -2
  134. package/lib/ui/Breadcrumb.js +1 -1
  135. package/lib/ui/Button.js +2 -2
  136. package/lib/ui/Callout.js +7 -7
  137. package/lib/ui/Callout.js.map +1 -1
  138. package/lib/ui/Card.js +1 -1
  139. package/lib/ui/Carousel.js +175 -175
  140. package/lib/ui/Carousel.js.map +1 -1
  141. package/lib/ui/Checkbox.js +1 -1
  142. package/lib/ui/Command.js +58 -58
  143. package/lib/ui/Command.js.map +1 -1
  144. package/lib/ui/Dialog.js +1 -1
  145. package/lib/ui/Drawer.js +2 -2
  146. package/lib/ui/DropdownMenu.js +1 -1
  147. package/lib/ui/Form.js +1 -1
  148. package/lib/ui/HoverCard.js +1 -1
  149. package/lib/ui/Input.js +1 -1
  150. package/lib/ui/Label.js +2 -2
  151. package/lib/ui/Pagination.js +1 -1
  152. package/lib/ui/Popover.js +1 -1
  153. package/lib/ui/Progress.js +1 -1
  154. package/lib/ui/RadioGroup.js +1 -1
  155. package/lib/ui/ScrollArea.js +1 -1
  156. package/lib/ui/Select.js +1 -1
  157. package/lib/ui/Skeleton.js +1 -1
  158. package/lib/ui/Slider.js +1 -1
  159. package/lib/ui/Switch.js +1 -1
  160. package/lib/ui/SyntaxHighlight.js +6 -4
  161. package/lib/ui/SyntaxHighlight.js.map +1 -1
  162. package/lib/ui/Tabs.js +1 -1
  163. package/lib/ui/Textarea.js +1 -1
  164. package/lib/ui/Toggle.js +2 -2
  165. package/lib/ui/ToggleGroup.js +1 -1
  166. package/lib/ui/Tooltip.js +1 -1
  167. package/lib/ui/util.js +1 -1
  168. package/lib/{useExposedProps-n1u49409.js → useExposedProps-DbIZXspi.js} +2 -2
  169. package/lib/{useExposedProps-n1u49409.js.map → useExposedProps-DbIZXspi.js.map} +1 -1
  170. package/lib/zudoku.auth-auth0.js +31 -28
  171. package/lib/zudoku.auth-auth0.js.map +1 -1
  172. package/lib/zudoku.auth-clerk.js +68 -62
  173. package/lib/zudoku.auth-clerk.js.map +1 -1
  174. package/lib/zudoku.auth-openid.js +483 -475
  175. package/lib/zudoku.auth-openid.js.map +1 -1
  176. package/lib/zudoku.components.js +7 -7
  177. package/lib/zudoku.hooks.js +2 -2
  178. package/lib/zudoku.plugin-api-catalog.js +45 -45
  179. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  180. package/lib/zudoku.plugin-api-keys.js +6 -6
  181. package/lib/zudoku.plugin-custom-pages.js +3 -3
  182. package/lib/zudoku.plugin-markdown.js +28 -25
  183. package/lib/zudoku.plugin-markdown.js.map +1 -1
  184. package/lib/zudoku.plugin-openapi.js +3 -3
  185. package/lib/zudoku.plugin-redirect.js +1 -1
  186. package/lib/zudoku.plugin-search-inkeep.js +27 -26
  187. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  188. package/lib/zudoku.plugin-search-pagefind.js +110 -107
  189. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  190. package/package.json +6 -16
  191. package/src/app/main.css +3 -53
  192. package/src/app/main.tsx +0 -7
  193. package/src/lib/components/Markdown.tsx +24 -29
  194. package/src/lib/core/ZudokuContext.ts +0 -4
  195. package/src/lib/errors/ErrorAlert.tsx +1 -1
  196. package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -5
  197. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  198. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  199. package/src/lib/ui/Callout.tsx +1 -1
  200. package/src/lib/ui/SyntaxHighlight.tsx +182 -18
  201. package/src/lib/util/MdxComponents.tsx +14 -27
  202. package/dist/lib/shiki.d.ts +0 -35
  203. package/dist/lib/shiki.js +0 -103
  204. package/dist/lib/shiki.js.map +0 -1
  205. package/dist/lib/ui/CodeBlock.d.ts +0 -16
  206. package/dist/lib/ui/CodeBlock.js +0 -18
  207. package/dist/lib/ui/CodeBlock.js.map +0 -1
  208. package/dist/vite/plugin-shiki-register.d.ts +0 -3
  209. package/dist/vite/plugin-shiki-register.js +0 -38
  210. package/dist/vite/plugin-shiki-register.js.map +0 -1
  211. package/lib/AuthenticationPlugin-EeQpQI3D.js +0 -55
  212. package/lib/Markdown-1l-DtDbF.js +0 -7688
  213. package/lib/Markdown-1l-DtDbF.js.map +0 -1
  214. package/lib/MdxPage-Dxbq6lFr.js +0 -84
  215. package/lib/RouteGuard-CGqivwrh.js +0 -733
  216. package/lib/Select-m-ITdvFa.js +0 -211
  217. package/lib/SlotletProvider-DhK1Fmm9.js +0 -254
  218. package/lib/SlotletProvider-DhK1Fmm9.js.map +0 -1
  219. package/lib/SyntaxHighlight-CJ6FoYvt.js +0 -9104
  220. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +0 -1
  221. package/lib/hook-CyNmcNr8.js +0 -1443
  222. package/lib/index-BcMPFdRU.js +0 -4975
  223. package/lib/invariant-D3QcI9fa.js +0 -22
  224. package/lib/mutation-narTVsCe.js +0 -196
  225. package/lib/ui/CodeBlock.js +0 -83
  226. package/lib/ui/CodeBlock.js.map +0 -1
  227. package/src/lib/shiki.ts +0 -129
  228. package/src/lib/ui/CodeBlock.tsx +0 -102
  229. package/src/shiki/langs/abap.js +0 -1
  230. package/src/shiki/langs/actionscript-3.js +0 -1
  231. package/src/shiki/langs/ada.js +0 -1
  232. package/src/shiki/langs/angular-expression.js +0 -1
  233. package/src/shiki/langs/angular-html.js +0 -1
  234. package/src/shiki/langs/angular-inline-style.js +0 -1
  235. package/src/shiki/langs/angular-inline-template.js +0 -1
  236. package/src/shiki/langs/angular-let-declaration.js +0 -1
  237. package/src/shiki/langs/angular-template-blocks.js +0 -1
  238. package/src/shiki/langs/angular-template.js +0 -1
  239. package/src/shiki/langs/angular-ts.js +0 -1
  240. package/src/shiki/langs/apache.js +0 -1
  241. package/src/shiki/langs/apex.js +0 -1
  242. package/src/shiki/langs/apl.js +0 -1
  243. package/src/shiki/langs/applescript.js +0 -1
  244. package/src/shiki/langs/ara.js +0 -1
  245. package/src/shiki/langs/asciidoc.js +0 -1
  246. package/src/shiki/langs/asm.js +0 -1
  247. package/src/shiki/langs/astro.js +0 -1
  248. package/src/shiki/langs/awk.js +0 -1
  249. package/src/shiki/langs/ballerina.js +0 -1
  250. package/src/shiki/langs/bat.js +0 -1
  251. package/src/shiki/langs/beancount.js +0 -1
  252. package/src/shiki/langs/berry.js +0 -1
  253. package/src/shiki/langs/bibtex.js +0 -1
  254. package/src/shiki/langs/bicep.js +0 -1
  255. package/src/shiki/langs/blade.js +0 -1
  256. package/src/shiki/langs/bsl.js +0 -1
  257. package/src/shiki/langs/c.js +0 -1
  258. package/src/shiki/langs/cadence.js +0 -1
  259. package/src/shiki/langs/cairo.js +0 -1
  260. package/src/shiki/langs/clarity.js +0 -1
  261. package/src/shiki/langs/clojure.js +0 -1
  262. package/src/shiki/langs/cmake.js +0 -1
  263. package/src/shiki/langs/cobol.js +0 -1
  264. package/src/shiki/langs/codeowners.js +0 -1
  265. package/src/shiki/langs/codeql.js +0 -1
  266. package/src/shiki/langs/coffee.js +0 -1
  267. package/src/shiki/langs/common-lisp.js +0 -1
  268. package/src/shiki/langs/coq.js +0 -1
  269. package/src/shiki/langs/cpp-macro.js +0 -1
  270. package/src/shiki/langs/cpp.js +0 -1
  271. package/src/shiki/langs/crystal.js +0 -1
  272. package/src/shiki/langs/csharp.js +0 -1
  273. package/src/shiki/langs/css.js +0 -1
  274. package/src/shiki/langs/csv.js +0 -1
  275. package/src/shiki/langs/cue.js +0 -1
  276. package/src/shiki/langs/cypher.js +0 -1
  277. package/src/shiki/langs/d.js +0 -1
  278. package/src/shiki/langs/dart.js +0 -1
  279. package/src/shiki/langs/dax.js +0 -1
  280. package/src/shiki/langs/desktop.js +0 -1
  281. package/src/shiki/langs/diff.js +0 -1
  282. package/src/shiki/langs/docker.js +0 -1
  283. package/src/shiki/langs/dotenv.js +0 -1
  284. package/src/shiki/langs/dream-maker.js +0 -1
  285. package/src/shiki/langs/edge.js +0 -1
  286. package/src/shiki/langs/elixir.js +0 -1
  287. package/src/shiki/langs/elm.js +0 -1
  288. package/src/shiki/langs/emacs-lisp.js +0 -1
  289. package/src/shiki/langs/erb.js +0 -1
  290. package/src/shiki/langs/erlang.js +0 -1
  291. package/src/shiki/langs/es-tag-css.js +0 -1
  292. package/src/shiki/langs/es-tag-glsl.js +0 -1
  293. package/src/shiki/langs/es-tag-html.js +0 -1
  294. package/src/shiki/langs/es-tag-sql.js +0 -1
  295. package/src/shiki/langs/es-tag-xml.js +0 -1
  296. package/src/shiki/langs/fennel.js +0 -1
  297. package/src/shiki/langs/fish.js +0 -1
  298. package/src/shiki/langs/fluent.js +0 -1
  299. package/src/shiki/langs/fortran-fixed-form.js +0 -1
  300. package/src/shiki/langs/fortran-free-form.js +0 -1
  301. package/src/shiki/langs/fsharp.js +0 -1
  302. package/src/shiki/langs/gdresource.js +0 -1
  303. package/src/shiki/langs/gdscript.js +0 -1
  304. package/src/shiki/langs/gdshader.js +0 -1
  305. package/src/shiki/langs/genie.js +0 -1
  306. package/src/shiki/langs/gherkin.js +0 -1
  307. package/src/shiki/langs/git-commit.js +0 -1
  308. package/src/shiki/langs/git-rebase.js +0 -1
  309. package/src/shiki/langs/gleam.js +0 -1
  310. package/src/shiki/langs/glimmer-js.js +0 -1
  311. package/src/shiki/langs/glimmer-ts.js +0 -1
  312. package/src/shiki/langs/glsl.js +0 -1
  313. package/src/shiki/langs/gnuplot.js +0 -1
  314. package/src/shiki/langs/go.js +0 -1
  315. package/src/shiki/langs/graphql.js +0 -1
  316. package/src/shiki/langs/groovy.js +0 -1
  317. package/src/shiki/langs/hack.js +0 -1
  318. package/src/shiki/langs/haml.js +0 -1
  319. package/src/shiki/langs/handlebars.js +0 -1
  320. package/src/shiki/langs/haskell.js +0 -1
  321. package/src/shiki/langs/haxe.js +0 -1
  322. package/src/shiki/langs/hcl.js +0 -1
  323. package/src/shiki/langs/hjson.js +0 -1
  324. package/src/shiki/langs/hlsl.js +0 -1
  325. package/src/shiki/langs/html-derivative.js +0 -1
  326. package/src/shiki/langs/html.js +0 -1
  327. package/src/shiki/langs/http.js +0 -1
  328. package/src/shiki/langs/hxml.js +0 -1
  329. package/src/shiki/langs/hy.js +0 -1
  330. package/src/shiki/langs/imba.js +0 -1
  331. package/src/shiki/langs/ini.js +0 -1
  332. package/src/shiki/langs/java.js +0 -1
  333. package/src/shiki/langs/javascript.js +0 -1
  334. package/src/shiki/langs/jinja-html.js +0 -1
  335. package/src/shiki/langs/jinja.js +0 -1
  336. package/src/shiki/langs/jison.js +0 -1
  337. package/src/shiki/langs/json.js +0 -1
  338. package/src/shiki/langs/json5.js +0 -1
  339. package/src/shiki/langs/jsonc.js +0 -1
  340. package/src/shiki/langs/jsonl.js +0 -1
  341. package/src/shiki/langs/jsonnet.js +0 -1
  342. package/src/shiki/langs/jssm.js +0 -1
  343. package/src/shiki/langs/jsx.js +0 -1
  344. package/src/shiki/langs/julia.js +0 -1
  345. package/src/shiki/langs/kotlin.js +0 -1
  346. package/src/shiki/langs/kusto.js +0 -1
  347. package/src/shiki/langs/latex.js +0 -1
  348. package/src/shiki/langs/lean.js +0 -1
  349. package/src/shiki/langs/less.js +0 -1
  350. package/src/shiki/langs/liquid.js +0 -1
  351. package/src/shiki/langs/llvm.js +0 -1
  352. package/src/shiki/langs/log.js +0 -1
  353. package/src/shiki/langs/logo.js +0 -1
  354. package/src/shiki/langs/lua.js +0 -1
  355. package/src/shiki/langs/luau.js +0 -1
  356. package/src/shiki/langs/make.js +0 -1
  357. package/src/shiki/langs/markdown-vue.js +0 -1
  358. package/src/shiki/langs/markdown.js +0 -1
  359. package/src/shiki/langs/marko.js +0 -1
  360. package/src/shiki/langs/matlab.js +0 -1
  361. package/src/shiki/langs/mdc.js +0 -1
  362. package/src/shiki/langs/mdx.js +0 -1
  363. package/src/shiki/langs/mermaid.js +0 -1
  364. package/src/shiki/langs/mipsasm.js +0 -1
  365. package/src/shiki/langs/mojo.js +0 -1
  366. package/src/shiki/langs/move.js +0 -1
  367. package/src/shiki/langs/narrat.js +0 -1
  368. package/src/shiki/langs/nextflow.js +0 -1
  369. package/src/shiki/langs/nginx.js +0 -1
  370. package/src/shiki/langs/nim.js +0 -1
  371. package/src/shiki/langs/nix.js +0 -1
  372. package/src/shiki/langs/nushell.js +0 -1
  373. package/src/shiki/langs/objective-c.js +0 -1
  374. package/src/shiki/langs/objective-cpp.js +0 -1
  375. package/src/shiki/langs/ocaml.js +0 -1
  376. package/src/shiki/langs/pascal.js +0 -1
  377. package/src/shiki/langs/perl.js +0 -1
  378. package/src/shiki/langs/php.js +0 -1
  379. package/src/shiki/langs/plsql.js +0 -1
  380. package/src/shiki/langs/po.js +0 -1
  381. package/src/shiki/langs/polar.js +0 -1
  382. package/src/shiki/langs/postcss.js +0 -1
  383. package/src/shiki/langs/powerquery.js +0 -1
  384. package/src/shiki/langs/powershell.js +0 -1
  385. package/src/shiki/langs/prisma.js +0 -1
  386. package/src/shiki/langs/prolog.js +0 -1
  387. package/src/shiki/langs/proto.js +0 -1
  388. package/src/shiki/langs/pug.js +0 -1
  389. package/src/shiki/langs/puppet.js +0 -1
  390. package/src/shiki/langs/purescript.js +0 -1
  391. package/src/shiki/langs/python.js +0 -1
  392. package/src/shiki/langs/qml.js +0 -1
  393. package/src/shiki/langs/qmldir.js +0 -1
  394. package/src/shiki/langs/qss.js +0 -1
  395. package/src/shiki/langs/r.js +0 -1
  396. package/src/shiki/langs/racket.js +0 -1
  397. package/src/shiki/langs/raku.js +0 -1
  398. package/src/shiki/langs/razor.js +0 -1
  399. package/src/shiki/langs/reg.js +0 -1
  400. package/src/shiki/langs/regexp.js +0 -1
  401. package/src/shiki/langs/rel.js +0 -1
  402. package/src/shiki/langs/riscv.js +0 -1
  403. package/src/shiki/langs/rst.js +0 -1
  404. package/src/shiki/langs/ruby.js +0 -1
  405. package/src/shiki/langs/rust.js +0 -1
  406. package/src/shiki/langs/sas.js +0 -1
  407. package/src/shiki/langs/sass.js +0 -1
  408. package/src/shiki/langs/scala.js +0 -1
  409. package/src/shiki/langs/scheme.js +0 -1
  410. package/src/shiki/langs/scss.js +0 -1
  411. package/src/shiki/langs/sdbl.js +0 -1
  412. package/src/shiki/langs/shaderlab.js +0 -1
  413. package/src/shiki/langs/shellscript.js +0 -1
  414. package/src/shiki/langs/shellsession.js +0 -1
  415. package/src/shiki/langs/smalltalk.js +0 -1
  416. package/src/shiki/langs/solidity.js +0 -1
  417. package/src/shiki/langs/soy.js +0 -1
  418. package/src/shiki/langs/sparql.js +0 -1
  419. package/src/shiki/langs/splunk.js +0 -1
  420. package/src/shiki/langs/sql.js +0 -1
  421. package/src/shiki/langs/ssh-config.js +0 -1
  422. package/src/shiki/langs/stata.js +0 -1
  423. package/src/shiki/langs/stylus.js +0 -1
  424. package/src/shiki/langs/svelte.js +0 -1
  425. package/src/shiki/langs/swift.js +0 -1
  426. package/src/shiki/langs/system-verilog.js +0 -1
  427. package/src/shiki/langs/systemd.js +0 -1
  428. package/src/shiki/langs/talonscript.js +0 -1
  429. package/src/shiki/langs/tasl.js +0 -1
  430. package/src/shiki/langs/tcl.js +0 -1
  431. package/src/shiki/langs/templ.js +0 -1
  432. package/src/shiki/langs/terraform.js +0 -1
  433. package/src/shiki/langs/tex.js +0 -1
  434. package/src/shiki/langs/toml.js +0 -1
  435. package/src/shiki/langs/ts-tags.js +0 -1
  436. package/src/shiki/langs/tsv.js +0 -1
  437. package/src/shiki/langs/tsx.js +0 -1
  438. package/src/shiki/langs/turtle.js +0 -1
  439. package/src/shiki/langs/twig.js +0 -1
  440. package/src/shiki/langs/typescript.js +0 -1
  441. package/src/shiki/langs/typespec.js +0 -1
  442. package/src/shiki/langs/typst.js +0 -1
  443. package/src/shiki/langs/v.js +0 -1
  444. package/src/shiki/langs/vala.js +0 -1
  445. package/src/shiki/langs/vb.js +0 -1
  446. package/src/shiki/langs/verilog.js +0 -1
  447. package/src/shiki/langs/vhdl.js +0 -1
  448. package/src/shiki/langs/viml.js +0 -1
  449. package/src/shiki/langs/vue-directives.js +0 -1
  450. package/src/shiki/langs/vue-html.js +0 -1
  451. package/src/shiki/langs/vue-interpolations.js +0 -1
  452. package/src/shiki/langs/vue-sfc-style-variable-injection.js +0 -1
  453. package/src/shiki/langs/vue.js +0 -1
  454. package/src/shiki/langs/vyper.js +0 -1
  455. package/src/shiki/langs/wasm.js +0 -1
  456. package/src/shiki/langs/wenyan.js +0 -1
  457. package/src/shiki/langs/wgsl.js +0 -1
  458. package/src/shiki/langs/wikitext.js +0 -1
  459. package/src/shiki/langs/wit.js +0 -1
  460. package/src/shiki/langs/wolfram.js +0 -1
  461. package/src/shiki/langs/xml.js +0 -1
  462. package/src/shiki/langs/xsl.js +0 -1
  463. package/src/shiki/langs/yaml.js +0 -1
  464. package/src/shiki/langs/zenscript.js +0 -1
  465. package/src/shiki/langs/zig.js +0 -1
  466. package/src/shiki/themes/andromeeda.js +0 -1
  467. package/src/shiki/themes/aurora-x.js +0 -1
  468. package/src/shiki/themes/ayu-dark.js +0 -1
  469. package/src/shiki/themes/catppuccin-frappe.js +0 -1
  470. package/src/shiki/themes/catppuccin-latte.js +0 -1
  471. package/src/shiki/themes/catppuccin-macchiato.js +0 -1
  472. package/src/shiki/themes/catppuccin-mocha.js +0 -1
  473. package/src/shiki/themes/dark-plus.js +0 -1
  474. package/src/shiki/themes/dracula-soft.js +0 -1
  475. package/src/shiki/themes/dracula.js +0 -1
  476. package/src/shiki/themes/everforest-dark.js +0 -1
  477. package/src/shiki/themes/everforest-light.js +0 -1
  478. package/src/shiki/themes/github-dark-default.js +0 -1
  479. package/src/shiki/themes/github-dark-dimmed.js +0 -1
  480. package/src/shiki/themes/github-dark-high-contrast.js +0 -1
  481. package/src/shiki/themes/github-dark.js +0 -1
  482. package/src/shiki/themes/github-light-default.js +0 -1
  483. package/src/shiki/themes/github-light-high-contrast.js +0 -1
  484. package/src/shiki/themes/github-light.js +0 -1
  485. package/src/shiki/themes/gruvbox-dark-hard.js +0 -1
  486. package/src/shiki/themes/gruvbox-dark-medium.js +0 -1
  487. package/src/shiki/themes/gruvbox-dark-soft.js +0 -1
  488. package/src/shiki/themes/gruvbox-light-hard.js +0 -1
  489. package/src/shiki/themes/gruvbox-light-medium.js +0 -1
  490. package/src/shiki/themes/gruvbox-light-soft.js +0 -1
  491. package/src/shiki/themes/houston.js +0 -1
  492. package/src/shiki/themes/kanagawa-dragon.js +0 -1
  493. package/src/shiki/themes/kanagawa-lotus.js +0 -1
  494. package/src/shiki/themes/kanagawa-wave.js +0 -1
  495. package/src/shiki/themes/laserwave.js +0 -1
  496. package/src/shiki/themes/light-plus.js +0 -1
  497. package/src/shiki/themes/material-theme-darker.js +0 -1
  498. package/src/shiki/themes/material-theme-lighter.js +0 -1
  499. package/src/shiki/themes/material-theme-ocean.js +0 -1
  500. package/src/shiki/themes/material-theme-palenight.js +0 -1
  501. package/src/shiki/themes/material-theme.js +0 -1
  502. package/src/shiki/themes/min-dark.js +0 -1
  503. package/src/shiki/themes/min-light.js +0 -1
  504. package/src/shiki/themes/monokai.js +0 -1
  505. package/src/shiki/themes/night-owl.js +0 -1
  506. package/src/shiki/themes/nord.js +0 -1
  507. package/src/shiki/themes/one-dark-pro.js +0 -1
  508. package/src/shiki/themes/one-light.js +0 -1
  509. package/src/shiki/themes/plastic.js +0 -1
  510. package/src/shiki/themes/poimandres.js +0 -1
  511. package/src/shiki/themes/red.js +0 -1
  512. package/src/shiki/themes/rose-pine-dawn.js +0 -1
  513. package/src/shiki/themes/rose-pine-moon.js +0 -1
  514. package/src/shiki/themes/rose-pine.js +0 -1
  515. package/src/shiki/themes/slack-dark.js +0 -1
  516. package/src/shiki/themes/slack-ochin.js +0 -1
  517. package/src/shiki/themes/snazzy-light.js +0 -1
  518. package/src/shiki/themes/solarized-dark.js +0 -1
  519. package/src/shiki/themes/solarized-light.js +0 -1
  520. package/src/shiki/themes/synthwave-84.js +0 -1
  521. package/src/shiki/themes/tokyo-night.js +0 -1
  522. package/src/shiki/themes/vesper.js +0 -1
  523. package/src/shiki/themes/vitesse-black.js +0 -1
  524. package/src/shiki/themes/vitesse-dark.js +0 -1
  525. package/src/shiki/themes/vitesse-light.js +0 -1
@@ -1,77 +1,89 @@
1
+ var Ft = Object.defineProperty;
2
+ var tt = (t) => {
3
+ throw TypeError(t);
4
+ };
5
+ var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
6
+ var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Ht = (t, n, s) => n.has(t) || tt("Cannot " + s);
7
+ var pe = (t, n, s) => (Ht(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
1
8
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
- import { ChevronRightIcon as B, CheckIcon as Rt, DotIcon as kt, Check as It, XIcon as Ot, Circle as qt, ChevronDownIcon as Et, InfoIcon as _e, LogInIcon as Lt, CirclePlayIcon as At } from "lucide-react";
3
- import { r as Dt, m as Be } from "./chunk-BAXFHI7N-CFrZQ7Oh.js";
4
- import { p as nt, q as st, r as Vt, m as Ft, t as zt, f as R, l as Ht } from "./hook-CyNmcNr8.js";
5
- import { Button as G } from "./ui/Button.js";
6
- import { Z as Mt } from "./invariant-D3QcI9fa.js";
7
- import { VisuallyHidden as _t } from "@radix-ui/react-visually-hidden";
8
- import * as g from "react";
9
- import { Fragment as q, useRef as M, useEffect as Y, useMemo as Bt, useState as $, useCallback as Gt, useTransition as Jt } from "react";
10
- import { D as ve, a as je, b as be, d as at, e as rt, f as Ut } from "./Dialog-CNf2oWXG.js";
11
- import { S as me, a as ue, b as pe, c as he, e as _, u as Qt } from "./Select-m-ITdvFa.js";
12
- import { b as Ne, u as we, C as E, a as Wt, F as Zt } from "./index.esm-D2ZUREQN.js";
13
- import { c as ot } from "./index-Z13x6tPX.js";
14
- import { c as u } from "./cn-CwJPJKOE.js";
15
- import { Tabs as it, TabsList as lt, TabsTrigger as V, TabsContent as F } from "./ui/Tabs.js";
16
- import { o as Xt } from "./objectEntries-yMIkr2mI.js";
17
- import { u as Kt } from "./useLatest-hmRS46UF.js";
18
- import { z as Yt } from "./index--oeBayMa.js";
19
- import { B as L } from "./Button-Bdk_Ij3U.js";
20
- import * as v from "@radix-ui/react-dropdown-menu";
21
- import * as xe from "@radix-ui/react-checkbox";
22
- import * as ee from "@radix-ui/react-popover";
23
- import { PopoverAnchor as en } from "@radix-ui/react-popover";
24
- import { P as tn } from "./index-CrcNWbel.js";
25
- import { g as nn, h as sn, C as an, b as rn, f as on } from "./Callout-XadUe37J.js";
26
- import { Input as Ce } from "./ui/Input.js";
27
- import { Slot as ln } from "@radix-ui/react-slot";
28
- import * as dt from "@radix-ui/react-label";
29
- import * as J from "@radix-ui/react-radio-group";
30
- import { S as dn } from "./Spinner-mNLZ6awP.js";
31
- import { Callout as cn } from "./ui/Callout.js";
32
- import { Card as ct, CardHeader as mn, CardTitle as un, CardContent as pn } from "./ui/Card.js";
33
- import { Collapsible as Ge, CollapsibleTrigger as Je, CollapsibleContent as Ue } from "./ui/Collapsible.js";
34
- import * as Se from "@radix-ui/react-collapsible";
35
- import { S as hn } from "./SyntaxHighlight-CJ6FoYvt.js";
36
- let oe;
37
- const xn = (t) => {
38
- if (t.errors?.[0])
39
- throw new Mt(t.errors[0].message, {
9
+ import { ChevronRightIcon as Q, CheckIcon as Mt, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
10
+ import { r as Zt, m as st } from "./chunk-BAXFHI7N-BVBOl9s0.js";
11
+ import { p as xt, q as ft, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-CldJlP5c.js";
12
+ import { Button as W } from "./ui/Button.js";
13
+ import { Z as tn } from "./invariant-Caa8-XvF.js";
14
+ import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
15
+ import * as v from "react";
16
+ import { Fragment as q, useRef as G, useEffect as se, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
17
+ import { D as Pe, a as ke, b as Ie, d as gt, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
18
+ import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-CT64Ou40.js";
19
+ import { b as Re, u as Oe, C as L, a as dn, F as cn } from "./index.esm-D2ZUREQN.js";
20
+ import { c as vt } from "./index-CPNSgwSb.js";
21
+ import { c as u } from "./cn-qaFjX9_3.js";
22
+ import { Tabs as jt, TabsList as bt, TabsTrigger as H, TabsContent as M } from "./ui/Tabs.js";
23
+ import { o as mn } from "./objectEntries-yMIkr2mI.js";
24
+ import { u as un } from "./useLatest-hmRS46UF.js";
25
+ import { z as pn } from "./index-DwT-v3zK.js";
26
+ import { B as A } from "./Button-BBNrKpQd.js";
27
+ import * as b from "@radix-ui/react-dropdown-menu";
28
+ import * as Ce from "@radix-ui/react-checkbox";
29
+ import * as ae from "@radix-ui/react-popover";
30
+ import { PopoverAnchor as hn } from "@radix-ui/react-popover";
31
+ import { P as xn } from "./index-CuBIgTKC.js";
32
+ import { g as fn, h as gn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
33
+ import { Input as qe } from "./ui/Input.js";
34
+ import { Slot as bn } from "@radix-ui/react-slot";
35
+ import * as Nt from "@radix-ui/react-label";
36
+ import * as Z from "@radix-ui/react-radio-group";
37
+ import { S as Nn } from "./Spinner-mNLZ6awP.js";
38
+ import { Callout as wn } from "./ui/Callout.js";
39
+ import { Card as wt, CardHeader as Cn, CardTitle as Sn, CardContent as Tn } from "./ui/Card.js";
40
+ import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
41
+ import * as Le from "@radix-ui/react-collapsible";
42
+ import { S as $n } from "./SyntaxHighlight-CxhyyMkF.js";
43
+ let xe;
44
+ const Pn = (t) => {
45
+ var n;
46
+ if ((n = t.errors) != null && n[0])
47
+ throw new tn(t.errors[0].message, {
40
48
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
41
49
  });
42
50
  };
43
- class fn {
51
+ var ie, le;
52
+ class kn {
44
53
  constructor(n) {
54
+ he(this, ie, async () => (xe || (xe = import("./createServer-IW7v5hWm.js").then(
55
+ (n) => n.createServer(this.config)
56
+ )), xe));
57
+ he(this, le, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, ie).call(this)).fetch("http://localhost/graphql", n));
58
+ J(this, "fetch", async (n, s) => {
59
+ var l;
60
+ const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, le).call(this, {
61
+ method: "POST",
62
+ body: JSON.stringify({ query: n, variables: s, operationName: a }),
63
+ headers: { "Content-Type": "application/json" }
64
+ });
65
+ if (!r.ok)
66
+ throw new Error("Network response was not ok");
67
+ const i = await r.json();
68
+ return Pn(i), i.data;
69
+ });
45
70
  this.config = n;
46
71
  }
47
- #e = async () => (oe || (oe = import("./createServer-B4l2NSkt.js").then(
48
- (n) => n.createServer(this.config)
49
- )), oe);
50
- #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
51
- fetch = async (n, s) => {
52
- const a = n.match(/query (\w+)/)?.[1], r = await this.#t({
53
- method: "POST",
54
- body: JSON.stringify({ query: n, variables: s, operationName: a }),
55
- headers: { "Content-Type": "application/json" }
56
- });
57
- if (!r.ok)
58
- throw new Error("Network response was not ok");
59
- const i = await r.json();
60
- return xn(i), i.data;
61
- };
62
72
  }
63
- class A extends String {
64
- __apiType;
65
- value;
66
- __meta__;
67
- constructor(n, s) {
68
- super(n), this.value = n, this.__meta__ = s;
73
+ ie = new WeakMap(), le = new WeakMap();
74
+ class E extends String {
75
+ constructor(s, a) {
76
+ super(s);
77
+ J(this, "__apiType");
78
+ J(this, "value");
79
+ J(this, "__meta__");
80
+ this.value = s, this.__meta__ = a;
69
81
  }
70
82
  toString() {
71
83
  return this.value;
72
84
  }
73
85
  }
74
- const gn = new A(
86
+ const In = new E(
75
87
  `
76
88
  fragment OperationsFragment on OperationItem {
77
89
  slug
@@ -139,7 +151,7 @@ const gn = new A(
139
151
  }
140
152
  `,
141
153
  { fragmentName: "OperationsFragment" }
142
- ), yn = new A(`
154
+ ), Rn = new E(`
143
155
  query ServersQuery($input: JSON!, $type: SchemaType!) {
144
156
  schema(input: $input, type: $type) {
145
157
  url
@@ -148,13 +160,13 @@ const gn = new A(
148
160
  }
149
161
  }
150
162
  }
151
- `), vn = new A(`
163
+ `), On = new E(`
152
164
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
153
165
  schema(input: $input, type: $type) {
154
166
  openapi
155
167
  }
156
168
  }
157
- `), jn = new A(`
169
+ `), qn = new E(`
158
170
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
159
171
  schema(input: $input, type: $type) {
160
172
  servers {
@@ -246,7 +258,7 @@ const gn = new A(
246
258
  schema
247
259
  }
248
260
  }
249
- }`), bn = new A(`
261
+ }`), Ln = new E(`
250
262
  query GetSchemas($input: JSON!, $type: SchemaType!) {
251
263
  schema(input: $input, type: $type) {
252
264
  title
@@ -261,7 +273,7 @@ const gn = new A(
261
273
  }
262
274
  }
263
275
  }
264
- `), Nn = new A(`
276
+ `), An = new E(`
265
277
  query getServerQuery($input: JSON!, $type: SchemaType!) {
266
278
  schema(input: $input, type: $type) {
267
279
  url
@@ -270,7 +282,7 @@ const gn = new A(
270
282
  }
271
283
  }
272
284
  }
273
- `), wn = new A(`
285
+ `), Dn = new E(`
274
286
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
275
287
  schema(input: $input, type: $type) {
276
288
  tags {
@@ -292,19 +304,19 @@ const gn = new A(
292
304
  }
293
305
  }
294
306
  }
295
- `), Cn = {
296
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": yn,
297
- "\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": gn,
298
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": vn,
299
- "\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": jn,
300
- "\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": bn,
301
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Nn,
302
- "\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": wn
307
+ `), En = {
308
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
309
+ "\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": In,
310
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
311
+ "\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": qn,
312
+ "\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": Ln,
313
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
314
+ "\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": Dn
303
315
  };
304
- function Sn(t) {
305
- return Cn[t] ?? {};
316
+ function Vn(t) {
317
+ return En[t] ?? {};
306
318
  }
307
- const Tn = ot(
319
+ const Fn = vt(
308
320
  "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",
309
321
  {
310
322
  variants: {
@@ -317,17 +329,17 @@ const Tn = ot(
317
329
  variant: "default"
318
330
  }
319
331
  }
320
- ), fe = g.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
332
+ ), Se = v.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
321
333
  "div",
322
334
  {
323
335
  ref: a,
324
336
  role: "alert",
325
- className: u(Tn({ variant: n }), t),
337
+ className: u(Fn({ variant: n }), t),
326
338
  ...s
327
339
  }
328
340
  ));
329
- fe.displayName = "Alert";
330
- const ge = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
341
+ Se.displayName = "Alert";
342
+ const Te = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
331
343
  "h5",
332
344
  {
333
345
  ref: s,
@@ -335,8 +347,8 @@ const ge = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
335
347
  ...n
336
348
  }
337
349
  ));
338
- ge.displayName = "AlertTitle";
339
- const ye = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
350
+ Te.displayName = "AlertTitle";
351
+ const $e = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
340
352
  "div",
341
353
  {
342
354
  ref: s,
@@ -344,34 +356,34 @@ const ye = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
344
356
  ...n
345
357
  }
346
358
  ));
347
- ye.displayName = "AlertDescription";
348
- const $n = ({
359
+ $e.displayName = "AlertDescription";
360
+ const zn = ({
349
361
  path: t,
350
362
  renderParam: n
351
363
  }) => {
352
364
  let s = 0;
353
365
  return t.split("/").map((a, r, i) => {
354
- const l = Array.from(a.matchAll(/{([^}]+)}/g)), m = [];
366
+ const l = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
355
367
  let d = 0;
356
368
  return l.forEach((p) => {
357
- const [x, N] = p;
358
- if (!N) return;
359
- const y = p.index;
360
- y > d && m.push(
361
- /* @__PURE__ */ e.jsx(q, { children: a.slice(d, y) }, `text-${d}-${y}`)
362
- ), m.push(
363
- /* @__PURE__ */ e.jsx(q, { children: n({ name: N, originalValue: x, index: s++ }) }, `param-${N}`)
364
- ), d = y + x.length;
365
- }), d < a.length && m.push(
369
+ const [f, w] = p;
370
+ if (!w) return;
371
+ const j = p.index;
372
+ j > d && c.push(
373
+ /* @__PURE__ */ e.jsx(q, { children: a.slice(d, j) }, `text-${d}-${j}`)
374
+ ), c.push(
375
+ /* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: f, index: s++ }) }, `param-${w}`)
376
+ ), d = j + f.length;
377
+ }), d < a.length && c.push(
366
378
  /* @__PURE__ */ e.jsx(q, { children: a.slice(d) }, `text-${d}-${a.length}`)
367
379
  ), // eslint-disable-next-line react/no-array-index-key
368
380
  /* @__PURE__ */ e.jsxs(q, { children: [
369
- m,
381
+ c,
370
382
  r < i.length - 1 && "/",
371
383
  /* @__PURE__ */ e.jsx("wbr", {})
372
384
  ] }, `${a}-${r}`);
373
385
  });
374
- }, mt = g.forwardRef(
386
+ }, Ct = v.forwardRef(
375
387
  ({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
376
388
  "textarea",
377
389
  {
@@ -384,25 +396,25 @@ const $n = ({
384
396
  }
385
397
  )
386
398
  );
387
- mt.displayName = "Textarea";
388
- const ie = (t) => Math.abs(
399
+ Ct.displayName = "Textarea";
400
+ const fe = (t) => Math.abs(
389
401
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
390
- ), le = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ie(n) + ie(s)}`)) : ie(t), Qe = (t, n = {}) => {
391
- const s = (3 * le(t) + 2 * le(t) + le(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
402
+ ), ge = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${fe(n) + fe(s)}`)) : fe(t), it = (t, n = {}) => {
403
+ const s = (3 * ge(t) + 2 * ge(t) + ge(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
392
404
  return `${s}deg ${a}% ${r}%`;
393
- }, de = "data-linked-param", Pn = (t) => {
394
- const { resolvedTheme: n } = Yt();
405
+ }, ye = "data-linked-param", Hn = (t) => {
406
+ const { resolvedTheme: n } = pn();
395
407
  return {
396
- text: Qe(
408
+ text: it(
397
409
  t,
398
410
  n === "light" ? { saturation: 95, lightness: 38 } : {}
399
411
  ),
400
- background: Qe(
412
+ background: it(
401
413
  t,
402
414
  n === "light" ? { saturation: 85, lightness: 40 } : {}
403
415
  )
404
416
  };
405
- }, ut = ({
417
+ }, St = ({
406
418
  name: t,
407
419
  className: n,
408
420
  slug: s,
@@ -410,25 +422,25 @@ const ie = (t) => Math.abs(
410
422
  children: r,
411
423
  onClick: i
412
424
  }) => {
413
- const l = M(null), m = s?.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: x } = Pn(d), N = `hsl(${p} / 100%)`, y = `hsl(${x} / 10%)`, c = `hsl(${x} / 50%)`;
414
- return Y(() => {
415
- if (!m || !l.current) return;
416
- const f = () => {
417
- document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
418
- b instanceof HTMLElement && (b.dataset.active = "true");
425
+ const l = G(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: f } = Hn(d), w = `hsl(${p} / 100%)`, j = `hsl(${f} / 10%)`, h = `hsl(${f} / 50%)`;
426
+ return se(() => {
427
+ if (!c || !l.current) return;
428
+ const g = () => {
429
+ document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
430
+ x instanceof HTMLElement && (x.dataset.active = "true");
419
431
  });
420
- }, h = () => {
421
- document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
422
- b instanceof HTMLElement && (b.dataset.active = "false");
432
+ }, m = () => {
433
+ document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
434
+ x instanceof HTMLElement && (x.dataset.active = "false");
423
435
  });
424
- }, j = l.current;
425
- return j.addEventListener("mouseenter", f), j.addEventListener("mouseleave", h), () => {
426
- j.removeEventListener("mouseenter", f), j.removeEventListener("mouseleave", h);
436
+ }, y = l.current;
437
+ return y.addEventListener("mouseenter", g), y.addEventListener("mouseleave", m), () => {
438
+ y.removeEventListener("mouseenter", g), y.removeEventListener("mouseleave", m);
427
439
  };
428
- }, [m]), /* @__PURE__ */ e.jsx(
440
+ }, [c]), /* @__PURE__ */ e.jsx(
429
441
  "span",
430
442
  {
431
- [de]: m,
443
+ [ye]: c,
432
444
  className: u(
433
445
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
434
446
  "relative transition-all duration-100 rounded-lg",
@@ -441,31 +453,35 @@ const ie = (t) => Math.abs(
441
453
  ref: l,
442
454
  onClick: i,
443
455
  style: {
444
- "--param-color": N,
445
- "--border-color": c,
446
- "--background-color": y
456
+ "--param-color": w,
457
+ "--border-color": h,
458
+ "--background-color": j
447
459
  },
448
460
  children: r ?? t
449
461
  }
450
462
  );
451
- }, Rn = nt()(
452
- st(
463
+ }, Mn = xt()(
464
+ ft(
453
465
  (t) => ({
454
466
  selectedServer: void 0,
455
467
  setSelectedServer: (n) => t({ selectedServer: n })
456
468
  }),
457
469
  { name: "zudoku-selected-server" }
458
470
  )
459
- ), kn = (t) => {
460
- const { selectedServer: n, setSelectedServer: s } = Rn();
461
- return { selectedServer: Bt(
462
- () => n && t.some((r) => r.url === n) ? n : t.at(0)?.url ?? "",
471
+ ), _n = (t) => {
472
+ const { selectedServer: n, setSelectedServer: s } = Mn();
473
+ return { selectedServer: sn(
474
+ () => {
475
+ var r;
476
+ return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
477
+ },
463
478
  [n, t]
464
479
  ), setSelectedServer: s };
465
- }, In = (t, n, s) => {
480
+ }, Bn = (t, n, s) => {
466
481
  const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
482
+ var d;
467
483
  const l = i.replace(/[:{}]/g, "");
468
- return s.pathParams.find((d) => d.name === l)?.value ?? i;
484
+ return ((d = s.pathParams.find((p) => p.name === l)) == null ? void 0 : d.value) ?? i;
469
485
  }), r = new URL(
470
486
  a.replace(/^\//, ""),
471
487
  t.endsWith("/") ? t : `${t}/`
@@ -473,8 +489,8 @@ const ie = (t) => Math.abs(
473
489
  return s.queryParams.filter((i) => i.active).forEach((i) => {
474
490
  r.searchParams.set(i.name, i.value);
475
491
  }), r;
476
- }, pt = v.Root, ht = v.Trigger, On = v.Group, qn = g.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
477
- v.SubTrigger,
492
+ }, Tt = b.Root, $t = b.Trigger, Gn = b.Group, Jn = v.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
493
+ b.SubTrigger,
478
494
  {
479
495
  ref: r,
480
496
  className: u(
@@ -485,13 +501,13 @@ const ie = (t) => Math.abs(
485
501
  ...a,
486
502
  children: [
487
503
  s,
488
- /* @__PURE__ */ e.jsx(B, { className: "ml-auto h-4 w-4" })
504
+ /* @__PURE__ */ e.jsx(Q, { className: "ml-auto h-4 w-4" })
489
505
  ]
490
506
  }
491
507
  ));
492
- qn.displayName = v.SubTrigger.displayName;
493
- const En = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
494
- v.SubContent,
508
+ Jn.displayName = b.SubTrigger.displayName;
509
+ const Un = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
510
+ b.SubContent,
495
511
  {
496
512
  ref: s,
497
513
  className: u(
@@ -501,9 +517,9 @@ const En = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
501
517
  ...n
502
518
  }
503
519
  ));
504
- En.displayName = v.SubContent.displayName;
505
- const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(v.Portal, { children: /* @__PURE__ */ e.jsx(
506
- v.Content,
520
+ Un.displayName = b.SubContent.displayName;
521
+ const Ae = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
522
+ b.Content,
507
523
  {
508
524
  ref: a,
509
525
  sideOffset: n,
@@ -515,9 +531,9 @@ const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
515
531
  ...s
516
532
  }
517
533
  ) }));
518
- Te.displayName = v.Content.displayName;
519
- const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
520
- v.Item,
534
+ Ae.displayName = b.Content.displayName;
535
+ const De = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
536
+ b.Item,
521
537
  {
522
538
  ref: a,
523
539
  className: u(
@@ -528,9 +544,9 @@ const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
528
544
  ...s
529
545
  }
530
546
  ));
531
- $e.displayName = v.Item.displayName;
532
- const Ln = g.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
533
- v.CheckboxItem,
547
+ De.displayName = b.Item.displayName;
548
+ const Qn = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
549
+ b.CheckboxItem,
534
550
  {
535
551
  ref: r,
536
552
  className: u(
@@ -540,14 +556,14 @@ const Ln = g.forwardRef(({ className: t, children: n, checked: s, ...a }, r) =>
540
556
  checked: s,
541
557
  ...a,
542
558
  children: [
543
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Rt, { className: "h-4 w-4" }) }) }),
559
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Mt, { className: "h-4 w-4" }) }) }),
544
560
  n
545
561
  ]
546
562
  }
547
563
  ));
548
- Ln.displayName = v.CheckboxItem.displayName;
549
- const An = g.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
550
- v.RadioItem,
564
+ Qn.displayName = b.CheckboxItem.displayName;
565
+ const Wn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
566
+ b.RadioItem,
551
567
  {
552
568
  ref: a,
553
569
  className: u(
@@ -556,14 +572,14 @@ const An = g.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__
556
572
  ),
557
573
  ...s,
558
574
  children: [
559
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(kt, { className: "h-4 w-4 fill-current" }) }) }),
575
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
560
576
  n
561
577
  ]
562
578
  }
563
579
  ));
564
- An.displayName = v.RadioItem.displayName;
565
- const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
566
- v.Label,
580
+ Wn.displayName = b.RadioItem.displayName;
581
+ const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
582
+ b.Label,
567
583
  {
568
584
  ref: a,
569
585
  className: u(
@@ -574,41 +590,44 @@ const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
574
590
  ...s
575
591
  }
576
592
  ));
577
- xt.displayName = v.Label.displayName;
578
- const ft = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
579
- v.Separator,
593
+ Pt.displayName = b.Label.displayName;
594
+ const kt = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
595
+ b.Separator,
580
596
  {
581
597
  ref: s,
582
598
  className: u("-mx-1 my-1 h-px bg-muted", t),
583
599
  ...n
584
600
  }
585
601
  ));
586
- ft.displayName = v.Separator.displayName;
587
- const Dn = ({
602
+ kt.displayName = b.Separator.displayName;
603
+ const Zn = ({
588
604
  examples: t,
589
605
  onSelect: n
590
- }) => /* @__PURE__ */ e.jsxs(pt, { children: [
591
- /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(L, { variant: "outline", children: "Use Example" }) }),
592
- /* @__PURE__ */ e.jsx(Te, { className: "max-w-72", children: t.map((s) => /* @__PURE__ */ e.jsxs("div", { children: [
593
- /* @__PURE__ */ e.jsx(xt, { children: s.mediaType }),
594
- /* @__PURE__ */ e.jsx(ft, {}),
595
- /* @__PURE__ */ e.jsx(On, { children: s.examples?.map((a) => /* @__PURE__ */ e.jsx(
596
- $e,
597
- {
598
- onSelect: () => n(a, s.mediaType),
599
- children: /* @__PURE__ */ e.jsx(
600
- "span",
601
- {
602
- className: "line-clamp-1",
603
- title: a.summary ?? a.name,
604
- children: a.summary ?? a.name
605
- }
606
- )
607
- },
608
- a.name
609
- )) })
610
- ] }, s.mediaType)) })
611
- ] }), U = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
606
+ }) => /* @__PURE__ */ e.jsxs(Tt, { children: [
607
+ /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
608
+ /* @__PURE__ */ e.jsx(Ae, { className: "max-w-72", children: t.map((s) => {
609
+ var a;
610
+ return /* @__PURE__ */ e.jsxs("div", { children: [
611
+ /* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
612
+ /* @__PURE__ */ e.jsx(kt, {}),
613
+ /* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
614
+ De,
615
+ {
616
+ onSelect: () => n(r, s.mediaType),
617
+ children: /* @__PURE__ */ e.jsx(
618
+ "span",
619
+ {
620
+ className: "line-clamp-1",
621
+ title: r.summary ?? r.name,
622
+ children: r.summary ?? r.name
623
+ }
624
+ )
625
+ },
626
+ r.name
627
+ )) })
628
+ ] }, s.mediaType);
629
+ }) })
630
+ ] }), X = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
612
631
  "div",
613
632
  {
614
633
  ref: s,
@@ -619,8 +638,8 @@ const Dn = ({
619
638
  ...n
620
639
  }
621
640
  ));
622
- U.displayName = "Card";
623
- const Vn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
641
+ X.displayName = "Card";
642
+ const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
624
643
  "div",
625
644
  {
626
645
  ref: s,
@@ -628,8 +647,8 @@ const Vn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
628
647
  ...n
629
648
  }
630
649
  ));
631
- Vn.displayName = "CardHeader";
632
- const Fn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
650
+ Xn.displayName = "CardHeader";
651
+ const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
633
652
  "h3",
634
653
  {
635
654
  ref: s,
@@ -637,8 +656,8 @@ const Fn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
637
656
  ...n
638
657
  }
639
658
  ));
640
- Fn.displayName = "CardTitle";
641
- const zn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
659
+ Kn.displayName = "CardTitle";
660
+ const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
642
661
  "p",
643
662
  {
644
663
  ref: s,
@@ -646,10 +665,10 @@ const zn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
646
665
  ...n
647
666
  }
648
667
  ));
649
- zn.displayName = "CardDescription";
650
- const Hn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
651
- Hn.displayName = "CardContent";
652
- const Mn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
668
+ Yn.displayName = "CardDescription";
669
+ const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
670
+ es.displayName = "CardContent";
671
+ const ts = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
653
672
  "div",
654
673
  {
655
674
  ref: s,
@@ -657,9 +676,9 @@ const Mn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
657
676
  ...n
658
677
  }
659
678
  ));
660
- Mn.displayName = "CardFooter";
661
- const se = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
662
- xe.Root,
679
+ ts.displayName = "CardFooter";
680
+ const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
681
+ Ce.Root,
663
682
  {
664
683
  ref: s,
665
684
  className: u(
@@ -669,17 +688,17 @@ const se = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
669
688
  ),
670
689
  ...n,
671
690
  children: /* @__PURE__ */ e.jsx(
672
- xe.Indicator,
691
+ Ce.Indicator,
673
692
  {
674
693
  className: u("flex items-center justify-center text-current"),
675
- children: /* @__PURE__ */ e.jsx(It, { className: "h-4 w-4" })
694
+ children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
676
695
  }
677
696
  )
678
697
  }
679
698
  ));
680
- se.displayName = xe.Root.displayName;
681
- const _n = ee.Root, gt = g.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ee.Portal, { children: /* @__PURE__ */ e.jsx(
682
- ee.Content,
699
+ de.displayName = Ce.Root.displayName;
700
+ const ns = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
701
+ ae.Content,
683
702
  {
684
703
  ref: r,
685
704
  align: n,
@@ -691,8 +710,8 @@ const _n = ee.Root, gt = g.forwardRef(({ className: t, align: n = "center", side
691
710
  ...a
692
711
  }
693
712
  ) }));
694
- gt.displayName = ee.Content.displayName;
695
- const Bn = ({
713
+ It.displayName = ae.Content.displayName;
714
+ const ss = ({
696
715
  value: t,
697
716
  options: n,
698
717
  onChange: s,
@@ -701,13 +720,13 @@ const Bn = ({
701
720
  onEnterPress: i,
702
721
  ref: l
703
722
  }) => {
704
- const [m, d] = $(!1), [p, x] = $(!1), N = tn((c) => c.filtered.count), y = M(null);
705
- return /* @__PURE__ */ e.jsxs(_n, { open: m, children: [
706
- /* @__PURE__ */ e.jsx(en, { children: /* @__PURE__ */ e.jsx(
707
- sn,
723
+ const [c, d] = k(!1), [p, f] = k(!1), w = xn((h) => h.filtered.count), j = G(null);
724
+ return /* @__PURE__ */ e.jsxs(ns, { open: c, children: [
725
+ /* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
726
+ gn,
708
727
  {
709
- ref: (c) => {
710
- y.current = c, typeof l == "function" ? l(c) : l && (l.current = c);
728
+ ref: (h) => {
729
+ j.current = h, typeof l == "function" ? l(h) : l && (l.current = h);
711
730
  },
712
731
  value: t,
713
732
  placeholder: r,
@@ -716,61 +735,62 @@ const Bn = ({
716
735
  onBlur: () => {
717
736
  p || d(!1);
718
737
  },
719
- onKeyDown: (c) => {
720
- c.key === "Enter" && (d(!1), y.current?.blur(), i?.(c));
738
+ onKeyDown: (h) => {
739
+ var g;
740
+ h.key === "Enter" && (d(!1), (g = j.current) == null || g.blur(), i == null || i(h));
721
741
  },
722
- onValueChange: (c) => s(c)
742
+ onValueChange: (h) => s(h)
723
743
  }
724
744
  ) }),
725
745
  /* @__PURE__ */ e.jsx(
726
- gt,
746
+ It,
727
747
  {
728
- onMouseEnter: () => x(!0),
729
- onMouseLeave: () => x(!1),
730
- onOpenAutoFocus: (c) => c.preventDefault(),
748
+ onMouseEnter: () => f(!0),
749
+ onMouseLeave: () => f(!1),
750
+ onOpenAutoFocus: (h) => h.preventDefault(),
731
751
  className: u("p-0 w-[--radix-popover-trigger-width]", {
732
- "border-0": N === 0
752
+ "border-0": w === 0
733
753
  }),
734
754
  align: "start",
735
755
  side: "bottom",
736
- onWheel: (c) => {
737
- c.stopPropagation();
756
+ onWheel: (h) => {
757
+ h.stopPropagation();
738
758
  },
739
- onTouchMove: (c) => {
740
- c.stopPropagation();
759
+ onTouchMove: (h) => {
760
+ h.stopPropagation();
741
761
  },
742
- children: /* @__PURE__ */ e.jsx(an, { className: "max-h-[140px]", children: n.map((c) => /* @__PURE__ */ e.jsx(
743
- rn,
762
+ children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((h) => /* @__PURE__ */ e.jsx(
763
+ vn,
744
764
  {
745
- value: c,
746
- onSelect: (f) => {
747
- s(f), d(!1);
765
+ value: h,
766
+ onSelect: (g) => {
767
+ s(g), d(!1);
748
768
  },
749
769
  className: "cursor-pointer",
750
- children: c
770
+ children: h
751
771
  },
752
- c
772
+ h
753
773
  )) })
754
774
  }
755
775
  )
756
776
  ] });
757
- }, te = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(nn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Bn, { ...n }) }), Pe = (t, n) => {
758
- const s = g.forwardRef(({ className: a, asChild: r, ...i }, l) => {
759
- const m = r ? ln : t;
760
- return g.createElement(m, {
777
+ }, re = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(fn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ss, { ...n }) }), Ee = (t, n) => {
778
+ const s = v.forwardRef(({ className: a, asChild: r, ...i }, l) => {
779
+ const c = r ? bn : t;
780
+ return v.createElement(c, {
761
781
  ...i,
762
782
  ref: l,
763
783
  className: typeof n == "function" ? n({ className: a }) : u(n, a)
764
784
  });
765
785
  });
766
786
  return s.displayName = `VariantComponent(${t})`, s;
767
- }, Re = Pe(
787
+ }, Ve = Ee(
768
788
  "div",
769
789
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
770
- ), ke = Pe(
790
+ ), Fe = Ee(
771
791
  "div",
772
792
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
773
- ), Gn = Object.freeze([
793
+ ), as = Object.freeze([
774
794
  "Accept",
775
795
  "Accept-Encoding",
776
796
  "Accept-Language",
@@ -797,66 +817,70 @@ const Bn = ({
797
817
  "Set-Cookie",
798
818
  "User-Agent",
799
819
  "X-Requested-With"
800
- ]), Jn = ({
820
+ ]), rs = ({
801
821
  control: t,
802
822
  headers: n
803
823
  }) => {
804
- const { fields: s, append: a, remove: r } = Ne({
824
+ const { fields: s, append: a, remove: r } = Re({
805
825
  control: t,
806
826
  name: "headers"
807
- }), { setValue: i, watch: l } = we(), m = M([]), d = M([]), p = l("headers"), x = Gt(() => {
827
+ }), { setValue: i, watch: l } = Oe(), c = G([]), d = G([]), p = l("headers"), f = an(() => {
808
828
  a({ name: "", value: "", active: !1 });
809
829
  }, [a]);
810
- Y(() => {
811
- p.length === 0 && x();
812
- }, [p, x]);
813
- const N = (f) => {
814
- m.current[f]?.focus();
815
- }, y = (f) => {
816
- x(), requestAnimationFrame(() => d.current[f + 1]?.focus());
817
- }, c = n.filter((f) => !p.some((h) => h.name === f.name)).map(({ name: f }) => f);
830
+ se(() => {
831
+ p.length === 0 && f();
832
+ }, [p, f]);
833
+ const w = (g) => {
834
+ var m;
835
+ (m = c.current[g]) == null || m.focus();
836
+ }, j = (g) => {
837
+ f(), requestAnimationFrame(() => {
838
+ var m;
839
+ return (m = d.current[g + 1]) == null ? void 0 : m.focus();
840
+ });
841
+ }, h = n.filter((g) => !p.some((m) => m.name === g.name)).map(({ name: g }) => g);
818
842
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
819
- /* @__PURE__ */ e.jsx(U, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((f, h) => {
820
- const j = n.find(
821
- (b) => b.name === l(`headers.${h}.name`)
843
+ /* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((g, m) => {
844
+ const y = n.find(
845
+ (x) => x.name === l(`headers.${m}.name`)
822
846
  );
823
- return /* @__PURE__ */ e.jsxs(ke, { children: [
847
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
824
848
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
825
849
  /* @__PURE__ */ e.jsx(
826
- E,
850
+ L,
827
851
  {
828
852
  control: t,
829
- name: `headers.${h}.active`,
830
- render: ({ field: b }) => /* @__PURE__ */ e.jsx(
831
- se,
853
+ name: `headers.${m}.active`,
854
+ render: ({ field: x }) => /* @__PURE__ */ e.jsx(
855
+ de,
832
856
  {
833
- id: `headers.${h}.active`,
834
- checked: b.value,
835
- onCheckedChange: (k) => {
836
- b.onChange(k);
857
+ id: `headers.${m}.active`,
858
+ checked: x.value,
859
+ onCheckedChange: (T) => {
860
+ x.onChange(T);
837
861
  }
838
862
  }
839
863
  )
840
864
  }
841
865
  ),
842
866
  /* @__PURE__ */ e.jsx(
843
- E,
867
+ L,
844
868
  {
845
869
  control: t,
846
- name: `headers.${h}.name`,
847
- render: ({ field: b }) => /* @__PURE__ */ e.jsx(
848
- te,
870
+ name: `headers.${m}.name`,
871
+ render: ({ field: x }) => /* @__PURE__ */ e.jsx(
872
+ re,
849
873
  {
850
- ...b,
874
+ ...x,
851
875
  placeholder: "Name",
852
876
  className: "border-0 shadow-none bg-transparent text-xs font-mono",
853
- options: [...c, ...Gn],
854
- onEnterPress: () => N(h),
855
- onChange: (k) => {
856
- b.onChange(k), i(`headers.${h}.active`, !0);
877
+ options: [...h, ...as],
878
+ onEnterPress: () => w(m),
879
+ onChange: (T) => {
880
+ x.onChange(T), i(`headers.${m}.active`, !0);
857
881
  },
858
- ref: (k) => {
859
- d.current[h] = k;
882
+ ref: (T) => {
883
+ d.current[m] = T;
860
884
  }
861
885
  }
862
886
  )
@@ -865,32 +889,32 @@ const Bn = ({
865
889
  ] }),
866
890
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
867
891
  /* @__PURE__ */ e.jsx(
868
- E,
892
+ L,
869
893
  {
870
894
  control: t,
871
- name: `headers.${h}.value`,
872
- render: ({ field: b }) => j?.enum && j.enum.length > 0 ? /* @__PURE__ */ e.jsx(
873
- te,
895
+ name: `headers.${m}.value`,
896
+ render: ({ field: x }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
897
+ re,
874
898
  {
875
899
  shouldFilter: !1,
876
- value: b.value,
877
- options: j.enum ?? [],
878
- onChange: (I) => {
879
- b.onChange(I), i(`headers.${h}.active`, !0);
900
+ value: x.value,
901
+ options: y.enum ?? [],
902
+ onChange: ($) => {
903
+ x.onChange($), i(`headers.${m}.active`, !0);
880
904
  },
881
905
  className: "font-mono text-xs border-0"
882
906
  }
883
907
  ) : /* @__PURE__ */ e.jsx(
884
- Ce,
908
+ qe,
885
909
  {
886
910
  placeholder: "Value",
887
911
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
888
- ...b,
889
- ref: (I) => {
890
- m.current[h] = I;
912
+ ...x,
913
+ ref: ($) => {
914
+ c.current[m] = $;
891
915
  },
892
- onKeyDown: (I) => {
893
- I.key === "Enter" && I.currentTarget.value.trim() && y(h);
916
+ onKeyDown: ($) => {
917
+ $.key === "Enter" && $.currentTarget.value.trim() && j(m);
894
918
  },
895
919
  autoComplete: "off"
896
920
  }
@@ -898,52 +922,52 @@ const Bn = ({
898
922
  }
899
923
  ),
900
924
  /* @__PURE__ */ e.jsx(
901
- G,
925
+ W,
902
926
  {
903
927
  size: "icon",
904
928
  variant: "ghost",
905
929
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
906
- onClick: () => r(h),
930
+ onClick: () => r(m),
907
931
  type: "button",
908
- children: /* @__PURE__ */ e.jsx(Ot, { size: 16 })
932
+ children: /* @__PURE__ */ e.jsx(Gt, { size: 16 })
909
933
  }
910
934
  )
911
935
  ] })
912
- ] }, f.id);
936
+ ] }, g.id);
913
937
  }) }) }),
914
938
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
915
- G,
939
+ W,
916
940
  {
917
941
  className: "",
918
- onClick: x,
942
+ onClick: f,
919
943
  type: "button",
920
944
  variant: "secondary",
921
945
  children: "Add header"
922
946
  }
923
947
  ) })
924
948
  ] });
925
- }, Un = ot(
949
+ }, os = vt(
926
950
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
927
- ), z = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
928
- dt.Root,
951
+ ), _ = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
952
+ Nt.Root,
929
953
  {
930
954
  ref: s,
931
- className: u(Un(), t),
955
+ className: u(os(), t),
932
956
  ...n
933
957
  }
934
958
  ));
935
- z.displayName = dt.Root.displayName;
936
- const Ie = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
937
- J.Root,
959
+ _.displayName = Nt.Root.displayName;
960
+ const ze = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
961
+ Z.Root,
938
962
  {
939
963
  className: u("grid gap-2", t),
940
964
  ...n,
941
965
  ref: s
942
966
  }
943
967
  ));
944
- Ie.displayName = J.Root.displayName;
945
- const ne = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
946
- J.Item,
968
+ ze.displayName = Z.Root.displayName;
969
+ const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
970
+ Z.Item,
947
971
  {
948
972
  ref: s,
949
973
  className: u(
@@ -951,81 +975,81 @@ const ne = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
951
975
  t
952
976
  ),
953
977
  ...n,
954
- children: /* @__PURE__ */ e.jsx(J.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(qt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
978
+ children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
955
979
  }
956
980
  ));
957
- ne.displayName = J.Item.displayName;
958
- const yt = ({
981
+ oe.displayName = Z.Item.displayName;
982
+ const Rt = ({
959
983
  identities: t,
960
984
  setValue: n,
961
985
  value: s
962
- }) => /* @__PURE__ */ e.jsx(U, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
963
- Ie,
986
+ }) => /* @__PURE__ */ e.jsx(X, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
987
+ ze,
964
988
  {
965
989
  onValueChange: (a) => n(a),
966
990
  value: s,
967
- defaultValue: H,
991
+ defaultValue: B,
968
992
  className: "gap-0",
969
- disabled: t?.length === 0,
993
+ disabled: (t == null ? void 0 : t.length) === 0,
970
994
  children: [
971
995
  /* @__PURE__ */ e.jsxs(
972
- z,
996
+ _,
973
997
  {
974
998
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
975
999
  htmlFor: "none",
976
1000
  children: [
977
- /* @__PURE__ */ e.jsx(ne, { value: H, id: "none", children: "None" }),
978
- /* @__PURE__ */ e.jsx(z, { htmlFor: "none", className: "ml-2", children: "None" })
1001
+ /* @__PURE__ */ e.jsx(oe, { value: B, id: "none", children: "None" }),
1002
+ /* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
979
1003
  ]
980
1004
  }
981
1005
  ),
982
- t?.map((a) => /* @__PURE__ */ e.jsxs(
983
- z,
1006
+ t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
1007
+ _,
984
1008
  {
985
1009
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
986
1010
  children: [
987
- /* @__PURE__ */ e.jsx(ne, { value: a.id, id: a.id, children: a.label }),
988
- /* @__PURE__ */ e.jsx(z, { htmlFor: a.id, className: "ml-2", children: a.label })
1011
+ /* @__PURE__ */ e.jsx(oe, { value: a.id, id: a.id, children: a.label }),
1012
+ /* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
989
1013
  ]
990
1014
  },
991
1015
  a.id
992
1016
  ))
993
1017
  ]
994
1018
  }
995
- ) }), Qn = ({
1019
+ ) }), is = ({
996
1020
  onSubmit: t,
997
1021
  identities: n,
998
1022
  open: s,
999
1023
  onOpenChange: a
1000
1024
  }) => {
1001
- const [r, i] = $(void 0), [l, m] = $(!1);
1002
- return /* @__PURE__ */ e.jsx(ve, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(je, { children: [
1003
- /* @__PURE__ */ e.jsx(be, { children: "Select an auth identity" }),
1004
- /* @__PURE__ */ e.jsx(at, { children: "Please select an identity for this request." }),
1025
+ const [r, i] = k(void 0), [l, c] = k(!1);
1026
+ return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1027
+ /* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
1028
+ /* @__PURE__ */ e.jsx(gt, { children: "Please select an identity for this request." }),
1005
1029
  /* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
1006
- yt,
1030
+ Rt,
1007
1031
  {
1008
1032
  identities: n,
1009
1033
  setValue: i,
1010
1034
  value: r
1011
1035
  }
1012
1036
  ) }),
1013
- /* @__PURE__ */ e.jsxs(rt, { className: "flex flex-col gap-2", children: [
1037
+ /* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
1014
1038
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1015
1039
  /* @__PURE__ */ e.jsx(
1016
- se,
1040
+ de,
1017
1041
  {
1018
1042
  id: "remember",
1019
1043
  checked: l,
1020
- onCheckedChange: (d) => m(
1044
+ onCheckedChange: (d) => c(
1021
1045
  d === "indeterminate" ? !1 : !!d
1022
1046
  )
1023
1047
  }
1024
1048
  ),
1025
- /* @__PURE__ */ e.jsx(z, { htmlFor: "remember", children: "Remember my choice" })
1049
+ /* @__PURE__ */ e.jsx(_, { htmlFor: "remember", children: "Remember my choice" })
1026
1050
  ] }),
1027
1051
  /* @__PURE__ */ e.jsx(
1028
- L,
1052
+ A,
1029
1053
  {
1030
1054
  onClick: () => t({ identity: r, rememberedIdentity: l }),
1031
1055
  children: "Send"
@@ -1033,24 +1057,24 @@ const yt = ({
1033
1057
  )
1034
1058
  ] })
1035
1059
  ] }) });
1036
- }, Wn = ({
1060
+ }, ls = ({
1037
1061
  control: t,
1038
1062
  url: n
1039
1063
  }) => {
1040
- const { fields: s } = Ne({
1064
+ const { fields: s } = Re({
1041
1065
  control: t,
1042
1066
  name: "pathParams"
1043
1067
  }), a = [...s].sort(
1044
1068
  (r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
1045
1069
  );
1046
- return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Re, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(ke, { children: [
1070
+ return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
1047
1071
  /* @__PURE__ */ e.jsx(
1048
- E,
1072
+ L,
1049
1073
  {
1050
1074
  control: t,
1051
1075
  name: `pathParams.${i}.name`,
1052
1076
  render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
1053
- ut,
1077
+ St,
1054
1078
  {
1055
1079
  slug: r.name,
1056
1080
  name: r.name,
@@ -1060,12 +1084,12 @@ const yt = ({
1060
1084
  }
1061
1085
  ),
1062
1086
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1063
- E,
1087
+ L,
1064
1088
  {
1065
1089
  control: t,
1066
1090
  name: `pathParams.${i}.value`,
1067
1091
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
1068
- Ce,
1092
+ qe,
1069
1093
  {
1070
1094
  ...l,
1071
1095
  required: !0,
@@ -1076,30 +1100,30 @@ const yt = ({
1076
1100
  }
1077
1101
  ) })
1078
1102
  ] }, r.id)) }) });
1079
- }, Zn = Pe(
1103
+ }, ds = Ee(
1080
1104
  "input",
1081
1105
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1082
- ), Xn = ({
1106
+ ), cs = ({
1083
1107
  control: t,
1084
1108
  queryParams: n
1085
1109
  }) => {
1086
- const { fields: s } = Ne({
1110
+ const { fields: s } = Re({
1087
1111
  control: t,
1088
1112
  name: "queryParams"
1089
- }), a = we(), r = n.map((i) => !!i.isRequired);
1090
- return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((i, l) => {
1091
- const m = n.find(
1113
+ }), a = Oe(), r = n.map((i) => !!i.isRequired);
1114
+ return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
1115
+ const c = n.find(
1092
1116
  (d) => d.name === a.watch(`queryParams.${l}.name`)
1093
1117
  );
1094
- return /* @__PURE__ */ e.jsxs(ke, { children: [
1118
+ return /* @__PURE__ */ e.jsxs(Fe, { children: [
1095
1119
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1096
1120
  /* @__PURE__ */ e.jsx(
1097
- E,
1121
+ L,
1098
1122
  {
1099
1123
  control: t,
1100
1124
  name: `queryParams.${l}.active`,
1101
1125
  render: ({ field: d }) => /* @__PURE__ */ e.jsx(
1102
- se,
1126
+ de,
1103
1127
  {
1104
1128
  id: `queryParams.${l}.active`,
1105
1129
  className: "mr-2",
@@ -1110,10 +1134,10 @@ const yt = ({
1110
1134
  }
1111
1135
  ),
1112
1136
  /* @__PURE__ */ e.jsx(
1113
- E,
1137
+ L,
1114
1138
  {
1115
1139
  control: t,
1116
- render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(Zn, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1140
+ render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ds, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1117
1141
  "label",
1118
1142
  {
1119
1143
  className: "flex items-center cursor-pointer gap-1",
@@ -1125,7 +1149,7 @@ const yt = ({
1125
1149
  ]
1126
1150
  }
1127
1151
  ) }) : /* @__PURE__ */ e.jsx(
1128
- te,
1152
+ re,
1129
1153
  {
1130
1154
  value: d.value,
1131
1155
  options: n.map((p) => p.name),
@@ -1140,25 +1164,25 @@ const yt = ({
1140
1164
  )
1141
1165
  ] }, i.id),
1142
1166
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1143
- E,
1167
+ L,
1144
1168
  {
1145
1169
  control: t,
1146
- render: ({ field: d }) => m?.enum && m.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1147
- te,
1170
+ render: ({ field: d }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1171
+ re,
1148
1172
  {
1149
1173
  value: d.value,
1150
- options: m.enum ?? [],
1151
- onChange: (x) => {
1152
- d.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
1174
+ options: c.enum ?? [],
1175
+ onChange: (f) => {
1176
+ d.onChange(f), a.setValue(`queryParams.${l}.active`, !0);
1153
1177
  },
1154
1178
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1155
1179
  }
1156
1180
  ) : /* @__PURE__ */ e.jsx(
1157
- Ce,
1181
+ qe,
1158
1182
  {
1159
1183
  ...d,
1160
- onChange: (x) => {
1161
- d.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1184
+ onChange: (f) => {
1185
+ d.onChange(f.target.value), f.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1162
1186
  },
1163
1187
  placeholder: "Enter value",
1164
1188
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1169,8 +1193,8 @@ const yt = ({
1169
1193
  ) })
1170
1194
  ] }, i.id);
1171
1195
  }) }) }) });
1172
- }, Kn = nt()(
1173
- st(
1196
+ }, ms = xt()(
1197
+ ft(
1174
1198
  (t, n) => ({
1175
1199
  rememberedIdentity: null,
1176
1200
  setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
@@ -1180,25 +1204,25 @@ const yt = ({
1180
1204
  }),
1181
1205
  {
1182
1206
  name: "identity-storage",
1183
- storage: Vt(() => sessionStorage)
1207
+ storage: Xt(() => sessionStorage)
1184
1208
  }
1185
1209
  )
1186
- ), Yn = ({
1210
+ ), us = ({
1187
1211
  open: t,
1188
1212
  setOpen: n,
1189
1213
  onSignUp: s,
1190
1214
  onLogin: a
1191
- }) => /* @__PURE__ */ e.jsx(ve, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(je, { children: [
1192
- /* @__PURE__ */ e.jsx(be, { children: "Welcome to the Playground!" }),
1193
- /* @__PURE__ */ e.jsx(at, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1194
- /* @__PURE__ */ e.jsxs(rt, { className: "flex gap-2 sm:justify-between", children: [
1195
- /* @__PURE__ */ e.jsx(L, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1215
+ }) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1216
+ /* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
1217
+ /* @__PURE__ */ e.jsx(gt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1218
+ /* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
1219
+ /* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1196
1220
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
1197
- s && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1198
- a && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "default", onClick: a, children: "Login" })
1221
+ s && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1222
+ a && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "default", onClick: a, children: "Login" })
1199
1223
  ] })
1200
1224
  ] })
1201
- ] }) }), P = {
1225
+ ] }) }), I = {
1202
1226
  green: "text-green-600",
1203
1227
  blue: "text-sky-600",
1204
1228
  yellow: "text-yellow-600",
@@ -1206,45 +1230,45 @@ const yt = ({
1206
1230
  purple: "text-purple-600",
1207
1231
  indigo: "text-indigo-600",
1208
1232
  gray: "text-gray-600"
1209
- }, es = {
1210
- get: P.green,
1211
- post: P.blue,
1212
- put: P.yellow,
1213
- delete: P.red,
1214
- patch: P.purple,
1215
- options: P.indigo,
1216
- head: P.gray,
1217
- trace: P.gray
1218
- }, ts = (t) => es[t.toLocaleLowerCase()] ?? P.gray, ns = ({
1233
+ }, ps = {
1234
+ get: I.green,
1235
+ post: I.blue,
1236
+ put: I.yellow,
1237
+ delete: I.red,
1238
+ patch: I.purple,
1239
+ options: I.indigo,
1240
+ head: I.gray,
1241
+ trace: I.gray
1242
+ }, hs = (t) => ps[t.toLocaleLowerCase()] ?? I.gray, xs = ({
1219
1243
  method: t,
1220
1244
  url: n,
1221
1245
  headers: s,
1222
1246
  body: a
1223
1247
  }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
1224
1248
  /* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
1225
- /* @__PURE__ */ e.jsx("span", { className: u(ts(t), "font-semibold"), children: t }),
1249
+ /* @__PURE__ */ e.jsx("span", { className: u(hs(t), "font-semibold"), children: t }),
1226
1250
  " ",
1227
1251
  /* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
1228
1252
  " ",
1229
1253
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
1230
1254
  ] }),
1231
1255
  /* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
1232
- /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1233
- /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1234
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1256
+ /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1257
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1258
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1235
1259
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1236
1260
  ] }),
1237
- /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1261
+ /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1238
1262
  /* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
1239
1263
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
1240
1264
  ] }, r)) }) })
1241
1265
  ] }),
1242
- /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1243
- /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1244
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1266
+ /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1267
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1268
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1245
1269
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
1246
1270
  ] }),
1247
- /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1271
+ /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1248
1272
  "div",
1249
1273
  {
1250
1274
  className: u(
@@ -1256,29 +1280,29 @@ const yt = ({
1256
1280
  ) }) })
1257
1281
  ] })
1258
1282
  ] })
1259
- ] }), We = Se.Root, Ze = Se.CollapsibleTrigger, Xe = Se.CollapsibleContent;
1260
- function Oe(t) {
1283
+ ] }), lt = Le.Root, dt = Le.CollapsibleTrigger, ct = Le.CollapsibleContent;
1284
+ function He(t) {
1261
1285
  if (t === null) return "null";
1262
1286
  if (Array.isArray(t)) {
1263
1287
  if (t.length === 0) return "any[]";
1264
1288
  const n = t[0];
1265
- return n === void 0 ? "any[]" : `${Oe(n)}[]`;
1289
+ return n === void 0 ? "any[]" : `${He(n)}[]`;
1266
1290
  }
1267
- return typeof t == "object" ? ss(t) : typeof t;
1291
+ return typeof t == "object" ? fs(t) : typeof t;
1268
1292
  }
1269
- function ss(t, n = "") {
1293
+ function fs(t, n = "") {
1270
1294
  const s = ["{"];
1271
1295
  for (const [a, r] of Object.entries(t)) {
1272
- const i = Oe(r);
1296
+ const i = He(r);
1273
1297
  s.push(` ${a}: ${i};`);
1274
1298
  }
1275
1299
  return s.push("}"), s.join(`
1276
1300
  `);
1277
1301
  }
1278
- function as(t) {
1279
- return { lines: [`type GeneratedType = ${Oe(t)};`] };
1302
+ function gs(t) {
1303
+ return { lines: [`type GeneratedType = ${He(t)};`] };
1280
1304
  }
1281
- const rs = {
1305
+ const ys = {
1282
1306
  200: "OK",
1283
1307
  201: "Created",
1284
1308
  202: "Accepted",
@@ -1289,31 +1313,35 @@ const rs = {
1289
1313
  404: "Not Found",
1290
1314
  405: "Method Not Allowed",
1291
1315
  500: "Internal Server Error"
1292
- }, Ke = (t) => {
1316
+ }, mt = (t) => {
1293
1317
  const n = Math.floor(Math.log(t) / Math.log(1e3));
1294
1318
  return `${(t / Math.pow(1e3, n)).toFixed(
1295
1319
  n ? 2 : 0
1296
1320
  )} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1297
- }, os = (t) => Object.entries({
1298
- "application/json": "json",
1299
- "text/json": "json",
1300
- "text/html": "html",
1301
- "text/css": "css",
1302
- "text/javascript": "javascript",
1303
- "application/xml": "xml",
1304
- "application/xhtml+xml": "xhtml"
1305
- }).find(
1306
- ([s]) => t.includes(s)
1307
- )?.[1], is = (t) => {
1308
- const n = t.find(([s, a]) => s === "Content-Type")?.[1] || "";
1309
- return os(n);
1310
- }, ls = (t) => {
1321
+ }, vs = (t) => {
1322
+ var s;
1323
+ return (s = Object.entries({
1324
+ "application/json": "json",
1325
+ "text/json": "json",
1326
+ "text/html": "html",
1327
+ "text/css": "css",
1328
+ "text/javascript": "javascript",
1329
+ "application/xml": "xml",
1330
+ "application/xhtml+xml": "xhtml"
1331
+ }).find(
1332
+ ([a]) => t.includes(a)
1333
+ )) == null ? void 0 : s[1];
1334
+ }, js = (t) => {
1335
+ var s;
1336
+ const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
1337
+ return vs(n);
1338
+ }, bs = (t) => {
1311
1339
  try {
1312
1340
  return JSON.stringify(JSON.parse(t), null, 2);
1313
1341
  } catch {
1314
1342
  return null;
1315
1343
  }
1316
- }, ds = (t) => {
1344
+ }, Ns = (t) => {
1317
1345
  const n = [
1318
1346
  "Content-Type",
1319
1347
  "Content-Length",
@@ -1327,7 +1355,7 @@ const rs = {
1327
1355
  const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
1328
1356
  return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
1329
1357
  });
1330
- }, Ye = 64e3, cs = ({
1358
+ }, ut = 64e3, ws = ({
1331
1359
  body: t = "",
1332
1360
  headers: n,
1333
1361
  status: s,
@@ -1335,53 +1363,54 @@ const rs = {
1335
1363
  size: r,
1336
1364
  url: i
1337
1365
  }) => {
1338
- const l = is(n), m = ls(t), d = m || t, [p, x] = $(
1339
- m ? "formatted" : "raw"
1340
- ), N = Ft({
1366
+ var g;
1367
+ const l = js(n), c = bs(t), d = c || t, [p, f] = k(
1368
+ c ? "formatted" : "raw"
1369
+ ), w = Kt({
1341
1370
  queryKey: ["types", d],
1342
- queryFn: async () => as(JSON.parse(d)),
1371
+ queryFn: async () => gs(JSON.parse(d)),
1343
1372
  enabled: p === "types"
1344
- }), y = ds([...n]), c = r > Ye;
1373
+ }), j = Ns([...n]), h = r > ut;
1345
1374
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
1346
- /* @__PURE__ */ e.jsxs(We, { defaultOpen: !0, children: [
1347
- /* @__PURE__ */ e.jsxs(Ze, { className: "flex items-center gap-2 hover:text-primary group", children: [
1348
- /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1375
+ /* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
1376
+ /* @__PURE__ */ e.jsxs(dt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1377
+ /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1349
1378
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1350
1379
  ] }),
1351
- /* @__PURE__ */ e.jsx(Xe, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1352
- y.slice(0, 5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1353
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1354
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1355
- ] }, f)),
1356
- y.length > 5 && /* @__PURE__ */ e.jsxs(We, { className: "col-span-full grid-cols-subgrid grid", children: [
1357
- /* @__PURE__ */ e.jsxs(Ze, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1358
- /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1380
+ /* @__PURE__ */ e.jsx(ct, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1381
+ j.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1382
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1383
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1384
+ ] }, m)),
1385
+ j.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
1386
+ /* @__PURE__ */ e.jsxs(dt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1387
+ /* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1359
1388
  "Show ",
1360
- y.length - 5,
1389
+ j.length - 5,
1361
1390
  " more headers"
1362
1391
  ] }),
1363
- /* @__PURE__ */ e.jsx(Xe, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: y.slice(5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1364
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1365
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1366
- ] }, f)) })
1392
+ /* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: j.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1393
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1394
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1395
+ ] }, m)) })
1367
1396
  ] })
1368
1397
  ] }) })
1369
1398
  ] }),
1370
- /* @__PURE__ */ e.jsxs(ct, { className: "shadow-none", children: [
1371
- c && /* @__PURE__ */ e.jsxs(on, { type: "info", className: "my-0 p-2", children: [
1399
+ /* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
1400
+ h && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
1372
1401
  "Code highlight is disabled for responses larger than",
1373
1402
  " ",
1374
- Ke(Ye)
1403
+ mt(ut)
1375
1404
  ] }),
1376
1405
  /* @__PURE__ */ e.jsx(
1377
- hn,
1406
+ $n,
1378
1407
  {
1379
- language: p === "types" ? "typescript" : p === "raw" ? m ? "plain" : l : "json",
1408
+ language: p === "types" ? "typescript" : p === "raw" ? c ? "plain" : l : "json",
1380
1409
  showCopy: "always",
1381
- disabled: c,
1410
+ disabled: h,
1382
1411
  noBackground: !0,
1383
1412
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1384
- code: (p === "raw" ? t : p === "types" ? N.data?.lines.join(`
1413
+ code: (p === "raw" ? t : p === "types" ? (g = w.data) == null ? void 0 : g.lines.join(`
1385
1414
  `) : d) ?? ""
1386
1415
  }
1387
1416
  )
@@ -1393,7 +1422,7 @@ const rs = {
1393
1422
  " ",
1394
1423
  s,
1395
1424
  " ",
1396
- rs[s] ?? ""
1425
+ ys[s] ?? ""
1397
1426
  ] }),
1398
1427
  /* @__PURE__ */ e.jsxs("div", { children: [
1399
1428
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -1404,47 +1433,48 @@ const rs = {
1404
1433
  /* @__PURE__ */ e.jsxs("div", { children: [
1405
1434
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Size" }),
1406
1435
  " ",
1407
- Ke(r)
1436
+ mt(r)
1408
1437
  ] })
1409
1438
  ] }),
1410
- m && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1411
- me,
1439
+ c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1440
+ je,
1412
1441
  {
1413
1442
  value: p,
1414
- onValueChange: (f) => x(f),
1443
+ onValueChange: (m) => f(m),
1415
1444
  children: [
1416
- /* @__PURE__ */ e.jsx(ue, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(pe, { placeholder: "View" }) }),
1417
- /* @__PURE__ */ e.jsxs(he, { children: [
1418
- /* @__PURE__ */ e.jsx(_, { value: "formatted", children: "Formatted" }),
1419
- /* @__PURE__ */ e.jsx(_, { value: "raw", children: "Raw" }),
1420
- /* @__PURE__ */ e.jsx(_, { value: "types", children: "Types" })
1445
+ /* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
1446
+ /* @__PURE__ */ e.jsxs(we, { children: [
1447
+ /* @__PURE__ */ e.jsx(U, { value: "formatted", children: "Formatted" }),
1448
+ /* @__PURE__ */ e.jsx(U, { value: "raw", children: "Raw" }),
1449
+ /* @__PURE__ */ e.jsx(U, { value: "types", children: "Types" })
1421
1450
  ] })
1422
1451
  ]
1423
1452
  }
1424
1453
  ) })
1425
1454
  ] })
1426
1455
  ] });
1427
- }, ms = ({
1456
+ }, Cs = ({
1428
1457
  queryMutation: t,
1429
1458
  showPathParamsWarning: n,
1430
1459
  showLongRunningWarning: s,
1431
1460
  onCancel: a
1432
1461
  }) => {
1433
- const r = ((t.data?.status ?? 0) / 100).toFixed(0);
1462
+ var i;
1463
+ const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
1434
1464
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1435
- n && /* @__PURE__ */ e.jsx(cn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1436
- /* @__PURE__ */ e.jsxs(ct, { children: [
1437
- /* @__PURE__ */ e.jsx(mn, { children: /* @__PURE__ */ e.jsx(un, { children: "Request failed" }) }),
1438
- /* @__PURE__ */ e.jsxs(pn, { children: [
1465
+ n && /* @__PURE__ */ e.jsx(wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1466
+ /* @__PURE__ */ e.jsxs(wt, { children: [
1467
+ /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(Sn, { children: "Request failed" }) }),
1468
+ /* @__PURE__ */ e.jsxs(Tn, { children: [
1439
1469
  "Error:",
1440
1470
  " ",
1441
1471
  t.error.message || String(t.error) || "Unexpected error"
1442
1472
  ] })
1443
1473
  ] })
1444
- ] }) : t.data ? /* @__PURE__ */ e.jsxs(it, { defaultValue: "response", children: [
1445
- /* @__PURE__ */ e.jsxs(lt, { children: [
1446
- /* @__PURE__ */ e.jsx(V, { value: "request", children: "Request" }),
1447
- /* @__PURE__ */ e.jsxs(V, { value: "response", children: [
1474
+ ] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
1475
+ /* @__PURE__ */ e.jsxs(bt, { children: [
1476
+ /* @__PURE__ */ e.jsx(H, { value: "request", children: "Request" }),
1477
+ /* @__PURE__ */ e.jsxs(H, { value: "response", children: [
1448
1478
  "Response",
1449
1479
  /* @__PURE__ */ e.jsxs(
1450
1480
  "span",
@@ -1465,9 +1495,9 @@ const rs = {
1465
1495
  )
1466
1496
  ] })
1467
1497
  ] }),
1468
- /* @__PURE__ */ e.jsx(F, { value: "request", children: /* @__PURE__ */ e.jsx(ns, { ...t.data.request }) }),
1469
- /* @__PURE__ */ e.jsx(F, { value: "response", children: /* @__PURE__ */ e.jsx(
1470
- cs,
1498
+ /* @__PURE__ */ e.jsx(M, { value: "request", children: /* @__PURE__ */ e.jsx(xs, { ...t.data.request }) }),
1499
+ /* @__PURE__ */ e.jsx(M, { value: "response", children: /* @__PURE__ */ e.jsx(
1500
+ ws,
1471
1501
  {
1472
1502
  status: t.data.status,
1473
1503
  time: t.data.time,
@@ -1478,7 +1508,7 @@ const rs = {
1478
1508
  }
1479
1509
  ) })
1480
1510
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
1481
- /* @__PURE__ */ e.jsx(dn, { size: 20 }),
1511
+ /* @__PURE__ */ e.jsx(Nn, { size: 20 }),
1482
1512
  /* @__PURE__ */ e.jsxs(
1483
1513
  "div",
1484
1514
  {
@@ -1489,7 +1519,7 @@ const rs = {
1489
1519
  children: [
1490
1520
  "Looks like the request is taking longer than expected.",
1491
1521
  /* @__PURE__ */ e.jsx(
1492
- G,
1522
+ W,
1493
1523
  {
1494
1524
  type: "button",
1495
1525
  onClick: a,
@@ -1503,43 +1533,47 @@ const rs = {
1503
1533
  }
1504
1534
  )
1505
1535
  ] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
1506
- }, us = ({
1536
+ }, Ss = ({
1507
1537
  identities: t,
1508
1538
  formRef: n,
1509
1539
  disabled: s
1510
1540
  }) => {
1511
- const { setValue: a } = we(), [r, i] = $();
1512
- return t.length === 0 ? /* @__PURE__ */ e.jsx(L, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1541
+ const { setValue: a } = Oe(), [r, i] = k();
1542
+ return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1513
1543
  /* @__PURE__ */ e.jsx(
1514
- L,
1544
+ A,
1515
1545
  {
1516
1546
  className: "rounded-r-none inset-shadow-sm",
1517
1547
  disabled: s,
1518
- onClick: () => n?.current?.requestSubmit(),
1548
+ onClick: () => {
1549
+ var l;
1550
+ return (l = n == null ? void 0 : n.current) == null ? void 0 : l.requestSubmit();
1551
+ },
1519
1552
  children: "Send"
1520
1553
  }
1521
1554
  ),
1522
- /* @__PURE__ */ e.jsxs(pt, { children: [
1523
- /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1524
- L,
1555
+ /* @__PURE__ */ e.jsxs(Tt, { children: [
1556
+ /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1557
+ A,
1525
1558
  {
1526
1559
  disabled: s,
1527
1560
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
1528
1561
  size: "icon",
1529
- children: /* @__PURE__ */ e.jsx(Et, { className: "w-4 h-4" })
1562
+ children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
1530
1563
  }
1531
1564
  ) }),
1532
- /* @__PURE__ */ e.jsx(Ie, { value: r, children: /* @__PURE__ */ e.jsx(Te, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...t].map(
1565
+ /* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
1533
1566
  (l) => /* @__PURE__ */ e.jsxs(
1534
- $e,
1567
+ De,
1535
1568
  {
1536
1569
  onClick: () => {
1537
- i(l.id), a("identity", l.id), n?.current?.requestSubmit();
1570
+ var c;
1571
+ i(l.id), a("identity", l.id), (c = n == null ? void 0 : n.current) == null || c.requestSubmit();
1538
1572
  },
1539
1573
  onMouseEnter: () => i(l.id),
1540
1574
  onMouseLeave: () => i(void 0),
1541
1575
  children: [
1542
- /* @__PURE__ */ e.jsx(ne, { value: l.id, className: "mr-2" }),
1576
+ /* @__PURE__ */ e.jsx(oe, { value: l.id, className: "mr-2" }),
1543
1577
  l.label
1544
1578
  ]
1545
1579
  },
@@ -1548,13 +1582,13 @@ const rs = {
1548
1582
  ) }) })
1549
1583
  ] })
1550
1584
  ] });
1551
- }, H = "__none", ce = {
1585
+ }, B = "__none", ve = {
1552
1586
  Plain: "text/plain",
1553
1587
  JSON: "application/json",
1554
1588
  XML: "application/xml",
1555
1589
  YAML: "application/yaml",
1556
1590
  CSV: "text/csv"
1557
- }, ps = ({
1591
+ }, Ts = ({
1558
1592
  server: t,
1559
1593
  servers: n = [],
1560
1594
  url: s,
@@ -1562,17 +1596,18 @@ const rs = {
1562
1596
  headers: r = [],
1563
1597
  queryParams: i = [],
1564
1598
  pathParams: l = [],
1565
- defaultBody: m = "",
1599
+ defaultBody: c = "",
1566
1600
  examples: d,
1567
1601
  requiresLogin: p = !1,
1568
- onLogin: x,
1569
- onSignUp: N
1602
+ onLogin: f,
1603
+ onSignUp: w
1570
1604
  }) => {
1571
- const { selectedServer: y, setSelectedServer: c } = kn(
1605
+ var Ze, Xe;
1606
+ const { selectedServer: j, setSelectedServer: h } = _n(
1572
1607
  n.map((o) => ({ url: o }))
1573
- ), [f, h] = $(!1), j = zt(), { setRememberedIdentity: b, getRememberedIdentity: k } = Kn(), [, I] = Jt(), [bt, Nt] = $(!1), [wt, Q] = $(!1), W = M(void 0), Le = Kt(b), { register: Ae, control: Z, handleSubmit: De, watch: Ve, setValue: D, ...ae } = Wt({
1608
+ ), [g, m] = k(!1), y = Yt(), { setRememberedIdentity: x, getRememberedIdentity: T } = ms(), [, $] = rn(), [ce, K] = k(!1), [Y, D] = k(!1), ee = G(void 0), Be = un(x), { register: Ge, control: te, handleSubmit: Je, watch: Ue, setValue: V, ...me } = dn({
1574
1609
  defaultValues: {
1575
- body: m,
1610
+ body: c,
1576
1611
  bodyContentType: "JSON",
1577
1612
  queryParams: i.map((o) => ({
1578
1613
  name: o.name,
@@ -1602,146 +1637,150 @@ const rs = {
1602
1637
  active: !1
1603
1638
  }
1604
1639
  ]),
1605
- identity: k(
1606
- j.data?.map((o) => o.id) ?? []
1640
+ identity: T(
1641
+ ((Ze = y.data) == null ? void 0 : Ze.map((o) => o.id)) ?? []
1607
1642
  )
1608
1643
  }
1609
- }), C = Ve(), Fe = M(null);
1610
- Y(() => {
1611
- C.identity && Le.current(C.identity);
1612
- }, [Le, C.identity]);
1613
- const re = Qt({
1644
+ }), C = Ue(), Qe = G(null);
1645
+ se(() => {
1646
+ C.identity && Be.current(C.identity);
1647
+ }, [Be, C.identity]);
1648
+ const ue = ln({
1614
1649
  mutationFn: async (o) => {
1650
+ var Ke, Ye;
1615
1651
  const S = performance.now(), O = !o.headers.some(
1616
- (w) => w.active && w.name.toLowerCase() === "content-type"
1617
- ), K = Object.fromEntries([
1618
- ...o.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
1619
- ...O ? [["content-type", ce[o.bodyContentType]]] : []
1620
- ]), T = new Request(
1621
- In(t ?? y, s, o),
1652
+ (N) => N.active && N.name.toLowerCase() === "content-type"
1653
+ ), F = Object.fromEntries([
1654
+ ...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
1655
+ ...O ? [["content-type", ve[o.bodyContentType]]] : []
1656
+ ]), P = new Request(
1657
+ Bn(t ?? j, s, o),
1622
1658
  {
1623
1659
  method: a.toUpperCase(),
1624
- headers: K,
1660
+ headers: F,
1625
1661
  body: o.body ? o.body : void 0
1626
1662
  }
1627
1663
  );
1628
- o.identity !== H && await j.data?.find((w) => w.id === o.identity)?.authorizeRequest(T);
1629
- const He = setTimeout(
1630
- () => Q(!0),
1664
+ o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
1665
+ const z = setTimeout(
1666
+ () => D(!0),
1631
1667
  3210
1632
1668
  );
1633
- W.current = new AbortController();
1669
+ ee.current = new AbortController();
1634
1670
  try {
1635
- const w = await fetch(T, {
1636
- signal: W.current.signal
1671
+ const N = await fetch(P, {
1672
+ signal: ee.current.signal
1637
1673
  });
1638
- clearTimeout(He), Q(!1);
1639
- const $t = performance.now() - S, Me = await w.text(), Pt = new URL(T.url);
1674
+ clearTimeout(z), D(!1);
1675
+ const Et = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
1640
1676
  return {
1641
- status: w.status,
1642
- headers: Array.from(w.headers.entries()),
1643
- size: Me.length,
1644
- body: Me,
1645
- time: $t,
1677
+ status: N.status,
1678
+ headers: Array.from(N.headers.entries()),
1679
+ size: et.length,
1680
+ body: et,
1681
+ time: Et,
1646
1682
  request: {
1647
- method: T.method.toUpperCase(),
1648
- url: T.url,
1683
+ method: P.method.toUpperCase(),
1684
+ url: P.url,
1649
1685
  headers: [
1650
- ["Host", Pt.host],
1686
+ ["Host", Vt.host],
1651
1687
  ["User-Agent", "Zudoku Playground"],
1652
- ...Array.from(T.headers.entries())
1688
+ ...Array.from(P.headers.entries())
1653
1689
  ],
1654
1690
  body: o.body ? o.body : void 0
1655
1691
  }
1656
1692
  };
1657
- } catch (w) {
1658
- throw clearTimeout(He), Q(!1), w instanceof TypeError ? new Error(
1693
+ } catch (N) {
1694
+ throw clearTimeout(z), D(!1), N instanceof TypeError ? new Error(
1659
1695
  "The request failed, possibly due to network issues or CORS policy."
1660
- ) : w;
1696
+ ) : N;
1661
1697
  }
1662
1698
  }
1663
1699
  });
1664
- Y(() => () => {
1665
- W.current?.abort();
1700
+ se(() => () => {
1701
+ var o;
1702
+ (o = ee.current) == null || o.abort();
1666
1703
  }, []);
1667
- const Ct = /* @__PURE__ */ e.jsx(
1668
- $n,
1704
+ const Lt = /* @__PURE__ */ e.jsx(
1705
+ zn,
1669
1706
  {
1670
1707
  path: s,
1671
1708
  renderParam: ({ name: o, originalValue: S, index: O }) => {
1672
- const K = C.pathParams.find(
1673
- (T) => T.name === o
1674
- )?.value;
1709
+ var P;
1710
+ const F = (P = C.pathParams.find(
1711
+ (z) => z.name === o
1712
+ )) == null ? void 0 : P.value;
1675
1713
  return /* @__PURE__ */ e.jsx(
1676
- ut,
1714
+ St,
1677
1715
  {
1678
1716
  name: o,
1679
1717
  backgroundOpacity: "0",
1680
1718
  slug: o,
1681
- onClick: () => ae.setFocus(`pathParams.${O}.value`),
1682
- children: K || S
1719
+ onClick: () => me.setFocus(`pathParams.${O}.value`),
1720
+ children: F || S
1683
1721
  }
1684
1722
  );
1685
1723
  }
1686
1724
  }
1687
- ), ze = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1725
+ ), We = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1688
1726
  o.name,
1689
1727
  "=",
1690
1728
  encodeURIComponent(o.value).replaceAll("%20", "+"),
1691
1729
  S < O.length - 1 && "&",
1692
1730
  /* @__PURE__ */ e.jsx("wbr", {})
1693
- ] }, o.name)), St = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1694
- me,
1731
+ ] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1732
+ je,
1695
1733
  {
1696
1734
  onValueChange: (o) => {
1697
- I(() => c(o));
1735
+ $(() => h(o));
1698
1736
  },
1699
- value: y,
1700
- defaultValue: y,
1737
+ value: j,
1738
+ defaultValue: j,
1701
1739
  children: [
1702
- /* @__PURE__ */ e.jsx(ue, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1703
- /* @__PURE__ */ e.jsx(he, { children: n.map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1740
+ /* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1741
+ /* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1704
1742
  ]
1705
1743
  }
1706
- ) }), Tt = p && !bt, X = ["POST", "PUT", "PATCH", "DELETE"].includes(
1744
+ ) }), Dt = p && !ce, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
1707
1745
  a.toUpperCase()
1708
1746
  );
1709
1747
  return /* @__PURE__ */ e.jsx(
1710
- Zt,
1748
+ cn,
1711
1749
  {
1712
- register: Ae,
1713
- control: Z,
1714
- handleSubmit: De,
1715
- watch: Ve,
1716
- setValue: D,
1717
- ...ae,
1750
+ register: Ge,
1751
+ control: te,
1752
+ handleSubmit: Je,
1753
+ watch: Ue,
1754
+ setValue: V,
1755
+ ...me,
1718
1756
  children: /* @__PURE__ */ e.jsxs(
1719
1757
  "form",
1720
1758
  {
1721
- onSubmit: De((o) => {
1722
- j.data?.length === 0 || o.identity ? re.mutate(o) : h(!0);
1759
+ onSubmit: Je((o) => {
1760
+ var S;
1761
+ ((S = y.data) == null ? void 0 : S.length) === 0 || o.identity ? ue.mutate(o) : m(!0);
1723
1762
  }),
1724
- ref: Fe,
1763
+ ref: Qe,
1725
1764
  className: "relative",
1726
1765
  children: [
1727
1766
  /* @__PURE__ */ e.jsx(
1728
- Qn,
1767
+ is,
1729
1768
  {
1730
- identities: j.data ?? [],
1731
- open: f,
1732
- onOpenChange: h,
1769
+ identities: y.data ?? [],
1770
+ open: g,
1771
+ onOpenChange: m,
1733
1772
  onSubmit: ({ rememberedIdentity: o, identity: S }) => {
1734
- o && D("identity", S ?? H), h(!1), re.mutate({ ...C, identity: S });
1773
+ o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
1735
1774
  }
1736
1775
  }
1737
1776
  ),
1738
1777
  /* @__PURE__ */ e.jsx(
1739
- Yn,
1778
+ us,
1740
1779
  {
1741
- open: Tt,
1742
- setOpen: (o) => Nt(!o),
1743
- onSignUp: N,
1744
- onLogin: x
1780
+ open: Dt,
1781
+ setOpen: (o) => K(!o),
1782
+ onSignUp: w,
1783
+ onLogin: f
1745
1784
  }
1746
1785
  ),
1747
1786
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
@@ -1750,133 +1789,135 @@ const rs = {
1750
1789
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1751
1790
  /* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
1752
1791
  /* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
1753
- St,
1754
- Ct,
1755
- ze.length > 0 ? "?" : "",
1756
- ze
1792
+ At,
1793
+ Lt,
1794
+ We.length > 0 ? "?" : "",
1795
+ We
1757
1796
  ] })
1758
1797
  ] }),
1759
1798
  /* @__PURE__ */ e.jsx(
1760
- us,
1799
+ Ss,
1761
1800
  {
1762
- identities: j.data ?? [],
1763
- formRef: Fe,
1764
- disabled: j.isLoading || ae.formState.isSubmitting
1801
+ identities: y.data ?? [],
1802
+ formRef: Qe,
1803
+ disabled: y.isLoading || me.formState.isSubmitting
1765
1804
  }
1766
1805
  )
1767
1806
  ] }),
1768
- /* @__PURE__ */ e.jsxs(it, { defaultValue: "parameters", children: [
1769
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(lt, { children: [
1770
- /* @__PURE__ */ e.jsxs(V, { value: "parameters", children: [
1807
+ /* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
1808
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
1809
+ /* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
1771
1810
  "Parameters",
1772
1811
  (C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1773
1812
  ] }),
1774
- /* @__PURE__ */ e.jsxs(V, { value: "headers", children: [
1813
+ /* @__PURE__ */ e.jsxs(H, { value: "headers", children: [
1775
1814
  "Headers",
1776
1815
  C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1777
1816
  ] }),
1778
- /* @__PURE__ */ e.jsxs(V, { value: "auth", children: [
1817
+ /* @__PURE__ */ e.jsxs(H, { value: "auth", children: [
1779
1818
  "Auth",
1780
- C.identity !== H && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1819
+ C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1781
1820
  ] }),
1782
- /* @__PURE__ */ e.jsxs(V, { value: "body", children: [
1821
+ /* @__PURE__ */ e.jsxs(H, { value: "body", children: [
1783
1822
  "Body",
1784
1823
  C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1785
1824
  ] })
1786
1825
  ] }) }),
1787
- /* @__PURE__ */ e.jsx(F, { value: "headers", children: /* @__PURE__ */ e.jsx(Jn, { control: Z, headers: r }) }),
1788
- /* @__PURE__ */ e.jsxs(F, { value: "parameters", children: [
1826
+ /* @__PURE__ */ e.jsx(M, { value: "headers", children: /* @__PURE__ */ e.jsx(rs, { control: te, headers: r }) }),
1827
+ /* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
1789
1828
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1790
1829
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1791
- /* @__PURE__ */ e.jsx(Wn, { url: s, control: Z })
1830
+ /* @__PURE__ */ e.jsx(ls, { url: s, control: te })
1792
1831
  ] }),
1793
1832
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1794
1833
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1795
- /* @__PURE__ */ e.jsx(Xn, { control: Z, queryParams: i })
1834
+ /* @__PURE__ */ e.jsx(cs, { control: te, queryParams: i })
1796
1835
  ] })
1797
1836
  ] }),
1798
- /* @__PURE__ */ e.jsxs(F, { value: "body", children: [
1837
+ /* @__PURE__ */ e.jsxs(M, { value: "body", children: [
1799
1838
  !["POST", "PUT", "PATCH", "DELETE"].includes(
1800
1839
  a.toUpperCase()
1801
- ) && /* @__PURE__ */ e.jsxs(fe, { className: "mb-2", children: [
1802
- /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1803
- /* @__PURE__ */ e.jsx(ge, { children: "Body" }),
1804
- /* @__PURE__ */ e.jsx(ye, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1840
+ ) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
1841
+ /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1842
+ /* @__PURE__ */ e.jsx(Te, { children: "Body" }),
1843
+ /* @__PURE__ */ e.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1805
1844
  ] }),
1806
1845
  /* @__PURE__ */ e.jsx(
1807
- mt,
1846
+ Ct,
1808
1847
  {
1809
- ...Ae("body"),
1848
+ ...Ge("body"),
1810
1849
  className: u(
1811
1850
  "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
1812
- !X && "h-20 bg-muted"
1851
+ !ne && "h-20 bg-muted"
1813
1852
  ),
1814
- placeholder: X ? void 0 : "This request does not support a body",
1815
- disabled: !X
1853
+ placeholder: ne ? void 0 : "This request does not support a body",
1854
+ disabled: !ne
1816
1855
  }
1817
1856
  ),
1818
- X && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1857
+ ne && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1819
1858
  /* @__PURE__ */ e.jsxs(
1820
- me,
1859
+ je,
1821
1860
  {
1822
1861
  value: C.bodyContentType,
1823
- onValueChange: (o) => D(
1862
+ onValueChange: (o) => V(
1824
1863
  "bodyContentType",
1825
1864
  o
1826
1865
  ),
1827
1866
  children: [
1828
- /* @__PURE__ */ e.jsx(ue, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1829
- /* @__PURE__ */ e.jsx(he, { children: Object.keys(ce).map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o }, o)) })
1867
+ /* @__PURE__ */ e.jsx(be, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1868
+ /* @__PURE__ */ e.jsx(we, { children: Object.keys(ve).map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o }, o)) })
1830
1869
  ]
1831
1870
  }
1832
1871
  ),
1833
1872
  d && d.length > 0 && /* @__PURE__ */ e.jsx(
1834
- Dn,
1873
+ Zn,
1835
1874
  {
1836
1875
  examples: d,
1837
1876
  onSelect: (o, S) => {
1838
- D(
1877
+ var F;
1878
+ V(
1839
1879
  "body",
1840
1880
  JSON.stringify(o.value, null, 2)
1841
1881
  );
1842
- const O = Xt(ce).find(
1843
- ([K, T]) => T === S
1844
- )?.[0];
1845
- O && D("bodyContentType", O);
1882
+ const O = (F = mn(ve).find(
1883
+ ([P, z]) => z === S
1884
+ )) == null ? void 0 : F[0];
1885
+ O && V("bodyContentType", O);
1846
1886
  }
1847
1887
  }
1848
1888
  )
1849
1889
  ] })
1850
1890
  ] }),
1851
- /* @__PURE__ */ e.jsx(F, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1852
- j.data?.length === 0 && /* @__PURE__ */ e.jsxs(fe, { children: [
1853
- /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1854
- /* @__PURE__ */ e.jsx(ge, { children: "Authentication" }),
1855
- /* @__PURE__ */ e.jsx(ye, { children: "No identities found. Please create an identity first." })
1891
+ /* @__PURE__ */ e.jsx(M, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1892
+ ((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
1893
+ /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1894
+ /* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
1895
+ /* @__PURE__ */ e.jsx($e, { children: "No identities found. Please create an identity first." })
1856
1896
  ] }),
1857
1897
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
1858
- yt,
1898
+ Rt,
1859
1899
  {
1860
1900
  value: C.identity,
1861
- identities: j.data ?? [],
1862
- setValue: (o) => D("identity", o)
1901
+ identities: y.data ?? [],
1902
+ setValue: (o) => V("identity", o)
1863
1903
  }
1864
1904
  ) })
1865
1905
  ] }) })
1866
1906
  ] })
1867
1907
  ] }),
1868
1908
  /* @__PURE__ */ e.jsx(
1869
- ms,
1909
+ Cs,
1870
1910
  {
1871
- queryMutation: re,
1911
+ queryMutation: ue,
1872
1912
  showPathParamsWarning: C.pathParams.some(
1873
1913
  (o) => o.value === ""
1874
1914
  ),
1875
- showLongRunningWarning: wt,
1915
+ showLongRunningWarning: Y,
1876
1916
  onCancel: () => {
1877
- W.current?.abort(
1917
+ var o;
1918
+ (o = ee.current) == null || o.abort(
1878
1919
  "Request cancelled by the user"
1879
- ), Q(!1);
1920
+ ), D(!1);
1880
1921
  }
1881
1922
  }
1882
1923
  )
@@ -1886,7 +1927,7 @@ const rs = {
1886
1927
  )
1887
1928
  }
1888
1929
  );
1889
- }, hs = ({
1930
+ }, $s = ({
1890
1931
  className: t,
1891
1932
  size: n = 16
1892
1933
  }) => /* @__PURE__ */ e.jsx(
@@ -1907,33 +1948,33 @@ const rs = {
1907
1948
  }
1908
1949
  )
1909
1950
  }
1910
- ), xs = (t) => {
1911
- const [n, s] = $(!1);
1912
- return /* @__PURE__ */ e.jsxs(ve, { onOpenChange: (a) => s(a), children: [
1913
- /* @__PURE__ */ e.jsx(Ut, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1951
+ ), Ps = (t) => {
1952
+ const [n, s] = k(!1);
1953
+ return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
1954
+ /* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1914
1955
  "button",
1915
1956
  {
1916
1957
  type: "button",
1917
1958
  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",
1918
1959
  children: [
1919
1960
  "Test",
1920
- /* @__PURE__ */ e.jsx(hs, { size: 14 })
1961
+ /* @__PURE__ */ e.jsx($s, { size: 14 })
1921
1962
  ]
1922
1963
  }
1923
1964
  ) }),
1924
1965
  /* @__PURE__ */ e.jsxs(
1925
- je,
1966
+ ke,
1926
1967
  {
1927
1968
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1928
1969
  "aria-describedby": void 0,
1929
1970
  children: [
1930
- /* @__PURE__ */ e.jsx(_t, { children: /* @__PURE__ */ e.jsx(be, { children: "Playground" }) }),
1931
- n && /* @__PURE__ */ e.jsx(ps, { ...t })
1971
+ /* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
1972
+ n && /* @__PURE__ */ e.jsx(Ts, { ...t })
1932
1973
  ]
1933
1974
  }
1934
1975
  )
1935
1976
  ] });
1936
- }, fs = {
1977
+ }, ks = {
1937
1978
  get: "green",
1938
1979
  post: "blue",
1939
1980
  put: "yellow",
@@ -1941,7 +1982,7 @@ const rs = {
1941
1982
  patch: "purple",
1942
1983
  options: "gray",
1943
1984
  head: "gray"
1944
- }, et = ({
1985
+ }, pt = ({
1945
1986
  label: t,
1946
1987
  path: n,
1947
1988
  operations: s,
@@ -1963,14 +2004,14 @@ const rs = {
1963
2004
  href: `${n}#${i.slug}`,
1964
2005
  badge: {
1965
2006
  label: i.method,
1966
- color: fs[i.method.toLowerCase()],
2007
+ color: ks[i.method.toLowerCase()],
1967
2008
  invert: !0
1968
2009
  }
1969
2010
  }))
1970
- }), tt = (t) => ({
2011
+ }), ht = (t) => ({
1971
2012
  path: t.routePath,
1972
2013
  async lazy() {
1973
- const { OasProvider: n } = await import("./OasProvider-DKpTJMH2.js");
2014
+ const { OasProvider: n } = await import("./OasProvider-CZiF_RMW.js");
1974
2015
  return {
1975
2016
  element: /* @__PURE__ */ e.jsx(
1976
2017
  n,
@@ -1984,45 +2025,45 @@ const rs = {
1984
2025
  };
1985
2026
  },
1986
2027
  children: t.routes
1987
- }), qe = ({
2028
+ }), Me = ({
1988
2029
  path: t,
1989
2030
  tag: n,
1990
2031
  untagged: s
1991
2032
  }) => ({
1992
2033
  path: t,
1993
2034
  async lazy() {
1994
- const { OperationList: a } = await import("./OperationList-DVOyNeno.js");
2035
+ const { OperationList: a } = await import("./OperationList-CMMzLfIZ.js");
1995
2036
  return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
1996
2037
  }
1997
- }), vt = (t) => [
2038
+ }), Ot = (t) => [
1998
2039
  // Category without tagged operations
1999
- qe({
2000
- path: R(t, Ee),
2040
+ Me({
2041
+ path: R(t, _e),
2001
2042
  untagged: !0
2002
2043
  }),
2003
2044
  // Schema list route
2004
2045
  {
2005
2046
  path: R(t, "~schemas"),
2006
2047
  lazy: async () => {
2007
- const { SchemaList: n } = await import("./SchemaList-BTWzXyYQ.js");
2048
+ const { SchemaList: n } = await import("./SchemaList-_d3Mf4IX.js");
2008
2049
  return { element: /* @__PURE__ */ e.jsx(n, {}) };
2009
2050
  }
2010
2051
  }
2011
- ], gs = (t, n) => {
2012
- const s = R(t, n.at(0) ?? Ee);
2052
+ ], Is = (t, n) => {
2053
+ const s = R(t, n.at(0) ?? _e);
2013
2054
  return [
2014
2055
  // Redirect to first tag on the index route
2015
- { index: !0, loader: () => Dt(s) },
2056
+ { index: !0, loader: () => Zt(s) },
2016
2057
  // Create routes for each tag
2017
2058
  ...n.map(
2018
- (a) => qe({
2059
+ (a) => Me({
2019
2060
  path: R(t, a),
2020
2061
  tag: a
2021
2062
  })
2022
2063
  ),
2023
- ...vt(t)
2064
+ ...Ot(t)
2024
2065
  ];
2025
- }, jt = (t) => t.type === "file" ? Object.keys(t.input) : [], ys = ({
2066
+ }, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Rs = ({
2026
2067
  basePath: t,
2027
2068
  config: n,
2028
2069
  client: s
@@ -2030,30 +2071,30 @@ const rs = {
2030
2071
  const a = n.tagPages;
2031
2072
  if (!a)
2032
2073
  return [
2033
- tt({
2074
+ ht({
2034
2075
  basePath: t,
2035
2076
  routePath: t,
2036
2077
  routes: [
2037
- qe({ path: t + "/:tag?" }),
2038
- ...vt(t)
2078
+ Me({ path: t + "/:tag?" }),
2079
+ ...Ot(t)
2039
2080
  ],
2040
2081
  client: s,
2041
2082
  config: n
2042
2083
  })
2043
2084
  ];
2044
- const r = jt(n);
2085
+ const r = qt(n);
2045
2086
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
2046
- const m = R(t, l);
2047
- return tt({
2087
+ const c = R(t, l);
2088
+ return ht({
2048
2089
  basePath: t,
2049
2090
  version: l,
2050
- routePath: m,
2051
- routes: gs(m, a),
2091
+ routePath: c,
2092
+ routes: Is(c, a),
2052
2093
  client: s,
2053
2094
  config: n
2054
2095
  });
2055
2096
  });
2056
- }, vs = Sn(`
2097
+ }, Os = Vn(`
2057
2098
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
2058
2099
  schema(input: $input, type: $type) {
2059
2100
  tags {
@@ -2075,8 +2116,8 @@ const rs = {
2075
2116
  }
2076
2117
  }
2077
2118
  }
2078
- `), Ee = "~endpoints", Qs = (t) => {
2079
- const n = R(t.navigationId ?? "/reference"), s = new fn(t);
2119
+ `), _e = "~endpoints", la = (t) => {
2120
+ const n = R(t.navigationId ?? "/reference"), s = new kn(t);
2080
2121
  return {
2081
2122
  getHead: () => {
2082
2123
  if (t.type === "url" && !t.skipPreload)
@@ -2098,93 +2139,95 @@ const rs = {
2098
2139
  server: r,
2099
2140
  method: i,
2100
2141
  url: l,
2101
- children: m,
2142
+ children: c,
2102
2143
  ...d
2103
2144
  }) => {
2104
- const p = Ht();
2145
+ const p = en();
2105
2146
  if (!r)
2106
2147
  throw new Error("Server is required");
2107
2148
  return a && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
2108
- G,
2149
+ W,
2109
2150
  {
2110
2151
  className: "gap-2 items-center",
2111
2152
  variant: "outline",
2112
2153
  onClick: p.login,
2113
2154
  children: [
2114
2155
  "Login to open in Playground ",
2115
- /* @__PURE__ */ e.jsx(Lt, { size: 16 })
2156
+ /* @__PURE__ */ e.jsx(Qt, { size: 16 })
2116
2157
  ]
2117
2158
  }
2118
2159
  ) : /* @__PURE__ */ e.jsx(
2119
- xs,
2160
+ Ps,
2120
2161
  {
2121
2162
  url: l ?? "/",
2122
2163
  method: i ?? "get",
2123
2164
  server: r,
2124
2165
  ...d,
2125
- children: /* @__PURE__ */ e.jsx(G, { className: "gap-2 items-center", variant: "outline", children: m ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2166
+ children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2126
2167
  "Open in Playground ",
2127
- /* @__PURE__ */ e.jsx(At, { size: 16 })
2168
+ /* @__PURE__ */ e.jsx(Wt, { size: 16 })
2128
2169
  ] }) })
2129
2170
  }
2130
2171
  );
2131
2172
  }
2132
2173
  }),
2133
2174
  getSidebar: async (a, r) => {
2134
- if (!Be({ path: n, end: !1 }, a))
2175
+ var l, c, d, p;
2176
+ if (!st({ path: n, end: !1 }, a))
2135
2177
  return [];
2136
- const i = Be(
2178
+ const i = st(
2137
2179
  { path: `${n}/:version?/:tag`, end: !0 },
2138
2180
  a
2139
2181
  );
2140
2182
  try {
2141
- const l = i?.params.version, m = l ?? jt(t).at(0), { type: d } = t, p = d === "file" ? t.input[m] : t.input, x = await r.queryClient.ensureQueryData({
2142
- queryKey: ["sidebar-operations-query", p],
2143
- queryFn: () => s.fetch(vs, { type: d, input: p })
2144
- }), N = x.schema.tags.flatMap((c) => {
2145
- if (!c.name || c.operations.length === 0) return [];
2146
- const f = R(n, l, c.slug), h = c.extensions?.["x-zudoku-collapsed"] ?? !t.options?.expandAllTags, j = c.extensions?.["x-zudoku-collapsible"] ?? !0;
2147
- return et({
2148
- label: c.name,
2149
- path: f,
2150
- operations: c.operations,
2151
- collapsed: h,
2152
- collapsible: j
2183
+ const f = i == null ? void 0 : i.params.version, w = f ?? qt(t).at(0), { type: j } = t, h = j === "file" ? t.input[w] : t.input, g = await r.queryClient.ensureQueryData({
2184
+ queryKey: ["sidebar-operations-query", h],
2185
+ queryFn: () => s.fetch(Os, { type: j, input: h })
2186
+ }), m = g.schema.tags.flatMap((x) => {
2187
+ var K, Y, D;
2188
+ if (!x.name || x.operations.length === 0) return [];
2189
+ const T = R(n, f, x.slug), $ = ((K = x.extensions) == null ? void 0 : K["x-zudoku-collapsed"]) ?? !((Y = t.options) != null && Y.expandAllTags), ce = ((D = x.extensions) == null ? void 0 : D["x-zudoku-collapsible"]) ?? !0;
2190
+ return pt({
2191
+ label: x.name,
2192
+ path: T,
2193
+ operations: x.operations,
2194
+ collapsed: $,
2195
+ collapsible: ce
2153
2196
  });
2154
- }), y = x.schema.tags.find(
2155
- (c) => !c.name
2156
- )?.operations;
2157
- return y && N.push(
2158
- et({
2197
+ }), y = (l = g.schema.tags.find(
2198
+ (x) => !x.name
2199
+ )) == null ? void 0 : l.operations;
2200
+ return y && m.push(
2201
+ pt({
2159
2202
  label: "Other endpoints",
2160
- path: R(n, l, Ee),
2203
+ path: R(n, f, _e),
2161
2204
  operations: y,
2162
- collapsed: !t.options?.expandAllTags
2205
+ collapsed: !((c = t.options) != null && c.expandAllTags)
2163
2206
  })
2164
- ), x.schema.components?.schemas?.length && N.push({
2207
+ ), (p = (d = g.schema.components) == null ? void 0 : d.schemas) != null && p.length && m.push({
2165
2208
  type: "link",
2166
2209
  label: "Schemas",
2167
- href: R(n, l, "~schemas")
2168
- }), N;
2210
+ href: R(n, f, "~schemas")
2211
+ }), m;
2169
2212
  } catch {
2170
2213
  return [];
2171
2214
  }
2172
2215
  },
2173
- getRoutes: () => ys({ basePath: n, config: t, client: s })
2216
+ getRoutes: () => Rs({ basePath: n, config: t, client: s })
2174
2217
  };
2175
2218
  };
2176
2219
  export {
2177
- We as C,
2178
- xs as P,
2179
- Ee as U,
2180
- Ze as a,
2181
- Xe as b,
2182
- Sn as c,
2183
- ut as d,
2184
- $n as e,
2185
- jt as g,
2186
- ts as m,
2187
- Qs as o,
2188
- kn as u
2220
+ lt as C,
2221
+ Ps as P,
2222
+ _e as U,
2223
+ dt as a,
2224
+ ct as b,
2225
+ Vn as c,
2226
+ St as d,
2227
+ zn as e,
2228
+ qt as g,
2229
+ hs as m,
2230
+ la as o,
2231
+ _n as u
2189
2232
  };
2190
- //# sourceMappingURL=index-CCS3ifKs.js.map
2233
+ //# sourceMappingURL=index-BPqJMdth.js.map