zudoku 0.0.0-f417aae → 0.0.0-f46233e4

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