zudoku 0.0.0-fed343e → 0.0.0-ff27e7ea

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 (2353) hide show
  1. package/README.md +141 -0
  2. package/cli.js +12 -2
  3. package/client.d.ts +7 -0
  4. package/dist/app/ZuploBuildConfig.d.ts +45 -0
  5. package/dist/app/ZuploBuildConfig.js +29 -0
  6. package/dist/app/ZuploBuildConfig.js.map +1 -0
  7. package/dist/app/demo.js +23 -10
  8. package/dist/app/demo.js.map +1 -1
  9. package/dist/app/entry.client.d.ts +6 -2
  10. package/dist/app/entry.client.js +56 -7
  11. package/dist/app/entry.client.js.map +1 -1
  12. package/dist/app/entry.server.d.ts +9 -8
  13. package/dist/app/entry.server.js +36 -18
  14. package/dist/app/entry.server.js.map +1 -1
  15. package/dist/app/env.d.ts +33 -0
  16. package/dist/app/env.js +37 -0
  17. package/dist/app/env.js.map +1 -0
  18. package/dist/app/main.d.ts +94 -2
  19. package/dist/app/main.js +64 -70
  20. package/dist/app/main.js.map +1 -1
  21. package/dist/app/sentry.d.ts +3 -0
  22. package/dist/app/sentry.js +19 -0
  23. package/dist/app/sentry.js.map +1 -0
  24. package/dist/app/standalone.js +12 -11
  25. package/dist/app/standalone.js.map +1 -1
  26. package/dist/cli/build/handler.d.ts +1 -3
  27. package/dist/cli/build/handler.js +18 -2
  28. package/dist/cli/build/handler.js.map +1 -1
  29. package/dist/cli/cli.d.ts +9 -0
  30. package/dist/cli/cli.js +23 -15
  31. package/dist/cli/cli.js.map +1 -1
  32. package/dist/cli/cmds/build.d.ts +11 -3
  33. package/dist/cli/cmds/build.js +21 -13
  34. package/dist/cli/cmds/build.js.map +1 -1
  35. package/dist/cli/cmds/dev.d.ts +1 -1
  36. package/dist/cli/cmds/dev.js +5 -0
  37. package/dist/cli/cmds/dev.js.map +1 -1
  38. package/dist/cli/cmds/preview.d.ts +16 -0
  39. package/dist/cli/cmds/preview.js +25 -0
  40. package/dist/cli/cmds/preview.js.map +1 -0
  41. package/dist/cli/common/analytics/lib.js +1 -1
  42. package/dist/cli/common/analytics/lib.js.map +1 -1
  43. package/dist/cli/common/logger.js +8 -0
  44. package/dist/cli/common/logger.js.map +1 -1
  45. package/dist/cli/common/machine-id/lib.js +3 -1
  46. package/dist/cli/common/machine-id/lib.js.map +1 -1
  47. package/dist/cli/common/outdated.js +4 -2
  48. package/dist/cli/common/outdated.js.map +1 -1
  49. package/dist/cli/common/output.js +2 -3
  50. package/dist/cli/common/output.js.map +1 -1
  51. package/dist/cli/common/utils/box.js +2 -2
  52. package/dist/cli/common/utils/box.js.map +1 -1
  53. package/dist/cli/common/utils/ports.d.ts +1 -1
  54. package/dist/cli/common/utils/ports.js +16 -15
  55. package/dist/cli/common/utils/ports.js.map +1 -1
  56. package/dist/cli/common/validators/lib.js +1 -1
  57. package/dist/cli/common/validators/lib.js.map +1 -1
  58. package/dist/cli/common/version-check.d.ts +2 -0
  59. package/dist/cli/common/version-check.js +58 -0
  60. package/dist/cli/common/version-check.js.map +1 -0
  61. package/dist/cli/dev/handler.d.ts +1 -0
  62. package/dist/cli/dev/handler.js +15 -16
  63. package/dist/cli/dev/handler.js.map +1 -1
  64. package/dist/cli/preview/handler.d.ts +3 -0
  65. package/dist/cli/preview/handler.js +35 -0
  66. package/dist/cli/preview/handler.js.map +1 -0
  67. package/dist/codegen.d.ts +3 -0
  68. package/dist/codegen.js +45 -0
  69. package/dist/codegen.js.map +1 -0
  70. package/dist/config/config.d.ts +21 -35
  71. package/dist/config/file-exists.d.ts +1 -0
  72. package/dist/config/file-exists.js +5 -0
  73. package/dist/config/file-exists.js.map +1 -0
  74. package/dist/config/loader.d.ts +21 -0
  75. package/dist/config/loader.js +141 -0
  76. package/dist/config/loader.js.map +1 -0
  77. package/dist/config/validators/BuildSchema.d.ts +44 -0
  78. package/dist/config/validators/BuildSchema.js +42 -0
  79. package/dist/config/validators/BuildSchema.js.map +1 -0
  80. package/dist/config/validators/InputNavigationSchema.d.ts +7646 -0
  81. package/dist/config/validators/InputNavigationSchema.js +78 -0
  82. package/dist/config/validators/InputNavigationSchema.js.map +1 -0
  83. package/dist/config/validators/InputNavigationSchema.test-d.js +146 -0
  84. package/dist/config/validators/InputNavigationSchema.test-d.js.map +1 -0
  85. package/dist/config/validators/NavigationSchema.d.ts +44 -0
  86. package/dist/config/validators/NavigationSchema.js +98 -0
  87. package/dist/config/validators/NavigationSchema.js.map +1 -0
  88. package/dist/config/validators/ProtectedRoutesSchema.d.ts +13 -0
  89. package/dist/config/validators/ProtectedRoutesSchema.js +10 -0
  90. package/dist/config/validators/ProtectedRoutesSchema.js.map +1 -0
  91. package/dist/config/validators/auth.d.ts +2 -2
  92. package/dist/config/validators/auth.js +1 -1
  93. package/dist/config/validators/auth.js.map +1 -1
  94. package/dist/config/validators/icon-types.d.ts +2 -0
  95. package/dist/config/validators/icon-types.js +1873 -0
  96. package/dist/config/validators/icon-types.js.map +1 -0
  97. package/dist/config/validators/validate.d.ts +864 -1311
  98. package/dist/config/validators/validate.js +418 -131
  99. package/dist/config/validators/validate.js.map +1 -1
  100. package/dist/config/validators/validate.test.js +183 -0
  101. package/dist/config/validators/validate.test.js.map +1 -0
  102. package/dist/flat-config.d.ts +379 -0
  103. package/dist/index.d.ts +11 -2
  104. package/dist/index.js +6 -1
  105. package/dist/index.js.map +1 -1
  106. package/dist/lib/MissingIcon.d.ts +2 -0
  107. package/dist/lib/MissingIcon.js +7 -0
  108. package/dist/lib/MissingIcon.js.map +1 -0
  109. package/dist/lib/assets/language-icons/c.d.ts +3 -0
  110. package/dist/lib/assets/language-icons/c.js +4 -0
  111. package/dist/lib/assets/language-icons/c.js.map +1 -0
  112. package/dist/lib/assets/language-icons/commonlisp.d.ts +3 -0
  113. package/dist/lib/assets/language-icons/commonlisp.js +4 -0
  114. package/dist/lib/assets/language-icons/commonlisp.js.map +1 -0
  115. package/dist/lib/assets/language-icons/cpp.d.ts +3 -0
  116. package/dist/lib/assets/language-icons/cpp.js +4 -0
  117. package/dist/lib/assets/language-icons/cpp.js.map +1 -0
  118. package/dist/lib/assets/language-icons/csharp.d.ts +3 -0
  119. package/dist/lib/assets/language-icons/csharp.js +4 -0
  120. package/dist/lib/assets/language-icons/csharp.js.map +1 -0
  121. package/dist/lib/assets/language-icons/css.d.ts +3 -0
  122. package/dist/lib/assets/language-icons/css.js +4 -0
  123. package/dist/lib/assets/language-icons/css.js.map +1 -0
  124. package/dist/lib/assets/language-icons/dart.d.ts +3 -0
  125. package/dist/lib/assets/language-icons/dart.js +4 -0
  126. package/dist/lib/assets/language-icons/dart.js.map +1 -0
  127. package/dist/lib/assets/language-icons/elixir.d.ts +3 -0
  128. package/dist/lib/assets/language-icons/elixir.js +4 -0
  129. package/dist/lib/assets/language-icons/elixir.js.map +1 -0
  130. package/dist/lib/assets/language-icons/go.d.ts +3 -0
  131. package/dist/lib/assets/language-icons/go.js +4 -0
  132. package/dist/lib/assets/language-icons/go.js.map +1 -0
  133. package/dist/lib/assets/language-icons/graphql.d.ts +3 -0
  134. package/dist/lib/assets/language-icons/graphql.js +4 -0
  135. package/dist/lib/assets/language-icons/graphql.js.map +1 -0
  136. package/dist/lib/assets/language-icons/html.d.ts +3 -0
  137. package/dist/lib/assets/language-icons/html.js +4 -0
  138. package/dist/lib/assets/language-icons/html.js.map +1 -0
  139. package/dist/lib/assets/language-icons/java.d.ts +3 -0
  140. package/dist/lib/assets/language-icons/java.js +4 -0
  141. package/dist/lib/assets/language-icons/java.js.map +1 -0
  142. package/dist/lib/assets/language-icons/javascript.d.ts +3 -0
  143. package/dist/lib/assets/language-icons/javascript.js +4 -0
  144. package/dist/lib/assets/language-icons/javascript.js.map +1 -0
  145. package/dist/lib/assets/language-icons/json.d.ts +3 -0
  146. package/dist/lib/assets/language-icons/json.js +4 -0
  147. package/dist/lib/assets/language-icons/json.js.map +1 -0
  148. package/dist/lib/assets/language-icons/kotlin.d.ts +3 -0
  149. package/dist/lib/assets/language-icons/kotlin.js +4 -0
  150. package/dist/lib/assets/language-icons/kotlin.js.map +1 -0
  151. package/dist/lib/assets/language-icons/markdown.d.ts +3 -0
  152. package/dist/lib/assets/language-icons/markdown.js +4 -0
  153. package/dist/lib/assets/language-icons/markdown.js.map +1 -0
  154. package/dist/lib/assets/language-icons/mdx.d.ts +3 -0
  155. package/dist/lib/assets/language-icons/mdx.js +4 -0
  156. package/dist/lib/assets/language-icons/mdx.js.map +1 -0
  157. package/dist/lib/assets/language-icons/objectivec.d.ts +3 -0
  158. package/dist/lib/assets/language-icons/objectivec.js +4 -0
  159. package/dist/lib/assets/language-icons/objectivec.js.map +1 -0
  160. package/dist/lib/assets/language-icons/ocaml.d.ts +3 -0
  161. package/dist/lib/assets/language-icons/ocaml.js +4 -0
  162. package/dist/lib/assets/language-icons/ocaml.js.map +1 -0
  163. package/dist/lib/assets/language-icons/php.d.ts +3 -0
  164. package/dist/lib/assets/language-icons/php.js +4 -0
  165. package/dist/lib/assets/language-icons/php.js.map +1 -0
  166. package/dist/lib/assets/language-icons/powershell.d.ts +3 -0
  167. package/dist/lib/assets/language-icons/powershell.js +4 -0
  168. package/dist/lib/assets/language-icons/powershell.js.map +1 -0
  169. package/dist/lib/assets/language-icons/python.d.ts +3 -0
  170. package/dist/lib/assets/language-icons/python.js +4 -0
  171. package/dist/lib/assets/language-icons/python.js.map +1 -0
  172. package/dist/lib/assets/language-icons/react.d.ts +3 -0
  173. package/dist/lib/assets/language-icons/react.js +4 -0
  174. package/dist/lib/assets/language-icons/react.js.map +1 -0
  175. package/dist/lib/assets/language-icons/ruby.d.ts +3 -0
  176. package/dist/lib/assets/language-icons/ruby.js +4 -0
  177. package/dist/lib/assets/language-icons/ruby.js.map +1 -0
  178. package/dist/lib/assets/language-icons/rust.d.ts +3 -0
  179. package/dist/lib/assets/language-icons/rust.js +4 -0
  180. package/dist/lib/assets/language-icons/rust.js.map +1 -0
  181. package/dist/lib/assets/language-icons/scala.d.ts +3 -0
  182. package/dist/lib/assets/language-icons/scala.js +4 -0
  183. package/dist/lib/assets/language-icons/scala.js.map +1 -0
  184. package/dist/lib/assets/language-icons/shell.d.ts +3 -0
  185. package/dist/lib/assets/language-icons/shell.js +4 -0
  186. package/dist/lib/assets/language-icons/shell.js.map +1 -0
  187. package/dist/lib/assets/language-icons/swift.d.ts +3 -0
  188. package/dist/lib/assets/language-icons/swift.js +4 -0
  189. package/dist/lib/assets/language-icons/swift.js.map +1 -0
  190. package/dist/lib/assets/language-icons/toml.d.ts +3 -0
  191. package/dist/lib/assets/language-icons/toml.js +4 -0
  192. package/dist/lib/assets/language-icons/toml.js.map +1 -0
  193. package/dist/lib/assets/language-icons/typescript.d.ts +3 -0
  194. package/dist/lib/assets/language-icons/typescript.js +4 -0
  195. package/dist/lib/assets/language-icons/typescript.js.map +1 -0
  196. package/dist/lib/assets/language-icons/xml.d.ts +3 -0
  197. package/dist/lib/assets/language-icons/xml.js +4 -0
  198. package/dist/lib/assets/language-icons/xml.js.map +1 -0
  199. package/dist/lib/assets/language-icons/yaml.d.ts +3 -0
  200. package/dist/lib/assets/language-icons/yaml.js +4 -0
  201. package/dist/lib/assets/language-icons/yaml.js.map +1 -0
  202. package/dist/lib/assets/language-icons/zig.d.ts +3 -0
  203. package/dist/lib/assets/language-icons/zig.js +4 -0
  204. package/dist/lib/assets/language-icons/zig.js.map +1 -0
  205. package/dist/lib/auth/issuer.d.ts +2 -0
  206. package/dist/lib/auth/issuer.js +40 -0
  207. package/dist/lib/auth/issuer.js.map +1 -0
  208. package/dist/lib/auth/issuer.test.js +95 -0
  209. package/dist/lib/auth/issuer.test.js.map +1 -0
  210. package/dist/lib/authentication/AuthenticationPlugin.d.ts +6 -4
  211. package/dist/lib/authentication/AuthenticationPlugin.js +4 -1
  212. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  213. package/dist/lib/authentication/authentication.d.ts +22 -15
  214. package/dist/lib/authentication/components/CallbackHandler.js +27 -31
  215. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  216. package/dist/lib/authentication/components/OAuthErrorPage.d.ts +3 -0
  217. package/dist/lib/authentication/components/OAuthErrorPage.js +99 -0
  218. package/dist/lib/authentication/components/OAuthErrorPage.js.map +1 -0
  219. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  220. package/dist/lib/authentication/components/SignIn.js +12 -7
  221. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  222. package/dist/lib/authentication/components/SignOut.js +6 -6
  223. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  224. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  225. package/dist/lib/authentication/components/SignUp.js +8 -5
  226. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  227. package/dist/lib/authentication/errors.d.ts +6 -12
  228. package/dist/lib/authentication/errors.js +2 -1
  229. package/dist/lib/authentication/errors.js.map +1 -1
  230. package/dist/lib/authentication/hook.d.ts +15 -5
  231. package/dist/lib/authentication/hook.js +19 -7
  232. package/dist/lib/authentication/hook.js.map +1 -1
  233. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  234. package/dist/lib/authentication/providers/auth0.js +25 -14
  235. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  236. package/dist/lib/authentication/providers/azureb2c.d.ts +28 -0
  237. package/dist/lib/authentication/providers/azureb2c.js +147 -0
  238. package/dist/lib/authentication/providers/azureb2c.js.map +1 -0
  239. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  240. package/dist/lib/authentication/providers/clerk.js +111 -49
  241. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  242. package/dist/lib/authentication/providers/firebase.d.ts +4 -0
  243. package/dist/lib/authentication/providers/firebase.js +215 -0
  244. package/dist/lib/authentication/providers/firebase.js.map +1 -0
  245. package/dist/lib/authentication/providers/openid.d.ts +29 -24
  246. package/dist/lib/authentication/providers/openid.js +115 -74
  247. package/dist/lib/authentication/providers/openid.js.map +1 -1
  248. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.d.ts +8 -0
  249. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js +39 -0
  250. package/dist/lib/authentication/providers/supabase/SupabaseAuthUI.js.map +1 -0
  251. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  252. package/dist/lib/authentication/providers/supabase.js +108 -0
  253. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  254. package/dist/lib/authentication/state.d.ts +22 -3
  255. package/dist/lib/authentication/state.js +35 -2
  256. package/dist/lib/authentication/state.js.map +1 -1
  257. package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +24 -0
  258. package/dist/lib/authentication/ui/ZudokuAuthUi.js +124 -0
  259. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -0
  260. package/dist/lib/authentication/ui/icons/Apple.d.ts +3 -0
  261. package/dist/lib/authentication/ui/icons/Apple.js +4 -0
  262. package/dist/lib/authentication/ui/icons/Apple.js.map +1 -0
  263. package/dist/lib/authentication/ui/icons/Facebook.d.ts +3 -0
  264. package/dist/lib/authentication/ui/icons/Facebook.js +4 -0
  265. package/dist/lib/authentication/ui/icons/Facebook.js.map +1 -0
  266. package/dist/lib/authentication/ui/icons/Github.d.ts +3 -0
  267. package/dist/lib/authentication/ui/icons/Github.js +4 -0
  268. package/dist/lib/authentication/ui/icons/Github.js.map +1 -0
  269. package/dist/lib/authentication/ui/icons/Google.d.ts +3 -0
  270. package/dist/lib/authentication/ui/icons/Google.js +4 -0
  271. package/dist/lib/authentication/ui/icons/Google.js.map +1 -0
  272. package/dist/lib/authentication/ui/icons/Microsoft.d.ts +3 -0
  273. package/dist/lib/authentication/ui/icons/Microsoft.js +4 -0
  274. package/dist/lib/authentication/ui/icons/Microsoft.js.map +1 -0
  275. package/dist/lib/authentication/ui/icons/X.d.ts +3 -0
  276. package/dist/lib/authentication/ui/icons/X.js +4 -0
  277. package/dist/lib/authentication/ui/icons/X.js.map +1 -0
  278. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  279. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  280. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  281. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  282. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  283. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  284. package/dist/lib/components/AnchorLink.d.ts +2 -2
  285. package/dist/lib/components/AnchorLink.js +9 -5
  286. package/dist/lib/components/AnchorLink.js.map +1 -1
  287. package/dist/lib/components/Autocomplete.d.ts +15 -0
  288. package/dist/lib/components/Autocomplete.js +51 -0
  289. package/dist/lib/components/Autocomplete.js.map +1 -0
  290. package/dist/lib/components/Banner.js +8 -2
  291. package/dist/lib/components/Banner.js.map +1 -1
  292. package/dist/lib/components/Bootstrap.d.ts +5 -3
  293. package/dist/lib/components/Bootstrap.js +13 -6
  294. package/dist/lib/components/Bootstrap.js.map +1 -1
  295. package/dist/lib/components/BuildCheck.d.ts +5 -0
  296. package/dist/lib/components/BuildCheck.js +45 -0
  297. package/dist/lib/components/BuildCheck.js.map +1 -0
  298. package/dist/lib/components/CategoryHeading.js +1 -1
  299. package/dist/lib/components/CategoryHeading.js.map +1 -1
  300. package/dist/lib/components/ClientOnly.d.ts +4 -2
  301. package/dist/lib/components/ClientOnly.js +1 -1
  302. package/dist/lib/components/ClientOnly.js.map +1 -1
  303. package/dist/lib/components/DeveloperHint.js +2 -1
  304. package/dist/lib/components/DeveloperHint.js.map +1 -1
  305. package/dist/lib/components/ErrorPage.js +2 -3
  306. package/dist/lib/components/ErrorPage.js.map +1 -1
  307. package/dist/lib/components/Footer.d.ts +1 -0
  308. package/dist/lib/components/Footer.js +32 -0
  309. package/dist/lib/components/Footer.js.map +1 -0
  310. package/dist/lib/components/Framed.d.ts +7 -0
  311. package/dist/lib/components/Framed.js +26 -0
  312. package/dist/lib/components/Framed.js.map +1 -0
  313. package/dist/lib/components/Header.js +32 -14
  314. package/dist/lib/components/Header.js.map +1 -1
  315. package/dist/lib/components/Heading.d.ts +10 -6
  316. package/dist/lib/components/Heading.js +4 -3
  317. package/dist/lib/components/Heading.js.map +1 -1
  318. package/dist/lib/components/InlineCode.d.ts +3 -1
  319. package/dist/lib/components/InlineCode.js +2 -1
  320. package/dist/lib/components/InlineCode.js.map +1 -1
  321. package/dist/lib/components/LanguageIcon.d.ts +3 -0
  322. package/dist/lib/components/LanguageIcon.js +163 -0
  323. package/dist/lib/components/LanguageIcon.js.map +1 -0
  324. package/dist/lib/components/Layout.js +11 -24
  325. package/dist/lib/components/Layout.js.map +1 -1
  326. package/dist/lib/components/Main.d.ts +2 -0
  327. package/dist/lib/components/Main.js +18 -0
  328. package/dist/lib/components/Main.js.map +1 -0
  329. package/dist/lib/components/Markdown.d.ts +4 -3
  330. package/dist/lib/components/Markdown.js +14 -14
  331. package/dist/lib/components/Markdown.js.map +1 -1
  332. package/dist/lib/components/Meta.d.ts +2 -0
  333. package/dist/lib/components/Meta.js +11 -0
  334. package/dist/lib/components/Meta.js.map +1 -0
  335. package/dist/lib/components/MobileTopNavigation.js +20 -7
  336. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  337. package/dist/lib/components/NotFoundPage.js +3 -3
  338. package/dist/lib/components/NotFoundPage.js.map +1 -1
  339. package/dist/lib/components/PageProgress.d.ts +1 -0
  340. package/dist/lib/components/PageProgress.js +20 -0
  341. package/dist/lib/components/PageProgress.js.map +1 -0
  342. package/dist/lib/components/Pagination.d.ts +11 -0
  343. package/dist/lib/components/Pagination.js +10 -0
  344. package/dist/lib/components/Pagination.js.map +1 -0
  345. package/dist/lib/components/PathRenderer.d.ts +11 -0
  346. package/dist/lib/components/PathRenderer.js +28 -0
  347. package/dist/lib/components/PathRenderer.js.map +1 -0
  348. package/dist/lib/components/Search.d.ts +3 -1
  349. package/dist/lib/components/Search.js +10 -4
  350. package/dist/lib/components/Search.js.map +1 -1
  351. package/dist/lib/components/Slot.d.ts +17 -0
  352. package/dist/lib/components/Slot.js +24 -0
  353. package/dist/lib/components/Slot.js.map +1 -0
  354. package/dist/lib/components/Slot.test.d.ts +1 -0
  355. package/dist/lib/components/Slot.test.js +172 -0
  356. package/dist/lib/components/Slot.test.js.map +1 -0
  357. package/dist/lib/components/StatusPage.d.ts +7 -0
  358. package/dist/lib/components/StatusPage.js +75 -0
  359. package/dist/lib/components/StatusPage.js.map +1 -0
  360. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  361. package/dist/lib/components/ThemeSwitch.js +16 -0
  362. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  363. package/dist/lib/components/TopNavigation.d.ts +7 -0
  364. package/dist/lib/components/TopNavigation.js +60 -9
  365. package/dist/lib/components/TopNavigation.js.map +1 -1
  366. package/dist/lib/components/Typography.d.ts +5 -0
  367. package/dist/lib/components/Typography.js +8 -0
  368. package/dist/lib/components/Typography.js.map +1 -0
  369. package/dist/lib/components/Zudoku.d.ts +7 -0
  370. package/dist/lib/components/Zudoku.js +58 -0
  371. package/dist/lib/components/Zudoku.js.map +1 -0
  372. package/dist/lib/components/cache.d.ts +15 -0
  373. package/dist/lib/components/cache.js +18 -0
  374. package/dist/lib/components/cache.js.map +1 -0
  375. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  376. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  377. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  378. package/dist/lib/components/context/ComponentsContext.js.map +1 -1
  379. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  380. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  381. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  382. package/dist/lib/components/context/SlotProvider.d.ts +26 -0
  383. package/dist/lib/components/context/SlotProvider.js +83 -0
  384. package/dist/lib/components/context/SlotProvider.js.map +1 -0
  385. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  386. package/dist/lib/components/context/ViewportAnchorContext.js +30 -24
  387. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  388. package/dist/lib/components/context/ZudokuContext.d.ts +9 -17
  389. package/dist/lib/components/context/ZudokuContext.js +74 -27
  390. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  391. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  392. package/dist/lib/components/context/ZudokuProvider.js +2 -1
  393. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  394. package/dist/lib/components/index.d.ts +65 -23
  395. package/dist/lib/components/index.js +31 -15
  396. package/dist/lib/components/index.js.map +1 -1
  397. package/dist/lib/components/navigation/Navigation.d.ts +5 -0
  398. package/dist/lib/components/navigation/Navigation.js +12 -0
  399. package/dist/lib/components/navigation/Navigation.js.map +1 -0
  400. package/dist/lib/components/navigation/NavigationBadge.d.ts +26 -0
  401. package/dist/lib/components/navigation/NavigationBadge.js +26 -0
  402. package/dist/lib/components/navigation/NavigationBadge.js.map +1 -0
  403. package/dist/lib/components/navigation/NavigationCategory.d.ts +5 -0
  404. package/dist/lib/components/navigation/NavigationCategory.js +66 -0
  405. package/dist/lib/components/navigation/NavigationCategory.js.map +1 -0
  406. package/dist/lib/components/navigation/NavigationItem.d.ts +6 -0
  407. package/dist/lib/components/navigation/NavigationItem.js +55 -0
  408. package/dist/lib/components/navigation/NavigationItem.js.map +1 -0
  409. package/dist/lib/components/navigation/NavigationWrapper.d.ts +7 -0
  410. package/dist/lib/components/navigation/NavigationWrapper.js +21 -0
  411. package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -0
  412. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  413. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  414. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  415. package/dist/lib/components/navigation/Toc.js +46 -0
  416. package/dist/lib/components/navigation/Toc.js.map +1 -0
  417. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  418. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  419. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  420. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  421. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  422. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  423. package/dist/lib/components/navigation/utils.d.ts +16 -8
  424. package/dist/lib/components/navigation/utils.js +60 -33
  425. package/dist/lib/components/navigation/utils.js.map +1 -1
  426. package/dist/lib/core/RouteGuard.d.ts +2 -0
  427. package/dist/lib/core/RouteGuard.js +44 -0
  428. package/dist/lib/core/RouteGuard.js.map +1 -0
  429. package/dist/lib/core/ZudokuContext.d.ts +116 -0
  430. package/dist/lib/core/ZudokuContext.js +106 -0
  431. package/dist/lib/core/ZudokuContext.js.map +1 -0
  432. package/dist/lib/core/__internal.d.ts +37 -0
  433. package/dist/lib/core/__internal.js +26 -0
  434. package/dist/lib/core/__internal.js.map +1 -0
  435. package/dist/lib/core/plugins.d.ts +37 -18
  436. package/dist/lib/core/plugins.js +4 -0
  437. package/dist/lib/core/plugins.js.map +1 -1
  438. package/dist/lib/core/router.d.ts +1 -0
  439. package/dist/lib/core/router.js +2 -0
  440. package/dist/lib/core/router.js.map +1 -0
  441. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  442. package/dist/lib/errors/ErrorAlert.js +12 -4
  443. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  444. package/dist/lib/errors/RouterError.d.ts +3 -1
  445. package/dist/lib/errors/RouterError.js +4 -3
  446. package/dist/lib/errors/RouterError.js.map +1 -1
  447. package/dist/lib/errors/TopLevelError.d.ts +2 -2
  448. package/dist/lib/errors/TopLevelError.js +1 -2
  449. package/dist/lib/errors/TopLevelError.js.map +1 -1
  450. package/dist/lib/hooks/index.d.ts +28 -0
  451. package/dist/lib/hooks/index.js +16 -0
  452. package/dist/lib/hooks/index.js.map +1 -0
  453. package/dist/lib/hooks/useEvent.d.ts +11 -0
  454. package/dist/lib/hooks/useEvent.js +19 -0
  455. package/dist/lib/hooks/useEvent.js.map +1 -0
  456. package/dist/lib/hooks/useEvent.test.d.ts +1 -0
  457. package/dist/lib/hooks/useEvent.test.js +102 -0
  458. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  459. package/dist/lib/hooks/useHotkey.d.ts +4 -0
  460. package/dist/lib/hooks/useHotkey.js +58 -0
  461. package/dist/lib/hooks/useHotkey.js.map +1 -0
  462. package/dist/lib/icons.d.ts +1 -0
  463. package/dist/lib/icons.js +1 -0
  464. package/dist/lib/icons.js.map +1 -1
  465. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  466. package/dist/lib/oas/graphql/circular.js +43 -0
  467. package/dist/lib/oas/graphql/circular.js.map +1 -0
  468. package/dist/lib/oas/graphql/index.d.ts +26 -1
  469. package/dist/lib/oas/graphql/index.js +266 -75
  470. package/dist/lib/oas/graphql/index.js.map +1 -1
  471. package/dist/lib/oas/parser/dereference/index.js +10 -4
  472. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  473. package/dist/lib/oas/parser/dereference/resolveRef.js +3 -3
  474. package/dist/lib/oas/parser/dereference/resolveRef.js.map +1 -1
  475. package/dist/lib/oas/parser/index.d.ts +9 -3
  476. package/dist/lib/oas/parser/index.js +12 -24
  477. package/dist/lib/oas/parser/index.js.map +1 -1
  478. package/dist/lib/oas/parser/upgrade/index.d.ts +3 -2
  479. package/dist/lib/oas/parser/upgrade/index.js +84 -31
  480. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  481. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  482. package/dist/lib/plugins/api-catalog/Catalog.js +32 -0
  483. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  484. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  485. package/dist/lib/plugins/api-catalog/index.js +46 -0
  486. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  487. package/dist/lib/plugins/api-keys/CreateApiKey.d.ts +3 -2
  488. package/dist/lib/plugins/api-keys/CreateApiKey.js +26 -8
  489. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  490. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.d.ts +11 -0
  491. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js +9 -0
  492. package/dist/lib/plugins/api-keys/CreateApiKeyDialog.js.map +1 -0
  493. package/dist/lib/plugins/api-keys/ProtectedRoute.js +5 -2
  494. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  495. package/dist/lib/plugins/api-keys/SettingsApiKeys.d.ts +1 -1
  496. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +146 -27
  497. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  498. package/dist/lib/plugins/api-keys/index.d.ts +33 -18
  499. package/dist/lib/plugins/api-keys/index.js +65 -31
  500. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  501. package/dist/lib/plugins/custom-pages/index.d.ts +8 -0
  502. package/dist/lib/plugins/custom-pages/index.js +19 -0
  503. package/dist/lib/plugins/custom-pages/index.js.map +1 -0
  504. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  505. package/dist/lib/plugins/markdown/MdxPage.js +68 -11
  506. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  507. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.d.ts +2 -0
  508. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js +3 -0
  509. package/dist/lib/plugins/markdown/assets/ChatGPTLogo.js.map +1 -0
  510. package/dist/lib/plugins/markdown/assets/ClaudeLogo.d.ts +2 -0
  511. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js +3 -0
  512. package/dist/lib/plugins/markdown/assets/ClaudeLogo.js.map +1 -0
  513. package/dist/lib/plugins/markdown/index.d.ts +19 -7
  514. package/dist/lib/plugins/markdown/index.js +14 -3
  515. package/dist/lib/plugins/markdown/index.js.map +1 -1
  516. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +6 -0
  517. package/dist/lib/plugins/openapi/CollapsibleCode.js +26 -0
  518. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  519. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  520. package/dist/lib/plugins/openapi/ColorizedParam.js +32 -14
  521. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  522. package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -3
  523. package/dist/lib/plugins/openapi/Endpoint.js +43 -8
  524. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  525. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.d.ts +5 -0
  526. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js +10 -0
  527. package/dist/lib/plugins/openapi/GeneratedExampleSidecarBox.js.map +1 -0
  528. package/dist/lib/plugins/openapi/MCPEndpoint.d.ts +5 -0
  529. package/dist/lib/plugins/openapi/MCPEndpoint.js +56 -0
  530. package/dist/lib/plugins/openapi/MCPEndpoint.js.map +1 -0
  531. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  532. package/dist/lib/plugins/openapi/OasProvider.js +30 -0
  533. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  534. package/dist/lib/plugins/openapi/OperationList.d.ts +5 -4
  535. package/dist/lib/plugins/openapi/OperationList.js +135 -31
  536. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  537. package/dist/lib/plugins/openapi/OperationListItem.d.ts +6 -3
  538. package/dist/lib/plugins/openapi/OperationListItem.js +22 -8
  539. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  540. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  541. package/dist/lib/plugins/openapi/ParamInfos.js +47 -0
  542. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  543. package/dist/lib/plugins/openapi/ParameterList.d.ts +4 -3
  544. package/dist/lib/plugins/openapi/ParameterList.js +10 -6
  545. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  546. package/dist/lib/plugins/openapi/ParameterListItem.d.ts +2 -3
  547. package/dist/lib/plugins/openapi/ParameterListItem.js +30 -1
  548. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  549. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +6 -4
  550. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +15 -4
  551. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  552. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +11 -5
  553. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +8 -9
  554. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  555. package/dist/lib/plugins/openapi/ResponsesSidecarBox.d.ts +5 -6
  556. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +27 -8
  557. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  558. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  559. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  560. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  561. package/dist/lib/plugins/openapi/Sidecar.d.ts +6 -5
  562. package/dist/lib/plugins/openapi/Sidecar.js +120 -114
  563. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  564. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  565. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  566. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +14 -0
  567. package/dist/lib/plugins/openapi/SidecarExamples.js +57 -0
  568. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  569. package/dist/lib/plugins/openapi/SimpleSelect.d.ts +2 -1
  570. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  571. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  572. package/dist/lib/plugins/openapi/StaggeredRender.d.ts +1 -1
  573. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  574. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  575. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  576. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  577. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  578. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  579. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  580. package/dist/lib/plugins/openapi/client/createServer.js +6 -4
  581. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  582. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +14 -0
  583. package/dist/lib/plugins/openapi/client/useCreateQuery.js +20 -0
  584. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  585. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  586. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  587. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  588. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  589. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  590. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  591. package/dist/lib/plugins/openapi/components/NonHighlightedCode.d.ts +4 -0
  592. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js +5 -0
  593. package/dist/lib/plugins/openapi/components/NonHighlightedCode.js.map +1 -0
  594. package/dist/lib/plugins/openapi/components/ResponseContent.d.ts +12 -0
  595. package/dist/lib/plugins/openapi/components/ResponseContent.js +20 -0
  596. package/dist/lib/plugins/openapi/components/ResponseContent.js.map +1 -0
  597. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  598. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  599. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  600. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  601. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  602. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  603. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  604. package/dist/lib/plugins/openapi/graphql/gql.d.ts +11 -41
  605. package/dist/lib/plugins/openapi/graphql/gql.js +8 -14
  606. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  607. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +179 -27
  608. package/dist/lib/plugins/openapi/graphql/graphql.js +250 -575
  609. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  610. package/dist/lib/plugins/openapi/index.d.ts +11 -8
  611. package/dist/lib/plugins/openapi/index.js +107 -109
  612. package/dist/lib/plugins/openapi/index.js.map +1 -1
  613. package/dist/lib/plugins/openapi/interfaces.d.ts +75 -4
  614. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  615. package/dist/lib/plugins/openapi/playground/BodyPanel.js +78 -0
  616. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  617. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.d.ts +8 -0
  618. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js +11 -0
  619. package/dist/lib/plugins/openapi/playground/CollapsibleHeader.js.map +1 -0
  620. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  621. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +9 -0
  622. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  623. package/dist/lib/plugins/openapi/playground/Headers.d.ts +5 -4
  624. package/dist/lib/plugins/openapi/playground/Headers.js +50 -9
  625. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  626. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  627. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +15 -0
  628. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  629. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  630. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +7 -0
  631. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  632. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +17 -0
  633. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +12 -0
  634. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  635. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  636. package/dist/lib/plugins/openapi/playground/PathParams.js +4 -8
  637. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  638. package/dist/lib/plugins/openapi/playground/Playground.d.ts +40 -2
  639. package/dist/lib/plugins/openapi/playground/Playground.js +211 -80
  640. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  641. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +6 -3
  642. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  643. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +4 -4
  644. package/dist/lib/plugins/openapi/playground/QueryParams.js +22 -25
  645. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  646. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +8 -0
  647. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +16 -0
  648. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  649. package/dist/lib/plugins/openapi/playground/Spinner.d.ts +2 -0
  650. package/dist/lib/plugins/openapi/playground/Spinner.js +63 -0
  651. package/dist/lib/plugins/openapi/playground/Spinner.js.map +1 -0
  652. package/dist/lib/plugins/openapi/playground/createUrl.js +3 -1
  653. package/dist/lib/plugins/openapi/playground/createUrl.js.map +1 -1
  654. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  655. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  656. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  657. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +19 -0
  658. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  659. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  660. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.d.ts +8 -0
  661. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js +19 -0
  662. package/dist/lib/plugins/openapi/playground/request-panel/MultipartField.js.map +1 -0
  663. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.d.ts +3 -0
  664. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js +13 -0
  665. package/dist/lib/plugins/openapi/playground/request-panel/UrlPath.js.map +1 -0
  666. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.d.ts +1 -0
  667. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js +12 -0
  668. package/dist/lib/plugins/openapi/playground/request-panel/UrlQueryParams.js.map +1 -0
  669. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.d.ts +1 -0
  670. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js +540 -0
  671. package/dist/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.js.map +1 -0
  672. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.d.ts +40 -0
  673. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js +205 -0
  674. package/dist/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.js.map +1 -0
  675. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.d.ts +12 -0
  676. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js +11 -0
  677. package/dist/lib/plugins/openapi/playground/result-panel/Highlight.js.map +1 -0
  678. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.d.ts +8 -0
  679. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js +71 -0
  680. package/dist/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.js.map +1 -0
  681. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +14 -0
  682. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +117 -0
  683. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  684. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +11 -0
  685. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +15 -0
  686. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  687. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  688. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  689. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  690. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
  691. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  692. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  693. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +18 -0
  694. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +12 -0
  695. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  696. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  697. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  698. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  699. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  700. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +195 -0
  701. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  702. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  703. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  704. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  705. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  706. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +160 -0
  707. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  708. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  709. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  710. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  711. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  712. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  713. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  714. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  715. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  716. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  717. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  718. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
  719. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  720. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +8 -0
  721. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  722. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  723. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +4 -3
  724. package/dist/lib/plugins/openapi/schema/SchemaView.js +50 -50
  725. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  726. package/dist/lib/plugins/openapi/schema/UnionView.d.ts +5 -0
  727. package/dist/lib/plugins/openapi/schema/UnionView.js +33 -0
  728. package/dist/lib/plugins/openapi/schema/UnionView.js.map +1 -0
  729. package/dist/lib/plugins/openapi/schema/union-helpers.d.ts +28 -0
  730. package/dist/lib/plugins/openapi/schema/union-helpers.js +71 -0
  731. package/dist/lib/plugins/openapi/schema/union-helpers.js.map +1 -0
  732. package/dist/lib/plugins/openapi/schema/utils.d.ts +7 -7
  733. package/dist/lib/plugins/openapi/schema/utils.js +16 -10
  734. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  735. package/dist/lib/plugins/openapi/state.d.ts +27 -0
  736. package/dist/lib/plugins/openapi/state.js +18 -0
  737. package/dist/lib/plugins/openapi/state.js.map +1 -0
  738. package/dist/lib/plugins/openapi/util/createHttpSnippet.d.ts +11 -0
  739. package/dist/lib/plugins/openapi/util/createHttpSnippet.js +89 -0
  740. package/dist/lib/plugins/openapi/util/createHttpSnippet.js.map +1 -0
  741. package/dist/lib/plugins/openapi/util/createNavigationCategory.d.ts +9 -0
  742. package/dist/lib/plugins/openapi/util/createNavigationCategory.js +25 -0
  743. package/dist/lib/plugins/openapi/util/createNavigationCategory.js.map +1 -0
  744. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +2 -3
  745. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +77 -39
  746. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  747. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  748. package/dist/lib/plugins/openapi/util/getRoutes.js +117 -0
  749. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  750. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  751. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  752. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  753. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  754. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  755. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  756. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  757. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  758. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  759. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  760. package/dist/lib/plugins/redirect/index.js +2 -2
  761. package/dist/lib/plugins/redirect/index.js.map +1 -1
  762. package/dist/lib/plugins/search-inkeep/index.d.ts +8 -6
  763. package/dist/lib/plugins/search-inkeep/index.js +49 -7
  764. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  765. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +2 -19
  766. package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
  767. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  768. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  769. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  770. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  771. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  772. package/dist/lib/plugins/search-pagefind/ResultList.js +42 -0
  773. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  774. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  775. package/dist/lib/plugins/search-pagefind/get-results.js +41 -0
  776. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  777. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  778. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  779. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  780. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  781. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  782. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  783. package/dist/lib/shiki.d.ts +32 -0
  784. package/dist/lib/shiki.js +124 -0
  785. package/dist/lib/shiki.js.map +1 -0
  786. package/dist/lib/ui/Accordion.d.ts +7 -0
  787. package/dist/lib/ui/Accordion.js +14 -0
  788. package/dist/lib/ui/Accordion.js.map +1 -0
  789. package/dist/lib/ui/ActionButton.d.ts +4 -0
  790. package/dist/lib/ui/ActionButton.js +10 -0
  791. package/dist/lib/ui/ActionButton.js.map +1 -0
  792. package/dist/lib/ui/Alert.d.ts +9 -0
  793. package/dist/lib/ui/Alert.js +25 -0
  794. package/dist/lib/ui/Alert.js.map +1 -0
  795. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  796. package/dist/lib/ui/AlertDialog.js +27 -0
  797. package/dist/lib/ui/AlertDialog.js.map +1 -0
  798. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  799. package/dist/lib/ui/AspectRatio.js +4 -0
  800. package/dist/lib/ui/AspectRatio.js.map +1 -0
  801. package/dist/lib/ui/Badge.d.ts +9 -0
  802. package/dist/lib/ui/Badge.js +24 -0
  803. package/dist/lib/ui/Badge.js.map +1 -0
  804. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  805. package/dist/lib/ui/Breadcrumb.js +24 -0
  806. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  807. package/dist/lib/ui/Button.d.ts +4 -5
  808. package/dist/lib/ui/Button.js +10 -6
  809. package/dist/lib/ui/Button.js.map +1 -1
  810. package/dist/lib/ui/Callout.d.ts +38 -36
  811. package/dist/lib/ui/Callout.js +8 -7
  812. package/dist/lib/ui/Callout.js.map +1 -1
  813. package/dist/lib/ui/Card.js +1 -1
  814. package/dist/lib/ui/Card.js.map +1 -1
  815. package/dist/lib/ui/Carousel.d.ts +18 -0
  816. package/dist/lib/ui/Carousel.js +99 -0
  817. package/dist/lib/ui/Carousel.js.map +1 -0
  818. package/dist/lib/ui/Checkbox.d.ts +4 -0
  819. package/dist/lib/ui/Checkbox.js +9 -0
  820. package/dist/lib/ui/Checkbox.js.map +1 -0
  821. package/dist/lib/ui/CodeBlock.d.ts +14 -0
  822. package/dist/lib/ui/CodeBlock.js +18 -0
  823. package/dist/lib/ui/CodeBlock.js.map +1 -0
  824. package/dist/lib/ui/Collapsible.d.ts +5 -0
  825. package/dist/lib/ui/Collapsible.js +13 -0
  826. package/dist/lib/ui/Collapsible.js.map +1 -0
  827. package/dist/lib/ui/Command.d.ts +94 -0
  828. package/dist/lib/ui/Command.js +31 -0
  829. package/dist/lib/ui/Command.js.map +1 -0
  830. package/dist/lib/ui/Dialog.d.ts +15 -0
  831. package/dist/lib/ui/Dialog.js +36 -0
  832. package/dist/lib/ui/Dialog.js.map +1 -0
  833. package/dist/lib/ui/Drawer.d.ts +8 -10
  834. package/dist/lib/ui/Drawer.js.map +1 -1
  835. package/dist/lib/ui/DropdownMenu.js +4 -4
  836. package/dist/lib/ui/DropdownMenu.js.map +1 -1
  837. package/dist/lib/ui/EmbeddedCodeBlock.d.ts +16 -0
  838. package/dist/lib/ui/EmbeddedCodeBlock.js +19 -0
  839. package/dist/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  840. package/dist/lib/ui/Form.d.ts +23 -0
  841. package/dist/lib/ui/Form.js +63 -0
  842. package/dist/lib/ui/Form.js.map +1 -0
  843. package/dist/lib/ui/Frame.d.ts +8 -0
  844. package/dist/lib/ui/Frame.js +22 -0
  845. package/dist/lib/ui/Frame.js.map +1 -0
  846. package/dist/lib/ui/HoverCard.d.ts +6 -0
  847. package/dist/lib/ui/HoverCard.js +10 -0
  848. package/dist/lib/ui/HoverCard.js.map +1 -0
  849. package/dist/lib/ui/Input.d.ts +1 -2
  850. package/dist/lib/ui/Input.js +1 -1
  851. package/dist/lib/ui/Input.js.map +1 -1
  852. package/dist/lib/ui/Item.d.ts +23 -0
  853. package/dist/lib/ui/Item.js +67 -0
  854. package/dist/lib/ui/Item.js.map +1 -0
  855. package/dist/lib/ui/Label.d.ts +5 -0
  856. package/dist/lib/ui/Label.js +10 -0
  857. package/dist/lib/ui/Label.js.map +1 -0
  858. package/dist/lib/ui/NativeSelect.d.ts +5 -0
  859. package/dist/lib/ui/NativeSelect.js +14 -0
  860. package/dist/lib/ui/NativeSelect.js.map +1 -0
  861. package/dist/lib/ui/Pagination.d.ts +28 -0
  862. package/dist/lib/ui/Pagination.js +24 -0
  863. package/dist/lib/ui/Pagination.js.map +1 -0
  864. package/dist/lib/ui/Popover.d.ts +6 -0
  865. package/dist/lib/ui/Popover.js +10 -0
  866. package/dist/lib/ui/Popover.js.map +1 -0
  867. package/dist/lib/ui/Progress.d.ts +4 -0
  868. package/dist/lib/ui/Progress.js +8 -0
  869. package/dist/lib/ui/Progress.js.map +1 -0
  870. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  871. package/dist/lib/ui/RadioGroup.js +15 -0
  872. package/dist/lib/ui/RadioGroup.js.map +1 -0
  873. package/dist/lib/ui/ReactComponentDoc.d.ts +20 -0
  874. package/dist/lib/ui/ReactComponentDoc.js +10 -0
  875. package/dist/lib/ui/ReactComponentDoc.js.map +1 -0
  876. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  877. package/dist/lib/ui/ScrollArea.js +12 -0
  878. package/dist/lib/ui/ScrollArea.js.map +1 -0
  879. package/dist/lib/ui/Secret.d.ts +18 -0
  880. package/dist/lib/ui/Secret.js +26 -0
  881. package/dist/lib/ui/Secret.js.map +1 -0
  882. package/dist/lib/ui/Select.d.ts +15 -0
  883. package/dist/lib/ui/Select.js +38 -0
  884. package/dist/lib/ui/Select.js.map +1 -0
  885. package/dist/lib/ui/Separator.d.ts +4 -0
  886. package/dist/lib/ui/Separator.js +8 -0
  887. package/dist/lib/ui/Separator.js.map +1 -0
  888. package/dist/lib/ui/Skeleton.d.ts +2 -0
  889. package/dist/lib/ui/Skeleton.js +7 -0
  890. package/dist/lib/ui/Skeleton.js.map +1 -0
  891. package/dist/lib/ui/Slider.d.ts +4 -0
  892. package/dist/lib/ui/Slider.js +8 -0
  893. package/dist/lib/ui/Slider.js.map +1 -0
  894. package/dist/lib/ui/Stepper.d.ts +3 -0
  895. package/dist/lib/ui/Stepper.js +7 -0
  896. package/dist/lib/ui/Stepper.js.map +1 -0
  897. package/dist/lib/ui/Switch.d.ts +4 -0
  898. package/dist/lib/ui/Switch.js +8 -0
  899. package/dist/lib/ui/Switch.js.map +1 -0
  900. package/dist/lib/ui/SyntaxHighlight.d.ts +13 -0
  901. package/dist/lib/ui/SyntaxHighlight.js +15 -0
  902. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  903. package/dist/lib/ui/Tabs.js +2 -2
  904. package/dist/lib/ui/Tabs.js.map +1 -1
  905. package/dist/lib/ui/Textarea.d.ts +4 -0
  906. package/dist/lib/ui/Textarea.js +9 -0
  907. package/dist/lib/ui/Textarea.js.map +1 -0
  908. package/dist/lib/ui/Toggle.d.ts +12 -0
  909. package/dist/lib/ui/Toggle.js +26 -0
  910. package/dist/lib/ui/Toggle.js.map +1 -0
  911. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  912. package/dist/lib/ui/ToggleGroup.js +21 -0
  913. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  914. package/dist/lib/ui/Tooltip.d.ts +8 -0
  915. package/dist/lib/ui/Tooltip.js +18 -0
  916. package/dist/lib/ui/Tooltip.js.map +1 -0
  917. package/dist/lib/ui/Value.d.ts +5 -0
  918. package/dist/lib/ui/Value.js +13 -0
  919. package/dist/lib/ui/Value.js.map +1 -0
  920. package/dist/lib/ui/util.d.ts +2 -0
  921. package/dist/lib/ui/util.js +3 -0
  922. package/dist/lib/ui/util.js.map +1 -0
  923. package/dist/lib/util/MdxComponents.d.ts +39 -21
  924. package/dist/lib/util/MdxComponents.js +24 -17
  925. package/dist/lib/util/MdxComponents.js.map +1 -1
  926. package/dist/lib/util/cn.js.map +1 -1
  927. package/dist/lib/util/createVariantComponent.d.ts +7 -4
  928. package/dist/lib/util/createVariantComponent.js +5 -2
  929. package/dist/lib/util/createVariantComponent.js.map +1 -1
  930. package/dist/lib/util/detectOS.d.ts +1 -0
  931. package/dist/lib/util/detectOS.js +11 -0
  932. package/dist/lib/util/detectOS.js.map +1 -0
  933. package/dist/lib/util/ensureArray.d.ts +1 -0
  934. package/dist/lib/util/ensureArray.js +2 -0
  935. package/dist/lib/util/ensureArray.js.map +1 -0
  936. package/dist/lib/util/flattenAllOf.d.ts +4 -0
  937. package/dist/lib/util/flattenAllOf.js +65 -0
  938. package/dist/lib/util/flattenAllOf.js.map +1 -0
  939. package/dist/lib/util/flattenAllOf.test.d.ts +1 -0
  940. package/dist/lib/util/flattenAllOf.test.js +532 -0
  941. package/dist/lib/util/flattenAllOf.test.js.map +1 -0
  942. package/dist/lib/util/groupBy.js +1 -0
  943. package/dist/lib/util/groupBy.js.map +1 -1
  944. package/dist/lib/util/humanFileSize.d.ts +6 -0
  945. package/dist/lib/util/humanFileSize.js +14 -0
  946. package/dist/lib/util/humanFileSize.js.map +1 -0
  947. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  948. package/dist/lib/util/humanFileSize.test.js +22 -0
  949. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  950. package/dist/lib/util/invariant.d.ts +10 -0
  951. package/dist/lib/util/invariant.js +10 -4
  952. package/dist/lib/util/invariant.js.map +1 -1
  953. package/dist/lib/util/joinPath.d.ts +3 -0
  954. package/dist/lib/util/joinPath.js +3 -0
  955. package/dist/lib/util/joinPath.js.map +1 -1
  956. package/dist/lib/util/joinUrl.d.ts +1 -0
  957. package/dist/lib/util/joinUrl.js +40 -0
  958. package/dist/lib/util/joinUrl.js.map +1 -0
  959. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  960. package/dist/lib/util/joinUrl.test.js +43 -0
  961. package/dist/lib/util/joinUrl.test.js.map +1 -0
  962. package/dist/lib/util/os.d.ts +2 -0
  963. package/dist/lib/util/os.js +21 -0
  964. package/dist/lib/util/os.js.map +1 -0
  965. package/dist/lib/util/pastellize.js +4 -4
  966. package/dist/lib/util/pastellize.js.map +1 -1
  967. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  968. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  969. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  970. package/dist/lib/util/syncZustandState.d.ts +5 -0
  971. package/dist/lib/util/syncZustandState.js +14 -0
  972. package/dist/lib/util/syncZustandState.js.map +1 -0
  973. package/dist/lib/util/traverse.d.ts +4 -0
  974. package/dist/lib/util/traverse.js +48 -0
  975. package/dist/lib/util/traverse.js.map +1 -0
  976. package/dist/lib/util/types.d.ts +7 -0
  977. package/dist/lib/util/types.js +2 -0
  978. package/dist/lib/util/types.js.map +1 -0
  979. package/dist/lib/util/url.d.ts +4 -0
  980. package/dist/lib/util/url.js +13 -0
  981. package/dist/lib/util/url.js.map +1 -0
  982. package/dist/lib/util/url.test.d.ts +1 -0
  983. package/dist/lib/util/url.test.js +26 -0
  984. package/dist/lib/util/url.test.js.map +1 -0
  985. package/dist/lib/util/useCopyToClipboard.d.ts +1 -0
  986. package/dist/lib/util/useCopyToClipboard.js +11 -0
  987. package/dist/lib/util/useCopyToClipboard.js.map +1 -0
  988. package/dist/lib/util/useExposedProps.d.ts +9 -0
  989. package/dist/lib/util/useExposedProps.js +9 -0
  990. package/dist/lib/util/useExposedProps.js.map +1 -0
  991. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  992. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  993. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  994. package/dist/lib/util/useLatest.d.ts +1 -0
  995. package/dist/lib/util/useLatest.js +15 -0
  996. package/dist/lib/util/useLatest.js.map +1 -0
  997. package/dist/lib/util/useOnScreen.d.ts +5 -0
  998. package/dist/lib/util/useOnScreen.js +19 -0
  999. package/dist/lib/util/useOnScreen.js.map +1 -0
  1000. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  1001. package/dist/lib/util/useScrollToAnchor.js +45 -38
  1002. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  1003. package/dist/lib/util/useScrollToTop.js +7 -5
  1004. package/dist/lib/util/useScrollToTop.js.map +1 -1
  1005. package/dist/ts.js +3 -3
  1006. package/dist/ts.js.map +1 -1
  1007. package/dist/vite/api/SchemaManager.d.ts +38 -0
  1008. package/dist/vite/api/SchemaManager.js +152 -0
  1009. package/dist/vite/api/SchemaManager.js.map +1 -0
  1010. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  1011. package/dist/vite/api/SchemaManager.test.js +106 -0
  1012. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  1013. package/dist/vite/api/schema-codegen.d.ts +12 -0
  1014. package/dist/vite/api/schema-codegen.js +134 -0
  1015. package/dist/vite/api/schema-codegen.js.map +1 -0
  1016. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  1017. package/dist/vite/api/schema-codegen.test.js +468 -0
  1018. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  1019. package/dist/vite/build.js +63 -14
  1020. package/dist/vite/build.js.map +1 -1
  1021. package/dist/vite/config.d.ts +1 -15
  1022. package/dist/vite/config.js +128 -149
  1023. package/dist/vite/config.js.map +1 -1
  1024. package/dist/vite/config.test.js +12 -6
  1025. package/dist/vite/config.test.js.map +1 -1
  1026. package/dist/vite/create-pagefind-index.d.ts +4 -0
  1027. package/dist/vite/create-pagefind-index.js +12 -0
  1028. package/dist/vite/create-pagefind-index.js.map +1 -0
  1029. package/dist/vite/css/collect.d.ts +2 -0
  1030. package/dist/vite/css/collect.js +27 -0
  1031. package/dist/vite/css/collect.js.map +1 -0
  1032. package/dist/vite/css/plugin.d.ts +4 -0
  1033. package/dist/vite/css/plugin.js +91 -0
  1034. package/dist/vite/css/plugin.js.map +1 -0
  1035. package/dist/vite/debug.d.ts +1 -0
  1036. package/dist/vite/debug.js +10 -0
  1037. package/dist/vite/debug.js.map +1 -0
  1038. package/dist/vite/dev-server.d.ts +12 -4
  1039. package/dist/vite/dev-server.js +94 -31
  1040. package/dist/vite/dev-server.js.map +1 -1
  1041. package/dist/vite/error-handler.d.ts +3 -3
  1042. package/dist/vite/error-handler.js +1 -1
  1043. package/dist/vite/error-handler.js.map +1 -1
  1044. package/dist/vite/html.d.ts +7 -3
  1045. package/dist/vite/html.js +15 -11
  1046. package/dist/vite/html.js.map +1 -1
  1047. package/dist/vite/llms.d.ts +12 -0
  1048. package/dist/vite/llms.js +66 -0
  1049. package/dist/vite/llms.js.map +1 -0
  1050. package/dist/vite/mdx/remark-inject-filepath.d.ts +3 -0
  1051. package/dist/vite/mdx/remark-inject-filepath.js +6 -0
  1052. package/dist/vite/mdx/remark-inject-filepath.js.map +1 -0
  1053. package/dist/vite/mdx/remark-last-modified.d.ts +3 -0
  1054. package/dist/vite/mdx/remark-last-modified.js +82 -0
  1055. package/dist/vite/mdx/remark-last-modified.js.map +1 -0
  1056. package/dist/vite/mdx/remark-link-rewrite.d.ts +2 -0
  1057. package/dist/vite/mdx/remark-link-rewrite.js +20 -0
  1058. package/dist/vite/mdx/remark-link-rewrite.js.map +1 -0
  1059. package/dist/vite/mdx/remark-normalize-image-url.d.ts +2 -0
  1060. package/dist/vite/mdx/remark-normalize-image-url.js +12 -0
  1061. package/dist/vite/mdx/remark-normalize-image-url.js.map +1 -0
  1062. package/dist/vite/mdx/remark-static-generation.d.ts +3 -0
  1063. package/dist/vite/mdx/remark-static-generation.js +125 -0
  1064. package/dist/vite/mdx/remark-static-generation.js.map +1 -0
  1065. package/dist/vite/mdx/utils.d.ts +2 -0
  1066. package/dist/vite/mdx/utils.js +31 -0
  1067. package/dist/vite/mdx/utils.js.map +1 -0
  1068. package/dist/vite/output.d.ts +113 -0
  1069. package/dist/vite/output.js +60 -0
  1070. package/dist/vite/output.js.map +1 -0
  1071. package/dist/vite/plugin-api-keys.d.ts +2 -3
  1072. package/dist/vite/plugin-api-keys.js +14 -8
  1073. package/dist/vite/plugin-api-keys.js.map +1 -1
  1074. package/dist/vite/plugin-api.d.ts +1 -2
  1075. package/dist/vite/plugin-api.js +148 -36
  1076. package/dist/vite/plugin-api.js.map +1 -1
  1077. package/dist/vite/plugin-auth.d.ts +2 -3
  1078. package/dist/vite/plugin-auth.js +11 -7
  1079. package/dist/vite/plugin-auth.js.map +1 -1
  1080. package/dist/vite/plugin-component.d.ts +2 -3
  1081. package/dist/vite/plugin-component.js +25 -15
  1082. package/dist/vite/plugin-component.js.map +1 -1
  1083. package/dist/vite/plugin-config-reload.d.ts +3 -4
  1084. package/dist/vite/plugin-config-reload.js +31 -20
  1085. package/dist/vite/plugin-config-reload.js.map +1 -1
  1086. package/dist/vite/plugin-config.d.ts +2 -4
  1087. package/dist/vite/plugin-config.js +28 -3
  1088. package/dist/vite/plugin-config.js.map +1 -1
  1089. package/dist/vite/plugin-custom-pages.d.ts +3 -0
  1090. package/dist/vite/plugin-custom-pages.js +31 -0
  1091. package/dist/vite/plugin-custom-pages.js.map +1 -0
  1092. package/dist/vite/plugin-docs.d.ts +11 -3
  1093. package/dist/vite/plugin-docs.js +100 -39
  1094. package/dist/vite/plugin-docs.js.map +1 -1
  1095. package/dist/vite/plugin-frontmatter.d.ts +2 -0
  1096. package/dist/vite/plugin-frontmatter.js +39 -0
  1097. package/dist/vite/plugin-frontmatter.js.map +1 -0
  1098. package/dist/vite/plugin-markdown-export.d.ts +21 -0
  1099. package/dist/vite/plugin-markdown-export.js +141 -0
  1100. package/dist/vite/plugin-markdown-export.js.map +1 -0
  1101. package/dist/vite/plugin-mdx.d.ts +2 -9
  1102. package/dist/vite/plugin-mdx.js +92 -36
  1103. package/dist/vite/plugin-mdx.js.map +1 -1
  1104. package/dist/vite/plugin-metadata.d.ts +1 -1
  1105. package/dist/vite/plugin-navigation.d.ts +4 -0
  1106. package/dist/vite/plugin-navigation.js +67 -0
  1107. package/dist/vite/plugin-navigation.js.map +1 -0
  1108. package/dist/vite/plugin-redirect.d.ts +2 -3
  1109. package/dist/vite/plugin-redirect.js +7 -6
  1110. package/dist/vite/plugin-redirect.js.map +1 -1
  1111. package/dist/vite/plugin-search.d.ts +2 -0
  1112. package/dist/vite/plugin-search.js +31 -0
  1113. package/dist/vite/plugin-search.js.map +1 -0
  1114. package/dist/vite/plugin-shiki-register.d.ts +2 -0
  1115. package/dist/vite/plugin-shiki-register.js +39 -0
  1116. package/dist/vite/plugin-shiki-register.js.map +1 -0
  1117. package/dist/vite/plugin-theme.d.ts +8 -0
  1118. package/dist/vite/plugin-theme.js +283 -0
  1119. package/dist/vite/plugin-theme.js.map +1 -0
  1120. package/dist/vite/plugin-theme.test.d.ts +1 -0
  1121. package/dist/vite/plugin-theme.test.js +314 -0
  1122. package/dist/vite/plugin-theme.test.js.map +1 -0
  1123. package/dist/vite/plugin.d.ts +2 -4
  1124. package/dist/vite/plugin.js +30 -21
  1125. package/dist/vite/plugin.js.map +1 -1
  1126. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  1127. package/dist/vite/prerender/FileWritingResponse.js +53 -0
  1128. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  1129. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  1130. package/dist/vite/prerender/InMemoryResponse.js +34 -0
  1131. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  1132. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  1133. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  1134. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  1135. package/dist/vite/prerender/prerender.d.ts +15 -0
  1136. package/dist/vite/prerender/prerender.js +142 -0
  1137. package/dist/vite/prerender/prerender.js.map +1 -0
  1138. package/dist/vite/prerender/worker.d.ts +13 -0
  1139. package/dist/vite/prerender/worker.js +63 -0
  1140. package/dist/vite/prerender/worker.js.map +1 -0
  1141. package/dist/vite/reporter.d.ts +3 -0
  1142. package/dist/vite/reporter.js +33 -0
  1143. package/dist/vite/reporter.js.map +1 -0
  1144. package/dist/vite/shadcn-registry.d.ts +20 -0
  1145. package/dist/vite/shadcn-registry.js +29 -0
  1146. package/dist/vite/shadcn-registry.js.map +1 -0
  1147. package/dist/vite/sitemap.d.ts +1 -1
  1148. package/dist/vite/sitemap.js +16 -14
  1149. package/dist/vite/sitemap.js.map +1 -1
  1150. package/dist/zuplo/enrich-with-zuplo-mcp.d.ts +4 -0
  1151. package/dist/zuplo/enrich-with-zuplo-mcp.js +117 -0
  1152. package/dist/zuplo/enrich-with-zuplo-mcp.js.map +1 -0
  1153. package/dist/zuplo/enrich-with-zuplo.d.ts +6 -0
  1154. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  1155. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  1156. package/dist/zuplo/policy-types.d.ts +33 -0
  1157. package/dist/zuplo/policy-types.js +7 -0
  1158. package/dist/zuplo/policy-types.js.map +1 -0
  1159. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  1160. package/dist/zuplo/with-zuplo-processors.js +28 -0
  1161. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  1162. package/dist/zuplo/with-zuplo.d.ts +6 -0
  1163. package/dist/zuplo/with-zuplo.js +10 -0
  1164. package/dist/zuplo/with-zuplo.js.map +1 -0
  1165. package/lib/Button-B3ucvvQw.js +52 -0
  1166. package/lib/Button-B3ucvvQw.js.map +1 -0
  1167. package/lib/Card-KFniaZn5.js +61 -0
  1168. package/lib/Card-KFniaZn5.js.map +1 -0
  1169. package/lib/CategoryHeading-DhmodDcq.js +17 -0
  1170. package/lib/CategoryHeading-DhmodDcq.js.map +1 -0
  1171. package/lib/ClientOnly-E7hGysn1.js +11 -0
  1172. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  1173. package/lib/Command-CUcrW3qs.js +134 -0
  1174. package/lib/Command-CUcrW3qs.js.map +1 -0
  1175. package/lib/Dialog-BQciPiHN.js +144 -0
  1176. package/lib/Dialog-BQciPiHN.js.map +1 -0
  1177. package/lib/Drawer-Ci7XwhqT.js +1133 -0
  1178. package/lib/Drawer-Ci7XwhqT.js.map +1 -0
  1179. package/lib/DropdownMenu-BZ2NKQ3K.js +126 -0
  1180. package/lib/DropdownMenu-BZ2NKQ3K.js.map +1 -0
  1181. package/lib/ErrorAlert-_1Zmhr68.js +15475 -0
  1182. package/lib/ErrorAlert-_1Zmhr68.js.map +1 -0
  1183. package/lib/MdxPage-B2t1EShN.js +240 -0
  1184. package/lib/MdxPage-B2t1EShN.js.map +1 -0
  1185. package/lib/OAuthErrorPage-DnKnq4xK.js +150 -0
  1186. package/lib/OAuthErrorPage-DnKnq4xK.js.map +1 -0
  1187. package/lib/OasProvider-Df8i4LN9.js +36 -0
  1188. package/lib/OasProvider-Df8i4LN9.js.map +1 -0
  1189. package/lib/OperationList-BGhUll5h.js +5688 -0
  1190. package/lib/OperationList-BGhUll5h.js.map +1 -0
  1191. package/lib/Pagination-hk-llhpw.js +37 -0
  1192. package/lib/Pagination-hk-llhpw.js.map +1 -0
  1193. package/lib/RouteGuard-Brz95MSt.js +77 -0
  1194. package/lib/RouteGuard-Brz95MSt.js.map +1 -0
  1195. package/lib/RouterError-CMaIfdjb.js +42 -0
  1196. package/lib/RouterError-CMaIfdjb.js.map +1 -0
  1197. package/lib/SchemaList-1BwTDYj4.js +150 -0
  1198. package/lib/SchemaList-1BwTDYj4.js.map +1 -0
  1199. package/lib/SchemaView-iAxsr0Pr.js +572 -0
  1200. package/lib/SchemaView-iAxsr0Pr.js.map +1 -0
  1201. package/lib/Select-DFRCS31-.js +399 -0
  1202. package/lib/Select-DFRCS31-.js.map +1 -0
  1203. package/lib/SignUp-sGYAsj2K.js +50 -0
  1204. package/lib/SignUp-sGYAsj2K.js.map +1 -0
  1205. package/lib/Spinner-CI6bRyZw.js +7 -0
  1206. package/lib/Spinner-CI6bRyZw.js.map +1 -0
  1207. package/lib/SyntaxHighlight-C19vH0V_.js +10352 -0
  1208. package/lib/SyntaxHighlight-C19vH0V_.js.map +1 -0
  1209. package/lib/Toc-DbWS75JZ.js +92 -0
  1210. package/lib/Toc-DbWS75JZ.js.map +1 -0
  1211. package/lib/ZudokuContext-BUZ5hkWB.js +1508 -0
  1212. package/lib/ZudokuContext-BUZ5hkWB.js.map +1 -0
  1213. package/lib/c-B-NUhs61.js +46 -0
  1214. package/lib/c-B-NUhs61.js.map +1 -0
  1215. package/lib/chunk-PVWAREVJ-BMhpCH5D.js +7965 -0
  1216. package/lib/chunk-PVWAREVJ-BMhpCH5D.js.map +1 -0
  1217. package/lib/circular-KI-MGwIg.js +15341 -0
  1218. package/lib/circular-KI-MGwIg.js.map +1 -0
  1219. package/lib/clsx-OuTLNxxd.js +17 -0
  1220. package/lib/clsx-OuTLNxxd.js.map +1 -0
  1221. package/lib/cn-dYga0KKN.js +2731 -0
  1222. package/lib/cn-dYga0KKN.js.map +1 -0
  1223. package/lib/commonlisp-De080z23.js +28 -0
  1224. package/lib/commonlisp-De080z23.js.map +1 -0
  1225. package/lib/cpp-79Paht7T.js +53 -0
  1226. package/lib/cpp-79Paht7T.js.map +1 -0
  1227. package/lib/createServer-CBgHAqRV.js +13018 -0
  1228. package/lib/createServer-CBgHAqRV.js.map +1 -0
  1229. package/lib/csharp-D8MIL50B.js +53 -0
  1230. package/lib/csharp-D8MIL50B.js.map +1 -0
  1231. package/lib/css-Bt6hr1td.js +54 -0
  1232. package/lib/css-Bt6hr1td.js.map +1 -0
  1233. package/lib/dart-B0vy1jWB.js +60 -0
  1234. package/lib/dart-B0vy1jWB.js.map +1 -0
  1235. package/lib/elixir-Ds8r0sF8.js +25 -0
  1236. package/lib/elixir-Ds8r0sF8.js.map +1 -0
  1237. package/lib/errors-CD873hrG.js +45 -0
  1238. package/lib/errors-CD873hrG.js.map +1 -0
  1239. package/lib/go-D2VsmIOS.js +25 -0
  1240. package/lib/go-D2VsmIOS.js.map +1 -0
  1241. package/lib/graphql-BtA6M4m5.js +25 -0
  1242. package/lib/graphql-BtA6M4m5.js.map +1 -0
  1243. package/lib/hook-CMeoxziF.js +40 -0
  1244. package/lib/hook-CMeoxziF.js.map +1 -0
  1245. package/lib/html-MGnI2uzP.js +33 -0
  1246. package/lib/html-MGnI2uzP.js.map +1 -0
  1247. package/lib/index-BK0jKRrX.js +2210 -0
  1248. package/lib/index-BK0jKRrX.js.map +1 -0
  1249. package/lib/index-CrcNWbel.js +316 -0
  1250. package/lib/index-CrcNWbel.js.map +1 -0
  1251. package/lib/index-CscynaXA.js +3680 -0
  1252. package/lib/index-CscynaXA.js.map +1 -0
  1253. package/lib/index-DI5SPFK9.js +36 -0
  1254. package/lib/index-DI5SPFK9.js.map +1 -0
  1255. package/lib/index-nGbmHh_A.js +4827 -0
  1256. package/lib/index-nGbmHh_A.js.map +1 -0
  1257. package/lib/index-pMMX55GH.js +1059 -0
  1258. package/lib/index-pMMX55GH.js.map +1 -0
  1259. package/lib/index.esm-BYObtETB.js +1294 -0
  1260. package/lib/index.esm-BYObtETB.js.map +1 -0
  1261. package/lib/index.esm-BnYHxCYC.js +683 -0
  1262. package/lib/index.esm-BnYHxCYC.js.map +1 -0
  1263. package/lib/invariant-Bm-FVUQE.js +44 -0
  1264. package/lib/invariant-Bm-FVUQE.js.map +1 -0
  1265. package/lib/java-CVLzHfb1.js +53 -0
  1266. package/lib/java-CVLzHfb1.js.map +1 -0
  1267. package/lib/javascript-CcmIpL4G.js +10 -0
  1268. package/lib/javascript-CcmIpL4G.js.map +1 -0
  1269. package/lib/json-4AyP4uiY.js +25 -0
  1270. package/lib/json-4AyP4uiY.js.map +1 -0
  1271. package/lib/jsx-runtime-BzflLqGi.js +283 -0
  1272. package/lib/jsx-runtime-BzflLqGi.js.map +1 -0
  1273. package/lib/kotlin-v2plddBQ.js +37 -0
  1274. package/lib/kotlin-v2plddBQ.js.map +1 -0
  1275. package/lib/markdown-DYGWCmGQ.js +25 -0
  1276. package/lib/markdown-DYGWCmGQ.js.map +1 -0
  1277. package/lib/mdx-CHwYvXd4.js +32 -0
  1278. package/lib/mdx-CHwYvXd4.js.map +1 -0
  1279. package/lib/mutation-BSU0xu4m.js +196 -0
  1280. package/lib/mutation-BSU0xu4m.js.map +1 -0
  1281. package/lib/objectivec-HZY8shkd.js +32 -0
  1282. package/lib/objectivec-HZY8shkd.js.map +1 -0
  1283. package/lib/ocaml-DqsdDdwb.js +52 -0
  1284. package/lib/ocaml-DqsdDdwb.js.map +1 -0
  1285. package/lib/php-rQXzo7K_.js +25 -0
  1286. package/lib/php-rQXzo7K_.js.map +1 -0
  1287. package/lib/powershell-CQje9pm1.js +39 -0
  1288. package/lib/powershell-CQje9pm1.js.map +1 -0
  1289. package/lib/processors/removeExtensions.js +11 -0
  1290. package/lib/processors/removeExtensions.js.map +1 -0
  1291. package/lib/processors/removeParameters.js +47 -0
  1292. package/lib/processors/removeParameters.js.map +1 -0
  1293. package/lib/processors/removePaths.js +28 -0
  1294. package/lib/processors/removePaths.js.map +1 -0
  1295. package/lib/processors/traverse.js +17 -0
  1296. package/lib/processors/traverse.js.map +1 -0
  1297. package/lib/python-QIQAE5Ei.js +32 -0
  1298. package/lib/python-QIQAE5Ei.js.map +1 -0
  1299. package/lib/react-DHpVpxRv.js +24 -0
  1300. package/lib/react-DHpVpxRv.js.map +1 -0
  1301. package/lib/ruby-B2dU8Ny5.js +25 -0
  1302. package/lib/ruby-B2dU8Ny5.js.map +1 -0
  1303. package/lib/rust-DYnLHAi2.js +25 -0
  1304. package/lib/rust-DYnLHAi2.js.map +1 -0
  1305. package/lib/scala-CeKInBR8.js +25 -0
  1306. package/lib/scala-CeKInBR8.js.map +1 -0
  1307. package/lib/shell-HUv9oVtp.js +25 -0
  1308. package/lib/shell-HUv9oVtp.js.map +1 -0
  1309. package/lib/swift-B4z6ig1Z.js +25 -0
  1310. package/lib/swift-B4z6ig1Z.js.map +1 -0
  1311. package/lib/toml-Co9mpdct.js +32 -0
  1312. package/lib/toml-Co9mpdct.js.map +1 -0
  1313. package/lib/typescript-C26xdBDC.js +32 -0
  1314. package/lib/typescript-C26xdBDC.js.map +1 -0
  1315. package/lib/ui/Accordion.js +47 -0
  1316. package/lib/ui/Accordion.js.map +1 -0
  1317. package/lib/ui/ActionButton.js +25 -0
  1318. package/lib/ui/ActionButton.js.map +1 -0
  1319. package/lib/ui/Alert.js +67 -0
  1320. package/lib/ui/Alert.js.map +1 -0
  1321. package/lib/ui/AlertDialog.js +114 -0
  1322. package/lib/ui/AlertDialog.js.map +1 -0
  1323. package/lib/ui/AspectRatio.js +6 -0
  1324. package/lib/ui/AspectRatio.js.map +1 -0
  1325. package/lib/ui/Badge.js +42 -0
  1326. package/lib/ui/Badge.js.map +1 -0
  1327. package/lib/ui/Breadcrumb.js +95 -0
  1328. package/lib/ui/Breadcrumb.js.map +1 -0
  1329. package/lib/ui/Button.js +53 -0
  1330. package/lib/ui/Button.js.map +1 -0
  1331. package/lib/ui/Callout.js +97 -0
  1332. package/lib/ui/Callout.js.map +1 -0
  1333. package/lib/ui/Card.js +62 -0
  1334. package/lib/ui/Card.js.map +1 -0
  1335. package/lib/ui/Carousel.js +1416 -0
  1336. package/lib/ui/Carousel.js.map +1 -0
  1337. package/lib/ui/Checkbox.js +32 -0
  1338. package/lib/ui/Checkbox.js.map +1 -0
  1339. package/lib/ui/CodeBlock.js +220 -0
  1340. package/lib/ui/CodeBlock.js.map +1 -0
  1341. package/lib/ui/Collapsible.js +35 -0
  1342. package/lib/ui/Collapsible.js.map +1 -0
  1343. package/lib/ui/Command.js +150 -0
  1344. package/lib/ui/Command.js.map +1 -0
  1345. package/lib/ui/Dialog.js +146 -0
  1346. package/lib/ui/Dialog.js.map +1 -0
  1347. package/lib/ui/Drawer.js +17 -0
  1348. package/lib/ui/Drawer.js.map +1 -0
  1349. package/lib/ui/DropdownMenu.js +145 -0
  1350. package/lib/ui/DropdownMenu.js.map +1 -0
  1351. package/lib/ui/EmbeddedCodeBlock.js +84 -0
  1352. package/lib/ui/EmbeddedCodeBlock.js.map +1 -0
  1353. package/lib/ui/Form.js +95 -0
  1354. package/lib/ui/Form.js.map +1 -0
  1355. package/lib/ui/Frame.js +81 -0
  1356. package/lib/ui/Frame.js.map +1 -0
  1357. package/lib/ui/HoverCard.js +24 -0
  1358. package/lib/ui/HoverCard.js.map +1 -0
  1359. package/lib/ui/Input.js +22 -0
  1360. package/lib/ui/Input.js.map +1 -0
  1361. package/lib/ui/Item.js +188 -0
  1362. package/lib/ui/Item.js.map +1 -0
  1363. package/lib/ui/Label.js +20 -0
  1364. package/lib/ui/Label.js.map +1 -0
  1365. package/lib/ui/NativeSelect.js +57 -0
  1366. package/lib/ui/NativeSelect.js.map +1 -0
  1367. package/lib/ui/Pagination.js +105 -0
  1368. package/lib/ui/Pagination.js.map +1 -0
  1369. package/lib/ui/Popover.js +24 -0
  1370. package/lib/ui/Popover.js.map +1 -0
  1371. package/lib/ui/Progress.js +27 -0
  1372. package/lib/ui/Progress.js.map +1 -0
  1373. package/lib/ui/RadioGroup.js +32 -0
  1374. package/lib/ui/RadioGroup.js.map +1 -0
  1375. package/lib/ui/ReactComponentDoc.js +28 -0
  1376. package/lib/ui/ReactComponentDoc.js.map +1 -0
  1377. package/lib/ui/ScrollArea.js +39 -0
  1378. package/lib/ui/ScrollArea.js.map +1 -0
  1379. package/lib/ui/Secret.js +106 -0
  1380. package/lib/ui/Secret.js.map +1 -0
  1381. package/lib/ui/Select.js +172 -0
  1382. package/lib/ui/Select.js.map +1 -0
  1383. package/lib/ui/Separator.js +27 -0
  1384. package/lib/ui/Separator.js.map +1 -0
  1385. package/lib/ui/Skeleton.js +18 -0
  1386. package/lib/ui/Skeleton.js.map +1 -0
  1387. package/lib/ui/Slider.js +24 -0
  1388. package/lib/ui/Slider.js.map +1 -0
  1389. package/lib/ui/Stepper.js +6 -0
  1390. package/lib/ui/Stepper.js.map +1 -0
  1391. package/lib/ui/Switch.js +28 -0
  1392. package/lib/ui/Switch.js.map +1 -0
  1393. package/lib/ui/SyntaxHighlight.js +11 -0
  1394. package/lib/ui/SyntaxHighlight.js.map +1 -0
  1395. package/lib/ui/Tabs.js +47 -0
  1396. package/lib/ui/Tabs.js.map +1 -0
  1397. package/lib/ui/Textarea.js +21 -0
  1398. package/lib/ui/Textarea.js.map +1 -0
  1399. package/lib/ui/Toggle.js +38 -0
  1400. package/lib/ui/Toggle.js.map +1 -0
  1401. package/lib/ui/ToggleGroup.js +42 -0
  1402. package/lib/ui/ToggleGroup.js.map +1 -0
  1403. package/lib/ui/Tooltip.js +58 -0
  1404. package/lib/ui/Tooltip.js.map +1 -0
  1405. package/lib/ui/Value.js +39 -0
  1406. package/lib/ui/Value.js.map +1 -0
  1407. package/lib/ui/util.js +6 -0
  1408. package/lib/ui/util.js.map +1 -0
  1409. package/lib/useCopyToClipboard-B_085nfO.js +14 -0
  1410. package/lib/useCopyToClipboard-B_085nfO.js.map +1 -0
  1411. package/lib/useExposedProps-U3pmsHaG.js +113 -0
  1412. package/lib/useExposedProps-U3pmsHaG.js.map +1 -0
  1413. package/lib/useLatest-hmRS46UF.js +11 -0
  1414. package/lib/useLatest-hmRS46UF.js.map +1 -0
  1415. package/lib/xml-BQOOC04j.js +25 -0
  1416. package/lib/xml-BQOOC04j.js.map +1 -0
  1417. package/lib/yaml-BGsJItKv.js +32 -0
  1418. package/lib/yaml-BGsJItKv.js.map +1 -0
  1419. package/lib/zig-CUV2sTct.js +35 -0
  1420. package/lib/zig-CUV2sTct.js.map +1 -0
  1421. package/lib/zudoku.__internal.js +3084 -0
  1422. package/lib/zudoku.__internal.js.map +1 -0
  1423. package/lib/zudoku.auth-auth0.js +32 -29
  1424. package/lib/zudoku.auth-auth0.js.map +1 -1
  1425. package/lib/zudoku.auth-azureb2c.js +136 -0
  1426. package/lib/zudoku.auth-azureb2c.js.map +1 -0
  1427. package/lib/zudoku.auth-clerk.js +112 -61
  1428. package/lib/zudoku.auth-clerk.js.map +1 -1
  1429. package/lib/zudoku.auth-openid.js +644 -664
  1430. package/lib/zudoku.auth-openid.js.map +1 -1
  1431. package/lib/zudoku.auth-supabase.js +154 -0
  1432. package/lib/zudoku.auth-supabase.js.map +1 -0
  1433. package/lib/zudoku.components.js +27 -3360
  1434. package/lib/zudoku.components.js.map +1 -1
  1435. package/lib/zudoku.hooks.js +27 -0
  1436. package/lib/zudoku.hooks.js.map +1 -0
  1437. package/lib/zudoku.icons.js +10 -0
  1438. package/lib/zudoku.icons.js.map +1 -1
  1439. package/lib/zudoku.plugin-api-catalog.js +124 -0
  1440. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  1441. package/lib/zudoku.plugin-api-keys.js +635 -200
  1442. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1443. package/lib/zudoku.plugin-custom-pages.js +19 -0
  1444. package/lib/zudoku.plugin-custom-pages.js.map +1 -0
  1445. package/lib/zudoku.plugin-markdown.js +22 -25
  1446. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1447. package/lib/zudoku.plugin-openapi.js +8 -12
  1448. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1449. package/lib/zudoku.plugin-redirect.js +2 -2
  1450. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1451. package/lib/zudoku.plugin-search-inkeep.js +61 -40
  1452. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1453. package/lib/zudoku.plugin-search-pagefind.js +324 -0
  1454. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1455. package/lib/zudoku.plugins.js +15 -0
  1456. package/lib/zudoku.plugins.js.map +1 -0
  1457. package/lib/zudoku.router.js +2507 -0
  1458. package/lib/zudoku.router.js.map +1 -0
  1459. package/package.json +230 -109
  1460. package/src/app/ZuploBuildConfig.ts +33 -0
  1461. package/src/app/defaultTheme.css +73 -0
  1462. package/src/app/demo-cdn.html +31 -31
  1463. package/src/app/demo.html +1 -1
  1464. package/src/app/demo.tsx +26 -12
  1465. package/src/app/entry.client.tsx +75 -8
  1466. package/src/app/entry.server.tsx +97 -68
  1467. package/src/app/env.ts +43 -0
  1468. package/src/app/font.geist.css +73 -0
  1469. package/src/app/main.css +232 -134
  1470. package/src/app/main.tsx +100 -80
  1471. package/src/app/sentry.ts +24 -0
  1472. package/src/app/standalone.tsx +15 -13
  1473. package/src/lib/MissingIcon.tsx +22 -0
  1474. package/src/lib/assets/language-icons/c.tsx +31 -0
  1475. package/src/lib/assets/language-icons/commonlisp.tsx +22 -0
  1476. package/src/lib/assets/language-icons/cpp.tsx +35 -0
  1477. package/src/lib/assets/language-icons/csharp.tsx +35 -0
  1478. package/src/lib/assets/language-icons/css.tsx +36 -0
  1479. package/src/lib/assets/language-icons/dart.tsx +39 -0
  1480. package/src/lib/assets/language-icons/elixir.tsx +19 -0
  1481. package/src/lib/assets/language-icons/go.tsx +19 -0
  1482. package/src/lib/assets/language-icons/graphql.tsx +19 -0
  1483. package/src/lib/assets/language-icons/html.tsx +24 -0
  1484. package/src/lib/assets/language-icons/java.tsx +35 -0
  1485. package/src/lib/assets/language-icons/javascript.tsx +11 -0
  1486. package/src/lib/assets/language-icons/json.tsx +19 -0
  1487. package/src/lib/assets/language-icons/kotlin.tsx +30 -0
  1488. package/src/lib/assets/language-icons/markdown.tsx +19 -0
  1489. package/src/lib/assets/language-icons/mdx.tsx +23 -0
  1490. package/src/lib/assets/language-icons/objectivec.tsx +23 -0
  1491. package/src/lib/assets/language-icons/ocaml.tsx +34 -0
  1492. package/src/lib/assets/language-icons/php.tsx +19 -0
  1493. package/src/lib/assets/language-icons/powershell.tsx +27 -0
  1494. package/src/lib/assets/language-icons/python.tsx +23 -0
  1495. package/src/lib/assets/language-icons/react.tsx +21 -0
  1496. package/src/lib/assets/language-icons/ruby.tsx +19 -0
  1497. package/src/lib/assets/language-icons/rust.tsx +19 -0
  1498. package/src/lib/assets/language-icons/scala.tsx +19 -0
  1499. package/src/lib/assets/language-icons/shell.tsx +19 -0
  1500. package/src/lib/assets/language-icons/swift.tsx +19 -0
  1501. package/src/lib/assets/language-icons/toml.tsx +23 -0
  1502. package/src/lib/assets/language-icons/typescript.tsx +23 -0
  1503. package/src/lib/assets/language-icons/xml.tsx +19 -0
  1504. package/src/lib/assets/language-icons/yaml.tsx +23 -0
  1505. package/src/lib/assets/language-icons/zig.tsx +32 -0
  1506. package/src/lib/auth/issuer.test.ts +121 -0
  1507. package/src/lib/auth/issuer.ts +44 -0
  1508. package/src/lib/authentication/AuthenticationPlugin.tsx +6 -3
  1509. package/src/lib/authentication/authentication.ts +29 -12
  1510. package/src/lib/authentication/components/CallbackHandler.tsx +36 -50
  1511. package/src/lib/authentication/components/OAuthErrorPage.tsx +171 -0
  1512. package/src/lib/authentication/components/SignIn.tsx +35 -7
  1513. package/src/lib/authentication/components/SignOut.tsx +8 -6
  1514. package/src/lib/authentication/components/SignUp.tsx +36 -5
  1515. package/src/lib/authentication/errors.ts +27 -13
  1516. package/src/lib/authentication/hook.ts +29 -7
  1517. package/src/lib/authentication/providers/auth0.tsx +39 -19
  1518. package/src/lib/authentication/providers/azureb2c.tsx +208 -0
  1519. package/src/lib/authentication/providers/clerk.tsx +138 -54
  1520. package/src/lib/authentication/providers/firebase.tsx +284 -0
  1521. package/src/lib/authentication/providers/openid.tsx +175 -89
  1522. package/src/lib/authentication/providers/supabase/SupabaseAuthUI.tsx +75 -0
  1523. package/src/lib/authentication/providers/supabase.tsx +162 -0
  1524. package/src/lib/authentication/state.ts +65 -7
  1525. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +335 -0
  1526. package/src/lib/authentication/ui/icons/Apple.tsx +10 -0
  1527. package/src/lib/authentication/ui/icons/Facebook.tsx +15 -0
  1528. package/src/lib/authentication/ui/icons/Github.tsx +16 -0
  1529. package/src/lib/authentication/ui/icons/Google.tsx +16 -0
  1530. package/src/lib/authentication/ui/icons/Microsoft.tsx +12 -0
  1531. package/src/lib/authentication/ui/icons/X.tsx +10 -0
  1532. package/src/lib/authentication/use-broadcast/LICENSE.md +18 -0
  1533. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1534. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1535. package/src/lib/components/AnchorLink.tsx +13 -8
  1536. package/src/lib/components/Autocomplete.tsx +123 -0
  1537. package/src/lib/components/Banner.tsx +15 -5
  1538. package/src/lib/components/Bootstrap.tsx +44 -16
  1539. package/src/lib/components/BuildCheck.tsx +88 -0
  1540. package/src/lib/components/CategoryHeading.tsx +4 -1
  1541. package/src/lib/components/ClientOnly.tsx +6 -3
  1542. package/src/lib/components/DeveloperHint.tsx +6 -1
  1543. package/src/lib/components/ErrorPage.tsx +3 -5
  1544. package/src/lib/components/Footer.tsx +136 -0
  1545. package/src/lib/components/Framed.tsx +51 -0
  1546. package/src/lib/components/Header.tsx +122 -66
  1547. package/src/lib/components/Heading.tsx +22 -19
  1548. package/src/lib/components/InlineCode.tsx +15 -8
  1549. package/src/lib/components/LanguageIcon.tsx +181 -0
  1550. package/src/lib/components/Layout.tsx +28 -69
  1551. package/src/lib/components/Main.tsx +51 -0
  1552. package/src/lib/components/Markdown.tsx +45 -30
  1553. package/src/lib/components/Meta.tsx +45 -0
  1554. package/src/lib/components/MobileTopNavigation.tsx +98 -28
  1555. package/src/lib/components/NotFoundPage.tsx +7 -6
  1556. package/src/lib/components/PageProgress.tsx +28 -0
  1557. package/src/lib/components/Pagination.tsx +45 -0
  1558. package/src/lib/components/PathRenderer.tsx +61 -0
  1559. package/src/lib/components/Search.tsx +20 -9
  1560. package/src/lib/components/Slot.test.tsx +465 -0
  1561. package/src/lib/components/Slot.tsx +64 -0
  1562. package/src/lib/components/StatusPage.tsx +96 -0
  1563. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1564. package/src/lib/components/TopNavigation.tsx +104 -27
  1565. package/src/lib/components/Typography.tsx +14 -0
  1566. package/src/lib/components/Zudoku.tsx +119 -0
  1567. package/src/lib/components/cache.ts +27 -0
  1568. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1569. package/src/lib/components/context/ComponentsContext.tsx +2 -2
  1570. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1571. package/src/lib/components/context/SlotProvider.tsx +149 -0
  1572. package/src/lib/components/context/ViewportAnchorContext.tsx +35 -37
  1573. package/src/lib/components/context/ZudokuContext.ts +87 -29
  1574. package/src/lib/components/context/ZudokuProvider.tsx +4 -3
  1575. package/src/lib/components/index.ts +34 -17
  1576. package/src/lib/components/navigation/Navigation.tsx +50 -0
  1577. package/src/lib/components/navigation/NavigationBadge.tsx +48 -0
  1578. package/src/lib/components/navigation/NavigationCategory.tsx +153 -0
  1579. package/src/lib/components/navigation/NavigationItem.tsx +148 -0
  1580. package/src/lib/components/navigation/NavigationWrapper.tsx +49 -0
  1581. package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
  1582. package/src/lib/components/navigation/Toc.tsx +126 -0
  1583. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1584. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1585. package/src/lib/components/navigation/utils.ts +85 -50
  1586. package/src/lib/core/RouteGuard.tsx +116 -0
  1587. package/src/lib/core/ZudokuContext.ts +249 -0
  1588. package/src/lib/core/__internal.tsx +30 -0
  1589. package/src/lib/core/plugins.ts +56 -23
  1590. package/src/lib/core/router.ts +1 -0
  1591. package/src/lib/errors/ErrorAlert.tsx +29 -17
  1592. package/src/lib/errors/RouterError.tsx +8 -3
  1593. package/src/lib/errors/TopLevelError.tsx +2 -4
  1594. package/src/lib/hooks/index.ts +16 -0
  1595. package/src/lib/hooks/useEvent.test.tsx +151 -0
  1596. package/src/lib/hooks/useEvent.ts +41 -0
  1597. package/src/lib/hooks/useHotkey.ts +70 -0
  1598. package/src/lib/icons.ts +1 -0
  1599. package/src/lib/oas/graphql/circular.ts +58 -0
  1600. package/src/lib/oas/graphql/index.ts +358 -116
  1601. package/src/lib/oas/parser/dereference/index.ts +12 -5
  1602. package/src/lib/oas/parser/dereference/resolveRef.ts +4 -4
  1603. package/src/lib/oas/parser/index.ts +22 -32
  1604. package/src/lib/oas/parser/upgrade/index.ts +105 -39
  1605. package/src/lib/plugins/api-catalog/Catalog.tsx +80 -0
  1606. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1607. package/src/lib/plugins/api-keys/CreateApiKey.tsx +79 -49
  1608. package/src/lib/plugins/api-keys/CreateApiKeyDialog.tsx +49 -0
  1609. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +12 -8
  1610. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +441 -122
  1611. package/src/lib/plugins/api-keys/index.tsx +150 -66
  1612. package/src/lib/plugins/custom-pages/index.tsx +32 -0
  1613. package/src/lib/plugins/markdown/MdxPage.tsx +238 -62
  1614. package/src/lib/plugins/markdown/assets/ChatGPTLogo.tsx +11 -0
  1615. package/src/lib/plugins/markdown/assets/ClaudeLogo.tsx +19 -0
  1616. package/src/lib/plugins/markdown/index.tsx +39 -12
  1617. package/src/lib/plugins/openapi/CollapsibleCode.tsx +88 -0
  1618. package/src/lib/plugins/openapi/ColorizedParam.tsx +51 -23
  1619. package/src/lib/plugins/openapi/Endpoint.tsx +83 -22
  1620. package/src/lib/plugins/openapi/GeneratedExampleSidecarBox.tsx +52 -0
  1621. package/src/lib/plugins/openapi/MCPEndpoint.tsx +273 -0
  1622. package/src/lib/plugins/openapi/OasProvider.tsx +52 -0
  1623. package/src/lib/plugins/openapi/OperationList.tsx +265 -73
  1624. package/src/lib/plugins/openapi/OperationListItem.tsx +147 -91
  1625. package/src/lib/plugins/openapi/ParamInfos.tsx +91 -0
  1626. package/src/lib/plugins/openapi/ParameterList.tsx +43 -27
  1627. package/src/lib/plugins/openapi/ParameterListItem.tsx +137 -39
  1628. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +28 -5
  1629. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +52 -28
  1630. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +87 -64
  1631. package/src/lib/plugins/openapi/SchemaList.tsx +157 -0
  1632. package/src/lib/plugins/openapi/Sidecar.tsx +236 -174
  1633. package/src/lib/plugins/openapi/SidecarBox.tsx +14 -4
  1634. package/src/lib/plugins/openapi/SidecarExamples.tsx +174 -0
  1635. package/src/lib/plugins/openapi/SimpleSelect.tsx +11 -3
  1636. package/src/lib/plugins/openapi/StaggeredRender.tsx +1 -1
  1637. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1638. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1639. package/src/lib/plugins/openapi/client/createServer.ts +9 -4
  1640. package/src/lib/plugins/openapi/client/useCreateQuery.ts +46 -0
  1641. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1642. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1643. package/src/lib/plugins/openapi/components/NonHighlightedCode.tsx +22 -0
  1644. package/src/lib/plugins/openapi/components/ResponseContent.tsx +114 -0
  1645. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1646. package/src/lib/plugins/openapi/context.tsx +2 -2
  1647. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +12 -19
  1648. package/src/lib/plugins/openapi/graphql/gql.ts +46 -30
  1649. package/src/lib/plugins/openapi/graphql/graphql.ts +438 -598
  1650. package/src/lib/plugins/openapi/index.tsx +161 -157
  1651. package/src/lib/plugins/openapi/interfaces.ts +77 -4
  1652. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +271 -0
  1653. package/src/lib/plugins/openapi/playground/CollapsibleHeader.tsx +51 -0
  1654. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +60 -0
  1655. package/src/lib/plugins/openapi/playground/Headers.tsx +173 -58
  1656. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +75 -0
  1657. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +38 -0
  1658. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +45 -0
  1659. package/src/lib/plugins/openapi/playground/PathParams.tsx +36 -70
  1660. package/src/lib/plugins/openapi/playground/Playground.tsx +464 -263
  1661. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +24 -30
  1662. package/src/lib/plugins/openapi/playground/QueryParams.tsx +102 -112
  1663. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +70 -0
  1664. package/src/lib/plugins/openapi/playground/Spinner.tsx +87 -0
  1665. package/src/lib/plugins/openapi/playground/createUrl.ts +6 -1
  1666. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  1667. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1668. package/src/lib/plugins/openapi/playground/request-panel/MultipartField.tsx +91 -0
  1669. package/src/lib/plugins/openapi/playground/request-panel/UrlPath.tsx +31 -0
  1670. package/src/lib/plugins/openapi/playground/request-panel/UrlQueryParams.tsx +25 -0
  1671. package/src/lib/plugins/openapi/playground/request-panel/fieldManager/useKeyValueFieldManager.test.tsx +872 -0
  1672. package/src/lib/plugins/openapi/playground/request-panel/useKeyValueFieldManager.ts +349 -0
  1673. package/src/lib/plugins/openapi/playground/result-panel/Highlight.tsx +26 -0
  1674. package/src/lib/plugins/openapi/playground/result-panel/ResponseStatusBar.tsx +117 -0
  1675. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +339 -0
  1676. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +102 -0
  1677. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1678. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1679. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +23 -0
  1680. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +223 -0
  1681. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1682. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +183 -0
  1683. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1684. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1685. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1686. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1687. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
  1688. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +175 -0
  1689. package/src/lib/plugins/openapi/schema/SchemaView.tsx +140 -139
  1690. package/src/lib/plugins/openapi/schema/UnionView.tsx +132 -0
  1691. package/src/lib/plugins/openapi/schema/union-helpers.ts +123 -0
  1692. package/src/lib/plugins/openapi/schema/utils.ts +30 -13
  1693. package/src/lib/plugins/openapi/state.ts +36 -0
  1694. package/src/lib/plugins/openapi/util/createHttpSnippet.ts +107 -0
  1695. package/src/lib/plugins/openapi/util/createNavigationCategory.tsx +39 -0
  1696. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +95 -45
  1697. package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
  1698. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1699. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1700. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1701. package/src/lib/plugins/redirect/index.tsx +6 -10
  1702. package/src/lib/plugins/search-inkeep/index.tsx +83 -32
  1703. package/src/lib/plugins/search-inkeep/inkeep.ts +15 -23
  1704. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +163 -0
  1705. package/src/lib/plugins/search-pagefind/ResultList.tsx +113 -0
  1706. package/src/lib/plugins/search-pagefind/get-results.tsx +74 -0
  1707. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1708. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1709. package/src/lib/shiki.ts +161 -0
  1710. package/src/lib/ui/Accordion.tsx +56 -0
  1711. package/src/lib/ui/ActionButton.tsx +30 -0
  1712. package/src/lib/ui/Alert.tsx +65 -0
  1713. package/src/lib/ui/AlertDialog.tsx +139 -0
  1714. package/src/lib/ui/AspectRatio.tsx +5 -0
  1715. package/src/lib/ui/Badge.tsx +46 -0
  1716. package/src/lib/ui/Breadcrumb.tsx +116 -0
  1717. package/src/lib/ui/Button.tsx +14 -8
  1718. package/src/lib/ui/Callout.tsx +47 -21
  1719. package/src/lib/ui/Card.tsx +1 -1
  1720. package/src/lib/ui/Carousel.tsx +260 -0
  1721. package/src/lib/ui/Checkbox.tsx +28 -0
  1722. package/src/lib/ui/CodeBlock.tsx +79 -0
  1723. package/src/lib/ui/Collapsible.tsx +31 -0
  1724. package/src/lib/ui/Command.tsx +191 -0
  1725. package/src/lib/ui/Dialog.tsx +138 -0
  1726. package/src/lib/ui/Drawer.tsx +38 -36
  1727. package/src/lib/ui/DropdownMenu.tsx +4 -4
  1728. package/src/lib/ui/EmbeddedCodeBlock.tsx +99 -0
  1729. package/src/lib/ui/Form.tsx +177 -0
  1730. package/src/lib/ui/Frame.tsx +81 -0
  1731. package/src/lib/ui/HoverCard.tsx +27 -0
  1732. package/src/lib/ui/Input.tsx +2 -3
  1733. package/src/lib/ui/Item.tsx +192 -0
  1734. package/src/lib/ui/Label.tsx +24 -0
  1735. package/src/lib/ui/NativeSelect.tsx +47 -0
  1736. package/src/lib/ui/Pagination.tsx +116 -0
  1737. package/src/lib/ui/Popover.tsx +29 -0
  1738. package/src/lib/ui/Progress.tsx +26 -0
  1739. package/src/lib/ui/RadioGroup.tsx +42 -0
  1740. package/src/lib/ui/ReactComponentDoc.tsx +68 -0
  1741. package/src/lib/ui/ScrollArea.tsx +46 -0
  1742. package/src/lib/ui/Secret.tsx +123 -0
  1743. package/src/lib/ui/Select.tsx +184 -0
  1744. package/src/lib/ui/Separator.tsx +25 -0
  1745. package/src/lib/ui/Skeleton.tsx +15 -0
  1746. package/src/lib/ui/Slider.tsx +26 -0
  1747. package/src/lib/ui/Stepper.tsx +8 -0
  1748. package/src/lib/ui/Switch.tsx +27 -0
  1749. package/src/lib/ui/SyntaxHighlight.tsx +40 -0
  1750. package/src/lib/ui/Tabs.tsx +2 -2
  1751. package/src/lib/ui/Textarea.tsx +23 -0
  1752. package/src/lib/ui/Toggle.tsx +43 -0
  1753. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1754. package/src/lib/ui/Tooltip.tsx +65 -0
  1755. package/src/lib/ui/Value.tsx +42 -0
  1756. package/src/lib/ui/util.tsx +3 -0
  1757. package/src/lib/util/MdxComponents.tsx +58 -26
  1758. package/src/lib/util/cn.ts +1 -1
  1759. package/src/lib/util/createVariantComponent.tsx +33 -7
  1760. package/src/lib/util/detectOS.ts +9 -0
  1761. package/src/lib/util/ensureArray.ts +3 -0
  1762. package/src/lib/util/flattenAllOf.test.ts +637 -0
  1763. package/src/lib/util/flattenAllOf.ts +101 -0
  1764. package/src/lib/util/groupBy.ts +1 -0
  1765. package/src/lib/util/humanFileSize.test.ts +24 -0
  1766. package/src/lib/util/humanFileSize.ts +15 -0
  1767. package/src/lib/util/invariant.ts +18 -3
  1768. package/src/lib/util/joinPath.tsx +3 -0
  1769. package/src/lib/util/joinUrl.test.ts +62 -0
  1770. package/src/lib/util/joinUrl.ts +57 -0
  1771. package/src/lib/util/os.ts +18 -0
  1772. package/src/lib/util/pastellize.ts +4 -4
  1773. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1774. package/src/lib/util/syncZustandState.ts +22 -0
  1775. package/src/lib/util/traverse.ts +70 -0
  1776. package/src/lib/util/types.ts +7 -0
  1777. package/src/lib/util/url.test.ts +51 -0
  1778. package/src/lib/util/url.ts +18 -0
  1779. package/src/lib/util/useCopyToClipboard.ts +17 -0
  1780. package/src/lib/util/useExposedProps.tsx +27 -0
  1781. package/src/lib/util/useIsomorphicLayoutEffect.ts +6 -0
  1782. package/src/lib/util/useLatest.ts +18 -0
  1783. package/src/lib/util/useOnScreen.ts +34 -0
  1784. package/src/lib/util/useScrollToAnchor.ts +51 -40
  1785. package/src/lib/util/useScrollToTop.ts +9 -4
  1786. package/src/shiki/langs/abap.js +1 -0
  1787. package/src/shiki/langs/actionscript-3.js +1 -0
  1788. package/src/shiki/langs/ada.js +1 -0
  1789. package/src/shiki/langs/angular-expression.js +1 -0
  1790. package/src/shiki/langs/angular-html.js +1 -0
  1791. package/src/shiki/langs/angular-inline-style.js +1 -0
  1792. package/src/shiki/langs/angular-inline-template.js +1 -0
  1793. package/src/shiki/langs/angular-let-declaration.js +1 -0
  1794. package/src/shiki/langs/angular-template-blocks.js +1 -0
  1795. package/src/shiki/langs/angular-template.js +1 -0
  1796. package/src/shiki/langs/angular-ts.js +1 -0
  1797. package/src/shiki/langs/apache.js +1 -0
  1798. package/src/shiki/langs/apex.js +1 -0
  1799. package/src/shiki/langs/apl.js +1 -0
  1800. package/src/shiki/langs/applescript.js +1 -0
  1801. package/src/shiki/langs/ara.js +1 -0
  1802. package/src/shiki/langs/asciidoc.js +1 -0
  1803. package/src/shiki/langs/asm.js +1 -0
  1804. package/src/shiki/langs/astro.js +1 -0
  1805. package/src/shiki/langs/awk.js +1 -0
  1806. package/src/shiki/langs/ballerina.js +1 -0
  1807. package/src/shiki/langs/bat.js +1 -0
  1808. package/src/shiki/langs/beancount.js +1 -0
  1809. package/src/shiki/langs/berry.js +1 -0
  1810. package/src/shiki/langs/bibtex.js +1 -0
  1811. package/src/shiki/langs/bicep.js +1 -0
  1812. package/src/shiki/langs/blade.js +1 -0
  1813. package/src/shiki/langs/bsl.js +1 -0
  1814. package/src/shiki/langs/c.js +1 -0
  1815. package/src/shiki/langs/cadence.js +1 -0
  1816. package/src/shiki/langs/cairo.js +1 -0
  1817. package/src/shiki/langs/clarity.js +1 -0
  1818. package/src/shiki/langs/clojure.js +1 -0
  1819. package/src/shiki/langs/cmake.js +1 -0
  1820. package/src/shiki/langs/cobol.js +1 -0
  1821. package/src/shiki/langs/codeowners.js +1 -0
  1822. package/src/shiki/langs/codeql.js +1 -0
  1823. package/src/shiki/langs/coffee.js +1 -0
  1824. package/src/shiki/langs/common-lisp.js +1 -0
  1825. package/src/shiki/langs/coq.js +1 -0
  1826. package/src/shiki/langs/cpp-macro.js +1 -0
  1827. package/src/shiki/langs/cpp.js +1 -0
  1828. package/src/shiki/langs/crystal.js +1 -0
  1829. package/src/shiki/langs/csharp.js +1 -0
  1830. package/src/shiki/langs/css.js +1 -0
  1831. package/src/shiki/langs/csv.js +1 -0
  1832. package/src/shiki/langs/cue.js +1 -0
  1833. package/src/shiki/langs/cypher.js +1 -0
  1834. package/src/shiki/langs/d.js +1 -0
  1835. package/src/shiki/langs/dart.js +1 -0
  1836. package/src/shiki/langs/dax.js +1 -0
  1837. package/src/shiki/langs/desktop.js +1 -0
  1838. package/src/shiki/langs/diff.js +1 -0
  1839. package/src/shiki/langs/docker.js +1 -0
  1840. package/src/shiki/langs/dotenv.js +1 -0
  1841. package/src/shiki/langs/dream-maker.js +1 -0
  1842. package/src/shiki/langs/edge.js +1 -0
  1843. package/src/shiki/langs/elixir.js +1 -0
  1844. package/src/shiki/langs/elm.js +1 -0
  1845. package/src/shiki/langs/emacs-lisp.js +1 -0
  1846. package/src/shiki/langs/erb.js +1 -0
  1847. package/src/shiki/langs/erlang.js +1 -0
  1848. package/src/shiki/langs/es-tag-css.js +1 -0
  1849. package/src/shiki/langs/es-tag-glsl.js +1 -0
  1850. package/src/shiki/langs/es-tag-html.js +1 -0
  1851. package/src/shiki/langs/es-tag-sql.js +1 -0
  1852. package/src/shiki/langs/es-tag-xml.js +1 -0
  1853. package/src/shiki/langs/fennel.js +1 -0
  1854. package/src/shiki/langs/fish.js +1 -0
  1855. package/src/shiki/langs/fluent.js +1 -0
  1856. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  1857. package/src/shiki/langs/fortran-free-form.js +1 -0
  1858. package/src/shiki/langs/fsharp.js +1 -0
  1859. package/src/shiki/langs/gdresource.js +1 -0
  1860. package/src/shiki/langs/gdscript.js +1 -0
  1861. package/src/shiki/langs/gdshader.js +1 -0
  1862. package/src/shiki/langs/genie.js +1 -0
  1863. package/src/shiki/langs/gherkin.js +1 -0
  1864. package/src/shiki/langs/git-commit.js +1 -0
  1865. package/src/shiki/langs/git-rebase.js +1 -0
  1866. package/src/shiki/langs/gleam.js +1 -0
  1867. package/src/shiki/langs/glimmer-js.js +1 -0
  1868. package/src/shiki/langs/glimmer-ts.js +1 -0
  1869. package/src/shiki/langs/glsl.js +1 -0
  1870. package/src/shiki/langs/gnuplot.js +1 -0
  1871. package/src/shiki/langs/go.js +1 -0
  1872. package/src/shiki/langs/graphql.js +1 -0
  1873. package/src/shiki/langs/groovy.js +1 -0
  1874. package/src/shiki/langs/hack.js +1 -0
  1875. package/src/shiki/langs/haml.js +1 -0
  1876. package/src/shiki/langs/handlebars.js +1 -0
  1877. package/src/shiki/langs/haskell.js +1 -0
  1878. package/src/shiki/langs/haxe.js +1 -0
  1879. package/src/shiki/langs/hcl.js +1 -0
  1880. package/src/shiki/langs/hjson.js +1 -0
  1881. package/src/shiki/langs/hlsl.js +1 -0
  1882. package/src/shiki/langs/html-derivative.js +1 -0
  1883. package/src/shiki/langs/html.js +1 -0
  1884. package/src/shiki/langs/http.js +1 -0
  1885. package/src/shiki/langs/hurl.js +1 -0
  1886. package/src/shiki/langs/hxml.js +1 -0
  1887. package/src/shiki/langs/hy.js +1 -0
  1888. package/src/shiki/langs/imba.js +1 -0
  1889. package/src/shiki/langs/ini.js +1 -0
  1890. package/src/shiki/langs/java.js +1 -0
  1891. package/src/shiki/langs/javascript.js +1 -0
  1892. package/src/shiki/langs/jinja-html.js +1 -0
  1893. package/src/shiki/langs/jinja.js +1 -0
  1894. package/src/shiki/langs/jison.js +1 -0
  1895. package/src/shiki/langs/json.js +1 -0
  1896. package/src/shiki/langs/json5.js +1 -0
  1897. package/src/shiki/langs/jsonc.js +1 -0
  1898. package/src/shiki/langs/jsonl.js +1 -0
  1899. package/src/shiki/langs/jsonnet.js +1 -0
  1900. package/src/shiki/langs/jssm.js +1 -0
  1901. package/src/shiki/langs/jsx.js +1 -0
  1902. package/src/shiki/langs/julia.js +1 -0
  1903. package/src/shiki/langs/kdl.js +1 -0
  1904. package/src/shiki/langs/kotlin.js +1 -0
  1905. package/src/shiki/langs/kusto.js +1 -0
  1906. package/src/shiki/langs/latex.js +1 -0
  1907. package/src/shiki/langs/lean.js +1 -0
  1908. package/src/shiki/langs/less.js +1 -0
  1909. package/src/shiki/langs/liquid.js +1 -0
  1910. package/src/shiki/langs/llvm.js +1 -0
  1911. package/src/shiki/langs/log.js +1 -0
  1912. package/src/shiki/langs/logo.js +1 -0
  1913. package/src/shiki/langs/lua.js +1 -0
  1914. package/src/shiki/langs/luau.js +1 -0
  1915. package/src/shiki/langs/make.js +1 -0
  1916. package/src/shiki/langs/markdown-vue.js +1 -0
  1917. package/src/shiki/langs/markdown.js +1 -0
  1918. package/src/shiki/langs/marko.js +1 -0
  1919. package/src/shiki/langs/matlab.js +1 -0
  1920. package/src/shiki/langs/mdc.js +1 -0
  1921. package/src/shiki/langs/mdx.js +1 -0
  1922. package/src/shiki/langs/mermaid.js +1 -0
  1923. package/src/shiki/langs/mipsasm.js +1 -0
  1924. package/src/shiki/langs/mojo.js +1 -0
  1925. package/src/shiki/langs/move.js +1 -0
  1926. package/src/shiki/langs/narrat.js +1 -0
  1927. package/src/shiki/langs/nextflow.js +1 -0
  1928. package/src/shiki/langs/nginx.js +1 -0
  1929. package/src/shiki/langs/nim.js +1 -0
  1930. package/src/shiki/langs/nix.js +1 -0
  1931. package/src/shiki/langs/nushell.js +1 -0
  1932. package/src/shiki/langs/objective-c.js +1 -0
  1933. package/src/shiki/langs/objective-cpp.js +1 -0
  1934. package/src/shiki/langs/ocaml.js +1 -0
  1935. package/src/shiki/langs/pascal.js +1 -0
  1936. package/src/shiki/langs/perl.js +1 -0
  1937. package/src/shiki/langs/php.js +1 -0
  1938. package/src/shiki/langs/pkl.js +1 -0
  1939. package/src/shiki/langs/plsql.js +1 -0
  1940. package/src/shiki/langs/po.js +1 -0
  1941. package/src/shiki/langs/polar.js +1 -0
  1942. package/src/shiki/langs/postcss.js +1 -0
  1943. package/src/shiki/langs/powerquery.js +1 -0
  1944. package/src/shiki/langs/powershell.js +1 -0
  1945. package/src/shiki/langs/prisma.js +1 -0
  1946. package/src/shiki/langs/prolog.js +1 -0
  1947. package/src/shiki/langs/proto.js +1 -0
  1948. package/src/shiki/langs/pug.js +1 -0
  1949. package/src/shiki/langs/puppet.js +1 -0
  1950. package/src/shiki/langs/purescript.js +1 -0
  1951. package/src/shiki/langs/python.js +1 -0
  1952. package/src/shiki/langs/qml.js +1 -0
  1953. package/src/shiki/langs/qmldir.js +1 -0
  1954. package/src/shiki/langs/qss.js +1 -0
  1955. package/src/shiki/langs/r.js +1 -0
  1956. package/src/shiki/langs/racket.js +1 -0
  1957. package/src/shiki/langs/raku.js +1 -0
  1958. package/src/shiki/langs/razor.js +1 -0
  1959. package/src/shiki/langs/reg.js +1 -0
  1960. package/src/shiki/langs/regexp.js +1 -0
  1961. package/src/shiki/langs/rel.js +1 -0
  1962. package/src/shiki/langs/riscv.js +1 -0
  1963. package/src/shiki/langs/rosmsg.js +1 -0
  1964. package/src/shiki/langs/rst.js +1 -0
  1965. package/src/shiki/langs/ruby.js +1 -0
  1966. package/src/shiki/langs/rust.js +1 -0
  1967. package/src/shiki/langs/sas.js +1 -0
  1968. package/src/shiki/langs/sass.js +1 -0
  1969. package/src/shiki/langs/scala.js +1 -0
  1970. package/src/shiki/langs/scheme.js +1 -0
  1971. package/src/shiki/langs/scss.js +1 -0
  1972. package/src/shiki/langs/sdbl.js +1 -0
  1973. package/src/shiki/langs/shaderlab.js +1 -0
  1974. package/src/shiki/langs/shellscript.js +1 -0
  1975. package/src/shiki/langs/shellsession.js +1 -0
  1976. package/src/shiki/langs/smalltalk.js +1 -0
  1977. package/src/shiki/langs/solidity.js +1 -0
  1978. package/src/shiki/langs/soy.js +1 -0
  1979. package/src/shiki/langs/sparql.js +1 -0
  1980. package/src/shiki/langs/splunk.js +1 -0
  1981. package/src/shiki/langs/sql.js +1 -0
  1982. package/src/shiki/langs/ssh-config.js +1 -0
  1983. package/src/shiki/langs/stata.js +1 -0
  1984. package/src/shiki/langs/stylus.js +1 -0
  1985. package/src/shiki/langs/svelte.js +1 -0
  1986. package/src/shiki/langs/swift.js +1 -0
  1987. package/src/shiki/langs/system-verilog.js +1 -0
  1988. package/src/shiki/langs/systemd.js +1 -0
  1989. package/src/shiki/langs/talonscript.js +1 -0
  1990. package/src/shiki/langs/tasl.js +1 -0
  1991. package/src/shiki/langs/tcl.js +1 -0
  1992. package/src/shiki/langs/templ.js +1 -0
  1993. package/src/shiki/langs/terraform.js +1 -0
  1994. package/src/shiki/langs/tex.js +1 -0
  1995. package/src/shiki/langs/toml.js +1 -0
  1996. package/src/shiki/langs/ts-tags.js +1 -0
  1997. package/src/shiki/langs/tsv.js +1 -0
  1998. package/src/shiki/langs/tsx.js +1 -0
  1999. package/src/shiki/langs/turtle.js +1 -0
  2000. package/src/shiki/langs/twig.js +1 -0
  2001. package/src/shiki/langs/typescript.js +1 -0
  2002. package/src/shiki/langs/typespec.js +1 -0
  2003. package/src/shiki/langs/typst.js +1 -0
  2004. package/src/shiki/langs/v.js +1 -0
  2005. package/src/shiki/langs/vala.js +1 -0
  2006. package/src/shiki/langs/vb.js +1 -0
  2007. package/src/shiki/langs/verilog.js +1 -0
  2008. package/src/shiki/langs/vhdl.js +1 -0
  2009. package/src/shiki/langs/viml.js +1 -0
  2010. package/src/shiki/langs/vue-directives.js +1 -0
  2011. package/src/shiki/langs/vue-html.js +1 -0
  2012. package/src/shiki/langs/vue-interpolations.js +1 -0
  2013. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  2014. package/src/shiki/langs/vue-vine.js +1 -0
  2015. package/src/shiki/langs/vue.js +1 -0
  2016. package/src/shiki/langs/vyper.js +1 -0
  2017. package/src/shiki/langs/wasm.js +1 -0
  2018. package/src/shiki/langs/wenyan.js +1 -0
  2019. package/src/shiki/langs/wgsl.js +1 -0
  2020. package/src/shiki/langs/wikitext.js +1 -0
  2021. package/src/shiki/langs/wit.js +1 -0
  2022. package/src/shiki/langs/wolfram.js +1 -0
  2023. package/src/shiki/langs/xml.js +1 -0
  2024. package/src/shiki/langs/xsl.js +1 -0
  2025. package/src/shiki/langs/yaml.js +1 -0
  2026. package/src/shiki/langs/zenscript.js +1 -0
  2027. package/src/shiki/langs/zig.js +1 -0
  2028. package/src/shiki/themes/andromeeda.js +1 -0
  2029. package/src/shiki/themes/aurora-x.js +1 -0
  2030. package/src/shiki/themes/ayu-dark.js +1 -0
  2031. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  2032. package/src/shiki/themes/catppuccin-latte.js +1 -0
  2033. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  2034. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  2035. package/src/shiki/themes/dark-plus.js +1 -0
  2036. package/src/shiki/themes/dracula-soft.js +1 -0
  2037. package/src/shiki/themes/dracula.js +1 -0
  2038. package/src/shiki/themes/everforest-dark.js +1 -0
  2039. package/src/shiki/themes/everforest-light.js +1 -0
  2040. package/src/shiki/themes/github-dark-default.js +1 -0
  2041. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  2042. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  2043. package/src/shiki/themes/github-dark.js +1 -0
  2044. package/src/shiki/themes/github-light-default.js +1 -0
  2045. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  2046. package/src/shiki/themes/github-light.js +1 -0
  2047. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  2048. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  2049. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  2050. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  2051. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  2052. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  2053. package/src/shiki/themes/houston.js +1 -0
  2054. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  2055. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  2056. package/src/shiki/themes/kanagawa-wave.js +1 -0
  2057. package/src/shiki/themes/laserwave.js +1 -0
  2058. package/src/shiki/themes/light-plus.js +1 -0
  2059. package/src/shiki/themes/material-theme-darker.js +1 -0
  2060. package/src/shiki/themes/material-theme-lighter.js +1 -0
  2061. package/src/shiki/themes/material-theme-ocean.js +1 -0
  2062. package/src/shiki/themes/material-theme-palenight.js +1 -0
  2063. package/src/shiki/themes/material-theme.js +1 -0
  2064. package/src/shiki/themes/min-dark.js +1 -0
  2065. package/src/shiki/themes/min-light.js +1 -0
  2066. package/src/shiki/themes/monokai.js +1 -0
  2067. package/src/shiki/themes/night-owl.js +1 -0
  2068. package/src/shiki/themes/nord.js +1 -0
  2069. package/src/shiki/themes/one-dark-pro.js +1 -0
  2070. package/src/shiki/themes/one-light.js +1 -0
  2071. package/src/shiki/themes/plastic.js +1 -0
  2072. package/src/shiki/themes/poimandres.js +1 -0
  2073. package/src/shiki/themes/red.js +1 -0
  2074. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  2075. package/src/shiki/themes/rose-pine-moon.js +1 -0
  2076. package/src/shiki/themes/rose-pine.js +1 -0
  2077. package/src/shiki/themes/slack-dark.js +1 -0
  2078. package/src/shiki/themes/slack-ochin.js +1 -0
  2079. package/src/shiki/themes/snazzy-light.js +1 -0
  2080. package/src/shiki/themes/solarized-dark.js +1 -0
  2081. package/src/shiki/themes/solarized-light.js +1 -0
  2082. package/src/shiki/themes/synthwave-84.js +1 -0
  2083. package/src/shiki/themes/tokyo-night.js +1 -0
  2084. package/src/shiki/themes/vesper.js +1 -0
  2085. package/src/shiki/themes/vitesse-black.js +1 -0
  2086. package/src/shiki/themes/vitesse-dark.js +1 -0
  2087. package/src/shiki/themes/vitesse-light.js +1 -0
  2088. package/LICENSE.md +0 -9
  2089. package/dist/app/tailwind.d.ts +0 -3
  2090. package/dist/app/tailwind.js +0 -65
  2091. package/dist/app/tailwind.js.map +0 -1
  2092. package/dist/config/validators/InputSidebarSchema.d.ts +0 -185
  2093. package/dist/config/validators/InputSidebarSchema.js +0 -73
  2094. package/dist/config/validators/InputSidebarSchema.js.map +0 -1
  2095. package/dist/config/validators/SidebarSchema.d.ts +0 -23
  2096. package/dist/config/validators/SidebarSchema.js +0 -82
  2097. package/dist/config/validators/SidebarSchema.js.map +0 -1
  2098. package/dist/internal.d.ts +0 -1
  2099. package/dist/internal.js +0 -2
  2100. package/dist/internal.js.map +0 -1
  2101. package/dist/lib/components/DevPortal.d.ts +0 -7
  2102. package/dist/lib/components/DevPortal.js +0 -54
  2103. package/dist/lib/components/DevPortal.js.map +0 -1
  2104. package/dist/lib/components/Dialog.d.ts +0 -19
  2105. package/dist/lib/components/Dialog.js +0 -23
  2106. package/dist/lib/components/Dialog.js.map +0 -1
  2107. package/dist/lib/components/Select.d.ts +0 -13
  2108. package/dist/lib/components/Select.js +0 -27
  2109. package/dist/lib/components/Select.js.map +0 -1
  2110. package/dist/lib/components/SlotletProvider.d.ts +0 -9
  2111. package/dist/lib/components/SlotletProvider.js +0 -16
  2112. package/dist/lib/components/SlotletProvider.js.map +0 -1
  2113. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  2114. package/dist/lib/components/SyntaxHighlight.js +0 -50
  2115. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  2116. package/dist/lib/components/context/PluginSystem.js +0 -2
  2117. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  2118. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  2119. package/dist/lib/components/context/ThemeContext.js +0 -7
  2120. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  2121. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  2122. package/dist/lib/components/context/ThemeProvider.js +0 -23
  2123. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  2124. package/dist/lib/components/navigation/Sidebar.d.ts +0 -1
  2125. package/dist/lib/components/navigation/Sidebar.js +0 -14
  2126. package/dist/lib/components/navigation/Sidebar.js.map +0 -1
  2127. package/dist/lib/components/navigation/SidebarBadge.d.ts +0 -23
  2128. package/dist/lib/components/navigation/SidebarBadge.js +0 -24
  2129. package/dist/lib/components/navigation/SidebarBadge.js.map +0 -1
  2130. package/dist/lib/components/navigation/SidebarCategory.d.ts +0 -5
  2131. package/dist/lib/components/navigation/SidebarCategory.js +0 -41
  2132. package/dist/lib/components/navigation/SidebarCategory.js.map +0 -1
  2133. package/dist/lib/components/navigation/SidebarItem.d.ts +0 -12
  2134. package/dist/lib/components/navigation/SidebarItem.js +0 -43
  2135. package/dist/lib/components/navigation/SidebarItem.js.map +0 -1
  2136. package/dist/lib/components/navigation/SidebarWrapper.d.ts +0 -6
  2137. package/dist/lib/components/navigation/SidebarWrapper.js +0 -6
  2138. package/dist/lib/components/navigation/SidebarWrapper.js.map +0 -1
  2139. package/dist/lib/core/DevPortalContext.d.ts +0 -78
  2140. package/dist/lib/core/DevPortalContext.js +0 -49
  2141. package/dist/lib/core/DevPortalContext.js.map +0 -1
  2142. package/dist/lib/plugins/custom-page/index.d.ts +0 -8
  2143. package/dist/lib/plugins/custom-page/index.js +0 -12
  2144. package/dist/lib/plugins/custom-page/index.js.map +0 -1
  2145. package/dist/lib/plugins/markdown/Toc.js +0 -48
  2146. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  2147. package/dist/lib/plugins/markdown/generateRoutes.d.ts +0 -3
  2148. package/dist/lib/plugins/markdown/generateRoutes.js +0 -19
  2149. package/dist/lib/plugins/markdown/generateRoutes.js.map +0 -1
  2150. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  2151. package/dist/lib/plugins/openapi/Route.js +0 -8
  2152. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  2153. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  2154. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  2155. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  2156. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  2157. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  2158. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  2159. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  2160. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  2161. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  2162. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  2163. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  2164. package/dist/lib/plugins/openapi/playground/Editor.d.ts +0 -1
  2165. package/dist/lib/plugins/openapi/playground/Editor.js +0 -5
  2166. package/dist/lib/plugins/openapi/playground/Editor.js.map +0 -1
  2167. package/dist/lib/plugins/openapi/playground/InlineInput.d.ts +0 -4
  2168. package/dist/lib/plugins/openapi/playground/InlineInput.js +0 -3
  2169. package/dist/lib/plugins/openapi/playground/InlineInput.js.map +0 -1
  2170. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  2171. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  2172. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  2173. package/dist/lib/plugins/openapi/playground/UrlDisplay.d.ts +0 -4
  2174. package/dist/lib/plugins/openapi/playground/UrlDisplay.js +0 -22
  2175. package/dist/lib/plugins/openapi/playground/UrlDisplay.js.map +0 -1
  2176. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +0 -9
  2177. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +0 -14
  2178. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +0 -1
  2179. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +0 -6
  2180. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +0 -17
  2181. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +0 -1
  2182. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -7
  2183. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +0 -10
  2184. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +0 -1
  2185. package/dist/lib/plugins/openapi/schema/SchemaComponents.d.ts +0 -13
  2186. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  2187. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  2188. package/dist/lib/plugins/openapi/util/urql.d.ts +0 -7
  2189. package/dist/lib/plugins/openapi/util/urql.js +0 -8
  2190. package/dist/lib/plugins/openapi/util/urql.js.map +0 -1
  2191. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  2192. package/dist/lib/plugins/openapi-worker.js +0 -2
  2193. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  2194. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  2195. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  2196. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  2197. package/dist/lib/themeToggle.d.ts +0 -1
  2198. package/dist/lib/themeToggle.js +0 -7
  2199. package/dist/lib/themeToggle.js.map +0 -1
  2200. package/dist/lib/ui/Note.d.ts +0 -8
  2201. package/dist/lib/ui/Note.js +0 -23
  2202. package/dist/lib/ui/Note.js.map +0 -1
  2203. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  2204. package/dist/lib/util/createWaitForNotify.js +0 -15
  2205. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  2206. package/dist/lib/util/slugify.d.ts +0 -2
  2207. package/dist/lib/util/slugify.js +0 -3
  2208. package/dist/lib/util/slugify.js.map +0 -1
  2209. package/dist/vite/plugin-custom-css.d.ts +0 -6
  2210. package/dist/vite/plugin-custom-css.js +0 -55
  2211. package/dist/vite/plugin-custom-css.js.map +0 -1
  2212. package/dist/vite/plugin-docs.test.js +0 -30
  2213. package/dist/vite/plugin-docs.test.js.map +0 -1
  2214. package/dist/vite/plugin-html-transform.d.ts +0 -2
  2215. package/dist/vite/plugin-html-transform.js +0 -15
  2216. package/dist/vite/plugin-html-transform.js.map +0 -1
  2217. package/dist/vite/plugin-icons.d.ts +0 -3
  2218. package/dist/vite/plugin-icons.js +0 -47
  2219. package/dist/vite/plugin-icons.js.map +0 -1
  2220. package/dist/vite/plugin-sidebar.d.ts +0 -3
  2221. package/dist/vite/plugin-sidebar.js +0 -33
  2222. package/dist/vite/plugin-sidebar.js.map +0 -1
  2223. package/dist/vite/prerender.d.ts +0 -17
  2224. package/dist/vite/prerender.js +0 -87
  2225. package/dist/vite/prerender.js.map +0 -1
  2226. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  2227. package/lib/AuthenticationPlugin-Bx9FK124.js.map +0 -1
  2228. package/lib/CategoryHeading-XnFqN2lJ.js +0 -10
  2229. package/lib/CategoryHeading-XnFqN2lJ.js.map +0 -1
  2230. package/lib/DeveloperHint-FBb2uXJe.js +0 -16
  2231. package/lib/DeveloperHint-FBb2uXJe.js.map +0 -1
  2232. package/lib/ErrorPage-knunPbKI.js +0 -18
  2233. package/lib/ErrorPage-knunPbKI.js.map +0 -1
  2234. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  2235. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  2236. package/lib/Input-BEDZAKw0.js +0 -2198
  2237. package/lib/Input-BEDZAKw0.js.map +0 -1
  2238. package/lib/Markdown-B4aR03g6.js +0 -20279
  2239. package/lib/Markdown-B4aR03g6.js.map +0 -1
  2240. package/lib/MdxPage-BZyQsH8Z.js +0 -172
  2241. package/lib/MdxPage-BZyQsH8Z.js.map +0 -1
  2242. package/lib/OperationList-2NeWEM0u.js +0 -560
  2243. package/lib/OperationList-2NeWEM0u.js.map +0 -1
  2244. package/lib/Route-BZPewmrN.js +0 -14
  2245. package/lib/Route-BZPewmrN.js.map +0 -1
  2246. package/lib/SidebarBadge-COz0hgfa.js +0 -498
  2247. package/lib/SidebarBadge-COz0hgfa.js.map +0 -1
  2248. package/lib/SlotletProvider-DJMaOUDs.js +0 -238
  2249. package/lib/SlotletProvider-DJMaOUDs.js.map +0 -1
  2250. package/lib/Spinner-3cQDBVGr.js +0 -7
  2251. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  2252. package/lib/ZudokuContext-cr-pTRY1.js +0 -1084
  2253. package/lib/ZudokuContext-cr-pTRY1.js.map +0 -1
  2254. package/lib/_commonjsHelpers-BkfeUUK-.js +0 -29
  2255. package/lib/_commonjsHelpers-BkfeUUK-.js.map +0 -1
  2256. package/lib/assets/index-B9EWVYfo.js +0 -4790
  2257. package/lib/assets/index-B9EWVYfo.js.map +0 -1
  2258. package/lib/assets/worker-BvD7B6MG.js +0 -15839
  2259. package/lib/assets/worker-BvD7B6MG.js.map +0 -1
  2260. package/lib/index-1EDgIO6b.js +0 -124
  2261. package/lib/index-1EDgIO6b.js.map +0 -1
  2262. package/lib/index-BG0g4WW0.js +0 -1771
  2263. package/lib/index-BG0g4WW0.js.map +0 -1
  2264. package/lib/index-CLd8ycZz.js +0 -4790
  2265. package/lib/index-CLd8ycZz.js.map +0 -1
  2266. package/lib/index-Dv2KZuEw.js +0 -5685
  2267. package/lib/index-Dv2KZuEw.js.map +0 -1
  2268. package/lib/index-Zezcv0xb.js +0 -2814
  2269. package/lib/index-Zezcv0xb.js.map +0 -1
  2270. package/lib/joinPath-B7kNnUX4.js +0 -8
  2271. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  2272. package/lib/jsx-runtime-B6kdoens.js +0 -635
  2273. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  2274. package/lib/prism-bash.min-DadFsM4Z.js +0 -7
  2275. package/lib/prism-bash.min-DadFsM4Z.js.map +0 -1
  2276. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  2277. package/lib/prism-csharp.min-Yizuc34Y.js.map +0 -1
  2278. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  2279. package/lib/prism-java.min-d5iT_mOd.js.map +0 -1
  2280. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  2281. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  2282. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  2283. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  2284. package/lib/prism-markdown.min-F3U-vPBi.js +0 -61
  2285. package/lib/prism-markdown.min-F3U-vPBi.js.map +0 -1
  2286. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  2287. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  2288. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  2289. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  2290. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  2291. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  2292. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  2293. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  2294. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  2295. package/lib/prism-ruby.min-C7LwcKyz.js.map +0 -1
  2296. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  2297. package/lib/prism-typescript.min-oSVeWCAd.js.map +0 -1
  2298. package/lib/router-D2p7Olpn.js +0 -2971
  2299. package/lib/router-D2p7Olpn.js.map +0 -1
  2300. package/lib/slugify-DbLhpSPt.js +0 -28
  2301. package/lib/slugify-DbLhpSPt.js.map +0 -1
  2302. package/lib/state-lIwt9isb.js +0 -288
  2303. package/lib/state-lIwt9isb.js.map +0 -1
  2304. package/lib/urql-YhcsXYy8.js +0 -1591
  2305. package/lib/urql-YhcsXYy8.js.map +0 -1
  2306. package/lib/utils-ByIc_KIM.js +0 -749
  2307. package/lib/utils-ByIc_KIM.js.map +0 -1
  2308. package/lib/zudoku.openapi-worker.js +0 -16053
  2309. package/lib/zudoku.openapi-worker.js.map +0 -1
  2310. package/lib/zudoku.plugin-custom-page.js +0 -13
  2311. package/lib/zudoku.plugin-custom-page.js.map +0 -1
  2312. package/src/app/tailwind.ts +0 -68
  2313. package/src/lib/components/DevPortal.tsx +0 -111
  2314. package/src/lib/components/Dialog.tsx +0 -119
  2315. package/src/lib/components/Select.tsx +0 -157
  2316. package/src/lib/components/SlotletProvider.tsx +0 -30
  2317. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  2318. package/src/lib/components/context/PluginSystem.ts +0 -0
  2319. package/src/lib/components/context/ThemeContext.tsx +0 -8
  2320. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  2321. package/src/lib/components/navigation/Sidebar.tsx +0 -39
  2322. package/src/lib/components/navigation/SidebarBadge.tsx +0 -43
  2323. package/src/lib/components/navigation/SidebarCategory.tsx +0 -131
  2324. package/src/lib/components/navigation/SidebarItem.tsx +0 -130
  2325. package/src/lib/components/navigation/SidebarWrapper.tsx +0 -26
  2326. package/src/lib/core/DevPortalContext.ts +0 -135
  2327. package/src/lib/plugins/custom-page/index.tsx +0 -22
  2328. package/src/lib/plugins/markdown/Toc.tsx +0 -135
  2329. package/src/lib/plugins/markdown/generateRoutes.tsx +0 -35
  2330. package/src/lib/plugins/openapi/Route.tsx +0 -21
  2331. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -56
  2332. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -80
  2333. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  2334. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  2335. package/src/lib/plugins/openapi/playground/Editor.tsx +0 -4
  2336. package/src/lib/plugins/openapi/playground/InlineInput.tsx +0 -6
  2337. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -77
  2338. package/src/lib/plugins/openapi/playground/UrlDisplay.tsx +0 -32
  2339. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +0 -47
  2340. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +0 -54
  2341. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +0 -30
  2342. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  2343. package/src/lib/plugins/openapi/util/urql.ts +0 -8
  2344. package/src/lib/plugins/openapi-worker.ts +0 -1
  2345. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  2346. package/src/lib/themeToggle.ts +0 -7
  2347. package/src/lib/ui/Note.tsx +0 -58
  2348. package/src/lib/util/createWaitForNotify.ts +0 -18
  2349. package/src/lib/util/slugify.ts +0 -3
  2350. /package/dist/{lib/components/context/PluginSystem.d.ts → config/validators/InputNavigationSchema.test-d.d.ts} +0 -0
  2351. /package/dist/{lib/plugins/openapi/client/worker.d.ts → config/validators/validate.test.d.ts} +0 -0
  2352. /package/dist/{vite/plugin-docs.test.d.ts → lib/auth/issuer.test.d.ts} +0 -0
  2353. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
@@ -0,0 +1,3084 @@
1
+ import { a as Ke, H as He } from "./index.esm-BnYHxCYC.js";
2
+ import { j as a } from "./jsx-runtime-BzflLqGi.js";
3
+ import { S as Ve, r as Je, Q as Zt, n as j, v as ye, w as we, i as I, x as $t, y as jt, z as Pt, A as Ot, B as be, D as ze, E as Et, h as ke, F as xe, G as At, H as Tt, g as St, I as Ge, l as It, a as re, p as Dt, j as Ct } from "./ZudokuContext-BUZ5hkWB.js";
4
+ import { M as Nt } from "./mutation-BSU0xu4m.js";
5
+ import * as D from "react";
6
+ import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Rt, Suspense as Ft } from "react";
7
+ import { t as Ut, S as qt, d as et, b2 as Mt, O as Qt } from "./chunk-PVWAREVJ-BMhpCH5D.js";
8
+ import * as Lt from "react-dom";
9
+ import { a as Bt, u as Wt, P as Kt, H as Ht } from "./index-pMMX55GH.js";
10
+ import { B as tt, R as Vt } from "./RouteGuard-Brz95MSt.js";
11
+ import { CircleFadingArrowUpIcon as Jt, LoaderCircleIcon as Gt, ExternalLink as Yt, PanelLeftIcon as Xt } from "lucide-react";
12
+ import { Button as en } from "./ui/Button.js";
13
+ import { a as C, A as tn, s as nn, N as Ze, f as rn, g as on, T as sn, H as an, E as cn } from "./ErrorAlert-_1Zmhr68.js";
14
+ import { c as E } from "./cn-dYga0KKN.js";
15
+ import { d as A, b as un, c as ln } from "./Drawer-Ci7XwhqT.js";
16
+ import { VisuallyHidden as dn } from "@radix-ui/react-visually-hidden";
17
+ import { S as hn } from "./Spinner-CI6bRyZw.js";
18
+ import { C as fn } from "./CategoryHeading-DhmodDcq.js";
19
+ import { N as pn, R as mn } from "./RouterError-CMaIfdjb.js";
20
+ var gn = class extends Ve {
21
+ constructor(e = {}) {
22
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
23
+ }
24
+ #e;
25
+ build(e, t, n) {
26
+ const r = t.queryKey, o = t.queryHash ?? Je(r, t);
27
+ let s = this.get(o);
28
+ return s || (s = new Zt({
29
+ client: e,
30
+ queryKey: r,
31
+ queryHash: o,
32
+ options: e.defaultQueryOptions(t),
33
+ state: n,
34
+ defaultOptions: e.getQueryDefaults(r)
35
+ }), this.add(s)), s;
36
+ }
37
+ add(e) {
38
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
39
+ type: "added",
40
+ query: e
41
+ }));
42
+ }
43
+ remove(e) {
44
+ const t = this.#e.get(e.queryHash);
45
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({ type: "removed", query: e }));
46
+ }
47
+ clear() {
48
+ j.batch(() => {
49
+ this.getAll().forEach((e) => {
50
+ this.remove(e);
51
+ });
52
+ });
53
+ }
54
+ get(e) {
55
+ return this.#e.get(e);
56
+ }
57
+ getAll() {
58
+ return [...this.#e.values()];
59
+ }
60
+ find(e) {
61
+ const t = { exact: !0, ...e };
62
+ return this.getAll().find(
63
+ (n) => ye(t, n)
64
+ );
65
+ }
66
+ findAll(e = {}) {
67
+ const t = this.getAll();
68
+ return Object.keys(e).length > 0 ? t.filter((n) => ye(e, n)) : t;
69
+ }
70
+ notify(e) {
71
+ j.batch(() => {
72
+ this.listeners.forEach((t) => {
73
+ t(e);
74
+ });
75
+ });
76
+ }
77
+ onFocus() {
78
+ j.batch(() => {
79
+ this.getAll().forEach((e) => {
80
+ e.onFocus();
81
+ });
82
+ });
83
+ }
84
+ onOnline() {
85
+ j.batch(() => {
86
+ this.getAll().forEach((e) => {
87
+ e.onOnline();
88
+ });
89
+ });
90
+ }
91
+ }, vn = class extends Ve {
92
+ constructor(e = {}) {
93
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
94
+ }
95
+ #e;
96
+ #t;
97
+ #n;
98
+ build(e, t, n) {
99
+ const r = new Nt({
100
+ mutationCache: this,
101
+ mutationId: ++this.#n,
102
+ options: e.defaultMutationOptions(t),
103
+ state: n
104
+ });
105
+ return this.add(r), r;
106
+ }
107
+ add(e) {
108
+ this.#e.add(e);
109
+ const t = V(e);
110
+ if (typeof t == "string") {
111
+ const n = this.#t.get(t);
112
+ n ? n.push(e) : this.#t.set(t, [e]);
113
+ }
114
+ this.notify({ type: "added", mutation: e });
115
+ }
116
+ remove(e) {
117
+ if (this.#e.delete(e)) {
118
+ const t = V(e);
119
+ if (typeof t == "string") {
120
+ const n = this.#t.get(t);
121
+ if (n)
122
+ if (n.length > 1) {
123
+ const r = n.indexOf(e);
124
+ r !== -1 && n.splice(r, 1);
125
+ } else n[0] === e && this.#t.delete(t);
126
+ }
127
+ }
128
+ this.notify({ type: "removed", mutation: e });
129
+ }
130
+ canRun(e) {
131
+ const t = V(e);
132
+ if (typeof t == "string") {
133
+ const r = this.#t.get(t)?.find(
134
+ (o) => o.state.status === "pending"
135
+ );
136
+ return !r || r === e;
137
+ } else
138
+ return !0;
139
+ }
140
+ runNext(e) {
141
+ const t = V(e);
142
+ return typeof t == "string" ? this.#t.get(t)?.find((r) => r !== e && r.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
143
+ }
144
+ clear() {
145
+ j.batch(() => {
146
+ this.#e.forEach((e) => {
147
+ this.notify({ type: "removed", mutation: e });
148
+ }), this.#e.clear(), this.#t.clear();
149
+ });
150
+ }
151
+ getAll() {
152
+ return Array.from(this.#e);
153
+ }
154
+ find(e) {
155
+ const t = { exact: !0, ...e };
156
+ return this.getAll().find(
157
+ (n) => we(t, n)
158
+ );
159
+ }
160
+ findAll(e = {}) {
161
+ return this.getAll().filter((t) => we(e, t));
162
+ }
163
+ notify(e) {
164
+ j.batch(() => {
165
+ this.listeners.forEach((t) => {
166
+ t(e);
167
+ });
168
+ });
169
+ }
170
+ resumePausedMutations() {
171
+ const e = this.getAll().filter((t) => t.state.isPaused);
172
+ return j.batch(
173
+ () => Promise.all(
174
+ e.map((t) => t.continue().catch(I))
175
+ )
176
+ );
177
+ }
178
+ };
179
+ function V(e) {
180
+ return e.options.scope?.id;
181
+ }
182
+ function $e(e) {
183
+ return {
184
+ onFetch: (t, n) => {
185
+ const r = t.options, o = t.fetchOptions?.meta?.fetchMore?.direction, s = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
186
+ let u = { pages: [], pageParams: [] }, d = 0;
187
+ const l = async () => {
188
+ let f = !1;
189
+ const g = (m) => {
190
+ Object.defineProperty(m, "signal", {
191
+ enumerable: !0,
192
+ get: () => (t.signal.aborted ? f = !0 : t.signal.addEventListener("abort", () => {
193
+ f = !0;
194
+ }), t.signal)
195
+ });
196
+ }, p = $t(t.options, t.fetchOptions), v = async (m, k, P) => {
197
+ if (f)
198
+ return Promise.reject();
199
+ if (k == null && m.pages.length)
200
+ return Promise.resolve(m);
201
+ const L = (() => {
202
+ const H = {
203
+ client: t.client,
204
+ queryKey: t.queryKey,
205
+ pageParam: k,
206
+ direction: P ? "backward" : "forward",
207
+ meta: t.options.meta
208
+ };
209
+ return g(H), H;
210
+ })(), $ = await p(L), { maxPages: x } = t.options, S = P ? jt : Pt;
211
+ return {
212
+ pages: S(m.pages, $, x),
213
+ pageParams: S(m.pageParams, k, x)
214
+ };
215
+ };
216
+ if (o && s.length) {
217
+ const m = o === "backward", k = m ? _n : je, P = {
218
+ pages: s,
219
+ pageParams: i
220
+ }, Z = k(r, P);
221
+ u = await v(P, Z, m);
222
+ } else {
223
+ const m = e ?? s.length;
224
+ do {
225
+ const k = d === 0 ? i[0] ?? r.initialPageParam : je(r, u);
226
+ if (d > 0 && k == null)
227
+ break;
228
+ u = await v(u, k), d++;
229
+ } while (d < m);
230
+ }
231
+ return u;
232
+ };
233
+ t.options.persister ? t.fetchFn = () => t.options.persister?.(
234
+ l,
235
+ {
236
+ client: t.client,
237
+ queryKey: t.queryKey,
238
+ meta: t.options.meta,
239
+ signal: t.signal
240
+ },
241
+ n
242
+ ) : t.fetchFn = l;
243
+ }
244
+ };
245
+ }
246
+ function je(e, { pages: t, pageParams: n }) {
247
+ const r = t.length - 1;
248
+ return t.length > 0 ? e.getNextPageParam(
249
+ t[r],
250
+ t,
251
+ n[r],
252
+ n
253
+ ) : void 0;
254
+ }
255
+ function _n(e, { pages: t, pageParams: n }) {
256
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
257
+ }
258
+ var yn = class {
259
+ #e;
260
+ #t;
261
+ #n;
262
+ #o;
263
+ #s;
264
+ #r;
265
+ #i;
266
+ #a;
267
+ constructor(e = {}) {
268
+ this.#e = e.queryCache || new gn(), this.#t = e.mutationCache || new vn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
269
+ }
270
+ mount() {
271
+ this.#r++, this.#r === 1 && (this.#i = Ot.subscribe(async (e) => {
272
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
273
+ }), this.#a = be.subscribe(async (e) => {
274
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
275
+ }));
276
+ }
277
+ unmount() {
278
+ this.#r--, this.#r === 0 && (this.#i?.(), this.#i = void 0, this.#a?.(), this.#a = void 0);
279
+ }
280
+ isFetching(e) {
281
+ return this.#e.findAll({ ...e, fetchStatus: "fetching" }).length;
282
+ }
283
+ isMutating(e) {
284
+ return this.#t.findAll({ ...e, status: "pending" }).length;
285
+ }
286
+ /**
287
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
288
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
289
+ *
290
+ * Hint: Do not use this function inside a component, because it won't receive updates.
291
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
292
+ */
293
+ getQueryData(e) {
294
+ const t = this.defaultQueryOptions({ queryKey: e });
295
+ return this.#e.get(t.queryHash)?.state.data;
296
+ }
297
+ ensureQueryData(e) {
298
+ const t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
299
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ze(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
300
+ }
301
+ getQueriesData(e) {
302
+ return this.#e.findAll(e).map(({ queryKey: t, state: n }) => {
303
+ const r = n.data;
304
+ return [t, r];
305
+ });
306
+ }
307
+ setQueryData(e, t, n) {
308
+ const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
309
+ r.queryHash
310
+ )?.state.data, i = Et(t, s);
311
+ if (i !== void 0)
312
+ return this.#e.build(this, r).setData(i, { ...n, manual: !0 });
313
+ }
314
+ setQueriesData(e, t, n) {
315
+ return j.batch(
316
+ () => this.#e.findAll(e).map(({ queryKey: r }) => [
317
+ r,
318
+ this.setQueryData(r, t, n)
319
+ ])
320
+ );
321
+ }
322
+ getQueryState(e) {
323
+ const t = this.defaultQueryOptions({ queryKey: e });
324
+ return this.#e.get(
325
+ t.queryHash
326
+ )?.state;
327
+ }
328
+ removeQueries(e) {
329
+ const t = this.#e;
330
+ j.batch(() => {
331
+ t.findAll(e).forEach((n) => {
332
+ t.remove(n);
333
+ });
334
+ });
335
+ }
336
+ resetQueries(e, t) {
337
+ const n = this.#e;
338
+ return j.batch(() => (n.findAll(e).forEach((r) => {
339
+ r.reset();
340
+ }), this.refetchQueries(
341
+ {
342
+ type: "active",
343
+ ...e
344
+ },
345
+ t
346
+ )));
347
+ }
348
+ cancelQueries(e, t = {}) {
349
+ const n = { revert: !0, ...t }, r = j.batch(
350
+ () => this.#e.findAll(e).map((o) => o.cancel(n))
351
+ );
352
+ return Promise.all(r).then(I).catch(I);
353
+ }
354
+ invalidateQueries(e, t = {}) {
355
+ return j.batch(() => (this.#e.findAll(e).forEach((n) => {
356
+ n.invalidate();
357
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries(
358
+ {
359
+ ...e,
360
+ type: e?.refetchType ?? e?.type ?? "active"
361
+ },
362
+ t
363
+ )));
364
+ }
365
+ refetchQueries(e, t = {}) {
366
+ const n = {
367
+ ...t,
368
+ cancelRefetch: t.cancelRefetch ?? !0
369
+ }, r = j.batch(
370
+ () => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
371
+ let s = o.fetch(void 0, n);
372
+ return n.throwOnError || (s = s.catch(I)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
373
+ })
374
+ );
375
+ return Promise.all(r).then(I);
376
+ }
377
+ fetchQuery(e) {
378
+ const t = this.defaultQueryOptions(e);
379
+ t.retry === void 0 && (t.retry = !1);
380
+ const n = this.#e.build(this, t);
381
+ return n.isStaleByTime(
382
+ ze(t.staleTime, n)
383
+ ) ? n.fetch(t) : Promise.resolve(n.state.data);
384
+ }
385
+ prefetchQuery(e) {
386
+ return this.fetchQuery(e).then(I).catch(I);
387
+ }
388
+ fetchInfiniteQuery(e) {
389
+ return e.behavior = $e(e.pages), this.fetchQuery(e);
390
+ }
391
+ prefetchInfiniteQuery(e) {
392
+ return this.fetchInfiniteQuery(e).then(I).catch(I);
393
+ }
394
+ ensureInfiniteQueryData(e) {
395
+ return e.behavior = $e(e.pages), this.ensureQueryData(e);
396
+ }
397
+ resumePausedMutations() {
398
+ return be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
399
+ }
400
+ getQueryCache() {
401
+ return this.#e;
402
+ }
403
+ getMutationCache() {
404
+ return this.#t;
405
+ }
406
+ getDefaultOptions() {
407
+ return this.#n;
408
+ }
409
+ setDefaultOptions(e) {
410
+ this.#n = e;
411
+ }
412
+ setQueryDefaults(e, t) {
413
+ this.#o.set(ke(e), {
414
+ queryKey: e,
415
+ defaultOptions: t
416
+ });
417
+ }
418
+ getQueryDefaults(e) {
419
+ const t = [...this.#o.values()], n = {};
420
+ return t.forEach((r) => {
421
+ xe(e, r.queryKey) && Object.assign(n, r.defaultOptions);
422
+ }), n;
423
+ }
424
+ setMutationDefaults(e, t) {
425
+ this.#s.set(ke(e), {
426
+ mutationKey: e,
427
+ defaultOptions: t
428
+ });
429
+ }
430
+ getMutationDefaults(e) {
431
+ const t = [...this.#s.values()], n = {};
432
+ return t.forEach((r) => {
433
+ xe(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
434
+ }), n;
435
+ }
436
+ defaultQueryOptions(e) {
437
+ if (e._defaulted)
438
+ return e;
439
+ const t = {
440
+ ...this.#n.queries,
441
+ ...this.getQueryDefaults(e.queryKey),
442
+ ...e,
443
+ _defaulted: !0
444
+ };
445
+ return t.queryHash || (t.queryHash = Je(
446
+ t.queryKey,
447
+ t
448
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === At && (t.enabled = !1), t;
449
+ }
450
+ defaultMutationOptions(e) {
451
+ return e?._defaulted ? e : {
452
+ ...this.#n.mutations,
453
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
454
+ ...e,
455
+ _defaulted: !0
456
+ };
457
+ }
458
+ clear() {
459
+ this.#e.clear(), this.#t.clear();
460
+ }
461
+ };
462
+ function wn(e) {
463
+ return e;
464
+ }
465
+ function Pe(e, t, n) {
466
+ if (typeof t != "object" || t === null)
467
+ return;
468
+ const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? wn, i = t.mutations || [], u = t.queries || [];
469
+ i.forEach(({ state: d, ...l }) => {
470
+ r.build(
471
+ e,
472
+ {
473
+ ...e.getDefaultOptions().hydrate?.mutations,
474
+ ...n?.defaultOptions?.mutations,
475
+ ...l
476
+ },
477
+ d
478
+ );
479
+ }), u.forEach(
480
+ ({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
481
+ const m = p ? Tt(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
482
+ let Z = o.get(f);
483
+ const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
484
+ if (Z) {
485
+ const x = m && // We only need this undefined check to handle older dehydration
486
+ // payloads that might not have dehydratedAt
487
+ v !== void 0 && v > Z.state.dataUpdatedAt;
488
+ if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
489
+ const { fetchStatus: S, ...H } = l;
490
+ Z.setState({
491
+ ...H,
492
+ data: P
493
+ });
494
+ }
495
+ } else
496
+ Z = o.build(
497
+ e,
498
+ {
499
+ ...e.getDefaultOptions().hydrate?.queries,
500
+ ...n?.defaultOptions?.queries,
501
+ queryKey: d,
502
+ queryHash: f,
503
+ meta: g
504
+ },
505
+ // Reset fetch status to idle to avoid
506
+ // query being stuck in fetching state upon hydration
507
+ {
508
+ ...l,
509
+ data: P,
510
+ fetchStatus: "idle",
511
+ status: P !== void 0 ? "success" : l.status
512
+ }
513
+ );
514
+ p && !L && !$ && // Only hydrate if dehydration is newer than any existing data,
515
+ // this is always true for new queries
516
+ (v === void 0 || v > Z.state.dataUpdatedAt) && Z.fetch(void 0, {
517
+ // RSC transformed promises are not thenable
518
+ initialPromise: Promise.resolve(p).then(s)
519
+ });
520
+ }
521
+ );
522
+ }
523
+ var bn = ({
524
+ children: e,
525
+ options: t = {},
526
+ state: n,
527
+ queryClient: r
528
+ }) => {
529
+ const o = St(r), s = D.useRef(t);
530
+ s.current = t;
531
+ const i = D.useMemo(() => {
532
+ if (n) {
533
+ if (typeof n != "object")
534
+ return;
535
+ const u = o.getQueryCache(), d = n.queries || [], l = [], f = [];
536
+ for (const g of d) {
537
+ const p = u.get(g.queryHash);
538
+ p ? (g.state.dataUpdatedAt > p.state.dataUpdatedAt || g.promise && p.state.status !== "pending" && p.state.fetchStatus !== "fetching" && g.dehydratedAt !== void 0 && g.dehydratedAt > p.state.dataUpdatedAt) && f.push(g) : l.push(g);
539
+ }
540
+ if (l.length > 0 && Pe(o, { queries: l }, s.current), f.length > 0)
541
+ return f;
542
+ }
543
+ }, [o, n]);
544
+ return D.useEffect(() => {
545
+ i && Pe(o, { queries: i }, s.current);
546
+ }, [o, i]), e;
547
+ };
548
+ /**
549
+ * react-router v7.8.2
550
+ *
551
+ * Copyright (c) Remix Software Inc.
552
+ *
553
+ * This source code is licensed under the MIT license found in the
554
+ * LICENSE.md file in the root directory of this source tree.
555
+ *
556
+ * @license MIT
557
+ */
558
+ function zn(e) {
559
+ return /* @__PURE__ */ D.createElement(Ut, { flushSync: Lt.flushSync, ...e });
560
+ }
561
+ const kn = new yn({
562
+ defaultOptions: {
563
+ queries: {
564
+ staleTime: 1e3 * 60 * 5
565
+ }
566
+ }
567
+ }), xn = ({
568
+ router: e,
569
+ hydrate: t = !1
570
+ }) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: kn, children: /* @__PURE__ */ a.jsx(bn, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(tt, { value: !1, children: /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(Bt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(zn, { router: e }) }) }) }) }) }) }), Zn = ({
571
+ router: e,
572
+ context: t,
573
+ queryClient: n,
574
+ helmetContext: r,
575
+ bypassProtection: o = !1
576
+ }) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: n, children: /* @__PURE__ */ a.jsx(Ke, { context: r, children: /* @__PURE__ */ a.jsx(tt, { value: o, children: /* @__PURE__ */ a.jsx(qt, { router: e, context: t }) }) }) }) });
577
+ function c(e, t, n) {
578
+ function r(u, d) {
579
+ var l;
580
+ Object.defineProperty(u, "_zod", {
581
+ value: u._zod ?? {},
582
+ enumerable: !1
583
+ }), (l = u._zod).traits ?? (l.traits = /* @__PURE__ */ new Set()), u._zod.traits.add(e), t(u, d);
584
+ for (const f in i.prototype)
585
+ f in u || Object.defineProperty(u, f, { value: i.prototype[f].bind(u) });
586
+ u._zod.constr = i, u._zod.def = d;
587
+ }
588
+ const o = n?.Parent ?? Object;
589
+ class s extends o {
590
+ }
591
+ Object.defineProperty(s, "name", { value: e });
592
+ function i(u) {
593
+ var d;
594
+ const l = n?.Parent ? new s() : this;
595
+ r(l, u), (d = l._zod).deferred ?? (d.deferred = []);
596
+ for (const f of l._zod.deferred)
597
+ f();
598
+ return l;
599
+ }
600
+ return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
601
+ value: (u) => n?.Parent && u instanceof n.Parent ? !0 : u?._zod?.traits?.has(e)
602
+ }), Object.defineProperty(i, "name", { value: e }), i;
603
+ }
604
+ class Q extends Error {
605
+ constructor() {
606
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
607
+ }
608
+ }
609
+ class nt extends Error {
610
+ constructor(t) {
611
+ super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
612
+ }
613
+ }
614
+ const rt = {};
615
+ function R(e) {
616
+ return rt;
617
+ }
618
+ function $n(e) {
619
+ const t = Object.values(e).filter((r) => typeof r == "number");
620
+ return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
621
+ }
622
+ function ue(e, t) {
623
+ return typeof t == "bigint" ? t.toString() : t;
624
+ }
625
+ function he(e) {
626
+ return {
627
+ get value() {
628
+ {
629
+ const t = e();
630
+ return Object.defineProperty(this, "value", { value: t }), t;
631
+ }
632
+ }
633
+ };
634
+ }
635
+ function fe(e) {
636
+ return e == null;
637
+ }
638
+ function pe(e) {
639
+ const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
640
+ return e.slice(t, n);
641
+ }
642
+ const Oe = Symbol("evaluating");
643
+ function _(e, t, n) {
644
+ let r;
645
+ Object.defineProperty(e, t, {
646
+ get() {
647
+ if (r !== Oe)
648
+ return r === void 0 && (r = Oe, r = n()), r;
649
+ },
650
+ set(o) {
651
+ Object.defineProperty(e, t, {
652
+ value: o
653
+ // configurable: true,
654
+ });
655
+ },
656
+ configurable: !0
657
+ });
658
+ }
659
+ function U(e, t, n) {
660
+ Object.defineProperty(e, t, {
661
+ value: n,
662
+ writable: !0,
663
+ enumerable: !0,
664
+ configurable: !0
665
+ });
666
+ }
667
+ function q(...e) {
668
+ const t = {};
669
+ for (const n of e) {
670
+ const r = Object.getOwnPropertyDescriptors(n);
671
+ Object.assign(t, r);
672
+ }
673
+ return Object.defineProperties({}, t);
674
+ }
675
+ function Ee(e) {
676
+ return JSON.stringify(e);
677
+ }
678
+ const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
679
+ };
680
+ function ee(e) {
681
+ return typeof e == "object" && e !== null && !Array.isArray(e);
682
+ }
683
+ const jn = he(() => {
684
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
685
+ return !1;
686
+ try {
687
+ const e = Function;
688
+ return new e(""), !0;
689
+ } catch {
690
+ return !1;
691
+ }
692
+ });
693
+ function B(e) {
694
+ if (ee(e) === !1)
695
+ return !1;
696
+ const t = e.constructor;
697
+ if (t === void 0)
698
+ return !0;
699
+ const n = t.prototype;
700
+ return !(ee(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
701
+ }
702
+ function st(e) {
703
+ return B(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
704
+ }
705
+ const Pn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
706
+ function se(e) {
707
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
708
+ }
709
+ function N(e, t, n) {
710
+ const r = new e._zod.constr(t ?? e._zod.def);
711
+ return (!t || n?.parent) && (r._zod.parent = e), r;
712
+ }
713
+ function h(e) {
714
+ const t = e;
715
+ if (!t)
716
+ return {};
717
+ if (typeof t == "string")
718
+ return { error: () => t };
719
+ if (t?.message !== void 0) {
720
+ if (t?.error !== void 0)
721
+ throw new Error("Cannot specify both `message` and `error` params");
722
+ t.error = t.message;
723
+ }
724
+ return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
725
+ }
726
+ function On(e) {
727
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
728
+ }
729
+ function En(e, t) {
730
+ const n = e._zod.def, r = q(e._zod.def, {
731
+ get shape() {
732
+ const o = {};
733
+ for (const s in t) {
734
+ if (!(s in n.shape))
735
+ throw new Error(`Unrecognized key: "${s}"`);
736
+ t[s] && (o[s] = n.shape[s]);
737
+ }
738
+ return U(this, "shape", o), o;
739
+ },
740
+ checks: []
741
+ });
742
+ return N(e, r);
743
+ }
744
+ function An(e, t) {
745
+ const n = e._zod.def, r = q(e._zod.def, {
746
+ get shape() {
747
+ const o = { ...e._zod.def.shape };
748
+ for (const s in t) {
749
+ if (!(s in n.shape))
750
+ throw new Error(`Unrecognized key: "${s}"`);
751
+ t[s] && delete o[s];
752
+ }
753
+ return U(this, "shape", o), o;
754
+ },
755
+ checks: []
756
+ });
757
+ return N(e, r);
758
+ }
759
+ function Tn(e, t) {
760
+ if (!B(t))
761
+ throw new Error("Invalid input to extend: expected a plain object");
762
+ const n = e._zod.def.checks;
763
+ if (n && n.length > 0)
764
+ throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
765
+ const o = q(e._zod.def, {
766
+ get shape() {
767
+ const s = { ...e._zod.def.shape, ...t };
768
+ return U(this, "shape", s), s;
769
+ },
770
+ checks: []
771
+ });
772
+ return N(e, o);
773
+ }
774
+ function Sn(e, t) {
775
+ if (!B(t))
776
+ throw new Error("Invalid input to safeExtend: expected a plain object");
777
+ const n = {
778
+ ...e._zod.def,
779
+ get shape() {
780
+ const r = { ...e._zod.def.shape, ...t };
781
+ return U(this, "shape", r), r;
782
+ },
783
+ checks: e._zod.def.checks
784
+ };
785
+ return N(e, n);
786
+ }
787
+ function In(e, t) {
788
+ const n = q(e._zod.def, {
789
+ get shape() {
790
+ const r = { ...e._zod.def.shape, ...t._zod.def.shape };
791
+ return U(this, "shape", r), r;
792
+ },
793
+ get catchall() {
794
+ return t._zod.def.catchall;
795
+ },
796
+ checks: []
797
+ // delete existing checks
798
+ });
799
+ return N(e, n);
800
+ }
801
+ function Dn(e, t, n) {
802
+ const r = q(t._zod.def, {
803
+ get shape() {
804
+ const o = t._zod.def.shape, s = { ...o };
805
+ if (n)
806
+ for (const i in n) {
807
+ if (!(i in o))
808
+ throw new Error(`Unrecognized key: "${i}"`);
809
+ n[i] && (s[i] = e ? new e({
810
+ type: "optional",
811
+ innerType: o[i]
812
+ }) : o[i]);
813
+ }
814
+ else
815
+ for (const i in o)
816
+ s[i] = e ? new e({
817
+ type: "optional",
818
+ innerType: o[i]
819
+ }) : o[i];
820
+ return U(this, "shape", s), s;
821
+ },
822
+ checks: []
823
+ });
824
+ return N(t, r);
825
+ }
826
+ function Cn(e, t, n) {
827
+ const r = q(t._zod.def, {
828
+ get shape() {
829
+ const o = t._zod.def.shape, s = { ...o };
830
+ if (n)
831
+ for (const i in n) {
832
+ if (!(i in s))
833
+ throw new Error(`Unrecognized key: "${i}"`);
834
+ n[i] && (s[i] = new e({
835
+ type: "nonoptional",
836
+ innerType: o[i]
837
+ }));
838
+ }
839
+ else
840
+ for (const i in o)
841
+ s[i] = new e({
842
+ type: "nonoptional",
843
+ innerType: o[i]
844
+ });
845
+ return U(this, "shape", s), s;
846
+ },
847
+ checks: []
848
+ });
849
+ return N(t, r);
850
+ }
851
+ function M(e, t = 0) {
852
+ if (e.aborted === !0)
853
+ return !0;
854
+ for (let n = t; n < e.issues.length; n++)
855
+ if (e.issues[n]?.continue !== !0)
856
+ return !0;
857
+ return !1;
858
+ }
859
+ function it(e, t) {
860
+ return t.map((n) => {
861
+ var r;
862
+ return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
863
+ });
864
+ }
865
+ function J(e) {
866
+ return typeof e == "string" ? e : e?.message;
867
+ }
868
+ function F(e, t, n) {
869
+ const r = { ...e, path: e.path ?? [] };
870
+ if (!e.message) {
871
+ const o = J(e.inst?._zod.def?.error?.(e)) ?? J(t?.error?.(e)) ?? J(n.customError?.(e)) ?? J(n.localeError?.(e)) ?? "Invalid input";
872
+ r.message = o;
873
+ }
874
+ return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
875
+ }
876
+ function me(e) {
877
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
878
+ }
879
+ function W(...e) {
880
+ const [t, n, r] = e;
881
+ return typeof t == "string" ? {
882
+ message: t,
883
+ code: "custom",
884
+ input: n,
885
+ inst: r
886
+ } : { ...t };
887
+ }
888
+ const at = (e, t) => {
889
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
890
+ value: e._zod,
891
+ enumerable: !1
892
+ }), Object.defineProperty(e, "issues", {
893
+ value: t,
894
+ enumerable: !1
895
+ }), e.message = JSON.stringify(t, ue, 2), Object.defineProperty(e, "toString", {
896
+ value: () => e.message,
897
+ enumerable: !1
898
+ });
899
+ }, ct = c("$ZodError", at), ut = c("$ZodError", at, { Parent: Error });
900
+ function Nn(e, t = (n) => n.message) {
901
+ const n = {}, r = [];
902
+ for (const o of e.issues)
903
+ o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
904
+ return { formErrors: r, fieldErrors: n };
905
+ }
906
+ function Rn(e, t = (n) => n.message) {
907
+ const n = { _errors: [] }, r = (o) => {
908
+ for (const s of o.issues)
909
+ if (s.code === "invalid_union" && s.errors.length)
910
+ s.errors.map((i) => r({ issues: i }));
911
+ else if (s.code === "invalid_key")
912
+ r({ issues: s.issues });
913
+ else if (s.code === "invalid_element")
914
+ r({ issues: s.issues });
915
+ else if (s.path.length === 0)
916
+ n._errors.push(t(s));
917
+ else {
918
+ let i = n, u = 0;
919
+ for (; u < s.path.length; ) {
920
+ const d = s.path[u];
921
+ u === s.path.length - 1 ? (i[d] = i[d] || { _errors: [] }, i[d]._errors.push(t(s))) : i[d] = i[d] || { _errors: [] }, i = i[d], u++;
922
+ }
923
+ }
924
+ };
925
+ return r(e), n;
926
+ }
927
+ const ge = (e) => (t, n, r, o) => {
928
+ const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
929
+ if (i instanceof Promise)
930
+ throw new Q();
931
+ if (i.issues.length) {
932
+ const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
933
+ throw ot(u, o?.callee), u;
934
+ }
935
+ return i.value;
936
+ }, ve = (e) => async (t, n, r, o) => {
937
+ const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
938
+ let i = t._zod.run({ value: n, issues: [] }, s);
939
+ if (i instanceof Promise && (i = await i), i.issues.length) {
940
+ const u = new (o?.Err ?? e)(i.issues.map((d) => F(d, s, R())));
941
+ throw ot(u, o?.callee), u;
942
+ }
943
+ return i.value;
944
+ }, ie = (e) => (t, n, r) => {
945
+ const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
946
+ if (s instanceof Promise)
947
+ throw new Q();
948
+ return s.issues.length ? {
949
+ success: !1,
950
+ error: new (e ?? ct)(s.issues.map((i) => F(i, o, R())))
951
+ } : { success: !0, data: s.value };
952
+ }, Fn = /* @__PURE__ */ ie(ut), ae = (e) => async (t, n, r) => {
953
+ const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
954
+ let s = t._zod.run({ value: n, issues: [] }, o);
955
+ return s instanceof Promise && (s = await s), s.issues.length ? {
956
+ success: !1,
957
+ error: new e(s.issues.map((i) => F(i, o, R())))
958
+ } : { success: !0, data: s.value };
959
+ }, Un = /* @__PURE__ */ ae(ut), qn = (e) => (t, n, r) => {
960
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
961
+ return ge(e)(t, n, o);
962
+ }, Mn = (e) => (t, n, r) => ge(e)(t, n, r), Qn = (e) => async (t, n, r) => {
963
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
964
+ return ve(e)(t, n, o);
965
+ }, Ln = (e) => async (t, n, r) => ve(e)(t, n, r), Bn = (e) => (t, n, r) => {
966
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
967
+ return ie(e)(t, n, o);
968
+ }, Wn = (e) => (t, n, r) => ie(e)(t, n, r), Kn = (e) => async (t, n, r) => {
969
+ const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
970
+ return ae(e)(t, n, o);
971
+ }, Hn = (e) => async (t, n, r) => ae(e)(t, n, r), Vn = /^[cC][^\s-]{8,}$/, Jn = /^[0-9a-z]+$/, Gn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Yn = /^[0-9a-vA-V]{20}$/, Xn = /^[A-Za-z0-9]{27}$/, er = /^[a-zA-Z0-9_-]{21}$/, tr = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, nr = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Ae = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, rr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, or = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
972
+ function sr() {
973
+ return new RegExp(or, "u");
974
+ }
975
+ const ir = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ar = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, cr = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, ur = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, lr = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, lt = /^[A-Za-z0-9_-]*$/, dr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, hr = /^\+(?:[0-9]){6,14}[0-9]$/, dt = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", fr = /* @__PURE__ */ new RegExp(`^${dt}$`);
976
+ function ht(e) {
977
+ const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
978
+ return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
979
+ }
980
+ function pr(e) {
981
+ return new RegExp(`^${ht(e)}$`);
982
+ }
983
+ function mr(e) {
984
+ const t = ht({ precision: e.precision }), n = ["Z"];
985
+ e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
986
+ const r = `${t}(?:${n.join("|")})`;
987
+ return new RegExp(`^${dt}T(?:${r})$`);
988
+ }
989
+ const gr = (e) => {
990
+ const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
991
+ return new RegExp(`^${t}$`);
992
+ }, vr = /^[^A-Z]*$/, _r = /^[^a-z]*$/, T = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
993
+ var n;
994
+ e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
995
+ }), yr = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
996
+ var n;
997
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
998
+ const o = r.value;
999
+ return !fe(o) && o.length !== void 0;
1000
+ }), e._zod.onattach.push((r) => {
1001
+ const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1002
+ t.maximum < o && (r._zod.bag.maximum = t.maximum);
1003
+ }), e._zod.check = (r) => {
1004
+ const o = r.value;
1005
+ if (o.length <= t.maximum)
1006
+ return;
1007
+ const i = me(o);
1008
+ r.issues.push({
1009
+ origin: i,
1010
+ code: "too_big",
1011
+ maximum: t.maximum,
1012
+ inclusive: !0,
1013
+ input: o,
1014
+ inst: e,
1015
+ continue: !t.abort
1016
+ });
1017
+ };
1018
+ }), wr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
1019
+ var n;
1020
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1021
+ const o = r.value;
1022
+ return !fe(o) && o.length !== void 0;
1023
+ }), e._zod.onattach.push((r) => {
1024
+ const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1025
+ t.minimum > o && (r._zod.bag.minimum = t.minimum);
1026
+ }), e._zod.check = (r) => {
1027
+ const o = r.value;
1028
+ if (o.length >= t.minimum)
1029
+ return;
1030
+ const i = me(o);
1031
+ r.issues.push({
1032
+ origin: i,
1033
+ code: "too_small",
1034
+ minimum: t.minimum,
1035
+ inclusive: !0,
1036
+ input: o,
1037
+ inst: e,
1038
+ continue: !t.abort
1039
+ });
1040
+ };
1041
+ }), br = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
1042
+ var n;
1043
+ T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1044
+ const o = r.value;
1045
+ return !fe(o) && o.length !== void 0;
1046
+ }), e._zod.onattach.push((r) => {
1047
+ const o = r._zod.bag;
1048
+ o.minimum = t.length, o.maximum = t.length, o.length = t.length;
1049
+ }), e._zod.check = (r) => {
1050
+ const o = r.value, s = o.length;
1051
+ if (s === t.length)
1052
+ return;
1053
+ const i = me(o), u = s > t.length;
1054
+ r.issues.push({
1055
+ origin: i,
1056
+ ...u ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
1057
+ inclusive: !0,
1058
+ exact: !0,
1059
+ input: r.value,
1060
+ inst: e,
1061
+ continue: !t.abort
1062
+ });
1063
+ };
1064
+ }), ce = /* @__PURE__ */ c("$ZodCheckStringFormat", (e, t) => {
1065
+ var n, r;
1066
+ T.init(e, t), e._zod.onattach.push((o) => {
1067
+ const s = o._zod.bag;
1068
+ s.format = t.format, t.pattern && (s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(t.pattern));
1069
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (o) => {
1070
+ t.pattern.lastIndex = 0, !t.pattern.test(o.value) && o.issues.push({
1071
+ origin: "string",
1072
+ code: "invalid_format",
1073
+ format: t.format,
1074
+ input: o.value,
1075
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
1076
+ inst: e,
1077
+ continue: !t.abort
1078
+ });
1079
+ }) : (r = e._zod).check ?? (r.check = () => {
1080
+ });
1081
+ }), zr = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
1082
+ ce.init(e, t), e._zod.check = (n) => {
1083
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1084
+ origin: "string",
1085
+ code: "invalid_format",
1086
+ format: "regex",
1087
+ input: n.value,
1088
+ pattern: t.pattern.toString(),
1089
+ inst: e,
1090
+ continue: !t.abort
1091
+ });
1092
+ };
1093
+ }), kr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
1094
+ t.pattern ?? (t.pattern = vr), ce.init(e, t);
1095
+ }), xr = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
1096
+ t.pattern ?? (t.pattern = _r), ce.init(e, t);
1097
+ }), Zr = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
1098
+ T.init(e, t);
1099
+ const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1100
+ t.pattern = r, e._zod.onattach.push((o) => {
1101
+ const s = o._zod.bag;
1102
+ s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
1103
+ }), e._zod.check = (o) => {
1104
+ o.value.includes(t.includes, t.position) || o.issues.push({
1105
+ origin: "string",
1106
+ code: "invalid_format",
1107
+ format: "includes",
1108
+ includes: t.includes,
1109
+ input: o.value,
1110
+ inst: e,
1111
+ continue: !t.abort
1112
+ });
1113
+ };
1114
+ }), $r = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
1115
+ T.init(e, t);
1116
+ const n = new RegExp(`^${se(t.prefix)}.*`);
1117
+ t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1118
+ const o = r._zod.bag;
1119
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
1120
+ }), e._zod.check = (r) => {
1121
+ r.value.startsWith(t.prefix) || r.issues.push({
1122
+ origin: "string",
1123
+ code: "invalid_format",
1124
+ format: "starts_with",
1125
+ prefix: t.prefix,
1126
+ input: r.value,
1127
+ inst: e,
1128
+ continue: !t.abort
1129
+ });
1130
+ };
1131
+ }), jr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
1132
+ T.init(e, t);
1133
+ const n = new RegExp(`.*${se(t.suffix)}$`);
1134
+ t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
1135
+ const o = r._zod.bag;
1136
+ o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
1137
+ }), e._zod.check = (r) => {
1138
+ r.value.endsWith(t.suffix) || r.issues.push({
1139
+ origin: "string",
1140
+ code: "invalid_format",
1141
+ format: "ends_with",
1142
+ suffix: t.suffix,
1143
+ input: r.value,
1144
+ inst: e,
1145
+ continue: !t.abort
1146
+ });
1147
+ };
1148
+ }), Pr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
1149
+ T.init(e, t), e._zod.check = (n) => {
1150
+ n.value = t.tx(n.value);
1151
+ };
1152
+ });
1153
+ class Or {
1154
+ constructor(t = []) {
1155
+ this.content = [], this.indent = 0, this && (this.args = t);
1156
+ }
1157
+ indented(t) {
1158
+ this.indent += 1, t(this), this.indent -= 1;
1159
+ }
1160
+ write(t) {
1161
+ if (typeof t == "function") {
1162
+ t(this, { execution: "sync" }), t(this, { execution: "async" });
1163
+ return;
1164
+ }
1165
+ const r = t.split(`
1166
+ `).filter((i) => i), o = Math.min(...r.map((i) => i.length - i.trimStart().length)), s = r.map((i) => i.slice(o)).map((i) => " ".repeat(this.indent * 2) + i);
1167
+ for (const i of s)
1168
+ this.content.push(i);
1169
+ }
1170
+ compile() {
1171
+ const t = Function, n = this?.args, o = [...(this?.content ?? [""]).map((s) => ` ${s}`)];
1172
+ return new t(...n, o.join(`
1173
+ `));
1174
+ }
1175
+ }
1176
+ const Er = {
1177
+ major: 4,
1178
+ minor: 1,
1179
+ patch: 12
1180
+ }, b = /* @__PURE__ */ c("$ZodType", (e, t) => {
1181
+ var n;
1182
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Er;
1183
+ const r = [...e._zod.def.checks ?? []];
1184
+ e._zod.traits.has("$ZodCheck") && r.unshift(e);
1185
+ for (const o of r)
1186
+ for (const s of o._zod.onattach)
1187
+ s(e);
1188
+ if (r.length === 0)
1189
+ (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
1190
+ e._zod.run = e._zod.parse;
1191
+ });
1192
+ else {
1193
+ const o = (i, u, d) => {
1194
+ let l = M(i), f;
1195
+ for (const g of u) {
1196
+ if (g._zod.def.when) {
1197
+ if (!g._zod.def.when(i))
1198
+ continue;
1199
+ } else if (l)
1200
+ continue;
1201
+ const p = i.issues.length, v = g._zod.check(i);
1202
+ if (v instanceof Promise && d?.async === !1)
1203
+ throw new Q();
1204
+ if (f || v instanceof Promise)
1205
+ f = (f ?? Promise.resolve()).then(async () => {
1206
+ await v, i.issues.length !== p && (l || (l = M(i, p)));
1207
+ });
1208
+ else {
1209
+ if (i.issues.length === p)
1210
+ continue;
1211
+ l || (l = M(i, p));
1212
+ }
1213
+ }
1214
+ return f ? f.then(() => i) : i;
1215
+ }, s = (i, u, d) => {
1216
+ if (M(i))
1217
+ return i.aborted = !0, i;
1218
+ const l = o(u, r, d);
1219
+ if (l instanceof Promise) {
1220
+ if (d.async === !1)
1221
+ throw new Q();
1222
+ return l.then((f) => e._zod.parse(f, d));
1223
+ }
1224
+ return e._zod.parse(l, d);
1225
+ };
1226
+ e._zod.run = (i, u) => {
1227
+ if (u.skipChecks)
1228
+ return e._zod.parse(i, u);
1229
+ if (u.direction === "backward") {
1230
+ const l = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
1231
+ return l instanceof Promise ? l.then((f) => s(f, i, u)) : s(l, i, u);
1232
+ }
1233
+ const d = e._zod.parse(i, u);
1234
+ if (d instanceof Promise) {
1235
+ if (u.async === !1)
1236
+ throw new Q();
1237
+ return d.then((l) => o(l, r, u));
1238
+ }
1239
+ return o(d, r, u);
1240
+ };
1241
+ }
1242
+ e["~standard"] = {
1243
+ validate: (o) => {
1244
+ try {
1245
+ const s = Fn(e, o);
1246
+ return s.success ? { value: s.data } : { issues: s.error?.issues };
1247
+ } catch {
1248
+ return Un(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
1249
+ }
1250
+ },
1251
+ vendor: "zod",
1252
+ version: 1
1253
+ };
1254
+ }), _e = /* @__PURE__ */ c("$ZodString", (e, t) => {
1255
+ b.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? gr(e._zod.bag), e._zod.parse = (n, r) => {
1256
+ if (t.coerce)
1257
+ try {
1258
+ n.value = String(n.value);
1259
+ } catch {
1260
+ }
1261
+ return typeof n.value == "string" || n.issues.push({
1262
+ expected: "string",
1263
+ code: "invalid_type",
1264
+ input: n.value,
1265
+ inst: e
1266
+ }), n;
1267
+ };
1268
+ }), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
1269
+ ce.init(e, t), _e.init(e, t);
1270
+ }), Ar = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
1271
+ t.pattern ?? (t.pattern = nr), y.init(e, t);
1272
+ }), Tr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
1273
+ if (t.version) {
1274
+ const r = {
1275
+ v1: 1,
1276
+ v2: 2,
1277
+ v3: 3,
1278
+ v4: 4,
1279
+ v5: 5,
1280
+ v6: 6,
1281
+ v7: 7,
1282
+ v8: 8
1283
+ }[t.version];
1284
+ if (r === void 0)
1285
+ throw new Error(`Invalid UUID version: "${t.version}"`);
1286
+ t.pattern ?? (t.pattern = Ae(r));
1287
+ } else
1288
+ t.pattern ?? (t.pattern = Ae());
1289
+ y.init(e, t);
1290
+ }), Sr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
1291
+ t.pattern ?? (t.pattern = rr), y.init(e, t);
1292
+ }), Ir = /* @__PURE__ */ c("$ZodURL", (e, t) => {
1293
+ y.init(e, t), e._zod.check = (n) => {
1294
+ try {
1295
+ const r = n.value.trim(), o = new URL(r);
1296
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(o.hostname) || n.issues.push({
1297
+ code: "invalid_format",
1298
+ format: "url",
1299
+ note: "Invalid hostname",
1300
+ pattern: dr.source,
1301
+ input: n.value,
1302
+ inst: e,
1303
+ continue: !t.abort
1304
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(o.protocol.endsWith(":") ? o.protocol.slice(0, -1) : o.protocol) || n.issues.push({
1305
+ code: "invalid_format",
1306
+ format: "url",
1307
+ note: "Invalid protocol",
1308
+ pattern: t.protocol.source,
1309
+ input: n.value,
1310
+ inst: e,
1311
+ continue: !t.abort
1312
+ })), t.normalize ? n.value = o.href : n.value = r;
1313
+ return;
1314
+ } catch {
1315
+ n.issues.push({
1316
+ code: "invalid_format",
1317
+ format: "url",
1318
+ input: n.value,
1319
+ inst: e,
1320
+ continue: !t.abort
1321
+ });
1322
+ }
1323
+ };
1324
+ }), Dr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
1325
+ t.pattern ?? (t.pattern = sr()), y.init(e, t);
1326
+ }), Cr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
1327
+ t.pattern ?? (t.pattern = er), y.init(e, t);
1328
+ }), Nr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
1329
+ t.pattern ?? (t.pattern = Vn), y.init(e, t);
1330
+ }), Rr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
1331
+ t.pattern ?? (t.pattern = Jn), y.init(e, t);
1332
+ }), Fr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
1333
+ t.pattern ?? (t.pattern = Gn), y.init(e, t);
1334
+ }), Ur = /* @__PURE__ */ c("$ZodXID", (e, t) => {
1335
+ t.pattern ?? (t.pattern = Yn), y.init(e, t);
1336
+ }), qr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
1337
+ t.pattern ?? (t.pattern = Xn), y.init(e, t);
1338
+ }), Mr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
1339
+ t.pattern ?? (t.pattern = mr(t)), y.init(e, t);
1340
+ }), Qr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
1341
+ t.pattern ?? (t.pattern = fr), y.init(e, t);
1342
+ }), Lr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
1343
+ t.pattern ?? (t.pattern = pr(t)), y.init(e, t);
1344
+ }), Br = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
1345
+ t.pattern ?? (t.pattern = tr), y.init(e, t);
1346
+ }), Wr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
1347
+ t.pattern ?? (t.pattern = ir), y.init(e, t), e._zod.onattach.push((n) => {
1348
+ const r = n._zod.bag;
1349
+ r.format = "ipv4";
1350
+ });
1351
+ }), Kr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
1352
+ t.pattern ?? (t.pattern = ar), y.init(e, t), e._zod.onattach.push((n) => {
1353
+ const r = n._zod.bag;
1354
+ r.format = "ipv6";
1355
+ }), e._zod.check = (n) => {
1356
+ try {
1357
+ new URL(`http://[${n.value}]`);
1358
+ } catch {
1359
+ n.issues.push({
1360
+ code: "invalid_format",
1361
+ format: "ipv6",
1362
+ input: n.value,
1363
+ inst: e,
1364
+ continue: !t.abort
1365
+ });
1366
+ }
1367
+ };
1368
+ }), Hr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
1369
+ t.pattern ?? (t.pattern = cr), y.init(e, t);
1370
+ }), Vr = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
1371
+ t.pattern ?? (t.pattern = ur), y.init(e, t), e._zod.check = (n) => {
1372
+ const r = n.value.split("/");
1373
+ try {
1374
+ if (r.length !== 2)
1375
+ throw new Error();
1376
+ const [o, s] = r;
1377
+ if (!s)
1378
+ throw new Error();
1379
+ const i = Number(s);
1380
+ if (`${i}` !== s)
1381
+ throw new Error();
1382
+ if (i < 0 || i > 128)
1383
+ throw new Error();
1384
+ new URL(`http://[${o}]`);
1385
+ } catch {
1386
+ n.issues.push({
1387
+ code: "invalid_format",
1388
+ format: "cidrv6",
1389
+ input: n.value,
1390
+ inst: e,
1391
+ continue: !t.abort
1392
+ });
1393
+ }
1394
+ };
1395
+ });
1396
+ function ft(e) {
1397
+ if (e === "")
1398
+ return !0;
1399
+ if (e.length % 4 !== 0)
1400
+ return !1;
1401
+ try {
1402
+ return atob(e), !0;
1403
+ } catch {
1404
+ return !1;
1405
+ }
1406
+ }
1407
+ const Jr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
1408
+ t.pattern ?? (t.pattern = lr), y.init(e, t), e._zod.onattach.push((n) => {
1409
+ n._zod.bag.contentEncoding = "base64";
1410
+ }), e._zod.check = (n) => {
1411
+ ft(n.value) || n.issues.push({
1412
+ code: "invalid_format",
1413
+ format: "base64",
1414
+ input: n.value,
1415
+ inst: e,
1416
+ continue: !t.abort
1417
+ });
1418
+ };
1419
+ });
1420
+ function Gr(e) {
1421
+ if (!lt.test(e))
1422
+ return !1;
1423
+ const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1424
+ return ft(n);
1425
+ }
1426
+ const Yr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
1427
+ t.pattern ?? (t.pattern = lt), y.init(e, t), e._zod.onattach.push((n) => {
1428
+ n._zod.bag.contentEncoding = "base64url";
1429
+ }), e._zod.check = (n) => {
1430
+ Gr(n.value) || n.issues.push({
1431
+ code: "invalid_format",
1432
+ format: "base64url",
1433
+ input: n.value,
1434
+ inst: e,
1435
+ continue: !t.abort
1436
+ });
1437
+ };
1438
+ }), Xr = /* @__PURE__ */ c("$ZodE164", (e, t) => {
1439
+ t.pattern ?? (t.pattern = hr), y.init(e, t);
1440
+ });
1441
+ function eo(e, t = null) {
1442
+ try {
1443
+ const n = e.split(".");
1444
+ if (n.length !== 3)
1445
+ return !1;
1446
+ const [r] = n;
1447
+ if (!r)
1448
+ return !1;
1449
+ const o = JSON.parse(atob(r));
1450
+ return !("typ" in o && o?.typ !== "JWT" || !o.alg || t && (!("alg" in o) || o.alg !== t));
1451
+ } catch {
1452
+ return !1;
1453
+ }
1454
+ }
1455
+ const to = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
1456
+ y.init(e, t), e._zod.check = (n) => {
1457
+ eo(n.value, t.alg) || n.issues.push({
1458
+ code: "invalid_format",
1459
+ format: "jwt",
1460
+ input: n.value,
1461
+ inst: e,
1462
+ continue: !t.abort
1463
+ });
1464
+ };
1465
+ }), no = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
1466
+ b.init(e, t), e._zod.parse = (n) => n;
1467
+ }), ro = /* @__PURE__ */ c("$ZodNever", (e, t) => {
1468
+ b.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1469
+ expected: "never",
1470
+ code: "invalid_type",
1471
+ input: n.value,
1472
+ inst: e
1473
+ }), n);
1474
+ });
1475
+ function Te(e, t, n) {
1476
+ e.issues.length && t.issues.push(...it(n, e.issues)), t.value[n] = e.value;
1477
+ }
1478
+ const oo = /* @__PURE__ */ c("$ZodArray", (e, t) => {
1479
+ b.init(e, t), e._zod.parse = (n, r) => {
1480
+ const o = n.value;
1481
+ if (!Array.isArray(o))
1482
+ return n.issues.push({
1483
+ expected: "array",
1484
+ code: "invalid_type",
1485
+ input: o,
1486
+ inst: e
1487
+ }), n;
1488
+ n.value = Array(o.length);
1489
+ const s = [];
1490
+ for (let i = 0; i < o.length; i++) {
1491
+ const u = o[i], d = t.element._zod.run({
1492
+ value: u,
1493
+ issues: []
1494
+ }, r);
1495
+ d instanceof Promise ? s.push(d.then((l) => Te(l, n, i))) : Te(d, n, i);
1496
+ }
1497
+ return s.length ? Promise.all(s).then(() => n) : n;
1498
+ };
1499
+ });
1500
+ function te(e, t, n, r) {
1501
+ e.issues.length && t.issues.push(...it(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1502
+ }
1503
+ function pt(e) {
1504
+ const t = Object.keys(e.shape);
1505
+ for (const r of t)
1506
+ if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
1507
+ throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
1508
+ const n = On(e.shape);
1509
+ return {
1510
+ ...e,
1511
+ keys: t,
1512
+ keySet: new Set(t),
1513
+ numKeys: t.length,
1514
+ optionalKeys: new Set(n)
1515
+ };
1516
+ }
1517
+ function mt(e, t, n, r, o, s) {
1518
+ const i = [], u = o.keySet, d = o.catchall._zod, l = d.def.type;
1519
+ for (const f of Object.keys(t)) {
1520
+ if (u.has(f))
1521
+ continue;
1522
+ if (l === "never") {
1523
+ i.push(f);
1524
+ continue;
1525
+ }
1526
+ const g = d.run({ value: t[f], issues: [] }, r);
1527
+ g instanceof Promise ? e.push(g.then((p) => te(p, n, f, t))) : te(g, n, f, t);
1528
+ }
1529
+ return i.length && n.issues.push({
1530
+ code: "unrecognized_keys",
1531
+ keys: i,
1532
+ input: t,
1533
+ inst: s
1534
+ }), e.length ? Promise.all(e).then(() => n) : n;
1535
+ }
1536
+ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
1537
+ if (b.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1538
+ const u = t.shape;
1539
+ Object.defineProperty(t, "shape", {
1540
+ get: () => {
1541
+ const d = { ...u };
1542
+ return Object.defineProperty(t, "shape", {
1543
+ value: d
1544
+ }), d;
1545
+ }
1546
+ });
1547
+ }
1548
+ const r = he(() => pt(t));
1549
+ _(e._zod, "propValues", () => {
1550
+ const u = t.shape, d = {};
1551
+ for (const l in u) {
1552
+ const f = u[l]._zod;
1553
+ if (f.values) {
1554
+ d[l] ?? (d[l] = /* @__PURE__ */ new Set());
1555
+ for (const g of f.values)
1556
+ d[l].add(g);
1557
+ }
1558
+ }
1559
+ return d;
1560
+ });
1561
+ const o = ee, s = t.catchall;
1562
+ let i;
1563
+ e._zod.parse = (u, d) => {
1564
+ i ?? (i = r.value);
1565
+ const l = u.value;
1566
+ if (!o(l))
1567
+ return u.issues.push({
1568
+ expected: "object",
1569
+ code: "invalid_type",
1570
+ input: l,
1571
+ inst: e
1572
+ }), u;
1573
+ u.value = {};
1574
+ const f = [], g = i.shape;
1575
+ for (const p of i.keys) {
1576
+ const m = g[p]._zod.run({ value: l[p], issues: [] }, d);
1577
+ m instanceof Promise ? f.push(m.then((k) => te(k, u, p, l))) : te(m, u, p, l);
1578
+ }
1579
+ return s ? mt(f, l, u, d, r.value, e) : f.length ? Promise.all(f).then(() => u) : u;
1580
+ };
1581
+ }), io = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
1582
+ so.init(e, t);
1583
+ const n = e._zod.parse, r = he(() => pt(t)), o = (p) => {
1584
+ const v = new Or(["shape", "payload", "ctx"]), m = r.value, k = ($) => {
1585
+ const x = Ee($);
1586
+ return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
1587
+ };
1588
+ v.write("const input = payload.value;");
1589
+ const P = /* @__PURE__ */ Object.create(null);
1590
+ let Z = 0;
1591
+ for (const $ of m.keys)
1592
+ P[$] = `key_${Z++}`;
1593
+ v.write("const newResult = {};");
1594
+ for (const $ of m.keys) {
1595
+ const x = P[$], S = Ee($);
1596
+ v.write(`const ${x} = ${k($)};`), v.write(`
1597
+ if (${x}.issues.length) {
1598
+ payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
1599
+ ...iss,
1600
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
1601
+ })));
1602
+ }
1603
+
1604
+
1605
+ if (${x}.value === undefined) {
1606
+ if (${S} in input) {
1607
+ newResult[${S}] = undefined;
1608
+ }
1609
+ } else {
1610
+ newResult[${S}] = ${x}.value;
1611
+ }
1612
+
1613
+ `);
1614
+ }
1615
+ v.write("payload.value = newResult;"), v.write("return payload;");
1616
+ const L = v.compile();
1617
+ return ($, x) => L(p, $, x);
1618
+ };
1619
+ let s;
1620
+ const i = ee, u = !rt.jitless, l = u && jn.value, f = t.catchall;
1621
+ let g;
1622
+ e._zod.parse = (p, v) => {
1623
+ g ?? (g = r.value);
1624
+ const m = p.value;
1625
+ return i(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ? mt([], m, p, v, g, e) : p) : n(p, v) : (p.issues.push({
1626
+ expected: "object",
1627
+ code: "invalid_type",
1628
+ input: m,
1629
+ inst: e
1630
+ }), p);
1631
+ };
1632
+ });
1633
+ function Se(e, t, n, r) {
1634
+ for (const s of e)
1635
+ if (s.issues.length === 0)
1636
+ return t.value = s.value, t;
1637
+ const o = e.filter((s) => !M(s));
1638
+ return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
1639
+ code: "invalid_union",
1640
+ input: t.value,
1641
+ inst: n,
1642
+ errors: e.map((s) => s.issues.map((i) => F(i, r, R())))
1643
+ }), t);
1644
+ }
1645
+ const ao = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
1646
+ b.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
1647
+ if (t.options.every((o) => o._zod.values))
1648
+ return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
1649
+ }), _(e._zod, "pattern", () => {
1650
+ if (t.options.every((o) => o._zod.pattern)) {
1651
+ const o = t.options.map((s) => s._zod.pattern);
1652
+ return new RegExp(`^(${o.map((s) => pe(s.source)).join("|")})$`);
1653
+ }
1654
+ });
1655
+ const n = t.options.length === 1, r = t.options[0]._zod.run;
1656
+ e._zod.parse = (o, s) => {
1657
+ if (n)
1658
+ return r(o, s);
1659
+ let i = !1;
1660
+ const u = [];
1661
+ for (const d of t.options) {
1662
+ const l = d._zod.run({
1663
+ value: o.value,
1664
+ issues: []
1665
+ }, s);
1666
+ if (l instanceof Promise)
1667
+ u.push(l), i = !0;
1668
+ else {
1669
+ if (l.issues.length === 0)
1670
+ return l;
1671
+ u.push(l);
1672
+ }
1673
+ }
1674
+ return i ? Promise.all(u).then((d) => Se(d, o, e, s)) : Se(u, o, e, s);
1675
+ };
1676
+ }), co = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
1677
+ b.init(e, t), e._zod.parse = (n, r) => {
1678
+ const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1679
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([d, l]) => Ie(n, d, l)) : Ie(n, s, i);
1680
+ };
1681
+ });
1682
+ function le(e, t) {
1683
+ if (e === t)
1684
+ return { valid: !0, data: e };
1685
+ if (e instanceof Date && t instanceof Date && +e == +t)
1686
+ return { valid: !0, data: e };
1687
+ if (B(e) && B(t)) {
1688
+ const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
1689
+ for (const s of r) {
1690
+ const i = le(e[s], t[s]);
1691
+ if (!i.valid)
1692
+ return {
1693
+ valid: !1,
1694
+ mergeErrorPath: [s, ...i.mergeErrorPath]
1695
+ };
1696
+ o[s] = i.data;
1697
+ }
1698
+ return { valid: !0, data: o };
1699
+ }
1700
+ if (Array.isArray(e) && Array.isArray(t)) {
1701
+ if (e.length !== t.length)
1702
+ return { valid: !1, mergeErrorPath: [] };
1703
+ const n = [];
1704
+ for (let r = 0; r < e.length; r++) {
1705
+ const o = e[r], s = t[r], i = le(o, s);
1706
+ if (!i.valid)
1707
+ return {
1708
+ valid: !1,
1709
+ mergeErrorPath: [r, ...i.mergeErrorPath]
1710
+ };
1711
+ n.push(i.data);
1712
+ }
1713
+ return { valid: !0, data: n };
1714
+ }
1715
+ return { valid: !1, mergeErrorPath: [] };
1716
+ }
1717
+ function Ie(e, t, n) {
1718
+ if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), M(e))
1719
+ return e;
1720
+ const r = le(t.value, n.value);
1721
+ if (!r.valid)
1722
+ throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1723
+ return e.value = r.data, e;
1724
+ }
1725
+ const uo = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
1726
+ b.init(e, t);
1727
+ const n = $n(t.entries), r = new Set(n);
1728
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => Pn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1729
+ const i = o.value;
1730
+ return r.has(i) || o.issues.push({
1731
+ code: "invalid_value",
1732
+ values: n,
1733
+ input: i,
1734
+ inst: e
1735
+ }), o;
1736
+ };
1737
+ }), lo = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
1738
+ b.init(e, t), e._zod.parse = (n, r) => {
1739
+ if (r.direction === "backward")
1740
+ throw new nt(e.constructor.name);
1741
+ const o = t.transform(n.value, n);
1742
+ if (r.async)
1743
+ return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
1744
+ if (o instanceof Promise)
1745
+ throw new Q();
1746
+ return n.value = o, n;
1747
+ };
1748
+ });
1749
+ function De(e, t) {
1750
+ return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1751
+ }
1752
+ const ho = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
1753
+ b.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
1754
+ const n = t.innerType._zod.pattern;
1755
+ return n ? new RegExp(`^(${pe(n.source)})?$`) : void 0;
1756
+ }), e._zod.parse = (n, r) => {
1757
+ if (t.innerType._zod.optin === "optional") {
1758
+ const o = t.innerType._zod.run(n, r);
1759
+ return o instanceof Promise ? o.then((s) => De(s, n.value)) : De(o, n.value);
1760
+ }
1761
+ return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1762
+ };
1763
+ }), fo = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
1764
+ b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
1765
+ const n = t.innerType._zod.pattern;
1766
+ return n ? new RegExp(`^(${pe(n.source)}|null)$`) : void 0;
1767
+ }), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1768
+ }), po = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
1769
+ b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1770
+ if (r.direction === "backward")
1771
+ return t.innerType._zod.run(n, r);
1772
+ if (n.value === void 0)
1773
+ return n.value = t.defaultValue, n;
1774
+ const o = t.innerType._zod.run(n, r);
1775
+ return o instanceof Promise ? o.then((s) => Ce(s, t)) : Ce(o, t);
1776
+ };
1777
+ });
1778
+ function Ce(e, t) {
1779
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1780
+ }
1781
+ const mo = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
1782
+ b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1783
+ }), go = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
1784
+ b.init(e, t), _(e._zod, "values", () => {
1785
+ const n = t.innerType._zod.values;
1786
+ return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1787
+ }), e._zod.parse = (n, r) => {
1788
+ const o = t.innerType._zod.run(n, r);
1789
+ return o instanceof Promise ? o.then((s) => Ne(s, e)) : Ne(o, e);
1790
+ };
1791
+ });
1792
+ function Ne(e, t) {
1793
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1794
+ code: "invalid_type",
1795
+ expected: "nonoptional",
1796
+ input: e.value,
1797
+ inst: t
1798
+ }), e;
1799
+ }
1800
+ const vo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
1801
+ b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1802
+ if (r.direction === "backward")
1803
+ return t.innerType._zod.run(n, r);
1804
+ const o = t.innerType._zod.run(n, r);
1805
+ return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
1806
+ ...n,
1807
+ error: {
1808
+ issues: s.issues.map((i) => F(i, r, R()))
1809
+ },
1810
+ input: n.value
1811
+ }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1812
+ ...n,
1813
+ error: {
1814
+ issues: o.issues.map((s) => F(s, r, R()))
1815
+ },
1816
+ input: n.value
1817
+ }), n.issues = []), n);
1818
+ };
1819
+ }), _o = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
1820
+ b.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1821
+ if (r.direction === "backward") {
1822
+ const s = t.out._zod.run(n, r);
1823
+ return s instanceof Promise ? s.then((i) => G(i, t.in, r)) : G(s, t.in, r);
1824
+ }
1825
+ const o = t.in._zod.run(n, r);
1826
+ return o instanceof Promise ? o.then((s) => G(s, t.out, r)) : G(o, t.out, r);
1827
+ };
1828
+ });
1829
+ function G(e, t, n) {
1830
+ return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
1831
+ }
1832
+ const yo = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
1833
+ b.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
1834
+ if (r.direction === "backward")
1835
+ return t.innerType._zod.run(n, r);
1836
+ const o = t.innerType._zod.run(n, r);
1837
+ return o instanceof Promise ? o.then(Re) : Re(o);
1838
+ };
1839
+ });
1840
+ function Re(e) {
1841
+ return e.value = Object.freeze(e.value), e;
1842
+ }
1843
+ const wo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
1844
+ T.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1845
+ const r = n.value, o = t.fn(r);
1846
+ if (o instanceof Promise)
1847
+ return o.then((s) => Fe(s, n, r, e));
1848
+ Fe(o, n, r, e);
1849
+ };
1850
+ });
1851
+ function Fe(e, t, n, r) {
1852
+ if (!e) {
1853
+ const o = {
1854
+ code: "custom",
1855
+ input: n,
1856
+ inst: r,
1857
+ // incorporates params.error into issue reporting
1858
+ path: [...r._zod.def.path ?? []],
1859
+ // incorporates params.error into issue reporting
1860
+ continue: !r._zod.def.abort
1861
+ // params: inst._zod.def.params,
1862
+ };
1863
+ r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(W(o));
1864
+ }
1865
+ }
1866
+ class bo {
1867
+ constructor() {
1868
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1869
+ }
1870
+ add(t, ...n) {
1871
+ const r = n[0];
1872
+ if (this._map.set(t, r), r && typeof r == "object" && "id" in r) {
1873
+ if (this._idmap.has(r.id))
1874
+ throw new Error(`ID ${r.id} already exists in the registry`);
1875
+ this._idmap.set(r.id, t);
1876
+ }
1877
+ return this;
1878
+ }
1879
+ clear() {
1880
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1881
+ }
1882
+ remove(t) {
1883
+ const n = this._map.get(t);
1884
+ return n && typeof n == "object" && "id" in n && this._idmap.delete(n.id), this._map.delete(t), this;
1885
+ }
1886
+ get(t) {
1887
+ const n = t._zod.parent;
1888
+ if (n) {
1889
+ const r = { ...this.get(n) ?? {} };
1890
+ delete r.id;
1891
+ const o = { ...r, ...this._map.get(t) };
1892
+ return Object.keys(o).length ? o : void 0;
1893
+ }
1894
+ return this._map.get(t);
1895
+ }
1896
+ has(t) {
1897
+ return this._map.has(t);
1898
+ }
1899
+ }
1900
+ function zo() {
1901
+ return new bo();
1902
+ }
1903
+ const Y = /* @__PURE__ */ zo();
1904
+ function ko(e, t) {
1905
+ return new e({
1906
+ type: "string",
1907
+ ...h(t)
1908
+ });
1909
+ }
1910
+ function xo(e, t) {
1911
+ return new e({
1912
+ type: "string",
1913
+ format: "email",
1914
+ check: "string_format",
1915
+ abort: !1,
1916
+ ...h(t)
1917
+ });
1918
+ }
1919
+ function Ue(e, t) {
1920
+ return new e({
1921
+ type: "string",
1922
+ format: "guid",
1923
+ check: "string_format",
1924
+ abort: !1,
1925
+ ...h(t)
1926
+ });
1927
+ }
1928
+ function Zo(e, t) {
1929
+ return new e({
1930
+ type: "string",
1931
+ format: "uuid",
1932
+ check: "string_format",
1933
+ abort: !1,
1934
+ ...h(t)
1935
+ });
1936
+ }
1937
+ function $o(e, t) {
1938
+ return new e({
1939
+ type: "string",
1940
+ format: "uuid",
1941
+ check: "string_format",
1942
+ abort: !1,
1943
+ version: "v4",
1944
+ ...h(t)
1945
+ });
1946
+ }
1947
+ function jo(e, t) {
1948
+ return new e({
1949
+ type: "string",
1950
+ format: "uuid",
1951
+ check: "string_format",
1952
+ abort: !1,
1953
+ version: "v6",
1954
+ ...h(t)
1955
+ });
1956
+ }
1957
+ function Po(e, t) {
1958
+ return new e({
1959
+ type: "string",
1960
+ format: "uuid",
1961
+ check: "string_format",
1962
+ abort: !1,
1963
+ version: "v7",
1964
+ ...h(t)
1965
+ });
1966
+ }
1967
+ function Oo(e, t) {
1968
+ return new e({
1969
+ type: "string",
1970
+ format: "url",
1971
+ check: "string_format",
1972
+ abort: !1,
1973
+ ...h(t)
1974
+ });
1975
+ }
1976
+ function Eo(e, t) {
1977
+ return new e({
1978
+ type: "string",
1979
+ format: "emoji",
1980
+ check: "string_format",
1981
+ abort: !1,
1982
+ ...h(t)
1983
+ });
1984
+ }
1985
+ function Ao(e, t) {
1986
+ return new e({
1987
+ type: "string",
1988
+ format: "nanoid",
1989
+ check: "string_format",
1990
+ abort: !1,
1991
+ ...h(t)
1992
+ });
1993
+ }
1994
+ function To(e, t) {
1995
+ return new e({
1996
+ type: "string",
1997
+ format: "cuid",
1998
+ check: "string_format",
1999
+ abort: !1,
2000
+ ...h(t)
2001
+ });
2002
+ }
2003
+ function So(e, t) {
2004
+ return new e({
2005
+ type: "string",
2006
+ format: "cuid2",
2007
+ check: "string_format",
2008
+ abort: !1,
2009
+ ...h(t)
2010
+ });
2011
+ }
2012
+ function Io(e, t) {
2013
+ return new e({
2014
+ type: "string",
2015
+ format: "ulid",
2016
+ check: "string_format",
2017
+ abort: !1,
2018
+ ...h(t)
2019
+ });
2020
+ }
2021
+ function Do(e, t) {
2022
+ return new e({
2023
+ type: "string",
2024
+ format: "xid",
2025
+ check: "string_format",
2026
+ abort: !1,
2027
+ ...h(t)
2028
+ });
2029
+ }
2030
+ function Co(e, t) {
2031
+ return new e({
2032
+ type: "string",
2033
+ format: "ksuid",
2034
+ check: "string_format",
2035
+ abort: !1,
2036
+ ...h(t)
2037
+ });
2038
+ }
2039
+ function No(e, t) {
2040
+ return new e({
2041
+ type: "string",
2042
+ format: "ipv4",
2043
+ check: "string_format",
2044
+ abort: !1,
2045
+ ...h(t)
2046
+ });
2047
+ }
2048
+ function Ro(e, t) {
2049
+ return new e({
2050
+ type: "string",
2051
+ format: "ipv6",
2052
+ check: "string_format",
2053
+ abort: !1,
2054
+ ...h(t)
2055
+ });
2056
+ }
2057
+ function Fo(e, t) {
2058
+ return new e({
2059
+ type: "string",
2060
+ format: "cidrv4",
2061
+ check: "string_format",
2062
+ abort: !1,
2063
+ ...h(t)
2064
+ });
2065
+ }
2066
+ function Uo(e, t) {
2067
+ return new e({
2068
+ type: "string",
2069
+ format: "cidrv6",
2070
+ check: "string_format",
2071
+ abort: !1,
2072
+ ...h(t)
2073
+ });
2074
+ }
2075
+ function qo(e, t) {
2076
+ return new e({
2077
+ type: "string",
2078
+ format: "base64",
2079
+ check: "string_format",
2080
+ abort: !1,
2081
+ ...h(t)
2082
+ });
2083
+ }
2084
+ function Mo(e, t) {
2085
+ return new e({
2086
+ type: "string",
2087
+ format: "base64url",
2088
+ check: "string_format",
2089
+ abort: !1,
2090
+ ...h(t)
2091
+ });
2092
+ }
2093
+ function Qo(e, t) {
2094
+ return new e({
2095
+ type: "string",
2096
+ format: "e164",
2097
+ check: "string_format",
2098
+ abort: !1,
2099
+ ...h(t)
2100
+ });
2101
+ }
2102
+ function Lo(e, t) {
2103
+ return new e({
2104
+ type: "string",
2105
+ format: "jwt",
2106
+ check: "string_format",
2107
+ abort: !1,
2108
+ ...h(t)
2109
+ });
2110
+ }
2111
+ function Bo(e, t) {
2112
+ return new e({
2113
+ type: "string",
2114
+ format: "datetime",
2115
+ check: "string_format",
2116
+ offset: !1,
2117
+ local: !1,
2118
+ precision: null,
2119
+ ...h(t)
2120
+ });
2121
+ }
2122
+ function Wo(e, t) {
2123
+ return new e({
2124
+ type: "string",
2125
+ format: "date",
2126
+ check: "string_format",
2127
+ ...h(t)
2128
+ });
2129
+ }
2130
+ function Ko(e, t) {
2131
+ return new e({
2132
+ type: "string",
2133
+ format: "time",
2134
+ check: "string_format",
2135
+ precision: null,
2136
+ ...h(t)
2137
+ });
2138
+ }
2139
+ function Ho(e, t) {
2140
+ return new e({
2141
+ type: "string",
2142
+ format: "duration",
2143
+ check: "string_format",
2144
+ ...h(t)
2145
+ });
2146
+ }
2147
+ function Vo(e) {
2148
+ return new e({
2149
+ type: "unknown"
2150
+ });
2151
+ }
2152
+ function Jo(e, t) {
2153
+ return new e({
2154
+ type: "never",
2155
+ ...h(t)
2156
+ });
2157
+ }
2158
+ function gt(e, t) {
2159
+ return new yr({
2160
+ check: "max_length",
2161
+ ...h(t),
2162
+ maximum: e
2163
+ });
2164
+ }
2165
+ function ne(e, t) {
2166
+ return new wr({
2167
+ check: "min_length",
2168
+ ...h(t),
2169
+ minimum: e
2170
+ });
2171
+ }
2172
+ function vt(e, t) {
2173
+ return new br({
2174
+ check: "length_equals",
2175
+ ...h(t),
2176
+ length: e
2177
+ });
2178
+ }
2179
+ function Go(e, t) {
2180
+ return new zr({
2181
+ check: "string_format",
2182
+ format: "regex",
2183
+ ...h(t),
2184
+ pattern: e
2185
+ });
2186
+ }
2187
+ function Yo(e) {
2188
+ return new kr({
2189
+ check: "string_format",
2190
+ format: "lowercase",
2191
+ ...h(e)
2192
+ });
2193
+ }
2194
+ function Xo(e) {
2195
+ return new xr({
2196
+ check: "string_format",
2197
+ format: "uppercase",
2198
+ ...h(e)
2199
+ });
2200
+ }
2201
+ function es(e, t) {
2202
+ return new Zr({
2203
+ check: "string_format",
2204
+ format: "includes",
2205
+ ...h(t),
2206
+ includes: e
2207
+ });
2208
+ }
2209
+ function ts(e, t) {
2210
+ return new $r({
2211
+ check: "string_format",
2212
+ format: "starts_with",
2213
+ ...h(t),
2214
+ prefix: e
2215
+ });
2216
+ }
2217
+ function ns(e, t) {
2218
+ return new jr({
2219
+ check: "string_format",
2220
+ format: "ends_with",
2221
+ ...h(t),
2222
+ suffix: e
2223
+ });
2224
+ }
2225
+ function K(e) {
2226
+ return new Pr({
2227
+ check: "overwrite",
2228
+ tx: e
2229
+ });
2230
+ }
2231
+ function rs(e) {
2232
+ return K((t) => t.normalize(e));
2233
+ }
2234
+ function os() {
2235
+ return K((e) => e.trim());
2236
+ }
2237
+ function ss() {
2238
+ return K((e) => e.toLowerCase());
2239
+ }
2240
+ function is() {
2241
+ return K((e) => e.toUpperCase());
2242
+ }
2243
+ function as(e, t, n) {
2244
+ return new e({
2245
+ type: "array",
2246
+ element: t,
2247
+ // get element() {
2248
+ // return element;
2249
+ // },
2250
+ ...h(n)
2251
+ });
2252
+ }
2253
+ function cs(e, t, n) {
2254
+ return new e({
2255
+ type: "custom",
2256
+ check: "custom",
2257
+ fn: t,
2258
+ ...h(n)
2259
+ });
2260
+ }
2261
+ function us(e) {
2262
+ const t = ls((n) => (n.addIssue = (r) => {
2263
+ if (typeof r == "string")
2264
+ n.issues.push(W(r, n.value, t._zod.def));
2265
+ else {
2266
+ const o = r;
2267
+ o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = n.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), n.issues.push(W(o));
2268
+ }
2269
+ }, e(n.value, n)));
2270
+ return t;
2271
+ }
2272
+ function ls(e, t) {
2273
+ const n = new T({
2274
+ check: "custom",
2275
+ ...h(t)
2276
+ });
2277
+ return n._zod.check = e, n;
2278
+ }
2279
+ const ds = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
2280
+ Mr.init(e, t), w.init(e, t);
2281
+ });
2282
+ function hs(e) {
2283
+ return Bo(ds, e);
2284
+ }
2285
+ const fs = /* @__PURE__ */ c("ZodISODate", (e, t) => {
2286
+ Qr.init(e, t), w.init(e, t);
2287
+ });
2288
+ function ps(e) {
2289
+ return Wo(fs, e);
2290
+ }
2291
+ const ms = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
2292
+ Lr.init(e, t), w.init(e, t);
2293
+ });
2294
+ function gs(e) {
2295
+ return Ko(ms, e);
2296
+ }
2297
+ const vs = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
2298
+ Br.init(e, t), w.init(e, t);
2299
+ });
2300
+ function _s(e) {
2301
+ return Ho(vs, e);
2302
+ }
2303
+ const ys = (e, t) => {
2304
+ ct.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2305
+ format: {
2306
+ value: (n) => Rn(e, n)
2307
+ // enumerable: false,
2308
+ },
2309
+ flatten: {
2310
+ value: (n) => Nn(e, n)
2311
+ // enumerable: false,
2312
+ },
2313
+ addIssue: {
2314
+ value: (n) => {
2315
+ e.issues.push(n), e.message = JSON.stringify(e.issues, ue, 2);
2316
+ }
2317
+ // enumerable: false,
2318
+ },
2319
+ addIssues: {
2320
+ value: (n) => {
2321
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, ue, 2);
2322
+ }
2323
+ // enumerable: false,
2324
+ },
2325
+ isEmpty: {
2326
+ get() {
2327
+ return e.issues.length === 0;
2328
+ }
2329
+ // enumerable: false,
2330
+ }
2331
+ });
2332
+ }, O = c("ZodError", ys, {
2333
+ Parent: Error
2334
+ }), ws = /* @__PURE__ */ ge(O), bs = /* @__PURE__ */ ve(O), zs = /* @__PURE__ */ ie(O), ks = /* @__PURE__ */ ae(O), xs = /* @__PURE__ */ qn(O), Zs = /* @__PURE__ */ Mn(O), $s = /* @__PURE__ */ Qn(O), js = /* @__PURE__ */ Ln(O), Ps = /* @__PURE__ */ Bn(O), Os = /* @__PURE__ */ Wn(O), Es = /* @__PURE__ */ Kn(O), As = /* @__PURE__ */ Hn(O), z = /* @__PURE__ */ c("ZodType", (e, t) => (b.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(q(t, {
2335
+ checks: [
2336
+ ...t.checks ?? [],
2337
+ ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
2338
+ ]
2339
+ })), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => ws(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => zs(e, n, r), e.parseAsync = async (n, r) => bs(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ks(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => xs(e, n, r), e.decode = (n, r) => Zs(e, n, r), e.encodeAsync = async (n, r) => $s(e, n, r), e.decodeAsync = async (n, r) => js(e, n, r), e.safeEncode = (n, r) => Ps(e, n, r), e.safeDecode = (n, r) => Os(e, n, r), e.safeEncodeAsync = async (n, r) => Es(e, n, r), e.safeDecodeAsync = async (n, r) => As(e, n, r), e.refine = (n, r) => e.check(bi(n, r)), e.superRefine = (n) => e.check(zi(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Le(e), e.nullable = () => Be(e), e.nullish = () => Le(Be(e)), e.nonoptional = (n) => pi(e, n), e.array = () => ei(e), e.or = (n) => oi([e, n]), e.and = (n) => ii(e, n), e.transform = (n) => We(e, ci(n)), e.default = (n) => di(e, n), e.prefault = (n) => fi(e, n), e.catch = (n) => gi(e, n), e.pipe = (n) => We(e, n), e.readonly = () => yi(e), e.describe = (n) => {
2340
+ const r = e.clone();
2341
+ return Y.add(r, { description: n }), r;
2342
+ }, Object.defineProperty(e, "description", {
2343
+ get() {
2344
+ return Y.get(e)?.description;
2345
+ },
2346
+ configurable: !0
2347
+ }), e.meta = (...n) => {
2348
+ if (n.length === 0)
2349
+ return Y.get(e);
2350
+ const r = e.clone();
2351
+ return Y.add(r, n[0]), r;
2352
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), _t = /* @__PURE__ */ c("_ZodString", (e, t) => {
2353
+ _e.init(e, t), z.init(e, t);
2354
+ const n = e._zod.bag;
2355
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Go(...r)), e.includes = (...r) => e.check(es(...r)), e.startsWith = (...r) => e.check(ts(...r)), e.endsWith = (...r) => e.check(ns(...r)), e.min = (...r) => e.check(ne(...r)), e.max = (...r) => e.check(gt(...r)), e.length = (...r) => e.check(vt(...r)), e.nonempty = (...r) => e.check(ne(1, ...r)), e.lowercase = (r) => e.check(Yo(r)), e.uppercase = (r) => e.check(Xo(r)), e.trim = () => e.check(os()), e.normalize = (...r) => e.check(rs(...r)), e.toLowerCase = () => e.check(ss()), e.toUpperCase = () => e.check(is());
2356
+ }), Ts = /* @__PURE__ */ c("ZodString", (e, t) => {
2357
+ _e.init(e, t), _t.init(e, t), e.email = (n) => e.check(xo(Ss, n)), e.url = (n) => e.check(Oo(Is, n)), e.jwt = (n) => e.check(Lo(Vs, n)), e.emoji = (n) => e.check(Eo(Ds, n)), e.guid = (n) => e.check(Ue(Me, n)), e.uuid = (n) => e.check(Zo(X, n)), e.uuidv4 = (n) => e.check($o(X, n)), e.uuidv6 = (n) => e.check(jo(X, n)), e.uuidv7 = (n) => e.check(Po(X, n)), e.nanoid = (n) => e.check(Ao(Cs, n)), e.guid = (n) => e.check(Ue(Me, n)), e.cuid = (n) => e.check(To(Ns, n)), e.cuid2 = (n) => e.check(So(Rs, n)), e.ulid = (n) => e.check(Io(Fs, n)), e.base64 = (n) => e.check(qo(Ws, n)), e.base64url = (n) => e.check(Mo(Ks, n)), e.xid = (n) => e.check(Do(Us, n)), e.ksuid = (n) => e.check(Co(qs, n)), e.ipv4 = (n) => e.check(No(Ms, n)), e.ipv6 = (n) => e.check(Ro(Qs, n)), e.cidrv4 = (n) => e.check(Fo(Ls, n)), e.cidrv6 = (n) => e.check(Uo(Bs, n)), e.e164 = (n) => e.check(Qo(Hs, n)), e.datetime = (n) => e.check(hs(n)), e.date = (n) => e.check(ps(n)), e.time = (n) => e.check(gs(n)), e.duration = (n) => e.check(_s(n));
2358
+ });
2359
+ function qe(e) {
2360
+ return ko(Ts, e);
2361
+ }
2362
+ const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
2363
+ y.init(e, t), _t.init(e, t);
2364
+ }), Ss = /* @__PURE__ */ c("ZodEmail", (e, t) => {
2365
+ Sr.init(e, t), w.init(e, t);
2366
+ }), Me = /* @__PURE__ */ c("ZodGUID", (e, t) => {
2367
+ Ar.init(e, t), w.init(e, t);
2368
+ }), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
2369
+ Tr.init(e, t), w.init(e, t);
2370
+ }), Is = /* @__PURE__ */ c("ZodURL", (e, t) => {
2371
+ Ir.init(e, t), w.init(e, t);
2372
+ }), Ds = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
2373
+ Dr.init(e, t), w.init(e, t);
2374
+ }), Cs = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
2375
+ Cr.init(e, t), w.init(e, t);
2376
+ }), Ns = /* @__PURE__ */ c("ZodCUID", (e, t) => {
2377
+ Nr.init(e, t), w.init(e, t);
2378
+ }), Rs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
2379
+ Rr.init(e, t), w.init(e, t);
2380
+ }), Fs = /* @__PURE__ */ c("ZodULID", (e, t) => {
2381
+ Fr.init(e, t), w.init(e, t);
2382
+ }), Us = /* @__PURE__ */ c("ZodXID", (e, t) => {
2383
+ Ur.init(e, t), w.init(e, t);
2384
+ }), qs = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
2385
+ qr.init(e, t), w.init(e, t);
2386
+ }), Ms = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
2387
+ Wr.init(e, t), w.init(e, t);
2388
+ }), Qs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
2389
+ Kr.init(e, t), w.init(e, t);
2390
+ }), Ls = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
2391
+ Hr.init(e, t), w.init(e, t);
2392
+ }), Bs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
2393
+ Vr.init(e, t), w.init(e, t);
2394
+ }), Ws = /* @__PURE__ */ c("ZodBase64", (e, t) => {
2395
+ Jr.init(e, t), w.init(e, t);
2396
+ }), Ks = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
2397
+ Yr.init(e, t), w.init(e, t);
2398
+ }), Hs = /* @__PURE__ */ c("ZodE164", (e, t) => {
2399
+ Xr.init(e, t), w.init(e, t);
2400
+ }), Vs = /* @__PURE__ */ c("ZodJWT", (e, t) => {
2401
+ to.init(e, t), w.init(e, t);
2402
+ }), Js = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
2403
+ no.init(e, t), z.init(e, t);
2404
+ });
2405
+ function Qe() {
2406
+ return Vo(Js);
2407
+ }
2408
+ const Gs = /* @__PURE__ */ c("ZodNever", (e, t) => {
2409
+ ro.init(e, t), z.init(e, t);
2410
+ });
2411
+ function Ys(e) {
2412
+ return Jo(Gs, e);
2413
+ }
2414
+ const Xs = /* @__PURE__ */ c("ZodArray", (e, t) => {
2415
+ oo.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ne(n, r)), e.nonempty = (n) => e.check(ne(1, n)), e.max = (n, r) => e.check(gt(n, r)), e.length = (n, r) => e.check(vt(n, r)), e.unwrap = () => e.element;
2416
+ });
2417
+ function ei(e, t) {
2418
+ return as(Xs, e, t);
2419
+ }
2420
+ const ti = /* @__PURE__ */ c("ZodObject", (e, t) => {
2421
+ io.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => yt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ys() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => Tn(e, n), e.safeExtend = (n) => Sn(e, n), e.merge = (n) => In(e, n), e.pick = (n) => En(e, n), e.omit = (n) => An(e, n), e.partial = (...n) => Dn(wt, e, n[0]), e.required = (...n) => Cn(bt, e, n[0]);
2422
+ });
2423
+ function ni(e, t) {
2424
+ const n = {
2425
+ type: "object",
2426
+ shape: e ?? {},
2427
+ ...h(t)
2428
+ };
2429
+ return new ti(n);
2430
+ }
2431
+ const ri = /* @__PURE__ */ c("ZodUnion", (e, t) => {
2432
+ ao.init(e, t), z.init(e, t), e.options = t.options;
2433
+ });
2434
+ function oi(e, t) {
2435
+ return new ri({
2436
+ type: "union",
2437
+ options: e,
2438
+ ...h(t)
2439
+ });
2440
+ }
2441
+ const si = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
2442
+ co.init(e, t), z.init(e, t);
2443
+ });
2444
+ function ii(e, t) {
2445
+ return new si({
2446
+ type: "intersection",
2447
+ left: e,
2448
+ right: t
2449
+ });
2450
+ }
2451
+ const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
2452
+ uo.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
2453
+ const n = new Set(Object.keys(t.entries));
2454
+ e.extract = (r, o) => {
2455
+ const s = {};
2456
+ for (const i of r)
2457
+ if (n.has(i))
2458
+ s[i] = t.entries[i];
2459
+ else
2460
+ throw new Error(`Key ${i} not found in enum`);
2461
+ return new de({
2462
+ ...t,
2463
+ checks: [],
2464
+ ...h(o),
2465
+ entries: s
2466
+ });
2467
+ }, e.exclude = (r, o) => {
2468
+ const s = { ...t.entries };
2469
+ for (const i of r)
2470
+ if (n.has(i))
2471
+ delete s[i];
2472
+ else
2473
+ throw new Error(`Key ${i} not found in enum`);
2474
+ return new de({
2475
+ ...t,
2476
+ checks: [],
2477
+ ...h(o),
2478
+ entries: s
2479
+ });
2480
+ };
2481
+ });
2482
+ function yt(e, t) {
2483
+ const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
2484
+ return new de({
2485
+ type: "enum",
2486
+ entries: n,
2487
+ ...h(t)
2488
+ });
2489
+ }
2490
+ const ai = /* @__PURE__ */ c("ZodTransform", (e, t) => {
2491
+ lo.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
2492
+ if (r.direction === "backward")
2493
+ throw new nt(e.constructor.name);
2494
+ n.addIssue = (s) => {
2495
+ if (typeof s == "string")
2496
+ n.issues.push(W(s, n.value, t));
2497
+ else {
2498
+ const i = s;
2499
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(W(i));
2500
+ }
2501
+ };
2502
+ const o = t.transform(n.value, n);
2503
+ return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
2504
+ };
2505
+ });
2506
+ function ci(e) {
2507
+ return new ai({
2508
+ type: "transform",
2509
+ transform: e
2510
+ });
2511
+ }
2512
+ const wt = /* @__PURE__ */ c("ZodOptional", (e, t) => {
2513
+ ho.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2514
+ });
2515
+ function Le(e) {
2516
+ return new wt({
2517
+ type: "optional",
2518
+ innerType: e
2519
+ });
2520
+ }
2521
+ const ui = /* @__PURE__ */ c("ZodNullable", (e, t) => {
2522
+ fo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2523
+ });
2524
+ function Be(e) {
2525
+ return new ui({
2526
+ type: "nullable",
2527
+ innerType: e
2528
+ });
2529
+ }
2530
+ const li = /* @__PURE__ */ c("ZodDefault", (e, t) => {
2531
+ po.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2532
+ });
2533
+ function di(e, t) {
2534
+ return new li({
2535
+ type: "default",
2536
+ innerType: e,
2537
+ get defaultValue() {
2538
+ return typeof t == "function" ? t() : st(t);
2539
+ }
2540
+ });
2541
+ }
2542
+ const hi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
2543
+ mo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2544
+ });
2545
+ function fi(e, t) {
2546
+ return new hi({
2547
+ type: "prefault",
2548
+ innerType: e,
2549
+ get defaultValue() {
2550
+ return typeof t == "function" ? t() : st(t);
2551
+ }
2552
+ });
2553
+ }
2554
+ const bt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
2555
+ go.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2556
+ });
2557
+ function pi(e, t) {
2558
+ return new bt({
2559
+ type: "nonoptional",
2560
+ innerType: e,
2561
+ ...h(t)
2562
+ });
2563
+ }
2564
+ const mi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
2565
+ vo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2566
+ });
2567
+ function gi(e, t) {
2568
+ return new mi({
2569
+ type: "catch",
2570
+ innerType: e,
2571
+ catchValue: typeof t == "function" ? t : () => t
2572
+ });
2573
+ }
2574
+ const vi = /* @__PURE__ */ c("ZodPipe", (e, t) => {
2575
+ _o.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
2576
+ });
2577
+ function We(e, t) {
2578
+ return new vi({
2579
+ type: "pipe",
2580
+ in: e,
2581
+ out: t
2582
+ // ...util.normalizeParams(params),
2583
+ });
2584
+ }
2585
+ const _i = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
2586
+ yo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
2587
+ });
2588
+ function yi(e) {
2589
+ return new _i({
2590
+ type: "readonly",
2591
+ innerType: e
2592
+ });
2593
+ }
2594
+ const wi = /* @__PURE__ */ c("ZodCustom", (e, t) => {
2595
+ wo.init(e, t), z.init(e, t);
2596
+ });
2597
+ function bi(e, t = {}) {
2598
+ return cs(wi, e, t);
2599
+ }
2600
+ function zi(e) {
2601
+ return us(e);
2602
+ }
2603
+ const ki = ni({
2604
+ buildId: qe(),
2605
+ timestamp: qe(),
2606
+ status: yt(["in-progress", "success", "failed"])
2607
+ }), xi = ({
2608
+ buildId: e,
2609
+ environmentType: t,
2610
+ endpoint: n = "/__zuplo/docs"
2611
+ }) => {
2612
+ const r = It({
2613
+ queryKey: ["zuplo-build-check", e, n],
2614
+ refetchInterval: 3e3,
2615
+ enabled: e !== void 0 && t === "WORKING_COPY",
2616
+ retry: !1,
2617
+ queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
2618
+ if (!s.ok) throw new Error("Failed to fetch build status");
2619
+ return s.json();
2620
+ }).then((s) => ki.parse(s))
2621
+ });
2622
+ if (oe(() => {
2623
+ r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
2624
+ }, [r.data]), r.isError || !r.data || r.data.buildId === e)
2625
+ return null;
2626
+ const o = r.data.status === "success";
2627
+ return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
2628
+ o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2629
+ /* @__PURE__ */ a.jsx(Jt, { size: 16 }),
2630
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
2631
+ ] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
2632
+ /* @__PURE__ */ a.jsx(Gt, { size: 16, className: "animate-spin" }),
2633
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
2634
+ ] }),
2635
+ /* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
2636
+ o && /* @__PURE__ */ a.jsx(
2637
+ en,
2638
+ {
2639
+ variant: "outline",
2640
+ size: "sm",
2641
+ className: "w-full",
2642
+ onClick: () => {
2643
+ window.location.reload();
2644
+ },
2645
+ children: "Reload"
2646
+ }
2647
+ )
2648
+ ] });
2649
+ }, Zi = () => {
2650
+ const e = et(), t = Xe(e.pathname);
2651
+ oe(() => {
2652
+ const n = t.current !== e.pathname, r = e.hash !== "";
2653
+ n && !r && window.scrollTo(0, 0), t.current = e.pathname;
2654
+ }, [e.pathname, e.hash]);
2655
+ }, $i = ({
2656
+ icon: e
2657
+ }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
2658
+ "img",
2659
+ {
2660
+ src: `https://cdn.simpleicons.org/${e}/000000/ffffff`,
2661
+ className: "size-5",
2662
+ alt: e
2663
+ }
2664
+ ) : e, ji = (e) => /^https?:/.test(e), Pi = () => {
2665
+ const { site: e } = Wt(), t = e?.footer;
2666
+ return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
2667
+ /* @__PURE__ */ a.jsxs(
2668
+ "div",
2669
+ {
2670
+ className: E("flex flex-row gap-8", {
2671
+ "justify-center": !t.position || t.position === "center",
2672
+ "justify-start": t.position === "start",
2673
+ "justify-end": t.position === "end"
2674
+ }),
2675
+ children: [
2676
+ /* @__PURE__ */ a.jsx(C.Target, { name: "footer-before" }),
2677
+ t.columns && /* @__PURE__ */ a.jsx(
2678
+ "div",
2679
+ {
2680
+ className: "w-full md:max-w-screen-md grid grid-cols-[1fr_1fr] gap-8 md:grid-cols-[repeat(var(--columns),minmax(0,1fr))]",
2681
+ style: { "--columns": t.columns.length },
2682
+ children: t.columns.map((n) => /* @__PURE__ */ a.jsxs(
2683
+ "div",
2684
+ {
2685
+ className: E({
2686
+ "justify-self-center": !n.position || n.position === "center",
2687
+ "justify-self-start": n.position === "start",
2688
+ "justify-self-end": n.position === "end"
2689
+ }),
2690
+ children: [
2691
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
2692
+ /* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
2693
+ const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
2694
+ return /* @__PURE__ */ a.jsx("li", { children: ji(r.href) ? /* @__PURE__ */ a.jsxs(
2695
+ "a",
2696
+ {
2697
+ href: r.href,
2698
+ target: "_blank",
2699
+ rel: "noopener noreferrer",
2700
+ className: o,
2701
+ children: [
2702
+ /* @__PURE__ */ a.jsx("span", { children: r.label }),
2703
+ /* @__PURE__ */ a.jsx(Yt, { size: 12 })
2704
+ ]
2705
+ }
2706
+ ) : /* @__PURE__ */ a.jsx(tn, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
2707
+ }) })
2708
+ ]
2709
+ },
2710
+ n.title
2711
+ ))
2712
+ }
2713
+ ),
2714
+ /* @__PURE__ */ a.jsx(C.Target, { name: "footer-after" })
2715
+ ]
2716
+ }
2717
+ ),
2718
+ /* @__PURE__ */ a.jsxs(
2719
+ "div",
2720
+ {
2721
+ className: E(
2722
+ "flex items-center justify-between",
2723
+ t.columns && "border-t mt-8 pt-8"
2724
+ ),
2725
+ children: [
2726
+ t.logo && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2727
+ /* @__PURE__ */ a.jsx(
2728
+ "img",
2729
+ {
2730
+ src: t.logo.src.light,
2731
+ alt: t.logo.alt,
2732
+ className: "w-8 dark:hidden",
2733
+ style: { width: t.logo.width }
2734
+ }
2735
+ ),
2736
+ /* @__PURE__ */ a.jsx(
2737
+ "img",
2738
+ {
2739
+ src: t.logo.src.dark,
2740
+ alt: t.logo.alt,
2741
+ className: "w-8 hidden dark:block",
2742
+ style: { width: t.logo.width }
2743
+ }
2744
+ )
2745
+ ] }),
2746
+ t.copyright && /* @__PURE__ */ a.jsx("p", { className: "text-sm text-muted-foreground", children: t.copyright }),
2747
+ /* @__PURE__ */ a.jsx("div", { className: "flex items-center gap-2", children: t.social?.map((n) => /* @__PURE__ */ a.jsxs(
2748
+ "a",
2749
+ {
2750
+ href: n.href,
2751
+ target: "_blank",
2752
+ rel: "noopener noreferrer",
2753
+ className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
2754
+ children: [
2755
+ /* @__PURE__ */ a.jsx($i, { icon: n.icon }),
2756
+ n.label
2757
+ ]
2758
+ },
2759
+ n.href
2760
+ )) })
2761
+ ]
2762
+ }
2763
+ )
2764
+ ] }) }) : null;
2765
+ }, zt = ({
2766
+ shouldScaleBackground: e = !0,
2767
+ ...t
2768
+ }) => /* @__PURE__ */ a.jsx(
2769
+ A.Root,
2770
+ {
2771
+ shouldScaleBackground: e,
2772
+ ...t
2773
+ }
2774
+ );
2775
+ zt.displayName = "Drawer";
2776
+ const Oi = A.Trigger, Ei = A.Portal, kt = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2777
+ A.Overlay,
2778
+ {
2779
+ ref: n,
2780
+ className: E("fixed inset-0 z-50 bg-black/80", e),
2781
+ ...t
2782
+ }
2783
+ ));
2784
+ kt.displayName = A.Overlay.displayName;
2785
+ const Ai = D.forwardRef(
2786
+ ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Ei, { children: [
2787
+ /* @__PURE__ */ a.jsx(kt, {}),
2788
+ /* @__PURE__ */ a.jsxs(
2789
+ A.Content,
2790
+ {
2791
+ ref: o,
2792
+ className: E(
2793
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2794
+ e
2795
+ ),
2796
+ ...r,
2797
+ children: [
2798
+ !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2799
+ t
2800
+ ]
2801
+ }
2802
+ )
2803
+ ] })
2804
+ );
2805
+ Ai.displayName = "DrawerContent";
2806
+ const Ti = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2807
+ A.Title,
2808
+ {
2809
+ ref: n,
2810
+ className: E(
2811
+ "text-lg font-semibold leading-none tracking-tight",
2812
+ e
2813
+ ),
2814
+ ...t
2815
+ }
2816
+ ));
2817
+ Ti.displayName = A.Title.displayName;
2818
+ const Si = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2819
+ A.Description,
2820
+ {
2821
+ ref: n,
2822
+ className: E("text-sm text-muted-foreground", e),
2823
+ ...t
2824
+ }
2825
+ ));
2826
+ Si.displayName = A.Description.displayName;
2827
+ const xt = ({
2828
+ children: e,
2829
+ className: t
2830
+ }) => {
2831
+ const { options: n } = re(), r = Xe(null);
2832
+ return oe(() => {
2833
+ const o = r.current?.querySelector('[aria-current="page"]');
2834
+ nn(o ?? null);
2835
+ }, []), /* @__PURE__ */ a.jsxs(
2836
+ "div",
2837
+ {
2838
+ className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
2839
+ "data-pagefind-ignore": "all",
2840
+ children: [
2841
+ /* @__PURE__ */ a.jsx(
2842
+ "nav",
2843
+ {
2844
+ ref: r,
2845
+ className: E(
2846
+ "hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
2847
+ "-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
2848
+ // Revert the padding/margin on the first child
2849
+ "-mt-2.5",
2850
+ t
2851
+ ),
2852
+ style: {
2853
+ maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
2854
+ },
2855
+ children: e
2856
+ }
2857
+ ),
2858
+ /* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(Kt, {}) })
2859
+ ]
2860
+ }
2861
+ );
2862
+ };
2863
+ xt.displayName = "NavigationWrapper";
2864
+ const Ii = ({
2865
+ onRequestClose: e,
2866
+ navigation: t
2867
+ }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2868
+ /* @__PURE__ */ a.jsxs(xt, { children: [
2869
+ /* @__PURE__ */ a.jsx(C.Target, { name: "navigation-before" }),
2870
+ t.map((n) => /* @__PURE__ */ a.jsx(
2871
+ Ze,
2872
+ {
2873
+ item: n
2874
+ },
2875
+ n.type + (n.label ?? "") + ("path" in n ? n.path : "") + ("file" in n ? n.file : "") + ("to" in n ? n.to : "")
2876
+ )),
2877
+ /* @__PURE__ */ a.jsx(C.Target, { name: "navigation-after" })
2878
+ ] }),
2879
+ /* @__PURE__ */ a.jsx(
2880
+ un,
2881
+ {
2882
+ className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
2883
+ "aria-describedby": void 0,
2884
+ children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
2885
+ /* @__PURE__ */ a.jsx(dn, { children: /* @__PURE__ */ a.jsx(ln, { children: "Navigation" }) }),
2886
+ t.map((n) => /* @__PURE__ */ a.jsx(
2887
+ Ze,
2888
+ {
2889
+ item: n,
2890
+ onRequestClose: e
2891
+ },
2892
+ n.label
2893
+ ))
2894
+ ] })
2895
+ }
2896
+ )
2897
+ ] }), Di = ({ children: e }) => {
2898
+ const [t, n] = Rt(!1), { navigation: r } = Dt(), o = r.length > 0, s = Mt().state === "loading", { options: i } = re();
2899
+ return /* @__PURE__ */ a.jsxs(
2900
+ zt,
2901
+ {
2902
+ direction: i.site?.dir === "rtl" ? "right" : "left",
2903
+ open: t,
2904
+ onOpenChange: (u) => n(u),
2905
+ children: [
2906
+ o && /* @__PURE__ */ a.jsx(
2907
+ Ii,
2908
+ {
2909
+ onRequestClose: () => n(!1),
2910
+ navigation: r
2911
+ }
2912
+ ),
2913
+ o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(Oi, { className: "flex items-center gap-2 px-4", children: [
2914
+ /* @__PURE__ */ a.jsx(Xt, { size: 16, strokeWidth: 1.5 }),
2915
+ /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
2916
+ ] }) }),
2917
+ /* @__PURE__ */ a.jsxs(
2918
+ "main",
2919
+ {
2920
+ "data-pagefind-body": !0,
2921
+ className: E(
2922
+ "px-4 lg:pe-8 lg:px-8",
2923
+ !o && "col-span-full",
2924
+ s && "animate-pulse"
2925
+ ),
2926
+ children: [
2927
+ /* @__PURE__ */ a.jsx(C.Target, { name: "content-before" }),
2928
+ e,
2929
+ /* @__PURE__ */ a.jsx(C.Target, { name: "content-after" })
2930
+ ]
2931
+ }
2932
+ )
2933
+ ]
2934
+ }
2935
+ );
2936
+ }, Ci = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(hn, {}) }), Ni = ({ children: e }) => {
2937
+ const { authentication: t } = re();
2938
+ return rn(), Zi(), oe(() => {
2939
+ t?.onPageLoad?.();
2940
+ }, [t]), /* @__PURE__ */ a.jsxs(on, { children: [
2941
+ /* @__PURE__ */ a.jsx(C.Target, { name: "layout-before-head" }),
2942
+ /* @__PURE__ */ a.jsx(Ht, {}),
2943
+ /* @__PURE__ */ a.jsx(C.Target, { name: "layout-after-head" }),
2944
+ /* @__PURE__ */ a.jsx(
2945
+ "div",
2946
+ {
2947
+ className: E(
2948
+ "grid max-w-screen-2xl w-full lg:mx-auto",
2949
+ "[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
2950
+ "grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
2951
+ ),
2952
+ children: /* @__PURE__ */ a.jsx(Ft, { fallback: /* @__PURE__ */ a.jsx(Ci, {}), children: /* @__PURE__ */ a.jsx(Di, { children: e ?? /* @__PURE__ */ a.jsx(Qt, {}) }) })
2953
+ }
2954
+ ),
2955
+ /* @__PURE__ */ a.jsx(Pi, {})
2956
+ ] });
2957
+ }, Ri = ({ children: e }) => {
2958
+ const { meta: t, options: n } = re(), r = et();
2959
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2960
+ /* @__PURE__ */ a.jsxs(He, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
2961
+ n.canonicalUrlOrigin && /* @__PURE__ */ a.jsx(
2962
+ "link",
2963
+ {
2964
+ rel: "canonical",
2965
+ href: Ct(
2966
+ n.canonicalUrlOrigin,
2967
+ n.basePath,
2968
+ r.pathname
2969
+ )
2970
+ }
2971
+ ),
2972
+ t?.description && /* @__PURE__ */ a.jsx("meta", { name: "description", content: t.description }),
2973
+ t?.favicon && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: t.favicon }),
2974
+ t?.generator && /* @__PURE__ */ a.jsx("meta", { name: "generator", content: t.generator }),
2975
+ t?.applicationName && /* @__PURE__ */ a.jsx("meta", { name: "application-name", content: t.applicationName }),
2976
+ t?.referrer && /* @__PURE__ */ a.jsx("meta", { name: "referrer", content: t.referrer }),
2977
+ t?.keywords && t.keywords.length > 0 && /* @__PURE__ */ a.jsx("meta", { name: "keywords", content: t.keywords.join(", ") }),
2978
+ t?.authors?.map((o) => /* @__PURE__ */ a.jsx("meta", { name: "author", content: o }, o)),
2979
+ t?.creator && /* @__PURE__ */ a.jsx("meta", { name: "creator", content: t.creator }),
2980
+ t?.publisher && /* @__PURE__ */ a.jsx("meta", { name: "publisher", content: t.publisher })
2981
+ ] }),
2982
+ e
2983
+ ] });
2984
+ }, Fi = ({
2985
+ title: e = "An error occurred",
2986
+ message: t,
2987
+ category: n
2988
+ }) => /* @__PURE__ */ a.jsxs(sn, { className: "h-full pt-(--padding-content-top)", children: [
2989
+ n && /* @__PURE__ */ a.jsx(fn, { children: n }),
2990
+ e && /* @__PURE__ */ a.jsx(an, { level: 1, className: "flex gap-3.5 items-center", children: e }),
2991
+ /* @__PURE__ */ a.jsx("p", { children: t })
2992
+ ] }), Ui = (e) => {
2993
+ switch (e) {
2994
+ case 400:
2995
+ return {
2996
+ title: "Bad Request",
2997
+ message: "The request could not be understood by the server due to malformed syntax."
2998
+ };
2999
+ case 403:
3000
+ return {
3001
+ title: "Forbidden",
3002
+ message: "You don't have permission to access this resource."
3003
+ };
3004
+ case 404:
3005
+ return {
3006
+ title: "Not Found",
3007
+ message: "The requested resource could not be found."
3008
+ };
3009
+ case 405:
3010
+ return {
3011
+ title: "Method Not Allowed",
3012
+ message: "The request method is not supported for the requested resource."
3013
+ };
3014
+ case 414:
3015
+ return {
3016
+ title: "Request URI Too Large",
3017
+ message: "The request URI is too large."
3018
+ };
3019
+ case 416:
3020
+ return {
3021
+ title: "Range Not Satisfiable",
3022
+ message: "The server cannot satisfy the request range."
3023
+ };
3024
+ case 500:
3025
+ return {
3026
+ title: "Internal Server Error",
3027
+ message: "An unexpected error occurred while processing your request."
3028
+ };
3029
+ case 501:
3030
+ return {
3031
+ title: "Not Implemented",
3032
+ message: "The server does not support the functionality required to fulfill the request."
3033
+ };
3034
+ case 502:
3035
+ return {
3036
+ title: "Bad Gateway",
3037
+ message: "The server received an invalid response from the upstream server."
3038
+ };
3039
+ case 503:
3040
+ return {
3041
+ title: "Service Unavailable",
3042
+ message: "The server is temporarily unable to handle the request."
3043
+ };
3044
+ case 504:
3045
+ return {
3046
+ title: "Gateway Timeout",
3047
+ message: "The server did not receive a timely response from the upstream server."
3048
+ };
3049
+ default:
3050
+ return {
3051
+ title: "An error occurred",
3052
+ message: "Something went wrong while processing your request."
3053
+ };
3054
+ }
3055
+ }, qi = ({ statusCode: e, message: t }) => {
3056
+ if (e === 404)
3057
+ return /* @__PURE__ */ a.jsx(pn, {});
3058
+ const n = Ui(e);
3059
+ return /* @__PURE__ */ a.jsx(
3060
+ Fi,
3061
+ {
3062
+ title: n.title,
3063
+ message: t ?? n.message,
3064
+ category: e
3065
+ }
3066
+ );
3067
+ };
3068
+ function Mi({ error: e }) {
3069
+ return /* @__PURE__ */ a.jsx(cn, { error: e });
3070
+ }
3071
+ const ia = Ni, aa = mn, ca = Mi, ua = xn, la = Zn, da = Vt, ha = He, fa = qi, pa = xi, ma = Ri;
3072
+ export {
3073
+ ua as Bootstrap,
3074
+ la as BootstrapStatic,
3075
+ pa as BuildCheck,
3076
+ ha as Head,
3077
+ ia as Layout,
3078
+ ma as Meta,
3079
+ da as RouteGuard,
3080
+ aa as RouterError,
3081
+ ca as ServerError,
3082
+ fa as StatusPage
3083
+ };
3084
+ //# sourceMappingURL=zudoku.__internal.js.map