zudoku 0.0.0-f2c28ed → 0.0.0-f36627bd

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 (1429) hide show
  1. package/README.md +33 -13
  2. package/cli.js +1 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +10 -120
  4. package/dist/app/ZuploBuildConfig.js +7 -7
  5. package/dist/app/ZuploBuildConfig.js.map +1 -1
  6. package/dist/app/demo.js +22 -6
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +0 -2
  9. package/dist/app/entry.client.js +6 -7
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +0 -2
  12. package/dist/app/entry.server.js +3 -5
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +7 -7
  15. package/dist/app/env.js +10 -2
  16. package/dist/app/env.js.map +1 -1
  17. package/dist/app/main.d.ts +2 -1
  18. package/dist/app/main.js +30 -48
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/standalone.js +11 -7
  21. package/dist/app/standalone.js.map +1 -1
  22. package/dist/cli/build/handler.js +9 -1
  23. package/dist/cli/build/handler.js.map +1 -1
  24. package/dist/cli/cli.js +2 -1
  25. package/dist/cli/cli.js.map +1 -1
  26. package/dist/cli/cmds/build.d.ts +1 -1
  27. package/dist/cli/cmds/dev.d.ts +1 -1
  28. package/dist/cli/cmds/preview.d.ts +1 -1
  29. package/dist/cli/common/analytics/lib.js +1 -1
  30. package/dist/cli/common/analytics/lib.js.map +1 -1
  31. package/dist/cli/common/logger.js +0 -1
  32. package/dist/cli/common/logger.js.map +1 -1
  33. package/dist/cli/common/machine-id/lib.js +3 -2
  34. package/dist/cli/common/machine-id/lib.js.map +1 -1
  35. package/dist/cli/common/outdated.js +2 -1
  36. package/dist/cli/common/outdated.js.map +1 -1
  37. package/dist/cli/common/output.js +2 -3
  38. package/dist/cli/common/output.js.map +1 -1
  39. package/dist/cli/common/utils/box.js +2 -2
  40. package/dist/cli/common/utils/box.js.map +1 -1
  41. package/dist/cli/common/validators/lib.js +1 -1
  42. package/dist/cli/common/validators/lib.js.map +1 -1
  43. package/dist/cli/dev/handler.js +0 -4
  44. package/dist/cli/dev/handler.js.map +1 -1
  45. package/dist/codegen.js +2 -2
  46. package/dist/codegen.js.map +1 -1
  47. package/dist/config/config.d.ts +14 -2
  48. package/dist/config/file-exists.d.ts +1 -0
  49. package/dist/config/file-exists.js +5 -0
  50. package/dist/config/file-exists.js.map +1 -0
  51. package/dist/config/loader.d.ts +19 -4
  52. package/dist/config/loader.js +91 -15
  53. package/dist/config/loader.js.map +1 -1
  54. package/dist/config/validators/BuildSchema.d.ts +20 -44
  55. package/dist/config/validators/BuildSchema.js +10 -16
  56. package/dist/config/validators/BuildSchema.js.map +1 -1
  57. package/dist/config/validators/InputNavigationSchema.d.ts +7562 -0
  58. package/dist/config/validators/InputNavigationSchema.js +77 -0
  59. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  60. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  62. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  63. package/dist/config/validators/NavigationSchema.js +98 -0
  64. package/dist/config/validators/NavigationSchema.js.map +1 -0
  65. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  66. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  68. package/dist/config/validators/auth.d.ts +2 -2
  69. package/dist/config/validators/auth.js +1 -1
  70. package/dist/config/validators/auth.js.map +1 -1
  71. package/dist/config/validators/icon-types.d.ts +2 -1
  72. package/dist/config/validators/icon-types.js +1852 -1
  73. package/dist/config/validators/icon-types.js.map +1 -1
  74. package/dist/config/validators/validate.d.ts +583 -2861
  75. package/dist/config/validators/validate.js +441 -18
  76. package/dist/config/validators/validate.js.map +1 -1
  77. package/dist/config/validators/validate.test.d.ts +1 -0
  78. package/dist/config/validators/validate.test.js +140 -0
  79. package/dist/config/validators/validate.test.js.map +1 -0
  80. package/dist/flat-config.d.ts +331 -0
  81. package/dist/index.d.ts +8 -5
  82. package/dist/index.js +4 -1
  83. package/dist/index.js.map +1 -1
  84. package/dist/lib/MissingIcon.d.ts +1 -1
  85. package/dist/lib/MissingIcon.js.map +1 -1
  86. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  87. package/dist/lib/assets/language-icons/csharp.js +4 -0
  88. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  89. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  90. package/dist/lib/assets/language-icons/css.js +4 -0
  91. package/dist/lib/assets/language-icons/css.js.map +1 -0
  92. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  93. package/dist/lib/assets/language-icons/go.js +4 -0
  94. package/dist/lib/assets/language-icons/go.js.map +1 -0
  95. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  96. package/dist/lib/assets/language-icons/graphql.js +4 -0
  97. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  98. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  99. package/dist/lib/assets/language-icons/html.js +4 -0
  100. package/dist/lib/assets/language-icons/html.js.map +1 -0
  101. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  102. package/dist/lib/assets/language-icons/java.js +4 -0
  103. package/dist/lib/assets/language-icons/java.js.map +1 -0
  104. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  105. package/dist/lib/assets/language-icons/javascript.js +4 -0
  106. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  107. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  108. package/dist/lib/assets/language-icons/json.js +4 -0
  109. package/dist/lib/assets/language-icons/json.js.map +1 -0
  110. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  111. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  112. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  113. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  114. package/dist/lib/assets/language-icons/markdown.js +4 -0
  115. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  116. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  117. package/dist/lib/assets/language-icons/mdx.js +4 -0
  118. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  119. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  120. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  121. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  122. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  123. package/dist/lib/assets/language-icons/php.js +4 -0
  124. package/dist/lib/assets/language-icons/php.js.map +1 -0
  125. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  126. package/dist/lib/assets/language-icons/python.js +4 -0
  127. package/dist/lib/assets/language-icons/python.js.map +1 -0
  128. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  129. package/dist/lib/assets/language-icons/react.js +4 -0
  130. package/dist/lib/assets/language-icons/react.js.map +1 -0
  131. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  132. package/dist/lib/assets/language-icons/ruby.js +4 -0
  133. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  134. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  135. package/dist/lib/assets/language-icons/rust.js +4 -0
  136. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  137. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  138. package/dist/lib/assets/language-icons/shell.js +4 -0
  139. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  140. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  141. package/dist/lib/assets/language-icons/swift.js +4 -0
  142. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  143. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  144. package/dist/lib/assets/language-icons/toml.js +4 -0
  145. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  146. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  147. package/dist/lib/assets/language-icons/typescript.js +4 -0
  148. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  149. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  150. package/dist/lib/assets/language-icons/xml.js +4 -0
  151. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  152. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  153. package/dist/lib/assets/language-icons/yaml.js +4 -0
  154. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  155. package/dist/lib/auth/issuer.d.ts +2 -0
  156. package/dist/lib/auth/issuer.js +37 -0
  157. package/dist/lib/auth/issuer.js.map +1 -0
  158. package/dist/lib/auth/issuer.test.d.ts +1 -0
  159. package/dist/lib/auth/issuer.test.js +95 -0
  160. package/dist/lib/auth/issuer.test.js.map +1 -0
  161. package/dist/lib/authentication/AuthenticationPlugin.d.ts +2 -2
  162. package/dist/lib/authentication/AuthenticationPlugin.js +1 -1
  163. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  164. package/dist/lib/authentication/authentication.d.ts +4 -6
  165. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  166. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  167. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  168. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  169. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  170. package/dist/lib/authentication/components/SignIn.js +4 -3
  171. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  172. package/dist/lib/authentication/components/SignOut.js +1 -1
  173. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  174. package/dist/lib/authentication/errors.d.ts +6 -12
  175. package/dist/lib/authentication/errors.js +2 -1
  176. package/dist/lib/authentication/errors.js.map +1 -1
  177. package/dist/lib/authentication/hook.d.ts +7 -0
  178. package/dist/lib/authentication/hook.js.map +1 -1
  179. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  180. package/dist/lib/authentication/providers/auth0.js +2 -2
  181. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  182. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  183. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  184. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  185. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  186. package/dist/lib/authentication/providers/clerk.js +66 -54
  187. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  188. package/dist/lib/authentication/providers/openid.d.ts +13 -15
  189. package/dist/lib/authentication/providers/openid.js +62 -27
  190. package/dist/lib/authentication/providers/openid.js.map +1 -1
  191. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  192. package/dist/lib/authentication/providers/supabase.js +6 -14
  193. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  194. package/dist/lib/authentication/state.d.ts +6 -5
  195. package/dist/lib/authentication/state.js +19 -6
  196. package/dist/lib/authentication/state.js.map +1 -1
  197. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  198. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  199. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  200. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  201. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  202. package/dist/lib/components/Autocomplete.js +3 -3
  203. package/dist/lib/components/Autocomplete.js.map +1 -1
  204. package/dist/lib/components/Banner.js +2 -2
  205. package/dist/lib/components/Banner.js.map +1 -1
  206. package/dist/lib/components/Bootstrap.js.map +1 -1
  207. package/dist/lib/components/BuildCheck.d.ts +2 -1
  208. package/dist/lib/components/BuildCheck.js +10 -3
  209. package/dist/lib/components/BuildCheck.js.map +1 -1
  210. package/dist/lib/components/CategoryHeading.js +1 -1
  211. package/dist/lib/components/CategoryHeading.js.map +1 -1
  212. package/dist/lib/components/ErrorPage.js +2 -2
  213. package/dist/lib/components/ErrorPage.js.map +1 -1
  214. package/dist/lib/components/Footer.js +6 -6
  215. package/dist/lib/components/Footer.js.map +1 -1
  216. package/dist/lib/components/Framed.d.ts +7 -0
  217. package/dist/lib/components/Framed.js +26 -0
  218. package/dist/lib/components/Framed.js.map +1 -0
  219. package/dist/lib/components/Header.js +25 -18
  220. package/dist/lib/components/Header.js.map +1 -1
  221. package/dist/lib/components/Heading.d.ts +7 -3
  222. package/dist/lib/components/Heading.js +8 -3
  223. package/dist/lib/components/Heading.js.map +1 -1
  224. package/dist/lib/components/InlineCode.js +1 -1
  225. package/dist/lib/components/InlineCode.js.map +1 -1
  226. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  227. package/dist/lib/components/LanguageIcon.js +118 -0
  228. package/dist/lib/components/LanguageIcon.js.map +1 -0
  229. package/dist/lib/components/Layout.js +5 -8
  230. package/dist/lib/components/Layout.js.map +1 -1
  231. package/dist/lib/components/Main.js +5 -5
  232. package/dist/lib/components/Main.js.map +1 -1
  233. package/dist/lib/components/Markdown.d.ts +0 -1
  234. package/dist/lib/components/Markdown.js +10 -6
  235. package/dist/lib/components/Markdown.js.map +1 -1
  236. package/dist/lib/components/Meta.d.ts +2 -0
  237. package/dist/lib/components/Meta.js +11 -0
  238. package/dist/lib/components/Meta.js.map +1 -0
  239. package/dist/lib/components/MobileTopNavigation.js +13 -6
  240. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  241. package/dist/lib/components/NotFoundPage.js +2 -2
  242. package/dist/lib/components/NotFoundPage.js.map +1 -1
  243. package/dist/lib/components/PageProgress.d.ts +1 -0
  244. package/dist/lib/components/PageProgress.js +20 -0
  245. package/dist/lib/components/PageProgress.js.map +1 -0
  246. package/dist/lib/components/Pagination.js +1 -1
  247. package/dist/lib/components/Pagination.js.map +1 -1
  248. package/dist/lib/components/PathRenderer.js +1 -1
  249. package/dist/lib/components/PathRenderer.js.map +1 -1
  250. package/dist/lib/components/Search.js +2 -2
  251. package/dist/lib/components/Search.js.map +1 -1
  252. package/dist/lib/components/Slot.d.ts +17 -0
  253. package/dist/lib/components/Slot.js +24 -0
  254. package/dist/lib/components/Slot.js.map +1 -0
  255. package/dist/lib/components/Slot.test.d.ts +1 -0
  256. package/dist/lib/components/Slot.test.js +172 -0
  257. package/dist/lib/components/Slot.test.js.map +1 -0
  258. package/dist/lib/components/StatusPage.js +4 -0
  259. package/dist/lib/components/StatusPage.js.map +1 -1
  260. package/dist/lib/components/TopNavigation.d.ts +7 -6
  261. package/dist/lib/components/TopNavigation.js +52 -54
  262. package/dist/lib/components/TopNavigation.js.map +1 -1
  263. package/dist/lib/components/Typography.d.ts +5 -0
  264. package/dist/lib/components/Typography.js +8 -0
  265. package/dist/lib/components/Typography.js.map +1 -0
  266. package/dist/lib/components/Zudoku.js +4 -4
  267. package/dist/lib/components/Zudoku.js.map +1 -1
  268. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  269. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  270. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  271. package/dist/lib/components/context/SlotProvider.js +83 -0
  272. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  273. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  274. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  275. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  276. package/dist/lib/components/context/ZudokuContext.js +56 -30
  277. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  278. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  279. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  280. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  281. package/dist/lib/components/index.d.ts +49 -49
  282. package/dist/lib/components/index.js +17 -22
  283. package/dist/lib/components/index.js.map +1 -1
  284. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  285. package/dist/lib/components/navigation/Navigation.js +12 -0
  286. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  287. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  288. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +3 -3
  289. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  290. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  291. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +22 -15
  292. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  293. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  294. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  295. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  296. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  297. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  298. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  299. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  300. package/dist/lib/components/navigation/Toc.js +1 -1
  301. package/dist/lib/components/navigation/Toc.js.map +1 -1
  302. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  303. package/dist/lib/components/navigation/utils.d.ts +16 -8
  304. package/dist/lib/components/navigation/utils.js +58 -27
  305. package/dist/lib/components/navigation/utils.js.map +1 -1
  306. package/dist/lib/core/RouteGuard.js +9 -9
  307. package/dist/lib/core/RouteGuard.js.map +1 -1
  308. package/dist/lib/core/ZudokuContext.d.ts +27 -20
  309. package/dist/lib/core/ZudokuContext.js +49 -14
  310. package/dist/lib/core/ZudokuContext.js.map +1 -1
  311. package/dist/lib/core/__internal.d.ts +37 -0
  312. package/dist/lib/core/__internal.js +26 -0
  313. package/dist/lib/core/__internal.js.map +1 -0
  314. package/dist/lib/core/plugins.d.ts +8 -4
  315. package/dist/lib/core/plugins.js +1 -0
  316. package/dist/lib/core/plugins.js.map +1 -1
  317. package/dist/lib/core/router.d.ts +1 -0
  318. package/dist/lib/core/router.js +2 -0
  319. package/dist/lib/core/router.js.map +1 -0
  320. package/dist/lib/errors/ErrorAlert.js +2 -4
  321. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  322. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  323. package/dist/lib/errors/TopLevelError.js +1 -2
  324. package/dist/lib/errors/TopLevelError.js.map +1 -1
  325. package/dist/lib/hooks/index.d.ts +25 -0
  326. package/dist/lib/hooks/index.js +11 -0
  327. package/dist/lib/hooks/index.js.map +1 -1
  328. package/dist/lib/hooks/useEvent.test.js +5 -3
  329. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  330. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  331. package/dist/lib/hooks/useHotkey.js +58 -0
  332. package/dist/lib/hooks/useHotkey.js.map +1 -0
  333. package/dist/lib/oas/graphql/circular.js +2 -2
  334. package/dist/lib/oas/graphql/circular.js.map +1 -1
  335. package/dist/lib/oas/graphql/index.js +22 -3
  336. package/dist/lib/oas/graphql/index.js.map +1 -1
  337. package/dist/lib/oas/parser/dereference/index.js +2 -1
  338. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  339. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  340. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  341. package/dist/lib/oas/parser/index.js +1 -1
  342. package/dist/lib/oas/parser/index.js.map +1 -1
  343. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  344. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  345. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  346. package/dist/lib/plugins/api-catalog/Catalog.js +8 -2
  347. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  348. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  349. package/dist/lib/plugins/api-catalog/index.js +10 -10
  350. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  351. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  352. package/dist/lib/plugins/api-keys/CreateApiKey.js +18 -4
  353. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  354. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  355. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  356. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  357. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  358. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +146 -27
  359. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  360. package/dist/lib/plugins/api-keys/index.d.ts +29 -15
  361. package/dist/lib/plugins/api-keys/index.js +63 -33
  362. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  363. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  364. package/dist/lib/plugins/custom-pages/index.js +18 -10
  365. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  366. package/dist/lib/plugins/markdown/MdxPage.d.ts +2 -3
  367. package/dist/lib/plugins/markdown/MdxPage.js +31 -11
  368. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  369. package/dist/lib/plugins/markdown/index.d.ts +12 -4
  370. package/dist/lib/plugins/markdown/index.js +9 -26
  371. package/dist/lib/plugins/markdown/index.js.map +1 -1
  372. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  373. package/dist/lib/plugins/openapi/ColorizedParam.js +5 -2
  374. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  375. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  376. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  377. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  378. package/dist/lib/plugins/openapi/MCPEndpoint.js +65 -0
  379. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  380. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  381. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  382. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  383. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  384. package/dist/lib/plugins/openapi/OperationList.js +23 -8
  385. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  386. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  387. package/dist/lib/plugins/openapi/OperationListItem.js +10 -7
  388. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  389. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  390. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  391. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  392. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  393. package/dist/lib/plugins/openapi/ParameterList.js +1 -1
  394. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  395. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  396. package/dist/lib/plugins/openapi/ParameterListItem.js +2 -2
  397. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  398. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  399. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +8 -4
  400. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  401. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -2
  402. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  403. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +2 -4
  404. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +1 -4
  405. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  406. package/dist/lib/plugins/openapi/SchemaList.js +7 -7
  407. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  408. package/dist/lib/plugins/openapi/Sidecar.d.ts +2 -2
  409. package/dist/lib/plugins/openapi/Sidecar.js +14 -92
  410. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  411. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -4
  412. package/dist/lib/plugins/openapi/SidecarExamples.js +9 -1
  413. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  414. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  415. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  416. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  417. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  418. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  419. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  420. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  421. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  422. package/dist/lib/plugins/openapi/components/ResponseContent.js +21 -0
  423. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  424. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  425. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  426. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  427. package/dist/lib/plugins/openapi/graphql/gql.d.ts +2 -2
  428. package/dist/lib/plugins/openapi/graphql/gql.js +2 -3
  429. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  430. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +7 -3
  431. package/dist/lib/plugins/openapi/graphql/graphql.js +6 -2
  432. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  433. package/dist/lib/plugins/openapi/index.d.ts +5 -5
  434. package/dist/lib/plugins/openapi/index.js +52 -19
  435. package/dist/lib/plugins/openapi/index.js.map +1 -1
  436. package/dist/lib/plugins/openapi/interfaces.d.ts +7 -7
  437. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  438. package/dist/lib/plugins/openapi/playground/BodyPanel.js +26 -0
  439. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  440. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  441. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  442. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  443. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  444. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  445. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  446. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  447. package/dist/lib/plugins/openapi/playground/Headers.js +54 -32
  448. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  449. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  450. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  451. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  452. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  453. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  454. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  455. package/dist/lib/plugins/openapi/playground/InlineInput.js +1 -1
  456. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +1 -1
  457. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  458. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  459. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -2
  460. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  461. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -10
  462. package/dist/lib/plugins/openapi/playground/Playground.js +116 -94
  463. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  464. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  465. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  466. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  467. package/dist/lib/plugins/openapi/playground/QueryParams.js +38 -23
  468. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  469. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  470. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  471. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  472. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  473. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  474. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  475. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  476. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  477. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  478. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  479. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  480. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  481. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  482. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  483. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  484. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  485. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  486. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  487. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +10 -4
  488. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +33 -31
  489. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  490. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  491. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  492. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  493. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  494. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  495. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  496. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  497. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  498. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  499. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  500. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  501. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  502. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  503. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  504. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  505. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.d.ts +5 -0
  506. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js +7 -0
  507. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupConnector.js.map +1 -0
  508. package/dist/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.d.ts → AllOfGroup/AllOfGroupItem.d.ts} +1 -3
  509. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js +10 -0
  510. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupItem.js.map +1 -0
  511. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.d.ts +5 -0
  512. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js +16 -0
  513. package/dist/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.js.map +1 -0
  514. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  515. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  516. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  517. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +8 -17
  518. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  519. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -1
  520. package/dist/lib/plugins/openapi/schema/SchemaView.js +19 -14
  521. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  522. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  523. package/dist/lib/plugins/openapi/schema/UnionView.js +36 -0
  524. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  525. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  526. package/dist/lib/plugins/openapi/schema/union-helpers.js +72 -0
  527. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  528. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  529. package/dist/lib/plugins/openapi/schema/utils.js +3 -8
  530. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  531. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  532. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  533. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  534. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  535. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
  536. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  537. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  538. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +1 -2
  539. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  540. package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
  541. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  542. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  543. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  544. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  545. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  546. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  547. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  548. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  549. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  550. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  551. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  552. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  553. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  554. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  555. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  556. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  557. package/dist/lib/shiki.d.ts +10 -13
  558. package/dist/lib/shiki.js +14 -13
  559. package/dist/lib/shiki.js.map +1 -1
  560. package/dist/lib/ui/ActionButton.js +1 -1
  561. package/dist/lib/ui/ActionButton.js.map +1 -1
  562. package/dist/lib/ui/Alert.d.ts +6 -5
  563. package/dist/lib/ui/Alert.js +12 -10
  564. package/dist/lib/ui/Alert.js.map +1 -1
  565. package/dist/lib/ui/Badge.d.ts +2 -2
  566. package/dist/lib/ui/Badge.js +1 -1
  567. package/dist/lib/ui/Badge.js.map +1 -1
  568. package/dist/lib/ui/Breadcrumb.js +1 -1
  569. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  570. package/dist/lib/ui/Button.d.ts +2 -2
  571. package/dist/lib/ui/Button.js +8 -6
  572. package/dist/lib/ui/Button.js.map +1 -1
  573. package/dist/lib/ui/Callout.js +1 -1
  574. package/dist/lib/ui/Callout.js.map +1 -1
  575. package/dist/lib/ui/Card.js +1 -1
  576. package/dist/lib/ui/Carousel.js.map +1 -1
  577. package/dist/lib/ui/Checkbox.js +1 -1
  578. package/dist/lib/ui/Checkbox.js.map +1 -1
  579. package/dist/lib/ui/CodeBlock.d.ts +2 -3
  580. package/dist/lib/ui/CodeBlock.js +10 -10
  581. package/dist/lib/ui/CodeBlock.js.map +1 -1
  582. package/dist/lib/ui/Command.d.ts +2 -2
  583. package/dist/lib/ui/Command.js +3 -7
  584. package/dist/lib/ui/Command.js.map +1 -1
  585. package/dist/lib/ui/Dialog.d.ts +3 -1
  586. package/dist/lib/ui/Dialog.js +2 -2
  587. package/dist/lib/ui/Dialog.js.map +1 -1
  588. package/dist/lib/ui/DropdownMenu.js +4 -4
  589. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  590. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +15 -0
  591. package/dist/lib/ui/EmbeddedCodeBlock.js +18 -0
  592. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  593. package/dist/lib/ui/Form.d.ts +2 -2
  594. package/dist/lib/ui/HoverCard.js +1 -1
  595. package/dist/lib/ui/HoverCard.js.map +1 -1
  596. package/dist/lib/ui/Input.js +1 -1
  597. package/dist/lib/ui/Input.js.map +1 -1
  598. package/dist/lib/ui/Pagination.d.ts +1 -1
  599. package/dist/lib/ui/Pagination.js +1 -1
  600. package/dist/lib/ui/Pagination.js.map +1 -1
  601. package/dist/lib/ui/Popover.js +1 -1
  602. package/dist/lib/ui/Popover.js.map +1 -1
  603. package/dist/lib/ui/RadioGroup.js +1 -1
  604. package/dist/lib/ui/RadioGroup.js.map +1 -1
  605. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  606. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  607. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  608. package/dist/lib/ui/Secret.d.ts +12 -0
  609. package/dist/lib/ui/Secret.js +23 -0
  610. package/dist/lib/ui/Secret.js.map +1 -0
  611. package/dist/lib/ui/Select.js +2 -2
  612. package/dist/lib/ui/Select.js.map +1 -1
  613. package/dist/lib/ui/Slider.js +1 -1
  614. package/dist/lib/ui/Slider.js.map +1 -1
  615. package/dist/lib/ui/Switch.js +1 -1
  616. package/dist/lib/ui/Switch.js.map +1 -1
  617. package/dist/lib/ui/SyntaxHighlight.d.ts +3 -1
  618. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  619. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  620. package/dist/lib/ui/Tabs.js +2 -2
  621. package/dist/lib/ui/Tabs.js.map +1 -1
  622. package/dist/lib/ui/Textarea.js +1 -1
  623. package/dist/lib/ui/Textarea.js.map +1 -1
  624. package/dist/lib/ui/Toggle.js +1 -1
  625. package/dist/lib/ui/Toggle.js.map +1 -1
  626. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  627. package/dist/lib/ui/Tooltip.d.ts +2 -1
  628. package/dist/lib/ui/Tooltip.js +2 -1
  629. package/dist/lib/ui/Tooltip.js.map +1 -1
  630. package/dist/lib/ui/Value.d.ts +5 -0
  631. package/dist/lib/ui/Value.js +13 -0
  632. package/dist/lib/ui/Value.js.map +1 -0
  633. package/dist/lib/util/MdxComponents.d.ts +10 -2
  634. package/dist/lib/util/MdxComponents.js +7 -3
  635. package/dist/lib/util/MdxComponents.js.map +1 -1
  636. package/dist/lib/util/cn.js.map +1 -1
  637. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  638. package/dist/lib/util/createVariantComponent.js.map +1 -1
  639. package/dist/lib/util/groupBy.js +1 -0
  640. package/dist/lib/util/groupBy.js.map +1 -1
  641. package/dist/lib/util/humanFileSize.d.ts +6 -0
  642. package/dist/lib/util/humanFileSize.js +14 -0
  643. package/dist/lib/util/humanFileSize.js.map +1 -0
  644. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  645. package/dist/lib/util/humanFileSize.test.js +22 -0
  646. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  647. package/dist/lib/util/invariant.d.ts +6 -5
  648. package/dist/lib/util/invariant.js +4 -2
  649. package/dist/lib/util/invariant.js.map +1 -1
  650. package/dist/lib/util/os.d.ts +2 -0
  651. package/dist/lib/util/os.js +21 -0
  652. package/dist/lib/util/os.js.map +1 -0
  653. package/dist/lib/util/pastellize.js +2 -2
  654. package/dist/lib/util/pastellize.js.map +1 -1
  655. package/dist/lib/util/traverse.d.ts +1 -0
  656. package/dist/lib/util/traverse.js +25 -0
  657. package/dist/lib/util/traverse.js.map +1 -1
  658. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  659. package/dist/lib/util/useCopyToClipboard.js +11 -0
  660. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  661. package/dist/lib/util/useExposedProps.d.ts +8 -1
  662. package/dist/lib/util/useExposedProps.js.map +1 -1
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  664. package/dist/lib/util/useScrollToAnchor.js +5 -3
  665. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  666. package/dist/ts.js +3 -3
  667. package/dist/ts.js.map +1 -1
  668. package/dist/vite/api/SchemaManager.d.ts +4 -4
  669. package/dist/vite/api/SchemaManager.js +51 -28
  670. package/dist/vite/api/SchemaManager.js.map +1 -1
  671. package/dist/vite/api/SchemaManager.test.js +4 -4
  672. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  673. package/dist/vite/api/schema-codegen.js +71 -22
  674. package/dist/vite/api/schema-codegen.js.map +1 -1
  675. package/dist/vite/api/schema-codegen.test.js +156 -1
  676. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  677. package/dist/vite/build.js +22 -8
  678. package/dist/vite/build.js.map +1 -1
  679. package/dist/vite/config.d.ts +2 -9
  680. package/dist/vite/config.js +24 -98
  681. package/dist/vite/config.js.map +1 -1
  682. package/dist/vite/config.test.js +1 -1
  683. package/dist/vite/config.test.js.map +1 -1
  684. package/dist/vite/css/plugin.d.ts +1 -2
  685. package/dist/vite/css/plugin.js +14 -2
  686. package/dist/vite/css/plugin.js.map +1 -1
  687. package/dist/vite/dev-server.d.ts +0 -1
  688. package/dist/vite/dev-server.js +21 -15
  689. package/dist/vite/dev-server.js.map +1 -1
  690. package/dist/vite/error-handler.d.ts +2 -2
  691. package/dist/vite/error-handler.js.map +1 -1
  692. package/dist/vite/html.d.ts +2 -2
  693. package/dist/vite/html.js +5 -2
  694. package/dist/vite/html.js.map +1 -1
  695. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  696. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  697. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  698. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  699. package/dist/vite/mdx/remark-last-modified.js +28 -0
  700. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  701. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  702. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  703. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  704. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  705. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  706. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  707. package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
  708. package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
  709. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  710. package/dist/vite/mdx/utils.d.ts +2 -0
  711. package/dist/vite/mdx/utils.js +31 -0
  712. package/dist/vite/mdx/utils.js.map +1 -0
  713. package/dist/vite/output.d.ts +1 -1
  714. package/dist/vite/output.js +1 -1
  715. package/dist/vite/output.js.map +1 -1
  716. package/dist/vite/plugin-api-keys.d.ts +2 -3
  717. package/dist/vite/plugin-api-keys.js +10 -4
  718. package/dist/vite/plugin-api-keys.js.map +1 -1
  719. package/dist/vite/plugin-api.d.ts +1 -2
  720. package/dist/vite/plugin-api.js +17 -16
  721. package/dist/vite/plugin-api.js.map +1 -1
  722. package/dist/vite/plugin-auth.d.ts +2 -3
  723. package/dist/vite/plugin-auth.js +4 -3
  724. package/dist/vite/plugin-auth.js.map +1 -1
  725. package/dist/vite/plugin-component.d.ts +2 -3
  726. package/dist/vite/plugin-component.js +3 -2
  727. package/dist/vite/plugin-component.js.map +1 -1
  728. package/dist/vite/plugin-config-reload.d.ts +2 -3
  729. package/dist/vite/plugin-config-reload.js +23 -22
  730. package/dist/vite/plugin-config-reload.js.map +1 -1
  731. package/dist/vite/plugin-config.d.ts +2 -3
  732. package/dist/vite/plugin-config.js +6 -4
  733. package/dist/vite/plugin-config.js.map +1 -1
  734. package/dist/vite/plugin-custom-pages.d.ts +2 -3
  735. package/dist/vite/plugin-custom-pages.js +6 -5
  736. package/dist/vite/plugin-custom-pages.js.map +1 -1
  737. package/dist/vite/plugin-docs.d.ts +1 -2
  738. package/dist/vite/plugin-docs.js +75 -63
  739. package/dist/vite/plugin-docs.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +1 -2
  741. package/dist/vite/plugin-frontmatter.js +10 -5
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -3
  744. package/dist/vite/plugin-mdx.js +28 -65
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-metadata.d.ts +1 -1
  747. package/dist/vite/plugin-navigation.d.ts +4 -0
  748. package/dist/vite/plugin-navigation.js +63 -0
  749. package/dist/vite/plugin-navigation.js.map +1 -0
  750. package/dist/vite/plugin-redirect.d.ts +2 -3
  751. package/dist/vite/plugin-redirect.js +4 -3
  752. package/dist/vite/plugin-redirect.js.map +1 -1
  753. package/dist/vite/plugin-search.d.ts +2 -3
  754. package/dist/vite/plugin-search.js +4 -3
  755. package/dist/vite/plugin-search.js.map +1 -1
  756. package/dist/vite/plugin-shiki-register.d.ts +1 -2
  757. package/dist/vite/plugin-shiki-register.js +3 -2
  758. package/dist/vite/plugin-shiki-register.js.map +1 -1
  759. package/dist/vite/plugin-theme.d.ts +8 -0
  760. package/dist/vite/plugin-theme.js +274 -0
  761. package/dist/vite/plugin-theme.js.map +1 -0
  762. package/dist/vite/plugin-theme.test.d.ts +1 -0
  763. package/dist/vite/plugin-theme.test.js +314 -0
  764. package/dist/vite/plugin-theme.test.js.map +1 -0
  765. package/dist/vite/plugin.d.ts +2 -3
  766. package/dist/vite/plugin.js +23 -24
  767. package/dist/vite/plugin.js.map +1 -1
  768. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  769. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  770. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  771. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  772. package/dist/vite/prerender/prerender.js +1 -1
  773. package/dist/vite/prerender/prerender.js.map +1 -1
  774. package/dist/vite/prerender/worker.d.ts +1 -1
  775. package/dist/vite/prerender/worker.js +5 -1
  776. package/dist/vite/prerender/worker.js.map +1 -1
  777. package/dist/vite/reporter.js +2 -2
  778. package/dist/vite/reporter.js.map +1 -1
  779. package/dist/vite/shadcn-registry.d.ts +20 -0
  780. package/dist/vite/shadcn-registry.js +29 -0
  781. package/dist/vite/shadcn-registry.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +14 -13
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  786. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  787. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  788. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  789. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  790. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  791. package/dist/zuplo/policy-types.js +0 -1
  792. package/dist/zuplo/policy-types.js.map +1 -1
  793. package/dist/zuplo/with-zuplo-processors.js +2 -0
  794. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  795. package/dist/zuplo/with-zuplo.d.ts +2 -2
  796. package/dist/zuplo/with-zuplo.js +1 -1
  797. package/dist/zuplo/with-zuplo.js.map +1 -1
  798. package/lib/Button-DTDRi4CT.js +51 -0
  799. package/lib/Button-DTDRi4CT.js.map +1 -0
  800. package/lib/{Card-BlCYNw5W.js → Card-hTy9PAnh.js} +4 -4
  801. package/lib/{Card-BlCYNw5W.js.map → Card-hTy9PAnh.js.map} +1 -1
  802. package/lib/CategoryHeading-BGCNu3VK.js +17 -0
  803. package/lib/CategoryHeading-BGCNu3VK.js.map +1 -0
  804. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  805. package/lib/CodeBlock-i0BM_QFf.js +176 -0
  806. package/lib/CodeBlock-i0BM_QFf.js.map +1 -0
  807. package/lib/Command-TEBTONf1.js +134 -0
  808. package/lib/Command-TEBTONf1.js.map +1 -0
  809. package/lib/Dialog-VIMic7xI.js +114 -0
  810. package/lib/Dialog-VIMic7xI.js.map +1 -0
  811. package/lib/{Drawer-BPBxzel2.js → Drawer-DM9wJUC6.js} +87 -87
  812. package/lib/Drawer-DM9wJUC6.js.map +1 -0
  813. package/lib/ErrorAlert-Diu_w5Po.js +15522 -0
  814. package/lib/ErrorAlert-Diu_w5Po.js.map +1 -0
  815. package/lib/MdxPage-CDs_vtjC.js +111 -0
  816. package/lib/MdxPage-CDs_vtjC.js.map +1 -0
  817. package/lib/OAuthErrorPage-BbI9XJWR.js +150 -0
  818. package/lib/OAuthErrorPage-BbI9XJWR.js.map +1 -0
  819. package/lib/OasProvider-D3Cjaaxr.js +36 -0
  820. package/lib/OasProvider-D3Cjaaxr.js.map +1 -0
  821. package/lib/OperationList-BH4cFU-0.js +5454 -0
  822. package/lib/OperationList-BH4cFU-0.js.map +1 -0
  823. package/lib/Pagination-BKphudjx.js +37 -0
  824. package/lib/Pagination-BKphudjx.js.map +1 -0
  825. package/lib/RouteGuard-nFlgfJqk.js +56 -0
  826. package/lib/RouteGuard-nFlgfJqk.js.map +1 -0
  827. package/lib/RouterError-CnS5hYUh.js +41 -0
  828. package/lib/RouterError-CnS5hYUh.js.map +1 -0
  829. package/lib/SchemaList-BcJyi2sR.js +150 -0
  830. package/lib/SchemaList-BcJyi2sR.js.map +1 -0
  831. package/lib/SchemaView-DnTxmN15.js +458 -0
  832. package/lib/SchemaView-DnTxmN15.js.map +1 -0
  833. package/lib/{Select-HTio1oSE.js → Select-BPQp7Yqx.js} +116 -54
  834. package/lib/Select-BPQp7Yqx.js.map +1 -0
  835. package/lib/SignUp-tBtnwuXL.js +56 -0
  836. package/lib/SignUp-tBtnwuXL.js.map +1 -0
  837. package/lib/{Spinner-mNLZ6awP.js → Spinner-Cf6E803I.js} +2 -2
  838. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-Cf6E803I.js.map} +1 -1
  839. package/lib/{SyntaxHighlight-UxOF1xNb.js → SyntaxHighlight-Cqh6cwC3.js} +4659 -3459
  840. package/lib/SyntaxHighlight-Cqh6cwC3.js.map +1 -0
  841. package/lib/{Toc-Ax54Pw8S.js → Toc-Zzozy3eB.js} +6 -6
  842. package/lib/Toc-Zzozy3eB.js.map +1 -0
  843. package/lib/ZudokuContext-3cqbu21w.js +1285 -0
  844. package/lib/ZudokuContext-3cqbu21w.js.map +1 -0
  845. package/lib/chunk-QMGIS6GS-DqecZ6nq.js +9204 -0
  846. package/lib/chunk-QMGIS6GS-DqecZ6nq.js.map +1 -0
  847. package/lib/{circular-B_TODp4H.js → circular-CokAagii.js} +1812 -1807
  848. package/lib/circular-CokAagii.js.map +1 -0
  849. package/lib/clsx-OuTLNxxd.js +17 -0
  850. package/lib/clsx-OuTLNxxd.js.map +1 -0
  851. package/lib/{cn-CwJPJKOE.js → cn-dYga0KKN.js} +1015 -562
  852. package/lib/cn-dYga0KKN.js.map +1 -0
  853. package/lib/{createServer-CXd8q7nF.js → createServer-DW4hIUUB.js} +2510 -2505
  854. package/lib/createServer-DW4hIUUB.js.map +1 -0
  855. package/lib/csharp-rrJEDRrV.js +53 -0
  856. package/lib/csharp-rrJEDRrV.js.map +1 -0
  857. package/lib/css-Dpk9bCql.js +54 -0
  858. package/lib/css-Dpk9bCql.js.map +1 -0
  859. package/lib/errors-CQLQ5016.js +45 -0
  860. package/lib/errors-CQLQ5016.js.map +1 -0
  861. package/lib/go-D8SJIQ0Z.js +25 -0
  862. package/lib/go-D8SJIQ0Z.js.map +1 -0
  863. package/lib/graphql-aeVKJNa2.js +25 -0
  864. package/lib/graphql-aeVKJNa2.js.map +1 -0
  865. package/lib/hook-ChlxzJwv.js +247 -0
  866. package/lib/hook-ChlxzJwv.js.map +1 -0
  867. package/lib/html-D_7om-nA.js +33 -0
  868. package/lib/html-D_7om-nA.js.map +1 -0
  869. package/lib/index-7FEjMkZ_.js +1058 -0
  870. package/lib/index-7FEjMkZ_.js.map +1 -0
  871. package/lib/{index-BvvmIczU.js → index-CF3Ls1wd.js} +2 -2
  872. package/lib/{index-BvvmIczU.js.map → index-CF3Ls1wd.js.map} +1 -1
  873. package/lib/index-CrcNWbel.js.map +1 -1
  874. package/lib/{index-Z13x6tPX.js → index-DI5SPFK9.js} +2 -2
  875. package/lib/{index-Z13x6tPX.js.map → index-DI5SPFK9.js.map} +1 -1
  876. package/lib/index-QwGs6inR.js +3397 -0
  877. package/lib/index-QwGs6inR.js.map +1 -0
  878. package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
  879. package/lib/index-nGbmHh_A.js.map +1 -0
  880. package/lib/{RouteGuard-lkdEJoDV.js → index.esm-BnYHxCYC.js} +232 -281
  881. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  882. package/lib/index.esm-CdzlRw50.js +1254 -0
  883. package/lib/index.esm-CdzlRw50.js.map +1 -0
  884. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  885. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  886. package/lib/java-DUh-EL8n.js +53 -0
  887. package/lib/java-DUh-EL8n.js.map +1 -0
  888. package/lib/javascript-CrY8dcGu.js +10 -0
  889. package/lib/javascript-CrY8dcGu.js.map +1 -0
  890. package/lib/json-DLK2_sdf.js +25 -0
  891. package/lib/json-DLK2_sdf.js.map +1 -0
  892. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-DywqP_6a.js} +14 -14
  893. package/lib/{jsx-runtime-C5mzlN2N.js.map → jsx-runtime-DywqP_6a.js.map} +1 -1
  894. package/lib/kotlin-rJMOGl7D.js +37 -0
  895. package/lib/kotlin-rJMOGl7D.js.map +1 -0
  896. package/lib/markdown-BD9bIU5J.js +25 -0
  897. package/lib/markdown-BD9bIU5J.js.map +1 -0
  898. package/lib/mdx-G25UCvf3.js +32 -0
  899. package/lib/mdx-G25UCvf3.js.map +1 -0
  900. package/lib/{mutation-CL2MCRQL.js → mutation-DvBlWyBr.js} +2 -2
  901. package/lib/{mutation-CL2MCRQL.js.map → mutation-DvBlWyBr.js.map} +1 -1
  902. package/lib/objectivec-DDpj0aWX.js +32 -0
  903. package/lib/objectivec-DDpj0aWX.js.map +1 -0
  904. package/lib/php-BeG18bSy.js +25 -0
  905. package/lib/php-BeG18bSy.js.map +1 -0
  906. package/lib/processors/removeExtensions.js.map +1 -1
  907. package/lib/processors/removeParameters.js.map +1 -1
  908. package/lib/processors/removePaths.js.map +1 -1
  909. package/lib/processors/traverse.js.map +1 -1
  910. package/lib/python-BaF2byD-.js +32 -0
  911. package/lib/python-BaF2byD-.js.map +1 -0
  912. package/lib/react-CQvDN20M.js +24 -0
  913. package/lib/react-CQvDN20M.js.map +1 -0
  914. package/lib/ruby-CmxRVHMR.js +25 -0
  915. package/lib/ruby-CmxRVHMR.js.map +1 -0
  916. package/lib/rust-IfSC62c5.js +25 -0
  917. package/lib/rust-IfSC62c5.js.map +1 -0
  918. package/lib/shell-BFu0M6m4.js +25 -0
  919. package/lib/shell-BFu0M6m4.js.map +1 -0
  920. package/lib/swift-DckbsN4v.js +25 -0
  921. package/lib/swift-DckbsN4v.js.map +1 -0
  922. package/lib/toml-BJsCc8TC.js +32 -0
  923. package/lib/toml-BJsCc8TC.js.map +1 -0
  924. package/lib/typescript-7qOVMjOC.js +32 -0
  925. package/lib/typescript-7qOVMjOC.js.map +1 -0
  926. package/lib/ui/Accordion.js +2 -2
  927. package/lib/ui/Accordion.js.map +1 -1
  928. package/lib/ui/ActionButton.js +11 -11
  929. package/lib/ui/ActionButton.js.map +1 -1
  930. package/lib/ui/Alert.js +55 -39
  931. package/lib/ui/Alert.js.map +1 -1
  932. package/lib/ui/AlertDialog.js +2 -2
  933. package/lib/ui/AlertDialog.js.map +1 -1
  934. package/lib/ui/Badge.js +4 -4
  935. package/lib/ui/Badge.js.map +1 -1
  936. package/lib/ui/Breadcrumb.js +24 -23
  937. package/lib/ui/Breadcrumb.js.map +1 -1
  938. package/lib/ui/Button.js +20 -18
  939. package/lib/ui/Button.js.map +1 -1
  940. package/lib/ui/Callout.js +7 -6
  941. package/lib/ui/Callout.js.map +1 -1
  942. package/lib/ui/Card.js +9 -9
  943. package/lib/ui/Card.js.map +1 -1
  944. package/lib/ui/Carousel.js +2 -2
  945. package/lib/ui/Carousel.js.map +1 -1
  946. package/lib/ui/Checkbox.js +8 -8
  947. package/lib/ui/Checkbox.js.map +1 -1
  948. package/lib/ui/CodeBlock.js +6 -79
  949. package/lib/ui/CodeBlock.js.map +1 -1
  950. package/lib/ui/Command.js +51 -57
  951. package/lib/ui/Command.js.map +1 -1
  952. package/lib/ui/Dialog.js +74 -59
  953. package/lib/ui/Dialog.js.map +1 -1
  954. package/lib/ui/Drawer.js +3 -3
  955. package/lib/ui/DropdownMenu.js +35 -35
  956. package/lib/ui/DropdownMenu.js.map +1 -1
  957. package/lib/ui/EmbeddedCodeBlock.js +80 -0
  958. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  959. package/lib/ui/Form.js +3 -3
  960. package/lib/ui/Form.js.map +1 -1
  961. package/lib/ui/HoverCard.js +6 -6
  962. package/lib/ui/HoverCard.js.map +1 -1
  963. package/lib/ui/Input.js +3 -3
  964. package/lib/ui/Input.js.map +1 -1
  965. package/lib/ui/Label.js +3 -3
  966. package/lib/ui/Label.js.map +1 -1
  967. package/lib/ui/Pagination.js +29 -30
  968. package/lib/ui/Pagination.js.map +1 -1
  969. package/lib/ui/Popover.js +3 -3
  970. package/lib/ui/Popover.js.map +1 -1
  971. package/lib/ui/Progress.js +2 -2
  972. package/lib/ui/Progress.js.map +1 -1
  973. package/lib/ui/RadioGroup.js +11 -11
  974. package/lib/ui/RadioGroup.js.map +1 -1
  975. package/lib/ui/ReactComponentDoc.js +28 -0
  976. package/lib/ui/ReactComponentDoc.js.map +1 -0
  977. package/lib/ui/ScrollArea.js +2 -2
  978. package/lib/ui/ScrollArea.js.map +1 -1
  979. package/lib/ui/Secret.js +96 -0
  980. package/lib/ui/Secret.js.map +1 -0
  981. package/lib/ui/Select.js +32 -32
  982. package/lib/ui/Select.js.map +1 -1
  983. package/lib/ui/Skeleton.js +2 -2
  984. package/lib/ui/Skeleton.js.map +1 -1
  985. package/lib/ui/Slider.js +6 -6
  986. package/lib/ui/Slider.js.map +1 -1
  987. package/lib/ui/Stepper.js +1 -1
  988. package/lib/ui/Stepper.js.map +1 -1
  989. package/lib/ui/Switch.js +6 -6
  990. package/lib/ui/Switch.js.map +1 -1
  991. package/lib/ui/SyntaxHighlight.js +7 -6
  992. package/lib/ui/SyntaxHighlight.js.map +1 -1
  993. package/lib/ui/Tabs.js +17 -17
  994. package/lib/ui/Tabs.js.map +1 -1
  995. package/lib/ui/Textarea.js +6 -6
  996. package/lib/ui/Textarea.js.map +1 -1
  997. package/lib/ui/Toggle.js +8 -8
  998. package/lib/ui/Toggle.js.map +1 -1
  999. package/lib/ui/ToggleGroup.js +2 -2
  1000. package/lib/ui/ToggleGroup.js.map +1 -1
  1001. package/lib/ui/Tooltip.js +15 -8
  1002. package/lib/ui/Tooltip.js.map +1 -1
  1003. package/lib/ui/Value.js +39 -0
  1004. package/lib/ui/Value.js.map +1 -0
  1005. package/lib/ui/util.js +1 -1
  1006. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1007. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1008. package/lib/useExposedProps-BH9aq4MD.js +113 -0
  1009. package/lib/useExposedProps-BH9aq4MD.js.map +1 -0
  1010. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1011. package/lib/xml-DAaTIkBX.js +25 -0
  1012. package/lib/xml-DAaTIkBX.js.map +1 -0
  1013. package/lib/yaml-DUi-dbfu.js +32 -0
  1014. package/lib/yaml-DUi-dbfu.js.map +1 -0
  1015. package/lib/zudoku.__internal.js +2981 -0
  1016. package/lib/zudoku.__internal.js.map +1 -0
  1017. package/lib/zudoku.auth-auth0.js +2 -2
  1018. package/lib/zudoku.auth-auth0.js.map +1 -1
  1019. package/lib/zudoku.auth-azureb2c.js +137 -0
  1020. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1021. package/lib/zudoku.auth-clerk.js +97 -86
  1022. package/lib/zudoku.auth-clerk.js.map +1 -1
  1023. package/lib/zudoku.auth-openid.js +344 -330
  1024. package/lib/zudoku.auth-openid.js.map +1 -1
  1025. package/lib/zudoku.auth-supabase.js +98 -0
  1026. package/lib/zudoku.auth-supabase.js.map +1 -0
  1027. package/lib/zudoku.components.js +22 -28
  1028. package/lib/zudoku.hooks.js +21 -13
  1029. package/lib/zudoku.hooks.js.map +1 -1
  1030. package/lib/zudoku.icons.js +1 -1
  1031. package/lib/zudoku.icons.js.map +1 -1
  1032. package/lib/zudoku.plugin-api-catalog.js +67 -59
  1033. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1034. package/lib/zudoku.plugin-api-keys.js +717 -192
  1035. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1036. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1037. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1038. package/lib/zudoku.plugin-markdown.js +19 -69
  1039. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1040. package/lib/zudoku.plugin-openapi.js +6 -5
  1041. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1042. package/lib/zudoku.plugin-redirect.js +3 -3
  1043. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1044. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  1045. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1046. package/lib/zudoku.plugin-search-pagefind.js +214 -119
  1047. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1048. package/lib/zudoku.plugins.js +7 -6
  1049. package/lib/zudoku.plugins.js.map +1 -1
  1050. package/lib/zudoku.router.js +123 -0
  1051. package/lib/zudoku.router.js.map +1 -0
  1052. package/package.json +121 -104
  1053. package/src/app/ZuploBuildConfig.ts +7 -7
  1054. package/src/app/defaultTheme.css +73 -0
  1055. package/src/app/demo.tsx +25 -7
  1056. package/src/app/entry.client.tsx +7 -8
  1057. package/src/app/entry.server.tsx +4 -6
  1058. package/src/app/env.ts +10 -2
  1059. package/src/app/font.geist.css +73 -0
  1060. package/src/app/main.css +93 -162
  1061. package/src/app/main.tsx +45 -63
  1062. package/src/app/standalone.tsx +14 -8
  1063. package/src/lib/MissingIcon.tsx +1 -1
  1064. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1065. package/src/lib/assets/language-icons/css.tsx +36 -0
  1066. package/src/lib/assets/language-icons/go.tsx +19 -0
  1067. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1068. package/src/lib/assets/language-icons/html.tsx +24 -0
  1069. package/src/lib/assets/language-icons/java.tsx +35 -0
  1070. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1071. package/src/lib/assets/language-icons/json.tsx +19 -0
  1072. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1073. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1074. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1075. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1076. package/src/lib/assets/language-icons/php.tsx +19 -0
  1077. package/src/lib/assets/language-icons/python.tsx +23 -0
  1078. package/src/lib/assets/language-icons/react.tsx +21 -0
  1079. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1080. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1081. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1082. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1083. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1084. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1085. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1086. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1087. package/src/lib/auth/issuer.test.ts +121 -0
  1088. package/src/lib/auth/issuer.ts +41 -0
  1089. package/src/lib/authentication/AuthenticationPlugin.tsx +2 -2
  1090. package/src/lib/authentication/authentication.ts +6 -9
  1091. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  1092. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1093. package/src/lib/authentication/components/SignIn.tsx +5 -12
  1094. package/src/lib/authentication/components/SignOut.tsx +1 -1
  1095. package/src/lib/authentication/errors.ts +27 -13
  1096. package/src/lib/authentication/hook.ts +2 -0
  1097. package/src/lib/authentication/providers/auth0.tsx +11 -5
  1098. package/src/lib/authentication/providers/azureb2c.tsx +201 -0
  1099. package/src/lib/authentication/providers/clerk.tsx +77 -59
  1100. package/src/lib/authentication/providers/openid.tsx +105 -34
  1101. package/src/lib/authentication/providers/supabase.tsx +14 -20
  1102. package/src/lib/authentication/state.ts +37 -7
  1103. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1104. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1105. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1106. package/src/lib/components/AnchorLink.tsx +1 -1
  1107. package/src/lib/components/Autocomplete.tsx +4 -3
  1108. package/src/lib/components/Banner.tsx +2 -3
  1109. package/src/lib/components/Bootstrap.tsx +1 -0
  1110. package/src/lib/components/BuildCheck.tsx +14 -3
  1111. package/src/lib/components/CategoryHeading.tsx +4 -1
  1112. package/src/lib/components/ErrorPage.tsx +3 -3
  1113. package/src/lib/components/Footer.tsx +8 -11
  1114. package/src/lib/components/Framed.tsx +51 -0
  1115. package/src/lib/components/Header.tsx +46 -43
  1116. package/src/lib/components/Heading.tsx +17 -10
  1117. package/src/lib/components/InlineCode.tsx +1 -1
  1118. package/src/lib/components/LanguageIcon.tsx +136 -0
  1119. package/src/lib/components/Layout.tsx +6 -25
  1120. package/src/lib/components/Main.tsx +13 -13
  1121. package/src/lib/components/Markdown.tsx +23 -12
  1122. package/src/lib/components/Meta.tsx +45 -0
  1123. package/src/lib/components/MobileTopNavigation.tsx +71 -15
  1124. package/src/lib/components/NotFoundPage.tsx +6 -5
  1125. package/src/lib/components/PageProgress.tsx +28 -0
  1126. package/src/lib/components/Pagination.tsx +5 -10
  1127. package/src/lib/components/PathRenderer.tsx +2 -2
  1128. package/src/lib/components/Search.tsx +2 -2
  1129. package/src/lib/components/Slot.test.tsx +465 -0
  1130. package/src/lib/components/Slot.tsx +64 -0
  1131. package/src/lib/components/StatusPage.tsx +5 -0
  1132. package/src/lib/components/TopNavigation.tsx +80 -85
  1133. package/src/lib/components/Typography.tsx +14 -0
  1134. package/src/lib/components/Zudoku.tsx +11 -11
  1135. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1136. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1137. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1138. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1139. package/src/lib/components/context/ZudokuContext.ts +66 -41
  1140. package/src/lib/components/context/ZudokuProvider.tsx +3 -2
  1141. package/src/lib/components/index.ts +18 -28
  1142. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1143. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +2 -2
  1144. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +27 -18
  1145. package/src/lib/components/navigation/NavigationItem.tsx +161 -0
  1146. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +9 -6
  1147. package/src/lib/components/navigation/PoweredByZudoku.tsx +1 -1
  1148. package/src/lib/components/navigation/Toc.tsx +4 -4
  1149. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1150. package/src/lib/components/navigation/utils.ts +82 -42
  1151. package/src/lib/core/RouteGuard.tsx +13 -13
  1152. package/src/lib/core/ZudokuContext.ts +89 -29
  1153. package/src/lib/core/__internal.tsx +30 -0
  1154. package/src/lib/core/plugins.ts +13 -4
  1155. package/src/lib/core/router.ts +1 -0
  1156. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1157. package/src/lib/errors/TopLevelError.tsx +2 -4
  1158. package/src/lib/hooks/index.ts +11 -0
  1159. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1160. package/src/lib/hooks/useHotkey.ts +70 -0
  1161. package/src/lib/oas/graphql/circular.ts +3 -3
  1162. package/src/lib/oas/graphql/index.ts +20 -3
  1163. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1164. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1165. package/src/lib/oas/parser/index.ts +2 -2
  1166. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1167. package/src/lib/plugins/api-catalog/Catalog.tsx +9 -2
  1168. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1169. package/src/lib/plugins/api-keys/CreateApiKey.tsx +70 -44
  1170. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1171. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +441 -122
  1172. package/src/lib/plugins/api-keys/index.tsx +143 -65
  1173. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1174. package/src/lib/plugins/markdown/MdxPage.tsx +81 -26
  1175. package/src/lib/plugins/markdown/index.tsx +30 -43
  1176. package/src/lib/plugins/openapi/CollapsibleCode.tsx +1 -1
  1177. package/src/lib/plugins/openapi/ColorizedParam.tsx +5 -3
  1178. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1179. package/src/lib/plugins/openapi/MCPEndpoint.tsx +293 -0
  1180. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1181. package/src/lib/plugins/openapi/OperationList.tsx +31 -29
  1182. package/src/lib/plugins/openapi/OperationListItem.tsx +96 -105
  1183. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1184. package/src/lib/plugins/openapi/ParameterList.tsx +3 -5
  1185. package/src/lib/plugins/openapi/ParameterListItem.tsx +12 -12
  1186. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +16 -8
  1187. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +3 -2
  1188. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +5 -16
  1189. package/src/lib/plugins/openapi/SchemaList.tsx +24 -18
  1190. package/src/lib/plugins/openapi/Sidecar.tsx +18 -102
  1191. package/src/lib/plugins/openapi/SidecarExamples.tsx +11 -11
  1192. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1193. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1194. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1195. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1196. package/src/lib/plugins/openapi/components/EnumValues.tsx +1 -1
  1197. package/src/lib/plugins/openapi/components/ResponseContent.tsx +104 -0
  1198. package/src/lib/plugins/openapi/context.tsx +1 -1
  1199. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -2
  1200. package/src/lib/plugins/openapi/graphql/gql.ts +8 -9
  1201. package/src/lib/plugins/openapi/graphql/graphql.ts +14 -7
  1202. package/src/lib/plugins/openapi/index.tsx +81 -30
  1203. package/src/lib/plugins/openapi/interfaces.ts +9 -7
  1204. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +55 -0
  1205. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +47 -0
  1206. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -4
  1207. package/src/lib/plugins/openapi/playground/Headers.tsx +217 -115
  1208. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1209. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +14 -17
  1210. package/src/lib/plugins/openapi/playground/InlineInput.tsx +1 -1
  1211. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  1212. package/src/lib/plugins/openapi/playground/PathParams.tsx +5 -6
  1213. package/src/lib/plugins/openapi/playground/Playground.tsx +270 -293
  1214. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +3 -2
  1215. package/src/lib/plugins/openapi/playground/QueryParams.tsx +105 -59
  1216. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1217. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1218. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1219. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1220. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1221. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1222. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +149 -108
  1223. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -91
  1224. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1225. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  1226. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1227. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1228. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1229. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupConnector.tsx → AllOfGroup/AllOfGroupConnector.tsx} +4 -25
  1230. package/src/lib/plugins/openapi/schema/{LogicalGroup/LogicalGroupItem.tsx → AllOfGroup/AllOfGroupItem.tsx} +3 -11
  1231. package/src/lib/plugins/openapi/schema/AllOfGroup/AllOfGroupView.tsx +42 -0
  1232. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +5 -5
  1233. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +11 -30
  1234. package/src/lib/plugins/openapi/schema/SchemaView.tsx +44 -33
  1235. package/src/lib/plugins/openapi/schema/UnionView.tsx +143 -0
  1236. package/src/lib/plugins/openapi/schema/union-helpers.ts +124 -0
  1237. package/src/lib/plugins/openapi/schema/utils.ts +3 -13
  1238. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1239. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
  1240. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +3 -4
  1241. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
  1242. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1243. package/src/lib/plugins/redirect/index.tsx +1 -1
  1244. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1245. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1246. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1247. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1248. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1249. package/src/lib/shiki.ts +27 -22
  1250. package/src/lib/ui/ActionButton.tsx +3 -1
  1251. package/src/lib/ui/Alert.tsx +45 -39
  1252. package/src/lib/ui/Badge.tsx +2 -2
  1253. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1254. package/src/lib/ui/Button.tsx +9 -6
  1255. package/src/lib/ui/Callout.tsx +1 -0
  1256. package/src/lib/ui/Card.tsx +1 -1
  1257. package/src/lib/ui/Carousel.tsx +1 -0
  1258. package/src/lib/ui/Checkbox.tsx +1 -1
  1259. package/src/lib/ui/CodeBlock.tsx +37 -59
  1260. package/src/lib/ui/Command.tsx +6 -8
  1261. package/src/lib/ui/Dialog.tsx +20 -8
  1262. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1263. package/src/lib/ui/EmbeddedCodeBlock.tsx +94 -0
  1264. package/src/lib/ui/Form.tsx +4 -4
  1265. package/src/lib/ui/HoverCard.tsx +1 -1
  1266. package/src/lib/ui/Input.tsx +1 -1
  1267. package/src/lib/ui/Pagination.tsx +1 -2
  1268. package/src/lib/ui/Popover.tsx +1 -1
  1269. package/src/lib/ui/RadioGroup.tsx +1 -1
  1270. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1271. package/src/lib/ui/Secret.tsx +106 -0
  1272. package/src/lib/ui/Select.tsx +3 -3
  1273. package/src/lib/ui/Slider.tsx +1 -1
  1274. package/src/lib/ui/Switch.tsx +1 -1
  1275. package/src/lib/ui/SyntaxHighlight.tsx +11 -3
  1276. package/src/lib/ui/Tabs.tsx +2 -2
  1277. package/src/lib/ui/Textarea.tsx +1 -1
  1278. package/src/lib/ui/Toggle.tsx +1 -1
  1279. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1280. package/src/lib/ui/Tooltip.tsx +16 -1
  1281. package/src/lib/ui/Value.tsx +42 -0
  1282. package/src/lib/util/MdxComponents.tsx +25 -4
  1283. package/src/lib/util/cn.ts +1 -1
  1284. package/src/lib/util/createVariantComponent.tsx +2 -2
  1285. package/src/lib/util/groupBy.ts +1 -0
  1286. package/src/lib/util/humanFileSize.test.ts +24 -0
  1287. package/src/lib/util/humanFileSize.ts +15 -0
  1288. package/src/lib/util/invariant.ts +8 -5
  1289. package/src/lib/util/os.ts +18 -0
  1290. package/src/lib/util/pastellize.ts +2 -2
  1291. package/src/lib/util/traverse.ts +36 -0
  1292. package/src/lib/util/types.ts +1 -1
  1293. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1294. package/src/lib/util/useExposedProps.tsx +12 -1
  1295. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1296. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1297. package/src/shiki/langs/vue-vine.js +1 -0
  1298. package/dist/app/tailwind.d.ts +0 -4
  1299. package/dist/app/tailwind.js +0 -97
  1300. package/dist/app/tailwind.js.map +0 -1
  1301. package/dist/config/common.d.ts +0 -10
  1302. package/dist/config/common.js +0 -2
  1303. package/dist/config/common.js.map +0 -1
  1304. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1305. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1306. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1307. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1308. package/dist/config/validators/SidebarSchema.js +0 -118
  1309. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1310. package/dist/config/validators/common.d.ts +0 -8001
  1311. package/dist/config/validators/common.js +0 -414
  1312. package/dist/config/validators/common.js.map +0 -1
  1313. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1314. package/dist/lib/components/ReactMarkdown.js +0 -182
  1315. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1316. package/dist/lib/components/SlotletProvider.d.ts +0 -17
  1317. package/dist/lib/components/SlotletProvider.js +0 -18
  1318. package/dist/lib/components/SlotletProvider.js.map +0 -1
  1319. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1320. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1321. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1322. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1323. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1324. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1325. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -11
  1326. package/dist/lib/components/navigation/SidebarItem.js +0 -49
  1327. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1328. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1329. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1330. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1331. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1332. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1333. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1334. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1335. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  1336. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -22
  1337. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  1338. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1339. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1340. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1341. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1342. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1343. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1344. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1345. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1346. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1347. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1348. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1349. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1350. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1351. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1352. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1353. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1354. package/dist/vite/plugin-docs.test.js +0 -22
  1355. package/dist/vite/plugin-docs.test.js.map +0 -1
  1356. package/dist/vite/plugin-sidebar.d.ts +0 -5
  1357. package/dist/vite/plugin-sidebar.js +0 -62
  1358. package/dist/vite/plugin-sidebar.js.map +0 -1
  1359. package/dist/vite/plugin-theme-css.d.ts +0 -6
  1360. package/dist/vite/plugin-theme-css.js +0 -117
  1361. package/dist/vite/plugin-theme-css.js.map +0 -1
  1362. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1363. package/lib/AuthenticationPlugin-UNaAuxNo.js +0 -90
  1364. package/lib/AuthenticationPlugin-UNaAuxNo.js.map +0 -1
  1365. package/lib/Button-Bdk_Ij3U.js +0 -49
  1366. package/lib/Button-Bdk_Ij3U.js.map +0 -1
  1367. package/lib/Callout-XadUe37J.js +0 -230
  1368. package/lib/Callout-XadUe37J.js.map +0 -1
  1369. package/lib/CategoryHeading-DZi-Szor.js +0 -10
  1370. package/lib/CategoryHeading-DZi-Szor.js.map +0 -1
  1371. package/lib/Dialog-CNf2oWXG.js +0 -98
  1372. package/lib/Dialog-CNf2oWXG.js.map +0 -1
  1373. package/lib/Drawer-BPBxzel2.js.map +0 -1
  1374. package/lib/Markdown-D96AphCL.js +0 -7691
  1375. package/lib/Markdown-D96AphCL.js.map +0 -1
  1376. package/lib/MdxPage-Sjv6y3cA.js +0 -84
  1377. package/lib/MdxPage-Sjv6y3cA.js.map +0 -1
  1378. package/lib/OasProvider-CzRXrs_-.js +0 -33
  1379. package/lib/OasProvider-CzRXrs_-.js.map +0 -1
  1380. package/lib/OperationList-DefCF3ZI.js +0 -5111
  1381. package/lib/OperationList-DefCF3ZI.js.map +0 -1
  1382. package/lib/Pagination-B89j9KJS.js +0 -48
  1383. package/lib/Pagination-B89j9KJS.js.map +0 -1
  1384. package/lib/RouteGuard-lkdEJoDV.js.map +0 -1
  1385. package/lib/SchemaList-zHQ2Ekyw.js +0 -146
  1386. package/lib/SchemaList-zHQ2Ekyw.js.map +0 -1
  1387. package/lib/SchemaView-CqF4oMU-.js +0 -370
  1388. package/lib/SchemaView-CqF4oMU-.js.map +0 -1
  1389. package/lib/Select-HTio1oSE.js.map +0 -1
  1390. package/lib/SlotletProvider-CTgIBRWg.js +0 -257
  1391. package/lib/SlotletProvider-CTgIBRWg.js.map +0 -1
  1392. package/lib/SyntaxHighlight-UxOF1xNb.js.map +0 -1
  1393. package/lib/Toc-Ax54Pw8S.js.map +0 -1
  1394. package/lib/chunk-BAXFHI7N-C9WnHsLV.js +0 -1839
  1395. package/lib/chunk-BAXFHI7N-C9WnHsLV.js.map +0 -1
  1396. package/lib/circular-B_TODp4H.js.map +0 -1
  1397. package/lib/cn-CwJPJKOE.js.map +0 -1
  1398. package/lib/createServer-CXd8q7nF.js.map +0 -1
  1399. package/lib/hook-BwOB_iZo.js +0 -1442
  1400. package/lib/hook-BwOB_iZo.js.map +0 -1
  1401. package/lib/index--oeBayMa.js +0 -86
  1402. package/lib/index--oeBayMa.js.map +0 -1
  1403. package/lib/index-BY8J3gEh.js +0 -3158
  1404. package/lib/index-BY8J3gEh.js.map +0 -1
  1405. package/lib/index-Bn6Lc9tq.js +0 -9
  1406. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1407. package/lib/index-CT2PstvH.js +0 -4982
  1408. package/lib/index-CT2PstvH.js.map +0 -1
  1409. package/lib/index-zddirpDj.js.map +0 -1
  1410. package/lib/index.esm-D2ZUREQN.js +0 -1216
  1411. package/lib/index.esm-D2ZUREQN.js.map +0 -1
  1412. package/lib/invariant-DAFpPywt.js.map +0 -1
  1413. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1414. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1415. package/lib/useExposedProps-DG8J6ewJ.js +0 -9
  1416. package/lib/useExposedProps-DG8J6ewJ.js.map +0 -1
  1417. package/src/app/tailwind.ts +0 -103
  1418. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1419. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1420. package/src/lib/components/SlotletProvider.tsx +0 -55
  1421. package/src/lib/components/navigation/Sidebar.tsx +0 -48
  1422. package/src/lib/components/navigation/SidebarItem.tsx +0 -117
  1423. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1424. package/src/lib/plugins/markdown/resolver.ts +0 -57
  1425. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -75
  1426. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1427. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1428. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1429. /package/dist/{vite/plugin-docs.test.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
@@ -0,0 +1,3397 @@
1
+ import { j as n } from "./jsx-runtime-DywqP_6a.js";
2
+ import { ChevronUpIcon as yn, ChevronRightIcon as vn, CheckIcon as ft, DotIcon as bn, PlusCircleIcon as he, FileInput as jn, Check as Cn, TableOfContentsIcon as wn, LockIcon as Nn, CircleAlertIcon as Sn, XIcon as gt, Circle as Tn, Unlink2Icon as An, CornerDownRightIcon as On, CornerDownLeftIcon as Pn, DownloadIcon as Rn, UnplugIcon as Ln, SendIcon as $n, CopyIcon as En, IdCardLanyardIcon as In, ShapesIcon as kn, LogInIcon as Dn, CirclePlayIcon as zn } from "lucide-react";
3
+ import { aq as Fn, aU as qn, aM as Vn, e as Bn, ai as _n, an as st } from "./chunk-QMGIS6GS-DqecZ6nq.js";
4
+ import { c as Le, p as $e, b as xt, a as Un } from "./hook-ChlxzJwv.js";
5
+ import { Button as ne } from "./ui/Button.js";
6
+ import { d as Mn, e as Gn, I as Hn, j as I, b as Qn } from "./ZudokuContext-3cqbu21w.js";
7
+ import { Z as Jn, i as Wn } from "./invariant-Bm-FVUQE.js";
8
+ import * as A from "react";
9
+ import { createContext as yt, use as Xn, useRef as R, useEffect as z, useMemo as vt, useState as k, useCallback as bt, Fragment as K, useLayoutEffect as Zn, useTransition as Yn, useContext as Kn } from "react";
10
+ import { VisuallyHidden as es } from "@radix-ui/react-visually-hidden";
11
+ import { D as Ee, a as Ie, c as ke, d as jt, e as Ct, g as ts } from "./Dialog-VIMic7xI.js";
12
+ import { S as ns, b as ss } from "./index-7FEjMkZ_.js";
13
+ import { S as wt, c as Nt, d as St, e as Tt, g as le, A as rs, a as as, b as os, u as is } from "./Select-BPQp7Yqx.js";
14
+ import { u as ae, b as De, C as F, a as cs, F as ls } from "./index.esm-CdzlRw50.js";
15
+ import { B as E } from "./Button-DTDRi4CT.js";
16
+ import * as ze from "@radix-ui/react-collapsible";
17
+ import { g as rt, h as at, i as ot, j as ds } from "./ErrorAlert-Diu_w5Po.js";
18
+ import { c as C } from "./cn-dYga0KKN.js";
19
+ import { u as us } from "./useCopyToClipboard-B_085nfO.js";
20
+ import { u as ms } from "./useLatest-hmRS46UF.js";
21
+ import * as w from "@radix-ui/react-dropdown-menu";
22
+ import * as Oe from "@radix-ui/react-checkbox";
23
+ import * as de from "@radix-ui/react-popover";
24
+ import { PopoverAnchor as ps } from "@radix-ui/react-popover";
25
+ import { P as hs } from "./index-CrcNWbel.js";
26
+ import { f as fs, g as gs, C as xs, b as ys } from "./Command-TEBTONf1.js";
27
+ import { Input as ue } from "./ui/Input.js";
28
+ import { Slot as vs } from "@radix-ui/react-slot";
29
+ import { C as bs } from "./Card-hTy9PAnh.js";
30
+ import * as At from "@radix-ui/react-label";
31
+ import { c as js } from "./index-DI5SPFK9.js";
32
+ import * as se from "@radix-ui/react-radio-group";
33
+ import { z as Cs } from "./useExposedProps-BH9aq4MD.js";
34
+ import { h as ws } from "./SyntaxHighlight-Cqh6cwC3.js";
35
+ let je;
36
+ const Ns = (e) => {
37
+ if (e.errors?.[0])
38
+ throw new Jn(e.errors[0].message, {
39
+ developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
40
+ });
41
+ };
42
+ class Ss {
43
+ constructor(t) {
44
+ this.config = t;
45
+ }
46
+ #e = async () => (je || (je = import("./createServer-DW4hIUUB.js").then(
47
+ (t) => t.createServer(this.config)
48
+ )), je);
49
+ #t = async (t) => this.config.server ? fetch(this.config.server, t) : (await this.#e()).fetch("http://localhost/graphql", t);
50
+ fetch = async (t, s) => {
51
+ const a = t.match(/query (\w+)/)?.[1], r = await this.#t({
52
+ method: "POST",
53
+ body: JSON.stringify({ query: t, variables: s, operationName: a }),
54
+ headers: { "Content-Type": "application/json" }
55
+ });
56
+ if (!r.ok)
57
+ throw new Error("Network response was not ok");
58
+ const o = await r.json();
59
+ return Ns(o), o.data;
60
+ };
61
+ }
62
+ function Ce(e, t) {
63
+ if (!!!e)
64
+ throw new Error(t);
65
+ }
66
+ function Ts(e) {
67
+ return typeof e == "object" && e !== null;
68
+ }
69
+ function As(e, t) {
70
+ if (!!!e)
71
+ throw new Error(
72
+ t ?? "Unexpected invariant triggered."
73
+ );
74
+ }
75
+ const Os = /\r\n|[\n\r]/g;
76
+ function Pe(e, t) {
77
+ let s = 0, a = 1;
78
+ for (const r of e.body.matchAll(Os)) {
79
+ if (typeof r.index == "number" || As(!1), r.index >= t)
80
+ break;
81
+ s = r.index + r[0].length, a += 1;
82
+ }
83
+ return {
84
+ line: a,
85
+ column: t + 1 - s
86
+ };
87
+ }
88
+ function Ps(e) {
89
+ return Ot(
90
+ e.source,
91
+ Pe(e.source, e.start)
92
+ );
93
+ }
94
+ function Ot(e, t) {
95
+ const s = e.locationOffset.column - 1, a = "".padStart(s) + e.body, r = t.line - 1, o = e.locationOffset.line - 1, i = t.line + o, l = t.line === 1 ? s : 0, c = t.column + l, u = `${e.name}:${i}:${c}
96
+ `, d = a.split(/\r\n|[\n\r]/g), h = d[r];
97
+ if (h.length > 120) {
98
+ const g = Math.floor(c / 80), m = c % 80, y = [];
99
+ for (let v = 0; v < h.length; v += 80)
100
+ y.push(h.slice(v, v + 80));
101
+ return u + it([
102
+ [`${i} |`, y[0]],
103
+ ...y.slice(1, g + 1).map((v) => ["|", v]),
104
+ ["|", "^".padStart(m)],
105
+ ["|", y[g + 1]]
106
+ ]);
107
+ }
108
+ return u + it([
109
+ // Lines specified like this: ["prefix", "string"],
110
+ [`${i - 1} |`, d[r - 1]],
111
+ [`${i} |`, h],
112
+ ["|", "^".padStart(c)],
113
+ [`${i + 1} |`, d[r + 1]]
114
+ ]);
115
+ }
116
+ function it(e) {
117
+ const t = e.filter(([a, r]) => r !== void 0), s = Math.max(...t.map(([a]) => a.length));
118
+ return t.map(([a, r]) => a.padStart(s) + (r ? " " + r : "")).join(`
119
+ `);
120
+ }
121
+ function Rs(e) {
122
+ const t = e[0];
123
+ return t == null || "kind" in t || "length" in t ? {
124
+ nodes: t,
125
+ source: e[1],
126
+ positions: e[2],
127
+ path: e[3],
128
+ originalError: e[4],
129
+ extensions: e[5]
130
+ } : t;
131
+ }
132
+ class Fe extends Error {
133
+ /**
134
+ * An array of `{ line, column }` locations within the source GraphQL document
135
+ * which correspond to this error.
136
+ *
137
+ * Errors during validation often contain multiple locations, for example to
138
+ * point out two things with the same name. Errors during execution include a
139
+ * single location, the field which produced the error.
140
+ *
141
+ * Enumerable, and appears in the result of JSON.stringify().
142
+ */
143
+ /**
144
+ * An array describing the JSON-path into the execution response which
145
+ * corresponds to this error. Only included for errors during execution.
146
+ *
147
+ * Enumerable, and appears in the result of JSON.stringify().
148
+ */
149
+ /**
150
+ * An array of GraphQL AST Nodes corresponding to this error.
151
+ */
152
+ /**
153
+ * The source GraphQL document for the first location of this error.
154
+ *
155
+ * Note that if this Error represents more than one node, the source may not
156
+ * represent nodes after the first node.
157
+ */
158
+ /**
159
+ * An array of character offsets within the source GraphQL document
160
+ * which correspond to this error.
161
+ */
162
+ /**
163
+ * The original error thrown from a field resolver during execution.
164
+ */
165
+ /**
166
+ * Extension fields to add to the formatted error.
167
+ */
168
+ /**
169
+ * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
170
+ */
171
+ constructor(t, ...s) {
172
+ var a, r, o;
173
+ const { nodes: i, source: l, positions: c, path: u, originalError: d, extensions: h } = Rs(s);
174
+ super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = d ?? void 0, this.nodes = ct(
175
+ Array.isArray(i) ? i : i ? [i] : void 0
176
+ );
177
+ const g = ct(
178
+ (a = this.nodes) === null || a === void 0 ? void 0 : a.map((y) => y.loc).filter((y) => y != null)
179
+ );
180
+ this.source = l ?? (g == null || (r = g[0]) === null || r === void 0 ? void 0 : r.source), this.positions = c ?? g?.map((y) => y.start), this.locations = c && l ? c.map((y) => Pe(l, y)) : g?.map((y) => Pe(y.source, y.start));
181
+ const m = Ts(
182
+ d?.extensions
183
+ ) ? d?.extensions : void 0;
184
+ this.extensions = (o = h ?? m) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
185
+ message: {
186
+ writable: !0,
187
+ enumerable: !0
188
+ },
189
+ name: {
190
+ enumerable: !1
191
+ },
192
+ nodes: {
193
+ enumerable: !1
194
+ },
195
+ source: {
196
+ enumerable: !1
197
+ },
198
+ positions: {
199
+ enumerable: !1
200
+ },
201
+ originalError: {
202
+ enumerable: !1
203
+ }
204
+ }), d != null && d.stack ? Object.defineProperty(this, "stack", {
205
+ value: d.stack,
206
+ writable: !0,
207
+ configurable: !0
208
+ }) : Error.captureStackTrace ? Error.captureStackTrace(this, Fe) : Object.defineProperty(this, "stack", {
209
+ value: Error().stack,
210
+ writable: !0,
211
+ configurable: !0
212
+ });
213
+ }
214
+ get [Symbol.toStringTag]() {
215
+ return "GraphQLError";
216
+ }
217
+ toString() {
218
+ let t = this.message;
219
+ if (this.nodes)
220
+ for (const s of this.nodes)
221
+ s.loc && (t += `
222
+
223
+ ` + Ps(s.loc));
224
+ else if (this.source && this.locations)
225
+ for (const s of this.locations)
226
+ t += `
227
+
228
+ ` + Ot(this.source, s);
229
+ return t;
230
+ }
231
+ toJSON() {
232
+ const t = {
233
+ message: this.message
234
+ };
235
+ return this.locations != null && (t.locations = this.locations), this.path != null && (t.path = this.path), this.extensions != null && Object.keys(this.extensions).length > 0 && (t.extensions = this.extensions), t;
236
+ }
237
+ }
238
+ function ct(e) {
239
+ return e === void 0 || e.length === 0 ? void 0 : e;
240
+ }
241
+ function L(e, t, s) {
242
+ return new Fe(`Syntax Error: ${s}`, {
243
+ source: e,
244
+ positions: [t]
245
+ });
246
+ }
247
+ class Va {
248
+ /**
249
+ * The character offset at which this Node begins.
250
+ */
251
+ /**
252
+ * The character offset at which this Node ends.
253
+ */
254
+ /**
255
+ * The Token at which this Node begins.
256
+ */
257
+ /**
258
+ * The Token at which this Node ends.
259
+ */
260
+ /**
261
+ * The Source document the AST represents.
262
+ */
263
+ constructor(t, s, a) {
264
+ this.start = t.start, this.end = s.end, this.startToken = t, this.endToken = s, this.source = a;
265
+ }
266
+ get [Symbol.toStringTag]() {
267
+ return "Location";
268
+ }
269
+ toJSON() {
270
+ return {
271
+ start: this.start,
272
+ end: this.end
273
+ };
274
+ }
275
+ }
276
+ class Pt {
277
+ /**
278
+ * The kind of Token.
279
+ */
280
+ /**
281
+ * The character offset at which this Node begins.
282
+ */
283
+ /**
284
+ * The character offset at which this Node ends.
285
+ */
286
+ /**
287
+ * The 1-indexed line number on which this Token appears.
288
+ */
289
+ /**
290
+ * The 1-indexed column number at which this Token begins.
291
+ */
292
+ /**
293
+ * For non-punctuation tokens, represents the interpreted value of the token.
294
+ *
295
+ * Note: is undefined for punctuation tokens, but typed as string for
296
+ * convenience in the parser.
297
+ */
298
+ /**
299
+ * Tokens exist as nodes in a double-linked-list amongst all tokens
300
+ * including ignored tokens. <SOF> is always the first node and <EOF>
301
+ * the last.
302
+ */
303
+ constructor(t, s, a, r, o, i) {
304
+ this.kind = t, this.start = s, this.end = a, this.line = r, this.column = o, this.value = i, this.prev = null, this.next = null;
305
+ }
306
+ get [Symbol.toStringTag]() {
307
+ return "Token";
308
+ }
309
+ toJSON() {
310
+ return {
311
+ kind: this.kind,
312
+ value: this.value,
313
+ line: this.line,
314
+ column: this.column
315
+ };
316
+ }
317
+ }
318
+ const Ls = {
319
+ Name: [],
320
+ Document: ["definitions"],
321
+ OperationDefinition: [
322
+ "name",
323
+ "variableDefinitions",
324
+ "directives",
325
+ "selectionSet"
326
+ ],
327
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
328
+ Variable: ["name"],
329
+ SelectionSet: ["selections"],
330
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
331
+ Argument: ["name", "value"],
332
+ FragmentSpread: ["name", "directives"],
333
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
334
+ FragmentDefinition: [
335
+ "name",
336
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
337
+ "variableDefinitions",
338
+ "typeCondition",
339
+ "directives",
340
+ "selectionSet"
341
+ ],
342
+ IntValue: [],
343
+ FloatValue: [],
344
+ StringValue: [],
345
+ BooleanValue: [],
346
+ NullValue: [],
347
+ EnumValue: [],
348
+ ListValue: ["values"],
349
+ ObjectValue: ["fields"],
350
+ ObjectField: ["name", "value"],
351
+ Directive: ["name", "arguments"],
352
+ NamedType: ["name"],
353
+ ListType: ["type"],
354
+ NonNullType: ["type"],
355
+ SchemaDefinition: ["description", "directives", "operationTypes"],
356
+ OperationTypeDefinition: ["type"],
357
+ ScalarTypeDefinition: ["description", "name", "directives"],
358
+ ObjectTypeDefinition: [
359
+ "description",
360
+ "name",
361
+ "interfaces",
362
+ "directives",
363
+ "fields"
364
+ ],
365
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
366
+ InputValueDefinition: [
367
+ "description",
368
+ "name",
369
+ "type",
370
+ "defaultValue",
371
+ "directives"
372
+ ],
373
+ InterfaceTypeDefinition: [
374
+ "description",
375
+ "name",
376
+ "interfaces",
377
+ "directives",
378
+ "fields"
379
+ ],
380
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
381
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
382
+ EnumValueDefinition: ["description", "name", "directives"],
383
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
384
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
385
+ SchemaExtension: ["directives", "operationTypes"],
386
+ ScalarTypeExtension: ["name", "directives"],
387
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
388
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
389
+ UnionTypeExtension: ["name", "directives", "types"],
390
+ EnumTypeExtension: ["name", "directives", "values"],
391
+ InputObjectTypeExtension: ["name", "directives", "fields"]
392
+ }, $s = new Set(Object.keys(Ls));
393
+ function Ba(e) {
394
+ const t = e?.kind;
395
+ return typeof t == "string" && $s.has(t);
396
+ }
397
+ var lt;
398
+ (function(e) {
399
+ e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
400
+ })(lt || (lt = {}));
401
+ function Re(e) {
402
+ return e === 9 || e === 32;
403
+ }
404
+ function re(e) {
405
+ return e >= 48 && e <= 57;
406
+ }
407
+ function Rt(e) {
408
+ return e >= 97 && e <= 122 || // A-Z
409
+ e >= 65 && e <= 90;
410
+ }
411
+ function Lt(e) {
412
+ return Rt(e) || e === 95;
413
+ }
414
+ function Es(e) {
415
+ return Rt(e) || re(e) || e === 95;
416
+ }
417
+ function Is(e) {
418
+ var t;
419
+ let s = Number.MAX_SAFE_INTEGER, a = null, r = -1;
420
+ for (let i = 0; i < e.length; ++i) {
421
+ var o;
422
+ const l = e[i], c = ks(l);
423
+ c !== l.length && (a = (o = a) !== null && o !== void 0 ? o : i, r = i, i !== 0 && c < s && (s = c));
424
+ }
425
+ return e.map((i, l) => l === 0 ? i : i.slice(s)).slice(
426
+ (t = a) !== null && t !== void 0 ? t : 0,
427
+ r + 1
428
+ );
429
+ }
430
+ function ks(e) {
431
+ let t = 0;
432
+ for (; t < e.length && Re(e.charCodeAt(t)); )
433
+ ++t;
434
+ return t;
435
+ }
436
+ function Ds(e, t) {
437
+ const s = e.replace(/"""/g, '\\"""'), a = s.split(/\r\n|[\n\r]/g), r = a.length === 1, o = a.length > 1 && a.slice(1).every((m) => m.length === 0 || Re(m.charCodeAt(0))), i = s.endsWith('\\"""'), l = e.endsWith('"') && !i, c = e.endsWith("\\"), u = l || c, d = !(t != null && t.minimize) && // add leading and trailing new lines only if it improves readability
438
+ (!r || e.length > 70 || u || o || i);
439
+ let h = "";
440
+ const g = r && Re(e.charCodeAt(0));
441
+ return (d && !g || o) && (h += `
442
+ `), h += s, (d || u) && (h += `
443
+ `), '"""' + h + '"""';
444
+ }
445
+ var x;
446
+ (function(e) {
447
+ e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
448
+ })(x || (x = {}));
449
+ class zs {
450
+ /**
451
+ * The previously focused non-ignored token.
452
+ */
453
+ /**
454
+ * The currently focused non-ignored token.
455
+ */
456
+ /**
457
+ * The (1-indexed) line containing the current token.
458
+ */
459
+ /**
460
+ * The character offset at which the current line begins.
461
+ */
462
+ constructor(t) {
463
+ const s = new Pt(x.SOF, 0, 0, 0, 0);
464
+ this.source = t, this.lastToken = s, this.token = s, this.line = 1, this.lineStart = 0;
465
+ }
466
+ get [Symbol.toStringTag]() {
467
+ return "Lexer";
468
+ }
469
+ /**
470
+ * Advances the token stream to the next non-ignored token.
471
+ */
472
+ advance() {
473
+ return this.lastToken = this.token, this.token = this.lookahead();
474
+ }
475
+ /**
476
+ * Looks ahead and returns the next non-ignored token, but does not change
477
+ * the state of Lexer.
478
+ */
479
+ lookahead() {
480
+ let t = this.token;
481
+ if (t.kind !== x.EOF)
482
+ do
483
+ if (t.next)
484
+ t = t.next;
485
+ else {
486
+ const s = qs(this, t.end);
487
+ t.next = s, s.prev = t, t = s;
488
+ }
489
+ while (t.kind === x.COMMENT);
490
+ return t;
491
+ }
492
+ }
493
+ function Fs(e) {
494
+ return e === x.BANG || e === x.DOLLAR || e === x.AMP || e === x.PAREN_L || e === x.PAREN_R || e === x.SPREAD || e === x.COLON || e === x.EQUALS || e === x.AT || e === x.BRACKET_L || e === x.BRACKET_R || e === x.BRACE_L || e === x.PIPE || e === x.BRACE_R;
495
+ }
496
+ function Z(e) {
497
+ return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
498
+ }
499
+ function fe(e, t) {
500
+ return $t(e.charCodeAt(t)) && Et(e.charCodeAt(t + 1));
501
+ }
502
+ function $t(e) {
503
+ return e >= 55296 && e <= 56319;
504
+ }
505
+ function Et(e) {
506
+ return e >= 56320 && e <= 57343;
507
+ }
508
+ function U(e, t) {
509
+ const s = e.source.body.codePointAt(t);
510
+ if (s === void 0)
511
+ return x.EOF;
512
+ if (s >= 32 && s <= 126) {
513
+ const a = String.fromCodePoint(s);
514
+ return a === '"' ? `'"'` : `"${a}"`;
515
+ }
516
+ return "U+" + s.toString(16).toUpperCase().padStart(4, "0");
517
+ }
518
+ function N(e, t, s, a, r) {
519
+ const o = e.line, i = 1 + s - e.lineStart;
520
+ return new Pt(t, s, a, o, i, r);
521
+ }
522
+ function qs(e, t) {
523
+ const s = e.source.body, a = s.length;
524
+ let r = t;
525
+ for (; r < a; ) {
526
+ const o = s.charCodeAt(r);
527
+ switch (o) {
528
+ // Ignored ::
529
+ // - UnicodeBOM
530
+ // - WhiteSpace
531
+ // - LineTerminator
532
+ // - Comment
533
+ // - Comma
534
+ //
535
+ // UnicodeBOM :: "Byte Order Mark (U+FEFF)"
536
+ //
537
+ // WhiteSpace ::
538
+ // - "Horizontal Tab (U+0009)"
539
+ // - "Space (U+0020)"
540
+ //
541
+ // Comma :: ,
542
+ case 65279:
543
+ // <BOM>
544
+ case 9:
545
+ // \t
546
+ case 32:
547
+ // <space>
548
+ case 44:
549
+ ++r;
550
+ continue;
551
+ // LineTerminator ::
552
+ // - "New Line (U+000A)"
553
+ // - "Carriage Return (U+000D)" [lookahead != "New Line (U+000A)"]
554
+ // - "Carriage Return (U+000D)" "New Line (U+000A)"
555
+ case 10:
556
+ ++r, ++e.line, e.lineStart = r;
557
+ continue;
558
+ case 13:
559
+ s.charCodeAt(r + 1) === 10 ? r += 2 : ++r, ++e.line, e.lineStart = r;
560
+ continue;
561
+ // Comment
562
+ case 35:
563
+ return Vs(e, r);
564
+ // Token ::
565
+ // - Punctuator
566
+ // - Name
567
+ // - IntValue
568
+ // - FloatValue
569
+ // - StringValue
570
+ //
571
+ // Punctuator :: one of ! $ & ( ) ... : = @ [ ] { | }
572
+ case 33:
573
+ return N(e, x.BANG, r, r + 1);
574
+ case 36:
575
+ return N(e, x.DOLLAR, r, r + 1);
576
+ case 38:
577
+ return N(e, x.AMP, r, r + 1);
578
+ case 40:
579
+ return N(e, x.PAREN_L, r, r + 1);
580
+ case 41:
581
+ return N(e, x.PAREN_R, r, r + 1);
582
+ case 46:
583
+ if (s.charCodeAt(r + 1) === 46 && s.charCodeAt(r + 2) === 46)
584
+ return N(e, x.SPREAD, r, r + 3);
585
+ break;
586
+ case 58:
587
+ return N(e, x.COLON, r, r + 1);
588
+ case 61:
589
+ return N(e, x.EQUALS, r, r + 1);
590
+ case 64:
591
+ return N(e, x.AT, r, r + 1);
592
+ case 91:
593
+ return N(e, x.BRACKET_L, r, r + 1);
594
+ case 93:
595
+ return N(e, x.BRACKET_R, r, r + 1);
596
+ case 123:
597
+ return N(e, x.BRACE_L, r, r + 1);
598
+ case 124:
599
+ return N(e, x.PIPE, r, r + 1);
600
+ case 125:
601
+ return N(e, x.BRACE_R, r, r + 1);
602
+ // StringValue
603
+ case 34:
604
+ return s.charCodeAt(r + 1) === 34 && s.charCodeAt(r + 2) === 34 ? Hs(e, r) : _s(e, r);
605
+ }
606
+ if (re(o) || o === 45)
607
+ return Bs(e, r, o);
608
+ if (Lt(o))
609
+ return Qs(e, r);
610
+ throw L(
611
+ e.source,
612
+ r,
613
+ o === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Z(o) || fe(s, r) ? `Unexpected character: ${U(e, r)}.` : `Invalid character: ${U(e, r)}.`
614
+ );
615
+ }
616
+ return N(e, x.EOF, a, a);
617
+ }
618
+ function Vs(e, t) {
619
+ const s = e.source.body, a = s.length;
620
+ let r = t + 1;
621
+ for (; r < a; ) {
622
+ const o = s.charCodeAt(r);
623
+ if (o === 10 || o === 13)
624
+ break;
625
+ if (Z(o))
626
+ ++r;
627
+ else if (fe(s, r))
628
+ r += 2;
629
+ else
630
+ break;
631
+ }
632
+ return N(
633
+ e,
634
+ x.COMMENT,
635
+ t,
636
+ r,
637
+ s.slice(t + 1, r)
638
+ );
639
+ }
640
+ function Bs(e, t, s) {
641
+ const a = e.source.body;
642
+ let r = t, o = s, i = !1;
643
+ if (o === 45 && (o = a.charCodeAt(++r)), o === 48) {
644
+ if (o = a.charCodeAt(++r), re(o))
645
+ throw L(
646
+ e.source,
647
+ r,
648
+ `Invalid number, unexpected digit after 0: ${U(
649
+ e,
650
+ r
651
+ )}.`
652
+ );
653
+ } else
654
+ r = we(e, r, o), o = a.charCodeAt(r);
655
+ if (o === 46 && (i = !0, o = a.charCodeAt(++r), r = we(e, r, o), o = a.charCodeAt(r)), (o === 69 || o === 101) && (i = !0, o = a.charCodeAt(++r), (o === 43 || o === 45) && (o = a.charCodeAt(++r)), r = we(e, r, o), o = a.charCodeAt(r)), o === 46 || Lt(o))
656
+ throw L(
657
+ e.source,
658
+ r,
659
+ `Invalid number, expected digit but got: ${U(
660
+ e,
661
+ r
662
+ )}.`
663
+ );
664
+ return N(
665
+ e,
666
+ i ? x.FLOAT : x.INT,
667
+ t,
668
+ r,
669
+ a.slice(t, r)
670
+ );
671
+ }
672
+ function we(e, t, s) {
673
+ if (!re(s))
674
+ throw L(
675
+ e.source,
676
+ t,
677
+ `Invalid number, expected digit but got: ${U(
678
+ e,
679
+ t
680
+ )}.`
681
+ );
682
+ const a = e.source.body;
683
+ let r = t + 1;
684
+ for (; re(a.charCodeAt(r)); )
685
+ ++r;
686
+ return r;
687
+ }
688
+ function _s(e, t) {
689
+ const s = e.source.body, a = s.length;
690
+ let r = t + 1, o = r, i = "";
691
+ for (; r < a; ) {
692
+ const l = s.charCodeAt(r);
693
+ if (l === 34)
694
+ return i += s.slice(o, r), N(e, x.STRING, t, r + 1, i);
695
+ if (l === 92) {
696
+ i += s.slice(o, r);
697
+ const c = s.charCodeAt(r + 1) === 117 ? s.charCodeAt(r + 2) === 123 ? Us(e, r) : Ms(e, r) : Gs(e, r);
698
+ i += c.value, r += c.size, o = r;
699
+ continue;
700
+ }
701
+ if (l === 10 || l === 13)
702
+ break;
703
+ if (Z(l))
704
+ ++r;
705
+ else if (fe(s, r))
706
+ r += 2;
707
+ else
708
+ throw L(
709
+ e.source,
710
+ r,
711
+ `Invalid character within String: ${U(
712
+ e,
713
+ r
714
+ )}.`
715
+ );
716
+ }
717
+ throw L(e.source, r, "Unterminated string.");
718
+ }
719
+ function Us(e, t) {
720
+ const s = e.source.body;
721
+ let a = 0, r = 3;
722
+ for (; r < 12; ) {
723
+ const o = s.charCodeAt(t + r++);
724
+ if (o === 125) {
725
+ if (r < 5 || !Z(a))
726
+ break;
727
+ return {
728
+ value: String.fromCodePoint(a),
729
+ size: r
730
+ };
731
+ }
732
+ if (a = a << 4 | ee(o), a < 0)
733
+ break;
734
+ }
735
+ throw L(
736
+ e.source,
737
+ t,
738
+ `Invalid Unicode escape sequence: "${s.slice(
739
+ t,
740
+ t + r
741
+ )}".`
742
+ );
743
+ }
744
+ function Ms(e, t) {
745
+ const s = e.source.body, a = dt(s, t + 2);
746
+ if (Z(a))
747
+ return {
748
+ value: String.fromCodePoint(a),
749
+ size: 6
750
+ };
751
+ if ($t(a) && s.charCodeAt(t + 6) === 92 && s.charCodeAt(t + 7) === 117) {
752
+ const r = dt(s, t + 8);
753
+ if (Et(r))
754
+ return {
755
+ value: String.fromCodePoint(a, r),
756
+ size: 12
757
+ };
758
+ }
759
+ throw L(
760
+ e.source,
761
+ t,
762
+ `Invalid Unicode escape sequence: "${s.slice(t, t + 6)}".`
763
+ );
764
+ }
765
+ function dt(e, t) {
766
+ return ee(e.charCodeAt(t)) << 12 | ee(e.charCodeAt(t + 1)) << 8 | ee(e.charCodeAt(t + 2)) << 4 | ee(e.charCodeAt(t + 3));
767
+ }
768
+ function ee(e) {
769
+ return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
770
+ }
771
+ function Gs(e, t) {
772
+ const s = e.source.body;
773
+ switch (s.charCodeAt(t + 1)) {
774
+ case 34:
775
+ return {
776
+ value: '"',
777
+ size: 2
778
+ };
779
+ case 92:
780
+ return {
781
+ value: "\\",
782
+ size: 2
783
+ };
784
+ case 47:
785
+ return {
786
+ value: "/",
787
+ size: 2
788
+ };
789
+ case 98:
790
+ return {
791
+ value: "\b",
792
+ size: 2
793
+ };
794
+ case 102:
795
+ return {
796
+ value: "\f",
797
+ size: 2
798
+ };
799
+ case 110:
800
+ return {
801
+ value: `
802
+ `,
803
+ size: 2
804
+ };
805
+ case 114:
806
+ return {
807
+ value: "\r",
808
+ size: 2
809
+ };
810
+ case 116:
811
+ return {
812
+ value: " ",
813
+ size: 2
814
+ };
815
+ }
816
+ throw L(
817
+ e.source,
818
+ t,
819
+ `Invalid character escape sequence: "${s.slice(
820
+ t,
821
+ t + 2
822
+ )}".`
823
+ );
824
+ }
825
+ function Hs(e, t) {
826
+ const s = e.source.body, a = s.length;
827
+ let r = e.lineStart, o = t + 3, i = o, l = "";
828
+ const c = [];
829
+ for (; o < a; ) {
830
+ const u = s.charCodeAt(o);
831
+ if (u === 34 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34) {
832
+ l += s.slice(i, o), c.push(l);
833
+ const d = N(
834
+ e,
835
+ x.BLOCK_STRING,
836
+ t,
837
+ o + 3,
838
+ // Return a string of the lines joined with U+000A.
839
+ Is(c).join(`
840
+ `)
841
+ );
842
+ return e.line += c.length - 1, e.lineStart = r, d;
843
+ }
844
+ if (u === 92 && s.charCodeAt(o + 1) === 34 && s.charCodeAt(o + 2) === 34 && s.charCodeAt(o + 3) === 34) {
845
+ l += s.slice(i, o), i = o + 1, o += 4;
846
+ continue;
847
+ }
848
+ if (u === 10 || u === 13) {
849
+ l += s.slice(i, o), c.push(l), u === 13 && s.charCodeAt(o + 1) === 10 ? o += 2 : ++o, l = "", i = o, r = o;
850
+ continue;
851
+ }
852
+ if (Z(u))
853
+ ++o;
854
+ else if (fe(s, o))
855
+ o += 2;
856
+ else
857
+ throw L(
858
+ e.source,
859
+ o,
860
+ `Invalid character within String: ${U(
861
+ e,
862
+ o
863
+ )}.`
864
+ );
865
+ }
866
+ throw L(e.source, o, "Unterminated string.");
867
+ }
868
+ function Qs(e, t) {
869
+ const s = e.source.body, a = s.length;
870
+ let r = t + 1;
871
+ for (; r < a; ) {
872
+ const o = s.charCodeAt(r);
873
+ if (Es(o))
874
+ ++r;
875
+ else
876
+ break;
877
+ }
878
+ return N(
879
+ e,
880
+ x.NAME,
881
+ t,
882
+ r,
883
+ s.slice(t, r)
884
+ );
885
+ }
886
+ const Js = 10, It = 2;
887
+ function kt(e) {
888
+ return ge(e, []);
889
+ }
890
+ function ge(e, t) {
891
+ switch (typeof e) {
892
+ case "string":
893
+ return JSON.stringify(e);
894
+ case "function":
895
+ return e.name ? `[function ${e.name}]` : "[function]";
896
+ case "object":
897
+ return Ws(e, t);
898
+ default:
899
+ return String(e);
900
+ }
901
+ }
902
+ function Ws(e, t) {
903
+ if (e === null)
904
+ return "null";
905
+ if (t.includes(e))
906
+ return "[Circular]";
907
+ const s = [...t, e];
908
+ if (Xs(e)) {
909
+ const a = e.toJSON();
910
+ if (a !== e)
911
+ return typeof a == "string" ? a : ge(a, s);
912
+ } else if (Array.isArray(e))
913
+ return Ys(e, s);
914
+ return Zs(e, s);
915
+ }
916
+ function Xs(e) {
917
+ return typeof e.toJSON == "function";
918
+ }
919
+ function Zs(e, t) {
920
+ const s = Object.entries(e);
921
+ return s.length === 0 ? "{}" : t.length > It ? "[" + Ks(e) + "]" : "{ " + s.map(
922
+ ([r, o]) => r + ": " + ge(o, t)
923
+ ).join(", ") + " }";
924
+ }
925
+ function Ys(e, t) {
926
+ if (e.length === 0)
927
+ return "[]";
928
+ if (t.length > It)
929
+ return "[Array]";
930
+ const s = Math.min(Js, e.length), a = e.length - s, r = [];
931
+ for (let o = 0; o < s; ++o)
932
+ r.push(ge(e[o], t));
933
+ return a === 1 ? r.push("... 1 more item") : a > 1 && r.push(`... ${a} more items`), "[" + r.join(", ") + "]";
934
+ }
935
+ function Ks(e) {
936
+ const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
937
+ if (t === "Object" && typeof e.constructor == "function") {
938
+ const s = e.constructor.name;
939
+ if (typeof s == "string" && s !== "")
940
+ return s;
941
+ }
942
+ return t;
943
+ }
944
+ const er = globalThis.process && // eslint-disable-next-line no-undef
945
+ process.env.NODE_ENV === "production", tr = (
946
+ /* c8 ignore next 6 */
947
+ // FIXME: https://github.com/graphql/graphql-js/issues/2317
948
+ er ? function(t, s) {
949
+ return t instanceof s;
950
+ } : function(t, s) {
951
+ if (t instanceof s)
952
+ return !0;
953
+ if (typeof t == "object" && t !== null) {
954
+ var a;
955
+ const r = s.prototype[Symbol.toStringTag], o = (
956
+ // We still need to support constructor's name to detect conflicts with older versions of this library.
957
+ Symbol.toStringTag in t ? t[Symbol.toStringTag] : (a = t.constructor) === null || a === void 0 ? void 0 : a.name
958
+ );
959
+ if (r === o) {
960
+ const i = kt(t);
961
+ throw new Error(`Cannot use ${r} "${i}" from another module or realm.
962
+
963
+ Ensure that there is only one instance of "graphql" in the node_modules
964
+ directory. If different versions of "graphql" are the dependencies of other
965
+ relied on modules, use "resolutions" to ensure only one version is installed.
966
+
967
+ https://yarnpkg.com/en/docs/selective-version-resolutions
968
+
969
+ Duplicate "graphql" modules cannot be used at the same time since different
970
+ versions may have different capabilities and behavior. The data from one
971
+ version used in the function from another could produce confusing and
972
+ spurious results.`);
973
+ }
974
+ }
975
+ return !1;
976
+ }
977
+ );
978
+ class Dt {
979
+ constructor(t, s = "GraphQL request", a = {
980
+ line: 1,
981
+ column: 1
982
+ }) {
983
+ typeof t == "string" || Ce(!1, `Body must be a string. Received: ${kt(t)}.`), this.body = t, this.name = s, this.locationOffset = a, this.locationOffset.line > 0 || Ce(
984
+ !1,
985
+ "line in locationOffset is 1-indexed and must be positive."
986
+ ), this.locationOffset.column > 0 || Ce(
987
+ !1,
988
+ "column in locationOffset is 1-indexed and must be positive."
989
+ );
990
+ }
991
+ get [Symbol.toStringTag]() {
992
+ return "Source";
993
+ }
994
+ }
995
+ function nr(e) {
996
+ return tr(e, Dt);
997
+ }
998
+ function sr(e) {
999
+ const t = nr(e) ? e : new Dt(e), s = t.body, a = new zs(t);
1000
+ let r = "", o = !1;
1001
+ for (; a.advance().kind !== x.EOF; ) {
1002
+ const i = a.token, l = i.kind, c = !Fs(i.kind);
1003
+ o && (c || i.kind === x.SPREAD) && (r += " ");
1004
+ const u = s.slice(i.start, i.end);
1005
+ l === x.BLOCK_STRING ? r += Ds(i.value, {
1006
+ minimize: !0
1007
+ }) : r += u, o = c;
1008
+ }
1009
+ return r;
1010
+ }
1011
+ const zt = yt(
1012
+ void 0
1013
+ ), _a = ({
1014
+ children: e,
1015
+ client: t
1016
+ }) => /* @__PURE__ */ n.jsx(zt.Provider, { value: t, children: e }), Ft = (e, t, ...[s]) => ({
1017
+ queryFn: () => e.fetch(t, s),
1018
+ queryKey: [sr(t.toString()), s]
1019
+ }), rr = (e, ...[t]) => {
1020
+ const s = Xn(zt);
1021
+ if (s === void 0)
1022
+ throw new Error("useGraphQL must be used within a GraphQLProvider");
1023
+ return Ft(s, e, ...t === void 0 ? [] : [t]);
1024
+ };
1025
+ class H extends String {
1026
+ __apiType;
1027
+ value;
1028
+ __meta__;
1029
+ constructor(t, s) {
1030
+ super(t), this.value = t, this.__meta__ = s;
1031
+ }
1032
+ toString() {
1033
+ return this.value;
1034
+ }
1035
+ }
1036
+ const ar = new H(
1037
+ `
1038
+ fragment OperationsFragment on OperationItem {
1039
+ slug
1040
+ summary
1041
+ method
1042
+ description
1043
+ operationId
1044
+ contentTypes
1045
+ path
1046
+ deprecated
1047
+ extensions
1048
+ parameters {
1049
+ name
1050
+ in
1051
+ description
1052
+ required
1053
+ schema
1054
+ style
1055
+ explode
1056
+ examples {
1057
+ name
1058
+ description
1059
+ externalValue
1060
+ value
1061
+ summary
1062
+ }
1063
+ }
1064
+ requestBody {
1065
+ content {
1066
+ mediaType
1067
+ encoding {
1068
+ name
1069
+ }
1070
+ examples {
1071
+ name
1072
+ description
1073
+ externalValue
1074
+ value
1075
+ summary
1076
+ }
1077
+ schema
1078
+ }
1079
+ description
1080
+ required
1081
+ }
1082
+ responses {
1083
+ statusCode
1084
+ links
1085
+ description
1086
+ content {
1087
+ examples {
1088
+ name
1089
+ description
1090
+ externalValue
1091
+ value
1092
+ summary
1093
+ }
1094
+ mediaType
1095
+ encoding {
1096
+ name
1097
+ }
1098
+ schema
1099
+ }
1100
+ }
1101
+ }
1102
+ `,
1103
+ { fragmentName: "OperationsFragment" }
1104
+ ), or = new H(`
1105
+ query ServersQuery($input: JSON!, $type: SchemaType!) {
1106
+ schema(input: $input, type: $type) {
1107
+ url
1108
+ servers {
1109
+ url
1110
+ }
1111
+ }
1112
+ }
1113
+ `), ir = new H(`
1114
+ query SchemaWarmup($input: JSON!, $type: SchemaType!) {
1115
+ schema(input: $input, type: $type) {
1116
+ openapi
1117
+ }
1118
+ }
1119
+ `), cr = new H(`
1120
+ query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
1121
+ schema(input: $input, type: $type) {
1122
+ servers {
1123
+ url
1124
+ }
1125
+ description
1126
+ summary
1127
+ title
1128
+ url
1129
+ version
1130
+ tag(slug: $tag, untagged: $untagged) {
1131
+ name
1132
+ description
1133
+ operations {
1134
+ slug
1135
+ ...OperationsFragment
1136
+ }
1137
+ extensions
1138
+ next {
1139
+ name
1140
+ slug
1141
+ extensions
1142
+ }
1143
+ prev {
1144
+ name
1145
+ slug
1146
+ extensions
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ fragment OperationsFragment on OperationItem {
1152
+ slug
1153
+ summary
1154
+ method
1155
+ description
1156
+ operationId
1157
+ contentTypes
1158
+ path
1159
+ deprecated
1160
+ extensions
1161
+ parameters {
1162
+ name
1163
+ in
1164
+ description
1165
+ required
1166
+ schema
1167
+ style
1168
+ explode
1169
+ examples {
1170
+ name
1171
+ description
1172
+ externalValue
1173
+ value
1174
+ summary
1175
+ }
1176
+ }
1177
+ requestBody {
1178
+ content {
1179
+ mediaType
1180
+ encoding {
1181
+ name
1182
+ }
1183
+ examples {
1184
+ name
1185
+ description
1186
+ externalValue
1187
+ value
1188
+ summary
1189
+ }
1190
+ schema
1191
+ }
1192
+ description
1193
+ required
1194
+ }
1195
+ responses {
1196
+ statusCode
1197
+ links
1198
+ description
1199
+ content {
1200
+ examples {
1201
+ name
1202
+ description
1203
+ externalValue
1204
+ value
1205
+ summary
1206
+ }
1207
+ mediaType
1208
+ encoding {
1209
+ name
1210
+ }
1211
+ schema
1212
+ }
1213
+ }
1214
+ }`), lr = new H(`
1215
+ query GetSchemas($input: JSON!, $type: SchemaType!) {
1216
+ schema(input: $input, type: $type) {
1217
+ title
1218
+ description
1219
+ summary
1220
+ components {
1221
+ schemas {
1222
+ name
1223
+ schema
1224
+ extensions
1225
+ }
1226
+ }
1227
+ }
1228
+ }
1229
+ `), dr = new H(`
1230
+ query getServerQuery($input: JSON!, $type: SchemaType!) {
1231
+ schema(input: $input, type: $type) {
1232
+ url
1233
+ servers {
1234
+ url
1235
+ }
1236
+ }
1237
+ }
1238
+ `), ur = new H(`
1239
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
1240
+ schema(input: $input, type: $type) {
1241
+ extensions
1242
+ tags {
1243
+ slug
1244
+ name
1245
+ extensions
1246
+ operations {
1247
+ summary
1248
+ slug
1249
+ method
1250
+ operationId
1251
+ path
1252
+ }
1253
+ }
1254
+ components {
1255
+ schemas {
1256
+ __typename
1257
+ }
1258
+ }
1259
+ }
1260
+ }
1261
+ `), mr = {
1262
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": or,
1263
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": ar,
1264
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": ir,
1265
+ "\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 extensions\n next {\n name\n slug\n extensions\n }\n prev {\n name\n slug\n extensions\n }\n }\n }\n }\n": cr,
1266
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": lr,
1267
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": dr,
1268
+ "\n query GetNavigationOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n extensions\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": ur
1269
+ };
1270
+ function pr(e) {
1271
+ return mr[e] ?? {};
1272
+ }
1273
+ const q = ze.Root, qt = ze.CollapsibleTrigger, V = ze.CollapsibleContent;
1274
+ function hr() {
1275
+ const t = navigator.userAgent.toLowerCase();
1276
+ if (t.indexOf("win") !== -1)
1277
+ return "windows";
1278
+ if (t.indexOf("mac") !== -1)
1279
+ return "apple";
1280
+ if (t.indexOf("linux") !== -1)
1281
+ return "linux";
1282
+ if (t.indexOf("x11") !== -1)
1283
+ return "unix";
1284
+ }
1285
+ function fr() {
1286
+ return hr() === "apple";
1287
+ }
1288
+ const gr = {
1289
+ other: {
1290
+ alt: "Alt",
1291
+ meta: "Ctrl",
1292
+ ctrl: "Ctrl",
1293
+ shift: "⇧",
1294
+ option: "Alt"
1295
+ },
1296
+ apple: {
1297
+ alt: "⌥",
1298
+ meta: "⌘",
1299
+ ctrl: "Ctrl",
1300
+ shift: "⇧",
1301
+ option: "⌥"
1302
+ }
1303
+ }, xr = (e, t) => {
1304
+ const s = e.toLowerCase().split("+"), a = s.includes("meta"), r = s.includes("shift"), o = s.includes("option") || s.includes("alt"), i = s.includes("ctrl"), l = e.split("+").pop(), c = R(t);
1305
+ return z(() => {
1306
+ c.current = t;
1307
+ }, [t]), z(() => {
1308
+ const u = (d) => {
1309
+ (d.code === `Key${l?.toUpperCase()}` || d.code.toLowerCase() === l?.toLowerCase()) && d.metaKey === a && d.shiftKey === r && d.altKey === o && d.ctrlKey === i && (d.preventDefault(), c.current());
1310
+ };
1311
+ return window.addEventListener("keydown", u), () => {
1312
+ window.removeEventListener("keydown", u);
1313
+ };
1314
+ }, [l, a, r, o, i]), {
1315
+ trigger: () => c.current(),
1316
+ label: s.map(
1317
+ (u) => u === "meta" || u === "ctrl" || u === "alt" || u === "shift" || u === "option" ? gr[fr() ? "apple" : "other"][u] : u
1318
+ )
1319
+ };
1320
+ }, yr = Le()(
1321
+ $e(
1322
+ (e) => ({
1323
+ selectedServer: void 0,
1324
+ setSelectedServer: (t) => e({ selectedServer: t })
1325
+ }),
1326
+ { name: "zudoku-selected-server" }
1327
+ )
1328
+ ), vr = (e) => {
1329
+ const { selectedServer: t, setSelectedServer: s } = yr();
1330
+ return { selectedServer: vt(
1331
+ () => t && e.some((r) => r.url === t) ? t : e.at(0)?.url ?? "",
1332
+ [t, e]
1333
+ ), setSelectedServer: s };
1334
+ }, Vt = A.forwardRef(
1335
+ ({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1336
+ "textarea",
1337
+ {
1338
+ className: C(
1339
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1340
+ e
1341
+ ),
1342
+ ref: s,
1343
+ ...t
1344
+ }
1345
+ )
1346
+ );
1347
+ Vt.displayName = "Textarea";
1348
+ const M = ({
1349
+ children: e,
1350
+ className: t
1351
+ }) => /* @__PURE__ */ n.jsxs(
1352
+ "div",
1353
+ {
1354
+ className: C(
1355
+ "grid grid-cols-[max-content_1fr_min-content_max-content] items-center gap-4 group bg-muted w-full h-10 ps-4 pe-2 border-b",
1356
+ t
1357
+ ),
1358
+ children: [
1359
+ e,
1360
+ /* @__PURE__ */ n.jsx(
1361
+ qt,
1362
+ {
1363
+ className: C(
1364
+ "flex items-center gap-4 group bg-muted w-full p-2 hover:bg-accent hover:brightness-95 rounded-md",
1365
+ t
1366
+ ),
1367
+ children: /* @__PURE__ */ n.jsx(
1368
+ yn,
1369
+ {
1370
+ className: "group-data-[state=open]:rotate-180 transition-transform flex-shrink-0",
1371
+ size: 16
1372
+ }
1373
+ )
1374
+ }
1375
+ )
1376
+ ]
1377
+ }
1378
+ ), G = ({
1379
+ children: e,
1380
+ className: t
1381
+ }) => /* @__PURE__ */ n.jsx("span", { className: C("font-semibold w-full text-start", t), children: e }), br = w.Root, jr = w.Trigger, Cr = w.Group, wr = A.forwardRef(({ className: e, inset: t, children: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1382
+ w.SubTrigger,
1383
+ {
1384
+ ref: r,
1385
+ className: C(
1386
+ "flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
1387
+ t && "pl-8",
1388
+ e
1389
+ ),
1390
+ ...a,
1391
+ children: [
1392
+ s,
1393
+ /* @__PURE__ */ n.jsx(vn, { className: "ml-auto h-4 w-4" })
1394
+ ]
1395
+ }
1396
+ ));
1397
+ wr.displayName = w.SubTrigger.displayName;
1398
+ const Nr = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1399
+ w.SubContent,
1400
+ {
1401
+ ref: s,
1402
+ className: C(
1403
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1404
+ e
1405
+ ),
1406
+ ...t
1407
+ }
1408
+ ));
1409
+ Nr.displayName = w.SubContent.displayName;
1410
+ const Bt = A.forwardRef(({ className: e, sideOffset: t = 4, ...s }, a) => /* @__PURE__ */ n.jsx(w.Portal, { children: /* @__PURE__ */ n.jsx(
1411
+ w.Content,
1412
+ {
1413
+ ref: a,
1414
+ sideOffset: t,
1415
+ className: C(
1416
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1417
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1418
+ e
1419
+ ),
1420
+ ...s
1421
+ }
1422
+ ) }));
1423
+ Bt.displayName = w.Content.displayName;
1424
+ const _t = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1425
+ w.Item,
1426
+ {
1427
+ ref: a,
1428
+ className: C(
1429
+ "relative flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1430
+ t && "pl-8",
1431
+ e
1432
+ ),
1433
+ ...s
1434
+ }
1435
+ ));
1436
+ _t.displayName = w.Item.displayName;
1437
+ const Sr = A.forwardRef(({ className: e, children: t, checked: s, ...a }, r) => /* @__PURE__ */ n.jsxs(
1438
+ w.CheckboxItem,
1439
+ {
1440
+ ref: r,
1441
+ className: C(
1442
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1443
+ e
1444
+ ),
1445
+ checked: s,
1446
+ ...a,
1447
+ children: [
1448
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(ft, { className: "h-4 w-4" }) }) }),
1449
+ t
1450
+ ]
1451
+ }
1452
+ ));
1453
+ Sr.displayName = w.CheckboxItem.displayName;
1454
+ const Tr = A.forwardRef(({ className: e, children: t, ...s }, a) => /* @__PURE__ */ n.jsxs(
1455
+ w.RadioItem,
1456
+ {
1457
+ ref: a,
1458
+ className: C(
1459
+ "relative flex cursor-default select-none items-center rounded-xs py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1460
+ e
1461
+ ),
1462
+ ...s,
1463
+ children: [
1464
+ /* @__PURE__ */ n.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n.jsx(w.ItemIndicator, { children: /* @__PURE__ */ n.jsx(bn, { className: "h-4 w-4 fill-current" }) }) }),
1465
+ t
1466
+ ]
1467
+ }
1468
+ ));
1469
+ Tr.displayName = w.RadioItem.displayName;
1470
+ const Ut = A.forwardRef(({ className: e, inset: t, ...s }, a) => /* @__PURE__ */ n.jsx(
1471
+ w.Label,
1472
+ {
1473
+ ref: a,
1474
+ className: C(
1475
+ "px-2 py-1.5 text-sm font-semibold",
1476
+ t && "pl-8",
1477
+ e
1478
+ ),
1479
+ ...s
1480
+ }
1481
+ ));
1482
+ Ut.displayName = w.Label.displayName;
1483
+ const Mt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1484
+ w.Separator,
1485
+ {
1486
+ ref: s,
1487
+ className: C("-mx-1 my-1 h-px bg-muted", e),
1488
+ ...t
1489
+ }
1490
+ ));
1491
+ Mt.displayName = w.Separator.displayName;
1492
+ const Ar = ({
1493
+ examples: e,
1494
+ onSelect: t
1495
+ }) => /* @__PURE__ */ n.jsxs(br, { children: [
1496
+ /* @__PURE__ */ n.jsx(jr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1497
+ E,
1498
+ {
1499
+ variant: "ghost",
1500
+ size: "sm",
1501
+ className: "hover:bg-accent hover:brightness-95",
1502
+ children: [
1503
+ "Use Example ",
1504
+ /* @__PURE__ */ n.jsx(he, { size: 16, className: "ml-2" })
1505
+ ]
1506
+ }
1507
+ ) }),
1508
+ /* @__PURE__ */ n.jsx(Bt, { className: "max-w-72", children: e.map((s) => /* @__PURE__ */ n.jsxs("div", { children: [
1509
+ /* @__PURE__ */ n.jsx(Ut, { children: s.mediaType }),
1510
+ /* @__PURE__ */ n.jsx(Mt, {}),
1511
+ /* @__PURE__ */ n.jsx(Cr, { children: s.examples?.map((a) => /* @__PURE__ */ n.jsx(
1512
+ _t,
1513
+ {
1514
+ onSelect: () => t(a, s.mediaType),
1515
+ children: /* @__PURE__ */ n.jsx(
1516
+ "span",
1517
+ {
1518
+ className: "line-clamp-1",
1519
+ title: a.summary ?? a.name,
1520
+ children: a.summary ?? a.name
1521
+ }
1522
+ )
1523
+ },
1524
+ a.name
1525
+ )) })
1526
+ ] }, s.mediaType)) })
1527
+ ] }), Or = ({ content: e }) => {
1528
+ const { register: t, setValue: s, watch: a } = ae(), r = (e ?? []).flatMap((i) => i.examples), o = a("headers");
1529
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1530
+ /* @__PURE__ */ n.jsxs(M, { children: [
1531
+ /* @__PURE__ */ n.jsx(jn, { size: 16 }),
1532
+ /* @__PURE__ */ n.jsx(G, { children: "Body" }),
1533
+ e && r.length > 0 ? /* @__PURE__ */ n.jsx(
1534
+ Ar,
1535
+ {
1536
+ examples: e,
1537
+ onSelect: (i, l) => {
1538
+ s("body", JSON.stringify(i.value, null, 2)), s("headers", [
1539
+ ...o.filter((c) => c.name !== "Content-Type"),
1540
+ {
1541
+ name: "Content-Type",
1542
+ value: l,
1543
+ active: !0
1544
+ }
1545
+ ]);
1546
+ }
1547
+ }
1548
+ ) : /* @__PURE__ */ n.jsx("div", {})
1549
+ ] }),
1550
+ /* @__PURE__ */ n.jsx(V, { className: "flex flex-col gap-2 ", children: /* @__PURE__ */ n.jsx(
1551
+ Vt,
1552
+ {
1553
+ ...t("body"),
1554
+ className: C(
1555
+ "w-full p-2 h-64 font-mono md:text-xs border-none rounded-none focus-visible:ring-0"
1556
+ ),
1557
+ placeholder: "Your body here..."
1558
+ }
1559
+ ) })
1560
+ ] });
1561
+ }, ut = (e, t, s) => {
1562
+ const a = t.replace(/(:\w+|\{\w+})/g, (o) => {
1563
+ const i = o.replace(/[:{}]/g, "");
1564
+ return s.pathParams.find((c) => c.name === i)?.value ?? o;
1565
+ }), r = new URL(
1566
+ a.replace(/^\//, ""),
1567
+ e.endsWith("/") ? e : `${e}/`
1568
+ );
1569
+ return s.queryParams.filter((o) => o.active).forEach((o) => {
1570
+ r.searchParams.set(o.name, o.value);
1571
+ }), r;
1572
+ };
1573
+ function Pr(e) {
1574
+ return /^(application\/octet-stream|image\/|audio\/|video\/|font\/|application\/pdf|application\/zip|application\/x-protobuf|application\/x-binary)/i.test(
1575
+ e
1576
+ );
1577
+ }
1578
+ const Rr = (e, t) => {
1579
+ const s = e.find(
1580
+ ([a]) => a.toLowerCase() === "content-disposition"
1581
+ )?.[1];
1582
+ if (s) {
1583
+ const a = s.match(
1584
+ /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/
1585
+ );
1586
+ if (a?.[1])
1587
+ return a[1].replace(/['"]/g, "");
1588
+ }
1589
+ try {
1590
+ const r = new URL(t).pathname.split("/").pop() || "download";
1591
+ return r.includes(".") ? r : "download";
1592
+ } catch {
1593
+ return "download";
1594
+ }
1595
+ }, xe = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1596
+ Oe.Root,
1597
+ {
1598
+ ref: s,
1599
+ className: C(
1600
+ "peer h-4 w-4 shrink-0 rounded-[min(6px,var(--radius)-4px)] ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:text-primary",
1601
+ "border border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary",
1602
+ e
1603
+ ),
1604
+ ...t,
1605
+ children: /* @__PURE__ */ n.jsx(
1606
+ Oe.Indicator,
1607
+ {
1608
+ className: C("flex items-center justify-center text-current"),
1609
+ children: /* @__PURE__ */ n.jsx(Cn, { className: "h-4 w-4" })
1610
+ }
1611
+ )
1612
+ }
1613
+ ));
1614
+ xe.displayName = Oe.Root.displayName;
1615
+ const Lr = de.Root, Gt = A.forwardRef(({ className: e, align: t = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ n.jsx(de.Portal, { children: /* @__PURE__ */ n.jsx(
1616
+ de.Content,
1617
+ {
1618
+ ref: r,
1619
+ align: t,
1620
+ sideOffset: s,
1621
+ className: C(
1622
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1623
+ e
1624
+ ),
1625
+ ...a
1626
+ }
1627
+ ) }));
1628
+ Gt.displayName = de.Content.displayName;
1629
+ const $r = ({
1630
+ value: e,
1631
+ options: t,
1632
+ onChange: s,
1633
+ className: a,
1634
+ placeholder: r = "Value",
1635
+ onEnterPress: o,
1636
+ ref: i
1637
+ }) => {
1638
+ const [l, c] = k(!1), [u, d] = k(!1), h = hs((m) => m.filtered.count), g = R(null);
1639
+ return /* @__PURE__ */ n.jsxs(Lr, { open: l, children: [
1640
+ /* @__PURE__ */ n.jsx(ps, { children: /* @__PURE__ */ n.jsx(
1641
+ gs,
1642
+ {
1643
+ autoComplete: "off",
1644
+ ref: (m) => {
1645
+ g.current = m, typeof i == "function" ? i(m) : i && (i.current = m);
1646
+ },
1647
+ value: e,
1648
+ placeholder: r,
1649
+ className: C("h-9 bg-transparent", a),
1650
+ onFocus: () => c(!0),
1651
+ onBlur: () => {
1652
+ u || c(!1);
1653
+ },
1654
+ onKeyDown: (m) => {
1655
+ m.key === "Enter" && (c(!1), g.current?.blur(), o?.(m));
1656
+ },
1657
+ onValueChange: (m) => s(m)
1658
+ }
1659
+ ) }),
1660
+ /* @__PURE__ */ n.jsx(
1661
+ Gt,
1662
+ {
1663
+ onMouseEnter: () => d(!0),
1664
+ onMouseLeave: () => d(!1),
1665
+ onOpenAutoFocus: (m) => m.preventDefault(),
1666
+ className: C("p-0 w-(--radix-popover-trigger-width)", {
1667
+ "border-0": h === 0
1668
+ }),
1669
+ align: "start",
1670
+ side: "bottom",
1671
+ onWheel: (m) => {
1672
+ m.stopPropagation();
1673
+ },
1674
+ onTouchMove: (m) => {
1675
+ m.stopPropagation();
1676
+ },
1677
+ children: /* @__PURE__ */ n.jsx(xs, { className: "max-h-[140px]", children: t.map((m) => /* @__PURE__ */ n.jsx(
1678
+ ys,
1679
+ {
1680
+ value: m,
1681
+ onSelect: (y) => {
1682
+ s(y), c(!1);
1683
+ },
1684
+ className: "cursor-pointer",
1685
+ children: m
1686
+ },
1687
+ m
1688
+ )) })
1689
+ }
1690
+ )
1691
+ ] });
1692
+ }, me = ({ shouldFilter: e, ...t }) => /* @__PURE__ */ n.jsx(fs, { className: "bg-transparent", shouldFilter: e, children: /* @__PURE__ */ n.jsx($r, { ...t }) }), oe = (e, t) => {
1693
+ const s = A.forwardRef(({ className: a, asChild: r, ...o }, i) => {
1694
+ const l = r ? vs : e;
1695
+ return A.createElement(l, {
1696
+ ...o,
1697
+ ref: i,
1698
+ className: typeof t == "function" ? t({ className: a }) : C(t, a)
1699
+ });
1700
+ });
1701
+ return s.displayName = `VariantComponent(${e})`, s;
1702
+ }, qe = oe(
1703
+ "div",
1704
+ "grid grid-cols-[min-content_2fr_3fr] items-center gap-x-5"
1705
+ ), pe = oe(
1706
+ "div",
1707
+ "group h-9 hover:bg-accent/75 ps-4 pe-2 grid col-span-full grid-cols-subgrid items-center border-b"
1708
+ ), Er = Object.freeze([
1709
+ "Accept",
1710
+ "Accept-Encoding",
1711
+ "Accept-Language",
1712
+ "Authorization",
1713
+ "Cache-Control",
1714
+ "Connection",
1715
+ "Content-Disposition",
1716
+ "Content-Encoding",
1717
+ "Content-Language",
1718
+ "Content-Length",
1719
+ "Content-Range",
1720
+ "Content-Security-Policy",
1721
+ "Content-Type",
1722
+ "Cookie",
1723
+ "Date",
1724
+ "ETag",
1725
+ "Expires",
1726
+ "Host",
1727
+ "If-Modified-Since",
1728
+ "Location",
1729
+ "Origin",
1730
+ "Pragma",
1731
+ "Referer",
1732
+ "Set-Cookie",
1733
+ "User-Agent",
1734
+ "X-Requested-With"
1735
+ ]), Ir = ({
1736
+ control: e,
1737
+ schemaHeaders: t,
1738
+ lockedHeaders: s
1739
+ }) => {
1740
+ const { fields: a, append: r, remove: o } = De({
1741
+ control: e,
1742
+ name: "headers"
1743
+ }), { setValue: i, watch: l, formState: c } = ae(), u = R([]), d = R([]), h = l("headers"), g = bt(
1744
+ (f) => {
1745
+ f?.stopPropagation(), r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
1746
+ },
1747
+ [r]
1748
+ );
1749
+ z(() => {
1750
+ h.length === 0 && g();
1751
+ }, [h, g]);
1752
+ const m = (f) => {
1753
+ u.current[f]?.focus();
1754
+ }, y = (f) => {
1755
+ g(), requestAnimationFrame(() => d.current[f + 1]?.focus());
1756
+ }, v = t.filter((f) => !h.some((j) => j.name === f.name)).map(({ name: f }) => f), b = a.flatMap((f, j) => !s?.map((S) => S.toLowerCase()).includes(f.name.toLowerCase()) ? [] : [j]), O = s?.map((f) => ({
1757
+ name: f,
1758
+ id: `locked-${f}`,
1759
+ value: "••••••••••",
1760
+ active: !0,
1761
+ locked: !0
1762
+ })) ?? [];
1763
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
1764
+ /* @__PURE__ */ n.jsxs(M, { children: [
1765
+ /* @__PURE__ */ n.jsx(wn, { size: 16 }),
1766
+ /* @__PURE__ */ n.jsx(G, { children: "Headers" }),
1767
+ /* @__PURE__ */ n.jsxs(
1768
+ ne,
1769
+ {
1770
+ onClick: g,
1771
+ type: "button",
1772
+ size: "sm",
1773
+ variant: "ghost",
1774
+ className: "hover:bg-accent hover:brightness-95 flex gap-2",
1775
+ children: [
1776
+ "Add header ",
1777
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
1778
+ ]
1779
+ }
1780
+ )
1781
+ ] }),
1782
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsxs(qe, { children: [
1783
+ O.map((f) => /* @__PURE__ */ n.jsxs(rt, { children: [
1784
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
1785
+ pe,
1786
+ {
1787
+ className: "opacity-50 cursor-not-allowed font-mono text-xs min-h-10",
1788
+ children: [
1789
+ /* @__PURE__ */ n.jsx(Nn, { size: 16 }),
1790
+ /* @__PURE__ */ n.jsx(
1791
+ ue,
1792
+ {
1793
+ value: f.name,
1794
+ disabled: !0,
1795
+ className: "w-full border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono"
1796
+ }
1797
+ ),
1798
+ /* @__PURE__ */ n.jsx("div", { children: f.value })
1799
+ ]
1800
+ },
1801
+ f.id
1802
+ ) }),
1803
+ /* @__PURE__ */ n.jsx(
1804
+ ot,
1805
+ {
1806
+ alignOffset: 10,
1807
+ side: "bottom",
1808
+ align: "start",
1809
+ children: /* @__PURE__ */ n.jsx("p", { children: "This header is set by the selected authentication." })
1810
+ }
1811
+ )
1812
+ ] }, f.id)),
1813
+ a.map((f, j) => {
1814
+ const $ = t.find(
1815
+ (S) => S.name === h.at(j)?.name
1816
+ );
1817
+ return /* @__PURE__ */ n.jsxs(
1818
+ pe,
1819
+ {
1820
+ className: C(
1821
+ b.includes(j) && "text-amber-600",
1822
+ b.includes(j) && !c.dirtyFields.headers?.[j]?.value && "hidden"
1823
+ ),
1824
+ children: [
1825
+ /* @__PURE__ */ n.jsx(
1826
+ F,
1827
+ {
1828
+ control: e,
1829
+ name: `headers.${j}.active`,
1830
+ render: ({ field: S }) => /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1831
+ /* @__PURE__ */ n.jsx(
1832
+ xe,
1833
+ {
1834
+ id: `headers.${j}.active`,
1835
+ className: C(
1836
+ b.includes(j) && "hidden"
1837
+ ),
1838
+ checked: S.value,
1839
+ onCheckedChange: (D) => {
1840
+ S.onChange(D);
1841
+ }
1842
+ }
1843
+ ),
1844
+ /* @__PURE__ */ n.jsxs(rt, { children: [
1845
+ /* @__PURE__ */ n.jsx(at, { asChild: !0, children: /* @__PURE__ */ n.jsx(
1846
+ Sn,
1847
+ {
1848
+ className: C(
1849
+ "text-amber-600",
1850
+ !b.includes(j) && "hidden"
1851
+ ),
1852
+ size: 16
1853
+ }
1854
+ ) }),
1855
+ /* @__PURE__ */ n.jsx(
1856
+ ot,
1857
+ {
1858
+ alignOffset: 10,
1859
+ side: "bottom",
1860
+ align: "start",
1861
+ children: /* @__PURE__ */ n.jsx("p", { children: "This header will be overwritten by the selected authentication." })
1862
+ }
1863
+ )
1864
+ ] })
1865
+ ] })
1866
+ }
1867
+ ),
1868
+ /* @__PURE__ */ n.jsx(
1869
+ F,
1870
+ {
1871
+ control: e,
1872
+ name: `headers.${j}.name`,
1873
+ render: ({ field: S }) => /* @__PURE__ */ n.jsx(
1874
+ me,
1875
+ {
1876
+ ...S,
1877
+ placeholder: "Name",
1878
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono",
1879
+ options: [...v, ...Er],
1880
+ onEnterPress: () => m(j),
1881
+ onChange: (D) => {
1882
+ S.onChange(D), i(`headers.${j}.active`, !0);
1883
+ },
1884
+ ref: (D) => {
1885
+ d.current[j] = D;
1886
+ }
1887
+ }
1888
+ )
1889
+ }
1890
+ ),
1891
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
1892
+ /* @__PURE__ */ n.jsx(
1893
+ F,
1894
+ {
1895
+ control: e,
1896
+ name: `headers.${j}.value`,
1897
+ render: ({ field: S }) => $?.enum && $.enum.length > 0 ? /* @__PURE__ */ n.jsx(
1898
+ me,
1899
+ {
1900
+ shouldFilter: !1,
1901
+ value: S.value,
1902
+ options: $.enum ?? [],
1903
+ onChange: (P) => {
1904
+ S.onChange(P), i(`headers.${j}.active`, !0);
1905
+ },
1906
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
1907
+ }
1908
+ ) : /* @__PURE__ */ n.jsx(
1909
+ ue,
1910
+ {
1911
+ placeholder: "Value",
1912
+ className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs focus-visible:ring-0 font-mono",
1913
+ autoComplete: "off",
1914
+ ...S,
1915
+ ref: (P) => {
1916
+ u.current[j] = P;
1917
+ },
1918
+ onKeyDown: (P) => {
1919
+ P.key === "Enter" && P.currentTarget.value.trim() && y(j);
1920
+ }
1921
+ }
1922
+ )
1923
+ }
1924
+ ),
1925
+ /* @__PURE__ */ n.jsx(
1926
+ ne,
1927
+ {
1928
+ size: "icon-xs",
1929
+ variant: "ghost",
1930
+ className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
1931
+ onClick: () => o(j),
1932
+ type: "button",
1933
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
1934
+ }
1935
+ )
1936
+ ] })
1937
+ ]
1938
+ },
1939
+ f.id
1940
+ );
1941
+ })
1942
+ ] }) }) }) })
1943
+ ] });
1944
+ }, kr = js(
1945
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1946
+ ), Ve = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1947
+ At.Root,
1948
+ {
1949
+ ref: s,
1950
+ className: C(kr(), e),
1951
+ ...t
1952
+ }
1953
+ ));
1954
+ Ve.displayName = At.Root.displayName;
1955
+ const Ht = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1956
+ se.Root,
1957
+ {
1958
+ className: C("grid gap-2", e),
1959
+ ...t,
1960
+ ref: s
1961
+ }
1962
+ ));
1963
+ Ht.displayName = se.Root.displayName;
1964
+ const Qt = A.forwardRef(({ className: e, ...t }, s) => /* @__PURE__ */ n.jsx(
1965
+ se.Item,
1966
+ {
1967
+ ref: s,
1968
+ className: C(
1969
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1970
+ e
1971
+ ),
1972
+ ...t,
1973
+ children: /* @__PURE__ */ n.jsx(se.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ n.jsx(Tn, { className: "h-2.5 w-2.5 fill-current text-current" }) })
1974
+ }
1975
+ ));
1976
+ Qt.displayName = se.Item.displayName;
1977
+ const Jt = ({
1978
+ identities: e,
1979
+ setValue: t,
1980
+ value: s
1981
+ }) => /* @__PURE__ */ n.jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ n.jsx(
1982
+ Ht,
1983
+ {
1984
+ onValueChange: (a) => t(a),
1985
+ value: s,
1986
+ defaultValue: te,
1987
+ className: "gap-0",
1988
+ disabled: e?.length === 0,
1989
+ children: [{ id: te, label: "None" }, ...e ?? []].map(
1990
+ (a) => /* @__PURE__ */ n.jsxs(
1991
+ Ve,
1992
+ {
1993
+ className: "h-10 items-center border-b font-normal flex gap-4 p-4 cursor-pointer hover:bg-accent/75",
1994
+ children: [
1995
+ /* @__PURE__ */ n.jsx(Qt, { value: a.id, id: a.id }),
1996
+ /* @__PURE__ */ n.jsx("span", { children: a.label })
1997
+ ]
1998
+ },
1999
+ a.id
2000
+ )
2001
+ )
2002
+ }
2003
+ ) }), Dr = ({
2004
+ onSubmit: e,
2005
+ identities: t,
2006
+ open: s,
2007
+ onOpenChange: a
2008
+ }) => {
2009
+ const [r, o] = k(void 0), [i, l] = k(!1);
2010
+ return /* @__PURE__ */ n.jsx(Ee, { open: s, onOpenChange: a, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2011
+ /* @__PURE__ */ n.jsx(ke, { children: "Select an auth identity" }),
2012
+ /* @__PURE__ */ n.jsx(jt, { children: "Please select an identity for this request." }),
2013
+ /* @__PURE__ */ n.jsx(bs, { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ n.jsx(
2014
+ Jt,
2015
+ {
2016
+ identities: t,
2017
+ setValue: o,
2018
+ value: r
2019
+ }
2020
+ ) }),
2021
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex flex-col gap-2", children: [
2022
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2023
+ /* @__PURE__ */ n.jsx(
2024
+ xe,
2025
+ {
2026
+ id: "remember",
2027
+ checked: i,
2028
+ onCheckedChange: (c) => l(
2029
+ c === "indeterminate" ? !1 : !!c
2030
+ )
2031
+ }
2032
+ ),
2033
+ /* @__PURE__ */ n.jsx(Ve, { htmlFor: "remember", children: "Remember my choice" })
2034
+ ] }),
2035
+ /* @__PURE__ */ n.jsx(
2036
+ E,
2037
+ {
2038
+ onClick: () => e({ identity: r, rememberedIdentity: i }),
2039
+ children: "Send"
2040
+ }
2041
+ )
2042
+ ] })
2043
+ ] }) });
2044
+ }, Ne = (e) => Math.abs(
2045
+ Number.isNaN(parseInt(e)) ? e.toLowerCase().charCodeAt(0) - 96 : Number.isNaN(parseInt(e)) ? 0 : parseInt(e)
2046
+ ), Se = (e) => e.length > 1 ? parseInt(e.split("").reduce((t, s) => `${Ne(t) + Ne(s)}`)) : Ne(e), mt = (e, t = {}) => {
2047
+ const s = (3 * Se(e) + 2 * Se(e) + Se(e)) % 360, { saturation: a = 75, lightness: r = 60 } = t;
2048
+ return `${s}deg ${a}% ${r}%`;
2049
+ }, Te = "data-linked-param", zr = (e) => {
2050
+ const { resolvedTheme: t } = Cs();
2051
+ return {
2052
+ text: mt(
2053
+ e,
2054
+ t === "light" ? { saturation: 95, lightness: 38 } : {}
2055
+ ),
2056
+ background: mt(
2057
+ e,
2058
+ t === "light" ? { saturation: 85, lightness: 40 } : {}
2059
+ )
2060
+ };
2061
+ }, Wt = ({
2062
+ name: e,
2063
+ className: t,
2064
+ slug: s,
2065
+ title: a,
2066
+ children: r,
2067
+ onClick: o
2068
+ }) => {
2069
+ const i = R(null), l = s?.replace(/[{}]/g, ""), c = e.replace(/[{}]/g, ""), { text: u, background: d } = zr(c), h = `hsl(${u} / 100%)`, g = `hsl(${d} / 10%)`, m = `hsl(${d} / 50%)`;
2070
+ return z(() => {
2071
+ if (!l || !i.current) return;
2072
+ const y = () => {
2073
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2074
+ O instanceof HTMLElement && (O.dataset.active = "true");
2075
+ });
2076
+ }, v = () => {
2077
+ document.querySelectorAll(`[${Te}="${l}"]`).forEach((O) => {
2078
+ O instanceof HTMLElement && (O.dataset.active = "false");
2079
+ });
2080
+ }, b = i.current;
2081
+ return b.addEventListener("mouseenter", y), b.addEventListener("mouseleave", v), () => {
2082
+ b.removeEventListener("mouseenter", y), b.removeEventListener("mouseleave", v);
2083
+ };
2084
+ }, [l]), // biome-ignore lint/a11y/noStaticElementInteractions: Just passing props through
2085
+ // biome-ignore lint/a11y/useKeyWithClickEvents: Just passing props through
2086
+ /* @__PURE__ */ n.jsx(
2087
+ "span",
2088
+ {
2089
+ [Te]: l,
2090
+ className: C(
2091
+ // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
2092
+ "relative transition-all duration-100 rounded-lg",
2093
+ "border border-(--border-color) p-0.5 text-(--param-color) bg-(--background-color)",
2094
+ "data-[active=true]:border-(--param-color) data-[active=true]:shadow-sm data-[active=true]:bottom-px",
2095
+ t
2096
+ ),
2097
+ title: a,
2098
+ suppressHydrationWarning: !0,
2099
+ ref: i,
2100
+ onClick: o,
2101
+ style: {
2102
+ "--param-color": h,
2103
+ "--border-color": m,
2104
+ "--background-color": g
2105
+ },
2106
+ children: r ?? e
2107
+ }
2108
+ );
2109
+ }, Fr = ({
2110
+ control: e,
2111
+ url: t
2112
+ }) => {
2113
+ const { fields: s } = De({
2114
+ control: e,
2115
+ name: "pathParams"
2116
+ }), a = [...s].sort(
2117
+ (r, o) => t.indexOf(`{${r.name}}`) - t.indexOf(`{${o.name}}`)
2118
+ );
2119
+ return /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ n.jsx(qe, { children: a.map((r, o) => /* @__PURE__ */ n.jsxs(pe, { children: [
2120
+ /* @__PURE__ */ n.jsx(
2121
+ F,
2122
+ {
2123
+ control: e,
2124
+ name: `pathParams.${o}.name`,
2125
+ render: () => /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
2126
+ Wt,
2127
+ {
2128
+ slug: r.name,
2129
+ name: r.name,
2130
+ className: "font-mono text-xs px-2"
2131
+ }
2132
+ ) })
2133
+ }
2134
+ ),
2135
+ /* @__PURE__ */ n.jsx("div", { className: "flex justify-between items-center col-span-2", children: /* @__PURE__ */ n.jsx(
2136
+ F,
2137
+ {
2138
+ control: e,
2139
+ name: `pathParams.${o}.value`,
2140
+ render: ({ field: i }) => /* @__PURE__ */ n.jsx(
2141
+ ue,
2142
+ {
2143
+ ...i,
2144
+ required: !0,
2145
+ placeholder: "Value",
2146
+ className: "w-full truncate border-0 p-0 m-0 shadow-none text-xs font-mono focus-visible:ring-0"
2147
+ }
2148
+ )
2149
+ }
2150
+ ) })
2151
+ ] }, r.id)) }) });
2152
+ }, qr = oe(
2153
+ "input",
2154
+ "bg-transparent h-9 font-mono text-xs"
2155
+ ), Vr = ({
2156
+ control: e,
2157
+ schemaQueryParams: t
2158
+ }) => {
2159
+ const { fields: s, remove: a, append: r } = De({
2160
+ control: e,
2161
+ name: "queryParams"
2162
+ }), { setValue: o, getValues: i, watch: l } = ae(), c = l("queryParams");
2163
+ z(() => {
2164
+ c.length === 0 && r({ name: "", value: "", active: !1 }, { shouldFocus: !0 });
2165
+ }, [c, r]);
2166
+ const u = t.map(
2167
+ (d) => !!d.isRequired
2168
+ );
2169
+ return /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2170
+ /* @__PURE__ */ n.jsxs(M, { children: [
2171
+ /* @__PURE__ */ n.jsx(An, { size: 16 }),
2172
+ /* @__PURE__ */ n.jsx(G, { children: "Query Parameters" }),
2173
+ /* @__PURE__ */ n.jsxs(
2174
+ E,
2175
+ {
2176
+ onClick: () => {
2177
+ o("queryParams", [
2178
+ ...i("queryParams"),
2179
+ { name: "", value: "", active: !1 }
2180
+ ]);
2181
+ },
2182
+ type: "button",
2183
+ size: "sm",
2184
+ variant: "ghost",
2185
+ className: "hover:bg-accent hover:brightness-95 flex gap-2",
2186
+ children: [
2187
+ "Add parameter ",
2188
+ /* @__PURE__ */ n.jsx(he, { size: 16 })
2189
+ ]
2190
+ }
2191
+ )
2192
+ ] }),
2193
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx("div", { className: "overflow-hidden w-full", children: /* @__PURE__ */ n.jsx(qe, { children: s.map((d, h) => {
2194
+ const g = t.find(
2195
+ (m) => m.name === c.at(h)?.name
2196
+ );
2197
+ return /* @__PURE__ */ n.jsxs(pe, { children: [
2198
+ /* @__PURE__ */ n.jsx(
2199
+ F,
2200
+ {
2201
+ control: e,
2202
+ name: `queryParams.${h}.active`,
2203
+ render: ({ field: m }) => /* @__PURE__ */ n.jsx(
2204
+ xe,
2205
+ {
2206
+ id: `queryParams.${h}.active`,
2207
+ checked: m.value,
2208
+ onCheckedChange: m.onChange
2209
+ }
2210
+ )
2211
+ }
2212
+ ),
2213
+ /* @__PURE__ */ n.jsx(
2214
+ F,
2215
+ {
2216
+ control: e,
2217
+ render: ({ field: m }) => u[h] ? /* @__PURE__ */ n.jsx(qr, { asChild: !0, children: /* @__PURE__ */ n.jsxs(
2218
+ "label",
2219
+ {
2220
+ className: "flex items-center cursor-pointer gap-1",
2221
+ htmlFor: `queryParams.${h}.active`,
2222
+ title: u[h] ? "Required field" : void 0,
2223
+ children: [
2224
+ m.value,
2225
+ u[h] && /* @__PURE__ */ n.jsx("sup", { children: " *" })
2226
+ ]
2227
+ }
2228
+ ) }) : /* @__PURE__ */ n.jsx(
2229
+ me,
2230
+ {
2231
+ placeholder: "Name",
2232
+ value: m.value,
2233
+ options: t.map((y) => y.name),
2234
+ onChange: (y) => {
2235
+ m.onChange(y);
2236
+ },
2237
+ className: "border-0 p-0 m-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2238
+ }
2239
+ ),
2240
+ name: `queryParams.${h}.name`
2241
+ }
2242
+ ),
2243
+ /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between items-center", children: [
2244
+ /* @__PURE__ */ n.jsx(
2245
+ F,
2246
+ {
2247
+ control: e,
2248
+ render: ({ field: m }) => g?.enum && g.enum.length > 0 ? /* @__PURE__ */ n.jsx(
2249
+ me,
2250
+ {
2251
+ value: m.value,
2252
+ options: g.enum ?? [],
2253
+ onChange: (v) => {
2254
+ m.onChange(v), o(`queryParams.${h}.active`, !0);
2255
+ },
2256
+ className: "border-0 shadow-none focus-visible:ring-0 bg-transparent hover:bg-transparent text-xs font-mono"
2257
+ }
2258
+ ) : /* @__PURE__ */ n.jsx(
2259
+ ue,
2260
+ {
2261
+ ...m,
2262
+ onChange: (v) => {
2263
+ m.onChange(v.target.value), v.target.value.length > 0 && o(`queryParams.${h}.active`, !0);
2264
+ },
2265
+ placeholder: "Value",
2266
+ "aria-label": "Query parameter value",
2267
+ className: "w-full border-0 p-0 m-0 shadow-none focus-visible:ring-0 text-xs font-mono"
2268
+ }
2269
+ ),
2270
+ name: `queryParams.${h}.value`
2271
+ }
2272
+ ),
2273
+ /* @__PURE__ */ n.jsx(
2274
+ E,
2275
+ {
2276
+ size: "icon-xs",
2277
+ variant: "ghost",
2278
+ className: "text-muted-foreground opacity-0 group-hover:brightness-95 group-hover:opacity-100",
2279
+ onClick: () => a(h),
2280
+ type: "button",
2281
+ children: /* @__PURE__ */ n.jsx(gt, { size: 16 })
2282
+ }
2283
+ )
2284
+ ] })
2285
+ ] }, d.id);
2286
+ }) }) }) })
2287
+ ] });
2288
+ }, Br = ({
2289
+ open: e,
2290
+ setOpen: t,
2291
+ onSignUp: s,
2292
+ onLogin: a
2293
+ }) => /* @__PURE__ */ n.jsx(Ee, { open: e, onOpenChange: t, children: /* @__PURE__ */ n.jsxs(Ie, { children: [
2294
+ /* @__PURE__ */ n.jsx(ke, { children: "Welcome to the Playground!" }),
2295
+ /* @__PURE__ */ n.jsx(jt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
2296
+ /* @__PURE__ */ n.jsxs(Ct, { className: "flex gap-2 sm:justify-between", children: [
2297
+ /* @__PURE__ */ n.jsx(E, { type: "button", variant: "ghost", onClick: () => t(!1), children: "Skip" }),
2298
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2299
+ s && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
2300
+ a && /* @__PURE__ */ n.jsx(E, { type: "button", variant: "default", onClick: a, children: "Login" })
2301
+ ] })
2302
+ ] })
2303
+ ] }) }), _r = Le()(
2304
+ $e(
2305
+ (e, t) => ({
2306
+ rememberedIdentity: null,
2307
+ setRememberedIdentity: (s) => e({ rememberedIdentity: s }),
2308
+ getRememberedIdentity: (s) => s.find(
2309
+ (a) => a === t().rememberedIdentity
2310
+ )
2311
+ }),
2312
+ {
2313
+ name: "identity-storage",
2314
+ storage: xt(() => sessionStorage)
2315
+ }
2316
+ )
2317
+ ), Ur = ({
2318
+ path: e,
2319
+ renderParam: t
2320
+ }) => {
2321
+ let s = 0;
2322
+ return e.split("/").map((a, r, o) => {
2323
+ const i = Array.from(a.matchAll(/{([^}]+)}/g)), l = [];
2324
+ let c = 0;
2325
+ return i.forEach((u) => {
2326
+ const [d, h] = u;
2327
+ if (!h) return;
2328
+ const g = u.index;
2329
+ g > c && l.push(
2330
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c, g) }, `text-${c}-${g}`)
2331
+ ), l.push(
2332
+ /* @__PURE__ */ n.jsx(K, { children: t({ name: h, originalValue: d, index: s++ }) }, `param-${h}`)
2333
+ ), c = g + d.length;
2334
+ }), c < a.length && l.push(
2335
+ /* @__PURE__ */ n.jsx(K, { children: a.slice(c) }, `text-${c}-${a.length}`)
2336
+ ), // biome-ignore lint/suspicious/noArrayIndexKey: index should be stable
2337
+ /* @__PURE__ */ n.jsxs(K, { children: [
2338
+ l,
2339
+ r < o.length - 1 && "/",
2340
+ /* @__PURE__ */ n.jsx("wbr", {})
2341
+ ] }, `${a}-${r}`);
2342
+ });
2343
+ }, Mr = ({ url: e }) => {
2344
+ const { watch: t, setFocus: s } = ae(), [a] = t(["pathParams"]);
2345
+ return /* @__PURE__ */ n.jsx(
2346
+ Ur,
2347
+ {
2348
+ path: e,
2349
+ renderParam: ({ name: r, originalValue: o, index: i }) => {
2350
+ const l = a.find(
2351
+ (c) => c.name === r
2352
+ )?.value;
2353
+ return /* @__PURE__ */ n.jsx(
2354
+ Wt,
2355
+ {
2356
+ name: r,
2357
+ backgroundOpacity: "0",
2358
+ slug: r,
2359
+ onClick: () => s(`pathParams.${i}.value`),
2360
+ children: l || o
2361
+ }
2362
+ );
2363
+ }
2364
+ }
2365
+ );
2366
+ }, Gr = () => {
2367
+ const { watch: e } = ae(), s = e("queryParams").filter((a) => a.active && a.name).map((a, r, o) => /* @__PURE__ */ n.jsxs(K, { children: [
2368
+ a.name,
2369
+ "=",
2370
+ encodeURIComponent(a.value).replaceAll("%20", "+"),
2371
+ r < o.length - 1 && "&",
2372
+ /* @__PURE__ */ n.jsx("wbr", {})
2373
+ ] }, a.name));
2374
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2375
+ s.length > 0 ? "?" : "",
2376
+ s
2377
+ ] });
2378
+ }, Xt = (e = 0) => {
2379
+ if (e === 0)
2380
+ return "0 B";
2381
+ const t = Math.floor(Math.log(e) / Math.log(1e3));
2382
+ return `${(e / 1e3 ** t).toFixed(t ? 2 : 0)} ${t ? `${"kMGTPEZY"[t - 1]}B` : "B"}`;
2383
+ }, Hr = ({ status: e }) => {
2384
+ if (!e) return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2385
+ switch (Number(e.toString().slice(0, 1))) {
2386
+ case 2:
2387
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-green-500" });
2388
+ case 4:
2389
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-yellow-400" });
2390
+ case 5:
2391
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-red-500" });
2392
+ default:
2393
+ return /* @__PURE__ */ n.jsx("div", { className: "w-2 h-2 rounded-full bg-gray-500" });
2394
+ }
2395
+ }, Qr = () => {
2396
+ const e = R(null), t = R(null), s = R(Date.now()), a = R(null), r = bt(() => {
2397
+ if (t.current) {
2398
+ const o = Date.now() - s.current;
2399
+ t.current.nodeValue = o.toFixed();
2400
+ }
2401
+ a.current = requestAnimationFrame(r);
2402
+ }, []);
2403
+ return Zn(() => {
2404
+ const o = e.current;
2405
+ if (!o) return;
2406
+ const i = document.createTextNode("0");
2407
+ return o.appendChild(i), t.current = i, s.current = Date.now(), a.current = requestAnimationFrame(r), () => {
2408
+ a.current && cancelAnimationFrame(a.current), t.current && o.contains(i) && o.removeChild(i);
2409
+ };
2410
+ }, [r]), /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end w-[3ch]", ref: e });
2411
+ }, Jr = ({
2412
+ status: e,
2413
+ time: t,
2414
+ size: s,
2415
+ isFinished: a,
2416
+ progress: r
2417
+ }) => {
2418
+ const o = {
2419
+ 200: "OK",
2420
+ 201: "Created",
2421
+ 202: "Accepted",
2422
+ 204: "No Content",
2423
+ 400: "Bad Request",
2424
+ 401: "Unauthorized",
2425
+ 403: "Forbidden",
2426
+ 404: "Not Found",
2427
+ 405: "Method Not Allowed",
2428
+ 500: "Internal Server Error"
2429
+ };
2430
+ return /* @__PURE__ */ n.jsxs("div", { className: "relative flex h-10 text-xs gap-4 px-4 items-center justify-between font-mono border-b", children: [
2431
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2432
+ /* @__PURE__ */ n.jsx(Hr, { status: e }),
2433
+ " ",
2434
+ e ?? "Sending Request...",
2435
+ e ? ` ${o[e]}` : ""
2436
+ ] }),
2437
+ /* @__PURE__ */ n.jsxs("div", { className: "flex gap-2", children: [
2438
+ /* @__PURE__ */ n.jsxs("div", { children: [
2439
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Size" }),
2440
+ " ",
2441
+ /* @__PURE__ */ n.jsx("span", { className: "inline-block text-end min-w-[5ch]", children: s ? Xt(s) : "- B" })
2442
+ ] }),
2443
+ /* @__PURE__ */ n.jsxs("div", { children: [
2444
+ /* @__PURE__ */ n.jsx("span", { className: "text-muted-foreground", children: "Time" }),
2445
+ " ",
2446
+ t !== void 0 ? `${t.toFixed(0)}` : /* @__PURE__ */ n.jsx(Qr, {}),
2447
+ "ms"
2448
+ ] })
2449
+ ] }),
2450
+ /* @__PURE__ */ n.jsx(
2451
+ "div",
2452
+ {
2453
+ className: "h-full bg-neutral-500/10 absolute left-0 -bottom-0 z-10 transition-all duration-200 ease-in-out",
2454
+ style: {
2455
+ opacity: a ? 0 : 1,
2456
+ width: a ? 0 : `${r * 100}%`
2457
+ }
2458
+ }
2459
+ )
2460
+ ] });
2461
+ };
2462
+ function Be(e) {
2463
+ if (e === null) return "null";
2464
+ if (Array.isArray(e)) {
2465
+ if (e.length === 0) return "any[]";
2466
+ const t = e[0];
2467
+ return t === void 0 ? "any[]" : `${Be(t)}[]`;
2468
+ }
2469
+ return typeof e == "object" ? Wr(e) : typeof e;
2470
+ }
2471
+ function Wr(e, t = "") {
2472
+ const s = ["{"];
2473
+ for (const [a, r] of Object.entries(e)) {
2474
+ const o = Be(r);
2475
+ s.push(` ${a}: ${o};`);
2476
+ }
2477
+ return s.push("}"), s.join(`
2478
+ `);
2479
+ }
2480
+ function Xr(e) {
2481
+ return { lines: [`type GeneratedType = ${Be(e)};`] };
2482
+ }
2483
+ const Zt = ({
2484
+ code: e,
2485
+ language: t,
2486
+ children: s
2487
+ }) => {
2488
+ const { syntaxHighlighting: a } = Mn().options;
2489
+ return Wn(a?.highlighter, "Highlighter not found"), ws(
2490
+ a.highlighter,
2491
+ e ?? s ?? "",
2492
+ t,
2493
+ a.themes
2494
+ );
2495
+ };
2496
+ Zt.displayName = "Highlight";
2497
+ const Zr = (e) => Object.entries({
2498
+ "application/json": "json",
2499
+ "text/json": "json",
2500
+ "text/html": "html",
2501
+ "text/css": "css",
2502
+ "text/javascript": "javascript",
2503
+ "application/xml": "xml",
2504
+ "application/xhtml+xml": "xhtml"
2505
+ }).find(
2506
+ ([s]) => e.includes(s)
2507
+ )?.[1], Yr = (e) => {
2508
+ const t = e.find(([s]) => s.toLowerCase() === "content-type")?.[1] || "";
2509
+ return Zr(t);
2510
+ }, Kr = (e) => {
2511
+ try {
2512
+ return JSON.stringify(JSON.parse(e), null, 2);
2513
+ } catch {
2514
+ return null;
2515
+ }
2516
+ }, ea = (e) => {
2517
+ const t = [
2518
+ "Content-Type",
2519
+ "Content-Length",
2520
+ "Authorization",
2521
+ "X-RateLimit-Remaining",
2522
+ "X-RateLimit-Limit",
2523
+ "Cache-Control",
2524
+ "ETag"
2525
+ ].map((s) => s.toLowerCase());
2526
+ return [...e].sort(([s], [a]) => {
2527
+ const r = t.indexOf(s.toLowerCase()), o = t.indexOf(a.toLowerCase());
2528
+ return r === o ? 0 : r === -1 ? 1 : o === -1 ? -1 : r - o;
2529
+ });
2530
+ }, Y = 3, Ae = oe(
2531
+ "div",
2532
+ "grid-cols-subgrid grid border-b col-span-full px-4 py-1.5 font-mono text-xs"
2533
+ ), X = oe("div", "py-1 break-all"), ta = ({
2534
+ body: e = "",
2535
+ headers: t,
2536
+ request: s,
2537
+ size: a,
2538
+ isBinary: r = !1,
2539
+ fileName: o,
2540
+ blob: i
2541
+ }) => {
2542
+ const l = Yr(t), c = Kr(e), u = c || e, [d, h] = k(
2543
+ c ? "formatted" : "raw"
2544
+ ), g = Gn({
2545
+ queryKey: ["types", u],
2546
+ queryFn: async () => Xr(JSON.parse(u)),
2547
+ enabled: d === "types" && !r
2548
+ }), m = () => {
2549
+ if (i && o) {
2550
+ const v = URL.createObjectURL(i), b = document.createElement("a");
2551
+ b.href = v, b.download = o, document.body.appendChild(b), b.click(), document.body.removeChild(b), URL.revokeObjectURL(v);
2552
+ }
2553
+ }, y = ea([...t]);
2554
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2555
+ /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2556
+ /* @__PURE__ */ n.jsxs(M, { children: [
2557
+ /* @__PURE__ */ n.jsx(On, { size: 16 }),
2558
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Request" })
2559
+ ] }),
2560
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsx("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: s.headers.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2561
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2562
+ /* @__PURE__ */ n.jsx(X, { children: b })
2563
+ ] }, v)) }) })
2564
+ ] }),
2565
+ /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2566
+ /* @__PURE__ */ n.jsxs(M, { children: [
2567
+ /* @__PURE__ */ n.jsx(Pn, { size: 16 }),
2568
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Header Response" })
2569
+ ] }),
2570
+ /* @__PURE__ */ n.jsx(V, { children: /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-2 gap-x-6 text-sm", children: [
2571
+ y.slice(0, Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2572
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2573
+ /* @__PURE__ */ n.jsx(X, { children: b })
2574
+ ] }, v)),
2575
+ y.length > Y && /* @__PURE__ */ n.jsxs(q, { className: "col-span-full grid-cols-subgrid grid group", children: [
2576
+ /* @__PURE__ */ n.jsxs(qt, { className: "data-[state=open]:hidden justify-center col-span-2 text-xs text-muted-foreground hover:text-primary border-b h-8 flex items-center gap-2", children: [
2577
+ /* @__PURE__ */ n.jsxs("span", { children: [
2578
+ "Show ",
2579
+ y.length - Y,
2580
+ " more headers"
2581
+ ] }),
2582
+ /* @__PURE__ */ n.jsx(he, { size: 12, className: "text-muted-foreground" })
2583
+ ] }),
2584
+ /* @__PURE__ */ n.jsx(V, { className: "col-span-full grid grid-cols-subgrid", children: y.slice(Y).map(([v, b]) => /* @__PURE__ */ n.jsxs(Ae, { children: [
2585
+ /* @__PURE__ */ n.jsx(X, { children: v }),
2586
+ /* @__PURE__ */ n.jsx(X, { children: b })
2587
+ ] }, v)) })
2588
+ ] })
2589
+ ] }) })
2590
+ ] }),
2591
+ /* @__PURE__ */ n.jsx("div", { className: "flex gap-2 justify-between items-center border-b h-10", children: c && !r && /* @__PURE__ */ n.jsx("div", { className: "px-2", children: /* @__PURE__ */ n.jsxs(
2592
+ wt,
2593
+ {
2594
+ value: d,
2595
+ onValueChange: (v) => h(v),
2596
+ children: [
2597
+ /* @__PURE__ */ n.jsx(Nt, { className: "min-w-32 border-none h-8", children: /* @__PURE__ */ n.jsx(St, { placeholder: "View" }) }),
2598
+ /* @__PURE__ */ n.jsxs(Tt, { children: [
2599
+ /* @__PURE__ */ n.jsx(le, { value: "formatted", children: "Formatted" }),
2600
+ /* @__PURE__ */ n.jsx(le, { value: "raw", children: "Raw" }),
2601
+ /* @__PURE__ */ n.jsx(le, { value: "types", children: "Types" })
2602
+ ] })
2603
+ ]
2604
+ }
2605
+ ) }) }),
2606
+ /* @__PURE__ */ n.jsx("div", { children: r ? /* @__PURE__ */ n.jsx("div", { className: "p-4 text-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
2607
+ /* @__PURE__ */ n.jsx("div", { className: "text-lg font-semibold", children: "Binary Content" }),
2608
+ /* @__PURE__ */ n.jsx("div", { className: "text-sm text-muted-foreground", children: "This response contains binary data that cannot be displayed as text." }),
2609
+ /* @__PURE__ */ n.jsxs(
2610
+ E,
2611
+ {
2612
+ onClick: m,
2613
+ className: "flex items-center gap-2",
2614
+ disabled: !i,
2615
+ children: [
2616
+ /* @__PURE__ */ n.jsx(Rn, { className: "h-4 w-4" }),
2617
+ "Download ",
2618
+ o || "file",
2619
+ " (",
2620
+ Xt(a),
2621
+ ")"
2622
+ ]
2623
+ }
2624
+ )
2625
+ ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "overflow-auto max-w-full p-4 text-xs max-h-[calc(83.333vh-180px)]", children: /* @__PURE__ */ n.jsx(
2626
+ Zt,
2627
+ {
2628
+ language: d === "types" ? "typescript" : d === "raw" ? c ? "plain" : l : "json",
2629
+ code: (d === "raw" ? e : d === "types" ? g.data?.lines.join(`
2630
+ `) : u) ?? ""
2631
+ }
2632
+ ) }) })
2633
+ ] });
2634
+ }, na = ({
2635
+ queryMutation: e,
2636
+ showLongRunningWarning: t,
2637
+ onCancel: s,
2638
+ tip: a,
2639
+ isFinished: r,
2640
+ progress: o
2641
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "overflow-y-auto h-[80vh] bg-muted/50", children: [
2642
+ (e.isPending || e.data) && /* @__PURE__ */ n.jsx(
2643
+ Jr,
2644
+ {
2645
+ status: e.data?.status,
2646
+ time: e.data?.time,
2647
+ size: e.data?.size,
2648
+ isFinished: r,
2649
+ progress: o
2650
+ }
2651
+ ),
2652
+ e.error ? /* @__PURE__ */ n.jsx("div", { className: "max-w-2/3 mx-auto mt-20", children: /* @__PURE__ */ n.jsxs(rs, { children: [
2653
+ /* @__PURE__ */ n.jsx(Ln, { size: 24, strokeWidth: 1.5, className: "me-5" }),
2654
+ /* @__PURE__ */ n.jsx(as, { children: "Request failed" }),
2655
+ /* @__PURE__ */ n.jsx(os, { children: e.error.message || String(e.error) || "Unexpected error" })
2656
+ ] }) }) : e.data ? /* @__PURE__ */ n.jsx(
2657
+ ta,
2658
+ {
2659
+ request: e.data.request,
2660
+ size: e.data.size,
2661
+ headers: e.data.headers,
2662
+ body: e.data.body,
2663
+ isBinary: e.data.isBinary,
2664
+ fileName: e.data.fileName,
2665
+ blob: e.data.blob
2666
+ }
2667
+ ) : e.isPending ? /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
2668
+ /* @__PURE__ */ n.jsx(ns, {}),
2669
+ /* @__PURE__ */ n.jsxs(
2670
+ "div",
2671
+ {
2672
+ className: C(
2673
+ "opacity-0 pointer-events-none transition-opacity h-20 text-sm text-muted-foreground duration-300 flex flex-col gap-2 items-center",
2674
+ t && "opacity-100 pointer-events-auto"
2675
+ ),
2676
+ children: [
2677
+ "Looks like the request is taking longer than expected.",
2678
+ /* @__PURE__ */ n.jsx(
2679
+ ne,
2680
+ {
2681
+ type: "button",
2682
+ onClick: s,
2683
+ size: "sm",
2684
+ className: "w-fit",
2685
+ variant: "outline",
2686
+ children: "Cancel"
2687
+ }
2688
+ )
2689
+ ]
2690
+ }
2691
+ )
2692
+ ] }) }) : /* @__PURE__ */ n.jsx("div", { className: "h-full grid place-items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 items-center", children: [
2693
+ /* @__PURE__ */ n.jsx(
2694
+ $n,
2695
+ {
2696
+ size: 64,
2697
+ className: "text-muted-foreground",
2698
+ strokeWidth: 1.2
2699
+ }
2700
+ ),
2701
+ /* @__PURE__ */ n.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send your first request" }),
2702
+ a
2703
+ ] }) })
2704
+ ] }), sa = Le()(
2705
+ $e(
2706
+ (e) => ({
2707
+ skipLogin: !1,
2708
+ setSkipLogin: (t) => e({ skipLogin: t })
2709
+ }),
2710
+ {
2711
+ name: "remember-skip-login",
2712
+ storage: xt(() => sessionStorage)
2713
+ }
2714
+ )
2715
+ ), te = "__none", ra = ({
2716
+ server: e,
2717
+ servers: t = [],
2718
+ url: s,
2719
+ method: a,
2720
+ headers: r = [],
2721
+ queryParams: o = [],
2722
+ pathParams: i = [],
2723
+ defaultBody: l = "",
2724
+ examples: c,
2725
+ requiresLogin: u = !1,
2726
+ onLogin: d,
2727
+ onSignUp: h
2728
+ }) => {
2729
+ const { selectedServer: g, setSelectedServer: m } = vr(
2730
+ t.map((p) => ({ url: p }))
2731
+ ), [y, v] = k(!1), b = Hn(), { setRememberedIdentity: O, getRememberedIdentity: f } = _r(), [, j] = Yn(), { skipLogin: $, setSkipLogin: S } = sa(), [D, P] = k(!1), Q = R(void 0), Ue = ms(O), Me = R(null), { label: sn } = xr("meta+enter", () => {
2732
+ Me.current?.requestSubmit();
2733
+ }), Ge = s.match(/\{([^}]+)\}/g)?.map((p) => p.slice(1, -1)) ?? [], He = [...i].sort(
2734
+ (p, W) => Ge.indexOf(p.name) - Ge.indexOf(W.name)
2735
+ ), { register: rn, control: ie, handleSubmit: Qe, watch: Je, setValue: ye, ...ve } = cs({
2736
+ defaultValues: {
2737
+ body: l,
2738
+ queryParams: o.length > 0 ? o.map((p) => ({
2739
+ name: p.name,
2740
+ value: p.defaultValue ?? "",
2741
+ active: p.defaultActive ?? !1,
2742
+ enum: p.enum ?? []
2743
+ })) : [
2744
+ {
2745
+ name: "",
2746
+ value: "",
2747
+ active: !1,
2748
+ enum: []
2749
+ }
2750
+ ],
2751
+ pathParams: He.map((p) => ({
2752
+ name: p.name,
2753
+ value: p.defaultValue ?? ""
2754
+ })),
2755
+ headers: r.length > 0 ? r.map((p) => ({
2756
+ name: p.name,
2757
+ value: p.defaultValue ?? "",
2758
+ active: p.defaultActive ?? !1
2759
+ })) : [
2760
+ {
2761
+ name: "",
2762
+ value: "",
2763
+ active: !1
2764
+ }
2765
+ ],
2766
+ identity: f([
2767
+ te,
2768
+ ...b.data?.map((p) => p.id) ?? []
2769
+ ])
2770
+ }
2771
+ }), J = Je("identity"), an = vt(
2772
+ () => b.data?.find((p) => p.id === J)?.authorizationFields,
2773
+ [b.data, J]
2774
+ );
2775
+ z(() => {
2776
+ J && Ue.current(J);
2777
+ }, [Ue, J]);
2778
+ const B = is({
2779
+ gcTime: 0,
2780
+ mutationFn: async (p) => {
2781
+ const W = performance.now(), fn = Object.fromEntries([
2782
+ ...p.headers.filter((T) => T.name && T.active).map((T) => [T.name, T.value])
2783
+ ]), _ = new Request(
2784
+ ut(e ?? g, s, p),
2785
+ {
2786
+ method: a.toUpperCase(),
2787
+ headers: fn,
2788
+ body: p.body ? p.body : void 0
2789
+ }
2790
+ );
2791
+ p.identity !== te && await b.data?.find((T) => T.id === p.identity)?.authorizeRequest(_);
2792
+ const be = setTimeout(
2793
+ () => P(!0),
2794
+ 3210
2795
+ );
2796
+ Q.current = new AbortController(), Q.current.signal.addEventListener("abort", () => {
2797
+ clearTimeout(be);
2798
+ });
2799
+ try {
2800
+ const T = await fetch(_, {
2801
+ cache: "no-store",
2802
+ signal: Q.current.signal
2803
+ });
2804
+ clearTimeout(be), P(!1);
2805
+ const gn = performance.now() - W, xn = new URL(_.url), Ze = Array.from(T.headers.entries()), Ye = T.headers.get("content-type") || "", Ke = Pr(Ye);
2806
+ let ce = "", et, tt;
2807
+ Ke ? (et = await T.blob(), tt = Rr(Ze, _.url), ce = `Binary content (${Ye})`) : ce = await T.text();
2808
+ const nt = T.headers.get("content-length");
2809
+ return {
2810
+ status: T.status,
2811
+ headers: Ze,
2812
+ size: nt ? parseInt(nt) : ce.length,
2813
+ body: ce,
2814
+ time: gn,
2815
+ isBinary: Ke,
2816
+ fileName: tt,
2817
+ blob: et,
2818
+ request: {
2819
+ method: _.method.toUpperCase(),
2820
+ url: _.url,
2821
+ headers: [
2822
+ ["Host", xn.host],
2823
+ ["User-Agent", "Zudoku Playground"],
2824
+ ...Array.from(_.headers.entries())
2825
+ ],
2826
+ body: p.body ? p.body : void 0
2827
+ }
2828
+ };
2829
+ } catch (T) {
2830
+ throw clearTimeout(be), P(!1), T instanceof TypeError ? new Error(
2831
+ "The request failed, possibly due to network issues or CORS policy."
2832
+ ) : T;
2833
+ }
2834
+ }
2835
+ }), We = B.isPending, [on, cn] = k(!1);
2836
+ z(() => {
2837
+ const p = setTimeout(() => cn(We), 100);
2838
+ return () => clearTimeout(p);
2839
+ }, [We]);
2840
+ const { isFinished: ln, progress: dn } = ss({ isAnimating: on });
2841
+ z(() => () => {
2842
+ Q.current?.abort();
2843
+ }, []);
2844
+ const un = /* @__PURE__ */ n.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: e ? /* @__PURE__ */ n.jsx("span", { children: e.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : t.length > 1 && /* @__PURE__ */ n.jsxs(
2845
+ wt,
2846
+ {
2847
+ onValueChange: (p) => {
2848
+ j(() => m(p));
2849
+ },
2850
+ value: g,
2851
+ defaultValue: g,
2852
+ children: [
2853
+ /* @__PURE__ */ n.jsx(Nt, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ n.jsx(St, {}) }),
2854
+ /* @__PURE__ */ n.jsx(Tt, { children: t.map((p) => /* @__PURE__ */ n.jsx(le, { value: p, children: p.replace(/^https?:\/\//, "").replace(/\/$/, "") }, p)) })
2855
+ ]
2856
+ }
2857
+ ) }), mn = u && !$, pn = ["POST", "PUT", "PATCH", "DELETE"].includes(
2858
+ a.toUpperCase()
2859
+ ), [Xe, hn] = us();
2860
+ return /* @__PURE__ */ n.jsx(
2861
+ ls,
2862
+ {
2863
+ register: rn,
2864
+ control: ie,
2865
+ handleSubmit: Qe,
2866
+ watch: Je,
2867
+ setValue: ye,
2868
+ ...ve,
2869
+ children: /* @__PURE__ */ n.jsx(ds, { delayDuration: 150, children: /* @__PURE__ */ n.jsxs(
2870
+ "form",
2871
+ {
2872
+ ref: Me,
2873
+ onSubmit: Qe((p) => {
2874
+ b.data?.length === 0 || p.identity ? B.mutate(p) : v(!0);
2875
+ }),
2876
+ className: "relative",
2877
+ children: [
2878
+ /* @__PURE__ */ n.jsx(
2879
+ Dr,
2880
+ {
2881
+ identities: b.data ?? [],
2882
+ open: y,
2883
+ onOpenChange: v,
2884
+ onSubmit: ({ rememberedIdentity: p, identity: W }) => {
2885
+ p && ye("identity", W ?? te), v(!1), B.mutate({ ...ve.getValues(), identity: W });
2886
+ }
2887
+ }
2888
+ ),
2889
+ /* @__PURE__ */ n.jsx(
2890
+ Br,
2891
+ {
2892
+ open: mn,
2893
+ setOpen: (p) => S(!p),
2894
+ onSignUp: h,
2895
+ onLogin: d
2896
+ }
2897
+ ),
2898
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[1fr_1px_1fr] text-sm", children: [
2899
+ /* @__PURE__ */ n.jsxs("div", { className: "col-span-3 p-4 border-b flex gap-2 items-stretch", children: [
2900
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md relative overflow-hidden", children: [
2901
+ /* @__PURE__ */ n.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
2902
+ /* @__PURE__ */ n.jsx("div", { className: "items-center px-2 font-mono text-xs break-all leading-6 relative h-full w-full", children: /* @__PURE__ */ n.jsxs("div", { className: "h-full py-1.5", children: [
2903
+ un,
2904
+ /* @__PURE__ */ n.jsx(Mr, { url: s }),
2905
+ /* @__PURE__ */ n.jsx(Gr, {})
2906
+ ] }) }),
2907
+ /* @__PURE__ */ n.jsx("div", { className: "px-1", children: /* @__PURE__ */ n.jsx(
2908
+ E,
2909
+ {
2910
+ type: "button",
2911
+ onClick: () => {
2912
+ hn(
2913
+ ut(
2914
+ e ?? g,
2915
+ s,
2916
+ ve.getValues()
2917
+ ).toString()
2918
+ );
2919
+ },
2920
+ variant: "ghost",
2921
+ size: "icon-xs",
2922
+ className: C(
2923
+ "hover:opacity-100 transition",
2924
+ Xe ? "text-emerald-600 opacity-100" : "opacity-50"
2925
+ ),
2926
+ children: Xe ? /* @__PURE__ */ n.jsx(ft, { className: "text-green-500", size: 14 }) : /* @__PURE__ */ n.jsx(En, { size: 14 })
2927
+ }
2928
+ ) })
2929
+ ] }),
2930
+ /* @__PURE__ */ n.jsx(
2931
+ E,
2932
+ {
2933
+ type: "submit",
2934
+ variant: B.isPending ? "destructive" : "default",
2935
+ onClick: (p) => {
2936
+ B.isPending && (Q.current?.abort(
2937
+ "Request cancelled by user"
2938
+ ), p.preventDefault());
2939
+ },
2940
+ className: "w-18",
2941
+ children: B.isPending ? "Cancel" : "Send"
2942
+ }
2943
+ )
2944
+ ] }),
2945
+ /* @__PURE__ */ n.jsxs("div", { className: "relative overflow-y-auto h-[80vh]", children: [
2946
+ b.data?.length !== 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2947
+ /* @__PURE__ */ n.jsxs(M, { children: [
2948
+ /* @__PURE__ */ n.jsx(In, { size: 16 }),
2949
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Authentication" })
2950
+ ] }),
2951
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(
2952
+ Jt,
2953
+ {
2954
+ value: J,
2955
+ identities: b.data ?? [],
2956
+ setValue: (p) => ye("identity", p)
2957
+ }
2958
+ ) })
2959
+ ] }),
2960
+ He.length > 0 && /* @__PURE__ */ n.jsxs(q, { defaultOpen: !0, children: [
2961
+ /* @__PURE__ */ n.jsxs(M, { children: [
2962
+ /* @__PURE__ */ n.jsx(kn, { size: 16 }),
2963
+ /* @__PURE__ */ n.jsx(G, { className: "col-span-2", children: "Path Parameters" })
2964
+ ] }),
2965
+ /* @__PURE__ */ n.jsx(V, { className: "CollapsibleContent", children: /* @__PURE__ */ n.jsx(Fr, { url: s, control: ie }) })
2966
+ ] }),
2967
+ /* @__PURE__ */ n.jsx(Vr, { control: ie, schemaQueryParams: o }),
2968
+ /* @__PURE__ */ n.jsx(
2969
+ Ir,
2970
+ {
2971
+ control: ie,
2972
+ schemaHeaders: r,
2973
+ lockedHeaders: an?.headers
2974
+ }
2975
+ ),
2976
+ pn && /* @__PURE__ */ n.jsx(Or, { content: c })
2977
+ ] }),
2978
+ /* @__PURE__ */ n.jsx("div", { className: "w-full bg-muted-foreground/20" }),
2979
+ /* @__PURE__ */ n.jsx(
2980
+ na,
2981
+ {
2982
+ queryMutation: B,
2983
+ showLongRunningWarning: D,
2984
+ isFinished: ln,
2985
+ progress: dn,
2986
+ tip: /* @__PURE__ */ n.jsx("div", { className: "text-xs w-full", children: /* @__PURE__ */ n.jsxs("span", { className: "text-muted-foreground", children: [
2987
+ "Press",
2988
+ " ",
2989
+ /* @__PURE__ */ n.jsx("kbd", { className: "text-foreground border rounded m-0.5 px-1 py-0.5 capitalize", children: sn.join(" + ") }),
2990
+ " ",
2991
+ "to send a request"
2992
+ ] }) }),
2993
+ onCancel: () => {
2994
+ Q.current?.abort(
2995
+ "Request cancelled by the user"
2996
+ ), P(!1);
2997
+ }
2998
+ }
2999
+ )
3000
+ ] })
3001
+ ]
3002
+ }
3003
+ ) })
3004
+ }
3005
+ );
3006
+ }, aa = ({
3007
+ className: e,
3008
+ size: t = 16
3009
+ }) => /* @__PURE__ */ n.jsx(
3010
+ "svg",
3011
+ {
3012
+ xmlns: "http://www.w3.org/2000/svg",
3013
+ viewBox: "0 0 24 24",
3014
+ fill: "currentColor",
3015
+ className: e,
3016
+ width: t,
3017
+ height: t,
3018
+ children: /* @__PURE__ */ n.jsx(
3019
+ "path",
3020
+ {
3021
+ fillRule: "evenodd",
3022
+ d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm14.024-.983a1.125 1.125 0 0 1 0 1.966l-5.603 3.113A1.125 1.125 0 0 1 9 15.113V8.887c0-.857.921-1.4 1.671-.983l5.603 3.113Z",
3023
+ clipRule: "evenodd"
3024
+ }
3025
+ )
3026
+ }
3027
+ ), oa = (e) => {
3028
+ const [t, s] = k(!1);
3029
+ return /* @__PURE__ */ n.jsxs(Ee, { onOpenChange: (a) => s(a), children: [
3030
+ /* @__PURE__ */ n.jsx(ts, { asChild: !0, children: e.children ?? /* @__PURE__ */ n.jsxs(
3031
+ "button",
3032
+ {
3033
+ type: "button",
3034
+ className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-xs hover:bg-primary/80",
3035
+ children: [
3036
+ "Test",
3037
+ /* @__PURE__ */ n.jsx(aa, { size: 14 })
3038
+ ]
3039
+ }
3040
+ ) }),
3041
+ /* @__PURE__ */ n.jsxs(
3042
+ Ie,
3043
+ {
3044
+ className: "max-w-screen-xl w-full overflow-hidden p-0",
3045
+ "aria-describedby": void 0,
3046
+ showCloseButton: !0,
3047
+ children: [
3048
+ /* @__PURE__ */ n.jsx(es, { children: /* @__PURE__ */ n.jsx(ke, { children: "Playground" }) }),
3049
+ t && /* @__PURE__ */ n.jsx(ra, { ...e })
3050
+ ]
3051
+ }
3052
+ )
3053
+ ] });
3054
+ }, ia = {
3055
+ get: "green",
3056
+ post: "blue",
3057
+ put: "yellow",
3058
+ delete: "red",
3059
+ patch: "purple",
3060
+ options: "gray",
3061
+ head: "gray"
3062
+ }, pt = ({
3063
+ label: e,
3064
+ path: t,
3065
+ operations: s,
3066
+ collapsible: a,
3067
+ collapsed: r
3068
+ }) => ({
3069
+ type: "category",
3070
+ label: e,
3071
+ link: {
3072
+ type: "doc",
3073
+ path: t,
3074
+ file: t,
3075
+ label: e
3076
+ },
3077
+ collapsible: a,
3078
+ collapsed: r,
3079
+ items: s.map((o) => ({
3080
+ type: "link",
3081
+ label: o.summary ?? o.path,
3082
+ to: `${t}#${o.slug}`,
3083
+ badge: {
3084
+ label: o.method,
3085
+ // biome-ignore lint/style/noNonNullAssertion: is guaranteed to be defined
3086
+ color: ia[o.method.toLowerCase()],
3087
+ invert: !0
3088
+ }
3089
+ }))
3090
+ }), Yt = yt(
3091
+ void 0
3092
+ ), Ua = Yt.Provider, ca = () => {
3093
+ const e = Kn(Yt);
3094
+ if (!e)
3095
+ throw new Error("useOasConfig must be used within a OasConfigProvider");
3096
+ return e.config;
3097
+ }, ht = (e) => ({
3098
+ path: e.routePath,
3099
+ async lazy() {
3100
+ const { OasProvider: t } = await import("./OasProvider-D3Cjaaxr.js");
3101
+ return {
3102
+ element: /* @__PURE__ */ n.jsx(
3103
+ t,
3104
+ {
3105
+ basePath: e.basePath,
3106
+ version: e.version,
3107
+ client: e.client,
3108
+ config: e.config
3109
+ }
3110
+ )
3111
+ };
3112
+ },
3113
+ children: e.routes
3114
+ }), Kt = ({
3115
+ path: e,
3116
+ tag: t,
3117
+ untagged: s
3118
+ }) => ({
3119
+ path: e,
3120
+ async lazy() {
3121
+ const { OperationList: a } = await import("./OperationList-BH4cFU-0.js");
3122
+ return { element: /* @__PURE__ */ n.jsx(a, { tag: t, untagged: s }) };
3123
+ }
3124
+ }), la = ({
3125
+ render: e,
3126
+ path: t
3127
+ }) => {
3128
+ const { type: s, input: a } = ca(), { tag: r } = qn(), o = Vn(), i = rr(nn, { type: s, input: a }), {
3129
+ data: { schema: l }
3130
+ } = Qn(i), c = l.tags.at(0);
3131
+ return !r && c?.slug ? /* @__PURE__ */ n.jsx(
3132
+ Bn,
3133
+ {
3134
+ to: {
3135
+ pathname: _n(t, { tag: c.slug }),
3136
+ search: o.search
3137
+ }
3138
+ }
3139
+ ) : r && l.tags.some((u) => u.slug === r) ? e(r) : null;
3140
+ }, da = ({ path: e }) => ({
3141
+ path: e,
3142
+ async lazy() {
3143
+ const { OperationList: t } = await import("./OperationList-BH4cFU-0.js");
3144
+ return {
3145
+ element: /* @__PURE__ */ n.jsx(
3146
+ la,
3147
+ {
3148
+ path: e,
3149
+ render: (s) => /* @__PURE__ */ n.jsx(t, { tag: s })
3150
+ }
3151
+ )
3152
+ };
3153
+ }
3154
+ }), en = (e) => [
3155
+ // Category without tagged operations
3156
+ Kt({
3157
+ path: I(e, _e),
3158
+ untagged: !0
3159
+ }),
3160
+ // Schema list route
3161
+ {
3162
+ path: I(e, "~schemas"),
3163
+ lazy: async () => {
3164
+ const { SchemaList: t } = await import("./SchemaList-BcJyi2sR.js");
3165
+ return { element: /* @__PURE__ */ n.jsx(t, {}) };
3166
+ }
3167
+ }
3168
+ ], ua = (e, t) => {
3169
+ const s = I(e, t.at(0) ?? _e);
3170
+ return [
3171
+ // Redirect to first tag on the index route
3172
+ { index: !0, loader: () => Fn(s) },
3173
+ // Create routes for each tag
3174
+ ...t.map(
3175
+ (a) => Kt({
3176
+ path: I(e, a),
3177
+ tag: a
3178
+ })
3179
+ ),
3180
+ ...en(e)
3181
+ ];
3182
+ }, tn = (e) => e.type === "file" ? Object.keys(e.input) : [], ma = ({
3183
+ basePath: e,
3184
+ config: t,
3185
+ client: s
3186
+ }) => {
3187
+ const a = t.tagPages;
3188
+ if (!a)
3189
+ return [
3190
+ ht({
3191
+ basePath: e,
3192
+ routePath: e,
3193
+ routes: [
3194
+ da({ path: `${e}/:tag?` }),
3195
+ ...en(e)
3196
+ ],
3197
+ client: s,
3198
+ config: t
3199
+ })
3200
+ ];
3201
+ const r = tn(t);
3202
+ return (r.length > 1 ? [void 0, ...r] : [void 0]).map((i) => {
3203
+ const l = I(e, i);
3204
+ return ht({
3205
+ basePath: e,
3206
+ version: i,
3207
+ routePath: l,
3208
+ routes: ua(l, a),
3209
+ client: s,
3210
+ config: t
3211
+ });
3212
+ });
3213
+ }, nn = pr(`
3214
+ query GetNavigationOperations($input: JSON!, $type: SchemaType!) {
3215
+ schema(input: $input, type: $type) {
3216
+ extensions
3217
+ tags {
3218
+ slug
3219
+ name
3220
+ extensions
3221
+ operations {
3222
+ summary
3223
+ slug
3224
+ method
3225
+ operationId
3226
+ path
3227
+ }
3228
+ }
3229
+ components {
3230
+ schemas {
3231
+ __typename
3232
+ }
3233
+ }
3234
+ }
3235
+ }
3236
+ `), _e = "~endpoints", Ma = (e) => {
3237
+ const t = I(e.path), s = new Ss(e);
3238
+ return {
3239
+ getHead: () => {
3240
+ if (e.type === "url" && !e.skipPreload)
3241
+ return /* @__PURE__ */ n.jsx(
3242
+ "link",
3243
+ {
3244
+ rel: "preload",
3245
+ href: e.input,
3246
+ as: "fetch",
3247
+ crossOrigin: "anonymous"
3248
+ }
3249
+ );
3250
+ if (e.server)
3251
+ return /* @__PURE__ */ n.jsx("link", { rel: "preconnect", href: e.server });
3252
+ },
3253
+ getMdxComponents: () => ({
3254
+ OpenPlaygroundButton: ({
3255
+ requireAuth: a,
3256
+ server: r,
3257
+ method: o,
3258
+ url: i,
3259
+ children: l,
3260
+ ...c
3261
+ }) => {
3262
+ const u = Un();
3263
+ if (!r)
3264
+ throw new Error("Server is required");
3265
+ return a && !u.isAuthenticated ? /* @__PURE__ */ n.jsxs(
3266
+ ne,
3267
+ {
3268
+ className: "gap-2 items-center",
3269
+ variant: "outline",
3270
+ onClick: u.login,
3271
+ children: [
3272
+ "Login to open in Playground ",
3273
+ /* @__PURE__ */ n.jsx(Dn, { size: 16 })
3274
+ ]
3275
+ }
3276
+ ) : /* @__PURE__ */ n.jsx(
3277
+ oa,
3278
+ {
3279
+ url: i ?? "/",
3280
+ method: o ?? "get",
3281
+ server: r,
3282
+ ...c,
3283
+ children: /* @__PURE__ */ n.jsx(ne, { className: "gap-2 items-center", variant: "outline", children: l ?? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3284
+ "Open in Playground ",
3285
+ /* @__PURE__ */ n.jsx(zn, { size: 16 })
3286
+ ] }) })
3287
+ }
3288
+ );
3289
+ }
3290
+ }),
3291
+ getNavigation: async (a, r) => {
3292
+ if (!st({ path: t, end: !1 }, a))
3293
+ return [];
3294
+ const o = st(
3295
+ { path: `${t}/:version?/:tag`, end: !0 },
3296
+ a
3297
+ );
3298
+ try {
3299
+ const i = o?.params.version, l = i ?? tn(e).at(0), { type: c } = e, u = c === "file" ? e.input[l] : e.input, d = Ft(s, nn, {
3300
+ type: c,
3301
+ input: u
3302
+ }), h = await r.queryClient.ensureQueryData(d), g = new Map(
3303
+ h.schema.tags.filter((f) => f.name && f.operations.length > 0).map((f) => {
3304
+ if (!f.name)
3305
+ throw new Error(`Tag ${f.slug} has no name`);
3306
+ const j = I(t, i, f.slug), $ = f.extensions?.["x-zudoku-collapsed"] ?? !e.options?.expandAllTags, S = f.extensions?.["x-zudoku-collapsible"] ?? !0;
3307
+ return [
3308
+ f.name,
3309
+ pt({
3310
+ label: f.extensions?.["x-displayName"] ?? f.name,
3311
+ path: j,
3312
+ operations: f.operations,
3313
+ collapsed: $,
3314
+ collapsible: S
3315
+ })
3316
+ ];
3317
+ })
3318
+ ), m = h.schema.extensions?.["x-tagGroups"] ?? [], y = new Set(
3319
+ m.flatMap(
3320
+ (f) => f.tags.filter((j) => g.has(j))
3321
+ )
3322
+ ), b = [
3323
+ ...m.flatMap(
3324
+ (f) => {
3325
+ const j = f.tags.map(($) => g.get($)).filter(Boolean);
3326
+ return j.length === 0 ? [] : [
3327
+ {
3328
+ type: "category",
3329
+ label: f.name,
3330
+ items: j,
3331
+ collapsible: !0,
3332
+ collapsed: !e.options?.expandAllTags
3333
+ }
3334
+ ];
3335
+ }
3336
+ ),
3337
+ ...Array.from(g.entries()).filter(([f]) => !y.has(f)).map(([, f]) => f)
3338
+ ], O = h.schema.tags.find(
3339
+ (f) => !f.name
3340
+ )?.operations;
3341
+ return O && b.push(
3342
+ pt({
3343
+ label: b.length === 0 ? "Endpoints" : "Other endpoints",
3344
+ path: I(t, i, _e),
3345
+ operations: O,
3346
+ collapsed: !e.options?.expandAllTags
3347
+ })
3348
+ ), h.schema.components?.schemas?.length && b.push({
3349
+ type: "link",
3350
+ label: "Schemas",
3351
+ to: I(t, i, "~schemas")
3352
+ }), b;
3353
+ } catch {
3354
+ return [];
3355
+ }
3356
+ },
3357
+ getRoutes: () => ma({ basePath: t, config: e, client: s })
3358
+ };
3359
+ };
3360
+ export {
3361
+ q as C,
3362
+ _a as G,
3363
+ zs as L,
3364
+ Ua as O,
3365
+ oa as P,
3366
+ Ls as Q,
3367
+ Dt as S,
3368
+ x as T,
3369
+ _e as U,
3370
+ rr as a,
3371
+ qt as b,
3372
+ V as c,
3373
+ tn as d,
3374
+ vr as e,
3375
+ Wt as f,
3376
+ pr as g,
3377
+ Ur as h,
3378
+ nr as i,
3379
+ lt as j,
3380
+ Va as k,
3381
+ Fs as l,
3382
+ Fe as m,
3383
+ kt as n,
3384
+ Ts as o,
3385
+ tr as p,
3386
+ Ce as q,
3387
+ As as r,
3388
+ L as s,
3389
+ Ba as t,
3390
+ ca as u,
3391
+ Ds as v,
3392
+ Es as w,
3393
+ Lt as x,
3394
+ nn as y,
3395
+ Ma as z
3396
+ };
3397
+ //# sourceMappingURL=index-QwGs6inR.js.map