zudoku 0.0.0-feat-bundled-types.9aa135e → 0.0.0-feat-openapi-docs-redesign.dab3fc6a

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 (1531) hide show
  1. package/README.md +33 -13
  2. package/cli.js +1 -0
  3. package/client.d.ts +8 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +10 -120
  5. package/dist/app/ZuploBuildConfig.js +7 -7
  6. package/dist/app/ZuploBuildConfig.js.map +1 -1
  7. package/dist/app/demo.js +22 -6
  8. package/dist/app/demo.js.map +1 -1
  9. package/dist/app/entry.client.d.ts +0 -2
  10. package/dist/app/entry.client.js +6 -7
  11. package/dist/app/entry.client.js.map +1 -1
  12. package/dist/app/entry.server.d.ts +0 -2
  13. package/dist/app/entry.server.js +17 -6
  14. package/dist/app/entry.server.js.map +1 -1
  15. package/dist/app/env.d.ts +7 -7
  16. package/dist/app/env.js +10 -2
  17. package/dist/app/env.js.map +1 -1
  18. package/dist/app/main.d.ts +93 -2
  19. package/dist/app/main.js +31 -26
  20. package/dist/app/main.js.map +1 -1
  21. package/dist/app/standalone.js +11 -7
  22. package/dist/app/standalone.js.map +1 -1
  23. package/dist/cli/build/handler.js +9 -1
  24. package/dist/cli/build/handler.js.map +1 -1
  25. package/dist/cli/cli.d.ts +9 -0
  26. package/dist/cli/cli.js +5 -10
  27. package/dist/cli/cli.js.map +1 -1
  28. package/dist/cli/cmds/build.d.ts +1 -1
  29. package/dist/cli/cmds/dev.d.ts +1 -1
  30. package/dist/cli/cmds/preview.d.ts +1 -1
  31. package/dist/cli/common/analytics/lib.js +1 -1
  32. package/dist/cli/common/analytics/lib.js.map +1 -1
  33. package/dist/cli/common/logger.js +0 -1
  34. package/dist/cli/common/logger.js.map +1 -1
  35. package/dist/cli/common/machine-id/lib.js +3 -2
  36. package/dist/cli/common/machine-id/lib.js.map +1 -1
  37. package/dist/cli/common/outdated.js +2 -1
  38. package/dist/cli/common/outdated.js.map +1 -1
  39. package/dist/cli/common/output.js +2 -3
  40. package/dist/cli/common/output.js.map +1 -1
  41. package/dist/cli/common/utils/box.js +2 -2
  42. package/dist/cli/common/utils/box.js.map +1 -1
  43. package/dist/cli/common/validators/lib.js +1 -1
  44. package/dist/cli/common/validators/lib.js.map +1 -1
  45. package/dist/cli/common/version-check.d.ts +2 -0
  46. package/dist/cli/common/version-check.js +58 -0
  47. package/dist/cli/common/version-check.js.map +1 -0
  48. package/dist/cli/dev/handler.js +0 -4
  49. package/dist/cli/dev/handler.js.map +1 -1
  50. package/dist/codegen.js +2 -2
  51. package/dist/codegen.js.map +1 -1
  52. package/dist/config/config.d.ts +16 -30
  53. package/dist/config/loader.js +4 -8
  54. package/dist/config/loader.js.map +1 -1
  55. package/dist/config/validators/BuildSchema.d.ts +30 -46
  56. package/dist/config/validators/BuildSchema.js +29 -18
  57. package/dist/config/validators/BuildSchema.js.map +1 -1
  58. package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
  59. package/dist/config/validators/InputNavigationSchema.js +78 -0
  60. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  61. package/dist/config/validators/InputNavigationSchema.test-d.d.ts +1 -0
  62. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  63. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  64. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  65. package/dist/config/validators/NavigationSchema.js +98 -0
  66. package/dist/config/validators/NavigationSchema.js.map +1 -0
  67. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  68. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  69. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  70. package/dist/config/validators/auth.d.ts +2 -2
  71. package/dist/config/validators/auth.js +1 -1
  72. package/dist/config/validators/auth.js.map +1 -1
  73. package/dist/config/validators/icon-types.d.ts +2 -1
  74. package/dist/config/validators/icon-types.js +1872 -1
  75. package/dist/config/validators/icon-types.js.map +1 -1
  76. package/dist/config/validators/validate.d.ts +672 -5561
  77. package/dist/config/validators/validate.js +182 -85
  78. package/dist/config/validators/validate.js.map +1 -1
  79. package/dist/config/validators/validate.test.d.ts +1 -0
  80. package/dist/config/validators/validate.test.js +140 -0
  81. package/dist/config/validators/validate.test.js.map +1 -0
  82. package/dist/flat-config.d.ts +378 -0
  83. package/dist/index.d.ts +12 -6264
  84. package/dist/index.js +2 -1
  85. package/dist/index.js.map +1 -1
  86. package/dist/lib/MissingIcon.d.ts +1 -1
  87. package/dist/lib/MissingIcon.js.map +1 -1
  88. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  89. package/dist/lib/assets/language-icons/c.js +4 -0
  90. package/dist/lib/assets/language-icons/c.js.map +1 -0
  91. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  92. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  93. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  94. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  95. package/dist/lib/assets/language-icons/cpp.js +4 -0
  96. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  97. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  98. package/dist/lib/assets/language-icons/csharp.js +4 -0
  99. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  100. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  101. package/dist/lib/assets/language-icons/css.js +4 -0
  102. package/dist/lib/assets/language-icons/css.js.map +1 -0
  103. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  104. package/dist/lib/assets/language-icons/dart.js +4 -0
  105. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  106. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  107. package/dist/lib/assets/language-icons/elixir.js +4 -0
  108. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  109. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  110. package/dist/lib/assets/language-icons/go.js +4 -0
  111. package/dist/lib/assets/language-icons/go.js.map +1 -0
  112. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  113. package/dist/lib/assets/language-icons/graphql.js +4 -0
  114. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  115. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  116. package/dist/lib/assets/language-icons/html.js +4 -0
  117. package/dist/lib/assets/language-icons/html.js.map +1 -0
  118. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  119. package/dist/lib/assets/language-icons/java.js +4 -0
  120. package/dist/lib/assets/language-icons/java.js.map +1 -0
  121. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  122. package/dist/lib/assets/language-icons/javascript.js +4 -0
  123. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  124. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  125. package/dist/lib/assets/language-icons/json.js +4 -0
  126. package/dist/lib/assets/language-icons/json.js.map +1 -0
  127. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  128. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  129. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  130. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  131. package/dist/lib/assets/language-icons/markdown.js +4 -0
  132. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  133. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  134. package/dist/lib/assets/language-icons/mdx.js +4 -0
  135. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  136. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  137. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  138. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  139. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  140. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  141. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  142. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  143. package/dist/lib/assets/language-icons/php.js +4 -0
  144. package/dist/lib/assets/language-icons/php.js.map +1 -0
  145. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  146. package/dist/lib/assets/language-icons/powershell.js +4 -0
  147. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  148. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  149. package/dist/lib/assets/language-icons/python.js +4 -0
  150. package/dist/lib/assets/language-icons/python.js.map +1 -0
  151. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  152. package/dist/lib/assets/language-icons/react.js +4 -0
  153. package/dist/lib/assets/language-icons/react.js.map +1 -0
  154. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  155. package/dist/lib/assets/language-icons/ruby.js +4 -0
  156. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  157. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  158. package/dist/lib/assets/language-icons/rust.js +4 -0
  159. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  160. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  161. package/dist/lib/assets/language-icons/scala.js +4 -0
  162. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  163. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  164. package/dist/lib/assets/language-icons/shell.js +4 -0
  165. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  166. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  167. package/dist/lib/assets/language-icons/swift.js +4 -0
  168. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  169. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  170. package/dist/lib/assets/language-icons/toml.js +4 -0
  171. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  172. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  173. package/dist/lib/assets/language-icons/typescript.js +4 -0
  174. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  175. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  176. package/dist/lib/assets/language-icons/xml.js +4 -0
  177. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  178. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  179. package/dist/lib/assets/language-icons/yaml.js +4 -0
  180. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  181. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  182. package/dist/lib/assets/language-icons/zig.js +4 -0
  183. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  184. package/dist/lib/auth/issuer.d.ts +2 -0
  185. package/dist/lib/auth/issuer.js +40 -0
  186. package/dist/lib/auth/issuer.js.map +1 -0
  187. package/dist/lib/auth/issuer.test.d.ts +1 -0
  188. package/dist/lib/auth/issuer.test.js +95 -0
  189. package/dist/lib/auth/issuer.test.js.map +1 -0
  190. package/dist/lib/authentication/AuthenticationPlugin.d.ts +1 -1
  191. package/dist/lib/authentication/authentication.d.ts +19 -11
  192. package/dist/lib/authentication/components/CallbackHandler.js +12 -10
  193. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  194. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  195. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  196. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  197. package/dist/lib/authentication/components/SignIn.js +10 -8
  198. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  199. package/dist/lib/authentication/components/SignOut.js +6 -6
  200. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  201. package/dist/lib/authentication/components/SignUp.js +5 -5
  202. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  203. package/dist/lib/authentication/errors.d.ts +6 -12
  204. package/dist/lib/authentication/errors.js +2 -1
  205. package/dist/lib/authentication/errors.js.map +1 -1
  206. package/dist/lib/authentication/hook.d.ts +10 -2
  207. package/dist/lib/authentication/hook.js +12 -8
  208. package/dist/lib/authentication/hook.js.map +1 -1
  209. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  210. package/dist/lib/authentication/providers/auth0.js +10 -6
  211. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  212. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  213. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  214. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  215. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  216. package/dist/lib/authentication/providers/clerk.js +9 -16
  217. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  218. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  219. package/dist/lib/authentication/providers/firebase.js +215 -0
  220. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  221. package/dist/lib/authentication/providers/openid.d.ts +10 -7
  222. package/dist/lib/authentication/providers/openid.js +55 -7
  223. package/dist/lib/authentication/providers/openid.js.map +1 -1
  224. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  225. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  226. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  227. package/dist/lib/authentication/providers/supabase.d.ts +2 -2
  228. package/dist/lib/authentication/providers/supabase.js +32 -39
  229. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  230. package/dist/lib/authentication/state.d.ts +11 -12
  231. package/dist/lib/authentication/state.js +21 -20
  232. package/dist/lib/authentication/state.js.map +1 -1
  233. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
  234. package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
  235. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  236. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  237. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  238. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  239. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  240. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  241. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  242. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  243. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  244. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  245. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  246. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  247. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  248. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  249. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  250. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  251. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  252. package/dist/lib/authentication/ui/icons/X.js +4 -0
  253. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  254. package/dist/lib/authentication/use-broadcast/shared.d.ts +1 -1
  255. package/dist/lib/authentication/use-broadcast/shared.js +3 -3
  256. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -1
  257. package/dist/lib/authentication/use-broadcast/useBroadcast.js +2 -2
  258. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -1
  259. package/dist/lib/components/Autocomplete.d.ts +3 -1
  260. package/dist/lib/components/Autocomplete.js +7 -3
  261. package/dist/lib/components/Autocomplete.js.map +1 -1
  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 +2 -2
  265. package/dist/lib/components/Bootstrap.js +0 -2
  266. package/dist/lib/components/Bootstrap.js.map +1 -1
  267. package/dist/lib/components/BuildCheck.d.ts +2 -1
  268. package/dist/lib/components/BuildCheck.js +12 -5
  269. package/dist/lib/components/BuildCheck.js.map +1 -1
  270. package/dist/lib/components/CategoryHeading.js +1 -1
  271. package/dist/lib/components/CategoryHeading.js.map +1 -1
  272. package/dist/lib/components/ErrorPage.js +2 -2
  273. package/dist/lib/components/ErrorPage.js.map +1 -1
  274. package/dist/lib/components/Footer.js +1 -1
  275. package/dist/lib/components/Footer.js.map +1 -1
  276. package/dist/lib/components/Framed.d.ts +7 -0
  277. package/dist/lib/components/Framed.js +26 -0
  278. package/dist/lib/components/Framed.js.map +1 -0
  279. package/dist/lib/components/Header.js +20 -21
  280. package/dist/lib/components/Header.js.map +1 -1
  281. package/dist/lib/components/Heading.d.ts +8 -4
  282. package/dist/lib/components/Heading.js +3 -7
  283. package/dist/lib/components/Heading.js.map +1 -1
  284. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  285. package/dist/lib/components/LanguageIcon.js +163 -0
  286. package/dist/lib/components/LanguageIcon.js.map +1 -0
  287. package/dist/lib/components/Layout.js +5 -7
  288. package/dist/lib/components/Layout.js.map +1 -1
  289. package/dist/lib/components/Main.js +4 -4
  290. package/dist/lib/components/Main.js.map +1 -1
  291. package/dist/lib/components/Markdown.d.ts +0 -1
  292. package/dist/lib/components/Markdown.js +5 -6
  293. package/dist/lib/components/Markdown.js.map +1 -1
  294. package/dist/lib/components/Meta.d.ts +2 -0
  295. package/dist/lib/components/Meta.js +11 -0
  296. package/dist/lib/components/Meta.js.map +1 -0
  297. package/dist/lib/components/MobileTopNavigation.js +13 -7
  298. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  299. package/dist/lib/components/NotFoundPage.js +2 -2
  300. package/dist/lib/components/NotFoundPage.js.map +1 -1
  301. package/dist/lib/components/PageProgress.d.ts +1 -0
  302. package/dist/lib/components/PageProgress.js +20 -0
  303. package/dist/lib/components/PageProgress.js.map +1 -0
  304. package/dist/lib/components/Pagination.js +1 -1
  305. package/dist/lib/components/Pagination.js.map +1 -1
  306. package/dist/lib/components/PathRenderer.js +1 -1
  307. package/dist/lib/components/PathRenderer.js.map +1 -1
  308. package/dist/lib/components/Search.js +1 -1
  309. package/dist/lib/components/Search.js.map +1 -1
  310. package/dist/lib/components/Slot.js.map +1 -1
  311. package/dist/lib/components/Slot.test.js +7 -3
  312. package/dist/lib/components/Slot.test.js.map +1 -1
  313. package/dist/lib/components/StatusPage.js +4 -0
  314. package/dist/lib/components/StatusPage.js.map +1 -1
  315. package/dist/lib/components/TopNavigation.d.ts +7 -3
  316. package/dist/lib/components/TopNavigation.js +51 -45
  317. package/dist/lib/components/TopNavigation.js.map +1 -1
  318. package/dist/lib/components/Typography.d.ts +5 -0
  319. package/dist/lib/components/Typography.js +8 -0
  320. package/dist/lib/components/Typography.js.map +1 -0
  321. package/dist/lib/components/Zudoku.js +5 -5
  322. package/dist/lib/components/Zudoku.js.map +1 -1
  323. package/dist/lib/components/cache.d.ts +3 -1
  324. package/dist/lib/components/cache.js +3 -5
  325. package/dist/lib/components/cache.js.map +1 -1
  326. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  327. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -1
  328. package/dist/lib/components/context/SlotProvider.js.map +1 -1
  329. package/dist/lib/components/context/ViewportAnchorContext.js +1 -1
  330. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  331. package/dist/lib/components/context/ZudokuContext.d.ts +3 -7
  332. package/dist/lib/components/context/ZudokuContext.js +66 -32
  333. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  334. package/dist/lib/components/context/ZudokuProvider.d.ts +1 -1
  335. package/dist/lib/components/index.d.ts +74 -726
  336. package/dist/lib/components/index.js +5 -16
  337. package/dist/lib/components/index.js.map +1 -1
  338. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  339. package/dist/lib/components/navigation/Navigation.js +12 -0
  340. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  341. package/dist/lib/components/navigation/{SidebarBadge.d.ts → NavigationBadge.d.ts} +1 -1
  342. package/dist/lib/components/navigation/{SidebarBadge.js → NavigationBadge.js} +2 -2
  343. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  344. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  345. package/dist/lib/components/navigation/{SidebarCategory.js → NavigationCategory.js} +21 -14
  346. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  347. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  348. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  349. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  350. package/dist/lib/components/navigation/{SidebarWrapper.d.ts → NavigationWrapper.d.ts} +1 -1
  351. package/dist/lib/components/navigation/{SidebarWrapper.js → NavigationWrapper.js} +5 -5
  352. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  353. package/dist/lib/components/navigation/Toc.js +1 -1
  354. package/dist/lib/components/navigation/Toc.js.map +1 -1
  355. package/dist/lib/components/navigation/ZudokuLogo.d.ts +1 -1
  356. package/dist/lib/components/navigation/utils.d.ts +11 -11
  357. package/dist/lib/components/navigation/utils.js +32 -29
  358. package/dist/lib/components/navigation/utils.js.map +1 -1
  359. package/dist/lib/core/RouteGuard.d.ts +1 -1
  360. package/dist/lib/core/RouteGuard.js +19 -27
  361. package/dist/lib/core/RouteGuard.js.map +1 -1
  362. package/dist/lib/core/ZudokuContext.d.ts +17 -13
  363. package/dist/lib/core/ZudokuContext.js +47 -11
  364. package/dist/lib/core/ZudokuContext.js.map +1 -1
  365. package/dist/lib/core/__internal.d.ts +37 -0
  366. package/dist/lib/core/__internal.js +26 -0
  367. package/dist/lib/core/__internal.js.map +1 -0
  368. package/dist/lib/core/plugins.d.ts +4 -3
  369. package/dist/lib/core/plugins.js.map +1 -1
  370. package/dist/lib/core/router.d.ts +1 -0
  371. package/dist/lib/core/router.js +2 -0
  372. package/dist/lib/core/router.js.map +1 -0
  373. package/dist/lib/errors/ErrorAlert.js +2 -4
  374. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  375. package/dist/lib/errors/RouterError.d.ts +3 -1
  376. package/dist/lib/errors/RouterError.js +3 -2
  377. package/dist/lib/errors/RouterError.js.map +1 -1
  378. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  379. package/dist/lib/errors/TopLevelError.js +1 -2
  380. package/dist/lib/errors/TopLevelError.js.map +1 -1
  381. package/dist/lib/hooks/index.d.ts +28 -637
  382. package/dist/lib/hooks/useEvent.test.js +5 -3
  383. package/dist/lib/hooks/useEvent.test.js.map +1 -1
  384. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  385. package/dist/lib/hooks/useHotkey.js +58 -0
  386. package/dist/lib/hooks/useHotkey.js.map +1 -0
  387. package/dist/lib/oas/graphql/circular.js +2 -2
  388. package/dist/lib/oas/graphql/circular.js.map +1 -1
  389. package/dist/lib/oas/graphql/index.js +39 -3
  390. package/dist/lib/oas/graphql/index.js.map +1 -1
  391. package/dist/lib/oas/parser/dereference/index.js +2 -1
  392. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  393. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  394. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  395. package/dist/lib/oas/parser/index.js +8 -4
  396. package/dist/lib/oas/parser/index.js.map +1 -1
  397. package/dist/lib/oas/parser/upgrade/index.js +2 -1
  398. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  399. package/dist/lib/plugins/api-catalog/Catalog.d.ts +1 -1
  400. package/dist/lib/plugins/api-catalog/Catalog.js +7 -1
  401. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
  402. package/dist/lib/plugins/api-catalog/index.d.ts +6 -6
  403. package/dist/lib/plugins/api-catalog/index.js +10 -10
  404. package/dist/lib/plugins/api-catalog/index.js.map +1 -1
  405. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +1 -1
  406. package/dist/lib/plugins/api-keys/CreateApiKey.js +13 -3
  407. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  408. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  409. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  410. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  411. package/dist/lib/plugins/api-keys/ProtectedRoute.js +4 -1
  412. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  413. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  414. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +17 -24
  415. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  416. package/dist/lib/plugins/api-keys/index.d.ts +11 -6
  417. package/dist/lib/plugins/api-keys/index.js +28 -13
  418. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  419. package/dist/lib/plugins/custom-pages/index.d.ts +4 -6
  420. package/dist/lib/plugins/custom-pages/index.js +18 -10
  421. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  422. package/dist/lib/plugins/markdown/MdxPage.d.ts +3 -3
  423. package/dist/lib/plugins/markdown/MdxPage.js +56 -12
  424. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  425. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  426. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  427. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  428. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  429. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  430. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  431. package/dist/lib/plugins/markdown/index.d.ts +13 -3
  432. package/dist/lib/plugins/markdown/index.js +9 -26
  433. package/dist/lib/plugins/markdown/index.js.map +1 -1
  434. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +1 -0
  435. package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
  436. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  437. package/dist/lib/plugins/openapi/ColorizedParam.js +4 -1
  438. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  439. package/dist/lib/plugins/openapi/Endpoint.js +2 -2
  440. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  441. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  442. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  443. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  444. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  445. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  446. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  447. package/dist/lib/plugins/openapi/OasProvider.d.ts +1 -1
  448. package/dist/lib/plugins/openapi/OasProvider.js +1 -0
  449. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -1
  450. package/dist/lib/plugins/openapi/OperationList.d.ts +0 -2
  451. package/dist/lib/plugins/openapi/OperationList.js +33 -9
  452. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  453. package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -3
  454. package/dist/lib/plugins/openapi/OperationListItem.js +14 -6
  455. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  456. package/dist/lib/plugins/openapi/ParamInfos.d.ts +1 -1
  457. package/dist/lib/plugins/openapi/ParamInfos.js +11 -9
  458. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -1
  459. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -2
  460. package/dist/lib/plugins/openapi/ParameterList.js +8 -5
  461. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  462. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  463. package/dist/lib/plugins/openapi/ParameterListItem.js +18 -7
  464. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  465. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -4
  466. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -5
  467. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  468. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -4
  469. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -2
  470. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  471. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +3 -2
  472. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +25 -4
  473. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  474. package/dist/lib/plugins/openapi/SchemaList.js +2 -3
  475. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -1
  476. package/dist/lib/plugins/openapi/Sidecar.d.ts +5 -4
  477. package/dist/lib/plugins/openapi/Sidecar.js +57 -31
  478. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  479. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  480. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  481. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +11 -6
  482. package/dist/lib/plugins/openapi/SidecarExamples.js +24 -43
  483. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  484. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  485. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +1 -1
  486. package/dist/lib/plugins/openapi/client/createServer.js +1 -2
  487. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  488. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  489. package/dist/lib/plugins/openapi/components/ConstValue.js +1 -1
  490. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -1
  491. package/dist/lib/plugins/openapi/components/EnumValues.js +1 -1
  492. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -1
  493. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  494. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  495. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  496. package/dist/lib/plugins/openapi/components/ResponseContent.js +5 -6
  497. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -1
  498. package/dist/lib/plugins/openapi/context.d.ts +1 -1
  499. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +1 -1
  500. package/dist/lib/plugins/openapi/graphql/gql.d.ts +3 -3
  501. package/dist/lib/plugins/openapi/graphql/gql.js +3 -3
  502. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  503. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +15 -5
  504. package/dist/lib/plugins/openapi/graphql/graphql.js +14 -2
  505. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  506. package/dist/lib/plugins/openapi/index.d.ts +5 -5
  507. package/dist/lib/plugins/openapi/index.js +57 -29
  508. package/dist/lib/plugins/openapi/index.js.map +1 -1
  509. package/dist/lib/plugins/openapi/interfaces.d.ts +21 -7
  510. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +3 -3
  511. package/dist/lib/plugins/openapi/playground/BodyPanel.js +71 -15
  512. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -1
  513. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  514. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  515. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  516. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +3 -3
  517. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -2
  518. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  519. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  520. package/dist/lib/plugins/openapi/playground/Headers.js +42 -80
  521. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  522. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +1 -1
  523. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +2 -1
  524. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -1
  525. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +1 -1
  526. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -2
  527. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  528. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +10 -2
  529. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +9 -2
  530. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  531. package/dist/lib/plugins/openapi/playground/PathParams.js +2 -4
  532. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  533. package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -2
  534. package/dist/lib/plugins/openapi/playground/Playground.js +117 -64
  535. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  536. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +5 -2
  537. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  538. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +3 -3
  539. package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -29
  540. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  541. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +2 -1
  542. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +10 -2
  543. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -1
  544. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  545. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  546. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  547. package/dist/lib/plugins/openapi/playground/fileUtils.js +1 -1
  548. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -1
  549. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +5 -3
  550. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  551. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  552. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  553. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  554. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  555. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  556. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  557. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  558. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  559. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  560. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  561. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  562. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  563. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  564. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  565. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  566. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  567. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  568. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  569. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  570. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  571. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +7 -4
  572. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +40 -33
  573. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  574. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  575. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +8 -10
  576. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  577. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +1 -1
  578. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +1 -1
  579. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -1
  580. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +5 -3
  581. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +2 -0
  582. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -1
  583. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +1 -0
  584. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -1
  585. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +1 -0
  586. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -1
  587. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -1
  588. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -1
  589. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +3 -3
  590. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -1
  591. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +0 -3
  592. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +22 -22
  593. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  594. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +3 -2
  595. package/dist/lib/plugins/openapi/schema/SchemaView.js +28 -17
  596. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  597. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  598. package/dist/lib/plugins/openapi/schema/UnionView.js +33 -0
  599. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  600. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  601. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  602. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  603. package/dist/lib/plugins/openapi/schema/utils.d.ts +0 -7
  604. package/dist/lib/plugins/openapi/schema/utils.js +3 -8
  605. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  606. package/dist/lib/plugins/openapi/state.d.ts +5 -3
  607. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +1 -1
  608. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +1 -1
  609. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -1
  610. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  611. package/dist/lib/plugins/openapi/util/{createSidebarCategory.js → createNavigationCategory.js} +6 -4
  612. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  613. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +1 -1
  614. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +10 -13
  615. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  616. package/dist/lib/plugins/openapi/util/getRoutes.js +3 -3
  617. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  618. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +1 -1
  619. package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
  620. package/dist/lib/plugins/search-inkeep/index.js +35 -29
  621. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  622. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
  623. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  624. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  625. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +2 -2
  626. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  627. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +2 -2
  628. package/dist/lib/plugins/search-pagefind/ResultList.js +15 -5
  629. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  630. package/dist/lib/plugins/search-pagefind/get-results.js +0 -1
  631. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  632. package/dist/lib/shiki.d.ts +7 -6
  633. package/dist/lib/shiki.js +31 -8
  634. package/dist/lib/shiki.js.map +1 -1
  635. package/dist/lib/ui/ActionButton.js +1 -1
  636. package/dist/lib/ui/ActionButton.js.map +1 -1
  637. package/dist/lib/ui/Alert.d.ts +6 -5
  638. package/dist/lib/ui/Alert.js +12 -10
  639. package/dist/lib/ui/Alert.js.map +1 -1
  640. package/dist/lib/ui/Badge.d.ts +4 -4
  641. package/dist/lib/ui/Badge.js +9 -7
  642. package/dist/lib/ui/Badge.js.map +1 -1
  643. package/dist/lib/ui/Breadcrumb.js +1 -1
  644. package/dist/lib/ui/Breadcrumb.js.map +1 -1
  645. package/dist/lib/ui/Button.d.ts +2 -2
  646. package/dist/lib/ui/Button.js +1 -0
  647. package/dist/lib/ui/Button.js.map +1 -1
  648. package/dist/lib/ui/Callout.d.ts +5 -5
  649. package/dist/lib/ui/Callout.js +5 -5
  650. package/dist/lib/ui/Callout.js.map +1 -1
  651. package/dist/lib/ui/Checkbox.d.ts +2 -2
  652. package/dist/lib/ui/Checkbox.js +4 -4
  653. package/dist/lib/ui/Checkbox.js.map +1 -1
  654. package/dist/lib/ui/CodeBlock.d.ts +2 -4
  655. package/dist/lib/ui/CodeBlock.js +10 -10
  656. package/dist/lib/ui/CodeBlock.js.map +1 -1
  657. package/dist/lib/ui/Collapsible.d.ts +4 -4
  658. package/dist/lib/ui/Collapsible.js +11 -4
  659. package/dist/lib/ui/Collapsible.js.map +1 -1
  660. package/dist/lib/ui/Command.d.ts +5 -5
  661. package/dist/lib/ui/Command.js +2 -6
  662. package/dist/lib/ui/Command.js.map +1 -1
  663. package/dist/lib/ui/Dialog.d.ts +12 -18
  664. package/dist/lib/ui/Dialog.js +31 -18
  665. package/dist/lib/ui/Dialog.js.map +1 -1
  666. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
  667. package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
  668. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  669. package/dist/lib/ui/Form.d.ts +2 -2
  670. package/dist/lib/ui/Frame.d.ts +8 -0
  671. package/dist/lib/ui/Frame.js +22 -0
  672. package/dist/lib/ui/Frame.js.map +1 -0
  673. package/dist/lib/ui/Item.d.ts +23 -0
  674. package/dist/lib/ui/Item.js +67 -0
  675. package/dist/lib/ui/Item.js.map +1 -0
  676. package/dist/lib/ui/NativeSelect.d.ts +5 -0
  677. package/dist/lib/ui/NativeSelect.js +14 -0
  678. package/dist/lib/ui/NativeSelect.js.map +1 -0
  679. package/dist/lib/ui/Pagination.d.ts +1 -1
  680. package/dist/lib/ui/Pagination.js +1 -1
  681. package/dist/lib/ui/Pagination.js.map +1 -1
  682. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  683. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  684. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  685. package/dist/lib/ui/Secret.d.ts +18 -0
  686. package/dist/lib/ui/Secret.js +26 -0
  687. package/dist/lib/ui/Secret.js.map +1 -0
  688. package/dist/lib/ui/Select.d.ts +13 -11
  689. package/dist/lib/ui/Select.js +34 -23
  690. package/dist/lib/ui/Select.js.map +1 -1
  691. package/dist/lib/ui/Separator.d.ts +4 -0
  692. package/dist/lib/ui/Separator.js +8 -0
  693. package/dist/lib/ui/Separator.js.map +1 -0
  694. package/dist/lib/ui/SyntaxHighlight.d.ts +4 -1
  695. package/dist/lib/ui/SyntaxHighlight.js +3 -2
  696. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  697. package/dist/lib/ui/ToggleGroup.d.ts +1 -1
  698. package/dist/lib/ui/Tooltip.d.ts +7 -7
  699. package/dist/lib/ui/Tooltip.js +16 -10
  700. package/dist/lib/ui/Tooltip.js.map +1 -1
  701. package/dist/lib/ui/Value.d.ts +5 -0
  702. package/dist/lib/ui/Value.js +13 -0
  703. package/dist/lib/ui/Value.js.map +1 -0
  704. package/dist/lib/util/MdxComponents.d.ts +11 -2
  705. package/dist/lib/util/MdxComponents.js +9 -4
  706. package/dist/lib/util/MdxComponents.js.map +1 -1
  707. package/dist/lib/util/cn.js.map +1 -1
  708. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  709. package/dist/lib/util/createVariantComponent.js +5 -2
  710. package/dist/lib/util/createVariantComponent.js.map +1 -1
  711. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  712. package/dist/lib/util/flattenAllOf.js +65 -0
  713. package/dist/lib/util/flattenAllOf.js.map +1 -0
  714. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  715. package/dist/lib/util/flattenAllOf.test.js +532 -0
  716. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  717. package/dist/lib/util/groupBy.js +1 -0
  718. package/dist/lib/util/groupBy.js.map +1 -1
  719. package/dist/lib/util/humanFileSize.js +1 -1
  720. package/dist/lib/util/humanFileSize.js.map +1 -1
  721. package/dist/lib/util/invariant.d.ts +6 -5
  722. package/dist/lib/util/invariant.js +4 -2
  723. package/dist/lib/util/invariant.js.map +1 -1
  724. package/dist/lib/util/os.d.ts +2 -0
  725. package/dist/lib/util/os.js +21 -0
  726. package/dist/lib/util/os.js.map +1 -0
  727. package/dist/lib/util/pastellize.js +4 -4
  728. package/dist/lib/util/pastellize.js.map +1 -1
  729. package/dist/lib/util/syncZustandState.d.ts +5 -0
  730. package/dist/lib/util/syncZustandState.js +14 -0
  731. package/dist/lib/util/syncZustandState.js.map +1 -0
  732. package/dist/lib/util/traverse.d.ts +1 -0
  733. package/dist/lib/util/traverse.js +25 -0
  734. package/dist/lib/util/traverse.js.map +1 -1
  735. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  736. package/dist/lib/util/useCopyToClipboard.js +11 -0
  737. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  738. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -1
  739. package/dist/lib/util/useScrollToAnchor.js +5 -3
  740. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  741. package/dist/ts.d.ts +6 -0
  742. package/dist/ts.js +61 -0
  743. package/dist/ts.js.map +1 -0
  744. package/dist/vite/api/SchemaManager.d.ts +7 -5
  745. package/dist/vite/api/SchemaManager.js +62 -47
  746. package/dist/vite/api/SchemaManager.js.map +1 -1
  747. package/dist/vite/api/SchemaManager.test.js +6 -6
  748. package/dist/vite/api/SchemaManager.test.js.map +1 -1
  749. package/dist/vite/api/schema-codegen.js +71 -22
  750. package/dist/vite/api/schema-codegen.js.map +1 -1
  751. package/dist/vite/api/schema-codegen.test.js +156 -1
  752. package/dist/vite/api/schema-codegen.test.js.map +1 -1
  753. package/dist/vite/build.js +11 -35
  754. package/dist/vite/build.js.map +1 -1
  755. package/dist/vite/config.js +18 -3
  756. package/dist/vite/config.js.map +1 -1
  757. package/dist/vite/css/plugin.js +11 -0
  758. package/dist/vite/css/plugin.js.map +1 -1
  759. package/dist/vite/dev-server.js +12 -4
  760. package/dist/vite/dev-server.js.map +1 -1
  761. package/dist/vite/error-handler.d.ts +2 -2
  762. package/dist/vite/error-handler.js.map +1 -1
  763. package/dist/vite/llms.d.ts +12 -0
  764. package/dist/vite/llms.js +66 -0
  765. package/dist/vite/llms.js.map +1 -0
  766. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  767. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  768. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  769. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  770. package/dist/vite/mdx/remark-last-modified.js +28 -0
  771. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  772. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  773. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  774. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  775. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  776. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  777. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  778. package/dist/vite/{remarkStaticGeneration.d.ts → mdx/remark-static-generation.d.ts} +2 -2
  779. package/dist/vite/{remarkStaticGeneration.js → mdx/remark-static-generation.js} +2 -2
  780. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  781. package/dist/vite/mdx/utils.d.ts +2 -0
  782. package/dist/vite/mdx/utils.js +31 -0
  783. package/dist/vite/mdx/utils.js.map +1 -0
  784. package/dist/vite/output.d.ts +1 -1
  785. package/dist/vite/output.js +1 -1
  786. package/dist/vite/output.js.map +1 -1
  787. package/dist/vite/plugin-api-keys.d.ts +1 -1
  788. package/dist/vite/plugin-api-keys.js +1 -1
  789. package/dist/vite/plugin-api-keys.js.map +1 -1
  790. package/dist/vite/plugin-api.js +29 -28
  791. package/dist/vite/plugin-api.js.map +1 -1
  792. package/dist/vite/plugin-auth.d.ts +1 -1
  793. package/dist/vite/plugin-auth.js +1 -1
  794. package/dist/vite/plugin-auth.js.map +1 -1
  795. package/dist/vite/plugin-component.d.ts +1 -1
  796. package/dist/vite/plugin-config-reload.d.ts +1 -1
  797. package/dist/vite/plugin-config-reload.js +2 -0
  798. package/dist/vite/plugin-config-reload.js.map +1 -1
  799. package/dist/vite/plugin-config.d.ts +1 -1
  800. package/dist/vite/plugin-config.js +2 -1
  801. package/dist/vite/plugin-config.js.map +1 -1
  802. package/dist/vite/plugin-custom-pages.d.ts +1 -1
  803. package/dist/vite/plugin-custom-pages.js +3 -3
  804. package/dist/vite/plugin-custom-pages.js.map +1 -1
  805. package/dist/vite/plugin-docs.d.ts +9 -0
  806. package/dist/vite/plugin-docs.js +92 -62
  807. package/dist/vite/plugin-docs.js.map +1 -1
  808. package/dist/vite/plugin-frontmatter.js +7 -3
  809. package/dist/vite/plugin-frontmatter.js.map +1 -1
  810. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  811. package/dist/vite/plugin-markdown-export.js +141 -0
  812. package/dist/vite/plugin-markdown-export.js.map +1 -0
  813. package/dist/vite/plugin-mdx.d.ts +2 -2
  814. package/dist/vite/plugin-mdx.js +57 -85
  815. package/dist/vite/plugin-mdx.js.map +1 -1
  816. package/dist/vite/plugin-metadata.d.ts +1 -1
  817. package/dist/vite/plugin-navigation.d.ts +4 -0
  818. package/dist/vite/plugin-navigation.js +67 -0
  819. package/dist/vite/plugin-navigation.js.map +1 -0
  820. package/dist/vite/plugin-redirect.d.ts +1 -1
  821. package/dist/vite/plugin-redirect.js +1 -1
  822. package/dist/vite/plugin-redirect.js.map +1 -1
  823. package/dist/vite/plugin-search.d.ts +1 -1
  824. package/dist/vite/plugin-search.js +1 -1
  825. package/dist/vite/plugin-search.js.map +1 -1
  826. package/dist/vite/plugin-shiki-register.js +1 -1
  827. package/dist/vite/plugin-shiki-register.js.map +1 -1
  828. package/dist/vite/plugin-theme.d.ts +8 -0
  829. package/dist/vite/plugin-theme.js +283 -0
  830. package/dist/vite/plugin-theme.js.map +1 -0
  831. package/dist/vite/plugin-theme.test.d.ts +1 -0
  832. package/dist/vite/plugin-theme.test.js +314 -0
  833. package/dist/vite/plugin-theme.test.js.map +1 -0
  834. package/dist/vite/plugin.d.ts +1 -1
  835. package/dist/vite/plugin.js +8 -8
  836. package/dist/vite/plugin.js.map +1 -1
  837. package/dist/vite/prerender/FileWritingResponse.js +5 -3
  838. package/dist/vite/prerender/FileWritingResponse.js.map +1 -1
  839. package/dist/vite/prerender/InMemoryResponse.js +3 -1
  840. package/dist/vite/prerender/InMemoryResponse.js.map +1 -1
  841. package/dist/vite/prerender/prerender.js +38 -5
  842. package/dist/vite/prerender/prerender.js.map +1 -1
  843. package/dist/vite/prerender/worker.d.ts +1 -1
  844. package/dist/vite/prerender/worker.js +5 -1
  845. package/dist/vite/prerender/worker.js.map +1 -1
  846. package/dist/vite/reporter.js +2 -2
  847. package/dist/vite/reporter.js.map +1 -1
  848. package/dist/vite/shadcn-registry.d.ts +20 -0
  849. package/dist/vite/shadcn-registry.js +29 -0
  850. package/dist/vite/shadcn-registry.js.map +1 -0
  851. package/dist/vite/sitemap.js +14 -13
  852. package/dist/vite/sitemap.js.map +1 -1
  853. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  854. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  855. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  856. package/dist/zuplo/enrich-with-zuplo.d.ts +1 -0
  857. package/dist/zuplo/enrich-with-zuplo.js +4 -4
  858. package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
  859. package/dist/zuplo/policy-types.js +0 -1
  860. package/dist/zuplo/policy-types.js.map +1 -1
  861. package/dist/zuplo/with-zuplo-processors.js +2 -0
  862. package/dist/zuplo/with-zuplo-processors.js.map +1 -1
  863. package/dist/zuplo/with-zuplo.js +1 -1
  864. package/dist/zuplo/with-zuplo.js.map +1 -1
  865. package/lib/{Button-BE9IVkWV.js → Button-B3ucvvQw.js} +8 -7
  866. package/lib/Button-B3ucvvQw.js.map +1 -0
  867. package/lib/{Card-DPhGbYUM.js → Card-KFniaZn5.js} +3 -3
  868. package/lib/{Card-DPhGbYUM.js.map → Card-KFniaZn5.js.map} +1 -1
  869. package/lib/CategoryHeading-DhmodDcq.js +17 -0
  870. package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
  871. package/lib/ClientOnly-E7hGysn1.js.map +1 -1
  872. package/lib/Command-CUcrW3qs.js +134 -0
  873. package/lib/Command-CUcrW3qs.js.map +1 -0
  874. package/lib/Dialog-BQciPiHN.js +144 -0
  875. package/lib/Dialog-BQciPiHN.js.map +1 -0
  876. package/lib/{Drawer-BzkOKwgC.js → Drawer-Ci7XwhqT.js} +87 -87
  877. package/lib/{Drawer-BzkOKwgC.js.map → Drawer-Ci7XwhqT.js.map} +1 -1
  878. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  879. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  880. package/lib/{Markdown-Cm4kj26S.js → ErrorAlert-_1Zmhr68.js} +3145 -3019
  881. package/lib/ErrorAlert-_1Zmhr68.js.map +1 -0
  882. package/lib/MdxPage-B2t1EShN.js +240 -0
  883. package/lib/MdxPage-B2t1EShN.js.map +1 -0
  884. package/lib/OAuthErrorPage-DnKnq4xK.js +150 -0
  885. package/lib/OAuthErrorPage-DnKnq4xK.js.map +1 -0
  886. package/lib/OasProvider-BhuIkD4Z.js +36 -0
  887. package/lib/OasProvider-BhuIkD4Z.js.map +1 -0
  888. package/lib/OperationList-D8EDc9v7.js +5688 -0
  889. package/lib/OperationList-D8EDc9v7.js.map +1 -0
  890. package/lib/Pagination-hk-llhpw.js +37 -0
  891. package/lib/Pagination-hk-llhpw.js.map +1 -0
  892. package/lib/RouteGuard-Brz95MSt.js +77 -0
  893. package/lib/RouteGuard-Brz95MSt.js.map +1 -0
  894. package/lib/RouterError-CMaIfdjb.js +42 -0
  895. package/lib/RouterError-CMaIfdjb.js.map +1 -0
  896. package/lib/{SchemaList-BWaNlmUJ.js → SchemaList-E6lF7dID.js} +31 -41
  897. package/lib/SchemaList-E6lF7dID.js.map +1 -0
  898. package/lib/SchemaView-CIv-OXgv.js +572 -0
  899. package/lib/SchemaView-CIv-OXgv.js.map +1 -0
  900. package/lib/Select-DFRCS31-.js +399 -0
  901. package/lib/Select-DFRCS31-.js.map +1 -0
  902. package/lib/SignUp-sGYAsj2K.js +50 -0
  903. package/lib/SignUp-sGYAsj2K.js.map +1 -0
  904. package/lib/{Spinner-mNLZ6awP.js → Spinner-CI6bRyZw.js} +2 -2
  905. package/lib/{Spinner-mNLZ6awP.js.map → Spinner-CI6bRyZw.js.map} +1 -1
  906. package/lib/{SyntaxHighlight-Cz6Me7-F.js → SyntaxHighlight-C19vH0V_.js} +1838 -1765
  907. package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
  908. package/lib/{Toc-Qe7A4uj_.js → Toc-DbWS75JZ.js} +7 -7
  909. package/lib/Toc-DbWS75JZ.js.map +1 -0
  910. package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
  911. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  912. package/lib/c-B-NUhs61.js +46 -0
  913. package/lib/c-B-NUhs61.js.map +1 -0
  914. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
  915. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
  916. package/lib/{circular-w5eL5J8a.js → circular-BoYo7au5.js} +30 -30
  917. package/lib/{circular-w5eL5J8a.js.map → circular-BoYo7au5.js.map} +1 -1
  918. package/lib/{cn-wvCW-ho6.js → cn-dYga0KKN.js} +2 -2
  919. package/lib/cn-dYga0KKN.js.map +1 -0
  920. package/lib/commonlisp-De080z23.js +28 -0
  921. package/lib/commonlisp-De080z23.js.map +1 -0
  922. package/lib/cpp-79Paht7T.js +53 -0
  923. package/lib/cpp-79Paht7T.js.map +1 -0
  924. package/lib/{createServer-p3yUA8Bu.js → createServer-B_BZ7xX8.js} +5108 -4774
  925. package/lib/createServer-B_BZ7xX8.js.map +1 -0
  926. package/lib/csharp-D8MIL50B.js +53 -0
  927. package/lib/csharp-D8MIL50B.js.map +1 -0
  928. package/lib/css-Bt6hr1td.js +54 -0
  929. package/lib/css-Bt6hr1td.js.map +1 -0
  930. package/lib/dart-B0vy1jWB.js +60 -0
  931. package/lib/dart-B0vy1jWB.js.map +1 -0
  932. package/lib/elixir-Ds8r0sF8.js +25 -0
  933. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  934. package/lib/errors-CD873hrG.js +45 -0
  935. package/lib/errors-CD873hrG.js.map +1 -0
  936. package/lib/go-D2VsmIOS.js +25 -0
  937. package/lib/go-D2VsmIOS.js.map +1 -0
  938. package/lib/graphql-BtA6M4m5.js +25 -0
  939. package/lib/graphql-BtA6M4m5.js.map +1 -0
  940. package/lib/hook-CMeoxziF.js +40 -0
  941. package/lib/hook-CMeoxziF.js.map +1 -0
  942. package/lib/html-MGnI2uzP.js +33 -0
  943. package/lib/html-MGnI2uzP.js.map +1 -0
  944. package/lib/{index-BvvmIczU.js → index-BK0jKRrX.js} +166 -50
  945. package/lib/index-BK0jKRrX.js.map +1 -0
  946. package/lib/index-CrcNWbel.js.map +1 -1
  947. package/lib/index-DI5SPFK9.js.map +1 -1
  948. package/lib/index-HNVs5cgX.js +3667 -0
  949. package/lib/index-HNVs5cgX.js.map +1 -0
  950. package/lib/{index-zddirpDj.js → index-nGbmHh_A.js} +227 -222
  951. package/lib/index-nGbmHh_A.js.map +1 -0
  952. package/lib/index-pMMX55GH.js +1059 -0
  953. package/lib/index-pMMX55GH.js.map +1 -0
  954. package/lib/index.esm-BYObtETB.js +1294 -0
  955. package/lib/index.esm-BYObtETB.js.map +1 -0
  956. package/lib/{index.esm-BFcSKCe-.js → index.esm-BnYHxCYC.js} +2 -2
  957. package/lib/{index.esm-BFcSKCe-.js.map → index.esm-BnYHxCYC.js.map} +1 -1
  958. package/lib/{invariant-DAFpPywt.js → invariant-Bm-FVUQE.js} +2 -6
  959. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  960. package/lib/java-CVLzHfb1.js +53 -0
  961. package/lib/java-CVLzHfb1.js.map +1 -0
  962. package/lib/javascript-CcmIpL4G.js +10 -0
  963. package/lib/javascript-CcmIpL4G.js.map +1 -0
  964. package/lib/json-4AyP4uiY.js +25 -0
  965. package/lib/json-4AyP4uiY.js.map +1 -0
  966. package/lib/{jsx-runtime-C5mzlN2N.js → jsx-runtime-BzflLqGi.js} +110 -112
  967. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  968. package/lib/kotlin-v2plddBQ.js +37 -0
  969. package/lib/kotlin-v2plddBQ.js.map +1 -0
  970. package/lib/markdown-DYGWCmGQ.js +25 -0
  971. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  972. package/lib/mdx-CHwYvXd4.js +32 -0
  973. package/lib/mdx-CHwYvXd4.js.map +1 -0
  974. package/lib/{mutation-BSeQ8pEK.js → mutation-BSU0xu4m.js} +2 -2
  975. package/lib/{mutation-BSeQ8pEK.js.map → mutation-BSU0xu4m.js.map} +1 -1
  976. package/lib/objectivec-HZY8shkd.js +32 -0
  977. package/lib/objectivec-HZY8shkd.js.map +1 -0
  978. package/lib/ocaml-DqsdDdwb.js +52 -0
  979. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  980. package/lib/php-rQXzo7K_.js +25 -0
  981. package/lib/php-rQXzo7K_.js.map +1 -0
  982. package/lib/powershell-CQje9pm1.js +39 -0
  983. package/lib/powershell-CQje9pm1.js.map +1 -0
  984. package/lib/processors/removeExtensions.js.map +1 -1
  985. package/lib/processors/removeParameters.js.map +1 -1
  986. package/lib/processors/removePaths.js.map +1 -1
  987. package/lib/processors/traverse.js.map +1 -1
  988. package/lib/python-QIQAE5Ei.js +32 -0
  989. package/lib/python-QIQAE5Ei.js.map +1 -0
  990. package/lib/react-DHpVpxRv.js +24 -0
  991. package/lib/react-DHpVpxRv.js.map +1 -0
  992. package/lib/ruby-B2dU8Ny5.js +25 -0
  993. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  994. package/lib/rust-DYnLHAi2.js +25 -0
  995. package/lib/rust-DYnLHAi2.js.map +1 -0
  996. package/lib/scala-CeKInBR8.js +25 -0
  997. package/lib/scala-CeKInBR8.js.map +1 -0
  998. package/lib/shell-HUv9oVtp.js +25 -0
  999. package/lib/shell-HUv9oVtp.js.map +1 -0
  1000. package/lib/swift-B4z6ig1Z.js +25 -0
  1001. package/lib/swift-B4z6ig1Z.js.map +1 -0
  1002. package/lib/toml-Co9mpdct.js +32 -0
  1003. package/lib/toml-Co9mpdct.js.map +1 -0
  1004. package/lib/typescript-C26xdBDC.js +32 -0
  1005. package/lib/typescript-C26xdBDC.js.map +1 -0
  1006. package/lib/ui/Accordion.js +2 -2
  1007. package/lib/ui/Accordion.js.map +1 -1
  1008. package/lib/ui/ActionButton.js +11 -11
  1009. package/lib/ui/ActionButton.js.map +1 -1
  1010. package/lib/ui/Alert.js +55 -39
  1011. package/lib/ui/Alert.js.map +1 -1
  1012. package/lib/ui/AlertDialog.js +2 -2
  1013. package/lib/ui/AlertDialog.js.map +1 -1
  1014. package/lib/ui/Badge.js +28 -14
  1015. package/lib/ui/Badge.js.map +1 -1
  1016. package/lib/ui/Breadcrumb.js +24 -23
  1017. package/lib/ui/Breadcrumb.js.map +1 -1
  1018. package/lib/ui/Button.js +7 -6
  1019. package/lib/ui/Button.js.map +1 -1
  1020. package/lib/ui/Callout.js +20 -20
  1021. package/lib/ui/Callout.js.map +1 -1
  1022. package/lib/ui/Card.js +2 -2
  1023. package/lib/ui/Card.js.map +1 -1
  1024. package/lib/ui/Carousel.js +2 -2
  1025. package/lib/ui/Carousel.js.map +1 -1
  1026. package/lib/ui/Checkbox.js +29 -26
  1027. package/lib/ui/Checkbox.js.map +1 -1
  1028. package/lib/ui/CodeBlock.js +203 -67
  1029. package/lib/ui/CodeBlock.js.map +1 -1
  1030. package/lib/ui/Collapsible.js +32 -5
  1031. package/lib/ui/Collapsible.js.map +1 -1
  1032. package/lib/ui/Command.js +22 -28
  1033. package/lib/ui/Command.js.map +1 -1
  1034. package/lib/ui/Dialog.js +140 -95
  1035. package/lib/ui/Dialog.js.map +1 -1
  1036. package/lib/ui/Drawer.js +3 -3
  1037. package/lib/ui/DropdownMenu.js +2 -2
  1038. package/lib/ui/DropdownMenu.js.map +1 -1
  1039. package/lib/ui/EmbeddedCodeBlock.js +84 -0
  1040. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1041. package/lib/ui/Form.js +3 -3
  1042. package/lib/ui/Form.js.map +1 -1
  1043. package/lib/ui/Frame.js +81 -0
  1044. package/lib/ui/Frame.js.map +1 -0
  1045. package/lib/ui/HoverCard.js +2 -2
  1046. package/lib/ui/HoverCard.js.map +1 -1
  1047. package/lib/ui/Input.js +2 -2
  1048. package/lib/ui/Input.js.map +1 -1
  1049. package/lib/ui/Item.js +188 -0
  1050. package/lib/ui/Item.js.map +1 -0
  1051. package/lib/ui/Label.js +2 -2
  1052. package/lib/ui/Label.js.map +1 -1
  1053. package/lib/ui/NativeSelect.js +57 -0
  1054. package/lib/ui/NativeSelect.js.map +1 -0
  1055. package/lib/ui/Pagination.js +29 -30
  1056. package/lib/ui/Pagination.js.map +1 -1
  1057. package/lib/ui/Popover.js +2 -2
  1058. package/lib/ui/Popover.js.map +1 -1
  1059. package/lib/ui/Progress.js +2 -2
  1060. package/lib/ui/Progress.js.map +1 -1
  1061. package/lib/ui/RadioGroup.js +2 -2
  1062. package/lib/ui/RadioGroup.js.map +1 -1
  1063. package/lib/ui/ReactComponentDoc.js +28 -0
  1064. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1065. package/lib/ui/ScrollArea.js +2 -2
  1066. package/lib/ui/ScrollArea.js.map +1 -1
  1067. package/lib/ui/Secret.js +106 -0
  1068. package/lib/ui/Secret.js.map +1 -0
  1069. package/lib/ui/Select.js +166 -116
  1070. package/lib/ui/Select.js.map +1 -1
  1071. package/lib/ui/Separator.js +27 -0
  1072. package/lib/ui/Separator.js.map +1 -0
  1073. package/lib/ui/Skeleton.js +2 -2
  1074. package/lib/ui/Skeleton.js.map +1 -1
  1075. package/lib/ui/Slider.js +2 -2
  1076. package/lib/ui/Slider.js.map +1 -1
  1077. package/lib/ui/Stepper.js +1 -1
  1078. package/lib/ui/Stepper.js.map +1 -1
  1079. package/lib/ui/Switch.js +2 -2
  1080. package/lib/ui/Switch.js.map +1 -1
  1081. package/lib/ui/SyntaxHighlight.js +6 -5
  1082. package/lib/ui/SyntaxHighlight.js.map +1 -1
  1083. package/lib/ui/Tabs.js +12 -12
  1084. package/lib/ui/Tabs.js.map +1 -1
  1085. package/lib/ui/Textarea.js +2 -2
  1086. package/lib/ui/Textarea.js.map +1 -1
  1087. package/lib/ui/Toggle.js +2 -2
  1088. package/lib/ui/Toggle.js.map +1 -1
  1089. package/lib/ui/ToggleGroup.js +2 -2
  1090. package/lib/ui/ToggleGroup.js.map +1 -1
  1091. package/lib/ui/Tooltip.js +55 -28
  1092. package/lib/ui/Tooltip.js.map +1 -1
  1093. package/lib/ui/Value.js +39 -0
  1094. package/lib/ui/Value.js.map +1 -0
  1095. package/lib/ui/util.js +1 -1
  1096. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1097. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1098. package/lib/useExposedProps-U3pmsHaG.js +113 -0
  1099. package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
  1100. package/lib/useLatest-hmRS46UF.js.map +1 -1
  1101. package/lib/xml-BQOOC04j.js +25 -0
  1102. package/lib/xml-BQOOC04j.js.map +1 -0
  1103. package/lib/yaml-BGsJItKv.js +32 -0
  1104. package/lib/yaml-BGsJItKv.js.map +1 -0
  1105. package/lib/zig-CUV2sTct.js +35 -0
  1106. package/lib/zig-CUV2sTct.js.map +1 -0
  1107. package/lib/zudoku.__internal.js +3084 -0
  1108. package/lib/zudoku.__internal.js.map +1 -0
  1109. package/lib/zudoku.auth-auth0.js +23 -22
  1110. package/lib/zudoku.auth-auth0.js.map +1 -1
  1111. package/lib/zudoku.auth-azureb2c.js +136 -0
  1112. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1113. package/lib/zudoku.auth-clerk.js +59 -65
  1114. package/lib/zudoku.auth-clerk.js.map +1 -1
  1115. package/lib/zudoku.auth-openid.js +372 -383
  1116. package/lib/zudoku.auth-openid.js.map +1 -1
  1117. package/lib/zudoku.auth-supabase.js +154 -0
  1118. package/lib/zudoku.auth-supabase.js.map +1 -0
  1119. package/lib/zudoku.components.js +27 -4573
  1120. package/lib/zudoku.components.js.map +1 -1
  1121. package/lib/zudoku.hooks.js +13 -14
  1122. package/lib/zudoku.hooks.js.map +1 -1
  1123. package/lib/zudoku.icons.js +1 -1
  1124. package/lib/zudoku.icons.js.map +1 -1
  1125. package/lib/zudoku.plugin-api-catalog.js +62 -55
  1126. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  1127. package/lib/zudoku.plugin-api-keys.js +456 -328
  1128. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1129. package/lib/zudoku.plugin-custom-pages.js +15 -18
  1130. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1131. package/lib/zudoku.plugin-markdown.js +21 -70
  1132. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1133. package/lib/zudoku.plugin-openapi.js +7 -7
  1134. package/lib/zudoku.plugin-redirect.js +1 -1
  1135. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1136. package/lib/zudoku.plugin-search-inkeep.js +54 -57
  1137. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1138. package/lib/zudoku.plugin-search-pagefind.js +213 -119
  1139. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  1140. package/lib/zudoku.plugins.js.map +1 -1
  1141. package/lib/zudoku.router.js +2507 -0
  1142. package/lib/zudoku.router.js.map +1 -0
  1143. package/package.json +140 -110
  1144. package/src/app/ZuploBuildConfig.ts +7 -7
  1145. package/src/app/defaultTheme.css +68 -49
  1146. package/src/app/demo.tsx +25 -7
  1147. package/src/app/entry.client.tsx +7 -8
  1148. package/src/app/entry.server.tsx +20 -12
  1149. package/src/app/env.ts +10 -2
  1150. package/src/app/main.css +59 -33
  1151. package/src/app/main.tsx +46 -36
  1152. package/src/app/standalone.tsx +14 -8
  1153. package/src/lib/MissingIcon.tsx +1 -1
  1154. package/src/lib/assets/language-icons/c.tsx +31 -0
  1155. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  1156. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  1157. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1158. package/src/lib/assets/language-icons/css.tsx +36 -0
  1159. package/src/lib/assets/language-icons/dart.tsx +39 -0
  1160. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  1161. package/src/lib/assets/language-icons/go.tsx +19 -0
  1162. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1163. package/src/lib/assets/language-icons/html.tsx +24 -0
  1164. package/src/lib/assets/language-icons/java.tsx +35 -0
  1165. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1166. package/src/lib/assets/language-icons/json.tsx +19 -0
  1167. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1168. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1169. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1170. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1171. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  1172. package/src/lib/assets/language-icons/php.tsx +19 -0
  1173. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  1174. package/src/lib/assets/language-icons/python.tsx +23 -0
  1175. package/src/lib/assets/language-icons/react.tsx +21 -0
  1176. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1177. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1178. package/src/lib/assets/language-icons/scala.tsx +19 -0
  1179. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1180. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1181. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1182. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1183. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1184. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1185. package/src/lib/assets/language-icons/zig.tsx +32 -0
  1186. package/src/lib/auth/issuer.test.ts +121 -0
  1187. package/src/lib/auth/issuer.ts +44 -0
  1188. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -4
  1189. package/src/lib/authentication/authentication.ts +26 -8
  1190. package/src/lib/authentication/components/CallbackHandler.tsx +23 -16
  1191. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1192. package/src/lib/authentication/components/SignIn.tsx +12 -17
  1193. package/src/lib/authentication/components/SignOut.tsx +7 -6
  1194. package/src/lib/authentication/components/SignUp.tsx +5 -8
  1195. package/src/lib/authentication/errors.ts +27 -13
  1196. package/src/lib/authentication/hook.ts +23 -10
  1197. package/src/lib/authentication/providers/auth0.tsx +15 -10
  1198. package/src/lib/authentication/providers/azureb2c.tsx +208 -0
  1199. package/src/lib/authentication/providers/clerk.tsx +21 -20
  1200. package/src/lib/authentication/providers/firebase.tsx +284 -0
  1201. package/src/lib/authentication/providers/openid.tsx +95 -12
  1202. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  1203. package/src/lib/authentication/providers/supabase.tsx +63 -58
  1204. package/src/lib/authentication/state.ts +40 -30
  1205. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
  1206. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  1207. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  1208. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  1209. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  1210. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  1211. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  1212. package/src/lib/authentication/use-broadcast/LICENSE.md +12 -3
  1213. package/src/lib/authentication/use-broadcast/shared.ts +4 -4
  1214. package/src/lib/authentication/use-broadcast/useBroadcast.ts +2 -2
  1215. package/src/lib/components/AnchorLink.tsx +1 -1
  1216. package/src/lib/components/Autocomplete.tsx +14 -4
  1217. package/src/lib/components/Banner.tsx +1 -2
  1218. package/src/lib/components/Bootstrap.tsx +3 -4
  1219. package/src/lib/components/BuildCheck.tsx +26 -13
  1220. package/src/lib/components/CategoryHeading.tsx +4 -1
  1221. package/src/lib/components/ErrorPage.tsx +3 -3
  1222. package/src/lib/components/Footer.tsx +1 -1
  1223. package/src/lib/components/Framed.tsx +51 -0
  1224. package/src/lib/components/Header.tsx +28 -25
  1225. package/src/lib/components/Heading.tsx +11 -12
  1226. package/src/lib/components/LanguageIcon.tsx +181 -0
  1227. package/src/lib/components/Layout.tsx +6 -24
  1228. package/src/lib/components/Main.tsx +10 -10
  1229. package/src/lib/components/Markdown.tsx +11 -10
  1230. package/src/lib/components/Meta.tsx +45 -0
  1231. package/src/lib/components/MobileTopNavigation.tsx +70 -15
  1232. package/src/lib/components/NotFoundPage.tsx +6 -5
  1233. package/src/lib/components/PageProgress.tsx +28 -0
  1234. package/src/lib/components/Pagination.tsx +5 -4
  1235. package/src/lib/components/PathRenderer.tsx +2 -2
  1236. package/src/lib/components/Search.tsx +1 -1
  1237. package/src/lib/components/Slot.test.tsx +8 -8
  1238. package/src/lib/components/Slot.tsx +2 -2
  1239. package/src/lib/components/StatusPage.tsx +5 -0
  1240. package/src/lib/components/TopNavigation.tsx +77 -70
  1241. package/src/lib/components/Typography.tsx +14 -0
  1242. package/src/lib/components/Zudoku.tsx +5 -5
  1243. package/src/lib/components/cache.ts +9 -5
  1244. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1245. package/src/lib/components/context/RouterEventsEmitter.tsx +1 -1
  1246. package/src/lib/components/context/SlotProvider.tsx +4 -4
  1247. package/src/lib/components/context/ViewportAnchorContext.tsx +2 -2
  1248. package/src/lib/components/context/ZudokuContext.ts +77 -43
  1249. package/src/lib/components/context/ZudokuProvider.tsx +1 -1
  1250. package/src/lib/components/index.ts +5 -19
  1251. package/src/lib/components/navigation/{Sidebar.tsx → Navigation.tsx} +18 -16
  1252. package/src/lib/components/navigation/{SidebarBadge.tsx → NavigationBadge.tsx} +1 -1
  1253. package/src/lib/components/navigation/{SidebarCategory.tsx → NavigationCategory.tsx} +25 -16
  1254. package/src/lib/components/navigation/{SidebarItem.tsx → NavigationItem.tsx} +44 -40
  1255. package/src/lib/components/navigation/{SidebarWrapper.tsx → NavigationWrapper.tsx} +8 -5
  1256. package/src/lib/components/navigation/Toc.tsx +5 -5
  1257. package/src/lib/components/navigation/ZudokuLogo.tsx +1 -1
  1258. package/src/lib/components/navigation/utils.ts +50 -46
  1259. package/src/lib/core/RouteGuard.tsx +52 -32
  1260. package/src/lib/core/ZudokuContext.ts +74 -23
  1261. package/src/lib/core/__internal.tsx +30 -0
  1262. package/src/lib/core/plugins.ts +4 -3
  1263. package/src/lib/core/router.ts +1 -0
  1264. package/src/lib/errors/ErrorAlert.tsx +8 -17
  1265. package/src/lib/errors/RouterError.tsx +7 -2
  1266. package/src/lib/errors/TopLevelError.tsx +2 -4
  1267. package/src/lib/hooks/useEvent.test.tsx +9 -7
  1268. package/src/lib/hooks/useHotkey.ts +70 -0
  1269. package/src/lib/oas/graphql/circular.ts +3 -3
  1270. package/src/lib/oas/graphql/index.ts +39 -3
  1271. package/src/lib/oas/parser/dereference/index.ts +2 -1
  1272. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1273. package/src/lib/oas/parser/index.ts +10 -5
  1274. package/src/lib/oas/parser/upgrade/index.ts +2 -1
  1275. package/src/lib/plugins/api-catalog/Catalog.tsx +8 -1
  1276. package/src/lib/plugins/api-catalog/index.tsx +19 -19
  1277. package/src/lib/plugins/api-keys/CreateApiKey.tsx +18 -4
  1278. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1279. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +11 -7
  1280. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +65 -71
  1281. package/src/lib/plugins/api-keys/index.tsx +50 -25
  1282. package/src/lib/plugins/custom-pages/index.tsx +24 -16
  1283. package/src/lib/plugins/markdown/MdxPage.tsx +204 -32
  1284. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1285. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1286. package/src/lib/plugins/markdown/index.tsx +27 -42
  1287. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -3
  1288. package/src/lib/plugins/openapi/ColorizedParam.tsx +3 -1
  1289. package/src/lib/plugins/openapi/Endpoint.tsx +2 -2
  1290. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1291. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1292. package/src/lib/plugins/openapi/OasProvider.tsx +2 -1
  1293. package/src/lib/plugins/openapi/OperationList.tsx +51 -31
  1294. package/src/lib/plugins/openapi/OperationListItem.tsx +106 -79
  1295. package/src/lib/plugins/openapi/ParamInfos.tsx +10 -9
  1296. package/src/lib/plugins/openapi/ParameterList.tsx +40 -28
  1297. package/src/lib/plugins/openapi/ParameterListItem.tsx +110 -59
  1298. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -13
  1299. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +51 -9
  1300. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +75 -29
  1301. package/src/lib/plugins/openapi/SchemaList.tsx +5 -11
  1302. package/src/lib/plugins/openapi/Sidecar.tsx +138 -72
  1303. package/src/lib/plugins/openapi/SidecarBox.tsx +26 -4
  1304. package/src/lib/plugins/openapi/SidecarExamples.tsx +93 -87
  1305. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1306. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +1 -1
  1307. package/src/lib/plugins/openapi/client/createServer.ts +1 -2
  1308. package/src/lib/plugins/openapi/client/useCreateQuery.ts +3 -2
  1309. package/src/lib/plugins/openapi/components/ConstValue.tsx +1 -1
  1310. package/src/lib/plugins/openapi/components/EnumValues.tsx +2 -2
  1311. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1312. package/src/lib/plugins/openapi/components/ResponseContent.tsx +63 -53
  1313. package/src/lib/plugins/openapi/context.tsx +1 -1
  1314. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +1 -1
  1315. package/src/lib/plugins/openapi/graphql/gql.ts +11 -11
  1316. package/src/lib/plugins/openapi/graphql/graphql.ts +33 -9
  1317. package/src/lib/plugins/openapi/index.tsx +90 -59
  1318. package/src/lib/plugins/openapi/interfaces.ts +22 -7
  1319. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +257 -32
  1320. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
  1321. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +11 -6
  1322. package/src/lib/plugins/openapi/playground/Headers.tsx +158 -176
  1323. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +4 -3
  1324. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +8 -13
  1325. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +34 -2
  1326. package/src/lib/plugins/openapi/playground/PathParams.tsx +26 -35
  1327. package/src/lib/plugins/openapi/playground/Playground.tsx +263 -159
  1328. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +23 -33
  1329. package/src/lib/plugins/openapi/playground/QueryParams.tsx +92 -100
  1330. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +20 -1
  1331. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1332. package/src/lib/plugins/openapi/playground/fileUtils.ts +1 -1
  1333. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1334. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1335. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1336. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1337. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1338. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1339. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1340. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +189 -115
  1341. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +70 -94
  1342. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +1 -1
  1343. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +3 -0
  1344. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +1 -0
  1345. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +1 -0
  1346. package/src/lib/plugins/openapi/processors/traverse.ts +1 -1
  1347. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +4 -4
  1348. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +94 -79
  1349. package/src/lib/plugins/openapi/schema/SchemaView.tsx +89 -55
  1350. package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
  1351. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1352. package/src/lib/plugins/openapi/schema/utils.ts +3 -13
  1353. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +2 -2
  1354. package/src/lib/plugins/openapi/util/{createSidebarCategory.tsx → createNavigationCategory.tsx} +7 -5
  1355. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +14 -15
  1356. package/src/lib/plugins/openapi/util/getRoutes.tsx +4 -4
  1357. package/src/lib/plugins/openapi/util/methodColorMap.tsx +1 -1
  1358. package/src/lib/plugins/search-inkeep/index.tsx +54 -58
  1359. package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
  1360. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +3 -4
  1361. package/src/lib/plugins/search-pagefind/ResultList.tsx +16 -8
  1362. package/src/lib/plugins/search-pagefind/get-results.tsx +0 -1
  1363. package/src/lib/shiki.ts +37 -8
  1364. package/src/lib/ui/ActionButton.tsx +3 -1
  1365. package/src/lib/ui/Alert.tsx +45 -39
  1366. package/src/lib/ui/Badge.tsx +21 -12
  1367. package/src/lib/ui/Breadcrumb.tsx +1 -0
  1368. package/src/lib/ui/Button.tsx +1 -0
  1369. package/src/lib/ui/Callout.tsx +10 -5
  1370. package/src/lib/ui/Checkbox.tsx +23 -24
  1371. package/src/lib/ui/CodeBlock.tsx +37 -61
  1372. package/src/lib/ui/Collapsible.tsx +26 -4
  1373. package/src/lib/ui/Command.tsx +2 -4
  1374. package/src/lib/ui/Dialog.tsx +113 -99
  1375. package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
  1376. package/src/lib/ui/Form.tsx +4 -4
  1377. package/src/lib/ui/Frame.tsx +81 -0
  1378. package/src/lib/ui/Item.tsx +192 -0
  1379. package/src/lib/ui/NativeSelect.tsx +47 -0
  1380. package/src/lib/ui/Pagination.tsx +1 -2
  1381. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1382. package/src/lib/ui/Secret.tsx +123 -0
  1383. package/src/lib/ui/Select.tsx +153 -126
  1384. package/src/lib/ui/Separator.tsx +25 -0
  1385. package/src/lib/ui/SyntaxHighlight.tsx +16 -3
  1386. package/src/lib/ui/ToggleGroup.tsx +1 -1
  1387. package/src/lib/ui/Tooltip.tsx +54 -32
  1388. package/src/lib/ui/Value.tsx +42 -0
  1389. package/src/lib/util/MdxComponents.tsx +24 -5
  1390. package/src/lib/util/cn.ts +1 -1
  1391. package/src/lib/util/createVariantComponent.tsx +33 -7
  1392. package/src/lib/util/flattenAllOf.test.ts +637 -0
  1393. package/src/lib/util/flattenAllOf.ts +101 -0
  1394. package/src/lib/util/groupBy.ts +1 -0
  1395. package/src/lib/util/humanFileSize.ts +2 -3
  1396. package/src/lib/util/invariant.ts +8 -5
  1397. package/src/lib/util/os.ts +18 -0
  1398. package/src/lib/util/pastellize.ts +4 -4
  1399. package/src/lib/util/syncZustandState.ts +22 -0
  1400. package/src/lib/util/traverse.ts +36 -0
  1401. package/src/lib/util/types.ts +1 -1
  1402. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1403. package/src/lib/util/useIsomorphicLayoutEffect.ts +1 -0
  1404. package/src/lib/util/useScrollToAnchor.ts +6 -4
  1405. package/src/shiki/langs/hurl.js +1 -0
  1406. package/src/shiki/langs/kdl.js +1 -0
  1407. package/src/shiki/langs/pkl.js +1 -0
  1408. package/src/shiki/langs/rosmsg.js +1 -0
  1409. package/src/shiki/langs/vue-vine.js +1 -0
  1410. package/dist/config/validators/InputSidebarSchema.d.ts +0 -217
  1411. package/dist/config/validators/InputSidebarSchema.js +0 -62
  1412. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  1413. package/dist/config/validators/SidebarSchema.d.ts +0 -46
  1414. package/dist/config/validators/SidebarSchema.js +0 -118
  1415. package/dist/config/validators/SidebarSchema.js.map +0 -1
  1416. package/dist/lib/components/ReactMarkdown.d.ts +0 -29
  1417. package/dist/lib/components/ReactMarkdown.js +0 -182
  1418. package/dist/lib/components/ReactMarkdown.js.map +0 -1
  1419. package/dist/lib/components/navigation/Sidebar.d.ts +0 -5
  1420. package/dist/lib/components/navigation/Sidebar.js +0 -10
  1421. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  1422. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  1423. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  1424. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  1425. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -6
  1426. package/dist/lib/components/navigation/SidebarItem.js +0 -45
  1427. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  1428. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  1429. package/dist/lib/plugins/custom-pages/CustomPage.d.ts +0 -2
  1430. package/dist/lib/plugins/custom-pages/CustomPage.js +0 -11
  1431. package/dist/lib/plugins/custom-pages/CustomPage.js.map +0 -1
  1432. package/dist/lib/plugins/markdown/resolver.d.ts +0 -32
  1433. package/dist/lib/plugins/markdown/resolver.js +0 -46
  1434. package/dist/lib/plugins/markdown/resolver.js.map +0 -1
  1435. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  1436. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  1437. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  1438. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  1439. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  1440. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  1441. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +0 -7
  1442. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +0 -11
  1443. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +0 -1
  1444. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -8
  1445. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  1446. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  1447. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -7
  1448. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  1449. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  1450. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -6
  1451. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  1452. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  1453. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +0 -9
  1454. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +0 -1
  1455. package/dist/vite/plugin-configure-tailwind.d.ts +0 -2
  1456. package/dist/vite/plugin-configure-tailwind.js +0 -38
  1457. package/dist/vite/plugin-configure-tailwind.js.map +0 -1
  1458. package/dist/vite/plugin-sidebar.d.ts +0 -4
  1459. package/dist/vite/plugin-sidebar.js +0 -63
  1460. package/dist/vite/plugin-sidebar.js.map +0 -1
  1461. package/dist/vite/plugin-theme-css.d.ts +0 -5
  1462. package/dist/vite/plugin-theme-css.js +0 -77
  1463. package/dist/vite/plugin-theme-css.js.map +0 -1
  1464. package/dist/vite/remarkStaticGeneration.js.map +0 -1
  1465. package/lib/Button-BE9IVkWV.js.map +0 -1
  1466. package/lib/Callout-CoVxYafP.js +0 -231
  1467. package/lib/Callout-CoVxYafP.js.map +0 -1
  1468. package/lib/CategoryHeading-Cu2RwgjC.js +0 -10
  1469. package/lib/CategoryHeading-Cu2RwgjC.js.map +0 -1
  1470. package/lib/Dialog-BxpuVLh9.js +0 -99
  1471. package/lib/Dialog-BxpuVLh9.js.map +0 -1
  1472. package/lib/Markdown-Cm4kj26S.js.map +0 -1
  1473. package/lib/MdxPage-fDGQtB5w.js +0 -84
  1474. package/lib/MdxPage-fDGQtB5w.js.map +0 -1
  1475. package/lib/OasProvider-CFBvfR3r.js +0 -33
  1476. package/lib/OasProvider-CFBvfR3r.js.map +0 -1
  1477. package/lib/OperationList-Xs4KWmsh.js +0 -5153
  1478. package/lib/OperationList-Xs4KWmsh.js.map +0 -1
  1479. package/lib/Pagination-CCxhL836.js +0 -36
  1480. package/lib/Pagination-CCxhL836.js.map +0 -1
  1481. package/lib/RouteGuard-CZ_uLv3g.js +0 -55
  1482. package/lib/RouteGuard-CZ_uLv3g.js.map +0 -1
  1483. package/lib/SchemaList-BWaNlmUJ.js.map +0 -1
  1484. package/lib/SchemaView-DdKJt2ln.js +0 -375
  1485. package/lib/SchemaView-DdKJt2ln.js.map +0 -1
  1486. package/lib/SignUp-B-1Pvc-8.js +0 -63
  1487. package/lib/SignUp-B-1Pvc-8.js.map +0 -1
  1488. package/lib/Slot-B99cbD-q.js +0 -160
  1489. package/lib/Slot-B99cbD-q.js.map +0 -1
  1490. package/lib/SyntaxHighlight-Cz6Me7-F.js.map +0 -1
  1491. package/lib/Toc-Qe7A4uj_.js.map +0 -1
  1492. package/lib/chunk-DQRVZFIR-BblmKnHy.js +0 -1839
  1493. package/lib/chunk-DQRVZFIR-BblmKnHy.js.map +0 -1
  1494. package/lib/cn-wvCW-ho6.js.map +0 -1
  1495. package/lib/createServer-p3yUA8Bu.js.map +0 -1
  1496. package/lib/hook-k7PfUIsj.js +0 -1465
  1497. package/lib/hook-k7PfUIsj.js.map +0 -1
  1498. package/lib/index--oeBayMa.js +0 -86
  1499. package/lib/index--oeBayMa.js.map +0 -1
  1500. package/lib/index-Bn6Lc9tq.js +0 -9
  1501. package/lib/index-Bn6Lc9tq.js.map +0 -1
  1502. package/lib/index-BvvmIczU.js.map +0 -1
  1503. package/lib/index-QzXzw_ra.js +0 -24
  1504. package/lib/index-QzXzw_ra.js.map +0 -1
  1505. package/lib/index-yqBxBqxF.js +0 -3226
  1506. package/lib/index-yqBxBqxF.js.map +0 -1
  1507. package/lib/index-zddirpDj.js.map +0 -1
  1508. package/lib/index.esm-Cp4wkyud.js +0 -1236
  1509. package/lib/index.esm-Cp4wkyud.js.map +0 -1
  1510. package/lib/invariant-DAFpPywt.js.map +0 -1
  1511. package/lib/joinPath-B7kNnUX4.js +0 -8
  1512. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  1513. package/lib/jsx-runtime-C5mzlN2N.js.map +0 -1
  1514. package/lib/objectEntries-yMIkr2mI.js +0 -5
  1515. package/lib/objectEntries-yMIkr2mI.js.map +0 -1
  1516. package/lib/react-nprogress.esm-C2MPXjiJ.js +0 -389
  1517. package/lib/react-nprogress.esm-C2MPXjiJ.js.map +0 -1
  1518. package/lib/useExposedProps-BZQkZneR.js +0 -9
  1519. package/lib/useExposedProps-BZQkZneR.js.map +0 -1
  1520. package/lib/useMutation-CZSmsIGW.js +0 -97
  1521. package/lib/useMutation-CZSmsIGW.js.map +0 -1
  1522. package/src/lib/components/ReactMarkdown.license.txt +0 -21
  1523. package/src/lib/components/ReactMarkdown.tsx +0 -264
  1524. package/src/lib/plugins/custom-pages/CustomPage.tsx +0 -18
  1525. package/src/lib/plugins/markdown/resolver.ts +0 -59
  1526. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  1527. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  1528. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +0 -73
  1529. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -40
  1530. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -57
  1531. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -33
@@ -0,0 +1,1508 @@
1
+ import * as w from "react";
2
+ import k, { useCallback as wt, createContext as Rt, useContext as Ot, useEffect as Ct } from "react";
3
+ import { j as Et } from "./jsx-runtime-BzflLqGi.js";
4
+ import { d as q, m as Y } from "./chunk-PVWAREVJ-BMhpCH5D.js";
5
+ import { c as Ft } from "./index-DI5SPFK9.js";
6
+ var G = class {
7
+ constructor() {
8
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
9
+ }
10
+ subscribe(t) {
11
+ return this.listeners.add(t), this.onSubscribe(), () => {
12
+ this.listeners.delete(t), this.onUnsubscribe();
13
+ };
14
+ }
15
+ hasListeners() {
16
+ return this.listeners.size > 0;
17
+ }
18
+ onSubscribe() {
19
+ }
20
+ onUnsubscribe() {
21
+ }
22
+ }, F = typeof window > "u" || "Deno" in globalThis;
23
+ function I() {
24
+ }
25
+ function Se(t, e) {
26
+ return typeof t == "function" ? t(e) : t;
27
+ }
28
+ function Q(t) {
29
+ return typeof t == "number" && t >= 0 && t !== 1 / 0;
30
+ }
31
+ function it(t, e) {
32
+ return Math.max(t + (e || 0) - Date.now(), 0);
33
+ }
34
+ function x(t, e) {
35
+ return typeof t == "function" ? t(e) : t;
36
+ }
37
+ function S(t, e) {
38
+ return typeof t == "function" ? t(e) : t;
39
+ }
40
+ function we(t, e) {
41
+ const {
42
+ type: s = "all",
43
+ exact: r,
44
+ fetchStatus: n,
45
+ predicate: a,
46
+ queryKey: o,
47
+ stale: i
48
+ } = t;
49
+ if (o) {
50
+ if (r) {
51
+ if (e.queryHash !== It(o, e.options))
52
+ return !1;
53
+ } else if (!V(e.queryKey, o))
54
+ return !1;
55
+ }
56
+ if (s !== "all") {
57
+ const u = e.isActive();
58
+ if (s === "active" && !u || s === "inactive" && u)
59
+ return !1;
60
+ }
61
+ return !(typeof i == "boolean" && e.isStale() !== i || n && n !== e.state.fetchStatus || a && !a(e));
62
+ }
63
+ function Re(t, e) {
64
+ const { exact: s, status: r, predicate: n, mutationKey: a } = t;
65
+ if (a) {
66
+ if (!e.options.mutationKey)
67
+ return !1;
68
+ if (s) {
69
+ if (U(e.options.mutationKey) !== U(a))
70
+ return !1;
71
+ } else if (!V(e.options.mutationKey, a))
72
+ return !1;
73
+ }
74
+ return !(r && e.state.status !== r || n && !n(e));
75
+ }
76
+ function It(t, e) {
77
+ return (e?.queryKeyHashFn || U)(t);
78
+ }
79
+ function U(t) {
80
+ return JSON.stringify(
81
+ t,
82
+ (e, s) => M(s) ? Object.keys(s).sort().reduce((r, n) => (r[n] = s[n], r), {}) : s
83
+ );
84
+ }
85
+ function V(t, e) {
86
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => V(t[s], e[s])) : !1;
87
+ }
88
+ function N(t, e) {
89
+ if (t === e)
90
+ return t;
91
+ const s = X(t) && X(e);
92
+ if (s || M(t) && M(e)) {
93
+ const r = s ? t : Object.keys(t), n = r.length, a = s ? e : Object.keys(e), o = a.length, i = s ? [] : {}, u = new Set(r);
94
+ let l = 0;
95
+ for (let h = 0; h < o; h++) {
96
+ const d = s ? h : a[h];
97
+ (!s && u.has(d) || s) && t[d] === void 0 && e[d] === void 0 ? (i[d] = void 0, l++) : (i[d] = N(t[d], e[d]), i[d] === t[d] && t[d] !== void 0 && l++);
98
+ }
99
+ return n === o && l === n ? t : i;
100
+ }
101
+ return e;
102
+ }
103
+ function L(t, e) {
104
+ if (!e || Object.keys(t).length !== Object.keys(e).length)
105
+ return !1;
106
+ for (const s in t)
107
+ if (t[s] !== e[s])
108
+ return !1;
109
+ return !0;
110
+ }
111
+ function X(t) {
112
+ return Array.isArray(t) && t.length === Object.keys(t).length;
113
+ }
114
+ function M(t) {
115
+ if (!tt(t))
116
+ return !1;
117
+ const e = t.constructor;
118
+ if (e === void 0)
119
+ return !0;
120
+ const s = e.prototype;
121
+ return !(!tt(s) || !s.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(t) !== Object.prototype);
122
+ }
123
+ function tt(t) {
124
+ return Object.prototype.toString.call(t) === "[object Object]";
125
+ }
126
+ function Pt(t) {
127
+ return new Promise((e) => {
128
+ setTimeout(e, t);
129
+ });
130
+ }
131
+ function _(t, e, s) {
132
+ if (typeof s.structuralSharing == "function")
133
+ return s.structuralSharing(t, e);
134
+ if (s.structuralSharing !== !1) {
135
+ if (process.env.NODE_ENV !== "production")
136
+ try {
137
+ return N(t, e);
138
+ } catch (r) {
139
+ throw console.error(
140
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${s.queryHash}]: ${r}`
141
+ ), r;
142
+ }
143
+ return N(t, e);
144
+ }
145
+ return e;
146
+ }
147
+ function Oe(t) {
148
+ return t;
149
+ }
150
+ function Ce(t, e, s = 0) {
151
+ const r = [...t, e];
152
+ return s && r.length > s ? r.slice(1) : r;
153
+ }
154
+ function Ee(t, e, s = 0) {
155
+ const r = [e, ...t];
156
+ return s && r.length > s ? r.slice(0, -1) : r;
157
+ }
158
+ var j = Symbol();
159
+ function Tt(t, e) {
160
+ return process.env.NODE_ENV !== "production" && t.queryFn === j && console.error(
161
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
162
+ ), !t.queryFn && e?.initialPromise ? () => e.initialPromise : !t.queryFn || t.queryFn === j ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
163
+ }
164
+ function xt(t, e) {
165
+ return typeof t == "function" ? t(...e) : !!t;
166
+ }
167
+ var Dt = class extends G {
168
+ #e;
169
+ #t;
170
+ #s;
171
+ constructor() {
172
+ super(), this.#s = (t) => {
173
+ if (!F && window.addEventListener) {
174
+ const e = () => t();
175
+ return window.addEventListener("visibilitychange", e, !1), () => {
176
+ window.removeEventListener("visibilitychange", e);
177
+ };
178
+ }
179
+ };
180
+ }
181
+ onSubscribe() {
182
+ this.#t || this.setEventListener(this.#s);
183
+ }
184
+ onUnsubscribe() {
185
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
186
+ }
187
+ setEventListener(t) {
188
+ this.#s = t, this.#t?.(), this.#t = t((e) => {
189
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
190
+ });
191
+ }
192
+ setFocused(t) {
193
+ this.#e !== t && (this.#e = t, this.onFocus());
194
+ }
195
+ onFocus() {
196
+ const t = this.isFocused();
197
+ this.listeners.forEach((e) => {
198
+ e(t);
199
+ });
200
+ }
201
+ isFocused() {
202
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
203
+ }
204
+ }, at = new Dt(), At = class extends G {
205
+ #e = !0;
206
+ #t;
207
+ #s;
208
+ constructor() {
209
+ super(), this.#s = (t) => {
210
+ if (!F && window.addEventListener) {
211
+ const e = () => t(!0), s = () => t(!1);
212
+ return window.addEventListener("online", e, !1), window.addEventListener("offline", s, !1), () => {
213
+ window.removeEventListener("online", e), window.removeEventListener("offline", s);
214
+ };
215
+ }
216
+ };
217
+ }
218
+ onSubscribe() {
219
+ this.#t || this.setEventListener(this.#s);
220
+ }
221
+ onUnsubscribe() {
222
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
223
+ }
224
+ setEventListener(t) {
225
+ this.#s = t, this.#t?.(), this.#t = t(this.setOnline.bind(this));
226
+ }
227
+ setOnline(t) {
228
+ this.#e !== t && (this.#e = t, this.listeners.forEach((s) => {
229
+ s(t);
230
+ }));
231
+ }
232
+ isOnline() {
233
+ return this.#e;
234
+ }
235
+ }, ot = new At();
236
+ function H() {
237
+ let t, e;
238
+ const s = new Promise((n, a) => {
239
+ t = n, e = a;
240
+ });
241
+ s.status = "pending", s.catch(() => {
242
+ });
243
+ function r(n) {
244
+ Object.assign(s, n), delete s.resolve, delete s.reject;
245
+ }
246
+ return s.resolve = (n) => {
247
+ r({
248
+ status: "fulfilled",
249
+ value: n
250
+ }), t(n);
251
+ }, s.reject = (n) => {
252
+ r({
253
+ status: "rejected",
254
+ reason: n
255
+ }), e(n);
256
+ }, s;
257
+ }
258
+ function Fe(t) {
259
+ let e;
260
+ if (t.then((s) => (e = s, s), I)?.catch(I), e !== void 0)
261
+ return { data: e };
262
+ }
263
+ function kt(t) {
264
+ return Math.min(1e3 * 2 ** t, 3e4);
265
+ }
266
+ function ut(t) {
267
+ return (t ?? "online") === "online" ? ot.isOnline() : !0;
268
+ }
269
+ var ct = class extends Error {
270
+ constructor(t) {
271
+ super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
272
+ }
273
+ };
274
+ function jt(t) {
275
+ let e = !1, s = 0, r;
276
+ const n = H(), a = () => n.status !== "pending", o = (c) => {
277
+ a() || (f(new ct(c)), t.abort?.());
278
+ }, i = () => {
279
+ e = !0;
280
+ }, u = () => {
281
+ e = !1;
282
+ }, l = () => at.isFocused() && (t.networkMode === "always" || ot.isOnline()) && t.canRun(), h = () => ut(t.networkMode) && t.canRun(), d = (c) => {
283
+ a() || (r?.(), n.resolve(c));
284
+ }, f = (c) => {
285
+ a() || (r?.(), n.reject(c));
286
+ }, m = () => new Promise((c) => {
287
+ r = (g) => {
288
+ (a() || l()) && c(g);
289
+ }, t.onPause?.();
290
+ }).then(() => {
291
+ r = void 0, a() || t.onContinue?.();
292
+ }), O = () => {
293
+ if (a())
294
+ return;
295
+ let c;
296
+ const g = s === 0 ? t.initialPromise : void 0;
297
+ try {
298
+ c = g ?? t.fn();
299
+ } catch (v) {
300
+ c = Promise.reject(v);
301
+ }
302
+ Promise.resolve(c).then(d).catch((v) => {
303
+ if (a())
304
+ return;
305
+ const p = t.retry ?? (F ? 0 : 3), y = t.retryDelay ?? kt, C = typeof y == "function" ? y(s, v) : y, P = p === !0 || typeof p == "number" && s < p || typeof p == "function" && p(s, v);
306
+ if (e || !P) {
307
+ f(v);
308
+ return;
309
+ }
310
+ s++, t.onFail?.(s, v), Pt(C).then(() => l() ? void 0 : m()).then(() => {
311
+ e ? f(v) : O();
312
+ });
313
+ });
314
+ };
315
+ return {
316
+ promise: n,
317
+ status: () => n.status,
318
+ cancel: o,
319
+ continue: () => (r?.(), n),
320
+ cancelRetry: i,
321
+ continueRetry: u,
322
+ canStart: h,
323
+ start: () => (h() ? O() : m().then(O), n)
324
+ };
325
+ }
326
+ var qt = (t) => setTimeout(t, 0);
327
+ function Qt() {
328
+ let t = [], e = 0, s = (i) => {
329
+ i();
330
+ }, r = (i) => {
331
+ i();
332
+ }, n = qt;
333
+ const a = (i) => {
334
+ e ? t.push(i) : n(() => {
335
+ s(i);
336
+ });
337
+ }, o = () => {
338
+ const i = t;
339
+ t = [], i.length && n(() => {
340
+ r(() => {
341
+ i.forEach((u) => {
342
+ s(u);
343
+ });
344
+ });
345
+ });
346
+ };
347
+ return {
348
+ batch: (i) => {
349
+ let u;
350
+ e++;
351
+ try {
352
+ u = i();
353
+ } finally {
354
+ e--, e || o();
355
+ }
356
+ return u;
357
+ },
358
+ /**
359
+ * All calls to the wrapped function will be batched.
360
+ */
361
+ batchCalls: (i) => (...u) => {
362
+ a(() => {
363
+ i(...u);
364
+ });
365
+ },
366
+ schedule: a,
367
+ /**
368
+ * Use this method to set a custom notify function.
369
+ * This can be used to for example wrap notifications with `React.act` while running tests.
370
+ */
371
+ setNotifyFunction: (i) => {
372
+ s = i;
373
+ },
374
+ /**
375
+ * Use this method to set a custom function to batch notifications together into a single tick.
376
+ * By default React Query will use the batch function provided by ReactDOM or React Native.
377
+ */
378
+ setBatchNotifyFunction: (i) => {
379
+ r = i;
380
+ },
381
+ setScheduler: (i) => {
382
+ n = i;
383
+ }
384
+ };
385
+ }
386
+ var $ = Qt(), Ut = class {
387
+ #e;
388
+ destroy() {
389
+ this.clearGcTimeout();
390
+ }
391
+ scheduleGc() {
392
+ this.clearGcTimeout(), Q(this.gcTime) && (this.#e = setTimeout(() => {
393
+ this.optionalRemove();
394
+ }, this.gcTime));
395
+ }
396
+ updateGcTime(t) {
397
+ this.gcTime = Math.max(
398
+ this.gcTime || 0,
399
+ t ?? (F ? 1 / 0 : 300 * 1e3)
400
+ );
401
+ }
402
+ clearGcTimeout() {
403
+ this.#e && (clearTimeout(this.#e), this.#e = void 0);
404
+ }
405
+ }, Ie = class extends Ut {
406
+ #e;
407
+ #t;
408
+ #s;
409
+ #n;
410
+ #r;
411
+ #o;
412
+ #a;
413
+ constructor(t) {
414
+ super(), this.#a = !1, this.#o = t.defaultOptions, this.setOptions(t.options), this.observers = [], this.#n = t.client, this.#s = this.#n.getQueryCache(), this.queryKey = t.queryKey, this.queryHash = t.queryHash, this.#e = Nt(this.options), this.state = t.state ?? this.#e, this.scheduleGc();
415
+ }
416
+ get meta() {
417
+ return this.options.meta;
418
+ }
419
+ get promise() {
420
+ return this.#r?.promise;
421
+ }
422
+ setOptions(t) {
423
+ this.options = { ...this.#o, ...t }, this.updateGcTime(this.options.gcTime);
424
+ }
425
+ optionalRemove() {
426
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
427
+ }
428
+ setData(t, e) {
429
+ const s = _(this.state.data, t, this.options);
430
+ return this.#i({
431
+ data: s,
432
+ type: "success",
433
+ dataUpdatedAt: e?.updatedAt,
434
+ manual: e?.manual
435
+ }), s;
436
+ }
437
+ setState(t, e) {
438
+ this.#i({ type: "setState", state: t, setStateOptions: e });
439
+ }
440
+ cancel(t) {
441
+ const e = this.#r?.promise;
442
+ return this.#r?.cancel(t), e ? e.then(I).catch(I) : Promise.resolve();
443
+ }
444
+ destroy() {
445
+ super.destroy(), this.cancel({ silent: !0 });
446
+ }
447
+ reset() {
448
+ this.destroy(), this.setState(this.#e);
449
+ }
450
+ isActive() {
451
+ return this.observers.some(
452
+ (t) => S(t.options.enabled, this) !== !1
453
+ );
454
+ }
455
+ isDisabled() {
456
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === j || this.state.dataUpdateCount + this.state.errorUpdateCount === 0;
457
+ }
458
+ isStatic() {
459
+ return this.getObserversCount() > 0 ? this.observers.some(
460
+ (t) => x(t.options.staleTime, this) === "static"
461
+ ) : !1;
462
+ }
463
+ isStale() {
464
+ return this.getObserversCount() > 0 ? this.observers.some(
465
+ (t) => t.getCurrentResult().isStale
466
+ ) : this.state.data === void 0 || this.state.isInvalidated;
467
+ }
468
+ isStaleByTime(t = 0) {
469
+ return this.state.data === void 0 ? !0 : t === "static" ? !1 : this.state.isInvalidated ? !0 : !it(this.state.dataUpdatedAt, t);
470
+ }
471
+ onFocus() {
472
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
473
+ }
474
+ onOnline() {
475
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#r?.continue();
476
+ }
477
+ addObserver(t) {
478
+ this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), this.#s.notify({ type: "observerAdded", query: this, observer: t }));
479
+ }
480
+ removeObserver(t) {
481
+ this.observers.includes(t) && (this.observers = this.observers.filter((e) => e !== t), this.observers.length || (this.#r && (this.#a ? this.#r.cancel({ revert: !0 }) : this.#r.cancelRetry()), this.scheduleGc()), this.#s.notify({ type: "observerRemoved", query: this, observer: t }));
482
+ }
483
+ getObserversCount() {
484
+ return this.observers.length;
485
+ }
486
+ invalidate() {
487
+ this.state.isInvalidated || this.#i({ type: "invalidate" });
488
+ }
489
+ async fetch(t, e) {
490
+ if (this.state.fetchStatus !== "idle" && // If the promise in the retyer is already rejected, we have to definitely
491
+ // re-start the fetch; there is a chance that the query is still in a
492
+ // pending state when that happens
493
+ this.#r?.status() !== "rejected") {
494
+ if (this.state.data !== void 0 && e?.cancelRefetch)
495
+ this.cancel({ silent: !0 });
496
+ else if (this.#r)
497
+ return this.#r.continueRetry(), this.#r.promise;
498
+ }
499
+ if (t && this.setOptions(t), !this.options.queryFn) {
500
+ const i = this.observers.find((u) => u.options.queryFn);
501
+ i && this.setOptions(i.options);
502
+ }
503
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
504
+ "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
505
+ ));
506
+ const s = new AbortController(), r = (i) => {
507
+ Object.defineProperty(i, "signal", {
508
+ enumerable: !0,
509
+ get: () => (this.#a = !0, s.signal)
510
+ });
511
+ }, n = () => {
512
+ const i = Tt(this.options, e), l = (() => {
513
+ const h = {
514
+ client: this.#n,
515
+ queryKey: this.queryKey,
516
+ meta: this.meta
517
+ };
518
+ return r(h), h;
519
+ })();
520
+ return this.#a = !1, this.options.persister ? this.options.persister(
521
+ i,
522
+ l,
523
+ this
524
+ ) : i(l);
525
+ }, o = (() => {
526
+ const i = {
527
+ fetchOptions: e,
528
+ options: this.options,
529
+ queryKey: this.queryKey,
530
+ client: this.#n,
531
+ state: this.state,
532
+ fetchFn: n
533
+ };
534
+ return r(i), i;
535
+ })();
536
+ this.options.behavior?.onFetch(o, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== o.fetchOptions?.meta) && this.#i({ type: "fetch", meta: o.fetchOptions?.meta }), this.#r = jt({
537
+ initialPromise: e?.initialPromise,
538
+ fn: o.fetchFn,
539
+ abort: s.abort.bind(s),
540
+ onFail: (i, u) => {
541
+ this.#i({ type: "failed", failureCount: i, error: u });
542
+ },
543
+ onPause: () => {
544
+ this.#i({ type: "pause" });
545
+ },
546
+ onContinue: () => {
547
+ this.#i({ type: "continue" });
548
+ },
549
+ retry: o.options.retry,
550
+ retryDelay: o.options.retryDelay,
551
+ networkMode: o.options.networkMode,
552
+ canRun: () => !0
553
+ });
554
+ try {
555
+ const i = await this.#r.start();
556
+ if (i === void 0)
557
+ throw process.env.NODE_ENV !== "production" && console.error(
558
+ `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
559
+ ), new Error(`${this.queryHash} data is undefined`);
560
+ return this.setData(i), this.#s.config.onSuccess?.(i, this), this.#s.config.onSettled?.(
561
+ i,
562
+ this.state.error,
563
+ this
564
+ ), i;
565
+ } catch (i) {
566
+ if (i instanceof ct) {
567
+ if (i.silent)
568
+ return this.#r.promise;
569
+ if (i.revert) {
570
+ if (this.setState({
571
+ ...this.#t,
572
+ fetchStatus: "idle"
573
+ }), this.state.data === void 0)
574
+ throw i;
575
+ return this.state.data;
576
+ }
577
+ }
578
+ throw this.#i({
579
+ type: "error",
580
+ error: i
581
+ }), this.#s.config.onError?.(
582
+ i,
583
+ this
584
+ ), this.#s.config.onSettled?.(
585
+ this.state.data,
586
+ i,
587
+ this
588
+ ), i;
589
+ } finally {
590
+ this.scheduleGc();
591
+ }
592
+ }
593
+ #i(t) {
594
+ const e = (s) => {
595
+ switch (t.type) {
596
+ case "failed":
597
+ return {
598
+ ...s,
599
+ fetchFailureCount: t.failureCount,
600
+ fetchFailureReason: t.error
601
+ };
602
+ case "pause":
603
+ return {
604
+ ...s,
605
+ fetchStatus: "paused"
606
+ };
607
+ case "continue":
608
+ return {
609
+ ...s,
610
+ fetchStatus: "fetching"
611
+ };
612
+ case "fetch":
613
+ return {
614
+ ...s,
615
+ ...ht(s.data, this.options),
616
+ fetchMeta: t.meta ?? null
617
+ };
618
+ case "success":
619
+ const r = {
620
+ ...s,
621
+ data: t.data,
622
+ dataUpdateCount: s.dataUpdateCount + 1,
623
+ dataUpdatedAt: t.dataUpdatedAt ?? Date.now(),
624
+ error: null,
625
+ isInvalidated: !1,
626
+ status: "success",
627
+ ...!t.manual && {
628
+ fetchStatus: "idle",
629
+ fetchFailureCount: 0,
630
+ fetchFailureReason: null
631
+ }
632
+ };
633
+ return this.#t = t.manual ? r : void 0, r;
634
+ case "error":
635
+ const n = t.error;
636
+ return {
637
+ ...s,
638
+ error: n,
639
+ errorUpdateCount: s.errorUpdateCount + 1,
640
+ errorUpdatedAt: Date.now(),
641
+ fetchFailureCount: s.fetchFailureCount + 1,
642
+ fetchFailureReason: n,
643
+ fetchStatus: "idle",
644
+ status: "error"
645
+ };
646
+ case "invalidate":
647
+ return {
648
+ ...s,
649
+ isInvalidated: !0
650
+ };
651
+ case "setState":
652
+ return {
653
+ ...s,
654
+ ...t.state
655
+ };
656
+ }
657
+ };
658
+ this.state = e(this.state), $.batch(() => {
659
+ this.observers.forEach((s) => {
660
+ s.onQueryUpdate();
661
+ }), this.#s.notify({ query: this, type: "updated", action: t });
662
+ });
663
+ }
664
+ };
665
+ function ht(t, e) {
666
+ return {
667
+ fetchFailureCount: 0,
668
+ fetchFailureReason: null,
669
+ fetchStatus: ut(e.networkMode) ? "fetching" : "paused",
670
+ ...t === void 0 && {
671
+ error: null,
672
+ status: "pending"
673
+ }
674
+ };
675
+ }
676
+ function Nt(t) {
677
+ const e = typeof t.initialData == "function" ? t.initialData() : t.initialData, s = e !== void 0, r = s ? typeof t.initialDataUpdatedAt == "function" ? t.initialDataUpdatedAt() : t.initialDataUpdatedAt : 0;
678
+ return {
679
+ data: e,
680
+ dataUpdateCount: 0,
681
+ dataUpdatedAt: s ? r ?? Date.now() : 0,
682
+ error: null,
683
+ errorUpdateCount: 0,
684
+ errorUpdatedAt: 0,
685
+ fetchFailureCount: 0,
686
+ fetchFailureReason: null,
687
+ fetchMeta: null,
688
+ isInvalidated: !1,
689
+ status: s ? "success" : "pending",
690
+ fetchStatus: "idle"
691
+ };
692
+ }
693
+ var lt = class extends G {
694
+ constructor(t, e) {
695
+ super(), this.options = e, this.#e = t, this.#i = null, this.#a = H(), this.bindMethods(), this.setOptions(e);
696
+ }
697
+ #e;
698
+ #t = void 0;
699
+ #s = void 0;
700
+ #n = void 0;
701
+ #r;
702
+ #o;
703
+ #a;
704
+ #i;
705
+ #y;
706
+ #f;
707
+ // This property keeps track of the last query with defined data.
708
+ // It will be used to pass the previous data and query to the placeholder function between renders.
709
+ #d;
710
+ #c;
711
+ #h;
712
+ #u;
713
+ #p = /* @__PURE__ */ new Set();
714
+ bindMethods() {
715
+ this.refetch = this.refetch.bind(this);
716
+ }
717
+ onSubscribe() {
718
+ this.listeners.size === 1 && (this.#t.addObserver(this), et(this.#t, this.options) ? this.#l() : this.updateResult(), this.#b());
719
+ }
720
+ onUnsubscribe() {
721
+ this.hasListeners() || this.destroy();
722
+ }
723
+ shouldFetchOnReconnect() {
724
+ return K(
725
+ this.#t,
726
+ this.options,
727
+ this.options.refetchOnReconnect
728
+ );
729
+ }
730
+ shouldFetchOnWindowFocus() {
731
+ return K(
732
+ this.#t,
733
+ this.options,
734
+ this.options.refetchOnWindowFocus
735
+ );
736
+ }
737
+ destroy() {
738
+ this.listeners = /* @__PURE__ */ new Set(), this.#S(), this.#w(), this.#t.removeObserver(this);
739
+ }
740
+ setOptions(t) {
741
+ const e = this.options, s = this.#t;
742
+ if (this.options = this.#e.defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof S(this.options.enabled, this.#t) != "boolean")
743
+ throw new Error(
744
+ "Expected enabled to be a boolean or a callback that returns a boolean"
745
+ );
746
+ this.#R(), this.#t.setOptions(this.options), e._defaulted && !L(this.options, e) && this.#e.getQueryCache().notify({
747
+ type: "observerOptionsUpdated",
748
+ query: this.#t,
749
+ observer: this
750
+ });
751
+ const r = this.hasListeners();
752
+ r && st(
753
+ this.#t,
754
+ s,
755
+ this.options,
756
+ e
757
+ ) && this.#l(), this.updateResult(), r && (this.#t !== s || S(this.options.enabled, this.#t) !== S(e.enabled, this.#t) || x(this.options.staleTime, this.#t) !== x(e.staleTime, this.#t)) && this.#v();
758
+ const n = this.#m();
759
+ r && (this.#t !== s || S(this.options.enabled, this.#t) !== S(e.enabled, this.#t) || n !== this.#u) && this.#g(n);
760
+ }
761
+ getOptimisticResult(t) {
762
+ const e = this.#e.getQueryCache().build(this.#e, t), s = this.createResult(e, t);
763
+ return Mt(this, s) && (this.#n = s, this.#o = this.options, this.#r = this.#t.state), s;
764
+ }
765
+ getCurrentResult() {
766
+ return this.#n;
767
+ }
768
+ trackResult(t, e) {
769
+ return new Proxy(t, {
770
+ get: (s, r) => (this.trackProp(r), e?.(r), r === "promise" && !this.options.experimental_prefetchInRender && this.#a.status === "pending" && this.#a.reject(
771
+ new Error(
772
+ "experimental_prefetchInRender feature flag is not enabled"
773
+ )
774
+ ), Reflect.get(s, r))
775
+ });
776
+ }
777
+ trackProp(t) {
778
+ this.#p.add(t);
779
+ }
780
+ getCurrentQuery() {
781
+ return this.#t;
782
+ }
783
+ refetch({ ...t } = {}) {
784
+ return this.fetch({
785
+ ...t
786
+ });
787
+ }
788
+ fetchOptimistic(t) {
789
+ const e = this.#e.defaultQueryOptions(t), s = this.#e.getQueryCache().build(this.#e, e);
790
+ return s.fetch().then(() => this.createResult(s, e));
791
+ }
792
+ fetch(t) {
793
+ return this.#l({
794
+ ...t,
795
+ cancelRefetch: t.cancelRefetch ?? !0
796
+ }).then(() => (this.updateResult(), this.#n));
797
+ }
798
+ #l(t) {
799
+ this.#R();
800
+ let e = this.#t.fetch(
801
+ this.options,
802
+ t
803
+ );
804
+ return t?.throwOnError || (e = e.catch(I)), e;
805
+ }
806
+ #v() {
807
+ this.#S();
808
+ const t = x(
809
+ this.options.staleTime,
810
+ this.#t
811
+ );
812
+ if (F || this.#n.isStale || !Q(t))
813
+ return;
814
+ const s = it(this.#n.dataUpdatedAt, t) + 1;
815
+ this.#c = setTimeout(() => {
816
+ this.#n.isStale || this.updateResult();
817
+ }, s);
818
+ }
819
+ #m() {
820
+ return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
821
+ }
822
+ #g(t) {
823
+ this.#w(), this.#u = t, !(F || S(this.options.enabled, this.#t) === !1 || !Q(this.#u) || this.#u === 0) && (this.#h = setInterval(() => {
824
+ (this.options.refetchIntervalInBackground || at.isFocused()) && this.#l();
825
+ }, this.#u));
826
+ }
827
+ #b() {
828
+ this.#v(), this.#g(this.#m());
829
+ }
830
+ #S() {
831
+ this.#c && (clearTimeout(this.#c), this.#c = void 0);
832
+ }
833
+ #w() {
834
+ this.#h && (clearInterval(this.#h), this.#h = void 0);
835
+ }
836
+ createResult(t, e) {
837
+ const s = this.#t, r = this.options, n = this.#n, a = this.#r, o = this.#o, u = t !== s ? t.state : this.#s, { state: l } = t;
838
+ let h = { ...l }, d = !1, f;
839
+ if (e._optimisticResults) {
840
+ const b = this.hasListeners(), D = !b && et(t, e), T = b && st(t, s, e, r);
841
+ (D || T) && (h = {
842
+ ...h,
843
+ ...ht(l.data, t.options)
844
+ }), e._optimisticResults === "isRestoring" && (h.fetchStatus = "idle");
845
+ }
846
+ let { error: m, errorUpdatedAt: O, status: c } = h;
847
+ f = h.data;
848
+ let g = !1;
849
+ if (e.placeholderData !== void 0 && f === void 0 && c === "pending") {
850
+ let b;
851
+ n?.isPlaceholderData && e.placeholderData === o?.placeholderData ? (b = n.data, g = !0) : b = typeof e.placeholderData == "function" ? e.placeholderData(
852
+ this.#d?.state.data,
853
+ this.#d
854
+ ) : e.placeholderData, b !== void 0 && (c = "success", f = _(
855
+ n?.data,
856
+ b,
857
+ e
858
+ ), d = !0);
859
+ }
860
+ if (e.select && f !== void 0 && !g)
861
+ if (n && f === a?.data && e.select === this.#y)
862
+ f = this.#f;
863
+ else
864
+ try {
865
+ this.#y = e.select, f = e.select(f), f = _(n?.data, f, e), this.#f = f, this.#i = null;
866
+ } catch (b) {
867
+ this.#i = b;
868
+ }
869
+ this.#i && (m = this.#i, f = this.#f, O = Date.now(), c = "error");
870
+ const v = h.fetchStatus === "fetching", p = c === "pending", y = c === "error", C = p && v, P = f !== void 0, R = {
871
+ status: c,
872
+ fetchStatus: h.fetchStatus,
873
+ isPending: p,
874
+ isSuccess: c === "success",
875
+ isError: y,
876
+ isInitialLoading: C,
877
+ isLoading: C,
878
+ data: f,
879
+ dataUpdatedAt: h.dataUpdatedAt,
880
+ error: m,
881
+ errorUpdatedAt: O,
882
+ failureCount: h.fetchFailureCount,
883
+ failureReason: h.fetchFailureReason,
884
+ errorUpdateCount: h.errorUpdateCount,
885
+ isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
886
+ isFetchedAfterMount: h.dataUpdateCount > u.dataUpdateCount || h.errorUpdateCount > u.errorUpdateCount,
887
+ isFetching: v,
888
+ isRefetching: v && !p,
889
+ isLoadingError: y && !P,
890
+ isPaused: h.fetchStatus === "paused",
891
+ isPlaceholderData: d,
892
+ isRefetchError: y && P,
893
+ isStale: J(t, e),
894
+ refetch: this.refetch,
895
+ promise: this.#a,
896
+ isEnabled: S(e.enabled, t) !== !1
897
+ };
898
+ if (this.options.experimental_prefetchInRender) {
899
+ const b = (A) => {
900
+ R.status === "error" ? A.reject(R.error) : R.data !== void 0 && A.resolve(R.data);
901
+ }, D = () => {
902
+ const A = this.#a = R.promise = H();
903
+ b(A);
904
+ }, T = this.#a;
905
+ switch (T.status) {
906
+ case "pending":
907
+ t.queryHash === s.queryHash && b(T);
908
+ break;
909
+ case "fulfilled":
910
+ (R.status === "error" || R.data !== T.value) && D();
911
+ break;
912
+ case "rejected":
913
+ (R.status !== "error" || R.error !== T.reason) && D();
914
+ break;
915
+ }
916
+ }
917
+ return R;
918
+ }
919
+ updateResult() {
920
+ const t = this.#n, e = this.createResult(this.#t, this.options);
921
+ if (this.#r = this.#t.state, this.#o = this.options, this.#r.data !== void 0 && (this.#d = this.#t), L(e, t))
922
+ return;
923
+ this.#n = e;
924
+ const s = () => {
925
+ if (!t)
926
+ return !0;
927
+ const { notifyOnChangeProps: r } = this.options, n = typeof r == "function" ? r() : r;
928
+ if (n === "all" || !n && !this.#p.size)
929
+ return !0;
930
+ const a = new Set(
931
+ n ?? this.#p
932
+ );
933
+ return this.options.throwOnError && a.add("error"), Object.keys(this.#n).some((o) => {
934
+ const i = o;
935
+ return this.#n[i] !== t[i] && a.has(i);
936
+ });
937
+ };
938
+ this.#O({ listeners: s() });
939
+ }
940
+ #R() {
941
+ const t = this.#e.getQueryCache().build(this.#e, this.options);
942
+ if (t === this.#t)
943
+ return;
944
+ const e = this.#t;
945
+ this.#t = t, this.#s = t.state, this.hasListeners() && (e?.removeObserver(this), t.addObserver(this));
946
+ }
947
+ onQueryUpdate() {
948
+ this.updateResult(), this.hasListeners() && this.#b();
949
+ }
950
+ #O(t) {
951
+ $.batch(() => {
952
+ t.listeners && this.listeners.forEach((e) => {
953
+ e(this.#n);
954
+ }), this.#e.getQueryCache().notify({
955
+ query: this.#t,
956
+ type: "observerResultsUpdated"
957
+ });
958
+ });
959
+ }
960
+ };
961
+ function Lt(t, e) {
962
+ return S(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
963
+ }
964
+ function et(t, e) {
965
+ return Lt(t, e) || t.state.data !== void 0 && K(t, e, e.refetchOnMount);
966
+ }
967
+ function K(t, e, s) {
968
+ if (S(e.enabled, t) !== !1 && x(e.staleTime, t) !== "static") {
969
+ const r = typeof s == "function" ? s(t) : s;
970
+ return r === "always" || r !== !1 && J(t, e);
971
+ }
972
+ return !1;
973
+ }
974
+ function st(t, e, s, r) {
975
+ return (t !== e || S(r.enabled, t) === !1) && (!s.suspense || t.state.status !== "error") && J(t, s);
976
+ }
977
+ function J(t, e) {
978
+ return S(e.enabled, t) !== !1 && t.isStaleByTime(x(e.staleTime, t));
979
+ }
980
+ function Mt(t, e) {
981
+ return !L(t.getCurrentResult(), e);
982
+ }
983
+ var ft = w.createContext(
984
+ void 0
985
+ ), dt = (t) => {
986
+ const e = w.useContext(ft);
987
+ if (t)
988
+ return t;
989
+ if (!e)
990
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
991
+ return e;
992
+ }, Pe = ({
993
+ client: t,
994
+ children: e
995
+ }) => (w.useEffect(() => (t.mount(), () => {
996
+ t.unmount();
997
+ }), [t]), /* @__PURE__ */ Et.jsx(ft.Provider, { value: t, children: e })), pt = w.createContext(!1), _t = () => w.useContext(pt);
998
+ pt.Provider;
999
+ function Ht() {
1000
+ let t = !1;
1001
+ return {
1002
+ clearReset: () => {
1003
+ t = !1;
1004
+ },
1005
+ reset: () => {
1006
+ t = !0;
1007
+ },
1008
+ isReset: () => t
1009
+ };
1010
+ }
1011
+ var Kt = w.createContext(Ht()), Bt = () => w.useContext(Kt), zt = (t, e) => {
1012
+ (t.suspense || t.throwOnError || t.experimental_prefetchInRender) && (e.isReset() || (t.retryOnMount = !1));
1013
+ }, Gt = (t) => {
1014
+ w.useEffect(() => {
1015
+ t.clearReset();
1016
+ }, [t]);
1017
+ }, Vt = ({
1018
+ result: t,
1019
+ errorResetBoundary: e,
1020
+ throwOnError: s,
1021
+ query: r,
1022
+ suspense: n
1023
+ }) => t.isError && !e.isReset() && !t.isFetching && r && (n && t.data === void 0 || xt(s, [t.error, r])), $t = (t, e) => e.state.data === void 0, Jt = (t) => {
1024
+ if (t.suspense) {
1025
+ const e = (r) => r === "static" ? r : Math.max(r ?? 1e3, 1e3), s = t.staleTime;
1026
+ t.staleTime = typeof s == "function" ? (...r) => e(s(...r)) : e(s), typeof t.gcTime == "number" && (t.gcTime = Math.max(t.gcTime, 1e3));
1027
+ }
1028
+ }, Zt = (t, e) => t.isLoading && t.isFetching && !e, Wt = (t, e) => t?.suspense && e.isPending, rt = (t, e, s) => e.fetchOptimistic(t).catch(() => {
1029
+ s.clearReset();
1030
+ });
1031
+ function yt(t, e, s) {
1032
+ if (process.env.NODE_ENV !== "production" && (typeof t != "object" || Array.isArray(t)))
1033
+ throw new Error(
1034
+ 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1035
+ );
1036
+ const r = _t(), n = Bt(), a = dt(s), o = a.defaultQueryOptions(t);
1037
+ a.getDefaultOptions().queries?._experimental_beforeQuery?.(
1038
+ o
1039
+ ), process.env.NODE_ENV !== "production" && (o.queryFn || console.error(
1040
+ `[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1041
+ )), o._optimisticResults = r ? "isRestoring" : "optimistic", Jt(o), zt(o, n), Gt(n);
1042
+ const i = !a.getQueryCache().get(o.queryHash), [u] = w.useState(
1043
+ () => new e(
1044
+ a,
1045
+ o
1046
+ )
1047
+ ), l = u.getOptimisticResult(o), h = !r && t.subscribed !== !1;
1048
+ if (w.useSyncExternalStore(
1049
+ w.useCallback(
1050
+ (d) => {
1051
+ const f = h ? u.subscribe($.batchCalls(d)) : I;
1052
+ return u.updateResult(), f;
1053
+ },
1054
+ [u, h]
1055
+ ),
1056
+ () => u.getCurrentResult(),
1057
+ () => u.getCurrentResult()
1058
+ ), w.useEffect(() => {
1059
+ u.setOptions(o);
1060
+ }, [o, u]), Wt(o, l))
1061
+ throw rt(o, u, n);
1062
+ if (Vt({
1063
+ result: l,
1064
+ errorResetBoundary: n,
1065
+ throwOnError: o.throwOnError,
1066
+ query: a.getQueryCache().get(o.queryHash),
1067
+ suspense: o.suspense
1068
+ }))
1069
+ throw l.error;
1070
+ return a.getDefaultOptions().queries?._experimental_afterQuery?.(
1071
+ o,
1072
+ l
1073
+ ), o.experimental_prefetchInRender && !F && Zt(l, r) && (i ? (
1074
+ // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1075
+ rt(o, u, n)
1076
+ ) : (
1077
+ // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1078
+ a.getQueryCache().get(o.queryHash)?.promise
1079
+ ))?.catch(I).finally(() => {
1080
+ u.updateResult();
1081
+ }), o.notifyOnChangeProps ? l : u.trackResult(l);
1082
+ }
1083
+ function Yt(t, e) {
1084
+ return yt(t, lt, e);
1085
+ }
1086
+ function Xt(t, e) {
1087
+ return process.env.NODE_ENV !== "production" && t.queryFn === j && console.error("skipToken is not allowed for useSuspenseQuery"), yt(
1088
+ {
1089
+ ...t,
1090
+ enabled: !0,
1091
+ suspense: !0,
1092
+ throwOnError: $t,
1093
+ placeholderData: void 0
1094
+ },
1095
+ lt,
1096
+ e
1097
+ );
1098
+ }
1099
+ const nt = (t) => {
1100
+ let e;
1101
+ const s = /* @__PURE__ */ new Set(), r = (l, h) => {
1102
+ const d = typeof l == "function" ? l(e) : l;
1103
+ if (!Object.is(d, e)) {
1104
+ const f = e;
1105
+ e = h ?? (typeof d != "object" || d === null) ? d : Object.assign({}, e, d), s.forEach((m) => m(e, f));
1106
+ }
1107
+ }, n = () => e, i = { setState: r, getState: n, getInitialState: () => u, subscribe: (l) => (s.add(l), () => s.delete(l)) }, u = e = t(r, n, i);
1108
+ return i;
1109
+ }, te = ((t) => t ? nt(t) : nt), ee = (t) => t;
1110
+ function se(t, e = ee) {
1111
+ const s = k.useSyncExternalStore(
1112
+ t.subscribe,
1113
+ k.useCallback(() => e(t.getState()), [t, e]),
1114
+ k.useCallback(() => e(t.getInitialState()), [t, e])
1115
+ );
1116
+ return k.useDebugValue(s), s;
1117
+ }
1118
+ const re = (t) => {
1119
+ const e = te(t), s = (r) => se(e, r);
1120
+ return Object.assign(s, e), s;
1121
+ }, ne = ((t) => re);
1122
+ function vt(t, e) {
1123
+ let s;
1124
+ try {
1125
+ s = t();
1126
+ } catch {
1127
+ return;
1128
+ }
1129
+ return {
1130
+ getItem: (n) => {
1131
+ var a;
1132
+ const o = (u) => u === null ? null : JSON.parse(u, void 0), i = (a = s.getItem(n)) != null ? a : null;
1133
+ return i instanceof Promise ? i.then(o) : o(i);
1134
+ },
1135
+ setItem: (n, a) => s.setItem(n, JSON.stringify(a, void 0)),
1136
+ removeItem: (n) => s.removeItem(n)
1137
+ };
1138
+ }
1139
+ const B = (t) => (e) => {
1140
+ try {
1141
+ const s = t(e);
1142
+ return s instanceof Promise ? s : {
1143
+ then(r) {
1144
+ return B(r)(s);
1145
+ },
1146
+ catch(r) {
1147
+ return this;
1148
+ }
1149
+ };
1150
+ } catch (s) {
1151
+ return {
1152
+ then(r) {
1153
+ return this;
1154
+ },
1155
+ catch(r) {
1156
+ return B(r)(s);
1157
+ }
1158
+ };
1159
+ }
1160
+ }, ie = (t, e) => (s, r, n) => {
1161
+ let a = {
1162
+ storage: vt(() => localStorage),
1163
+ partialize: (c) => c,
1164
+ version: 0,
1165
+ merge: (c, g) => ({
1166
+ ...g,
1167
+ ...c
1168
+ }),
1169
+ ...e
1170
+ }, o = !1;
1171
+ const i = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
1172
+ let l = a.storage;
1173
+ if (!l)
1174
+ return t(
1175
+ (...c) => {
1176
+ console.warn(
1177
+ `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`
1178
+ ), s(...c);
1179
+ },
1180
+ r,
1181
+ n
1182
+ );
1183
+ const h = () => {
1184
+ const c = a.partialize({ ...r() });
1185
+ return l.setItem(a.name, {
1186
+ state: c,
1187
+ version: a.version
1188
+ });
1189
+ }, d = n.setState;
1190
+ n.setState = (c, g) => (d(c, g), h());
1191
+ const f = t(
1192
+ (...c) => (s(...c), h()),
1193
+ r,
1194
+ n
1195
+ );
1196
+ n.getInitialState = () => f;
1197
+ let m;
1198
+ const O = () => {
1199
+ var c, g;
1200
+ if (!l) return;
1201
+ o = !1, i.forEach((p) => {
1202
+ var y;
1203
+ return p((y = r()) != null ? y : f);
1204
+ });
1205
+ const v = ((g = a.onRehydrateStorage) == null ? void 0 : g.call(a, (c = r()) != null ? c : f)) || void 0;
1206
+ return B(l.getItem.bind(l))(a.name).then((p) => {
1207
+ if (p)
1208
+ if (typeof p.version == "number" && p.version !== a.version) {
1209
+ if (a.migrate) {
1210
+ const y = a.migrate(
1211
+ p.state,
1212
+ p.version
1213
+ );
1214
+ return y instanceof Promise ? y.then((C) => [!0, C]) : [!0, y];
1215
+ }
1216
+ console.error(
1217
+ "State loaded from storage couldn't be migrated since no migrate function was provided"
1218
+ );
1219
+ } else
1220
+ return [!1, p.state];
1221
+ return [!1, void 0];
1222
+ }).then((p) => {
1223
+ var y;
1224
+ const [C, P] = p;
1225
+ if (m = a.merge(
1226
+ P,
1227
+ (y = r()) != null ? y : f
1228
+ ), s(m, !0), C)
1229
+ return h();
1230
+ }).then(() => {
1231
+ v?.(m, void 0), m = r(), o = !0, u.forEach((p) => p(m));
1232
+ }).catch((p) => {
1233
+ v?.(void 0, p);
1234
+ });
1235
+ };
1236
+ return n.persist = {
1237
+ setOptions: (c) => {
1238
+ a = {
1239
+ ...a,
1240
+ ...c
1241
+ }, c.storage && (l = c.storage);
1242
+ },
1243
+ clearStorage: () => {
1244
+ l?.removeItem(a.name);
1245
+ },
1246
+ getOptions: () => a,
1247
+ rehydrate: () => O(),
1248
+ hasHydrated: () => o,
1249
+ onHydrate: (c) => (i.add(c), () => {
1250
+ i.delete(c);
1251
+ }),
1252
+ onFinishHydration: (c) => (u.add(c), () => {
1253
+ u.delete(c);
1254
+ })
1255
+ }, a.skipHydration || O(), m || f;
1256
+ }, ae = ie, oe = (t) => {
1257
+ const e = (s) => {
1258
+ s.key === t.persist.getOptions().name && s.newValue && t.persist.rehydrate();
1259
+ };
1260
+ if (!(typeof window > "u"))
1261
+ return window.addEventListener("storage", e), () => {
1262
+ window.removeEventListener("storage", e);
1263
+ };
1264
+ }, mt = ne()(
1265
+ ae(
1266
+ (t) => ({
1267
+ isAuthenticated: !1,
1268
+ isPending: !0,
1269
+ profile: null,
1270
+ providerData: null,
1271
+ setAuthenticationPending: () => t(() => ({
1272
+ isAuthenticated: !1,
1273
+ isPending: !1,
1274
+ profile: null,
1275
+ providerData: null
1276
+ })),
1277
+ setLoggedOut: () => t(() => ({
1278
+ isAuthenticated: !1,
1279
+ isPending: !1,
1280
+ profile: null,
1281
+ providerData: null
1282
+ })),
1283
+ setLoggedIn: ({
1284
+ profile: e,
1285
+ providerData: s
1286
+ }) => t(() => ({
1287
+ isAuthenticated: !0,
1288
+ isPending: !1,
1289
+ profile: e,
1290
+ providerData: s
1291
+ }))
1292
+ }),
1293
+ {
1294
+ merge: (t, e) => ({
1295
+ ...e,
1296
+ isPending: !1,
1297
+ ...typeof t == "object" ? t : {}
1298
+ }),
1299
+ name: "auth-state",
1300
+ storage: vt(() => localStorage)
1301
+ }
1302
+ )
1303
+ );
1304
+ oe(mt);
1305
+ const ue = /^(\w+:\/\/[^/?]+)?([^?]*)(\?.*)?$/, ce = (t) => t.filter(
1306
+ (e) => e != null && e !== !1 && (typeof e == "string" || typeof e == "number")
1307
+ ).map((e) => `${e}`).filter((e) => e), he = (t) => {
1308
+ const e = t.join("/"), [, s = "", r = ""] = e.match(ue) ?? [];
1309
+ return {
1310
+ prefix: s,
1311
+ pathname: r.split("/").filter((n) => n !== "")
1312
+ };
1313
+ }, le = (t) => {
1314
+ const { prefix: e, pathname: s } = t;
1315
+ let r = e;
1316
+ return s.length > 0 ? (r ? r += "/" : r = "/", r += s.join("/")) : r || (r = "/"), r;
1317
+ }, E = (...t) => {
1318
+ const e = ce(t), s = he(e);
1319
+ return le(s);
1320
+ }, gt = Object.freeze({
1321
+ API_IDENTITIES: ["api-identities"]
1322
+ }), fe = () => {
1323
+ const t = dt();
1324
+ return { invalidateCache: wt(
1325
+ (s) => t.invalidateQueries({ queryKey: gt[s] }),
1326
+ [t]
1327
+ ) };
1328
+ }, Te = "no-dehydrate", Z = (t, e) => {
1329
+ for (const s of t) {
1330
+ const r = W(s, e);
1331
+ if (r !== void 0) return r;
1332
+ }
1333
+ }, W = (t, e, s = []) => {
1334
+ const r = e(t, s);
1335
+ if (r !== void 0) return r;
1336
+ if (t.type === "category")
1337
+ for (const n of t.items) {
1338
+ const a = W(n, e, [
1339
+ ...s,
1340
+ t
1341
+ ]);
1342
+ if (a !== void 0) return a;
1343
+ }
1344
+ }, xe = () => {
1345
+ const t = q(), { navigation: e } = St();
1346
+ return Z(e, (s) => {
1347
+ if (s.type === "doc" && E(s.path) === t.pathname)
1348
+ return s;
1349
+ });
1350
+ }, De = (t) => {
1351
+ const e = q();
1352
+ return W(t, (s) => {
1353
+ switch (s.type) {
1354
+ case "category":
1355
+ return s.link && E(s.link.path) === e.pathname ? !0 : void 0;
1356
+ case "custom-page":
1357
+ case "doc":
1358
+ return E(s.path) === e.pathname ? !0 : void 0;
1359
+ default:
1360
+ return;
1361
+ }
1362
+ });
1363
+ }, Ae = () => {
1364
+ const t = q().pathname, { navigation: e } = St();
1365
+ let s, r, n = !1;
1366
+ return Z(e, (a) => {
1367
+ const o = a.type === "doc" ? E(a.path) : a.type === "category" && a.link ? E(a.link.path) : void 0;
1368
+ if (o) {
1369
+ if (n)
1370
+ return r = { label: a.label, id: o }, !0;
1371
+ t === o ? n = !0 : s = { label: a.label, id: o };
1372
+ }
1373
+ }), { prev: s, next: r };
1374
+ }, ke = Ft(
1375
+ "relative flex items-center gap-2 px-(--padding-nav-item) my-0.5 py-1.5 rounded-lg hover:bg-accent tabular-nums",
1376
+ {
1377
+ variants: {
1378
+ isActive: {
1379
+ true: "bg-accent font-medium",
1380
+ false: "text-foreground/80"
1381
+ },
1382
+ isMuted: {
1383
+ true: "text-foreground/30",
1384
+ false: ""
1385
+ },
1386
+ isPending: {
1387
+ true: "bg-accent animate-pulse",
1388
+ false: ""
1389
+ }
1390
+ },
1391
+ defaultVariants: {
1392
+ isActive: !1
1393
+ }
1394
+ }
1395
+ ), je = (t, e) => (s) => typeof s.display == "function" ? s.display({ context: e, auth: t }) : s.display === "hide" || !s.label ? !1 : s.display === "auth" && t.isAuthenticated || s.display === "anon" && !t.isAuthenticated || !s.display || s.display === "always", de = Rt(
1396
+ void 0
1397
+ ), bt = () => {
1398
+ const t = Ot(de);
1399
+ if (!t)
1400
+ throw new Error("useZudoku must be used within a ZudokuProvider.");
1401
+ return t;
1402
+ }, qe = () => {
1403
+ const { getApiIdentities: t } = bt(), { isAuthenticated: e } = mt(), { invalidateCache: s } = fe();
1404
+ return Ct(() => {
1405
+ e || s("API_IDENTITIES");
1406
+ }, [e, s]), Yt({
1407
+ queryFn: t,
1408
+ queryKey: gt.API_IDENTITIES
1409
+ });
1410
+ }, z = (t) => {
1411
+ switch (t.type) {
1412
+ case "doc":
1413
+ return E(t.path);
1414
+ case "category":
1415
+ return t.link ? E(t.link.path) : void 0;
1416
+ case "link":
1417
+ return t.to;
1418
+ case "custom-page":
1419
+ return E(t.path);
1420
+ default:
1421
+ return;
1422
+ }
1423
+ }, pe = (t) => {
1424
+ const e = /* @__PURE__ */ new Set(), s = (r) => {
1425
+ for (const n of r) {
1426
+ const a = z(n)?.split("?").at(0)?.split("#").at(0);
1427
+ a && e.add(a), n.type === "category" && s(n.items);
1428
+ }
1429
+ };
1430
+ return s(t), [...e];
1431
+ }, St = () => {
1432
+ const { getPluginNavigation: t, navigation: e } = bt(), s = q(), r = Z(e, (o, i) => {
1433
+ if (z(o) === s.pathname)
1434
+ return i.at(0) ?? o;
1435
+ }), { data: n } = Xt({
1436
+ queryFn: () => t(s.pathname),
1437
+ queryKey: ["plugin-navigation", s.pathname]
1438
+ });
1439
+ let a = r;
1440
+ if (!r && n.length > 0) {
1441
+ const o = pe(n);
1442
+ a = e.flatMap((i) => {
1443
+ const u = z(i);
1444
+ return u ? [{ item: i, path: u }] : [];
1445
+ }).sort((i, u) => u.path.length - i.path.length).find(({ path: i }) => o.some(
1446
+ (u) => Y({ path: i, end: !1 }, u) ?? Y({ path: u, end: !1 }, i)
1447
+ ))?.item;
1448
+ }
1449
+ return {
1450
+ navigation: [
1451
+ ...r?.type === "category" ? r.items : [],
1452
+ ...n
1453
+ ],
1454
+ topNavItem: a
1455
+ };
1456
+ };
1457
+ export {
1458
+ at as A,
1459
+ ot as B,
1460
+ gt as C,
1461
+ x as D,
1462
+ Se as E,
1463
+ V as F,
1464
+ j as G,
1465
+ Fe as H,
1466
+ Pe as I,
1467
+ ne as J,
1468
+ ae as K,
1469
+ vt as L,
1470
+ oe as M,
1471
+ Te as N,
1472
+ qe as O,
1473
+ De as P,
1474
+ Ie as Q,
1475
+ Ut as R,
1476
+ G as S,
1477
+ ke as T,
1478
+ te as U,
1479
+ se as V,
1480
+ de as Z,
1481
+ bt as a,
1482
+ Xt as b,
1483
+ jt as c,
1484
+ fe as d,
1485
+ xe as e,
1486
+ Ae as f,
1487
+ dt as g,
1488
+ U as h,
1489
+ I as i,
1490
+ E as j,
1491
+ xt as k,
1492
+ Yt as l,
1493
+ Oe as m,
1494
+ $ as n,
1495
+ je as o,
1496
+ St as p,
1497
+ W as q,
1498
+ It as r,
1499
+ L as s,
1500
+ Z as t,
1501
+ mt as u,
1502
+ we as v,
1503
+ Re as w,
1504
+ Tt as x,
1505
+ Ee as y,
1506
+ Ce as z
1507
+ };
1508
+ //# sourceMappingURL=ZudokuContext-BUZ5hkWB.js.map